/* ==========================================================================
   website-renovierung.de – Stylesheet aller Seiten (Startseite, Danke-Seite,
   Rechtstexte, Infovideo)

   Idee: Baustelle statt Agentur. Farben sind RAL-Verkehrsfarben, die jeder
   Handwerker kennt: Anthrazitgrau 7016, Verkehrsgelb 1023, Verkehrsgrün 6024.
   Schrift: Archivo (variabel), schmal und kräftig für Überschriften wie auf
   einem Bauschild, normal breit für Fließtext.

   Inhalt
   1. Grundlagen   2. Kopf   3. Hero + Schnellformular   4. Vorher/Nachher-Regler
   5. (entfernt)   6. Ablauf 7. Projekte  8. Haken  9. Preise  10. Assistent
   11. (entfernt)  12. Über mich  13. Fragen  14. Anfrageformular  15. Fuß
   16. Mobile Leiste  17. Einwilligung  18. Danke-Seite, Rechtstexte  19. Infovideo
   ========================================================================== */

@font-face {
    font-family: 'Archivo';
    src: url('/fonts/archivo.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
}

:root {
    --anthrazit: #293133;     /* RAL 7016 */
    --anthrazit-tief: #1f2527;
    --anthrazit-linie: #48535a;
    --gelb: #f7b500;          /* RAL 1023 */
    --gelb-kante: #b98700;
    --gelb-hauch: #fff3cc;
    --gruen: #008351;         /* RAL 6024 */
    --gruen-hauch: #e3f3ea;
    --kalk: #f1f2ef;
    --weiss: #ffffff;
    --beton: #5b6468;
    --linie: #d4d8d5;
    --rot: #b3261e;

    --schrift: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --breite: 1180px;
    --rand: clamp(1rem, 4vw, 2rem);
    --abstand: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    font-family: var(--schrift);
    font-size: 1.0625rem;
    font-weight: 420;
    line-height: 1.6;
    color: var(--anthrazit);
    background: var(--weiss);
    -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) {
    body { font-size: 1.125rem; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
    outline: 3px solid var(--anthrazit);
    outline-offset: 3px;
    border-radius: 4px;
}
.dunkel :focus-visible { outline-color: var(--gelb); }

h1, h2, h3 {
    margin: 0;
    font-weight: 800;
    font-stretch: 80%;
    line-height: 1.05;
    letter-spacing: -0.005em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.4vw + 0.9rem, 4.4rem); }
h2 { font-size: clamp(1.85rem, 3.2vw + 0.9rem, 3rem); }
h3 { font-size: 1.3rem; font-stretch: 92%; font-weight: 720; line-height: 1.2; }

p { margin: 0; }
p + p { margin-top: 0.9em; }

.wrap {
    width: 100%;
    max-width: var(--breite);
    margin: 0 auto;
    padding: 0 var(--rand);
}

.abschnitt { padding: var(--abstand) 0; }
.abschnitt-kalk { background: var(--kalk); }

.kopfzeile { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.kopfzeile p { margin-top: 1rem; color: var(--beton); font-size: 1.1em; }
.dunkel .kopfzeile p { color: #c9d0d2; }

.ohne-umbruch { white-space: nowrap; }

.nur-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Knöpfe: Verkehrsgelb mit dunkler Unterkante, wie ein Taster */
.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    padding: 0.85rem 1.4rem;
    border: 0;
    border-radius: 6px;
    background: var(--gelb);
    color: var(--anthrazit-tief);
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 760;
    font-stretch: 90%;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 3px 0 var(--gelb-kante);
    transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease;
}
.knopf:hover { background: #ffc21a; text-decoration: none; }
.knopf:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gelb-kante); }
.knopf[disabled] { opacity: 0.7; cursor: progress; }
.knopf-breit { width: 100%; }
.knopf-leise {
    background: transparent;
    color: var(--anthrazit);
    box-shadow: inset 0 0 0 2px var(--anthrazit);
}
.knopf-leise:hover { background: var(--anthrazit); color: var(--weiss); }
.knopf-leise:active { box-shadow: inset 0 0 0 2px var(--anthrazit); }

.symbol { width: 1.15em; height: 1.15em; flex: none; }

/* Haken-Liste (kurze Zusagen) */
.zusagen {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 560;
}
.zusagen li { display: flex; align-items: center; gap: 0.4rem; }
.zusagen li::before {
    content: '';
    width: 1.05rem; height: 1.05rem; flex: none;
    background: var(--gruen);
    -webkit-mask: url('/bilder/haken.svg') center / contain no-repeat;
    mask: url('/bilder/haken.svg') center / contain no-repeat;
}

/* ==========================================================================
   2. Kopf
   ========================================================================== */

.kopf {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--linie);
    backdrop-filter: saturate(1.4) blur(8px);
}
.kopf-innen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}
.marke {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    font-weight: 800;
    font-stretch: 78%;
    font-size: 1.3rem;
    letter-spacing: 0.002em;
    white-space: nowrap;
}
.marke:hover { text-decoration: none; }
.marke-zeichen { width: 1.6rem; height: 1.6rem; flex: none; }
.marke-de { color: var(--beton); font-weight: 600; }

.kopf-nav { display: none; gap: 1.6rem; font-weight: 560; font-size: 0.98rem; }
.kopf-nav a { text-decoration: none; }
.kopf-nav a:not(.knopf):hover { text-decoration: underline; }
.kopf-nav-knopf { display: none; }

/* Auf dem Handy übernimmt die Leiste unten den Knopf (16. Mobile Leiste) */
.kopf-knopf { display: none; min-height: 2.9rem; padding: 0.6rem 1.1rem; font-size: 1rem; }
@media (min-width: 560px) { .kopf-knopf { display: inline-flex; } }
@media (min-width: 1080px) { .kopf-nav { display: flex; } }

/* Burger-Menü: bis 1079px klappt die Hauptnavigation unter dem Kopf auf */
.kopf-burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 2.75rem; height: 2.75rem;
    flex: none;
    margin-right: -0.5rem;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--anthrazit);
    cursor: pointer;
}
.kopf-burger i {
    width: 1.5rem; height: 3px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.kopf-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.kopf-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.kopf-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (min-width: 1080px) { .kopf-burger { display: none; } }
@media (max-width: 1079px) {
    .kopf-knopf { margin-left: auto; }
    .kopf-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.4rem var(--rand) 1rem;
        background: var(--weiss);
        border-bottom: 1px solid var(--linie);
        box-shadow: 0 18px 30px -18px rgba(31, 37, 39, 0.45);
        font-size: 1.05rem;
    }
    .kopf-nav.offen { display: flex; }
    .kopf-nav a:not(.knopf) { padding: 0.7rem 0; border-bottom: 1px solid var(--linie); }
    .kopf-nav-knopf { display: inline-flex; margin-top: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) { .kopf-burger i { transition: none; } }

/* ==========================================================================
   3. Hero
   ========================================================================== */

.hero {
    padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2.5rem, 6vw, 5rem);
    background:
        linear-gradient(180deg, var(--weiss) 0%, var(--weiss) 60%, var(--kalk) 100%);
}
.hero-raster {
    display: grid;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}
@media (min-width: 1000px) {
    .hero-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
}

.hero h1 { font-size: clamp(2.35rem, 3.4vw + 0.9rem, 3.6rem); }
/* Gelber Textmarker wie auf dem Titelbild des Infovideos */
.marker {
    padding: 0 0.08em;
    margin: 0 -0.08em;
    background: linear-gradient(180deg, transparent 62%, var(--gelb) 62%, var(--gelb) 96%, transparent 96%);
    color: inherit;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.hero-text {
    margin-top: 1.25rem;
    max-width: 36rem;
    font-size: 1.12em;
    color: #3d4649;
}
.hero-text strong { font-weight: 700; color: var(--anthrazit); }

.schnell {
    margin-top: 1.75rem;
    max-width: 34rem;
}
.schnell label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 680;
    font-size: 0.98rem;
}
.schnell-zeile {
    display: grid;
    gap: 0.6rem;
}
@media (min-width: 560px) {
    .schnell-zeile { grid-template-columns: minmax(0, 1fr) auto; }
}
.feld {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.8rem 0.95rem;
    border: 2px solid var(--anthrazit);
    border-radius: 6px;
    background: var(--weiss);
    color: var(--anthrazit);
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 480;
}
.feld::placeholder { color: #8a9396; }
textarea.feld { min-height: 7rem; resize: vertical; }
.feld:focus { outline: none; box-shadow: 0 0 0 4px var(--gelb-hauch), 0 0 0 6px var(--gelb); }
.feld[aria-invalid="true"] { border-color: var(--rot); }

.schnell .zusagen { margin-top: 0.9rem; }
.schnell-ohne {
    display: inline-block;
    margin-top: 0.7rem;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.95rem;
    color: var(--beton);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    cursor: pointer;
}
/* Hero-Formular aufgeklappt: Adresse, Name, E-Mail, Telefon untereinander */
.schnell [hidden] { display: none !important; }
.schnell.offen .schnell-zeile { grid-template-columns: minmax(0, 1fr); }
.schnell .gruppe, .schnell .gruppe + .gruppe { margin-top: 0.8rem; }
.schnell .gruppe > label { margin-bottom: 0.35rem; }
.schnell .hinweis-fehler { margin: 0.7rem 0 0; }
.schnell-absenden { width: 100%; margin-top: 1rem; }
.schnell .datenschutz-hinweis { margin-top: 0.6rem; }

.persoenlich {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.75rem;
    max-width: 34rem;
    font-size: 0.97rem;
    line-height: 1.4;
}
.persoenlich picture { flex: none; }
.persoenlich img {
    width: 3.4rem; height: 3.4rem;
    border-radius: 50%;
    flex: none;
    box-shadow: 0 0 0 3px var(--weiss), 0 0 0 4px var(--linie);
}
.persoenlich strong { font-weight: 700; }
.persoenlich span { color: var(--beton); }

/* Hero auf dem Handy: Vergleich direkt unter die Überschrift, alles enger, damit
   Überschrift, Vergleich und Formular möglichst auf den ersten Bildschirm passen */
@media (max-width: 599px) {
    .kopf-innen { min-height: 3rem; }
    .marke { font-size: 1.12rem; gap: 0.45rem; }
    .marke-zeichen { width: 1.35rem; height: 1.35rem; }
    html { scroll-padding-top: 3.75rem; }

    .hero { padding: 0.8rem 0 1.75rem; }
    .hero-raster { gap: 0.7rem; }
    .hero-links { display: contents; }
    .hero h1 { order: 1; max-width: none; font-size: clamp(1.45rem, 6.9vw, 1.85rem); }
    .hero .vergleich-regler { order: 2; }
    .hero .schnell { order: 3; }
    .hero .persoenlich { order: 4; }
    /* Erklärtext auf dem Handy unter Jonathans Profilbild statt unter der Überschrift */
    .hero-text { order: 5; margin-top: 0.1rem; font-size: 0.98rem; }
    .hero .regler-fuss { display: none; }

    .schnell { margin-top: 0; }
    .schnell label { margin-bottom: 0.25rem; font-size: 0.95rem; }
    .schnell-zeile { gap: 0.4rem; }
    .schnell .feld, .schnell .knopf { min-height: 2.75rem; padding-top: 0.45rem; padding-bottom: 0.45rem; font-size: 1rem; }
    .schnell .zusagen { margin-top: 0.55rem; font-size: 0.82rem; gap: 0.2rem 0.8rem; }
    .schnell-ohne { margin-top: 0.4rem; font-size: 0.88rem; }
    .schnell .gruppe, .schnell .gruppe + .gruppe { margin-top: 0.55rem; }
    .schnell .gruppe > label { margin-bottom: 0.2rem; font-size: 0.92rem; }
    .schnell .hilfe { margin-top: 0.2rem; font-size: 0.8rem; }
    .schnell-absenden { margin-top: 0.75rem; }
    .persoenlich { margin-top: 0.4rem; font-size: 0.92rem; }
    .persoenlich img { width: 2.8rem; height: 2.8rem; }

    /* Handy-Ansicht im Hero: deutlich schmaleres Hochformat als die Computer-Ansicht */
    .hero .vergleich-regler[data-geraet="mobil"] .rahmen { max-width: min(15rem, 62vw); }
    .hero .buehne-griff::after { width: 2.5rem; height: 2.5rem; margin: -1.25rem 0 0 -1.25rem; background-size: 1.4rem; }
    .hero .rahmen-wahl button:nth-of-type(n+6) { display: none; }
    .hero .rahmen-wahl-titel { display: none; }
}
@media (max-width: 359px) {
    .hero .rahmen-wahl { gap: 3px; }
    .hero .rahmen-wahl button { width: 1.5rem; height: 1.5rem; }
    .hero .geraet-wahl button { padding: 0 0.45rem; }
}

/* ==========================================================================
   4. Vorher/Nachher-Regler
   ========================================================================== */

.vergleich-regler { position: relative; }

.rahmen {
    position: relative;
    border-radius: 10px;
    background: var(--anthrazit);
    padding: 0 6px 6px;
    box-shadow: 0 30px 60px -30px rgba(31, 37, 39, 0.55);
}
/* Kopfleiste des Bildschirms: Fensterpunkte links, feiner Umschalter Computer/Handy rechts */
.rahmen-leiste {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.4rem 0.3rem 0.4rem 0.45rem;
}
.rahmen-punkte { display: flex; gap: 5px; }
.rahmen-punkte i { width: 8px; height: 8px; border-radius: 50%; background: var(--anthrazit-linie); }

/* Zahlen-Knöpfe im Hero: jede Zahl zeigt ein anderes Beispiel */
.rahmen-wahl { display: flex; align-items: center; gap: 4px; }
.rahmen-wahl-titel { margin-right: 0.3rem; color: #c9d0d2; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.01em; }
.rahmen-wahl button {
    width: 1.7rem; height: 1.7rem;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: rgba(247, 181, 0, 0.14);
    color: var(--gelb);
    box-shadow: inset 0 0 0 1.5px var(--gelb);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 760;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.rahmen-wahl button:hover { background: rgba(247, 181, 0, 0.32); }
.rahmen-wahl button[aria-pressed="true"] { background: var(--gelb); color: var(--anthrazit-tief); }
.rahmen-wahl button:focus-visible { outline-color: var(--gelb); outline-offset: 2px; }

.geraet-wahl {
    display: inline-flex;
    padding: 2px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.geraet-wahl button {
    min-height: 1.5rem;
    padding: 0 0.7rem;
    border: 0;
    border-radius: 999px;
    background: none;
    color: #a9b1b4;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
}
.geraet-wahl button:hover { color: var(--weiss); }
.geraet-wahl button[aria-pressed="true"] { background: var(--kalk); color: var(--anthrazit-tief); }

.buehne {
    --pos: 33%;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 4px;
    background: var(--kalk);
    user-select: none;
    touch-action: pan-y;
}
.vergleich-regler[data-geraet="mobil"] .rahmen { max-width: min(340px, 80vw); margin: 0 auto; border-radius: 26px; padding: 4px 8px 8px; }
.vergleich-regler[data-geraet="mobil"] .rahmen-leiste { flex-wrap: wrap; justify-content: center; padding: 0.35rem 0 0.4rem; }
.vergleich-regler[data-geraet="mobil"] .rahmen-wahl-titel { display: none; }
.vergleich-regler[data-geraet="mobil"] .rahmen-punkte { display: none; }
.vergleich-regler[data-geraet="mobil"] .buehne { aspect-ratio: 1 / 2; border-radius: 18px; }

.buehne img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.buehne .bild-nachher { clip-path: inset(0 0 0 var(--pos)); }

.buehne-griff {
    position: absolute;
    top: 0; bottom: 0;
    left: var(--pos);
    width: 4px;
    margin-left: -2px;
    background: var(--gelb);
    pointer-events: none;
}
.buehne-griff::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 2.9rem; height: 2.9rem;
    margin: -1.45rem 0 0 -1.45rem;
    border-radius: 50%;
    background: var(--gelb) url('/bilder/pfeile.svg') center / 1.6rem no-repeat;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.buehne-marke {
    position: absolute;
    top: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(31, 37, 39, 0.86);
    color: var(--weiss);
    font-size: 0.82rem;
    font-weight: 680;
    pointer-events: none;
}
.buehne-marke-vorher { left: 0.7rem; }
.buehne-marke-nachher { right: 0.7rem; background: var(--gelb); color: var(--anthrazit-tief); }

/* Das eigentliche Bedienelement liegt unsichtbar über der Bühne (Tastatur + Ziehen) */
.buehne-eingabe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
}
.buehne-eingabe:focus-visible + .buehne-griff::after { box-shadow: 0 0 0 3px var(--weiss), 0 0 0 6px var(--anthrazit); }

.regler-unterschrift {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--beton);
}
.regler-fuss {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    margin-top: 0.8rem;
}
.regler-fuss .regler-unterschrift { margin-top: 0; flex: 1 1 14rem; }
.knopf-klein { min-height: 2.6rem; padding: 0.5rem 1rem; font-size: 0.97rem; }

.regler-wahl {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}
.wahl {
    display: inline-flex;
    align-items: center;
    min-height: 2.6rem;
    padding: 0.45rem 0.9rem;
    border: 0;
    border-radius: 6px;
    background: var(--weiss);
    color: var(--anthrazit);
    box-shadow: inset 0 0 0 1px var(--linie);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}
.wahl:hover { box-shadow: inset 0 0 0 2px var(--anthrazit); text-decoration: none; }
.wahl[aria-pressed="true"] { background: var(--anthrazit); color: var(--weiss); box-shadow: none; }
.wahl-ihre { background: var(--gelb); color: var(--anthrazit-tief); box-shadow: 0 2px 0 var(--gelb-kante); font-weight: 720; }
.wahl-ihre:hover { background: #ffc21a; box-shadow: 0 2px 0 var(--gelb-kante); }
@media (max-width: 599px) {
    .regler-wahl { gap: 0.35rem; }
    .wahl { min-height: 2.35rem; padding: 0.35rem 0.7rem; font-size: 0.88rem; }
}

/* ==========================================================================
   6. Ablauf
   ========================================================================== */

.ablauf {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    counter-reset: schritt;
}
@media (min-width: 760px) { .ablauf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; } }
@media (min-width: 1100px) { .ablauf { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ablauf li {
    counter-increment: schritt;
    position: relative;
    padding-top: 3.4rem;
    border-top: 3px solid var(--anthrazit);
}
.ablauf li::before {
    content: counter(schritt);
    position: absolute;
    top: 0.8rem; left: 0;
    font-size: 2rem;
    font-weight: 820;
    font-stretch: 75%;
    line-height: 1;
    color: var(--anthrazit);
}
.ablauf li:last-child { border-top-color: var(--gelb); }
.ablauf h3 { margin-bottom: 0.45rem; }
.ablauf p { color: #3d4649; }
.ablauf .dauer { display: block; margin-top: 0.6rem; font-size: 0.92rem; font-weight: 650; color: var(--beton); }

/* ==========================================================================
   7. Projekte
   ========================================================================== */

.projekte .vergleich-regler { max-width: 1100px; margin: 0 auto; }
/* Kleine Laptop-Bildschirme (z. B. 1366x768): nur 2/3 so groß */
@media (min-width: 900px) and (max-height: 800px) {
    .projekte .vergleich-regler { max-width: 733px; }
}

/* ==========================================================================
   8. Wo ist der Haken?
   ========================================================================== */

.dunkel { background: var(--anthrazit); color: var(--weiss); }
.dunkel a { color: var(--weiss); }

.haken-raster {
    display: grid;
    gap: 2.25rem 3.5rem;
}
@media (min-width: 860px) { .haken-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.haken-punkt h3 { color: var(--weiss); margin-bottom: 0.55rem; }
.haken-punkt p { color: #d5dbdd; }
.haken-echt {
    padding: 1.4rem 1.5rem;
    border-radius: 6px;
    background: var(--anthrazit-tief);
    box-shadow: inset 4px 0 0 var(--gelb);
}
.haken-echt h3 { color: var(--gelb); }

/* ==========================================================================
   9. Preise
   ========================================================================== */

.anker {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 1rem;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.75rem;
    border-radius: 6px;
    background: var(--gruen-hauch);
    box-shadow: inset 0 0 0 1px #b9dcc8;
}
.anker strong { font-weight: 720; }
.anker-preis { font-size: 1.6rem; font-weight: 820; font-stretch: 80%; color: var(--gruen); }
.anker-preis s { color: var(--beton); font-weight: 600; font-size: 0.7em; margin-right: 0.35rem; text-decoration-thickness: 2px; }

.tarife {
    display: grid;
    gap: 1rem;
}
@media (min-width: 760px) { .tarife { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tarif {
    position: relative;
    padding: 1.5rem 1.4rem 1.4rem;
    border-radius: 8px;
    background: var(--weiss);
    box-shadow: inset 0 0 0 1px var(--linie);
}
.tarif-empfohlen { box-shadow: inset 0 0 0 3px var(--anthrazit); }
.tarif-hinweis {
    position: absolute;
    top: -0.85rem; left: 1.2rem;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    background: var(--gelb);
    font-size: 0.85rem;
    font-weight: 720;
}
.tarif-preis { margin: 0.5rem 0 0.35rem; font-size: 2.6rem; font-weight: 820; font-stretch: 78%; line-height: 1; }
.tarif-preis span { font-size: 1rem; font-weight: 560; font-stretch: 100%; color: var(--beton); }
.tarif p { color: var(--beton); font-size: 0.97rem; }

.zusatz {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.3rem 1rem;
    margin-top: 1rem;
    padding: 1rem 1.4rem;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px var(--linie);
    background: var(--weiss);
    font-size: 0.97rem;
}
.zusatz strong { font-weight: 720; }

.leistungen {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 3px solid var(--anthrazit);
}
.leistungen h3 { margin-bottom: 0.8rem; }
.leistungen .pruefliste li + li { margin-top: 0.55rem; }
.netto { margin-top: 1rem; font-size: 0.9rem; color: var(--beton); }

/* Prüfliste mit grünen Haken (Wartungsplan, Leistungen) */
.pruefliste { list-style: none; margin: 0; padding: 0; }
.pruefliste li { position: relative; padding-left: 1.75rem; }
.pruefliste li + li { margin-top: 0.35rem; }
.pruefliste li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.22em;
    width: 1.15rem; height: 1.15rem;
    background: var(--gruen);
    -webkit-mask: url('/bilder/haken.svg') center / contain no-repeat;
    mask: url('/bilder/haken.svg') center / contain no-repeat;
}
.pruefliste b { font-weight: 700; }

/* ==========================================================================
   9a. Pflege-Abo: Wartungsplan
   ========================================================================== */

.wartung {
    max-width: 58rem;
    border: 3px solid var(--anthrazit);
    border-radius: 4px;
    background: var(--weiss);
    box-shadow: 0 24px 50px -30px rgba(31, 37, 39, 0.45);
}
.wartung-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.2rem 1rem;
    padding: 0.95rem clamp(1rem, 3vw, 1.75rem);
    background: var(--anthrazit);
    color: var(--weiss);
}
.wartung-kopf h3 { font-size: clamp(1.35rem, 1.5vw + 0.8rem, 1.75rem); font-weight: 800; font-stretch: 82%; }
.wartung-kopf span { font-size: 0.92rem; font-weight: 560; color: #c4cbcd; }
.wartung dl { margin: 0; padding: 0.25rem clamp(1rem, 3vw, 1.75rem) 0.5rem; }
.wartung-zeile {
    display: grid;
    gap: 0.35rem 1.5rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--linie);
}
.wartung-zeile:last-child { border-bottom: 0; }
@media (min-width: 680px) {
    .wartung-zeile { grid-template-columns: 12rem minmax(0, 1fr); align-items: baseline; }
}
.wartung dt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 720;
    font-stretch: 88%;
    color: var(--beton);
}
.wartung dt::before { content: ''; width: 0.55rem; height: 0.55rem; flex: none; border-radius: 1px; background: var(--gelb); }
.wartung dd { margin: 0; }
.wartung h4 { margin: 0 0 0.35rem; font-size: 1.18rem; font-weight: 740; font-stretch: 90%; line-height: 1.25; }
.wartung dd p { color: #3d4649; }
.wartung dd a { font-weight: 650; white-space: nowrap; }

/* ==========================================================================
   10. Website-Assistent
   ========================================================================== */

.assistent-raster { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .assistent-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.assistent-raster h2 + p, .assistent-probe { margin-top: 1.1rem; }
.assistent-raster ul { margin: 1.2rem 0 0; padding-left: 1.2rem; }
.assistent-raster li + li { margin-top: 0.35rem; }

.chat {
    max-width: 30rem;
    padding: 1.1rem;
    border-radius: 12px;
    background: var(--weiss);
    box-shadow: inset 0 0 0 1px var(--linie), 0 24px 50px -30px rgba(31, 37, 39, 0.45);
    font-size: 0.97rem;
}
.chat-kopf {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.8rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--linie);
    font-weight: 680;
}
.chat-kopf::before { content: ''; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--gruen); }
.blase { max-width: 88%; padding: 0.7rem 0.9rem; border-radius: 12px; line-height: 1.45; }
.blase + .blase { margin-top: 0.6rem; }
.blase-sie { margin-left: auto; background: var(--anthrazit); color: var(--weiss); border-bottom-right-radius: 4px; }
.blase-assistent { background: var(--kalk); border-bottom-left-radius: 4px; }
.blase-assistent small { display: block; margin-top: 0.35rem; font-size: 0.82rem; font-weight: 650; color: var(--beton); }
.blase-assistent small span { text-decoration: underline; }

/* ==========================================================================
   12. Über mich
   ========================================================================== */

.ich-raster { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .ich-raster { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; } }
.ich-bild { border-radius: 8px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; max-width: 26rem; }
.ich-text p { max-width: 38rem; }
.ich-text h2 { margin-bottom: 1.1rem; }
.ich-kontakt {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* ==========================================================================
   13. Fragen
   ========================================================================== */

.fragen { max-width: 52rem; border-top: 3px solid var(--anthrazit); }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-stretch: 94%;
    font-size: 1.08rem;
    line-height: 1.35;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
    content: '+';
    flex: none;
    width: 1.6rem;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}
.fragen details[open] summary::after { content: '–'; }
.fragen details p { padding: 0 2.6rem 1.2rem 0; color: #3d4649; }

/* ==========================================================================
   14. Anfrageformular
   ========================================================================== */

.anfrage-raster { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .anfrage-raster { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; align-items: start; } }
/* Handy: Formular direkt unter die Überschrift, Zusagen und Telefon darunter */
@media (max-width: 959px) {
    .anfrage-raster { gap: 1.75rem; }
    .anfrage-text { display: contents; }
    .anfrage-text .kopfzeile { order: 1; margin-bottom: 0; }
    .anfrage-raster > div:last-child { order: 2; }
    .anfrage-text .zusagen { order: 3; margin-top: 0; }
    .anfrage-tel { order: 4; margin-top: 0; }
}

.anfrage-text .zusagen { flex-direction: column; margin-top: 1.5rem; font-size: 1rem; }
.anfrage-tel { margin-top: 2rem; font-size: 0.98rem; color: #c9d0d2; }
.anfrage-tel a { font-weight: 720; white-space: nowrap; }

.formular {
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 10px;
    background: var(--weiss);
    color: var(--anthrazit);
}
.dunkel .formular a { color: var(--anthrazit); }  /* weiße Karte im dunklen Abschnitt */
.schritt-titel { font-size: 1.45rem; margin-bottom: 0.3rem; }
.schritt-info { color: var(--beton); font-size: 0.95rem; margin-bottom: 1.2rem; }

.formular fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.formular fieldset[hidden] { display: none; }
.gruppe + .gruppe { margin-top: 1rem; }
.gruppe > label, .gruppe legend {
    display: block;
    margin-bottom: 0.4rem;
    padding: 0;
    font-weight: 680;
    font-size: 0.98rem;
}
.gruppe .hilfe { display: block; margin-top: 0.35rem; font-size: 0.88rem; color: var(--beton); }

.wahlfeld {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px var(--linie);
    cursor: pointer;
    font-weight: 520;
    line-height: 1.35;
}
.wahlfeld + .wahlfeld { margin-top: 0.45rem; }
.wahlfeld input { width: 1.25rem; height: 1.25rem; margin: 0.05rem 0 0; flex: none; accent-color: var(--anthrazit); }
.wahlfeld:has(input:checked) { box-shadow: inset 0 0 0 2px var(--anthrazit); background: var(--gelb-hauch); }
.wahlfeld-klein { align-items: center; padding: 0; box-shadow: none; margin-top: 0.7rem; font-size: 0.95rem; }
.wahlfeld-klein input { margin: 0; }
.wahlfeld-klein:has(input:checked) { box-shadow: none; background: none; }

.formular-knoepfe {
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 0.6rem;
    margin-top: 1.4rem;
}
.formular-knoepfe .knopf:not(.knopf-leise) { flex: 1 1 14rem; }
.zurueck { min-width: 6.5rem; }

.hinweis-fehler {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    background: #fde7e6;
    color: #7c1a14;
    font-weight: 560;
    font-size: 0.97rem;
}
.datenschutz-hinweis { margin-top: 0.9rem; font-size: 0.85rem; color: var(--beton); }

.form-extra { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.spinner {
    width: 1.1rem; height: 1.1rem;
    border: 2.5px solid rgba(31, 37, 39, 0.3);
    border-top-color: var(--anthrazit-tief);
    border-radius: 50%;
    animation: drehen 0.8s linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .spinner { animation-duration: 2.4s; }
}

/* ==========================================================================
   15. Fuß
   ========================================================================== */

.fuss {
    padding: 2.5rem 0 6rem;
    background: var(--anthrazit-tief);
    color: #c4cbcd;
    font-size: 0.95rem;
}
@media (min-width: 560px) { .fuss { padding-bottom: 2.5rem; } }
.fuss-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.fuss .marke { color: var(--weiss); font-size: 1.15rem; }
.fuss .marke-de { color: #9aa3a6; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.fuss a { color: #e2e6e7; }
.fuss button {
    padding: 0;
    border: 0;
    background: none;
    color: #e2e6e7;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
}

/* ==========================================================================
   16. Mobile Leiste
   ========================================================================== */

.leiste {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem var(--rand) calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--linie);
    transform: translateY(110%);
    transition: transform 0.25s ease;
}
.leiste.sichtbar { transform: none; }
.leiste .knopf { flex: 1; min-height: 3rem; }
@media (min-width: 560px) { .leiste { display: none; } }
@media (prefers-reduced-motion: reduce) { .leiste { transition: none; } }

/* ==========================================================================
   17. Einwilligung (nur wenn eine Pixel-ID eingetragen ist)
   ========================================================================== */

.einwilligung {
    position: fixed;
    left: var(--rand); right: var(--rand); bottom: var(--rand);
    z-index: 60;
    max-width: 34rem;
    margin: 0 auto;
    padding: 1.1rem 1.2rem 1.2rem;
    border-radius: 10px;
    background: var(--weiss);
    color: var(--anthrazit);
    box-shadow: 0 0 0 1px var(--linie), 0 20px 50px -20px rgba(31, 37, 39, 0.55);
    font-size: 0.95rem;
    line-height: 1.5;
}
.einwilligung h2 { font-size: 1.2rem; font-stretch: 92%; margin-bottom: 0.4rem; }
.einwilligung-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1rem; }
.einwilligung-knoepfe .knopf { min-height: 2.9rem; font-size: 1rem; }
@media (max-width: 560px) {
    .einwilligung { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; padding: 0.85rem 0.95rem 0.95rem; font-size: 0.85rem; line-height: 1.45; }
    .einwilligung h2 { font-size: 1.02rem; margin-bottom: 0.25rem; }
    .einwilligung-knoepfe { margin-top: 0.7rem; }
    .einwilligung-knoepfe .knopf { min-height: 2.6rem; font-size: 0.95rem; }
}

/* ==========================================================================
   18. Danke-Seite und Rechtstexte
   ========================================================================== */

.danke { padding: clamp(2.5rem, 7vw, 5rem) 0 var(--abstand); }
.danke-raster { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .danke-raster { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 4rem; align-items: start; } }
.danke h1 { max-width: 16ch; }
.danke-text { margin-top: 1.1rem; font-size: 1.12em; max-width: 36rem; }
.danke .ablauf { margin-top: 2.5rem; }
@media (min-width: 1100px) { .danke .ablauf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.visitenkarte {
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--kalk);
}
.visitenkarte img { width: 6rem; height: 6rem; border-radius: 50%; margin-bottom: 1rem; }
.visitenkarte p + p { margin-top: 0.4rem; }
.visitenkarte .knopf { margin-top: 1.1rem; width: 100%; }
.visitenkarte .visitenkarte-mail { margin-top: 0.9rem; }

.recht { padding: clamp(2rem, 5vw, 4rem) 0 var(--abstand); }
.recht-inhalt { max-width: 48rem; }
.recht-inhalt h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); margin-bottom: 1.5rem; }
.recht-inhalt h2 { font-size: 1.5rem; margin: 2.2rem 0 0.7rem; }
.recht-inhalt h3 { font-size: 1.12rem; margin: 1.5rem 0 0.4rem; }
.recht-inhalt p, .recht-inhalt ul { color: #3d4649; }
.recht-inhalt ul { padding-left: 1.2rem; }
.recht-inhalt li + li { margin-top: 0.3rem; }
.recht-inhalt a { word-break: break-word; }

.fehlerseite { padding: clamp(3rem, 10vw, 7rem) 0; }
.fehlerseite p { margin: 1rem 0 1.75rem; color: var(--beton); max-width: 34rem; }

/* ==========================================================================
   19. Infovideo-Seite (/info-video)
   ========================================================================== */

.kopf-anruf { min-height: 2.6rem; padding: 0.45rem 0.9rem; font-size: 0.98rem; font-variant-numeric: tabular-nums; }
@media (max-width: 559px) {
    .kopf-anruf { padding: 0.45rem 0.75rem; }
    .kopf-anruf span { display: none; }
}

.iv-kopf {
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
    background: linear-gradient(180deg, var(--weiss) 0%, var(--weiss) 55%, var(--kalk) 100%);
}
.iv-kopf { text-align: center; }
.iv-kopf h1 { max-width: 1040px; margin-inline: auto; font-size: clamp(2rem, 3.6vw + 1rem, 3.4rem); }
.iv-name { display: block; }
.iv-text { margin: 1rem auto 0; max-width: 1040px; font-size: 1.1em; color: #3d4649; text-wrap: balance; }
/* Handy: Einleitung im Blocksatz (mit Silbentrennung, damit keine großen Lücken entstehen) */
@media (max-width: 700px) { .iv-text { text-align: justify; hyphens: auto; text-wrap: wrap; } }

.video-rahmen {
    position: relative;
    container-type: inline-size;
    max-width: 1040px;
    margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: var(--anthrazit-tief);
    /* Rahmen wie die Bildschirme der Vorher/Nachher-Beispiele */
    box-shadow: 0 0 0 6px var(--anthrazit), 0 30px 60px -30px rgba(31, 37, 39, 0.55);
}
.video-rahmen video { display: block; width: 100%; height: 100%; }
.video-vorschau {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: opacity 0.7s ease;
}
.video-start {
    position: absolute;
    right: 4%; bottom: 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6.25cqw; height: 6.25cqw;
    min-width: 2.75rem; min-height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--gelb);
    color: var(--anthrazit-tief);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: opacity 0.5s ease, transform 0.2s ease;
}
.video-start[hidden] { display: none; }
.video-start svg { width: 58%; height: 58%; margin-left: 8%; fill: currentColor; }
.video-start:hover, .video-start:focus-visible { transform: scale(1.06); }
.video-start:focus-visible { outline-color: var(--gelb); }

/* Freie Fläche rechts neben Jonathan im Vorschaubild */
.video-name {
    position: absolute;
    left: 33.85%; top: 12%;
    width: 63.1%; height: 81%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    color: var(--anthrazit);
    transition: opacity 0.5s ease;
}
.video-name[hidden] { display: none; }
.video-name strong { font-size: var(--name-groesse, 9cqw); font-weight: 820; font-stretch: 75%; line-height: 1.02; text-wrap: balance; overflow-wrap: anywhere; }
.video-rahmen.laeuft .video-vorschau,
.video-rahmen.laeuft .video-name,
.video-rahmen.laeuft .video-start { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
    .video-vorschau, .video-name, .video-start { transition: none; }
}

.iv-weiter { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem 2rem; margin-top: 2rem; text-align: left; }
.iv-weiter .persoenlich { margin-top: 0; }
.iv-weiter .persoenlich a { font-weight: 680; white-space: nowrap; }

.iv-kontakt { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .iv-kontakt { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; align-items: start; } }
.iv-wege { display: grid; gap: 1rem; margin: 0; }
.iv-wege dt { font-size: 0.9rem; font-weight: 600; color: #c9d0d2; }
.iv-wege dd { margin: 0.1rem 0 0; font-size: 1.12rem; font-weight: 700; overflow-wrap: anywhere; }
