/*
 * Corporate Identity "Carolin Block — Darmcoach" — CI-Definition 1.0.
 *
 * Einzige Quelle der Farben, Schriften und Abstände für alle Seiten dieser
 * Firma. Die Vorlagen greifen ausschliesslich über die Tokens darauf zu,
 * damit eine Anpassung der CI nicht durch sämtliche Blades wandern muss.
 *
 * Aufbau und Klassennamen entsprechen der CI der Firma "malina"; die Werte
 * sind die der Marke Carolin Block. Was hier nicht steht, ist bewusst
 * gemeinsam und gehört ins globale Stylesheet, nicht in diese Datei.
 */

/* -------------------------------------------------------------------------
 * Schriften
 *
 * Montserrat trägt den Fliesstext, Fraunces die Überschriften. Beide sind
 * variable Schriften: eine Datei deckt die ganze Achse 100..900 ab.
 *
 * Dieselben Dateien stehen inzwischen auch in font_faces (weight..weight_max,
 * Migration 2026_10_10_100100) — von dort bezieht die Lern-App sie über
 * GET /api/v1/branding, und die Seiten geben sie zusätzlich über
 * Branding::fontFaceCss() aus (gleiche Adressen, also kein zweiter Download).
 * Die Regeln hier bleiben als Rückfall, falls die Zeilen fehlen.
 *
 * Beide Familien liegen unter der SIL Open Font License 1.1 und werden vom
 * eigenen Server ausgeliefert; es geht keine Verbindung zu Google Fonts
 * hinaus. Die Datenschutzerklärung sagt das ausdrücklich zu.
 *
 * font-display: swap zeigt den Text sofort im Rückfall, statt ihn zu
 * verbergen, bis die Schrift geladen ist.
 * ---------------------------------------------------------------------- */
@font-face {
    font-family: "Montserrat";
    src: url("fonts/montserrat-latin-var.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fraunces";
    src: url("fonts/fraunces-latin-var.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fraunces";
    src: url("fonts/fraunces-latin-var-italic.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* -------------------------------------------------------------------------
 * Farben und Masse — Light Theme
 * ---------------------------------------------------------------------- */
:root {
    /* Kernfarben der Marke */
    --ci-green-deep: #243A20;
    --ci-green: #3A5B35;
    --ci-green-bright: #AEE869;
    --ci-lime: #C1FF72;

    /*
     * Light Theme.
     *
     * Die Kern-Töne kommen aus der Datenbank (company_branding_colors, als
     * --brand-* von der Branding-Schicht ausgegeben); die Werte hier sind
     * nur der Rückfall, falls eine Variable fehlt. Gepflegt wird die CI
     * damit im Panel — nicht in dieser Datei.
     */
    --ci-background: var(--brand-background, #F4F4F4);
    --ci-surface: var(--brand-surface, #E5E8E5);
    --ci-surface-subtle: var(--brand-surface-subtle, #EEF1EA);
    --ci-border: var(--brand-border, #76836F);
    --ci-text: var(--brand-text, #2B2B2B);
    --ci-text-secondary: var(--brand-muted, #5A6357);
    --ci-primary: var(--brand-primary, #3A5B35);
    --ci-secondary: var(--brand-secondary, #243A20);
    --ci-tertiary: var(--brand-tertiary, #1F281F);
    --ci-muted: var(--brand-muted, #5A6357);
    --ci-accent: var(--brand-accent, #C1FF72);

    /*
     * Akzent als Schrift und Links brauchen mehr Kontrast als die Fläche:
     * hell ein dunkles Grün, dunkel das aufgehellte Grün für Links.
     */
    --ci-accent-text: #417500;
    --ci-link: var(--ci-secondary);

    /* Alias für den Altbestand — siehe CI der Firma "malina". */
    --mb-text-secondary: var(--ci-muted);

    /*
     * Alles auf dem dunklen Grün trägt das helle Grün (5,33:1 und 8,55:1).
     * Bewusst ohne --brand-on-*: Die Datenbank führt dort Weiss.
     */
    --ci-on-primary: var(--ci-green-bright);
    --ci-on-secondary: var(--ci-green-bright);
    --ci-on-dark: #F7F9F2;

    /* Der Video-Knopf bleibt im Dark Theme weiss, darum ein eigener Ton. */
    --ci-on-video: var(--ci-on-primary);

    /* Band-Fläche (CTA-Band, Kopfleiste) samt Schrift. */
    --ci-band: var(--brand-band, #243A20);
    --ci-band-text: var(--ci-green-bright);

    --ci-focus: #3A5B35;

    /*
     * Zwei Familien statt einer: Fraunces setzt die Überschriften, damit
     * die Seite denselben Kontrast trägt wie die Vorlage.
     */
    --ci-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto,
        Arial, sans-serif;
    --ci-font-display: "Fraunces", Georgia, "Times New Roman", serif;

    /* Weiche Rundungen — die Marke arbeitet durchgehend mit ihnen. */
    --ci-radius: 1rem;
    --ci-radius-pill: 2rem;

    --ci-shadow: rgba(43, 43, 43, 0.22);

    /* Abstände als Stufen — hält die vertikale Gliederung ruhig. */
    --ci-space-1: 0.5rem;
    --ci-space-2: 1rem;
    --ci-space-3: 1.5rem;
    --ci-space-4: 2rem;
    --ci-space-5: 3rem;
}

/* -------------------------------------------------------------------------
 * Dark Theme
 *
 * Kein invertiertes Light Theme: Das tiefe Grün wird zur Fläche, das helle
 * Lime übernimmt die Rolle der Primärfarbe und trägt dunkle Schrift.
 *
 * Auf der Quellseite ist Dark die Voreinstellung. Hier folgt die Seite der
 * Einstellung des Betriebssystems und dem ausdrücklichen Umschalter — das
 * ist die Konvention des Systems und gilt für alle Firmen gleich.
 * ---------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ci-background: var(--brand-background, #141A13);
        --ci-surface: var(--brand-surface, #1F281D);
        --ci-surface-subtle: var(--brand-surface-subtle, #243A20);
        --ci-border: var(--brand-border, #6B7768);
        --ci-accent-text: var(--ci-primary);
        --ci-link: var(--ci-primary);
        --ci-text: var(--brand-text, #F7F9F2);
        --ci-text-secondary: var(--brand-muted, #B5C1AE);
        --ci-primary: var(--brand-primary, #AEE869);
        --ci-secondary: var(--brand-secondary, #3A5B35);
        --ci-tertiary: var(--brand-tertiary, #1F281F);
        --ci-on-primary: var(--brand-on-primary, #141A13);
        --ci-band: var(--brand-band, #3A5B35);
        --ci-band-text: var(--brand-on-band, #F7F9F2);
        --ci-on-secondary: #F7F9F2;
        --ci-on-video: #FFFFFF;
        --ci-focus: #AEE869;
        --ci-shadow: rgba(0, 0, 0, 0.55);
    }
}

:root[data-theme="dark"] {
    --ci-background: var(--brand-background, #141A13);
    --ci-surface: var(--brand-surface, #1F281D);
    --ci-surface-subtle: var(--brand-surface-subtle, #243A20);
    --ci-border: var(--brand-border, #6B7768);
    --ci-accent-text: var(--ci-primary);
    --ci-link: var(--ci-primary);
    --ci-text: var(--brand-text, #F7F9F2);
    --ci-text-secondary: var(--brand-muted, #B5C1AE);
    --ci-primary: var(--brand-primary, #AEE869);
    --ci-secondary: var(--brand-secondary, #3A5B35);
    --ci-on-primary: var(--brand-on-primary, #141A13);
    --ci-band: var(--brand-band, #3A5B35);
    --ci-band-text: var(--brand-on-band, #F7F9F2);
    --ci-on-secondary: #F7F9F2;
    --ci-on-video: #FFFFFF;
    --ci-focus: #AEE869;
    --ci-shadow: rgba(0, 0, 0, 0.55);
}

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

body {
    margin: 0;
    font-family: var(--ci-font);
    font-size: 1.0625rem; /* 17px */
    font-weight: 400;
    line-height: 1.6;
    color: var(--ci-text);
    background: var(--ci-background);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--ci-space-2);
    font-family: var(--ci-font-display);
    line-height: 1.15;
    text-wrap: balance;
}

/* clamp() statt fester Grössen: skaliert im CI-Bereich mit der Breite. */
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 var(--ci-space-2); }

/* Links im Fliesstext zusätzlich unterstrichen — Farbe allein genügt nicht. */
a {
    color: var(--ci-link);
    text-underline-offset: 0.15em;
}

img, svg, video {
    max-width: 100%;
    height: auto;
}

/*
 * Sichtbarer Fokusrahmen. Ohne ihn wäre die Seite per Tastatur nicht
 * bedienbar — das Ziel liesse sich nicht erkennen.
 */
:focus-visible {
    outline: 3px solid var(--ci-focus);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Nur für Screenreader — etwa der Sprunglink zum Inhalt. */
:is(.mb-visually-hidden, .lpbt-visually-hidden) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mb-skip-link {
    position: absolute;
    left: var(--ci-space-2);
    top: -4rem;
    z-index: 100;
    padding: var(--ci-space-1) var(--ci-space-2);
    background: var(--ci-surface);
    color: var(--ci-text);
    border-radius: var(--ci-radius);
    transition: top 0.15s ease;
}

.mb-skip-link:focus {
    top: var(--ci-space-2);
}

/* -------------------------------------------------------------------------
 * Layout
 *
 * Behälter und Raster kommen aus dem globalen Grid (.grid-wrap, .grid-row,
 * .grid-track); hier stehen nur die vertikale Gliederung und Flächen.
 * ---------------------------------------------------------------------- */
:is(.mb-section, .lpbt-section) { padding: var(--ci-space-5) 0; }
:is(.mb-section--tight, .lpbt-section--tight) { padding: var(--ci-space-5) 0; }

/*
 * Die Hintergründe eines Abschnitts. Der Benutzer wählt sie je Abschnitt
 * im Editor. {@see \App\Enums\Page\SectionBackground}
 */
:is(.mb-section--subtle, .lpbt-section--subtle) { background: var(--ci-surface-subtle); }
.lpbt-section--surface { background: var(--ci-surface); }

/* Auf den farbigen Flächen trägt die Schrift die zugehörige Gegenfarbe. */
.lpbt-section--band {
    background: var(--ci-band);
    color: var(--ci-band-text);
}

.lpbt-section--primary {
    background: var(--ci-primary);
    color: var(--ci-on-primary);
}

/*
 * Überschriften, gedämpfte Passagen und Links erben auf der farbigen
 * Fläche die Schriftfarbe — sonst stünde der CI-Ton auf der CI-Fläche.
 * Buttons werden wie im CTA-Band zur Outline-Fassung.
 */
:is(.lpbt-section--band, .lpbt-section--primary) :is(h1, h2, h3, h4, h5, h6, p, a, li) {
    color: inherit;
}

:is(.lpbt-section--band, .lpbt-section--primary) :is(.mb-btn, .lpbt-btn) {
    background: transparent;
    color: inherit;
    border: 2px solid currentColor;
}

/* Im Band genügt der einfache helle Ring (8,55:1); der Doppelring gilt auf der Seite. */
:root:root :is(.lpbt-section--band, .lpbt-section--primary, .lpbt-cta-band) :focus-visible {
    outline-color: var(--ci-green-bright);
    box-shadow: none;
}

:is(.mb-section__head, .lpbt-section__head) {
    /* max-width: 50rem; */
    margin: 0 auto var(--ci-space-4);
    text-align: center;
}

:is(.mb-section__head, .lpbt-section__head) p {
    color: var(--ci-text-secondary);
    margin: 0;
}

.mb-lead {
    font-size: 1.15rem;
    color: var(--ci-text-secondary);
}

/* -------------------------------------------------------------------------
 * Kopfzeile
 * ---------------------------------------------------------------------- */
:is(.mb-topbar, .lpbt-topbar) {
    background: var(--ci-band);
    color: var(--ci-band-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    padding: var(--ci-space-1) var(--ci-space-2);
}

:is(.mb-topbar__list, .lpbt-topbar__list) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--ci-space-1) var(--ci-space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mb-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--ci-surface);
    border-bottom: 1px solid var(--ci-border);
}

.mb-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ci-space-3);
    /*
     * Die Bildmarke trägt die Höhe der Kopfzeile; ein kleineres Polster hält
     * das sticky Band schmal genug, damit darunter noch Inhalt sichtbar ist.
     */
    padding-top: var(--ci-space-1);
    padding-bottom: var(--ci-space-1);
}

.lpbt-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--ci-space-2);
    text-decoration: none;
    color: inherit;
}

.lpbt-logo :is(img, svg) { width: auto; height: 6rem; }

/*
 * Der Zusatz neben der Bildmarke. Die beiden Zeilen stehen als Block
 * untereinander, damit der Name unabhängig vom Zusatz umbrechen kann.
 */
.lpbt-logo__text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    line-height: 1.2;
    text-align: left;
}

.lpbt-logo__name {
    font-weight: 700;
    font-size: 1.375rem;
    letter-spacing: 0.01em;
}

.lpbt-logo__claim {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--ci-text-secondary);
}

/*
 * Auf schmalen Geräten würde der Zusatz die Kopfzeile sprengen; dort trägt
 * die Bildmarke den Namen allein.
 */
@media (max-width: 30rem) {
    .lpbt-logo :is(img, svg) { height: 4.5rem; }
    .lpbt-logo__text { display: none; }
}

/*
 * Zentriert stehendes Logo. display:flex statt inline-flex — sonst wäre das
 * Element nur so breit wie sein Inhalt und justify-content ohne Wirkung.
 */
.lpbt-logo--center { display: flex; justify-content: center; }

/*
 * Zwei Logo-Fassungen im Markup, je Theme wird eine ausgeblendet. Ein
 * Umschalten per JavaScript zeigte beim Laden kurz die falsche Fassung.
 */
.lpbt-logo__dark { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .lpbt-logo__light { display: none; }
    :root:not([data-theme="light"]) .lpbt-logo__dark { display: inline; }
}

:root[data-theme="dark"] .lpbt-logo__light { display: none; }
:root[data-theme="dark"] .lpbt-logo__dark { display: inline; }

.lpbt-nav {
    display: flex;
    align-items: center;
    gap: var(--ci-space-3);
}

.lpbt-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ci-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.lpbt-nav__link {
    color: var(--ci-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.lpbt-nav__link:hover { text-decoration: underline; }

@media (max-width: 60rem) {
    .lpbt-nav__list { display: none; }
}

/* -------------------------------------------------------------------------
 * Schaltflächen
 *
 * Hell: Grün und Tiefgrün tragen das helle Grün (5,33:1 und 8,55:1).
 * Dunkel: Das helle Grün trägt dunkle Schrift (12,26:1), Grün helle (7,25:1).
 * ---------------------------------------------------------------------- */
:is(.mb-btn, .lpbt-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ci-space-1);
    padding: 0.8rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--ci-radius-pill);
    font: inherit;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease, background-color 0.15s ease;
}

:is(.mb-btn, .lpbt-btn):hover {
    filter: brightness(0.94);
    box-shadow: 0 10px 22px var(--ci-shadow);
}

:is(.mb-btn--primary, .lpbt-btn--primary) {
    background: var(--ci-primary);
    color: var(--ci-on-primary);
}

:is(.mb-btn--secondary, .lpbt-btn--secondary) {
    background: var(--ci-secondary);
    color: var(--ci-on-secondary);
}

/*
 * Rahmen statt Fläche in der Schriftfarbe der Umgebung: auf dem Band dessen
 * helle Schrift, auf hellem Grund (Termin-Slots) die dunkle.
 */
:is(.mb-btn--outline, .lpbt-btn--outline) {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}

:is(.mb-btn--block, .lpbt-btn--block) { display: flex; width: 100%; }

:is(.mb-btn--large, .lpbt-btn--large) { padding: 1rem 2.25rem; font-size: 1.1rem; }

/* -------------------------------------------------------------------------
 * Raster und Karten
 * ---------------------------------------------------------------------- */
:is(.mb-card, .lpbt-card) {
    background: var(--ci-surface);
    border: 1px solid var(--ci-border);
    border-radius: var(--ci-radius);
    padding: var(--ci-space-3);
}

:is(.mb-card, .lpbt-card) h3 { margin-top: 0; }

/*
 * Eine Kachel aus mehreren Bausteinen (gleicher Slot, etwa Video und
 * Zitat): Die Hülle traegt die Flaeche, die Karte darin gibt ihre eigene
 * auf — sonst stuende ein Rahmen im Rahmen. Der Innenabstand der Huelle
 * bleibt, damit der Text nicht an der Kante klebt.
 */
.page-tile { display: flex; flex-direction: column; gap: var(--ci-space-2); }

.page-tile :is(.mb-card, .lpbt-card) {
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
}

/*
 * Auch auf der farbigen Flaeche: Dort legt die Band-Regel sonst einen
 * zweiten Hauch Schriftfarbe hinter die Karte, den die Huelle schon
 * traegt — die Kachel bekaeme eine hellere Insel in sich.
 */
:is(.lpbt-section--band, .lpbt-section--primary) .page-tile :is(.mb-card, .lpbt-card) {
    background: none;
    border: 0;
}

/* Der letzte Baustein fuellt die Kachel, damit Karten gleich hoch enden. */
.page-tile > .page-snippet:last-child { flex: 1 1 auto; }

:is(.mb-card, .lpbt-card) p:last-child { margin-bottom: 0; }

:is(.mb-card__note, .lpbt-card__note) {
    color: var(--ci-text-secondary);
    font-size: 0.95rem;
}

/* -------------------------------------------------------------------------
 * Medien-Platzhalter
 *
 * Steht, wo später Bild oder Video eingepflegt werden. Als solcher erkennbar,
 * damit im Test nicht ein leerer Kasten für einen Fehler gehalten wird.
 * ---------------------------------------------------------------------- */
:is(.mb-media, .lpbt-media) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ci-space-4);
    min-height: 12rem;
    background: var(--ci-surface-subtle);
    border: 1px dashed var(--ci-border);
    border-radius: var(--ci-radius);
    color: var(--ci-text-secondary);
    font-weight: 500;
    text-align: center;
}

:is(.mb-media--tall, .lpbt-media--tall) { min-height: 20rem; }

:is(.mb-media--video, .lpbt-media--video) { aspect-ratio: 16 / 9; min-height: 0; }

:is(.mb-media, .lpbt-media) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--ci-radius);
}

/*
 * Video-Player: responsives 16:9 mit dem Radius der Bild-Bausteine; die
 * Fläche dahinter füllt die Zeit, bis der Anbieter sein Bild liefert — die
 * Tokens tragen auch den Dark-Mode. Gilt für den eingebetteten iframe
 * (YouTube/Vimeo) wie für den nativen Player einer eigenen Videodatei.
 */
:is(.mb-video, .lpbt-video) {
    aspect-ratio: 16 / 9;
    background: var(--ci-surface-subtle);
    border-radius: var(--ci-radius);
    overflow: hidden;
}

/* Ein eigenes Vorschaubild gibt dem Rahmen seine Form (pages/partials/snippets/video). */
.lpbt-video--own-poster {
    aspect-ratio: auto;
}

/* Die Vorschau auf der Seite rundet wie die Buttons; Bild und Banner erben den Radius. */
.lpbt-player {
    border-radius: var(--ci-radius-pill);
}

/* Play-Knopf und Platzhalter liegen auf --brand-primary; pages/show setzt dort fest Weiss. */
:is(.lpbt-player__start, .lpbt-player__placeholder) {
    color: var(--ci-on-video);
}

/*
 * Weitere Flächen auf --brand-primary aus den Seiten-Vorlagen: Video-Hinweis,
 * Cookie-Knopf, gewählter Termin und Kauf-Knopf. Sie lesen sonst --brand-on-primary.
 */
.page-video__hint,
.mb-consent__btn:not(.mb-consent__btn--quiet),
:is(.mb-booking__day[aria-selected="true"], .mb-booking__slot[aria-pressed="true"]),
.mb-checkout button[type="submit"] {
    color: var(--ci-on-primary);
}

:is(.mb-video, .lpbt-video) :is(iframe, video) {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* -------------------------------------------------------------------------
 * Trustband und Zahlen
 * ---------------------------------------------------------------------- */
.mb-trustbar {
    background: var(--ci-surface-subtle);
    border-block: 1px solid var(--ci-border);
    padding: var(--ci-space-4) 0;
}

.mb-trustbar__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--ci-space-3) var(--ci-space-5);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.mb-stat__value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ci-link);
}

.mb-stat__label {
    display: block;
    font-size: 0.9rem;
    color: var(--ci-text-secondary);
}

/* -------------------------------------------------------------------------
 * CTA-Band
 * ---------------------------------------------------------------------- */
:is(.mb-cta-band, .lpbt-cta-band) {
    background: var(--ci-band);
    color: var(--ci-band-text);
    padding: var(--ci-space-5) 0;
}

:is(.mb-cta-band__inner, .lpbt-cta-band__inner) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ci-space-3);
}

:is(.mb-cta-band__text, .lpbt-cta-band__text) { margin: 0; font-size: 1.15rem; }

:is(.mb-cta-band--center, .lpbt-cta-band--center) { text-align: center; }

:is(.mb-cta-band--center, .lpbt-cta-band--center) :is(.mb-cta-band__inner, .lpbt-cta-band__inner) {
    flex-direction: column;
    justify-content: center;
}

/*
 * Auf der Band-Fläche werden alle Buttons zur Outline-Fassung — ein
 * gefüllter Primär-Button säße Farbe auf Farbe. So sehen auch die
 * Action-Button-Snippets der Pages im Band aus wie der Band-Button der
 * Funnels.
 */
:is(.mb-cta-band, .lpbt-cta-band) :is(.mb-btn, .lpbt-btn) {
    background: transparent;
    color: inherit;
    border: 2px solid currentColor;
}

/* Absätze im Band tragen keine eigenen Ränder — die Flex-Zeile richtet aus. */
:is(.mb-cta-band__inner, .lpbt-cta-band__inner) p { margin: 0; }

/* -------------------------------------------------------------------------
 * Aufzählungen mit Häkchen
 * ---------------------------------------------------------------------- */
:is(.mb-list, .lpbt-list) {
    list-style: none;
    margin: 0;
    padding: 0;
}

:is(.mb-list, .lpbt-list) li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: var(--ci-space-2);
}

/*
 * Zeichen statt Farbfläche: Farbe darf nicht das einzige Signal sein.
 * aria-hidden ist hier nicht nötig, da ::before nicht vorgelesen wird.
 */
:is(.mb-list, .lpbt-list) li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ci-primary);
    font-weight: 700;
}

:is(.mb-list--numbered, .lpbt-list--numbered) { counter-reset: mb-step; }

:is(.mb-list--numbered, .lpbt-list--numbered) li { padding-left: 2.75rem; }

:is(.mb-list--numbered, .lpbt-list--numbered) li::before {
    content: counter(mb-step);
    counter-increment: mb-step;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    top: 0.05rem;
    border-radius: 50%;
    background: var(--ci-primary);
    color: var(--ci-on-primary);
    font-size: 0.9rem;
}

/* Gegenüberstellung "ohne / mit Beratung". */
:is(.mb-list--cross, .lpbt-list--cross) li::before { content: "✕"; color: var(--ci-text-secondary); }

/* -------------------------------------------------------------------------
 * Ablauf in Schritten
 * ---------------------------------------------------------------------- */
.mb-steps {
    counter-reset: mb-stepno;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--ci-space-3);
}

.mb-step {
    counter-increment: mb-stepno;
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: var(--ci-space-2);
    align-items: start;
}

.mb-step::before {
    content: counter(mb-stepno);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--ci-surface-subtle);
    border: 2px solid var(--ci-primary);
    color: var(--ci-text);
    font-size: 1.15rem;
    font-weight: 700;
}

.mb-step h3 { margin-bottom: var(--ci-space-1); }
.mb-step p { margin: 0; color: var(--ci-text-secondary); }

/*
 * Ablauf als Karten (Snippet "Ablauf"): Kreis mit Icon, Nummer, Titel und
 * Text. Masse und Anordnung kommen aus pages/show.blade.php, hier die CI.
 */
.lpbt-step {
    background: var(--ci-surface);
    border-radius: calc(var(--ci-radius) * 1.5);
    padding: var(--ci-space-3);
    /* Die Flächen liegen eng beieinander (1,1:1), und im Dark Theme verschwindet der Schatten. */
    border: 1px solid color-mix(in srgb, var(--ci-border) 40%, transparent);
    box-shadow: 0 1px 3px var(--ci-shadow);
}

/* Auf "Fläche" trüge die Karte sonst den Ton des Abschnitts. */
.lpbt-section--surface .lpbt-step { background: var(--ci-background); }

.lpbt-step__icon { background: var(--ci-primary); color: var(--ci-on-primary); }
.lpbt-step__number { font-family: var(--ci-font-display); font-weight: 600; color: var(--ci-text); }
.lpbt-step > h3 { margin: var(--ci-space-2) 0 0; font-size: 1.25rem; color: var(--ci-primary); }
.lpbt-step__text { margin-top: var(--ci-space-1); font-size: 0.9375rem; color: var(--ci-text-secondary); }
.page-tile .lpbt-step { background: none; border: 0; padding: 0; box-shadow: none; }

/*
 * Icon-Liste (Snippet "Icon-Liste"): Linie, Text und Icon in der CI.
 * Masse und Spalten kommen aus pages/show.blade.php.
 */
.lpbt-icon-list { border-top: 1px solid color-mix(in srgb, var(--ci-primary) 40%, transparent); }
.lpbt-icon-list__item { color: var(--ci-text-secondary); }
.lpbt-icon-list__icon { color: var(--ci-primary); }

/* -------------------------------------------------------------------------
 * Bewertungen
 * ---------------------------------------------------------------------- */
:is(.mb-review, .lpbt-review) {
    background: var(--ci-surface);
    border: 1px solid var(--ci-border);
    border-radius: var(--ci-radius);
    padding: var(--ci-space-3);
    display: flex;
    flex-direction: column;
    gap: var(--ci-space-4);
}

:is(.mb-review__stars, .lpbt-review__stars) { color: var(--ci-primary); letter-spacing: 0.1em; }

:is(.mb-review__text, .lpbt-review__text) { margin: 0; }

:is(.mb-review__author, .lpbt-review__author) {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ci-text-secondary);
    font-style: normal;
}

/* Live von Google übernommene Bewertungen: Zusammenfassung und Slider. */
:is(.mb-reviews__summary, .lpbt-reviews__summary) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: var(--ci-space-1) var(--ci-space-1);
    margin-top: var(--ci-space-2);
}

:is(.mb-reviews__summary, .lpbt-reviews__summary) a { margin-left: var(--ci-space-2); }

/*
 * Rollen und Einrasten übernimmt .grid-track aus dem globalen Grid; hier
 * bleibt nur die Gestaltung des Streifens.
 */
:is(.mb-reviews__track, .lpbt-reviews__track) {
    list-style: none;
    margin: 0;
    padding: 0 0 var(--ci-space-1);
    scrollbar-width: thin;
}

:is(.mb-review__head, .lpbt-review__head) {
    display: flex;
    align-items: center;
    gap: var(--ci-space-2);
}

:is(.mb-review__avatar, .lpbt-review__avatar) {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    flex-shrink: 0;
}

:is(.mb-review__who, .lpbt-review__who) {
    margin: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

:is(.mb-review__who, .lpbt-review__who) a,
:is(.mb-review__who, .lpbt-review__who) span:first-child {
    color: var(--ci-text);
    font-weight: 500;
    text-decoration: none;
}

:is(.mb-review__who, .lpbt-review__who) a:hover { text-decoration: underline; }

:is(.mb-review__time, .lpbt-review__time) {
    font-size: 0.85rem;
    color: var(--ci-text-secondary);
}

/*
 * Sehr lange Bewertungen werden abgeschnitten, damit alle Karten gleich hoch
 * bleiben; der volle Text steht bei Google hinter dem Profil-Link.
 */
:is(.mb-reviews__track, .lpbt-reviews__track) :is(.mb-review__text, .lpbt-review__text) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 9;
    line-clamp: 9;
    overflow: hidden;
}

:is(.mb-reviews__nav, .lpbt-reviews__nav) {
    display: flex;
    justify-content: center;
    gap: var(--ci-space-1);
    margin-top: var(--ci-space-2);
}

:is(.mb-reviews__button, .lpbt-reviews__button) {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--ci-border);
    background: var(--ci-surface);
    color: var(--ci-text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

:is(.mb-reviews__button, .lpbt-reviews__button):hover,
:is(.mb-reviews__button, .lpbt-reviews__button):focus-visible {
    border-color: var(--ci-primary);
    color: var(--ci-primary);
}

/* -------------------------------------------------------------------------
 * Slider
 *
 * Seitlich rollende Bereiche — derzeit die Kacheln mit gesetzter
 * Slider-Option. Das Rollen und Einrasten macht .grid-track im globalen
 * Grid; hier stehen nur die Bedienknöpfe. Bewusst unter eigenem Namen und
 * nicht bei den Bewertungen: Der Slider gehört keinem Template allein.
 * ---------------------------------------------------------------------- */
.lpbt-slider__nav {
    display: flex;
    justify-content: center;
    gap: var(--ci-space-1);
    margin-top: var(--ci-space-2);
}

.lpbt-slider__button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--ci-border);
    background: var(--ci-surface);
    color: var(--ci-text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.lpbt-slider__button:hover:not(:disabled),
.lpbt-slider__button:focus-visible {
    border-color: var(--ci-primary);
    color: var(--ci-primary);
}

/*
 * Am Anfang oder Ende hat der Knopf nichts mehr zu tun. Er bleibt stehen
 * statt zu verschwinden — sonst verschöbe sich der zweite Knopf daneben.
 */
.lpbt-slider__button:disabled {
    opacity: 0.4;
    cursor: default;
}

/*
 * Die Rollleiste stört das ruhige Bild; das Einrasten und die Knöpfe
 * zeigen ohnehin, dass sich hier etwas bewegen lässt.
 */
.page-tiles--slider {
    scrollbar-width: none;
    padding: 2px;
}

.page-tiles--slider::-webkit-scrollbar { display: none; }

/* -------------------------------------------------------------------------
 * FAQ
 * ---------------------------------------------------------------------- */
:is(.mb-faq, .lpbt-faq) { display: grid; gap: var(--ci-space-2); max-width: 48rem; margin: 0 auto; }

:is(.mb-faq__item, .lpbt-faq__item) {
    background: var(--ci-surface);
    border: 1px solid var(--ci-border);
    border-radius: var(--ci-radius);
    padding: var(--ci-space-2) var(--ci-space-3);
}

:is(.mb-faq__question, .lpbt-faq__question) {
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ci-space-2);
}

:is(.mb-faq__question, .lpbt-faq__question)::-webkit-details-marker { display: none; }

:is(.mb-faq__question, .lpbt-faq__question)::after {
    content: "+";
    color: var(--ci-primary);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

:is(.mb-faq__item, .lpbt-faq__item)[open] :is(.mb-faq__question, .lpbt-faq__question)::after { content: "−"; }

:is(.mb-faq__answer, .lpbt-faq__answer) {
    margin: var(--ci-space-2) 0 0;
    color: var(--ci-text-secondary);
}

/* -------------------------------------------------------------------------
 * Formulare
 * ---------------------------------------------------------------------- */
.mb-form { display: grid; gap: var(--ci-space-2); }

.mb-field { display: grid; gap: 0.35rem; }

.mb-field__label { font-weight: 500; }

.mb-field input[type="text"],
.mb-field input[type="email"],
.mb-field input[type="tel"] {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font: inherit;
    color: var(--ci-text);
    background: var(--ci-surface);
    border: 1px solid var(--ci-border);
    border-radius: var(--ci-radius);
}

.mb-field input[aria-invalid="true"] { border-color: #B3261E; }

.mb-field__error { margin: 0; color: #B3261E; font-size: 0.9rem; }

.mb-field--consent label {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-weight: 400;
    font-size: 0.95rem;
}

.mb-field--consent input { margin-top: 0.3rem; flex-shrink: 0; }

.mb-errors {
    background: #FDECEA;
    border: 1px solid #F5C2C0;
    border-radius: var(--ci-radius);
    color: #7A1C17;
    padding: var(--ci-space-2);
}

.mb-errors ul { margin: 0; padding-left: 1.25rem; }

.mb-status {
    background: var(--ci-surface-subtle);
    border: 1px solid var(--ci-border);
    border-left: 4px solid var(--ci-secondary);
    border-radius: var(--ci-radius);
    padding: var(--ci-space-2);
}

.mb-form__note {
    font-size: 0.85rem;
    color: var(--ci-text-secondary);
    margin: 0;
}

/* -------------------------------------------------------------------------
 * Fusszeile
 * ---------------------------------------------------------------------- */
.mb-footer {
    background: var(--ci-tertiary);
    color: var(--ci-band-text);
    padding: var(--ci-space-5) 0 var(--ci-space-3);
    margin-top: auto;
}

.mb-footer a {
    color: var(--ci-band-text);
    text-decoration: none;
}

.mb-footer a:hover,
.mb-footer a:focus-visible { text-decoration: underline; }

/*
 * Das Band ist in beiden Themes dunkel; die Sekundärfarbe des Light Theme
 * wäre darauf nicht lesbar. Der gedämpfte Ton leitet sich aus der
 * Bandschrift ab, statt als fester Grauwert danebenzustehen.
 */
.mb-footer .lpbt-logo__claim { color: color-mix(in srgb, var(--ci-band-text) 72%, transparent); }

.mb-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: var(--ci-space-4);
    margin-bottom: var(--ci-space-4);
}

.mb-footer__heading {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--ci-space-1);
}

.mb-footer__list { list-style: none; margin: 0; padding: 0; }

.mb-footer__list li { margin-bottom: 0.35rem; }

.mb-footer__bottom {
    border-top: 1px solid rgb(255 255 255 / 0.15);
    padding-top: var(--ci-space-2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--ci-space-2);
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--ci-band-text) 72%, transparent);
}

/* -------------------------------------------------------------------------
 * Seitengerüst
 * ---------------------------------------------------------------------- */
.mb-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mb-page > main { flex: 1; }

/* -------------------------------------------------------------------------
 * Bewegung
 *
 * Übergänge nur, wenn keine Reduzierung gewünscht ist.
 * ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* -------------------------------------------------------------------------
 * Sinnbilder
 *
 * Emoji, eingebettetes SVG und Bilddatei sollen gleich gross erscheinen,
 * damit eine Liste aus gemischten Quellen ruhig wirkt.
 * ---------------------------------------------------------------------- */
.mb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5em;
    height: 1.5em;
    font-size: 1.15em;
    line-height: 1;
}

.mb-icon svg,
img.mb-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Eingebettete SVGs folgen der Textfarbe, sofern sie keine eigene führen. */
.mb-icon svg { fill: currentColor; }

/* ────────────────────────────────────────────────────────────────────────────
   Gestaltbare Texte (Markdown)

   Bereiche, deren Inhalt aus Markdown entsteht: ein div, in dem Absätze,
   Listen und Zitate stehen dürfen. Die Abstände folgen den Absätzen der
   Seite; das letzte Kind gibt seinen Abstand ab, damit der Bereich selbst
   bündig schließt — wie zuvor das einzelne <p>.
──────────────────────────────────────────────────────────────────────────── */

.lpbt-prose > :last-child { margin-bottom: 0; }

.lpbt-prose ul,
.lpbt-prose ol {
    margin: 0 0 var(--ci-space-2);
    padding-left: 1.5em;
}

.lpbt-prose li { margin-bottom: 0.35em; }
.lpbt-prose ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lpbt-prose li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: var(--ci-space-2);
}
.lpbt-prose li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ci-primary);
    font-weight: 700;
}


.lpbt-prose blockquote {
    margin: 0 0 var(--ci-space-2);
    padding-left: var(--ci-space-2);
    border-left: 3px solid var(--ci-border);
    color: var(--ci-text-secondary);
}

/* Zwischenüberschriften aus dem Text bleiben eine Stufe kleiner. */
.lpbt-prose h2 { font-size: 1.35em; margin: 0 0 var(--ci-space-1); }
.lpbt-prose h3 { font-size: 1.15em; margin: 0 0 var(--ci-space-1); }

/*
 * Textfarben-Auszeichnungen aus dem WYSIWYG-Editor: Der Editor setzt auf
 * markierte Passagen genau diese drei Klassen; die Töne kommen aus dem
 * Branding der Firma.
 */
.lpbt-text--muted { color: var(--ci-muted); }
.lpbt-text--primary { color: var(--ci-primary); }
.lpbt-text--accent { color: var(--ci-accent-text); }

/*
 * Textausrichtung aus dem WYSIWYG-Editor: Sie haengt am Block (Absatz,
 * Ueberschrift), nicht an einer markierten Passage — darum ein eigenes
 * Praefix, das nicht mit den Textfarben kollidiert. Beide koennen am
 * selben Element sitzen. Linksbuendig ist der Normalzustand und traegt
 * bewusst keine Klasse.
 */
.lpbt-align--center { text-align: center; }
.lpbt-align--right { text-align: right; }

/* -------------------------------------------------------------------------
 * Bausteine auf den farbigen Abschnitts-Flächen
 *
 * Auf "Markenband" und "Primärfarbe" trägt der Abschnitt schon seine
 * Gegenfarbe (siehe .lpbt-section--band / --primary weiter oben). Die
 * Bausteine darin setzen aber eigene Farben aus der CI — ein Häkchen in
 * --ci-primary steht auf der Primärfläche unsichtbar, eine helle Karte
 * trägt darin die helle Schrift der Fläche, und gedämpfte Passagen in
 * --ci-muted verlieren den Kontrast. Diese Regeln stehen darum bewusst
 * ganz am Ende: Sie müssen alles übersteuern, was oben steht.
 *
 * Durchweg currentColor statt fester Töne — die Fläche bestimmt die
 * Schriftfarbe, und currentColor geht mit ihr mit: über beide Flächen,
 * beide Farbschemata und jedes Branding aus der Datenbank hinweg. Für die
 * abgeschwächten Fassungen mischt color-mix() Transparenz bei; das ist
 * genauer als opacity, das auch Ränder und Hintergründe eines Elements
 * mitnimmt.
 * ---------------------------------------------------------------------- */

/*
 * Gedämpfte Passagen: Unterzeile, Kopf-Text, Karten-Notiz, FAQ-Antwort,
 * Fakten-Text, Bewertungs-Beiwerk und die Auszeichnung "gedämpft" aus dem
 * Editor. 90 % der Schriftfarbe hebt sich vom vollen Ton ab; tiefer geht
 * es nicht: Das helle Grün auf der Primärfläche fiele bei 85 % auf 4,36:1.
 */
:is(.lpbt-section--band, .lpbt-section--primary) :is(
    .lpbt-section__subline,
    .lpbt-text--muted,
    .mb-lead,
    .mb-card__note, .lpbt-card__note,
    .mb-faq__answer, .lpbt-faq__answer,
    .lpbt-facts__text,
    .mb-review__author, .lpbt-review__author,
    .mb-review__time, .lpbt-review__time,
    .mb-stat__label,
    .mb-form__note,
    .lpbt-prose blockquote,
    .page-snippet__subline
) {
    color: color-mix(in srgb, currentColor 90%, transparent);
}

:is(.lpbt-section--band, .lpbt-section--primary) :is(.mb-section__head, .lpbt-section__head) p {
    color: color-mix(in srgb, currentColor 90%, transparent);
}

/*
 * Innerhalb einer Karte nicht noch einmal dämpfen: Deren Grund ist schon
 * aus der Schriftfarbe gemischt, eine zweite Stufe darauf bliebe bei
 * einem knapp gewählten Branding unter 4,5:1.
 */
:is(.lpbt-section--band, .lpbt-section--primary)
:is(.mb-card, .lpbt-card, .mb-review, .lpbt-review, .mb-faq__item, .lpbt-faq__item)
:is(.mb-card__note, .lpbt-card__note, .mb-review__author, .lpbt-review__author,
    .mb-review__time, .lpbt-review__time, .mb-faq__answer, .lpbt-faq__answer) {
    color: inherit;
}

/*
 * Volle Schriftfarbe statt CI-Ton: Auszeichnungen, Zeichen vor Listen,
 * Sterne, Fakten-Werte, das Plus/Minus der FAQ und die Menü-Links. Alle
 * trügen sonst --ci-primary, --ci-accent oder --ci-text — Farbe auf
 * gleicher Farbe.
 */
:is(.lpbt-section--band, .lpbt-section--primary) :is(.mb-list, .lpbt-list) li::before,
:is(.lpbt-section--band, .lpbt-section--primary) .lpbt-prose li::before,
:is(.lpbt-section--band, .lpbt-section--primary) :is(
    .lpbt-text--primary,
    .lpbt-text--accent,
    .mb-review__stars, .lpbt-review__stars,
    .lpbt-facts__value,
    .mb-stat__value,
    .lpbt-nav__link,
    .mb-review__who, .lpbt-review__who
),
:is(.lpbt-section--band, .lpbt-section--primary) :is(.mb-review__who, .lpbt-review__who) :is(a, span:first-child),
:is(.lpbt-section--band, .lpbt-section--primary) :is(.mb-faq__question, .lpbt-faq__question)::after {
    color: currentColor;
}

/* Das Kreuz der Gegenüberstellung bleibt abgesetzt, aber lesbar. */
:is(.lpbt-section--band, .lpbt-section--primary) :is(.mb-list--cross, .lpbt-list--cross) li::before {
    color: color-mix(in srgb, currentColor 85%, transparent);
}

/*
 * Ränder und Trennlinien: --ci-border ist auf der farbigen Fläche kaum
 * sichtbar. 30 % der Schriftfarbe zeichnet die Linie, ohne sie vor den
 * Inhalt zu drängen.
 */
:is(.lpbt-section--band, .lpbt-section--primary) :is(
    .mb-faq__item, .lpbt-faq__item,
    .mb-reviews__button, .lpbt-reviews__button,
    .lpbt-slider__button,
    .lpbt-prose blockquote,
    .mb-media, .lpbt-media
) {
    border-color: color-mix(in srgb, currentColor 30%, transparent);
}

/*
 * Der Nummernkreis dreht das Verhältnis um: Die Fläche trägt die
 * Schriftfarbe, die Zahl die Farbe des Abschnitts. So bleibt der Kreis
 * auf jeder Fläche sichtbar und die Zahl darin lesbar. Zwei Regeln, weil
 * die beiden Flächen verschiedene Variablen tragen.
 *
 * Beide Farben ausgeschrieben statt currentColor für den Grund: Die
 * Regel setzt color am selben Element mit, und currentColor läse dann
 * schon den neuen Wert — Kreis und Zahl fielen in einer Farbe zusammen.
 */
.lpbt-section--band :is(.mb-list--numbered, .lpbt-list--numbered) li::before {
    background: var(--ci-band-text);
    color: var(--ci-band);
}

.lpbt-section--primary :is(.mb-list--numbered, .lpbt-list--numbered) li::before {
    background: var(--ci-on-primary);
    color: var(--ci-primary);
}

/* Der Schritt-Kreis der Funnels folgt demselben Muster. */
:is(.lpbt-section--band, .lpbt-section--primary) .mb-step::before {
    background: color-mix(in srgb, currentColor 8%, transparent);
    border-color: currentColor;
    color: inherit;
}

/*
 * Die Ablauf-Karte fügt sich wie die Karten ein; der Icon-Kreis dreht wie
 * der Nummernkreis das Verhältnis um, damit er auf der Fläche sichtbar bleibt.
 */
:is(.lpbt-section--band, .lpbt-section--primary) .lpbt-step {
    background: color-mix(in srgb, currentColor 8%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    box-shadow: none;
}

:is(.lpbt-section--band, .lpbt-section--primary) :is(.lpbt-step__number, .lpbt-step > h3, .lpbt-step__text) {
    color: inherit;
}

.lpbt-section--band .lpbt-step__icon { background: var(--ci-band-text); color: var(--ci-band); }
.lpbt-section--primary .lpbt-step__icon { background: var(--ci-on-primary); color: var(--ci-primary); }

/* Die Icon-Liste nimmt Schrift- und Linienfarbe von der Fläche. */
:is(.lpbt-section--band, .lpbt-section--primary) .lpbt-icon-list {
    border-top-color: color-mix(in srgb, currentColor 40%, transparent);
}

:is(.lpbt-section--band, .lpbt-section--primary) :is(.lpbt-icon-list__item, .lpbt-icon-list__icon) {
    color: inherit;
}

/*
 * Karten, Bewertungen und FAQ-Kästen auf der farbigen Fläche: Sie tragen
 * sonst --ci-surface — eine weisse Insel auf dunkelgrünem Grund, deren
 * Text die helle Schrift der Fläche erbt und damit weiss auf weiss steht.
 * Statt die Karte hell zu lassen, fügt sie sich in die Fläche ein: ein
 * Hauch der Schriftfarbe als Grund, ein Rand aus derselben Farbe. Das
 * folgt dem CTA-Band, in dem Buttons auf farbigem Grund ebenfalls zur
 * durchscheinenden Outline-Fassung werden, statt eine eigene Fläche
 * mitzubringen.
 */
:is(.lpbt-section--band, .lpbt-section--primary) :is(
    .mb-card, .lpbt-card,
    .mb-review, .lpbt-review,
    .mb-faq__item, .lpbt-faq__item,
    .mb-status,
    .lpbt-slider__button,
    .mb-video, .lpbt-video,
    .mb-media, .lpbt-media
) {
    background: color-mix(in srgb, currentColor 8%, transparent);
    color: inherit;
}

/*
 * Der Slider-Knopf auf der farbigen Fläche: Sein Hervorheben liefe sonst
 * auf die Primärfarbe hinaus, die hier die Fläche selbst trägt.
 */
:is(.lpbt-section--band, .lpbt-section--primary) .lpbt-slider__button:hover:not(:disabled),
:is(.lpbt-section--band, .lpbt-section--primary) .lpbt-slider__button:focus-visible {
    border-color: currentColor;
    color: inherit;
    background: color-mix(in srgb, currentColor 18%, transparent);
}

:is(.lpbt-section--band, .lpbt-section--primary) :is(.mb-card, .lpbt-card, .mb-review, .lpbt-review) {
    border-color: color-mix(in srgb, currentColor 30%, transparent);
}

/*
 * Eingabefelder bleiben eine helle Fläche — sie sollen als beschreibbar
 * erkennbar sein — und tragen darum wieder die normale Schriftfarbe.
 */
:is(.lpbt-section--band, .lpbt-section--primary) .mb-field :is(input, textarea, select) {
    color: var(--ci-text);
}

/* -------------------------------------------------------------------------
 * Erfahrungs-Karte (Video im Slider der Kacheln)
 *
 * Wie die Erfahrungen der Marke: tiefgrüne Karte mit hellgrüner Schrift
 * (hell 8,55:1, dunkel #F7F9F2 auf #3A5B35 7,25:1), Badge und Knopf in
 * Lime mit tiefgrüner Schrift (10,47:1), beim Darüberfahren Grün mit
 * hellem Grün (5,33:1; dunkel 12,26:1). Masse und Anordnung kommen aus
 * pages/show.blade.php.
 * ---------------------------------------------------------------------- */
.lpbt-testimonial {
    background: var(--ci-secondary);
    color: var(--ci-on-secondary);
    border-radius: calc(var(--ci-radius) * 1.5);
    box-shadow: 0 20px 25px -5px var(--ci-shadow);
}

/* Ein Link im Zitat trüge sonst Tiefgrün auf Tiefgrün. */
.lpbt-testimonial__quote a { color: inherit; }

.lpbt-testimonial__badge,
.lpbt-testimonial__play {
    background: var(--ci-accent);
    color: var(--ci-green-deep);
}

.lpbt-testimonial__play:hover,
.lpbt-testimonial__play-icon {
    background: var(--ci-primary);
    color: var(--ci-on-primary);
}

.lpbt-testimonial__play:focus-visible { outline-color: var(--ci-accent); }

.lpbt-testimonial__quote p { font-family: var(--ci-font-display); }

/* 90 % der Schrift: hell 7,28:1, dunkel 6,24:1. */
.lpbt-testimonial__note { color: color-mix(in srgb, currentColor 90%, transparent); }

/*
 * Auf Band und Primärfläche verschwände die tiefgrüne Karte im Grund: Sie
 * fügt sich wie die übrigen Karten mit einem Hauch der Schriftfarbe ein,
 * die Zusatzzeile bleibt voll (auf der Primärfläche fiele sie auf 4,03:1).
 */
:is(.lpbt-section--band, .lpbt-section--primary) .lpbt-testimonial {
    background: color-mix(in srgb, currentColor 8%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    box-shadow: none;
    color: inherit;
}

:is(.lpbt-section--band, .lpbt-section--primary) .lpbt-testimonial__note { color: inherit; }

/* custom styles */
