/**
 * Badener Carstudio – Premium Design
 * Dark/Light Mode (prefers-color-scheme) | Gold #CDAD11 | 100% Responsive | Analytics-ready
 */

:root {
  --primary: #CDAD11;
  --primary-dark: #a88d0e;
  --primary-light: #e0c235;
  --secondary: #0a0a0b;
  --bg-alt: #141416;
  --bg-card: #1a1a1d;
  --text: #f5f5f5;
  --text-muted: #b8b8b8;
  --border: #2a2a2e;
  --white: #ffffff;
  --btn-text: #0a0a0b;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.3s ease;
  color-scheme: dark light;
}

/* Light Mode – Geräteeinstellung */
@media (prefers-color-scheme: light) {
  :root {
    --secondary: #f8f9fa;
    --bg-alt: #ffffff;
    --bg-card: #ffffff;
    --text: #1a1a1d;
    --text-muted: #4a4a4e;
    --border: #e5e5e8;
    --white: #ffffff;
    --btn-text: #0a0a0b;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
  }
  .logo { color: var(--secondary) !important; }
  .logo:hover { color: var(--primary) !important; }
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23a88d0e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  .hero { background: linear-gradient(135deg, #f0f2f5 0%, #e8eaed 50%, #dde0e5 100%); }
  .hero-bg::after { background: linear-gradient(to bottom, transparent 30%, rgba(248,249,250,0.15) 50%, rgba(248,249,250,0.4) 75%, rgba(248,249,250,0.85) 95%, #f8f9fa 100%); }
  .hero .badge-hero { color: #fff; border-color: rgba(0,0,0,0.3); background: rgba(0,0,0,0.75); }
  .badge-hero-est { color: #fff; border-color: rgba(0,0,0,0.3); background: rgba(0,0,0,0.75); }
  .form-control, .form-select { background: #fff; border-color: var(--border); color: var(--text); }
  .form-control:focus { background: #fff; }
  .vergleich-table thead th { background: #eef0f2; color: var(--primary-dark); }
  .vergleich-table tbody tr:nth-child(even) { background: rgba(205,173,17,0.06); }
  .offcanvas-mobile { background: var(--bg-alt); }
  .hero p { color: #1a1a1d; }
  .hero-quicklinks { border-top-color: rgba(0,0,0,0.08); }
  .hero-quicklinks a { color: #1a1a1d; background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.15); }
  .hero-quicklinks a:hover { color: var(--primary-dark); background: rgba(205,173,17,0.12); border-color: rgba(205,173,17,0.3); }
  .hero .btn-hero-secondary { color: #1a1a1d !important; border-color: rgba(0,0,0,0.4) !important; background: rgba(255,255,255,0.9) !important; }
  .hero .btn-hero-secondary:hover { color: var(--primary-dark) !important; border-color: var(--primary) !important; background: #fff !important; }
  .float-sticky-cta { background: var(--bg-alt); }
  .footer-brand { color: var(--text) !important; }
  .page-banner h1, .page-banner .lead { color: var(--text); }
  .breadcrumb-item.active { color: var(--text); }
  .cookie-banner { background: var(--bg-card); border-color: var(--border); }
  .contact-form-wrap { background: var(--bg-card); border-color: var(--border); }
}
@media (prefers-color-scheme: dark) {
  .logo-box img.logo-for-dark, .footer-logo.logo-for-dark { display: block !important; }
  .logo-box img.logo-for-light, .footer-logo.logo-for-light { display: none !important; }
  .hero p { color: #e8e8e8; }
  .hero-quicklinks a { color: #e8e8e8; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
  .hero-quicklinks a:hover { color: var(--primary); }
  .hero .btn-hero-secondary { color: #fff !important; border-color: rgba(255,255,255,0.6) !important; background: transparent !important; }
  .hero .btn-hero-secondary:hover { color: var(--primary) !important; border-color: var(--primary) !important; background: rgba(205,173,17,0.15) !important; }
  .page-banner h1, .page-banner .lead { color: var(--text); }
  .footer-brand { color: var(--text) !important; }
}

/* Fonts: Lokal geladen via fonts.css */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 9999; background: var(--primary); color: var(--btn-text); padding: 0.75rem 1rem; border-radius: var(--radius); font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 1rem; outline: 2px solid var(--primary-light); outline-offset: 2px; }
body { font-family: var(--font); color: var(--text); background: var(--secondary); line-height: 1.6; overflow-x: hidden; font-size: 1rem; }
main { min-height: 50vh; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }
.gallery-item img,
.gallery-item picture,
.service-card-img img,
.service-card-img picture,
.gallery-teaser-item img,
.gallery-teaser-item picture { object-fit: cover; }

/* ===== MAIN HEADER (kompakt) ===== */
.header {
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow var(--transition);
}
.header.header-scrolled { box-shadow: var(--shadow); }
.navbar { padding: 1rem 0; }
@media (min-width: 992px) { .navbar { padding: 1.25rem 0; } }
.logo-box { display: flex; align-items: center; flex-wrap: wrap; gap: 0 0.75rem; }
.logo-box img, .footer-logo {
  width: auto; object-fit: contain;
  visibility: visible !important; opacity: 1 !important;
}
.logo-box img { max-height: 56px; min-height: 40px; }
.footer-logo { max-height: 60px; min-height: 44px; }
/* Standard/Light: dunkles Logo (logo.svg). Dark Mode: weißes Logo (logo-white.svg) */
.logo-box img.logo-for-dark, .footer-logo.logo-for-dark { display: none !important; }
.logo-box img.logo-for-light, .footer-logo.logo-for-light { display: block !important; }
.logo { display: flex; flex-direction: column; font-weight: 700; font-size: 1.35rem; color: var(--white) !important; }
.logo:hover { color: var(--primary) !important; }
.logo-est { font-size: 0.65rem; font-weight: 500; color: var(--primary); letter-spacing: 0.15em; }
.logo-slogan { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); font-style: italic; margin-left: 0.75rem; letter-spacing: 0.05em; }
.nav-link {
  color: var(--text) !important;
  padding: 0.5rem 0.75rem !important;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
}
@media (min-width: 992px) { .nav-link { padding: 0.5rem 1rem !important; } }
@media (min-width: 1200px) { .nav-link { padding: 0.5rem 1.25rem !important; } }
.nav-link:hover, .nav-link:focus { color: var(--primary) !important; }
.nav-link.active { color: var(--primary) !important; }
.dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  box-shadow: var(--shadow);
  min-width: 220px;
}
.dropdown-item { color: var(--text) !important; padding: 0.6rem 1.25rem; font-size: 0.95rem; }
.dropdown-item:hover { background: rgba(205,173,17,0.1) !important; color: var(--primary) !important; }
/* Einheitliche Buttons: Primär (Gold) + Sekundär (Outline) */
.btn-cta, .btn-cta-primary, .btn-submit, .btn-cookie-accept {
  padding: 0.625rem 1.25rem !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: var(--transition);
}
.btn-cta, .btn-cta-primary {
  background: var(--primary) !important;
  color: var(--btn-text) !important;
  border-color: var(--primary);
}
.btn-cta:hover, .btn-cta-primary:hover {
  background: var(--primary-light) !important;
  color: var(--btn-text) !important;
  border-color: var(--primary-light);
  transform: translateY(-1px);
}
.navbar-nav { gap: 0.15rem; }
.nav-compact .nav-link { padding: 0.4rem 0.6rem !important; font-size: 0.95rem; }
@media (min-width: 992px) { .navbar-nav { gap: 0.35rem; } }
@media (min-width: 1200px) { .navbar-nav { gap: 0.5rem; } .nav-compact .nav-link { padding: 0.5rem 0.75rem !important; } }
.navbar-toggler { border-color: var(--border); padding: 0.5rem; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23CDAD11' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.5em;
  height: 1.5em;
}

/* ===== HERO (Themevorlage: 90vh desktop, 100dvh mobile) – responsiv, WebP ===== */
.hero {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-alt) 50%, #0d0d0f 100%);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { min-height: 85vh; } }
@media (min-width: 992px) { .hero { min-height: 85vh; padding: 5rem 0; } }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-picture,
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg-picture { display: block; }
.hero-bg-img { opacity: 0.34; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(10,10,11,0.15) 50%, rgba(10,10,11,0.4) 75%, rgba(10,10,11,0.85) 95%, var(--secondary) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero { cursor: default; }
.hero a, .hero button { cursor: pointer; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hero .badge-hero {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 999px;
  background: rgba(0,0,0,0.75);
}
.badge-hero-est {
  color: #fff;
  border-color: rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.75);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); color: #1a1a1d; max-width: 640px; line-height: 1.65; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; }
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-hero-primary {
  background: var(--primary);
  color: var(--btn-text);
  border: 2px solid var(--primary);
}
.btn-hero-primary:hover {
  background: var(--primary-light);
  color: var(--btn-text);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(205,173,17,0.3);
}
.btn-hero-secondary {
  background: transparent;
  color: inherit;
  border: 2px solid var(--border);
}
.btn-hero-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(205,173,17,0.1);
}

/* ===== PAGE BANNER (Themevorlage: 120px Section) ===== */
.page-banner {
  padding: 4rem 0 2.5rem;
  background: var(--bg-alt);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(205,173,17,0.03) 0%, transparent 100%);
  pointer-events: none;
}
.page-banner h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
}
.page-banner .lead { margin-bottom: 0; }

/* ===== SECTIONS (einheitliche Abstände, klare Trennungen) ===== */
.section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.section.bg-alt { background: var(--bg-alt); }
main > .hero + .section { border-top: none; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title .badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 600;
}
@media (prefers-color-scheme: light) {
  .section-title .badge { color: #8b7311; }
}
.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.section-title .text-muted { font-size: 1rem; }

/* ===== SERVICE GRID (Themevorlage-inspiriert) ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(205,173,17,0.3);
  box-shadow: var(--shadow);
}
.service-card-img {
  aspect-ratio: 16/10;
  background: var(--border);
  overflow: hidden;
}
.service-card-img picture,
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); display: block; }
.service-card-img picture img { width: 100%; height: 100%; object-fit: cover; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 1.75rem; }
.service-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.6rem; }
.service-card p { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.6; }
.service-card .btn { font-size: 0.9rem; }

/* Klickbare Karten – gesamte Karte als Link */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card-link:hover { color: inherit; }
.card-link .btn { pointer-events: none; }
.lexikon-card.card-link { display: flex; flex-direction: column; height: 100%; }
.gallery-teaser-item.card-link { display: block; }
.faq-teaser-item.card-link { display: block; height: 100%; }

/* ===== WHY CHOOSE US (Themevorlage-inspiriert) ===== */
.why-us-section { background: var(--bg-alt); }
.why-us-grid { margin-top: 2rem; }
.why-us-box {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  height: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: var(--transition);
  transform: translateY(0);
}
.why-us-box:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(205,173,17,0.2);
  transform: translateY(-2px);
}
.why-us-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--btn-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  transition: var(--transition);
}
.why-us-box:hover .why-us-icon { transform: scale(1.08); }
.why-us-box h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.why-us-box p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ===== CTA SECTION (Themevorlage: großzügige Abstände) ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--secondary);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.cta-section h2 { color: #0a0a0b; font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; margin-bottom: 0.75rem; }
.cta-section p { opacity: 0.9; margin-bottom: 2rem; color: #1a1a1d; font-size: 1.05rem; }
.cta-section .btn-hero-primary { background: #0a0a0b !important; color: var(--primary) !important; }
.cta-section .btn-hero-primary:hover { background: #1a1a1a !important; color: var(--primary-light) !important; }
.cta-section .btn-hero-secondary {
  background: #fff !important;
  border-color: rgba(0,0,0,0.3);
  color: #0a0a0b !important;
}
.cta-section .btn-hero-secondary:hover {
  background: var(--bg-alt) !important;
  border-color: #0a0a0b;
  color: var(--primary-dark) !important;
}
.cta-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 1rem; }
.cta-badge {
  align-self: flex-start;
  max-width: none;
  background: rgba(0,0,0,0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0a0a0b;
}

/* ===== GALERIE TEASER (Themevorlage: responsive) ===== */
.galerie-teaser-section { background: var(--secondary); }
.gallery-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 991px) { .gallery-teaser-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .gallery-teaser-grid { grid-template-columns: 1fr; } }
.gallery-teaser-item { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery-teaser-item picture,
.gallery-teaser-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; display: block; }
.gallery-teaser-item picture img { width: 100%; height: 100%; object-fit: cover; }
.gallery-teaser-grid .img-placeholder { min-height: 140px; border-radius: var(--radius); }

/* ===== FAQ TEASER ===== */
.faq-teaser-section { background: var(--bg-alt); }
.faq-teaser-item {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  height: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.faq-teaser-item:hover { border-color: rgba(205,173,17,0.3); }
.faq-teaser-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.faq-teaser-item p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ===== FAQ ACCORDION ===== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
.faq-question:hover { color: var(--primary); }
.faq-question:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 0 1.25rem; color: var(--text-muted); }
.faq-answer[hidden] { display: none; }

/* ===== BLOG / CONTENT HIGHLIGHTS ===== */
/* Inline-Icons in Überschriften – proportional kleiner */
.icon-inline { font-size: 0.85em; vertical-align: -0.1em; }

.content-highlight {
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  background: rgba(205,173,17,0.06);
  padding: 1rem 1.25rem 1rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.content-highlight p:last-child { margin-bottom: 0; }
.prose p + p { margin-top: 1rem; }

/* ===== TERMIN ABLAUF (Schritte) ===== */
.termin-step {
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  height: 100%;
  transition: var(--transition);
}
.termin-step:hover { border-color: rgba(205,173,17,0.4); }
.termin-step-icon {
  width: 2rem;
  height: 2rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(205,173,17,0.15);
  color: var(--primary);
  border-radius: 50%;
  font-size: 0.95rem;
}

/* ===== CONTACT FORM (Themevorlage: mehr Luft) ===== */
.contact-form-wrap {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.form-label { color: var(--text); font-weight: 500; }
.form-control {
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.875rem 1.125rem;
}
.form-control:focus {
  background: var(--secondary);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(205,173,17,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
.form-select { background: var(--secondary); border-color: var(--border); color: var(--text); }
.form-select:focus { border-color: var(--primary); }
.form-check-input { background-color: var(--secondary); border-color: var(--border); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-label { font-size: 0.9rem; color: var(--text-muted); }
.btn-submit {
  background: var(--primary) !important;
  color: var(--btn-text) !important;
  border-color: var(--primary);
}
.btn-submit:hover {
  background: var(--primary-light) !important;
  color: var(--btn-text) !important;
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

/* ===== FOOTER (Themevorlage-inspiriert) ===== */
.footer {
  background: var(--bg-alt);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary); }
.footer-brand { font-weight: 700; font-size: 1.2rem; margin-bottom: 0.25rem; color: var(--white); }
.footer-logo { max-height: 60px; width: auto; margin-bottom: 0.5rem; }
.footer-brand .logo-est { font-size: 0.65rem; color: var(--primary); }
.footer-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
.footer-contact p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.footer-bottom {
  text-align: left;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-bottom p { margin-bottom: 0.5rem; }
.footer-bottom p:last-child { margin-bottom: 0; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }
.footer-credits { font-size: 0.85rem; opacity: 0.8; }
.footer-credits a { color: var(--text-muted); }
.footer-werbungmacher {
  display: flex;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.footer-werbungmacher a { display: inline-block; color: var(--text-muted); opacity: 0.7; transition: opacity var(--transition); }
.footer-werbungmacher a:hover { opacity: 1; color: var(--primary); }
.footer-werbungmacher .wm-logo {
  height: 36px;
  width: auto;
  vertical-align: middle;
}
.footer-werbungmacher .wm-logo path { fill: #1a1a1d; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--text-muted); font-size: 1.25rem; }
.footer-social a:hover { color: var(--primary); }

/* ===== BREADCRUMB ===== */
.breadcrumb-wrap { padding: 1rem 0; }
.breadcrumb { background: none; padding: 0; margin: 0; flex-wrap: wrap; }
.breadcrumb-item { display: flex; align-items: center; }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text); }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.gallery-item {
  aspect-ratio: 4/3;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery-item img,
.gallery-item picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item picture img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Bild-Fallback (wenn Bild fehlt) ===== */
.img-placeholder {
  background: linear-gradient(135deg, var(--border) 0%, var(--bg-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}

/* ===== TRUST BRANDS ===== */
.brands-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  opacity: 0.8;
}
.brands-row img { max-height: 48px; width: auto; filter: grayscale(1) brightness(1.2); }

/* ===== PROCESS STEPS (Themevorlage: mehr Luft) ===== */
.process-step {
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
}
.process-step:hover { border-color: rgba(205,173,17,0.3); }
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--primary); }

/* ===== VERGLEICH TABLE ===== */
.vergleich-table-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.vergleich-table { margin: 0; }
.vergleich-table th, .vergleich-table td { padding: 1rem 1.25rem; vertical-align: middle; color: var(--text); }
.vergleich-table thead th { background: var(--bg-alt); color: var(--primary); font-weight: 600; border-color: var(--border); }
.vergleich-table tbody tr:nth-child(even) { background: rgba(205,173,17,0.03); }
.vergleich-table tbody td { border-color: var(--border); }

/* ===== DATENSCHUTZ ===== */
.datenschutz-content h2 { font-size: 1.35rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.datenschutz-content h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.datenschutz-content ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.datenschutz-content li { margin-bottom: 0.25rem; }

/* ===== LEISTUNGSSEITEN (Tabs, Sidebar) ===== */
.leistung-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.leistung-sidebar-card .h6 { padding: 1.25rem 1.25rem 0.5rem; margin-bottom: 0; }
.leistung-sidebar-card .nav.flex-column { padding: 0 1.25rem 1.25rem; }
.leistung-sidebar-card .nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.75rem 0 !important;
}
.nav-pills .nav-link {
  color: var(--text-muted);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-pills .nav-link:hover { color: var(--primary); }
.nav-pills .nav-link.active,
.nav-pills .nav-link.show {
  background: var(--primary) !important;
  color: #0a0a0b !important;
}
.tab-content { padding-top: 0.5rem; }
.tab-content h2 { font-size: 1.35rem; margin-top: 0; margin-bottom: 1rem; }
.alert-secondary {
  background: rgba(205,173,17,0.08);
  border: 1px solid rgba(205,173,17,0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: var(--text);
}

/* ===== LEXIKON (Themevorlage: mehr Luft) ===== */
.lexikon-nav { position: sticky; top: 100px; }
.lexikon-nav .nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  pointer-events: auto;
}
.lexikon-nav .nav-link:hover { color: var(--primary); }
.lexikon-item { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }
.lexikon-item:last-child { border-bottom: none; margin-bottom: 0; }
.lexikon-intro { margin-bottom: 2.5rem; }
.lexikon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.lexikon-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.lexikon-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.lexikon-card-body { padding: 1.5rem; }
.lexikon-card-title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.lexikon-card-kurz { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.lexikon-card-content { font-size: 0.85rem; margin-bottom: 1rem; }
@media (max-width: 991px) { .lexikon-nav { position: static; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); } }

/* ===== UTILITIES (Themevorlage: b-container 1280px) ===== */
.text-muted { color: var(--text-muted); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.b-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container, .b-container { padding: 0 2rem; } }
@media (max-width: 575px) { .container, .b-container { padding: 0 1rem; } }

/* ===== RESPONSIVE (Themevorlage: 1199, 991, 768, 576) ===== */
@media (max-width: 1199px) {
  .section { padding: 2.5rem 0; }
  .cta-section { padding: 4rem 0; }
}
@media (max-width: 991px) {
  .hero { min-height: 100dvh; min-height: 100vh; padding: 3rem 0; }
  .section { padding: 2.5rem 0; }
  .section-title { margin-bottom: 2rem; }
  .service-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: left; }
  .footer-col ul { align-items: flex-start; }
  .contact-form-wrap { padding: 2rem; }
  .gallery-teaser-grid { gap: 1.25rem; }
}
@media (max-width: 767px) {
  .hero { min-height: 100dvh; min-height: 100vh; padding: 1rem 0 2rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-buttons { flex-wrap: wrap; gap: 0.75rem; }
  .hero-buttons .btn-hero { width: auto; }
  .cta-section { padding: 3.5rem 0; }
  .cta-badges { justify-content: flex-start; }
  .page-banner { padding: 4rem 0 2.5rem; }
  .section { padding: 2rem 0; }
  .why-us-grid .col-lg-3 { margin-bottom: 1rem; }
  .service-card-body { padding: 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (min-width: 576px) {
  .cta-badges { flex-wrap: nowrap; justify-content: center; }
}
@media (max-width: 575px) {
  .cta-badges { justify-content: flex-start; }
  .page-banner { padding: 3.5rem 0 2rem; }
  .section { padding: 2rem 0; }
  .navbar-brand .logo-text { font-size: 1.1rem; }
  .btn-cta, .btn-hero { font-size: 0.9rem; padding: 0.625rem 1.25rem; }
  .contact-form-wrap { padding: 1.5rem; }
  .footer { padding: 3rem 0 2rem; }
}
/* Overflow-Schutz */
img { max-width: 100%; height: auto; }
table { overflow-x: auto; display: block; }
pre, code { overflow-x: auto; }

/* ===== HERO QUICK-LINKS (Schnellnavigation) ===== */
.hero-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.12);
  justify-content: flex-start;
}
.hero-quicklinks a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e8e8e8;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  transition: var(--transition);
  white-space: nowrap;
}
.hero-quicklinks a:hover {
  color: var(--primary);
  background: rgba(205,173,17,0.2);
  border-color: rgba(205,173,17,0.4);
}
.hero-quicklinks a i { font-size: 0.95rem; opacity: 0.9; }
@media (max-width: 767px) {
  .hero-quicklinks {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-quicklinks::-webkit-scrollbar { display: none; }
  .hero-quicklinks a {
    flex-shrink: 0;
    font-size: 0.75rem;
    padding: 0.4rem 0.65rem;
  }
  .hero-quicklinks a i { font-size: 0.85rem; }
}

/* ===== OFFCANVAS MOBILE – von rechts, rechtsbündig ===== */
.offcanvas-mobile.offcanvas-end {
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  width: min(320px, 85vw);
  max-width: 100%;
  z-index: 1055;
}
.offcanvas-backdrop { z-index: 1050; }
.offcanvas-body-mobile .nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem 0 !important;
}
.offcanvas-header-mobile {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.offcanvas-header-mobile .logo-box img { max-height: 44px; }
.offcanvas-body-mobile {
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.offcanvas-body-mobile .nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 1.05rem;
  transition: var(--transition);
}
.offcanvas-body-mobile .nav-link:hover { color: var(--primary); }
.offcanvas-body-mobile .nav-link.active { color: var(--primary); }
.offcanvas-social-link {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: var(--transition);
}
.offcanvas-social-link:hover { color: var(--primary); }
.btn-close-white { filter: brightness(0) invert(1); }

/* ===== FLOATING ELEMENTS ===== */
.float-backtotop {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--btn-text);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  z-index: 998;
  transition: var(--transition);
}
.float-backtotop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.float-backtotop:hover { background: var(--primary-light); transform: translateY(-2px); }

.float-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: var(--transition);
}
.float-sticky-cta.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.float-sticky-cta .btn { white-space: nowrap; }
@media (min-width: 992px) {
  .float-backtotop { right: 1.5rem; bottom: 1.5rem; }
  .float-sticky-cta { padding: 1rem; }
}

/* ===== ACCESSIBILITY – Focus & Kontrast ===== */
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Gold auf Dunkel: #CDAD11 auf #0a0a0b ≈ 8.5:1 (WCAG AAA) */
/* Text #f5f5f5 auf #0a0a0b ≈ 15:1 (WCAG AAA) */

/* ===== ANALYTICS TRACKING (data-track) ===== */
[data-track] { cursor: pointer; }

/* ===== COOKIE BANNER (DSGVO) ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.cookie-banner-content { flex: 1 1 300px; }
.cookie-banner-title { font-size: 1rem; font-weight: 600; margin: 0 0 0.25rem; }
.cookie-banner-desc { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.cookie-banner-desc a { color: var(--primary); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.btn-cookie {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--border);
}
.btn-cookie-reject {
  background: transparent;
  color: var(--text-muted);
}
.btn-cookie-reject:hover { color: var(--text); border-color: var(--text-muted); }
.btn-cookie-accept {
  background: var(--primary) !important;
  color: var(--btn-text) !important;
  border-color: var(--primary);
}
.btn-cookie-accept:hover { background: var(--primary-light) !important; transform: translateY(-1px); }
