/* © 2026 Trinity Skills Academy · Jeannine Karlen. Alle Rechte vorbehalten. */
/* Trinity Form System — Produktiv-Komponenten für die Formulare 1.1–1.6 (Pilot 1.4).
   Abgenommene Formensprache aus formsystem-vorschau.css (22.08.2026). Alles über --c-*-Branding-Tokens mit Trinity-Fallbacks.
   Kette: colors_and_type.css → trinity-ui.css → trinity-form-system.css. Ersetzt trinity-formular.css/-basis + Inline-Blöcke im migrierten Formular. */
/* Schriften (Root-Ordner fonts/ — trinity-shared/fonts/ existiert nicht; gleiche Quellen wie trinity-style.css) */
@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:url('./fonts/Montserrat-Light.otf') format('opentype')}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/Montserrat-Regular.otf') format('opentype')}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:url('./fonts/Montserrat-Medium.otf') format('opentype')}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:url('./fonts/Montserrat-SemiBold.otf') format('opentype')}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:url('./fonts/Montserrat-Bold.otf') format('opentype')}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:url('./fonts/Montserrat-ExtraBold.otf') format('opentype')}
@font-face{font-family:'Vintage Moon';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/Vintage_Moon_Regular.ttf') format('truetype')}
@font-face{font-family:'Cinzel Decorative';font-weight:400;font-display:swap;src:url('./fonts/cinzel-decorative-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Cinzel Decorative';font-weight:700;font-display:swap;src:url('./fonts/cinzel-decorative-latin-700-normal.woff2') format('woff2')}
:root{
--tf-bg:var(--c-bg,#e8ddcf);--tf-surface:var(--c-surface-soft,#f2ece2);--tf-soft:var(--c-surface,#f8f4ec);
--tf-card:color-mix(in srgb,var(--c-surface-soft,#f2ece2) 60%,transparent);
--tf-ink:var(--c-ink,#0c0d07);--tf-t2:var(--c-text-2,#5a5748);--tf-t3:var(--c-text-3,#8c8577);--tf-border:var(--c-border,#d8cbb8);
--tf-accent:var(--c-accent,var(--topic-hormone-accent,#4A1F26));--tf-tint:var(--topic-hormone-tint,#E9C9CC);
--tf-line:color-mix(in srgb,var(--c-primary,#A88950) 32%,transparent);
--tf-grad:linear-gradient(135deg,var(--c-grad-a,#fff5b1),var(--c-grad-b,#e5c05b) 42%,var(--c-grad-c,#dba402));
--tf-font-h:var(--font-heading,var(--font-serif,'Cinzel Decorative',serif));--tf-font-b:var(--font-body,var(--font-sans,'Montserrat','Helvetica Neue',sans-serif));
--tf-wahl:color-mix(in srgb,var(--tf-accent) 8%,var(--tf-soft));
--tf-ok:var(--status-success,#3F7A45);--tf-ok-bg:var(--status-success-bg,#DCEBD9);--tf-warn:var(--status-warning,#96660B);--tf-warn-bg:var(--status-warning-bg,#F3E4C9);--tf-err:var(--status-error,#B3261E);--tf-err-bg:var(--status-error-bg,#F5DAD8);
}@supports not (color:color-mix(in srgb,red,blue)){/*alt*/:root{--tf-card:var(--c-surface-soft,#f2ece2);--tf-line:var(--c-primary,#A88950);--tf-wahl:var(--tf-soft)}}
/* Ausnahme (Entscheid Jeannine 24.08.2026): Männerbereich in Blau — die Hormone-Tönung passt inhaltlich nicht */
html[data-gender="m"]{--tf-tint:#C9D9E9;--tf-wahl:#E2EBF4}
html:has(body.tf-body){scrollbar-gutter:stable} /* 10.09.2026: feste Rollbalken-Rinne, damit der skalierte Kopf beim Nachladen nicht schmaler wird (siehe trinity-app-ergaenzung.css) */
/* Ein Rollbalken wie im Portal (5 px) — gleiche Kopfbreite auf allen Kopf-Seiten, kein 2-px-Sprung beim Seitenwechsel (10.09.2026) */
.tf-body::-webkit-scrollbar,html:has(body.tf-body)::-webkit-scrollbar{width:5px}html:has(body.tf-body)::-webkit-scrollbar-track{background:var(--c-bg,var(--cream,#e8ddcf))}html:has(body.tf-body)::-webkit-scrollbar-thumb{background:rgba(var(--c-primary-rgb,168,137,80),.4);border-radius:999px}
body.tf-body{margin:0;background:var(--tf-bg);color:var(--tf-ink);font-family:var(--tf-font-b);font-size:13.5px;line-height:1.55;-webkit-font-smoothing:antialiased}
.tf-body a{color:var(--tf-accent)}.tf-body a:hover{color:var(--c-primary,#A88950)}
.tf-body :focus-visible{outline:2px solid var(--tf-accent);outline-offset:2px;border-radius:4px}
/* ── Kopfbalken: zentral in trinity-kopf.css (Variante C, Freigabe 07.09.2026) — hier nichts mehr definieren ── */
/* ── Shell + Fortschritt ── */
.tf-shell{max-width:760px;margin:0 auto;padding:0 16px calc(110px + env(safe-area-inset-bottom));position:relative;z-index:1}
.tf-progress{margin:12px 0 6px}
.tf-progress-label{margin:0 0 6px}
.tf-progress-label #tfProgText{display:flex;justify-content:space-between;align-items:baseline;gap:10px;width:100%;font-size:14px;color:var(--tf-t2);font-weight:600}
.tf-track{height:6px;border-radius:999px;background:var(--cream-dark,#d6c9b7);overflow:hidden;margin:0 0 6px}
.tf-fill{height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,var(--t-anchor,#A88950),var(--t-accent,#4A1F26));transition:width .4s ease}
/* ── Steps ── */
.tf-step{display:none}
.tf-step.aktiv{display:block;animation:tfein .35s ease}
@keyframes tfein{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* Schrift ausdrücklich setzen (05.09.2026): colors_and_type.css legt Cinzel Decorative auf
   jedes h1–h3. Ein Abschnittstitel ist 20px — dort ist Cinzel verboten (keine Zierschrift
   unter 40px). Ohne diese Zeile erbt jeder als Überschrift ausgezeichnete Titel die Zierschrift. */
.tf-step-title{font-family:var(--tf-font-b);font-size:20px;font-weight:800;margin:16px 0 4px}
.tf-body h1.tf-step-title,.tf-body h2.tf-step-title,.tf-body h3.tf-step-title{font-family:var(--tf-font-b)}
.tf-step-sub{color:var(--tf-t2);font-size:13.5px;margin:0 0 14px;max-width:56ch;text-wrap:pretty}
/* ── Karten ── */
.tf-card{background:var(--tf-surface);background:var(--tf-card,var(--tf-surface));backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);border:1px solid var(--cream-dark,#d6c9b7);border-radius:16px;box-shadow:0 2px 16px rgba(12,13,7,.07);padding:18px 16px 16px;margin:0 0 16px}
.tf-card-label{font-size:11px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--tf-accent);padding-bottom:9px;margin:0 0 14px;border-bottom:1px solid var(--tf-line)}
/* ── Felder ── */
.tf-row{display:grid;gap:12px;margin:0 0 12px}
.tf-row:last-child{margin-bottom:0}
@media (min-width:520px){.tf-row.zwei{grid-template-columns:1fr 1fr}}
.tf-field{display:flex;flex-direction:column;gap:6px}
.tf-label{font-size:13.5px;font-weight:600}
.tf-label.pflicht::after{content:" *";color:var(--tf-accent)}
.tf-help{font-size:12px;color:var(--tf-t3)}
.tf-input,.tf-select,.tf-textarea{font-family:inherit;color:var(--tf-ink);background:var(--tf-soft);border:1px solid var(--tf-border);border-radius:8px;padding:10px 12px;min-height:44px;width:100%;box-sizing:border-box}
.tf-textarea{min-height:88px;resize:vertical;line-height:1.5}
.tf-input:focus,.tf-select:focus,.tf-textarea:focus{outline:2px solid var(--tf-accent);outline-offset:0;border-color:var(--tf-accent)}
.tf-birthrow{display:grid;grid-template-columns:1fr 1fr 1.1fr;gap:8px}
/* ── Selection-System: EIN horizontales Raster (P44). Frage → 8px → Antwortgruppe → 24px. ── */
.tf-q-block{margin:0 0 24px}
.tf-q-block:last-child{margin-bottom:4px}
.tf-frage{display:block;font-size:14px;font-weight:600;line-height:1.5;margin:0 0 8px}
.tf-frage .q-detail{display:block;margin-top:3px;font-size:12.5px;font-weight:400;color:var(--tf-t2);line-height:1.5}
.tf-sel{display:grid;gap:8px;justify-items:stretch;width:100%}
.tf-sel--yes-no{grid-template-columns:repeat(2,1fr);width:calc((100% - 24px)/2 + 8px);min-width:150px}
.tf-sel--yes-no .tf-opt{min-height:38px;padding:6px 8px;font-size:13.5px}
.tf-sel--three{grid-template-columns:repeat(3,1fr)}
.tf-sel--four{grid-template-columns:repeat(4,1fr)}
.tf-sel--long{grid-template-columns:1fr}
@media (max-width:560px){.tf-sel--three{grid-template-columns:1fr}.tf-sel--four{grid-template-columns:repeat(2,1fr)}}
.tf-opt{position:relative;display:flex;align-items:center;justify-content:center;text-align:center;gap:9px;min-height:44px;padding:9px 12px;background:var(--tf-soft);border:1px solid var(--tf-border);border-radius:8px;cursor:pointer;font-weight:500;font-size:14px;line-height:1.35;transition:border-color .15s,background .15s,box-shadow .15s}
.tf-sel--long .tf-opt,.tf-checkgrid .tf-opt{justify-content:flex-start;text-align:left}
.tf-opt input{position:absolute;opacity:0;pointer-events:none}
.tf-opt:hover{border-color:color-mix(in srgb,var(--tf-accent) 45%,var(--tf-border))}@supports not (color:color-mix(in srgb,red,blue)){/*alt*/.tf-opt:hover{border-color:var(--tf-accent)}}
.tf-opt:has(input:checked){border-color:var(--tf-accent);box-shadow:inset 0 0 0 1px var(--tf-accent);background:var(--tf-wahl);font-weight:700}
.tf-opt:has(input:focus-visible){outline:2px solid var(--tf-accent);outline-offset:2px}
.tf-box{flex:0 0 18px;width:18px;height:18px;border:2px solid var(--tf-t3);border-radius:50%;position:relative;transition:border-color .15s}
.tf-sel--yes-no .tf-box,.tf-sel--three .tf-box,.tf-sel--four .tf-box{display:none}
.tf-opt[data-art="check"] .tf-box{border-radius:5px}
.tf-opt:has(input:checked) .tf-box{border-color:var(--tf-accent)}
.tf-opt:has(input[type="radio"]:checked) .tf-box::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--tf-accent)}
.tf-opt[data-art="check"]:has(input:checked) .tf-box{background:var(--tf-accent)}
.tf-opt[data-art="check"]:has(input:checked) .tf-box::after{content:"";position:absolute;left:5px;top:1.5px;width:4px;height:8px;border:solid var(--white,#fff);border-width:0 2px 2px 0;transform:rotate(45deg)}
/* Folgefeld */
.tf-cond{display:none;margin-top:10px}
.tf-cond.offen{display:block;animation:tfein .3s ease}
/* MultiSelect */
.tf-cat{font-size:11.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--tf-t2);margin:16px 0 8px}
.tf-cat:first-child{margin-top:2px}
.tf-checkgrid{display:grid;gap:8px}
@media (min-width:620px){.tf-checkgrid{grid-template-columns:1fr 1fr}}
/* FrequencyMatrix — dokumentierte Ausnahme vom Raster (Entscheid 22.08.): Label links + Punkte rechts, Kopfzeile mit Worten. */
.tf-mhead{display:grid;grid-template-columns:1.5fr 4fr;padding:0 0 8px;border-bottom:1px solid var(--tf-line)}
.tf-mhcols{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;font-size:11px;font-weight:700;color:var(--tf-t2);text-align:center;align-items:end}
.tf-mrow{display:grid;grid-template-columns:1.5fr 4fr;align-items:center;padding:9px 0;border-bottom:1px solid color-mix(in srgb,var(--tf-border) 55%,transparent)}@supports not (color:color-mix(in srgb,red,blue)){/*alt*/.tf-mrow{border-bottom:1px solid var(--tf-border)}}
.tf-mrow:last-child{border-bottom:none}
.tf-mlabel{font-weight:500;padding-right:8px;overflow-wrap:anywhere;hyphens:auto;text-wrap:pretty}
.tf-mopts{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
.tf-mhead.fuenf .tf-mhcols,.tf-mrow.fuenf .tf-mopts{grid-template-columns:repeat(5,1fr)}
.tf-mcell{position:relative;display:flex;justify-content:center;align-items:center;min-height:38px;cursor:pointer;border-radius:8px}
.tf-mcell input{position:absolute;opacity:0;pointer-events:none}
.tf-mdot{width:19px;height:19px;border-radius:50%;border:2px solid var(--tf-t3);position:relative;transition:border-color .15s}
.tf-mcell:has(input:checked) .tf-mdot{border-color:var(--tf-accent)}
.tf-mcell:has(input:checked) .tf-mdot::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--tf-accent)}
.tf-mcell:has(input:focus-visible){outline:2px solid var(--tf-accent);outline-offset:1px}
.tf-mtxt{display:none}
@media (max-width:619px){
.tf-mhead{display:none}
.tf-mrow{grid-template-columns:1fr;gap:7px;padding:11px 0}
.tf-mopts{display:flex;flex-wrap:wrap}
.tf-mcell{border:1.5px solid var(--tf-border);background:var(--tf-soft);padding:8px 12px;min-height:40px}
.tf-mcell:has(input:checked){border-color:var(--tf-accent);background:var(--tf-wahl)}
.tf-mdot{display:none}
.tf-mtxt{display:inline;font-size:12.5px;font-weight:600}
}
/* ── Zähler: nur hintergründig — nie sichtbar (Entscheid Jeannine 26.08.2026) ── */
.tf-counter{display:none!important}
.tf-counter-alt{position:sticky;top:58px;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:10px;white-space:nowrap;background:var(--tf-tint);color:var(--tf-ink);font-size:12.5px;font-weight:700;border-radius:10px;padding:9px 16px;margin:0 0 12px;box-shadow:0 2px 10px rgba(12,13,7,.08)}
.tf-hint{background:var(--tf-tint);border-radius:12px;padding:11px 14px;font-size:12.5px;font-weight:400;color:var(--tf-ink);margin:0 0 14px}
/* ── So funktioniert der Test ── */
.tf-howto{display:flex;flex-direction:column;gap:14px}
.tf-howto-item{display:flex;align-items:flex-start;gap:14px;font-size:13.5px;line-height:1.55}
.tf-howto-num{flex:0 0 30px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--tf-grad);color:var(--fest-ink,#0c0d07);font-weight:800;font-size:11px;line-height:1}
/* ── Validierung ── */
.tf-errsummary{display:none;background:var(--tf-err-bg);color:var(--tf-err);border-radius:12px;padding:12px 16px;font-size:13px;margin:0 0 14px}
.tf-errsummary.an{display:block}
.tf-errsummary a{color:var(--tf-err);font-weight:700}
.tf-errsummary ul{margin:6px 0 0;padding-left:18px}
.tf-errmsg{display:none;font-size:12px;font-weight:600;color:var(--tf-err)}
.tf-invalid .tf-errmsg{display:block}
.tf-invalid .tf-input,.tf-invalid .tf-select{border-color:var(--tf-err)}
/* ── Navigation (sticky): Weiter = einzige Primary, Zurück = Textaktion. Leisten-/Knopf-Hintergrund IMMER transparent (Entscheid Jeannine 23.08.2026) — nur der gefüllte Primär-Knopf trägt Farbe. ── */
.tf-nav{position:fixed;left:0;right:0;bottom:0;z-index:40;background:transparent;border-top:none;padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
.tf-nav-innen{max-width:760px;margin:0 auto;display:flex;align-items:center;gap:10px}
/* Einseitige Formularseiten (Registrierung, Anmeldung) haben keinen Wizard und darum
   keine fixierte Fussleiste — die Knopfreihe steht im Fluss unter der Karte (05.09.2026). */
.tf-nav--inline{position:static;padding:16px 0 0}
.tf-nav--inline .tf-nav-innen{max-width:none}
.tf-btn{font-family:inherit;font-size:14px;font-weight:700;border-radius:8px;padding:10px 20px;min-height:44px;cursor:pointer;border:1px solid transparent;transition:transform .12s,filter .15s,background .15s;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.tf-btn:active{transform:scale(.98)}
.tf-btn-primaer,.tf-body a.tf-btn-primaer{background:var(--tf-accent);color:var(--white,#fff);margin-left:auto;min-width:132px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.tf-btn-primaer:hover,.tf-body a.tf-btn-primaer:hover{filter:brightness(1.12);color:var(--white,#fff)}
.tf-btn-sekundaer{background:var(--tf-surface);border-color:var(--tf-border);color:var(--tf-accent)}
.tf-btn-sekundaer:hover{border-color:var(--tf-accent)}
.tf-btn-text{background:none;border:none;color:var(--tf-accent);font-weight:600;padding:10px 12px}
.tf-btn-text:hover{background:transparent;text-decoration:underline}
.tf-btn[hidden]{display:none}
/* ── Ergebnis ── */
.tf-result-status{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.tf-score{flex:0 0 68px;width:68px;height:68px;border-radius:50%;background:var(--tf-accent);color:var(--white,#fff);display:grid;place-items:center;text-align:center;line-height:1.1;align-content:center}
.tf-score b{font-size:19px;display:block}.tf-score span{font-size:9px;opacity:.8;display:block}
.tf-status{display:inline-block;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;border-radius:6px;padding:4px 10px}
.tf-status.ok{color:var(--tf-ok);background:var(--tf-ok-bg)}
.tf-status.warnung{color:var(--tf-warn);background:var(--tf-warn-bg)}
.tf-status.hoch{color:var(--tf-err);background:var(--tf-err-bg)}
.tf-result-titel{font-size:18px;font-weight:800;margin:8px 0 0}
.tf-result-text{font-size:13.5px;color:var(--tf-t2);margin:14px 0 0;line-height:1.6}
.tf-levelgrid{display:grid;gap:10px;margin-top:14px}
@media (min-width:620px){.tf-levelgrid{grid-template-columns:1fr 1fr}}
.tf-level{background:var(--tf-soft);border:1px solid color-mix(in srgb,var(--tf-border) 70%,transparent);border-radius:12px;padding:12px 14px}@supports not (color:color-mix(in srgb,red,blue)){/*alt*/.tf-level{border:1px solid var(--tf-border)}}
.tf-level-kopf{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-weight:700;font-size:13.5px}
.tf-level-kopf small{font-weight:600;color:var(--tf-t3)}
.tf-meter{height:6px;border-radius:3px;background:color-mix(in srgb,var(--c-primary,#A88950) 20%,transparent);margin:9px 0 6px;overflow:hidden}@supports not (color:color-mix(in srgb,red,blue)){/*alt*/.tf-meter{background:transparent}}
.tf-meter i{display:block;height:100%;border-radius:3px;background:var(--tf-grad)}
.tf-level p{margin:0;font-size:12px;color:var(--tf-t2)}
/* ── Dankesseite (nach Browser-Druck, seltener Pfad) ── */
#trinitySendPageV2{display:none}
#trinitySendPageV2.active{display:block;max-width:640px;margin:36px auto;padding:0 16px}
.pheadScreenV2{text-align:center;margin-bottom:20px;color:var(--tf-t2)}
.pheadScreenV2 .header-label{font-size:12px;font-weight:700;letter-spacing:5px;text-transform:uppercase;color:var(--tf-accent)}
.sendBoxV2{background:var(--tf-surface);border-radius:16px;box-shadow:0 2px 16px rgba(12,13,7,.08);padding:26px 22px;text-align:center}
.sendBoxV2 h1{font-family:var(--tf-font-h);font-size:22px;margin:0 0 10px;font-weight:700}
.sendBoxV2 p{font-size:13.5px;color:var(--tf-t2)}
.sendStepsV2{display:grid;gap:10px;margin:18px 0;text-align:left}
.sendStepsV2 div{background:var(--tf-soft);border:1px solid var(--tf-border);border-radius:10px;padding:10px 14px;font-size:13px}
.sendStepsV2 strong{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--tf-accent);margin-bottom:2px}
.sendBoxV2 .btn{display:inline-block;font:inherit;font-weight:700;font-size:14px;border-radius:8px;padding:10px 20px;border:1px solid var(--tf-border);background:var(--tf-surface);color:var(--tf-accent);cursor:pointer}
/* ── Fusszeile ── */
.tf-fuss{text-align:center;font-size:11px;color:var(--tf-t3);padding:22px 16px 8px}
@media (prefers-reduced-motion:reduce){.tf-body *{animation:none!important;transition:none!important}}
@media print{.tf-nav,.tf-progress,.tf-counter{display:none}}
/* ── Alt-renderResults-Klassen im tf-Look (1.5/1.6, Auswertung bleibt funktional unverändert) ── */
.tf-body .result-overall{background:var(--tf-surface);border-radius:16px;box-shadow:0 2px 16px rgba(12,13,7,.07);padding:22px;text-align:center;margin:0 0 16px}
.tf-body .result-overall h3{font-family:var(--tf-font-h);font-size:22px;margin:0 0 6px;color:var(--tf-accent)}
.tf-body .result-overall p{color:var(--tf-t2);font-size:13.5px;margin:0;max-width:56ch;margin-inline:auto}
.tf-body .result-card{background:var(--tf-surface);background:var(--tf-card,var(--tf-surface));backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);border-radius:16px;box-shadow:0 2px 16px rgba(12,13,7,.07);padding:18px 16px;margin:0 0 16px;display:flex;gap:16px;align-items:center}
.tf-body .result-score{flex:0 0 64px;width:64px;height:64px;border-radius:50%;background:var(--tf-accent);color:var(--white,#fff);display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:800}
.tf-body .result-score-num{font-size:22px;line-height:1}
.tf-body .result-score-of{font-size:9px;opacity:.75;margin-top:2px;letter-spacing:.05em}
.tf-body .result-info{flex:1;min-width:0}
.tf-body .result-info h4{font-size:17px;font-weight:800;margin:0 0 2px;font-family:inherit}
.tf-body .result-sub{color:var(--tf-t3);font-size:11px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;margin-bottom:4px}
.tf-body .result-info p{font-size:13px;color:var(--tf-t2);margin:0;line-height:1.55}
.tf-body .result-badge{display:inline-block;margin-top:8px;padding:4px 10px;border-radius:6px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;background:var(--tf-tint);color:var(--tf-ink)}
.tf-body .disclaimer{background:var(--tf-tint);border-radius:12px;padding:12px 16px;font-size:12.5px;line-height:1.6;margin:16px 0 0}
@media (max-width:620px){.tf-body .result-card{flex-direction:column;align-items:flex-start}}
/* Legacy-Bruecke */
.tf-body .card{background:var(--tf-surface);background:var(--tf-card,var(--tf-surface));backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);border-radius:16px;box-shadow:0 2px 16px rgba(12,13,7,.07);padding:18px 16px 16px;margin:0 0 16px}
.tf-body .card-label{font-size:11px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--tf-accent);padding-bottom:9px;margin:0 0 14px;border-bottom:1px solid var(--tf-line)}
.tf-body .card .field{margin:0 0 20px}.tf-body .card .field:last-child{margin-bottom:4px}
.tf-body .field-label{display:block;font-size:14px;font-weight:600;line-height:1.5;margin:0 0 8px}
.tf-body .field-label .required-mark{color:var(--tf-accent)}
.tf-body .q-detail{display:block;margin-top:3px;font-size:12.5px;font-weight:400;color:var(--tf-t2);line-height:1.5}
.tf-body .radio-group,.tf-body .checkbox-grid{display:grid;gap:8px;width:100%}
.tf-body .radio-group.inline{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.tf-body .yes-no-group,.tf-body .radio-group.inline.yes-no-group{display:grid;grid-template-columns:repeat(2,1fr);width:calc((100% - 24px)/2 + 8px);min-width:150px}
@media (min-width:620px){.tf-body .checkbox-grid:not(.one-col){grid-template-columns:1fr 1fr}}
.tf-body .radio-option,.tf-body .check-option{position:relative;display:flex;align-items:center;justify-content:center;text-align:center;gap:9px;min-height:38px;padding:6px 10px;background:var(--tf-soft);border:1px solid var(--tf-border);border-radius:8px;cursor:pointer;font-weight:500;font-size:13.5px;line-height:1.35;transition:border-color .15s,background .15s}
.tf-body .check-option{justify-content:flex-start;text-align:left}
.tf-body .radio-option input,.tf-body .check-option input{position:absolute;opacity:0;pointer-events:none}
.tf-body .radio-option:hover,.tf-body .check-option:hover{border-color:color-mix(in srgb,var(--tf-accent) 45%,var(--tf-border))}@supports not (color:color-mix(in srgb,red,blue)){/*alt*/.tf-body .radio-option:hover,.tf-body .check-option:hover{border-color:var(--tf-accent)}}
.tf-body .radio-option:has(input:checked),.tf-body .check-option:has(input:checked){border-color:var(--tf-accent);box-shadow:inset 0 0 0 1px var(--tf-accent);background:var(--tf-wahl);font-weight:700}
.tf-body .radio-option:has(input:focus-visible),.tf-body .check-option:has(input:focus-visible){outline:2px solid var(--tf-accent);outline-offset:2px}
.tf-body .radio-box,.tf-body .check-box{display:none}
.tf-body .card input[type="text"],.tf-body .card input[type="number"],.tf-body .card input[type="email"],.tf-body .card select,.tf-body .card textarea{font-family:inherit;color:var(--tf-ink);background:var(--tf-soft);border:1px solid var(--tf-border);border-radius:8px;padding:10px 12px;min-height:44px;width:100%;box-sizing:border-box}
.tf-body .fms-scale-legend{display:block;font-size:12.5px;color:var(--tf-t2);background:var(--tf-soft);border:1px solid var(--tf-border);border-radius:10px;padding:10px 14px;margin:0 0 12px;line-height:1.7}
.tf-body .fms-scale-legend span{margin-right:4px}
.tf-body .note,.tf-body .sub-note{font-size:12px;color:var(--tf-t3)}

/* ══ Brücke für Alt-Markup (Formulare 1.1–1.3): dieselben Regeln wie die tf-Komponenten, auf die vorhandenen Klassennamen gelegt ══ */
.tf-body{padding:0}
.tf-body .container{max-width:760px;margin:0 auto;padding:0 16px calc(120px + env(safe-area-inset-bottom));background:none;box-shadow:none;border-radius:0}
.tf-body .step{display:none}
.tf-body .step.active{display:block;animation:tfein .35s ease}
.tf-body .step-title{font-family:var(--tf-font-b);font-size:20px;font-weight:800;color:var(--tf-ink);letter-spacing:0;text-transform:none;margin:16px 0 4px;text-align:left;border:none;padding:0}
.tf-body .step-title::after,.tf-body .step-title::before{display:none}
.tf-body .step-sub{color:var(--tf-t2);font-size:13.5px;margin:0 0 14px;max-width:56ch;text-wrap:pretty;text-align:left}
.tf-body .hint,.tf-body .info-box{background:var(--tf-tint);border:none;border-radius:12px;padding:11px 14px;font-size:12.5px;font-weight:400;color:var(--tf-ink);margin:0 0 14px;box-shadow:none}
.tf-body .progress-wrap,.tf-body .progress-container{margin:12px 0 6px;padding:0 0 4px;border:none;box-shadow:none}
.tf-body .progress-label,.tf-body .step-indicator{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:12px;color:var(--tf-t2);font-weight:600;letter-spacing:0;text-transform:none;margin:0 0 6px}
.tf-body .progress-bar,.tf-body .progress-track{height:6px;border-radius:999px;background:var(--cream-dark,#d6c9b7);overflow:hidden;box-shadow:none;border:none;margin:0 0 6px}
.tf-body .progress-fill{height:100%;border-radius:999px;background:var(--tf-grad);box-shadow:none;animation:none}
.tf-body .card{background:var(--tf-surface);background:var(--tf-card,var(--tf-surface));backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);border:1px solid var(--cream-dark,#d6c9b7);border-radius:16px;box-shadow:0 2px 16px rgba(12,13,7,.07);padding:18px 16px 16px;margin:0 0 16px;display:block}
.tf-body .card-label{font-family:var(--tf-font-b);font-size:11px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--tf-accent);padding:0 0 9px;margin:0 0 14px;border-top:none;border-bottom:1px solid var(--tf-line);background:none;text-align:left;line-height:1.4}
.tf-body .card .field{display:block;margin:0 0 20px}
.tf-body .card .field:last-child{margin-bottom:4px}
.tf-body .field-label{display:block;font-size:14px;font-weight:600;line-height:1.5;color:var(--tf-ink);margin:0 0 8px;letter-spacing:0;text-transform:none;width:auto;max-width:none;text-align:left}
.tf-body .required-mark{color:var(--tf-accent)}
.tf-body .q-detail,.tf-body .field-hint,.tf-body .sub-note,.tf-body .note{display:block;margin-top:3px;font-size:12.5px;font-weight:400;color:var(--tf-t2);line-height:1.5}
.tf-body .field-row{display:grid;gap:12px;margin:0 0 20px;align-items:stretch}
@media (min-width:520px){.tf-body .field-row{grid-template-columns:1fr 1fr}}
.tf-body .field-row > .field{display:flex;flex-direction:column;margin:0}
.tf-body .field-row > .field > input,.tf-body .field-row > .field > select,.tf-body .field-row > .field > textarea{margin-top:auto}
.tf-body .birthdate-select-row{display:grid;grid-template-columns:1fr 1fr 1.1fr;gap:8px}
.tf-body input[type="text"],.tf-body input[type="number"],.tf-body input[type="email"],.tf-body input[type="tel"],.tf-body input[type="date"],.tf-body select,.tf-body textarea{font-family:inherit;color:var(--tf-ink);background:var(--tf-soft);border:1px solid var(--tf-border);border-radius:8px;padding:10px 12px;min-height:44px;width:100%;box-sizing:border-box;box-shadow:none}
.tf-body textarea{min-height:88px;line-height:1.5;resize:vertical}
.tf-body input:focus,.tf-body select:focus,.tf-body textarea:focus{outline:2px solid var(--tf-accent);border-color:var(--tf-accent);box-shadow:none}
.tf-body input::placeholder,.tf-body textarea::placeholder{color:var(--tf-t3)}
/* Auswahl-System: Frage oben, Antwortgruppe darunter — Spaltenzahl nach Optionsanzahl */
.tf-body .field-inline-label{display:block}
.tf-body .radio-group,.tf-body .radio-group.inline,.tf-body .checkbox-grid{display:grid;gap:8px;width:100%;margin:0;flex-wrap:nowrap}
.tf-body .radio-group.yes-no-group,.tf-body .checkbox-grid:has(> label:nth-child(2):last-child){grid-template-columns:repeat(2,1fr);width:calc((100% - 24px)/2 + 8px);min-width:150px}
.tf-body .radio-group:has(> label:nth-child(3):last-child){grid-template-columns:repeat(3,1fr)}
.tf-body .radio-group:has(> label:nth-child(4):last-child){grid-template-columns:repeat(4,1fr)}
.tf-body .radio-group:has(> label:nth-child(5)){grid-template-columns:1fr}
.tf-body .checkbox-grid{grid-template-columns:1fr}
@media (min-width:620px){.tf-body .checkbox-grid:not(.one-col):not(.tf-lang){grid-template-columns:1fr 1fr}}
.tf-body .checkbox-grid.one-col,.tf-body .hormone-body .checkbox-grid{grid-template-columns:1fr}
@media (max-width:560px){
.tf-body .radio-group:has(> label:nth-child(3):last-child){grid-template-columns:1fr}
.tf-body .radio-group:has(> label:nth-child(4):last-child){grid-template-columns:repeat(2,1fr)}
}
.tf-body .radio-option,.tf-body .check-option,.tf-body .checkbox-option{position:relative;display:flex;align-items:center;justify-content:center;text-align:center;gap:9px;min-height:38px;padding:6px 10px;background:var(--tf-soft);border:1px solid var(--tf-border);border-radius:8px;box-shadow:none;font-weight:500;font-size:13.5px;line-height:1.35;cursor:pointer;transition:border-color .15s,background .15s;min-width:0;margin:0}
.tf-body .check-option,.tf-body .checkbox-option,.tf-body .radio-group:has(> label:nth-child(5)) .radio-option{justify-content:flex-start;text-align:left}
.tf-body .radio-option input,.tf-body .check-option input,.tf-body .checkbox-option input{position:absolute;opacity:0;pointer-events:none}
.tf-body .radio-option:hover,.tf-body .check-option:hover,.tf-body .checkbox-option:hover{border-color:color-mix(in srgb,var(--tf-accent) 45%,var(--tf-border));background:var(--tf-soft)}@supports not (color:color-mix(in srgb,red,blue)){/*alt*/.tf-body .radio-option:hover,.tf-body .check-option:hover,.tf-body .checkbox-option:hover{border-color:var(--tf-accent)}}
.tf-body .radio-option:has(input:checked),.tf-body .check-option:has(input:checked),.tf-body .checkbox-option:has(input:checked){border-color:var(--tf-accent);box-shadow:inset 0 0 0 1px var(--tf-accent);background:var(--tf-wahl);font-weight:700}
.tf-body .radio-option:has(input:focus-visible),.tf-body .check-option:has(input:focus-visible),.tf-body .checkbox-option:has(input:focus-visible){outline:2px solid var(--tf-accent);outline-offset:2px}
.tf-body .label-text,.tf-body .check-label{color:var(--tf-ink);font-size:inherit;font-weight:inherit}
.tf-body .radio-option:has(input:checked) .label-text,.tf-body .check-option:has(input:checked) .check-label{color:var(--tf-ink)}
/* Wahlmarke: nur in gestapelten Listen und Mehrfachauswahl sichtbar (wie im System) */
.tf-body .radio-box{display:none}
.tf-body .radio-group:has(> label:nth-child(5)) .radio-box{display:block;flex:0 0 18px;width:18px;height:18px;border:2px solid var(--tf-t3);border-radius:50%;background:none;position:relative}
.tf-body .radio-group:has(> label:nth-child(5)) .radio-option:has(input:checked) .radio-box{border-color:var(--tf-accent);background:none}
.tf-body .radio-group:has(> label:nth-child(5)) .radio-option:has(input:checked) .radio-box::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--tf-accent)}
.tf-body .check-box{flex:0 0 18px;width:18px;height:18px;border:2px solid var(--tf-t3);border-radius:5px;background:none;position:relative;display:flex;align-items:center;justify-content:center}
.tf-body .check-option:has(input:checked) .check-box,.tf-body .checkbox-option:has(input:checked) .check-box{border-color:var(--tf-accent);background:var(--tf-accent)}
.tf-body .check-option .check-box::after,.tf-body .checkbox-option .check-box::after{content:"";color:var(--white,#fff);font-size:10px;font-weight:700;opacity:0}
.tf-body .check-option:has(input:checked) .check-box::after,.tf-body .checkbox-option:has(input:checked) .check-box::after{content:"✓";opacity:1}
/* Lange Antworttexte: Spaltenzahl bleibt, Text bricht in der Zelle um */
.tf-body .tf-lang .radio-option,.tf-body .tf-lang .check-option,.tf-body .tf-lang .checkbox-option{align-items:center;justify-content:flex-start;text-align:left;white-space:normal;height:auto;min-height:38px;padding:8px 10px;line-height:1.4;overflow-wrap:break-word;hyphens:auto}
/* Folgefeld: erscheint erst bei Ja — Selektor mit Zeilen-Bezug, sonst gewinnt die spätere Regel `.field-row > .field{display:flex}` (Ursache «Name des Medikaments immer sichtbar», 17.10.2026 V-198) */
.tf-body .field.tf-folgefeld-zu,.tf-body .field-row > .field.tf-folgefeld-zu,.tf-body .card > .field.tf-folgefeld-zu{display:none}
/* Häufigkeits-Matrix */
.tf-body .freq-table{width:100%;table-layout:fixed;border-collapse:collapse;background:none;font-size:13.5px}
.tf-body .freq-table th{font-size:11px;font-weight:700;color:var(--tf-t2);text-transform:none;letter-spacing:0;padding:0 4px 8px;border-bottom:1px solid var(--tf-line);background:none;text-align:center;vertical-align:bottom;line-height:1.25}
.tf-body .freq-table th:first-child,.tf-body .freq-table td:first-child{width:40%;text-align:left;padding-right:10px}
.tf-body .freq-table th:not(:first-child),.tf-body .freq-table td:not(:first-child){width:15%}
.tf-body .freq-table td{padding:9px 4px;border-bottom:1px solid color-mix(in srgb,var(--tf-border) 55%,transparent);text-align:center;background:none}@supports not (color:color-mix(in srgb,red,blue)){/*alt*/.tf-body .freq-table td{border-bottom:1px solid var(--tf-border)}}
.tf-body .freq-table td:first-child{font-weight:500;overflow-wrap:anywhere;hyphens:auto}
.tf-body .freq-table tr:last-child td{border-bottom:none}
.tf-body .freq-table input[type="radio"]{appearance:none;-webkit-appearance:none;width:19px;height:19px;border:2px solid var(--tf-t3);border-radius:50%;margin:0;cursor:pointer;position:relative;background:none;min-height:0}
.tf-body .freq-table input[type="radio"]:checked{border-color:var(--tf-accent)}
.tf-body .freq-table input[type="radio"]:checked::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--tf-accent)}
.tf-body .freq-table input[type="radio"]:focus-visible{outline:2px solid var(--tf-accent);outline-offset:1px}
@media (max-width:560px){
.tf-body .freq-table th:first-child,.tf-body .freq-table td:first-child{width:34%}
.tf-body .freq-table th:not(:first-child),.tf-body .freq-table td:not(:first-child){width:16.5%}
.tf-body .freq-table th{font-size:10px}
}
/* Hormon-Gruppen und Sport-Blöcke */
.tf-body .hormone-group{background:var(--tf-soft);border:1px solid color-mix(in srgb,var(--tf-border) 70%,transparent);border-radius:12px;padding:0;margin:0 0 12px;box-shadow:none;overflow:hidden}@supports not (color:color-mix(in srgb,red,blue)){/*alt*/.tf-body .hormone-group{border:1px solid var(--tf-border)}}
.tf-body .hormone-header{display:block;font-family:var(--tf-font-b);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--tf-accent);background:none;border:none;border-bottom:1px solid color-mix(in srgb,var(--tf-border) 70%,transparent);padding:10px 14px;margin:0}@supports not (color:color-mix(in srgb,red,blue)){/*alt*/.tf-body .hormone-header{border-bottom:1px solid var(--tf-border)}}
.tf-body .hormone-title{font-family:var(--tf-font-b);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--tf-accent);margin:0}
.tf-body .hormone-body{padding:12px 14px}
.tf-body .hormone-application-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media (max-width:560px){.tf-body .hormone-application-options{grid-template-columns:1fr}}
.tf-body .sport-activity-title{font-size:13px;font-weight:800;color:var(--tf-ink);margin:0 0 8px;letter-spacing:0;text-transform:none}
.tf-body .sport-howmuch{margin-top:14px;padding:14px 0 0;border-top:1px solid var(--tf-line)}

/* Mehrfachauswahl-Menü */
.tf-body .ms-dropdown{background:var(--tf-soft);border:1px solid var(--tf-border);border-radius:8px;box-shadow:0 2px 16px rgba(12,13,7,.08)}
.tf-body .ms-toggle,.tf-body .ms-summary{border-radius:8px;min-height:44px;font-size:14px;background:var(--tf-soft);border-color:var(--tf-border);color:var(--tf-ink)}
/* Navigation und Knöpfe */
.tf-body .nav{position:sticky;bottom:0;z-index:40;display:flex;align-items:center;gap:10px;background:transparent;backdrop-filter:none;border-top:1px solid var(--tf-line);padding:10px 0 calc(10px + env(safe-area-inset-bottom));margin:18px 0 0;box-shadow:none}
.tf-body .btn{box-sizing:border-box;margin-top:0;font-family:inherit;font-size:14px;font-weight:700;border-radius:8px;padding:10px 20px;min-height:44px;border:1px solid transparent;box-shadow:none;letter-spacing:0;text-transform:none;background:none;cursor:pointer;transition:filter .15s,border-color .15s,transform .12s}
.tf-body .btn:active{transform:scale(.98)}
.tf-body .btn-next,.tf-body .btn-submit{background:var(--tf-accent);color:var(--white,#fff);margin-left:auto;min-width:132px}
.tf-body .btn-next:hover,.tf-body .btn-submit:hover{filter:brightness(1.12);color:var(--white,#fff)}
.tf-body .btn-prev,.tf-body .btn-back,.tf-body .nav .trinity-back-link{background:none;border:none;color:var(--tf-accent);font-weight:600;padding:10px 12px;text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.tf-body .btn-prev:hover,.tf-body .btn-back:hover{background:none;text-decoration:underline}
/* Fehlerhinweise und Auswertung */
.tf-body .v6-error-summary{background:var(--tf-err-bg);border:none;color:var(--tf-err);border-radius:12px;padding:12px 16px;font-size:13px;box-shadow:none;margin:0 0 14px}
.tf-body .v3-error{background:none;border:none;padding:0;font-size:12px;font-weight:600;color:var(--tf-err)}
.tf-body .v3-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tf-body .result-meaning strong{color:var(--tf-accent)}
/* Kopfbalken: in allen Formularen direktes body-Kind, damit er ohne Sonderregel randlos sitzt */
.tf-body{overflow-x:clip}
.tf-body > .header{margin-bottom:8px}
/* Hintergrund-Ornament (Werte aus der abgelösten trinity-formular.css) */
#_trinity_bg img{width:520px;height:auto;opacity:.55;display:block}
@media (max-width:620px){#_trinity_bg img{width:280px;opacity:.40}#_trinity_bg{bottom:80px}}
@media (max-width:380px){#_trinity_bg img{width:220px;opacity:.35}}
@media print{html,body{background:var(--pdf-papier,#fff);color:var(--tf-ink)}#_trinity_bg{display:none}.tf-body .card,.tf-body .hormone-group,.tf-body .result-card{background:var(--pdf-papier,#fff)}}
/* Zeile mit verstecktem Folgefeld: Spalten bleiben stehen — die Auswahl wechselt bei Ja/Nein nie die Breite (17.10.2026, V-198; vorher sprang die Zeile zwischen 1 und 2 Spalten) */
/* Inhalt liegt über dem Ornament */
.tf-body .container{position:relative;z-index:1}
#_trinity_bg{z-index:0}
/* Fortschritt: Label «Schritt n von N» oben, Balken darunter (Reihenfolge stellt trinity-form-folgefelder.js her) */
.tf-body .container > .progress-label{margin:12px 0 6px}
.tf-body .container > .progress-bar{margin:0 0 6px}
/* Auswertungsblock nur im letzten Schritt (Regel stand in der abgelösten trinity-formular-basis.css) */
.tf-body .results{display:none}
.tf-body .results.show,.tf-body .results.active{display:block}
/* ══ Schriftgrössen-Skala (verbindlich 24.08.2026): DREI sichtbare Stufen ══
   20px Titel · 14px alles Lesbare (Frage, Antwort, Knopf, Fliesstext, Hinweis, Tabellenzelle) · 11px Versalien-Label.
   Eingabefelder ebenfalls 14px (Vorgabe Jeannine 24.08.); der iOS-Fokus-Zoom wird stattdessen über maximum-scale=1 im viewport verhindert. */
body.tf-body{font-size:14px}
.tf-body p,.tf-body span,.tf-body strong,.tf-body em,.tf-body li,.tf-body label,.tf-body div,.tf-body td,.tf-body th,.tf-body h2,.tf-body h3,.tf-body h4{font-size:inherit}
.tf-body .step-title,.tf-body .tf-step-title{font-size:20px}
.tf-body option,.tf-body optgroup,.tf-body input,.tf-body select,.tf-body textarea,.tf-body .tf-input,.tf-body .tf-select,.tf-body .tf-textarea,.tf-body .field-label,.tf-body .tf-frage,.tf-body .tf-label,.tf-body .btn,.tf-body .tf-btn,.tf-body .ms-toggle,.tf-body .ms-summary,.tf-body .sport-activity-title,.tf-body .radio-option,.tf-body .check-option,.tf-body .checkbox-option,.tf-body .tf-opt,.tf-body .step-sub,.tf-body .tf-step-sub,.tf-body .freq-table,.tf-body .tf-mlabel,.tf-body .tf-mtxt,.tf-body .tf-howto-item,.tf-body .tf-result-text,.tf-body .tf-score b,.tf-body .result-score-num,.tf-body .tf-result-titel,.tf-body .hint,.tf-body .tf-hint,.tf-body .q-detail,.tf-body .tf-help,.tf-body .sub-note,.tf-body .note,.tf-body .field-hint,.tf-body .tf-counter,.tf-body .progress-label,.tf-body .tf-progress-label,.tf-body .v6-error-summary,.tf-body .disclaimer,.tf-body .tf-level p,.tf-body .teil-counter-label,.tf-body .teil-counter-value{font-size:14px}
.tf-body .card-label,.tf-body .tf-card-label,.tf-body .hormone-header,.tf-body .hormone-title,.tf-body .hormone-counter,.tf-body .ms-group-title,.tf-body .ms-caret,.tf-body .freq-table th,.tf-body .tf-mhcols div,.tf-body .tf-status,.tf-body .tf-cat,.tf-body .tf-errmsg,.tf-body .v3-error,.tf-body .result-sub,.tf-body .result-badge,.tf-body .tf-score span,.tf-body .result-score-of,.tf-body .tf-fuss,.tf-body .tf-howto-num,.tf-body .rating-legend-item,.tf-body .rating-num,.tf-body .fms-scale-legend span{font-size:11px}
/* Platzhalter einheitlich: leere Auswahlmenüs wirken wie Platzhaltertext, gefüllte wie Eingabe */
.tf-body select:has(option[value=""]:checked){color:var(--tf-t3)}
.tf-body select{color:var(--tf-ink)}
.tf-body select:has(option[value=""]:checked){color:var(--tf-t3)}
.tf-body input::placeholder,.tf-body textarea::placeholder{color:var(--tf-t3);opacity:1}
/* Karten- und Gruppentitel: gleiche Grösse wie der Inhalt, Auszeichnung über Fettung, Versalien und Farbe */
.tf-body .card-label,.tf-body .tf-card-label,.tf-body .hormone-header,.tf-body .hormone-title,.tf-body .ms-group-title{font-size:14px}
/* Zeilen: Felder auf gleicher Höhe — in zwei- oder mehrspaltigen Zeilen sitzen Eingabe-/Auswahlfelder unten auf gleicher Kante und behalten ihre Standardhöhe, unabhängig davon, wie viele Zeilen die Frage braucht */
.tf-body .field-row,.tf-body .tf-row{align-items:stretch}
.tf-body .field-row > .field,.tf-body .tf-row > .tf-field,.tf-body .tf-row > .field{display:flex;flex-direction:column;height:100%}
.tf-body .field-row > .field > input,.tf-body .field-row > .field > select,.tf-body .field-row > .field > textarea,.tf-body .field-row > .field > .ms-dropdown,.tf-body .field-row > .field > .ms-wrap,.tf-body .field-row > .field > .birthdate-select-row,
.tf-body .tf-row > .tf-field > input,.tf-body .tf-row > .tf-field > select,.tf-body .tf-row > .tf-field > textarea,.tf-body .tf-row > .tf-field > .tf-input,.tf-body .tf-row > .tf-field > .tf-select,.tf-body .tf-row > .tf-field > .tf-textarea,.tf-body .tf-row > .tf-field > .tf-birthrow{margin-top:auto;flex:0 0 auto;min-height:44px}
/* 17.10.2026 (Befund Jeannine, Medikamente): Felder wachsen NICHT mit einer zweizeiligen Frage daneben — gleiche Feldhöhe, gleiche Unterkante; die Frage nimmt den Rest der Zelle */
/* Folgt ein Hilfetext, bleibt das Feld in Standardhöhe — der Hilfetext nimmt den Rest (sonst werden Felder nebeneinander verschieden hoch; Fund Jeannine 07.09., Registrierung) */
.tf-body .tf-row > .tf-field:has(> .tf-help) > .tf-input,.tf-body .tf-row > .tf-field:has(> .tf-help) > .tf-select,.tf-body .tf-row > .tf-field:has(> .tf-help) > input,.tf-body .tf-row > .tf-field:has(> .tf-help) > select{flex:0 0 auto}.tf-body .tf-row > .tf-field > .tf-help{flex:1 1 auto}
/* Trennlinien zwischen den Fragen (Wunsch Jeannine 24.08.; 07.09. auf Gold .5 verstärkt — die 45%-Rahmenfarbe war auf der Milchglas-Karte kaum sichtbar) — nicht innerhalb der Matrix-Serien, die tragen eigene Zeilenlinien */
.tf-body .card > .field + .field,.tf-body .card > .field-row + .field,.tf-body .card > .field + .field-row,.tf-body .card > .field-row + .field-row,
.tf-body .tf-card > .tf-q-block + .tf-q-block,.tf-body .tf-card > .tf-field + .tf-field,.tf-body .tf-card > .tf-row + .tf-row{border-top:1px solid rgba(var(--c-primary-rgb,168,137,80),.5);padding-top:16px}
.tf-body .card > .field.tf-folgefeld + .field,.tf-body .card > .field + .field.tf-folgefeld{border-top:none;padding-top:0}
.tf-body .hormone-body .check-option + .check-option{border-top:none}
/* Geburtsdatum-Reihe füllt die Zellhöhe wie ein einzelnes Feld */
.tf-body .tf-birthrow select,.tf-body .birthdate-select-row select{height:100%}
/* Antwortzellen: Text grau bis zur Wahl, danach in Textfarbe (wie die Platzhalter in den Feldern) */
.tf-body .radio-option,.tf-body .check-option,.tf-body .checkbox-option,.tf-body .tf-opt,.tf-body .label-text,.tf-body .check-label{color:var(--tf-t3)}
.tf-body .radio-option:has(input:checked),.tf-body .check-option:has(input:checked),.tf-body .checkbox-option:has(input:checked),.tf-body .tf-opt:has(input:checked){color:var(--tf-ink)}
.tf-body .radio-option:has(input:checked) .label-text,.tf-body .check-option:has(input:checked) .check-label{color:var(--tf-ink)}
.tf-body .tf-mcell,.tf-body .freq-table td{color:var(--tf-t3)}
.tf-body .tf-mcell:has(input:checked),.tf-body .freq-table td:first-child{color:var(--tf-ink)}
/* Auswertungsseite im Systemlook (1.1/1.2): Karte, Titel, Aktionsreihe wie die Fussnavigation */
.tf-body .results{padding-bottom:8px}
.tf-body .results .result-header{text-align:left;padding:0;margin:16px 0 14px}
.tf-body .results .result-header h2{font-family:var(--tf-font-b);font-size:20px;font-weight:800;color:var(--tf-ink);margin:0;letter-spacing:0;text-transform:none}
.tf-body .results > table,.tf-body .results .result-block,.tf-body .results .summary-card{width:100%;background:var(--tf-surface);background:var(--tf-card,var(--tf-surface));backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);border-radius:16px;box-shadow:0 2px 16px rgba(12,13,7,.07);padding:18px 16px;margin:0 0 16px;border-collapse:separate;border-spacing:0}
.tf-body .results .psection{font-size:14px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--tf-accent);padding:0 0 9px;border-bottom:1px solid var(--tf-line);display:block;margin:0 0 12px}
.tf-body .results td{padding:8px 0;border-bottom:1px solid color-mix(in srgb,var(--tf-border) 45%,transparent);vertical-align:top}@supports not (color:color-mix(in srgb,red,blue)){/*alt*/.tf-body .results td{border-bottom:1px solid var(--tf-border)}}
.tf-body .results tr:last-child td{border-bottom:none}
.tf-body .results .plabel{color:var(--tf-t2);width:50%}
.tf-body .results .pvalue{font-weight:700;color:var(--tf-ink);width:50%}
.tf-body .results .print-btn,.tf-body .results .v3-actions{display:flex;align-items:center;gap:10px;border-top:1px solid var(--tf-line);padding:14px 0 0;margin:18px 0 0;background:transparent}
.tf-body .results .btn-prev{margin-right:auto}
.tf-body .results .btn-submit,.tf-body .results .btn-next{margin-left:auto}
/* Aktions-Knöpfe als Pillen (Design-System-PDF: Pille, 11px fett, Laufweite .08em, Innenabstand 11/20, mobil ≥44px).
   Gilt nur für die Fussleiste und den Abschluss — Antwortfelder, Eingaben und Matrix-Zellen bleiben bei Radius 8. */
.tf-body .tf-btn-primaer,.tf-body .btn-next,.tf-body .btn-submit{border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:11px 20px;min-height:44px}
.tf-body .tf-btn-sekundaer{border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:11px 20px;min-height:44px}
.tf-body .tf-btn-text,.tf-body .btn-prev{border-radius:999px}
/* Fortschritt nach dem Website-Muster (.t-progress): 6px, Pillenform, Verlauf Anchor → Akzent */
.tf-body .container > .progress-bar,.tf-body .progress-bar{height:6px;border-radius:999px;background:var(--cream-dark,#d6c9b7);overflow:hidden;border:none}
.tf-body .progress-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--t-anchor,#A88950),var(--t-accent,#4A1F26))}
/* Fussleiste ohne Linie (Wunsch Jeannine 24.08.2026) — gilt für alle Formulare, alt wie neu */
.tf-body .nav-buttons,.tf-body .btn-row,.tf-body .wizard-nav{border-top:none}

/* Anmeldefelder (30.10.2026): Passwortfeld mit Auge — trinity-anmeldefelder.js legt .pw-feld/.pw-auge an (Kundendashboard: in der Vorlage). Lucide eye / eye-off. */
.pw-feld{position:relative;display:block}.pw-feld>input{padding-right:48px!important;margin-top:0;margin-bottom:0}
.pw-feld>input::-ms-reveal,.pw-feld>input::-ms-clear{display:none} /* Edge setzt sonst ein zweites, eigenes Auge ins Feld (Befund Jeannine 01.11.) */
.pw-auge{position:absolute;top:50%;right:2px;transform:translateY(-50%);width:44px;height:44px;display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:0;background:none;cursor:pointer;color:var(--tf-accent,#4A1F26);opacity:.75;-webkit-tap-highlight-color:transparent}.pw-auge:hover,.pw-auge:focus-visible{opacity:1}
.pw-auge-bild{display:block;width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/><circle cx='12' cy='12' r='3'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/><circle cx='12' cy='12' r='3'/></svg>") center/contain no-repeat;pointer-events:none}
.pw-auge--offen .pw-auge-bild{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49'/><path d='M14.084 14.158a3 3 0 0 1-4.242-4.242'/><path d='M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143'/><path d='m2 2 20 20'/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49'/><path d='M14.084 14.158a3 3 0 0 1-4.242-4.242'/><path d='M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143'/><path d='m2 2 20 20'/></svg>")}

/* V-433 Urheberzeile: eine stille Zeile am Seitenfuss, Wortlaut in trinity-urheber.js */
.tf-urheber,.tf-body .tf-urheber{font-size:11px}
.tf-urheber{max-width:720px;margin:28px auto 0;padding:14px 16px 24px;border-top:1px solid var(--tf-line,rgba(168,137,80,.28));text-align:center;font-size:11px;line-height:1.5;color:var(--tf-t3);user-select:none;-webkit-user-select:none}
@media print{.tf-urheber{border-top:none;color:var(--tf-t3);page-break-inside:avoid}}
