/* ==========================================================================
   Scherer ONE – Grundlayout
   Seitenspezifische Gestaltung (Schriftgrößen, Abstände, Hintergründe)
   steht in content.css und wird aus den Seiteninhalten erzeugt.
   ========================================================================== */

:root {
  --f-source: "Source Sans 3", Arial, Helvetica, sans-serif;
  --f-inter: Inter, Arial, Helvetica, sans-serif;
  --f-open: "Open Sans", Arial, Helvetica, sans-serif;
  --f-lato: Lato, Arial, Helvetica, sans-serif;
  --gold: #c2a37d;
  --gold-mid: #ddc1a1;
  --gold-light: #f0d5b6;
  --gold-gradient: linear-gradient(90deg, #c2a37d 0%, #f0d5b6 100%);
  --dark: #2f2f2f;
  --grey: #6a6a71;
  --line: #e6e6e6;
  --header-h: 103px;
  --container: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-source);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure, ul { margin: 0; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
strong { font-weight: 700; }
hr { border: 0; margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 16px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Raster: Abschnitt > Zeile > Spalte ---------- */
/* flow-root: Abstände der Inhalte bleiben innerhalb des (farbigen) Abschnitts */
.sec { position: relative; display: flow-root; width: 100%; margin-left: auto; margin-right: auto; }
.wrap { width: 100%; margin: 0 auto; }
.row { display: flex; flex-wrap: wrap; width: 100%; max-width: var(--container); margin-left: auto; margin-right: auto; }
.col { min-width: 0; }
.col-1 { width: 8.3333%; } .col-2 { width: 16.6667%; } .col-3 { width: 25%; } .col-4 { width: 33.3333%; }
.col-5 { width: 41.6667%; } .col-6 { width: 50%; } .col-7 { width: 58.3333%; } .col-8 { width: 66.6667%; }
.col-9 { width: 75%; } .col-10 { width: 83.3333%; } .col-11 { width: 91.6667%; } .col-12 { width: 100%; }

.tc { text-align: center; }
.tr { text-align: right; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }

figure.img { line-height: 0; }
figure.img img { display: inline-block; }
.w-full { width: 100%; }
.ico-pre { margin-right: .35em; }
.icon { line-height: 1; }

/* ---------- Buttons ---------- */
.btn-wrap .btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1.25; cursor: pointer;
  transition: filter .2s, transform .2s, opacity .2s;
}
.btn:hover { opacity: 1; filter: brightness(1.06); transform: translateY(-1px); }
.btn-block { display: flex !important; width: 100%; }
.btn-sub { font-size: .7em; opacity: .9; margin-top: 2px; }

/* ---------- Rechtstexte (Datenschutz) ---------- */
.legal { font-size: 18px; line-height: 1.6; color: var(--grey); }
.legal h2 { margin: 48px 0 12px; font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--dark); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin: 28px 0 8px; font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--dark); }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--gold); text-decoration: underline; overflow-wrap: anywhere; }
.legal .legal-stand { margin-top: 40px; font-size: 15px; }
@media (max-width: 767px) {
  .legal { font-size: 16px; }
  .legal h2 { font-size: 21px; margin-top: 36px; }
  .legal h3 { font-size: 18px; }
}

/* ---------- Kopfbereich ---------- */
.site-header { position: relative; z-index: 50; background: #fff; }
.site-header .inner {
  max-width: 1190px; height: var(--header-h); margin: 0 auto; padding: 0 15px;
  display: flex; align-items: center;
}
.logo { display: block; line-height: 0; }
.logo img { width: 160px; height: auto; }
.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 72px; list-style: none; padding: 0; }
.nav-item { position: relative; }
.nav-top {
  font: 400 20px/1.35 var(--f-source); color: #000; background: none; border: 0; padding: 8px 0; cursor: pointer;
}
.nav-top::after { content: "›"; display: inline-block; margin-left: 6px; transform: rotate(90deg); }
.nav-top:focus-visible { outline-offset: 6px; border-radius: 4px; }
.dropdown {
  position: absolute; top: 100%; left: 10px; z-index: 100;
  display: flex; flex-direction: column; gap: .5em; padding: 14px 24px;
  background: #fff; list-style: none; white-space: nowrap;
  border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .nav-item.open .dropdown { visibility: visible; opacity: 1; }
.dropdown a { font: 400 20px/1.35 var(--f-source); color: #000; }
.dropdown a[aria-current="page"] { color: var(--gold); }
.header-cta {
  margin-left: 138px; max-width: 190px; padding: 11px 40px; border-radius: 6px;
  background: var(--gold-gradient); color: #fff; text-align: center;
  font: 500 20px/1.05 var(--f-source);
}
.header-cta:hover { opacity: 1; filter: brightness(1.06); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--dark); margin: 6px 0; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Eingebettete Videos & Karten (erst nach Klick laden) ---------- */
.video, .embed { position: relative; width: 100%; overflow: hidden; background: #1f2a2e; border-radius: inherit; }
.video { aspect-ratio: 16 / 9; }
.video iframe, .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 16px; color: #fff; text-align: center; font-size: 13px; line-height: 1.4;
  background: rgba(17, 25, 28, .45) center / cover no-repeat;
}
.consent::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.consent > * { position: relative; }
.consent button {
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 6px; cursor: pointer;
  padding: 10px 22px; background: var(--gold-gradient); color: #fff; font: 600 16px var(--f-source);
}
.consent small { max-width: 420px; opacity: .9; }
.consent a { text-decoration: underline; }

/* ---------- Mobil ---------- */
@media (max-width: 991px) {
  .nav > ul { gap: 32px; }
  .header-cta { margin-left: 32px; }
}
@media (max-width: 860px) {
  :root { --header-h: 76px; }
  .burger { display: block; }
  .logo img { width: 140px; }
  .header-cta { display: none; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    background: #fff; box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 80vh; overflow-y: auto; }
  .nav > ul { flex-direction: column; gap: 0; padding: 8px 20px 20px; }
  .nav-top { width: 100%; text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .dropdown { position: static; visibility: visible; opacity: 1; padding: 6px 0 10px 16px; display: none; box-shadow: none; border-radius: 0; }
  .nav-item.open .dropdown { display: flex; }
  .nav .mobile-cta { display: block; margin-top: 16px; }
  .nav .mobile-cta .header-cta { display: block; margin: 0; max-width: none; padding: 12px 20px; font-size: 16px; }
}
@media (min-width: 861px) { .nav .mobile-cta { display: none; } }

@media (max-width: 767px) {
  .col { width: 100% !important; }
  /* Kleine Spalten (Logos, Bewertungen, Icons) bleiben nebeneinander */
  .col-1 { width: 25% !important; }
  .col-1 .icon { text-align: center; }
  /* Abstand zwischen untereinander gestapelten Spalten (Karten, Text/Bild) */
  .row:not(.row-grid) > .col:not(.col-1) + .col:not(.col-1) { margin-top: 24px; }
  /* Erster Abschnitt (Startseite: Hero) zentriert und ohne großen Leerraum oben */
  main > .sec:first-child { text-align: center; padding-bottom: 32px !important; }
  main > .sec:first-child > .wrap > .row:first-child { padding-top: 32px !important; }
  main > .sec:first-child h1 { margin-top: 0 !important; }
  main > .sec:first-child .sec .row { padding-top: 24px !important; }
  .row-grid > .col-2 { width: 33.3333% !important; }
  .row-grid > .col-3 { width: 50% !important; }
  /* Siegel-Reihe (BVMW, Google, Top Company …): alle vier nebeneinander, mittig ausgerichtet */
  .row-grid:has(> .col-3:nth-child(4):last-child) { align-items: center; padding-left: 8px !important; padding-right: 8px !important; }
  .row-grid:has(> .col-3:nth-child(4):last-child) > .col-3 { width: 25% !important; }
  .row-grid:has(> .col-3:nth-child(4):last-child) .col-inner { margin-left: 4px; margin-right: 4px; }
  .row-grid:has(> .col-3:nth-child(4):last-child) figure.img { text-align: center; }
  .row-grid:has(> .col-3:nth-child(4):last-child) img { width: auto; max-width: 100%; max-height: 72px; }
  .row { max-width: 100% !important; }
  .sec, .wrap { max-width: 100% !important; }
  [class*="mt--"] { margin-top: 0 !important; }
}
