/* ==========================================================================
   Zerboni Junior – Funnel (Nachbau des Perspective-Funnels)
   Farben/Fonts zentral über Variablen.
   ========================================================================== */

/* ---------- Fonts (lokal gehostet, DSGVO-konform) ---------- */
@font-face { font-family: "Roboto";  font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto";  font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto";  font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Gelasio"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/gelasio-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Gelasio"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/gelasio-latin-700-normal.woff2") format("woff2"); }

:root {
    --red:        #ef5350;
    --red-dark:   #d9433f;
    --red-text:   #de4a3e;
    --red-soft:   #faf1ee;   /* Callout, Statistik-Kacheln */
    --red-tint:   #fde4e1;   /* Nummern-Kreise Danke-Seite */
    --ink:        #111111;
    --text:       #1c1c1c;
    --muted:      #6f6f6f;
    --line:       #dedede;
    --grey-box:   #ececec;
    --star:       #f5c518;

    --progress:       #1a73d1;   /* live: Perspective-Blau – bei Bedarf auf var(--red) setzen */
    --progress-track: #b9d1ee;

    --font:  "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --serif: "Gelasio", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.center { text-align: center; }
.red { color: var(--red-text); }

/* ---------- Header / Footer ---------- */
.site-header { padding: 22px 28px 0; }
.logo {
    font-family: var(--serif);
    font-size: 19px;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: .01em;
}
.logo span { color: var(--red-text); }

.funnel { flex: 1; width: 100%; padding: 36px 20px 40px; }

.site-footer {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
    padding: 18px 20px 34px;
    font-size: 13px;
    color: var(--muted);
}
.site-footer a { color: #555; text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Fortschritt (fix am unteren Rand, wie live) ---------- */
.progress {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: 4px;
    background: var(--progress-track);
}
.progress__bar {
    height: 100%; width: 0;
    background: var(--progress);
    transition: width .4s ease;
}

/* ---------- Typografie ---------- */
.wrap { max-width: 896px; margin: 0 auto; }
.wrap--center { text-align: center; }

.kicker {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
    color: var(--red-text);
}
h1, h2 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.h-xl { font-size: clamp(32px, 6vw, 50px); line-height: 1.15; margin-bottom: 30px; }
.h-lg { font-size: clamp(28px, 5vw, 46px); line-height: 1.15; margin-bottom: 10px; }
.h-left { text-align: left; margin-bottom: 18px; }

.sub { margin: 0 auto 36px; max-width: 760px; font-size: 16px; color: var(--text); }
.sub--tight { margin-bottom: 34px; }
.sub--small { font-size: 14px; line-height: 1.75; margin-top: 18px; }
.body { margin: 0 0 14px; font-size: 16px; line-height: 1.55; }

/* ---------- Schritte ---------- */
.step { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; cursor: pointer;
    font: inherit; font-weight: 700;
    color: #fff;
    background: var(--red);
    transition: background .15s, transform .15s;
}
.btn:hover { background: var(--red-dark); }
.btn:focus-visible, .option:focus-visible { outline: 3px solid #1a73d1; outline-offset: 3px; }

.btn--cta  { padding: 17px 32px; font-size: 16px; border-radius: 6px; }
.btn--next {
    margin-top: 22px;
    padding: 14px 34px;
    font-size: 15px;
    border-radius: 4px;
    animation: wiggle 3.2s ease-in-out infinite 1.5s;
}
@keyframes wiggle {
    0%, 82%, 100% { transform: rotate(0); }
    85% { transform: rotate(-3deg); }
    89% { transform: rotate(3deg); }
    93% { transform: rotate(-2deg); }
    97% { transform: rotate(1deg); }
}

.btn__spinner {
    display: none; width: 18px; height: 18px;
    border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
    animation: spin .7s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Bilder ---------- */
.media { margin: 0 auto 40px; display: flex; justify-content: center; }
.media img { border-radius: 8px; object-fit: cover; }
.step--start .media { margin-top: 44px; }

/* ---------- Start: Vorteile + Testimonial ---------- */
.benefits {
    list-style: none; padding: 0 0 0 4px;
    margin: 30px auto 28px;
    max-width: 896px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px;
}
.benefits li { display: flex; gap: 22px; align-items: flex-start; line-height: 1.5; }
.benefits__icon { font-size: 26px; line-height: 1; margin-top: 6px; }
.benefits strong { color: var(--ink); }

.testimonial {
    max-width: 1184px;
    margin: 0 auto;
    padding: 56px 32px 66px;
    text-align: center;
    background: var(--grey-box);
    border-radius: 14px;
}
.testimonial__avatar {
    width: 54px; height: 54px; margin: 0 auto 8px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid #fff; box-shadow: 0 0 0 1px #c9c9c9;
}
.testimonial__stars { color: var(--star); font-size: 26px; letter-spacing: 2px; line-height: 1.2; }
.testimonial figcaption { display: flex; flex-direction: column; margin: 4px 0 26px; }
.testimonial__name { font-size: 20px; color: var(--ink); }
.testimonial__role { font-size: 14px; color: #333; }
.testimonial blockquote { margin: 0 auto; max-width: 900px; font-size: 16px; color: #7a7a7a; }

/* ---------- Antwort-Optionen ---------- */
.options { display: grid; gap: 16px; margin: 0 auto; }
.options--cols-1 { max-width: 576px; grid-template-columns: 1fr; }
.options--cols-2 { max-width: 896px; grid-template-columns: 1fr 1fr; }

.option {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 18px 16px;
    font: inherit; text-align: left;
    border-radius: 6px;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, background .12s, border-color .12s;
}
.option__label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 8px; }
.option__emoji { font-size: 16px; margin-right: 4px; }
.option__arrow { margin-left: 6px; }

/* Stil "cards": weiß mit Radio rechts */
.options--cards .option {
    font-size: 16px; font-weight: 500; color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.options--cards .option:hover { border-color: var(--red); }
.option__radio {
    flex: none; width: 24px; height: 24px;
    border: 2px solid #9e9e9e; border-radius: 50%;
    position: relative;
}
.options--cards .option.is-selected { border-color: var(--red); }
.options--cards .option.is-selected .option__radio { border-color: var(--red); }
.options--cards .option.is-selected .option__radio::after {
    content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--red);
}

/* Stil "buttons": rot, Text links */
.options--buttons .option {
    justify-content: flex-start;
    font-size: 16px; font-weight: 700; color: #fff;
    background: var(--red);
    border: 0;
}
.options--buttons .option:hover,
.options--buttons .option.is-selected { background: var(--red-dark); }
.options--buttons .option:hover .option__arrow { transform: translateX(3px); }
.option__arrow { transition: transform .15s; }

/* Stil "images": Bildkacheln mit rotem Label */
.options--images { display: flex; justify-content: center; gap: 12px; max-width: none; }
.options--images .option {
    flex-direction: column; justify-content: flex-start; gap: 0;
    width: 160px; min-height: 0; padding: 0;
    overflow: hidden;
    background: var(--red);
    border: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.options--images .option img { width: 160px; height: 120px; object-fit: cover; }
.options--images .option__label {
    justify-content: center; width: 100%;
    padding: 12px 8px;
    font-size: 14px; font-weight: 500; color: #fff;
}
.options--images .option:hover,
.options--images .option.is-selected { transform: translateY(-3px); box-shadow: 0 8px 18px -6px rgba(0,0,0,.3); }

/* ---------- Info-Elemente ---------- */
.step--info .kicker { margin-bottom: 26px; }
.callout {
    max-width: 420px;
    margin: 4px 0 10px;
    padding: 22px 30px;
    font-size: 18px; line-height: 1.5;
    color: #2b2b3b;
    background: var(--red-soft);
    border-left: 6px solid var(--red);
    border-radius: 16px;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.stats__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    min-height: 124px; padding: 20px;
    text-align: center;
    background: var(--red-soft);
    border-radius: 14px;
}
.stats__item strong { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--red-text); line-height: 1; }
.stats__item span { font-size: 13px; color: #333; max-width: 140px; }

/* ---------- Formular ---------- */
.form { max-width: 576px; margin: 0 auto; }
.field {
    position: relative;
    display: flex; align-items: center;
    height: 56px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    transition: border-color .15s, box-shadow .15s;
}
.field:focus-within { border-color: #9ec2ee; box-shadow: 0 0 0 3px rgba(26,115,209,.12); }
.field.is-invalid { border-color: var(--red); background: #fff7f6; }
.field__icon { flex: none; width: 52px; text-align: center; font-size: 18px; }
.field input {
    flex: 1; min-width: 0; height: 100%;
    padding: 0 16px 0 0;
    font: inherit; font-size: 16px; font-weight: 300;
    color: var(--ink);
    background: transparent;
    border: 0; outline: none;
}
.field input::placeholder { color: #8a8a8a; }

.field--tel { padding-left: 14px; }
.tel__cc { position: relative; display: flex; align-items: center; gap: 6px; height: 100%; padding-right: 8px; cursor: pointer; }
.tel__cc select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.tel__flag { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); background: linear-gradient(#000 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.tel__flag[data-cc="AT"] { background: linear-gradient(#ed2939 0 33.3%, #fff 33.3% 66.6%, #ed2939 66.6%); }
.tel__flag[data-cc="CH"] { background: #da291c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' d='M13 6h6v7h7v6h-7v7h-6v-7H6v-6h7z'/%3E%3C/svg%3E") center / 15px no-repeat; width: 15px; }
.tel__chev { width: 7px; height: 7px; border-right: 1.5px solid #666; border-bottom: 1.5px solid #666; transform: rotate(45deg) translate(-2px, -2px); }
.tel__dial { margin: 0 10px 0 4px; font-size: 16px; color: var(--ink); }
.tel__input { flex: 1; height: 100%; display: flex; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 13px; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); }
.consent.is-invalid { color: var(--red-text); }

.step--form .btn--cta { padding: 15px 32px; margin-top: 2px; }
.trust { margin: 26px 0 0; text-align: center; font-size: 16px; color: #777; }

.form-error {
    margin: 0 0 16px; padding: 12px 14px;
    font-size: 15px; font-weight: 500;
    color: #b42318; background: #fff1f0; border-radius: 6px;
}

/* ---------- Danke ---------- */
.thanks {
    max-width: 896px;
    margin: -12px auto 0;
    padding: 34px 24px 32px;
    text-align: center;
    color: #fff;
    background: var(--red);
    border-radius: 10px;
}
.thanks h1 { color: #fff; font-size: clamp(34px, 6vw, 40px); margin-bottom: 10px; }
.thanks__lead { margin: 0 auto 28px; max-width: 420px; font-size: 16px; font-weight: 500; line-height: 1.5; }
.thanks__card {
    max-width: 420px; margin: 0 auto;
    padding: 30px 32px 10px;
    text-align: left;
    color: #1f1d33;
    background: #fff;
    border-radius: 26px;
}
.thanks__label { margin: 0 0 22px; font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--red-text); }
.thanks__steps { list-style: none; margin: 0; padding: 0; }
.thanks__steps li { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; font-size: 16px; line-height: 1.6; }
.thanks__nr {
    flex: none; display: grid; place-items: center;
    width: 32px; height: 32px; margin-top: -2px;
    font-family: var(--serif); font-weight: 700; font-size: 15px;
    color: var(--red-text); background: var(--red-tint); border-radius: 50%;
}
.thanks__outro { margin: 22px 0 0; font-size: 15px; }

/* ---------- Mobil ---------- */
@media (max-width: 720px) {
    .site-header { padding: 18px 20px 0; }
    .funnel { padding-top: 28px; }
    .options--cols-2 { grid-template-columns: 1fr; max-width: 576px; }
    .options { gap: 12px; }
    .benefits { grid-template-columns: 1fr; gap: 18px; padding: 0 4px; }
    .testimonial { padding: 40px 22px 46px; }
    .callout { max-width: none; padding: 18px 22px; font-size: 17px; }
    .thanks { margin: -28px -20px 0; border-radius: 0; padding: 30px 24px; }
    .thanks__card { padding: 26px 24px 6px; }
    .options--images .option { width: calc(50% - 6px); max-width: 200px; }
    .options--images .option img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
    .btn--cta { width: 100%; padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Cookie-Banner (Optik wie live)
   ========================================================================== */
.cb {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, .2);
    font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans", Roboto, Arial, sans-serif;
}
body.cb-open { overflow: hidden; }
.cb__box {
    position: relative;
    width: 100%; max-width: 360px;
    max-height: calc(100dvh - 32px); overflow-y: auto;
    padding: 24px 24px 24px;
    color: #334155;
    background: #f8fafc;
    border-radius: 6px;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .35);
}
.cb__cookie { position: absolute; top: -2px; right: -2px; font-size: 38px; line-height: 1; transform: rotate(12deg); }
.cb__title { margin: 0 22px 12px 0; font-size: 17px; font-weight: 600; color: #1e293b; letter-spacing: 0; }
.cb__text { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.cb__text a, .cb__links a { color: #334155; text-decoration: underline; text-underline-offset: 2px; }
.cb__links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 14px; font-size: 14px; }

.cb__cats { margin-bottom: 18px; }
.cb__cat { position: relative; padding: 8px 52px 8px 0; }
.cb__cat summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; gap: 12px;
    font-size: 15px; color: #334155;
}
.cb__cat summary::-webkit-details-marker { display: none; }
.cb__cat summary::before {
    content: ""; width: 0; height: 0;
    border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 6px solid #334155;
    transition: transform .15s;
}
.cb__cat details[open] summary::before { transform: rotate(90deg); }
.cb__cat details p { margin: 8px 0 4px 18px; font-size: 13px; line-height: 1.45; color: #64748b; }

.cb__switch { position: absolute; top: 8px; right: 0; width: 40px; height: 20px; cursor: pointer; }
.cb__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cb__slider {
    position: absolute; inset: 0;
    background: #8a8a8a; border-radius: 99px;
    transition: background .15s;
}
.cb__slider::after {
    content: ""; position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px; border-radius: 50%; background: #fff;
    transition: transform .15s;
}
.cb__switch input:checked + .cb__slider { background: #6fd47c; }
.cb__switch input:checked + .cb__slider::after { transform: translateX(20px); }
.cb__switch input:disabled { cursor: default; }
.cb__switch input:focus-visible + .cb__slider { outline: 2px solid #2563eb; outline-offset: 2px; }

.cb__btn {
    width: 100%; min-height: 48px; padding: 10px 12px;
    font: inherit; font-size: 15px;
    border: 0; border-radius: 6px; cursor: pointer;
    transition: background .15s;
}
.cb__btn--primary { color: #fff; background: #2563eb; margin-bottom: 12px; }
.cb__btn--primary:hover { background: #1d4fd8; }
.cb__btn--soft { color: #1e4fc4; background: #dbeafe; }
.cb__btn--soft:hover { background: #c7dbfb; }
.cb__btn:focus-visible { outline: 2px solid #1e293b; outline-offset: 2px; }
.cb__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cb__row .cb__btn { padding: 10px 6px; font-size: 14px; white-space: nowrap; }
