/* site.css - vom Bau erzeugt fuer 5-achs-fraesteile.de (Hero-Buehne, CTA-Motiv). Nicht von Hand aendern. */
:root, [data-theme="dark"] { --muster-bild: url('/bilder/raster-dunkel.svg'); }
[data-theme="light"] { --muster-bild: url('/bilder/raster-hell.svg'); }

/* Domaineigene Stile aus inhalt/5-achs-fraesteile.de/stil.css */
.tf-sk, .tf-felder { --tf-mass: var(--orange-light); --tf-mk: var(--orange-flaeche); }
[data-theme="light"] .tf-sk { --tf-mass: var(--orange-text); }
.tf-sk { display: block; width: 100%; height: auto; font-family: 'DM Sans', system-ui, sans-serif; color: var(--text-primary); }
.tf-sk .k { fill: var(--bg-elevated); stroke: var(--text-primary); stroke-width: 2; stroke-linejoin: round; }
.tf-sk .kl { fill: none; stroke: var(--text-primary); stroke-width: 1.6; stroke-linecap: round; }
.tf-sk .h { fill: none; stroke: var(--text-muted); stroke-width: 1; }
.tf-sk .m { fill: none; stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 12 3 2 3; }
.tf-sk .rl { fill: none; stroke: var(--text-primary); stroke-width: 1.3; }
.tf-sk .ms { fill: none; stroke: var(--tf-mass); stroke-width: 1.3; }
.tf-sk .mp { fill: var(--tf-mass); }
.tf-sk .a { fill: none; stroke: var(--orange); stroke-width: 2.2; }
.tf-sk .af { fill: var(--orange-glow); stroke: var(--orange); stroke-width: 2; }
.tf-sk .fl { fill: var(--orange-glow); stroke: none; }
.tf-sk .bz { fill: var(--text-primary); stroke: var(--text-primary); stroke-width: 1; stroke-linejoin: round; }
.tf-sk .rahmen { fill: var(--bg-card); stroke: var(--text-primary); stroke-width: 1.5; }
.tf-sk .sym { fill: none; stroke: var(--text-primary); stroke-width: 1.7; stroke-linecap: round; }
.tf-sk .sym-f { fill: var(--text-primary); stroke: none; }
.tf-sk .zone { fill: var(--orange-glow); stroke: var(--orange); stroke-width: 1.4; stroke-dasharray: 5 3; }
.tf-sk .feld-b { fill: var(--orange-glow); stroke: var(--orange); stroke-width: 2; }
.tf-sk .feld-w { fill: var(--bg-elevated); stroke: var(--text-secondary); stroke-width: 2; }
.tf-sk .null { fill: none; stroke: var(--text-primary); stroke-width: 1.5; stroke-dasharray: 10 4; }
.tf-sk .mk { fill: var(--tf-mk); stroke: var(--bg-card); stroke-width: 1; }
.tf-sk .mkt { fill: #FFFFFF; font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 13px; font-weight: 700; }
.tf-sk .fehlt { fill: none; stroke: var(--fehler); stroke-width: 1.8; stroke-dasharray: 5 3; }
.tf-sk text { font-family: 'DM Sans', system-ui, sans-serif; }
.tf-sk .t { fill: var(--text-primary); font-size: 15px; }
.tf-sk .t2 { fill: var(--text-secondary); font-size: 14px; }
.tf-sk .t3 { fill: var(--text-muted); font-size: 12px; }
.tf-sk .tb { fill: var(--text-primary); font-size: 14px; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; }
.tf-sk .tm { fill: var(--tf-mass); font-size: 15px; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 600; }
.tf-sk .tf { fill: var(--fehler); font-size: 14px; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; }
.tf-sk .ring { fill: var(--bg-card); stroke: var(--orange); stroke-width: 1.4; stroke-dasharray: 5 3; }
.tf-sk .v { fill: none; stroke: var(--text-muted); stroke-width: 1.2; stroke-dasharray: 7 4; }

.tf-sk .tasche { fill: var(--orange-glow); stroke: var(--text-primary); stroke-width: 1.6; stroke-linejoin: round; }
.tf-sk .leit { fill: none; stroke: var(--text-muted); stroke-width: 1; }
.tf-sk .tit { fill: var(--text-primary); font-size: 17px; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; }


.tf-marke {
    display: inline-block; font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; color: var(--orange-text); margin-bottom: 10px;
    border-left: 3px solid var(--orange); padding-left: 10px;
}
.tf-klein { font-size: 0.92rem; color: var(--text-secondary); margin-top: 12px; }
.tf-ohnejs { display: none; }
html:not(.js) .tf-ohnejs { display: block; }
html:not(.js) .tf-nurjs { display: none; }
.leistungen-text p + p, .fliesstext p + p { margin-top: 14px; }
.fliesstext h3 { margin: 0 0 8px; font-size: 1.1rem; }
.tf-liste-titel { font-size: 1.05rem; margin: 0 0 12px; }
.tf-nachsatz { margin-top: 22px; }


.tf-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tf-wahl label { position: relative; display: inline-flex; margin: 0; }
.tf-wahl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tf-wahl span {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px;
    border: 1px solid var(--border-hover); border-radius: 999px; background: var(--bg-card); color: var(--text-secondary);
    font-size: 1rem; font-weight: 500; line-height: 1.25; text-align: center; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.tf-wahl label:hover span { border-color: var(--orange); color: var(--text-primary); }
.tf-wahl input:checked + span { border-color: var(--orange); background: var(--orange-glow); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--orange); font-weight: 600; }
.tf-wahl input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.tf-feldreihe { display: flex; flex-wrap: wrap; gap: 0 16px; }
.tf-feldreihe > .form-group { flex: 1 1 150px; }


.tf-buehne { padding: 32px; box-shadow: var(--schatten-karte); }
.tf-buehne-raster { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px 48px; align-items: start; }
.tf-buehne-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.tf-buehne-knopf { margin-top: 22px; }
.tf-frage { border: 1px solid var(--border); border-radius: var(--radius-m); padding: 14px 16px 16px; margin: 0 0 12px; background: var(--bg-secondary); min-width: 0; }
.tf-frage legend { float: left; width: 100%; padding: 0; margin: 0 0 6px; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 600; font-size: 1rem; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.tf-frage-text { clear: both; margin: 0; color: var(--text-primary); font-size: 0.95rem; }
.tf-frage-hilfe { margin: 4px 0 0; color: var(--text-secondary); font-size: 0.85rem; }
.tf-nr {
    display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 24px; padding: 0 6px; border-radius: 6px;
    background: var(--orange-glow); border: 1px solid rgba(232, 114, 12, 0.35); color: var(--orange-text);
    font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.02em;
}
.tf-frage-titel { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 600; }
.tf-schaetzung { margin: 14px 0 0; padding: 12px 14px 12px 16px; border-radius: var(--radius-m); border: 1px solid var(--border); border-left: 3px solid var(--text-muted); background: var(--bg-card); font-weight: 600; color: var(--text-primary); }
.tf-status-ergebnis { border-left-color: var(--orange); }
.tf-status-leer { font-weight: 500; color: var(--text-secondary); }


.tf-erklaerung h2 { margin-bottom: 16px; }
.tf-fragen-liste { margin: 14px 0 0; padding-left: 20px; color: var(--text-secondary); }
.tf-fragen-liste li { margin-bottom: 8px; }
.tf-fragen-liste strong { color: var(--text-primary); }
.tf-stufen { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tf-stufen li { color: var(--text-secondary); font-size: 0.93rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 12px 14px; }
.tf-stufe { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-primary); margin-right: 6px; white-space: nowrap; }
.tf-stufe-symbol { flex-shrink: 0; }
.tf-stufe-symbol .tf-sy-leer { fill: none; stroke: var(--text-secondary); stroke-width: 1.5; }
.tf-stufe-symbol .tf-sy-halb { fill: var(--text-secondary); }
.tf-stufe-symbol .tf-sy-orange { fill: var(--orange); }
.tf-finder .werkzeug-raster { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
.tf-finder .werkzeug-ergebnis { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
.tf-kopfzeile { color: var(--text-secondary); margin: 0; }
.tf-vorlagen { margin-bottom: 16px; }
.tf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-chip {
    min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-hover); background: var(--bg-secondary);
    color: var(--text-primary); font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 600; font-size: 0.9rem; cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.tf-chip:hover { border-color: var(--orange); color: var(--orange-text); }
.tf-chip-leer { background: transparent; color: var(--text-secondary); }
.tf-stand { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 12px; }
.tf-zusatz { margin: 18px 0 4px; padding-top: 16px; border-top: 1px solid var(--border); }
.tf-ergebnis h3 { font-size: 1.1rem; margin-bottom: 12px; }
.tf-ergebnis-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.tf-familie-zeile { display: flex; flex-direction: column; margin: 0; }
.tf-familie-label { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.tf-familie { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 1.7rem; line-height: 1.15; color: var(--text-primary); }
.tf-ergebnis .tf-stufe { font-weight: 500; font-size: 0.85rem; color: var(--orange-text); border: 1px solid rgba(232, 114, 12, 0.5); border-radius: 999px; padding: 3px 10px; white-space: normal; }
.tf-gesamt { margin: 10px 0 0; color: var(--text-secondary); font-size: 0.93rem; }
.tf-titel { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin: 22px 0 10px; }
.tf-ergebnis-tabelle th, .tf-ergebnis-tabelle td { padding: 8px 10px; font-size: 0.88rem; }
.tf-treffer th, .tf-treffer td { background: var(--orange-glow); font-weight: 600; }
.tf-tag { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-text); }
.tf-angaben-liste { margin: 0; padding-left: 22px; }
.tf-angaben-liste > li { margin-bottom: 12px; color: var(--text-primary); }
.tf-angaben-liste .tf-begruendung { margin: 2px 0 0; font-size: 0.9rem; color: var(--text-secondary); }
.tf-angaben-liste .tf-norm-zeile { margin: 2px 0 0; font-size: 0.8rem; color: var(--text-muted); }
.tf-fuer { font-size: 0.85rem; color: var(--text-secondary); }
.tf-hinweis { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--radius-s); background: var(--bg-card); border: 1px solid var(--border); font-size: 0.9rem; color: var(--text-secondary); }
.tf-ergebnis .anfrage-baustein { margin-top: 0; }
.tf-leer, .tf-klein { color: var(--text-secondary); }


.tf-angaben-seite { margin: 0; padding-left: 22px; }
.tf-angaben-seite > li { margin-bottom: 12px; color: var(--text-secondary); }
.tf-angaben-seite strong { display: block; color: var(--text-primary); }
.tf-angaben-seite .tf-norm { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--text-muted); }


.tf-beispiel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 24px 26px; display: flex; flex-direction: column; }
.tf-beispiel h3 { font-size: 1.15rem; margin-bottom: 10px; }
.tf-beispiel p { color: var(--text-secondary); font-size: 0.95rem; }
.tf-beispiel-breit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 36px; align-items: center; margin-bottom: 24px; }
.tf-antworten { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 4px; font-size: 0.93rem; color: var(--text-primary); }
.tf-antw-q { display: inline-block; min-width: 120px; margin-right: 8px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-family: 'Space Grotesk', system-ui, sans-serif; }
.tf-mini { width: 100%; max-width: 280px; border-collapse: collapse; font-size: 0.9rem; margin: 6px 0 4px; }
.tf-mini caption { text-align: left; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); padding-bottom: 4px; }
.tf-mini th, .tf-mini td { padding: 4px 10px 4px 0; border-bottom: 1px solid var(--border); text-align: left; font-weight: 400; color: var(--text-secondary); }
.tf-mini td.zahl { text-align: right; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 600; color: var(--text-primary); }
.tf-beispiel-ergebnis { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.tf-beispiel-ergebnis strong { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 1.2rem; color: var(--text-primary); }
.tf-stufe-text { font-size: 0.88rem; color: var(--text-muted); }
.tf-mischbeispiel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 20px 22px; }
.tf-punkte-tabelle th[scope="row"] { min-width: 200px; }
.tf-punkte-tabelle tr:target th, .tf-punkte-tabelle tr:target td { background: var(--orange-glow); }
.tf-tabelle-gruppe th { background: var(--bg-secondary); font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.tf-luecken-tabelle th[scope="row"] { min-width: 120px; }


figure.tf-skizze-rahmen { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; background: var(--bg-card); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18); }
figure.tf-skizze-rahmen .svg-einbettung { padding: 18px 20px 8px; }
figure.tf-skizze-rahmen .svg-einbettung, figure.tf-skizze-rahmen .svg-einbettung > svg { display: block; width: 100%; height: auto; }
figure.tf-skizze-rahmen figcaption { margin: 0; padding: 10px 14px; font-size: 0.8rem; line-height: 1.5; color: var(--text-secondary); border-top: 1px solid var(--border); background: var(--bg-card); }
[data-theme="light"] figure.tf-skizze-rahmen { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08); }
.tf-figur-breit { max-width: 880px; margin: 0 auto 28px; }


@media (max-width: 1024px) {
    .tf-buehne-raster, .tf-beispiel-breit { grid-template-columns: minmax(0, 1fr); }
    .tf-finder .werkzeug-raster { grid-template-columns: minmax(0, 1fr); }
    .tf-finder .werkzeug-ergebnis { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 768px) {
    .tf-buehne { padding: 22px 18px; }
    figure.tf-skizze-rahmen .svg-einbettung { padding: 12px 10px 6px; }
    .tf-familie { font-size: 1.4rem; }
}
@media (max-width: 640px) {
    .tf-beispiel { padding: 20px 18px; }
    .tf-wahl span { padding: 8px 14px; }
    .tf-antw-q { display: block; min-width: 0; }
}
@media (max-width: 400px) {
    .tf-wahl { gap: 6px; }
    .tf-wahl span { padding: 8px 12px; }
}


@media print {
    body.druck-ergebnis .tf-finder .werkzeug-eingaben, body.druck-ergebnis .tf-finder .werkzeug-kopf p, body.druck-ergebnis .tf-finder .tf-ohnejs { display: none; }
    body.druck-ergebnis .tf-finder .werkzeug-raster { display: block; }
    body.druck-ergebnis .tf-finder .werkzeug-ergebnis { position: static; max-height: none; overflow: visible; border: 0; padding: 0; }
}
