/*
 * Bausteine der Plattform-Seiten in der Formensprache des Heros (2026-10-03):
 * Pill-Eyebrow, Überschrift und Lead, Bühne mit Ringen, Glas, Karten in drei
 * Tönen, das eingerückte dunkle Panel, die CTA-Einheit aus Pill und Pfeil,
 * Kreis-Icons. Geladen von der Startseite und von /preise (der Preisblock
 * landing/_plans.html.twig baut darauf). Alles heißt .tm-*: .eyebrow, .card,
 * .tile, .phone, .steps und .faq gehören schon anderen Regeln.
 *
 * Die Tokens stehen hier und nicht in platform-brand.css, weil jene Datei
 * ohne Version im Namen sieben Tage im Browser-Cache liegt. Diese Datei wird
 * mit ?v= eingebunden; wer sie ändert, zählt die Zahl in den Links hoch.
 *
 * Radien haben eine Rangfolge und sind nicht alle gleich rund: Bühne und Panel
 * 40, Karte 28, Mini-UI 18 (--radius der Seite), Knöpfe und Pills 999.
 * Farben mit Deckkraft entstehen per color-mix() aus den Tokens.
 */
:root {
    --cream: #FBF8F3;           /* der Grund der Startseite, wärmer als --paper */
    --cream-deep: #F4EEE4;      /* Papier-Karten, Fuß der Bühnen, Grund der Schalter */
    /* Gold auf hellem Grund: --gold selbst trägt dort keine Schrift (2,3:1).
       -deep für Text (5,0:1 auf --gold-soft), -display nur für große
       Headline-Schrift (3,4:1), -soft als Fläche; -light ist Gold auf Dunkel. */
    --gold-deep: #7A5C24;
    --gold-display: #A88240;
    --gold-soft: #F1E5CB;
    --gold-light: #E3C48C;
    --sage-line: #8FAE9C;       /* Salbei als Linie: Ringe, dritte Identitätsfarbe */
    --pine-deep: #0F2822;       /* dunkler als --pine: der gezeichnete Handyrahmen */
    --status-ok: #486D57;       /* Status-Punkt, = --ui-success */
    --status-pending: #925C26;  /* = --ui-warning */
    --radius-panel: 40px;
    --radius-card: 28px;
    --section-y: 120px;
    --gutter: 32px;
}
@media (max-width: 899px) {
    :root { --section-y: 88px; --gutter: 20px; --radius-panel: 32px; }
}

/* Eyebrow: eine Pill in Satzschreibung mit goldenem Punkt, keine Versalien. */
.tm-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong);
    font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--ink);
}
.tm-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.tm-eyebrow--dark {
    background: color-mix(in srgb, var(--paper) 8%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--paper) 16%, transparent);
    color: color-mix(in srgb, var(--paper) 82%, transparent);
}
.tm-h2 { margin-top: 18px; font-family: var(--font-display); font-size: clamp(34px, 4vw, 54px); line-height: 1.06; font-weight: 500; letter-spacing: -.02em; color: var(--pine); text-wrap: balance; }
.tm-h2 em { font-style: italic; color: var(--gold-display); }
.tm-lead { margin-top: 18px; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.tm-center { text-align: center; }
.tm-center .tm-lead { margin-left: auto; margin-right: auto; }
.tm-textlink { font-weight: 600; color: var(--pine-soft); text-decoration: underline; text-underline-offset: 4px; }

/* Kopfzeile eines Abschnitts: Überschrift links, ein kurzer Text oder ein
   Knopf rechts, unten bündig. */
.tm-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.tm-head-row .tm-lead { max-width: 400px; margin-top: 0; font-size: 15px; }
/* Runder Knopf (Blättern) und runder Haken (Listen). */
.tm-round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--pine-soft); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tm-round--fill { background: var(--pine-soft); border-color: var(--pine-soft); color: var(--paper); }
.tm-check { width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--sage-deep); color: var(--pine-soft); }

/* Bühne: eine abgerundete Fläche, oben Salbei, unten warmes Papier; darin
   Ringe als einziges Deko-Motiv. Ein Ring bekommt Mitte und Durchmesser als
   --x, --y, --d am Element. Wer Ringe trägt, schneidet sie ab und hält sie
   mit isolation hinter dem eigenen Inhalt (z-index: -1). */
.tm-stage, .tm-card--dark, .tm-inset { position: relative; overflow: hidden; isolation: isolate; }
.tm-stage {
    border-radius: var(--radius-panel);
    background: radial-gradient(70% 90% at 50% 0%, var(--sage-deep) 0%, color-mix(in srgb, var(--sage-deep) 50%, var(--cream-deep)) 45%, var(--cream-deep) 100%);
}
.tm-ring {
    position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: var(--d); height: var(--d);
    border-radius: 50%; border: 1px solid color-mix(in srgb, var(--sage-line) 38%, transparent);
    transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
}
.tm-ring--dark { border-color: color-mix(in srgb, var(--paper) 10%, transparent); }

.tm-glass {
    background: color-mix(in srgb, var(--surface) 74%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--surface) 90%, transparent),
        0 0 0 1px color-mix(in srgb, var(--pine) 6%, transparent),
        0 22px 44px -22px color-mix(in srgb, var(--pine) 45%, transparent);
}

/* Karten: Kontur statt Schatten. */
.tm-card { background: var(--surface); border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--line-strong); }
.tm-card--paper { background: var(--cream-deep); box-shadow: none; }
.tm-card--dark { background: var(--pine-soft); color: var(--paper); box-shadow: none; }

/* Eingerücktes Panel: der dunkle Abschnitt als abgerundete Fläche mit Rand
   zur Seite, statt einer Welle über die volle Breite. */
.tm-inset {
    margin: var(--section-y) 16px 0; border-radius: var(--radius-panel);
    background: var(--pine-soft); color: var(--paper);
}
.tm-inset :focus-visible { outline-color: var(--gold); }
@media (max-width: 899px) { .tm-inset { margin-left: 10px; margin-right: 10px; } }

/* CTA-Einheit: Pill und runder Pfeil sind EIN Link; der Pfeil dreht beim
   Überfahren. Auf Dunkel: Pill hell, Pfeil-Kreis in Gold. */
.tm-cta { display: inline-flex; align-items: center; }
.tm-cta-label { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--pine-soft); color: var(--paper); font-weight: 600; font-size: 15px; }
.tm-cta-icon {
    width: 52px; height: 52px; margin-left: -4px; border-radius: 50%; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--cream); color: var(--pine-soft);
    box-shadow: 0 0 0 2px var(--pine-soft), 0 0 0 7px var(--cream);
    transition: transform .2s ease;
}
.tm-cta:hover .tm-cta-icon { transform: rotate(45deg); }
.tm-cta--dark .tm-cta-label { background: var(--cream); color: var(--pine-soft); }
.tm-cta--dark .tm-cta-icon { background: var(--gold); color: var(--pine); box-shadow: 0 0 0 5px var(--pine-soft); }
a.tm-cta:focus-visible { border-radius: 999px; }
/* Derselbe goldene Lichtbogen wie am Knopf der Kopfzeile (platform-nav.css
   bringt --nav-spin und die Keyframes mit): er läuft beim Überfahren um die
   Pill, dazu ein leichter goldener Schimmer. Gilt auch für die Pill im Hero
   der Startseite (.hb-cta), die dieselbe Einheit ist. */
.tm-cta-label, .hb-cta-label { position: relative; transition: box-shadow .3s; }
/* Die Pill ist für den Bogen positioniert; der runde Pfeil muss trotzdem über
   ihr liegen, sonst verschwindet der Halbkreis, den er aus der Pill schneidet. */
.tm-cta-icon, .hb-cta-icon { position: relative; z-index: 1; }
.tm-cta-label::before, .hb-cta-label::before {
    content: ""; position: absolute; inset: -3px; padding: 2px; border-radius: 999px; pointer-events: none;
    background: conic-gradient(from var(--nav-spin), transparent 0 58%, var(--gold) 80%, var(--gold-light) 92%, transparent 100%);
    -webkit-mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
    -webkit-mask-composite: xor;
    mask: linear-gradient(black, black) content-box exclude, linear-gradient(black, black);
    opacity: 0; transition: opacity .2s;
}
.tm-cta:hover .tm-cta-label, .tm-cta:focus-visible .tm-cta-label,
.hb-cta:hover .hb-cta-label, .hb-cta:focus-visible .hb-cta-label { box-shadow: 0 0 24px -6px color-mix(in srgb, var(--gold) 85%, transparent); }
.tm-cta:hover .tm-cta-label::before, .tm-cta:focus-visible .tm-cta-label::before,
.hb-cta:hover .hb-cta-label::before, .hb-cta:focus-visible .hb-cta-label::before { opacity: 1; animation: nav-spin 1.6s linear infinite; }

/* Kreis-Icon: Inline-SVG mit 1.8 Strich auf einer getönten Fläche. */
.tm-icon { width: 44px; height: 44px; border-radius: 14px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--sage-deep); color: var(--pine-soft); }
.tm-icon--gold { background: var(--gold-soft); color: var(--gold-deep); }

@media (prefers-reduced-motion: reduce) {
    .tm-cta-icon { transition: none; }
    .tm-cta-label::before, .hb-cta-label::before { background: var(--gold); transition: none; animation: none !important; }
}
