/* Analytics Ruhr, Kfz-Sachverständigenbüro.
   Gestaltung aus der Arbeit des Gutachters: Überschriften in einer Schildschrift (wie Verkehrsschilder),
   Fotos im Sucherrahmen seiner Kamera mit Bildnummern wie in der Lichtbildmappe eines Gutachtens,
   die Bewertung als Prüfplakette, die Städte als gelbe Wegweiser. Markenfarben Grün und Nachtblau bleiben. */
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --nacht: #0f2242; --nacht-tief: #0a1830; --gruen: #0a8f5f; --gruen-tief: #07724b; --gruen-hell: #dcf1e8;
  --papier: #f2f5f4; --weiss: #fff; --tinte: #141b26; --stein: #566273; --linie: #cfd6dc; --kreide: #ffd23f; --bernstein: #dc9c00;
  --blau: var(--nacht); --grau: var(--stein);
  --schild: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --text: "Barlow", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --breite: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); font-size: 18px; line-height: 1.6; color: var(--tinte); background: var(--papier); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen-tief); text-underline-offset: 3px; }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3 { font-family: var(--schild); color: var(--nacht); margin: 0; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(3.1rem, 8.4vw, 6.3rem); line-height: .93; letter-spacing: -.012em; }
h2 { font-weight: 700; font-size: clamp(2.2rem, 4.8vw, 3.5rem); line-height: 1; letter-spacing: -.008em; }
h3 { font-weight: 600; font-size: 1.55rem; line-height: 1.12; }
.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--kreide); outline-offset: 3px; }
.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 12px; top: 12px; background: #fff; padding: 10px 14px; z-index: 100; }

/* Kopf */
.leiste { background: var(--nacht); color: #fff; font-size: 15px; }
.leiste .wrap { display: flex; gap: 18px; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.leiste a { color: #fff; font-weight: 600; text-decoration: none; }
.sterne { color: var(--bernstein); letter-spacing: 2px; }
.leiste .sterne, .dunkel .sterne { color: var(--kreide); }
.kopf { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; }
.logo img { width: 188px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--nacht); text-decoration: none; font-weight: 600; font-size: 16.5px; padding: 8px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gruen); }
.nav .unter { position: relative; }
.nav .unter > div { display: none; position: absolute; top: 100%; left: -16px; background: #fff; border: 1px solid var(--linie); padding: 10px 16px; min-width: 250px; box-shadow: 0 14px 30px rgba(15, 34, 66, .14); }
.nav .unter:hover > div, .nav .unter:focus-within > div { display: block; }
.nav .unter > div a { display: block; border: 0; padding: 7px 0; }
.nav .unter > div a:hover { color: var(--gruen-tief); }
.kopf-cta { display: flex; gap: 10px; align-items: center; }
.kurz { display: none; }
.menue { display: none; background: none; border: 2px solid var(--nacht); border-radius: 4px; width: 46px; height: 46px; cursor: pointer; }
.menue span { display: block; width: 20px; height: 2px; background: var(--nacht); margin: 4px auto; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--schild); font-weight: 600; font-size: 1.3rem; letter-spacing: .01em; line-height: 1.1; text-decoration: none; border-radius: 4px; padding: 14px 24px; border: 2px solid transparent; cursor: pointer; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-tel { background: var(--gruen); color: #fff; }
.btn-tel:hover { background: var(--gruen-tief); }
.btn-wa { background: var(--nacht); color: #fff; }
.btn-wa svg { color: #37d67a; }
.btn-wa:hover { background: var(--nacht-tief); }
.btn-hell { background: transparent; color: var(--nacht); border-color: var(--nacht); }
.btn-hell:hover { background: var(--nacht); color: #fff; }
.btn-gross { padding: 17px 28px; font-size: 1.5rem; }
.btn-klein { padding: 10px 16px; font-size: 1.15rem; }
.dunkel .btn-wa { background: #fff; color: var(--nacht); }
.dunkel .btn-wa svg { color: var(--gruen); }
.dunkel .btn-hell { color: #fff; border-color: #fff; }

/* Fotos im Sucherrahmen */
.foto { position: relative; margin: 0; --rahmen: var(--nacht); --ab: -12px; }
.foto .rahmen { position: relative; display: block; }
.foto img { width: 100%; object-fit: cover; }
.foto .rahmen::after { content: ""; position: absolute; inset: var(--ab); pointer-events: none;
  background:
    linear-gradient(var(--rahmen), var(--rahmen)) top left / 34px 3px, linear-gradient(var(--rahmen), var(--rahmen)) top left / 3px 34px,
    linear-gradient(var(--rahmen), var(--rahmen)) top right / 34px 3px, linear-gradient(var(--rahmen), var(--rahmen)) top right / 3px 34px,
    linear-gradient(var(--rahmen), var(--rahmen)) bottom left / 34px 3px, linear-gradient(var(--rahmen), var(--rahmen)) bottom left / 3px 34px,
    linear-gradient(var(--rahmen), var(--rahmen)) bottom right / 34px 3px, linear-gradient(var(--rahmen), var(--rahmen)) bottom right / 3px 34px;
  background-repeat: no-repeat; }
.foto figcaption { font-size: 14.5px; color: var(--stein); margin-top: 20px; line-height: 1.35; }
.dunkel .foto { --rahmen: #fff; }
.dunkel .foto figcaption { color: #b9c4d6; }

/* Bühne */
.buehne { background: var(--papier); overflow: hidden; }
.buehne .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: center; padding-top: 64px; padding-bottom: 76px; }
.buehne .lead { font-size: 1.32rem; line-height: 1.45; max-width: 31em; margin: 26px 0 0; color: #27313f; }
.knoepfe { display: flex; gap: 12px; flex-wrap: wrap; }
.buehne .knoepfe { margin: 30px 0 22px; }
.haken { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; font-weight: 600; color: var(--nacht); }
.haken li::before { content: "✓"; color: var(--gruen); font-weight: 700; margin-right: 8px; }
.dunkel .haken { color: #fff; }
.dunkel .haken li::before { color: var(--kreide); }
.buehne .bild { position: relative; }
.buehne .foto img { aspect-ratio: 4 / 5; }
.plakette { position: absolute; left: -66px; bottom: 120px; width: 156px; transform: rotate(-9deg); filter: drop-shadow(0 8px 14px rgba(15, 34, 66, .28)); z-index: 2; display: block; }
.plakette svg { width: 100%; height: auto; display: block; }
.bruecke { font-size: 14.5px; color: var(--stein); padding: 16px 0 0; }
.bruecke a { color: var(--stein); }
@media (prefers-reduced-motion: no-preference) {
  .buehne .foto .rahmen::after { animation: scharf .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .buehne .foto img { animation: klar .9s ease-out .15s both; }
  .plakette { animation: kleben .5s cubic-bezier(.3, 1.5, .5, 1) .95s both; }
}
@keyframes scharf { from { inset: -40px; opacity: 0; } to { inset: var(--ab); opacity: 1; } }
@keyframes klar { from { filter: blur(7px); } to { filter: blur(0); } }
@keyframes kleben { from { opacity: 0; transform: rotate(-22deg) scale(1.5); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }

/* Abschnitte */
.abschnitt { padding: 96px 0; }
.abschnitt.weiss { background: #fff; }
.abschnitt.dunkel { background: var(--nacht); color: #dfe6f0; }
.dunkel h2, .dunkel h3 { color: #fff; }
.dunkel a { color: #fff; }
.kopfzeile { margin-bottom: 44px; }
.kopfzeile p { font-size: 1.2rem; color: var(--stein); margin: 16px 0 0; max-width: 40em; }
.dunkel .kopfzeile p { color: #b9c4d6; }

/* Leistungen als Posten, nicht als Kacheln */
.raster { display: grid; gap: 0 56px; }
.r3 { grid-template-columns: repeat(3, 1fr); }
.posten { border-top: 3px solid var(--nacht); padding: 20px 0 38px; }
.posten h3 { margin-bottom: 8px; }
.posten p { margin-bottom: .6em; color: #2c3644; }
.posten .mehr { font-weight: 600; }

/* Ablauf: echte Reihenfolge, deshalb Ziffern */
.schritte { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; counter-reset: s; }
.schritt { counter-increment: s; }
.schritt::before { content: counter(s); display: block; font-family: var(--schild); font-weight: 700; font-size: 6.2rem; line-height: .82; color: var(--gruen); margin-bottom: 16px; }
.schritt h3 { margin-bottom: 8px; }
.schritt p { margin: 0; }

.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 84px; align-items: center; }
.zwei .foto img { aspect-ratio: 4 / 3; }
.zwei h2 { margin-bottom: 20px; }
.liste { padding: 0; margin: 0 0 1.4em; list-style: none; max-width: 40em; }
.liste li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px solid var(--linie); }
.liste li::before { content: "✓"; position: absolute; left: 0; color: var(--gruen); font-weight: 700; }
.dunkel .liste li { border-bottom-color: #2b426b; }
.dunkel .liste li::before { color: var(--kreide); }

/* Bewertungen */
.bew-zeile { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; font-size: 1.15rem; margin-top: 14px; }
.bew-zeile .sterne { font-size: 1.35rem; }
.bew-gross { margin: 0 0 54px; max-width: 30em; }
.bew-gross p { font-family: var(--schild); font-weight: 600; font-size: clamp(1.75rem, 3.3vw, 2.7rem); line-height: 1.12; color: var(--nacht); max-width: none; margin: 0 0 16px; }
.bew-rest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 56px; }
.stimme { margin: 0; border-top: 1px solid var(--linie); padding: 22px 0 28px; }
.stimme p { margin: 8px 0 12px; }
.stimme footer, .bew-gross footer { font-weight: 600; color: var(--nacht); }
.stimme footer span, .bew-gross footer span { font-weight: 400; color: var(--stein); }

/* Lichtbildmappe */
.mappe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 40px; }
.mappe .foto { --ab: -9px; }
.mappe .foto img { aspect-ratio: 3 / 4; }

/* Wegweiser */
.wegweiser { display: flex; flex-wrap: wrap; gap: 12px 10px; margin: 0 0 26px; }
.weg { display: inline-block; background: var(--kreide); color: #10151d; font-family: var(--schild); font-weight: 700; font-size: 1.45rem; line-height: 1; text-decoration: none; padding: 13px 40px 13px 18px; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%); }
.weg:hover, .weg:focus-visible { background: var(--nacht); color: #fff; }

/* Fragen */
.fragen { max-width: 54em; border-bottom: 1px solid var(--nacht); }
details { border-top: 1px solid var(--nacht); }
summary { cursor: pointer; font-family: var(--schild); font-weight: 600; font-size: 1.5rem; line-height: 1.15; color: var(--nacht); padding: 20px 50px 20px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 2rem; color: var(--gruen); font-family: var(--text); font-weight: 400; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 22px; }

/* Abschluss und Formular */
.ruf { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; }
.ruf h2 { margin-bottom: 18px; }
.ruf .knoepfe { margin: 28px 0 26px; }
.formular { background: #fff; padding: 28px; color: var(--tinte); border-radius: 4px; }
.formular h3 { color: var(--nacht); margin-bottom: 4px; }
.formular label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 5px; color: var(--nacht); }
.formular input, .formular textarea { width: 100%; border: 1.5px solid #aeb8c3; border-radius: 4px; padding: 12px 13px; font: inherit; font-size: 17px; background: #fff; }
.formular input:focus, .formular textarea:focus { outline: 3px solid var(--kreide); outline-offset: 0; border-color: var(--nacht); }
.formular .zeile { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.formular .zeile .btn { flex: 1; min-width: 190px; font-size: 1.2rem; }
.formular .btn-wa { background: var(--nacht); color: #fff; }
.formular .btn-hell { color: var(--nacht); border-color: var(--nacht); }
.formular .klein { font-size: 13.5px; color: var(--stein); margin: 14px 0 0; }
.formular .klein a { color: var(--gruen-tief); }
.formular .ok { display: none; background: var(--gruen-hell); color: var(--gruen-tief); padding: 12px 14px; font-weight: 600; margin-top: 14px; border-radius: 4px; }
.formular .ok.an { display: block; }

/* Unterseiten */
.seitenkopf { padding: 60px 0 8px; }
.seitenkopf h1 { font-size: clamp(2.7rem, 6.6vw, 4.9rem); }
.seitenkopf p { font-size: 1.25rem; color: #27313f; margin: 22px 0 0; max-width: 40em; }
.text h2 { font-size: 2rem; margin: 1.5em 0 .4em; }
.text h3 { margin: 1.2em 0 .3em; }
.karte-kontakt h2 { margin-bottom: 22px; }
.karte-kontakt h3 { margin: 30px 0 8px; }
.karte-kontakt .btn { margin-bottom: 4px; }
.kartenlink { display: inline-block; font-weight: 600; }

/* Fuß */
.fuss { background: var(--nacht-tief); color: #b8c3d4; padding: 64px 0 96px; font-size: 16.5px; }
.fuss .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.fuss h4 { font-family: var(--schild); font-weight: 600; font-size: 1.35rem; color: #fff; margin: 0 0 12px; }
.fuss a { color: #b8c3d4; text-decoration: none; display: block; padding: 3px 0; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss .unten { grid-column: 1 / -1; border-top: 1px solid #22355a; padding-top: 20px; font-size: 14px; color: #8492a8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* WhatsApp-Knopf unten rechts, Cookie-Hinweis unten links */
.wa-knopf { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 10px; background: #1faa59; color: #fff; text-decoration: none; font-family: var(--schild); font-weight: 600; font-size: 1.3rem; border-radius: 999px; padding: 14px 22px 14px 16px; box-shadow: 0 10px 24px rgba(15, 34, 66, .3); }
.wa-knopf svg { width: 30px; height: 30px; }
.wa-knopf:hover { background: #178a47; }
.keks { position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: 370px; background: #fff; border: 2px solid var(--nacht); border-radius: 4px; padding: 16px; font-size: 15px; display: none; box-shadow: 0 14px 30px rgba(15, 34, 66, .2); }
.keks.an { display: block; }
.keks p { margin: 0 0 12px; }
.keks .zeile { display: flex; gap: 8px; }
.keks .btn { flex: 1; padding: 9px 12px; font-size: 1.15rem; }

@media (max-width: 1020px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linie); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px; box-shadow: 0 14px 30px rgba(15, 34, 66, .14); }
  .nav.offen { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--linie); }
  .nav .unter > div { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; }
  .menue { display: block; }
  .buehne .wrap { grid-template-columns: 1fr; gap: 54px; padding-top: 40px; padding-bottom: 60px; }
  .buehne .foto img { aspect-ratio: 4 / 3; }
  .plakette { left: auto; right: 6px; bottom: auto; top: -44px; width: 128px; }
  .zwei, .ruf { grid-template-columns: 1fr; gap: 48px; }
  .r3, .bew-rest { grid-template-columns: repeat(2, 1fr); }
  .schritte { grid-template-columns: 1fr; gap: 36px; }
  .schritt { display: grid; grid-template-columns: 76px 1fr; column-gap: 8px; }
  .schritt::before { grid-row: 1 / 3; font-size: 5rem; }
  .mappe { grid-template-columns: repeat(2, 1fr); }
  .fuss .wrap { grid-template-columns: 1fr 1fr; }
  .abschnitt { padding: 68px 0; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .leiste .lang { display: none; }
  .logo img { width: 142px; }
  .kopf .wrap { min-height: 66px; gap: 10px; }
  .kopf-cta .btn .lang { display: none; }
  .kopf-cta .btn .kurz { display: inline; }
  .r3, .bew-rest { grid-template-columns: 1fr; }
  .buehne .knoepfe .btn, .ruf .knoepfe .btn { width: 100%; }
  .btn-gross { font-size: 1.3rem; padding: 15px 16px; }
  .buehne .lead { font-size: 1.18rem; margin-top: 18px; }
  .buehne .knoepfe { margin: 22px 0 18px; }
  .foto { --ab: -8px; }
  .mappe { gap: 34px 26px; }
  .wa-knopf { right: 14px; bottom: 14px; padding: 14px; }
  .wa-knopf span { display: none; }
  .keks { left: 12px; right: 84px; bottom: 14px; max-width: none; padding: 12px; font-size: 14px; }
  .fuss .wrap { grid-template-columns: 1fr; }
  .abschnitt { padding: 56px 0; }
}
