/* ════════════════════════════════════════════════════════════════════
   EXPERT-SEITE — Aufbau vom 16.10.2026
   Kopf mit Plakette, vier Vorteilskarten, Preiskasten rechts, Abschnitt
   „Was frei bleibt" und Fragen mit Illustration.

   Liegt ÜBER css/expert.css: Die Tokens (--ex-*), Knöpfe, Zustimmung,
   Zustandskasten und Fragen-Aufklapper kommen von dort und werden auch
   von expert-danke.html genutzt. Hier steht nur der neue Seitenaufbau.
   ════════════════════════════════════════════════════════════════════ */

.xs-seite {
    max-width: 1120px;
    padding-top: 28px;
}

/* ── Kopf ─────────────────────────────────────────────────────────── */

.xs-held {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    margin: 0 0 44px;
    padding: 34px 0 30px;
}

.xs-held-text { position: relative; z-index: 1; }

.xs-titel {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ex-tinte);
    font-size: clamp(42px, 6vw, 60px);
}

.xs-unterzeile {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ex-tinte);
}

.xs-vorspann {
    max-width: 46ch;
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ex-tinte-mitte);
}
.xs-vorspann strong { color: var(--ex-tinte); font-weight: 600; }

.xs-fakten {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.xs-fakten li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-left: 1px solid var(--ex-linie);
    font-size: 13px;
    line-height: 1.35;
    color: var(--ex-tinte-mitte);
}
.xs-fakten li:first-child { padding-left: 0; border-left: 0; }
.xs-fakten svg {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--ex-rot);
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

/* Die Plakette steht vor einem roten Viertelbogen — Saldo-Rot als Fläche,
   die einzige grosse Farbfläche der Seite. */
.xs-held-bild {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 300px;
}
.xs-held-bild::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 74%;
    height: 100%;
    border-top-left-radius: 100% 100%;
    background: linear-gradient(180deg, #9E3A22 0%, #7E2C1B 100%);
}
.xs-held-bild img {
    position: relative;
    width: min(100%, 520px);
    height: auto;
    margin-bottom: -8px;
}

/* ── Inhalt und Preis ─────────────────────────────────────────────── */

.xs-kauf {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: start;
    margin: 0 0 44px;
}

.xs-h2 {
    margin: 0 0 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ex-tinte);
    font-size: 24px;
    font-weight: 500;
    color: var(--ex-tinte);
}

.xs-karten {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.xs-karte {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    min-height: 0;
    border: 1px solid var(--ex-linie);
    background: var(--ex-flaeche);
}
.xs-karte img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.xs-karte-text { padding: 18px 16px; }

/* Fünf Karten im Zweierraster: Die letzte läuft über die ganze Breite,
   statt allein in einer halben Zeile zu stehen. */
.xs-karte:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: 21% minmax(0, 1fr); }
.xs-karte h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ex-tinte);
}
.xs-karte p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ex-tinte-mitte);
}
.xs-karte strong { color: var(--ex-tinte); font-weight: 600; }
.xs-karte a { color: var(--ex-rot); border-bottom: 1px solid currentColor; }
.xs-karte a:hover { color: #9C4027; }

/* Preiskasten: Rahmen und Druckschatten aus expert.css. Bleibt beim
   Scrollen stehen, solange die Karten daneben laufen. */
.xs-preis {
    position: sticky;
    /* Unter der klebenden Navbar (74px), für Gäste wie Angemeldete. */
    top: 90px;
}
.xs-preis-kopf {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.xs-preis-zahl {
    margin: 4px 0 2px;
    font-family: var(--ex-serif);
    font-size: 40px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--ex-rot);
}
.xs-preis-dauer {
    margin: 0;
    font-size: 14px;
    color: var(--ex-tinte-mitte);
}
/* Anrechnung Themenheft 2: Normalpreis durchgestrichen daneben, Hinweis darunter */
.xs-preis-alt {
    margin-left: 6px;
    font-size: 20px;
    color: var(--ex-grau);
    white-space: nowrap;
}
.xs-anrechnung {
    margin: 8px 0 0;
    padding-left: 10px;
    border-left: 2px solid var(--ex-oliv);
    font-size: 14px;
    line-height: 1.45;
    color: var(--ex-tinte);
}
.xs-siegel {
    width: 92px;
    height: auto;
    margin-top: 4px;
}

.xs-haken {
    display: grid;
    gap: 10px;
    margin: 22px 0 22px;
    padding: 18px 0 0;
    border-top: 1px solid var(--ex-linie);
    list-style: none;
}
.xs-haken li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ex-tinte);
}
.xs-haken li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 3px;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--ex-rot);
    border-bottom: 2px solid var(--ex-rot);
    transform: rotate(-45deg);
}

.xs-knopf {
    width: 100%;
    justify-content: center;
}
/* Pfeil per CSS: expert.js setzt den Knopftext nach einem Fehler neu
   („Expert kaufen") und würde einen Pfeil im HTML überschreiben. */
.xs-knopf[data-ex="kaufen"]::after {
    content: " →";
}

.xs-sicher {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--ex-tinte-mitte);
}
.xs-sicher svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--ex-tinte-mitte);
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.xs-sicher strong { color: var(--ex-tinte); font-weight: 600; }

.xs-preis .ex-lage { margin-top: 16px; }

.xs-preis-fuss {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--ex-linie);
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--ex-grau);
}

/* ── Was frei bleibt ──────────────────────────────────────────────── */

.xs-frei {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: center;
    margin: 0 0 48px;
    padding: 24px 28px;
    border: 1px solid var(--ex-linie);
    background: var(--ex-flaeche);
}
.xs-frei h2 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 500;
    color: var(--ex-tinte);
}
.xs-frei p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ex-tinte-mitte);
}
.xs-frei a { color: var(--ex-rot); border-bottom: 1px solid currentColor; }
.xs-frei img { width: 100%; height: auto; }

/* ── Fragen ───────────────────────────────────────────────────────── */

.xs-fragen .xs-h2 { margin-bottom: 0; }
.xs-fragen-raster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 40px;
    align-items: center;
}
.xs-fragen .ex-frage:first-of-type { border-top: 0; }
.xs-fragen-bild { width: 100%; height: auto; opacity: 0.95; }

/* ── Tablet ───────────────────────────────────────────────────────── */

@media (max-width: 980px) {
    .xs-kauf { grid-template-columns: minmax(0, 1fr); }
    /* Preiskasten unter die Karten, aber gleich nach dem Kopf erreichbar
       über den Anker #kaufen (Navbar, Werbeflächen). */
    .xs-preis { position: static; max-width: 520px; }
    .xs-fragen-raster { grid-template-columns: minmax(0, 1fr); }
    .xs-fragen-bild { display: none; }
}

/* ── Handy ────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
    .xs-seite { padding: 16px 16px 40px; }
    .xs-held {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding-top: 12px;
        margin-bottom: 32px;
    }
    .xs-held-bild { min-height: 0; order: -1; }
    .xs-held-bild::before { width: 70%; }
    .xs-held-bild img { width: 100%; }
    .xs-unterzeile { font-size: 19px; }
    .xs-fakten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .xs-fakten li { padding: 0; border-left: 0; }
    .xs-fakten br { display: none; }
    .xs-karten { grid-template-columns: minmax(0, 1fr); }
    .xs-karte,
    .xs-karte:last-child:nth-child(odd) { grid-template-columns: 34% minmax(0, 1fr); }
    .xs-preis { max-width: none; }
    .xs-frei { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; }
    .xs-frei img { max-width: 220px; justify-self: end; }
}
