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


.tr-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;
}
.tr-klein { font-size: 0.92rem; color: var(--text-secondary); margin-top: 12px; }
.tr-ohnejs { display: none; }
html:not(.js) .tr-ohnejs { display: block; }
html:not(.js) .tr-nurjs { display: none; }
.fliesstext .quelle { margin-top: 4px; }
.leistungen-text p + p, .fliesstext p + p { margin-top: 14px; }
.fliesstext h3 { margin: 0 0 8px; font-size: 1.1rem; }
.tr-feldreihe { display: flex; flex-wrap: wrap; gap: 0 16px; }
.tr-feldreihe > .form-group { flex: 1 1 150px; }
.tr-feldgruppe { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.tr-feldgruppe legend { padding: 0; margin: 0 0 8px; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 600; font-size: 1rem; color: var(--text-primary); }
.tr-feldgruppe .tr-hilfe { margin: 0 0 12px; color: var(--text-secondary); font-size: 0.9rem; }
.tr-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tr-wahl label { position: relative; display: inline-flex; margin: 0; }
.tr-wahl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tr-wahl span {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 76px; 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.2; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.tr-wahl label:hover span { border-color: var(--orange); color: var(--text-primary); }
.tr-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; }
.tr-wahl input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }


.tr-buehne { padding: 32px; box-shadow: var(--schatten-karte); }
.tr-buehne-raster { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px 48px; align-items: start; }
.tr-buehne-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.tr-buehne-knopf { margin-top: 22px; }
.tr-kurz { border: 1px solid var(--border); border-radius: var(--radius-m); padding: 18px 18px 6px; background: var(--bg-secondary); min-width: 0; }
.tr-schaetzung { margin: 6px 0 14px; 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); }
.tr-status-ok { border-left-color: var(--erfolg); }
.tr-status-leer { font-weight: 500; color: var(--text-secondary); }


.tr-erklaerung h2 { margin-bottom: 16px; }
.tr-stufen-titel { font-size: 1.05rem; margin-bottom: 12px; }
.tr-rechner .werkzeug-raster { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
.tr-rechner .werkzeug-ergebnis { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
.tr-kopfzeile { color: var(--text-secondary); margin: 0; }
.tr-vorlagen { margin-bottom: 18px; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-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;
}
.tr-chip:hover { border-color: var(--orange); color: var(--orange-text); }
.tr-chip-leer { background: transparent; color: var(--text-secondary); }
.tr-dauern { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.tr-dauern .form-group { min-width: 0; }
.tr-dauern .tr-schritt-nr { color: var(--orange-text); font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; margin-right: 6px; }
.tr-ferien-zeile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.tr-vorgabe { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-s); border: 1px solid var(--border); border-left: 3px solid var(--orange); background: var(--bg-card); color: var(--text-secondary); font-size: 0.93rem; }
.tr-ergebnis h3 { font-size: 1.1rem; margin-bottom: 12px; }
.tr-ergebnis-kopf { margin: 0 0 6px; }
.tr-datum { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.15; color: var(--text-primary); margin: 0; }
.tr-datum-text { margin: 4px 0 0; color: var(--orange-text); font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.tr-gesamt { margin: 10px 0 0; color: var(--text-secondary); font-size: 0.93rem; }
.tr-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; }
.tr-tabelle th, .tr-tabelle td { font-size: 0.9rem; }
.tr-tage, .tr-hinweise, .tr-fehler { margin: 0; padding-left: 20px; color: var(--text-secondary); font-size: 0.93rem; }
.tr-tage li, .tr-hinweise li, .tr-fehler li { margin-bottom: 6px; }
.tr-leer { color: var(--text-secondary); margin: 0; }
.tr-ergebnis .anfrage-baustein { margin-top: 0; }


.tr-beispiel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 24px 26px; margin-bottom: 24px; }
.tr-beispiel h3 { font-size: 1.15rem; margin-bottom: 10px; }
.tr-beispiel p { color: var(--text-secondary); font-size: 0.95rem; }
.tr-beispiel-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 36px; align-items: start; }
.tr-beispiel-ergebnis { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.tr-beispiel-ergebnis strong { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 1.3rem; color: var(--text-primary); }
.tr-beispiel-liste { margin: 10px 0 0; padding-left: 20px; color: var(--text-secondary); font-size: 0.93rem; }
.tr-beispiel-liste li { margin-bottom: 6px; }
.tr-feiertagstabelle th[scope="row"] { min-width: 170px; }
.tr-feiertagstabelle tr:target th, .tr-feiertagstabelle tr:target td { background: var(--orange-glow); }


figure.tr-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.tr-skizze-rahmen .svg-einbettung { padding: 18px 20px 8px; }
figure.tr-skizze-rahmen .svg-einbettung, figure.tr-skizze-rahmen .svg-einbettung > svg { display: block; width: 100%; height: auto; }
figure.tr-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.tr-skizze-rahmen { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08); }
.tr-figur-breit { max-width: 880px; margin: 0 auto 28px; }
.tr-bsp-raster { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 28px 40px; align-items: center; }


@media (max-width: 1024px) {
    .tr-buehne-raster, .tr-bsp-raster, .tr-beispiel-raster { grid-template-columns: minmax(0, 1fr); }
    .tr-rechner .werkzeug-raster { grid-template-columns: minmax(0, 1fr); }
    .tr-rechner .werkzeug-ergebnis { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 768px) {
    .tr-buehne { padding: 22px 18px; }
    .tr-beispiel { padding: 20px 18px; }
    figure.tr-skizze-rahmen .svg-einbettung { padding: 12px 10px 6px; }
}
@media (max-width: 480px) {
    .tr-dauern, .tr-ferien-zeile { grid-template-columns: minmax(0, 1fr); }
}


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


.tr-ergebnis .tabelle-rahmen { overflow-x: auto; }
.tr-ergebnis .tr-tabelle th, .tr-ergebnis .tr-tabelle td { padding: 10px 8px; }
@media (max-width: 480px) { .tr-ergebnis .tr-dauer { display: none; } }
.tr-tabelle th, .tr-tabelle td { word-break: normal; overflow-wrap: normal; hyphens: manual; }
.tr-tabelle td:last-child { white-space: nowrap; }
