/* ==========================================================================
   Richter Vergoldermeister - Responsive Stylesheet (Bootstrap 5 Integration)
   ========================================================================== */

:root {
  --gold-primary: #a17317;
  --gold-dark: #7e570c;
  --gold-light: #fdfaf3;
  --gold-border: #e6d3ad;
  --text-dark: #2a2a2a;
  --bg-page: #f7f7f7;
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--bg-page);
  color: var(--text-dark);
  font-family: var(--font-family-base);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* --- Outer Main Container --- */
.site-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #ffffff;
  min-height: 100vh;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.07);
}

@media (min-width: 992px) {
  .site-wrapper {
    background-image: url('../uploads/tf/goldrahmen_r.gif');
    background-position: right top;
    background-repeat: no-repeat;
  }
}

/* --- Header & Branding --- */
.site-header {
  border-bottom: 1px solid #f0f0f0;
}

.logo-link img,
.header-banner img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header-banner {
  background-color: #ffffff;
}

/* Quick Mobile Call Bar */
.mobile-quick-actions {
  background: linear-gradient(135deg, #a17317 0%, #bd8c25 100%);
  color: #fff;
  padding: 8px 15px;
}

.mobile-quick-actions a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mobile-quick-actions a:hover {
  text-decoration: underline;
}

/* Mobile Nav Toggle Button */
.navbar-toggler-custom {
  background-color: var(--gold-light);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.navbar-toggler-custom:hover,
.navbar-toggler-custom:focus {
  background-color: #f5eedb;
  color: var(--gold-dark);
}

/* --- Left Sidebar & Navigation (mm) --- */
.nav-sidebar {
  background-color: #ffffff;
}

@media (min-width: 992px) {
  .nav-sidebar {
    background-image: url('../uploads/tf/goldrahmen_nav.gif');
    background-position: right top;
    background-repeat: no-repeat;
    border-right: 1px solid #f3f3f3;
  }
}

.nav-teaser-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px 0;
}

.nav-teaser-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s ease-in-out;
  background-color: transparent;
  border: 1px solid transparent;
}

.nav-teaser-item:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-border);
  color: var(--gold-dark);
  transform: translateX(3px);
}

.nav-teaser-item.active {
  background-color: #fbf6ec;
  border-color: var(--gold-border);
  box-shadow: 0 2px 8px rgba(161, 115, 23, 0.08);
}

.nav-teaser-item .nav-thumb-wrap {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  overflow: hidden;
}

.nav-teaser-item .nav-thumb-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
}

.nav-teaser-item .nav-text-wrap {
  flex: 1;
}

.nav-teaser-item .nav-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-primary);
  line-height: 1.3;
  margin-bottom: 2px;
}

.nav-teaser-item.active .nav-title {
  color: var(--gold-dark);
}

.nav-teaser-item .nav-subtitle {
  display: block;
  font-size: 12px;
  color: #666666;
  line-height: 1.3;
}

/* --- Main Content Area --- */
.main-content {
  padding: 20px 20px 40px;
}

@media (min-width: 992px) {
  .main-content {
    padding: 25px 35px 50px 30px;
  }
}

/* Typography */
h1, .h1 {
  text-transform: uppercase;
  color: var(--gold-primary);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 1.25rem;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

h1.csc-firstHeader,
.main-content > h1:first-child,
.main-content > div:first-child h1 {
  margin-top: 0;
  font-size: 1.25rem;
}

h2, .h2 {
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

p, .bodytext {
  font-size: 15px;
  color: #333333;
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.internal-link, .external-link-new-window {
  font-weight: 500;
}

/* Gold Divider */
.trenner {
  display: block;
  height: 35px;
  background-image: url('../uploads/tf/gold_trenner.gif');
  background-position: center center;
  background-repeat: no-repeat;
  margin: 1.5rem 0;
}

/* Callout Box / Kasten Sprungziele */
.kasten-sprungziele {
  background-color: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.kasten-sprungziele h1,
.kasten-sprungziele h2,
.kasten-sprungziele .h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.kasten-sprungziele p:last-child {
  margin-bottom: 0;
}

/* Bullet Lists */
.csc-bulletlist,
.custom-bullet-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.csc-bulletlist li,
.custom-bullet-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.csc-bulletlist li::before,
.custom-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 12px;
  background-image: url('../uploads/tf/cp_li.gif');
  background-repeat: no-repeat;
  background-size: contain;
}

/* Feature Cards & Image Grids */
.feature-card {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.feature-card-body {
  padding: 16px;
}

/* Gallery & Restoration Image Cards */
.img-zoom-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  background-color: #fafafa;
  transition: all 0.25s ease;
}

.img-zoom-wrapper:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 4px 14px rgba(161, 115, 23, 0.15);
}

.img-zoom-wrapper img {
  transition: transform 0.3s ease;
  width: 100%;
  height: auto;
  display: block;
}

.img-zoom-wrapper:hover img {
  transform: scale(1.03);
}

.zoom-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
}

/* Textpic Rows */
.textpic-row {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f2f2f2;
}

.textpic-row:last-child {
  border-bottom: none;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid #ececec;
  background-color: #ffffff;
  background-image: url('../uploads/tf/footer.gif');
  background-repeat: no-repeat;
  background-position: center top;
  color: #777777;
  font-size: 12px;
  padding: 40px 15px 30px;
  text-align: center;
}

.site-footer a {
  color: #666666;
}

.site-footer a:hover {
  color: var(--gold-primary);
}

/* Modal for Image Preview */
.modal-img-preview {
  max-height: 80vh;
  object-fit: contain;
}

/* Contact Info Box */
.contact-box {
  background-color: #fafafa;
  border: 1px solid #e5e5e5;
  border-left: 4px solid var(--gold-primary);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 1.5rem;
}

/* Responsive utilities */
@media (max-width: 767.98px) {
  .site-header {
    text-align: center;
  }
  .nav-teaser-list {
    gap: 8px;
  }
  .nav-teaser-item {
    padding: 8px 10px;
  }
  .nav-teaser-item .nav-thumb-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
  .main-content {
    padding: 15px;
  }
  .site-footer {
    padding: 25px 10px;
  }
}
