/* =====================================================================================
   Versicherungsanfrage V1 – Garage-Reichlin
   Schrift: Source Sans 3 (selbst gehostet) – Titel Black (900), Text Regular (400)
   Schlicht, in Anlehnung an Apple: eine Spalte, viel Weissraum, wenige Felder pro Schritt
   Akzentfarbe wie garage-reichlin.ch: #0055A0
   ===================================================================================== */

/* Schriften (Dateien in /Content/Fonts/)
   ===================================================================================== */
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/Content/Fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/Content/Fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("/Content/Fonts/source-sans-3-latin-900-normal.woff2") format("woff2");
}

:root {
    /* Abstandsskala – alle Abstände zwischen Elementen kommen von hier */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 16px;
    --s-4: 24px;
    --s-5: 32px;
    --s-6: 48px;
    --s-7: 64px;

    --akzent: #0055A0;
    --akzent-hover: #00488a;
    --akzent-hell: #e8f1fa;
    --akzent-ring: rgba(0, 85, 160, 0.22);
    --text: #1d1d1f;
    --text-2: #424245;
    --grau: #6e6e73;
    --linie: #d2d2d7;
    --linie-hell: #e8e8ed;
    --flaeche: #f5f5f7;
    --fehler: #d31126;
    --radius: 12px;
    --radius-gross: 18px;
    --schatten-klein: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
    --schatten: 0 4px 16px rgba(0, 0, 0, 0.08);
    --dauer: 0.2s;

    /* Schriften */
    --f-titel: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --f-text: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #FFF;
    color: var(--text);
    font-family: var(--f-text);
    font-size: 18px;
    letter-spacing: 0.01em;
    line-height: 1.47;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--akzent);
    text-decoration: none;
    cursor: pointer;
}

button {
    font: inherit;
}

/* Sichtbarer Fokus nur bei Tastatur-Bedienung */
a:focus-visible, button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--akzent-ring);
}


/* Header
   ===================================================================================== */
header {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    display: block;
}

.protectlogo {
    display: block;
    height: 24px;
    width: auto;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 24px 60px 24px;
}


/* Fortschritt
   ===================================================================================== */
.progress {
    margin-bottom: var(--s-6);
}

.progresstext {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--s-2);
    font-size: 13px;
    color: var(--grau);
}

.progresstext strong {
    font-weight: 600;
    color: var(--text);
}

.progressbar {
    height: 4px;
    border-radius: 2px;
    background: var(--linie-hell);
    overflow: hidden;
}

.progressfill {
    height: 100%;
    width: 0;
    background: var(--akzent);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}


/* Schritte
   ===================================================================================== */
.step {
    display: none;
    animation: StepIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes StepIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.eyebrow {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--akzent);
}

h1 {
    margin: 0 0 var(--s-3) 0;
    font-family: var(--f-titel);
    font-size: 38px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.lead {
    margin: 0 0 8px 0;
    font-size: 20px;
    line-height: 1.42;
    color: var(--grau);
}

/* Hinweis Dauer / unverbindlich (Schritt 1) */
.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: var(--s-3) 0 0 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
}

.trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.trust span::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--akzent-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2l2.6 2.6L9 1.2' fill='none' stroke='%230055A0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}

/* Hinweis vor dem Senden */
.promise {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: var(--s-5) 0 0 0;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--akzent);
    background: var(--akzent-hell);
    border-radius: var(--radius);
}

.promise::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.2' fill='none' stroke='%230055A0' stroke-width='1.6'/%3E%3Cpath d='M10 5.5V10l3 2' fill='none' stroke='%230055A0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
}


/* Eingabefelder
   ===================================================================================== */
.field {
    margin-top: var(--s-5);
}

.field-half {
    max-width: calc(50% - 8px);
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.row-zip {
    grid-template-columns: 120px 1fr;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    font: inherit;
    font-size: 18px;
    color: var(--text);
    background: #FFF;
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--dauer), box-shadow var(--dauer);
}

input, select {
    height: 52px;
}

input:hover, select:hover, textarea:hover {
    border-color: #a1a1a6;
}

select {
    padding-right: 44px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

input::placeholder, textarea::placeholder {
    color: #a1a1a6;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--akzent);
    box-shadow: 0 0 0 4px var(--akzent-ring);
}

input.invalid, select.invalid, textarea.invalid {
    border-color: var(--fehler);
    box-shadow: 0 0 0 4px rgba(211, 17, 38, 0.12);
}


/* Auswahl-Schalter (Ja/Nein, Anrede, Standort …)
   Einzelne Felder mit Auswahlpunkt, gleicher Stil wie die Verwendungszweck-Karten
   ===================================================================================== */
.segmented {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 10px;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.field > .segmented {
    display: grid;
}

.segmented-small {
    display: inline-grid !important;
    min-width: 300px;
}

.segmented button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 96px;
    height: 50px;
    padding: 0 18px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-2);
    background: #FFF;
    border: 0;
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px var(--linie);
    cursor: pointer;
    transition: background var(--dauer), color var(--dauer), box-shadow var(--dauer), transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

/* Auswahlpunkt */
.segmented button::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px #c7c7cc;
    transition: box-shadow var(--dauer);
}

.segmented button:hover {
    color: var(--text);
    box-shadow: inset 0 0 0 1px #a1a1a6;
}

.segmented button:hover::before {
    box-shadow: inset 0 0 0 1.5px #a1a1a6;
}

.segmented button:active {
    transform: scale(0.98);
}

.segmented button:focus-visible {
    outline: 3px solid rgba(0, 85, 160, 0.35);
    outline-offset: 2px;
}

.segmented button.selected {
    color: var(--akzent);
    background: var(--akzent-hell);
    box-shadow: inset 0 0 0 2px var(--akzent);
}

.segmented button.selected::before {
    box-shadow: inset 0 0 0 5px var(--akzent);
    background: #FFF;
    animation: DotFill 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes DotFill {
    0%   { box-shadow: inset 0 0 0 1.5px var(--akzent); transform: scale(0.85); }
    60%  { transform: scale(1.12); }
    100% { box-shadow: inset 0 0 0 5px var(--akzent); transform: scale(1); }
}

.choicecard.selected .cardicon,
.person.selected .personimg {
    animation: Nudge 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes Nudge {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Anzahl junge Fahrer: kurze Werte, ohne Auswahlpunkt */
.segmented-4 button::before {
    display: none;
}

.segmented.invalid {
    box-shadow: 0 0 0 2px var(--fehler);
    animation: Shake 0.35s;
}

.segmented.invalid button {
    box-shadow: inset 0 0 0 1px var(--fehler);
}

@keyframes Shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}


/* Auswahlfelder mit Symbol (Verwendungszweck)
   ===================================================================================== */
.choicecards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-radius: var(--radius);
}

.choicecards.invalid {
    box-shadow: 0 0 0 2px var(--fehler);
    animation: Shake 0.35s;
}

.choicecard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 14px;
    color: var(--text-2);
    background: #FFF;
    border: 0;
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px var(--linie);
    cursor: pointer;
    transition: box-shadow var(--dauer), background var(--dauer), color var(--dauer), transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.choicecard:hover {
    color: var(--text);
    box-shadow: inset 0 0 0 1px #a1a1a6;
}

.choicecard:active {
    transform: scale(0.98);
}

.choicecard.selected {
    color: var(--akzent);
    background: var(--akzent-hell);
    box-shadow: inset 0 0 0 2px var(--akzent);
}

.cardicon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.choicecard strong {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}


/* Liste mit Fragen (wie iOS-Einstellungen)
   ===================================================================================== */
.list {
    margin-top: var(--s-5);
    padding: 0 20px;
    background: var(--flaeche);
    border-radius: var(--radius-gross);
}

.listtitle {
    margin: var(--s-5) 0 -18px 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--grau);
}

.listrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
    border-top: 1px solid var(--linie-hell);
    font-size: 17px;
    line-height: 1.4;
}

.listrow:first-child {
    border-top: 0;
}

.list .segmented button {
    min-width: 92px;
    height: 44px;
}

.listsub {
    padding: 2px 0 18px 0;
    animation: StepIn 0.3s ease both;
}


/* Ansprechperson: Karten mit Foto
   ===================================================================================== */
.persons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: var(--s-4);
    border-radius: var(--radius-gross);
    animation: StepIn 0.3s ease both;
}

.persons.invalid {
    box-shadow: 0 0 0 2px var(--fehler);
    animation: Shake 0.35s;
}

.person {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 22px 10px 18px 10px;
    color: var(--text);
    text-align: center;
    background: #FFF;
    border: 0;
    border-radius: var(--radius-gross);
    box-shadow: inset 0 0 0 1px var(--linie);
    cursor: pointer;
    transition: box-shadow var(--dauer), transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.person:hover {
    box-shadow: inset 0 0 0 1px #a1a1a6, var(--schatten);
}

.person:active {
    transform: scale(0.98);
}

.person.selected {
    box-shadow: inset 0 0 0 2px var(--akzent), var(--schatten);
}

.person:focus-visible {
    box-shadow: inset 0 0 0 1px var(--linie), 0 0 0 4px var(--akzent-ring);
}

.person.selected:focus-visible {
    box-shadow: inset 0 0 0 2px var(--akzent), 0 0 0 4px var(--akzent-ring);
}

/* Häkchen oben rechts */
.person::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--akzent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.2l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity var(--dauer), transform var(--dauer);
}

.person.selected::after {
    opacity: 1;
    transform: scale(1);
}

.personimg {
    width: 72px;
    height: 72px;
    margin-bottom: 10px;
    border-radius: 50%;
    object-fit: cover;
    background: #e4e4e9;
}

.personinitial {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--akzent);
    background: var(--akzent-hell);
}

.personinitial img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personnone {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 300;
    color: var(--grau);
}

.person strong {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.person small {
    font-size: 14px;
    line-height: 1.3;
    color: var(--grau);
}


/* Link zum Aufklappen («+ Bemerkung hinzufügen»)
   ===================================================================================== */
.reveal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--s-4);
    padding: 6px 12px 6px 6px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 980px;
    transition: background var(--dauer);
}

.reveal::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 17px;
    line-height: 1;
    color: var(--akzent);
    background: var(--akzent-hell);
    border-radius: 50%;
}

.reveal:hover {
    background: var(--akzent-hell);
}


/* Aktionen: Weiter / Zurück
   ===================================================================================== */
.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 44px;
}

/* Gleicher Button wie auf garage-reichlin.ch (.button.button-primary) */
.button {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #FFF;
    /* Verlauf wie auf der Hauptseite – verschiebt sich beim Darüberfahren */
    background: linear-gradient(to left, #2563eb 0%, #1e3a8a 50%, #2563eb 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-position 0.5s ease;
    -webkit-tap-highlight-color: transparent;
}

.button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    box-shadow: none;
}

/* Allein in der Zeile (Schritt 1): rechts ausrichten */
.actions .button:only-child {
    margin-left: auto;
}

.button:hover {
    color: #f3f4f6;
    background-position: 0 0;
}

/* Beim Senden: Lade-Kreis */
.button.sending {
    pointer-events: none;
    opacity: 0.75;
}

.button.sending::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #FFF;
    border-radius: 50%;
    animation: Spin 0.8s linear infinite;
}

@keyframes Spin {
    to { transform: rotate(360deg); }
}

/* Zurück: zurückhaltender Text-Button mit Pfeil */
.back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px 0 12px;
    font-size: 17px;
    font-weight: 500;
    color: var(--grau);
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--dauer), color var(--dauer);
}

.back::before {
    content: "";
    width: 8px;
    height: 13px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='13' viewBox='0 0 8 13'%3E%3Cpath d='M6.5 1.5l-5 5 5 5' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}

.back:hover {
    color: var(--text);
    background: var(--flaeche);
}

/* Vertrauenszeile beim Absenden */
.secure {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: var(--s-3) 0 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--grau);
}

.secure::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 18px;
    margin-top: 1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='18' viewBox='0 0 16 18'%3E%3Crect x='1.5' y='7.5' width='13' height='9.5' rx='2.2' fill='none' stroke='%236e6e73' stroke-width='1.5'/%3E%3Cpath d='M4.5 7.5V5a3.5 3.5 0 0 1 7 0v2.5' fill='none' stroke='%236e6e73' stroke-width='1.5'/%3E%3C/svg%3E") center no-repeat;
}

.secure a {
    color: var(--akzent);
    white-space: nowrap;
}


/* Fehlermeldung
   ===================================================================================== */
.FbMaster:empty {
    display: none;
}

.FbMaster {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: var(--s-4);
    padding: 12px 16px;
    font-size: 15px;
    color: var(--fehler);
    background: #fdecee;
    border-radius: var(--radius);
    animation: StepIn 0.25s ease both;
}

.FbMaster::before {
    content: "!";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    color: #FFF;
    background: var(--fehler);
    border-radius: 50%;
}

.FbMaster p {
    margin: 0;
}

/* Meldung direkt unter dem Feld */
.fielderror {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0 0;
    font-size: 14px;
    line-height: 1.35;
    color: var(--fehler);
    animation: StepIn 0.2s ease both;
}

.fielderror::before {
    content: "!";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    color: #FFF;
    background: var(--fehler);
    border-radius: 50%;
}

.list .fielderror {
    margin: -6px 0 12px 0;
}


/* Danke
   ===================================================================================== */
.success {
    text-align: center;
    padding-top: 24px;
}

.successicon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--s-5) auto;
    border-radius: 50%;
    background: var(--akzent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='24' viewBox='0 0 30 24'%3E%3Cpath d='M3 12.5l8 8L27 3.5' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
    font-size: 0;
    animation: Pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.1s;
}

@keyframes Pop {
    from { opacity: 0; transform: scale(0.4); }
    to   { opacity: 1; transform: scale(1); }
}

.thanksperson {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    max-width: 420px;
    margin: var(--s-5) auto 0 auto;
    padding: var(--s-3) 20px;
    text-align: left;
    background: var(--flaeche);
    border-radius: var(--radius-gross);
    animation: StepIn 0.4s ease both 0.25s;
}

.thanksimg {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
    font-size: 18px;
    font-weight: 600;
    color: var(--akzent);
    background: var(--akzent-hell);
    border-radius: 50%;
}

.thanksimg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thanksperson p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-2);
}

.thanksperson strong {
    display: block;
    font-size: 17px;
    color: var(--text);
}

/* Zeitleiste: was jetzt passiert */
.timeline {
    max-width: 420px;
    margin: var(--s-4) auto 0 auto;
    padding: 0;
    list-style: none;
    text-align: left;
    animation: StepIn 0.4s ease both 0.4s;
}

.timeline li {
    position: relative;
    padding: 0 0 var(--s-4) 40px;
}

.timeline li:last-child {
    padding-bottom: 0;
}

/* Verbindungslinie */
.timeline li::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 26px;
    bottom: 2px;
    width: 2px;
    background: var(--linie);
}

.timeline li:last-child::after {
    display: none;
}

/* Punkt */
.timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--linie);
    background: #FFF;
}

.timeline li.done::before {
    box-shadow: none;
    background: var(--akzent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.2l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}

.timeline li.done::after {
    background: var(--akzent);
}

.timeline li.current::before {
    box-shadow: inset 0 0 0 2px var(--akzent), inset 0 0 0 7px #FFF, inset 0 0 0 12px var(--akzent);
}

.timeline strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.timeline span {
    display: block;
    font-size: 14px;
    color: var(--grau);
}

.success .back {
    margin-top: var(--s-5);
    color: var(--akzent);
}

.success .back::before {
    display: none;
}


/* Kontakt unten
   ===================================================================================== */
.contactmini {
    margin: var(--s-7) 0 0 0;
    font-size: 14px;
    color: var(--grau);
    text-align: center;
}

.contactmini span {
    display: inline-block;
    margin: 0 6px;
    white-space: nowrap;
}

.contactmini a {
    color: var(--akzent);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.contactalt {
    margin-top: var(--s-7);
    padding: 24px;
    background: var(--flaeche);
    border-radius: var(--radius-gross);
    text-align: center;
}

.contactalt p {
    margin: 0;
    font-size: 15px;
    color: var(--grau);
}

.contactalt .contacttitle {
    margin-bottom: 4px;
    font-family: var(--f-titel);
    font-size: 19px;
    font-weight: 900;
    color: var(--text);
}

.contactlinks {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.contactlinks a {
    display: flex;
    flex-direction: column;
    min-width: 180px;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 600;
    background: #FFF;
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px var(--linie-hell);
    transition: box-shadow var(--dauer);
}

.contactlinks a:hover {
    box-shadow: inset 0 0 0 1px #a1a1a6, var(--schatten);
}

.contactlinks span {
    font-size: 12px;
    font-weight: 500;
    color: var(--grau);
}


/* Weniger Bewegung, wenn im System so eingestellt
   ===================================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}


/* Mobile
   ===================================================================================== */
@media (max-width: 600px) {
    body {
        font-size: 16px;
    }
    header {
        padding: 12px 20px;
    }
    .logo img {
        height: 44px;
    }
    .choicecards {
        gap: 8px;
    }
    .choicecard {
        flex-direction: column;
        gap: 4px;
        height: 72px;
        padding: 0 6px;
    }
    .choicecard strong {
        font-size: 15px;
    }
    .protectlogo {
        height: 18px;
    }
    .container {
        padding: 12px 20px 24px 20px;
    }
    .progress {
        margin-bottom: 30px;
    }
    h1 {
        font-size: 30px;
    }
    .lead {
        font-size: 17px;
    }
    .row {
        grid-template-columns: 1fr;
    }
    .row-zip {
        grid-template-columns: 100px 1fr;
        gap: 0 12px;
    }
    .field-half {
        max-width: none;
    }
    .segmented-small {
        display: grid !important;
        min-width: 0;
    }
    .segmented {
        gap: 8px;
    }
    .segmented button {
        min-width: 0;
        height: 48px;
        padding: 0 10px;
        gap: 8px;
    }
    .persons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .personimg {
        width: 60px;
        height: 60px;
    }
    .listrow {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .listrow .segmented {
        display: grid;
    }

    /* Aktionen bleiben unten am Bildschirm sichtbar */
    .actions {
        position: sticky;
        bottom: 0;
        z-index: 5;
        margin: 32px -20px 0 -20px;
        padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.88);
        -webkit-backdrop-filter: saturate(180%) blur(16px);
                backdrop-filter: saturate(180%) blur(16px);
        border-top: 1px solid var(--linie-hell);
    }
    .actions .button {
        flex: 1;
        min-width: 0;
    }
    .actions .back {
        padding: 0 12px 0 8px;
    }
    .privacy {
        text-align: center;
    }
    .contactalt {
        margin-top: 48px;
        padding: 20px 16px;
    }
    .contactlinks a {
        flex: 1;
        min-width: 0;
    }
}


/* Eingebettet in die Webseite (iFrame) – Kopf und Rücklink kommen von der Seite
   ===================================================================================== */
.eingebettet body {
    background: transparent;
}
.eingebettet header,
.eingebettet .contactalt,
.eingebettet .contactmini,
.eingebettet a.back[href^="https://www.garage-reichlin.ch"] {
    display: none !important;
}
.eingebettet .container,
.eingebettet main.container {
    max-width: none;
    padding: 4px 0 0 0;
}

/* Eingebettet: Die Seite hat schon einen Titel – die kleine Überschrift über der ersten Frage fällt weg */
.eingebettet .eyebrow {
    display: none !important;
}

/* Eingebettet: Das Formular ist genau so hoch wie sein Inhalt (main.js der Webseite passt den
   iFrame an) – im iFrame selbst wird nie gescrollt, weder senkrecht noch waagrecht.
   flow-root verhindert, dass der Abstand des letzten Elements aus dem body herausragt. */
html.eingebettet {
    overflow: hidden;
}
html.eingebettet body {
    display: flow-root;
}

/* Eingebettet: Knöpfe nicht am unteren Rand festhalten (der iFrame ist so hoch wie das Formular)
   und nicht über den Rand hinaus ziehen */
.eingebettet .actions {
    position: static;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    background: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    border-top: 0;
}

/* Eingebettet: rundherum 6 px Luft, damit der Fokus-Rahmen der Felder (4 px) und der Knöpfe
   am Rand des iFrames nicht abgeschnitten wird */
.eingebettet .container,
.eingebettet main.container {
    padding: 6px;
}
