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


.al-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;
}
.al-klein { font-size: 0.92rem; color: var(--text-secondary); margin-top: 12px; }
.al-ohnejs { display: none; }
html:not(.js) .al-ohnejs { display: block; }
html:not(.js) .al-nurjs { display: none; }
.leistungen-text p + p, .fliesstext p + p { margin-top: 14px; }
.fliesstext h3 { margin: 22px 0 8px; font-size: 1.1rem; }
.fliesstext .quelle { margin-top: 4px; }
.al-feldreihe { display: flex; flex-wrap: wrap; gap: 0 16px; }
.al-feldreihe > .form-group { flex: 1 1 140px; }
.al-eigen { margin-top: 8px; }
.al-eigen[hidden] { display: none; }


.al-buehne { padding: 32px; box-shadow: var(--schatten-karte); }
.al-buehne-raster { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px 48px; align-items: start; }
.al-buehne-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.al-buehne-knopf { margin-top: 22px; }
.al-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); }
.al-status-gruen { border-left-color: var(--erfolg); }
.al-status-rot { border-left-color: var(--fehler); }
.al-status-leer { font-weight: 500; color: var(--text-secondary); }


.al-erklaerung h2 { margin-bottom: 16px; }
.al-rechner .werkzeug-raster { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.al-rechner .werkzeug-ergebnis { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
.al-kopfzeile { color: var(--text-secondary); margin: 0; }
.al-vorlagen { margin-bottom: 16px; }
.al-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.al-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;
}
.al-chip:hover { border-color: var(--orange); color: var(--orange-text); }
.al-chip-leer { background: transparent; color: var(--text-secondary); }
.al-gruppe-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(--orange-text); margin: 18px 0 10px; }
.al-ergebnis h3 { font-size: 1.1rem; margin-bottom: 12px; }
.al-leer { color: var(--text-secondary); margin: 0; }
.al-paarung { margin: 0 0 14px; color: var(--text-secondary); font-size: 0.93rem; }
.al-block { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--radius-m); background: var(--bg-card); border: 1px solid var(--border); }
.al-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: 18px 0 8px; }
.al-block .al-titel { margin-top: 0; }
.al-werte { margin: 0 0 10px; }
.al-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.al-zeile:last-child { border-bottom: 0; }
.al-zeile dt { color: var(--text-secondary); font-size: 0.9rem; }
.al-zeile dd { margin: 0; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 600; color: var(--text-primary); text-align: right; }
.al-ampel { font-size: 0.9rem; }
.al-quelle { margin: 12px 0 0; font-size: 0.8rem; color: var(--text-muted); }
.al-ergebnis .anfrage-baustein { margin-top: 0; }


.al-beispiel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 24px 26px; margin-bottom: 24px; }
.al-beispiel h3 { font-size: 1.15rem; margin-bottom: 10px; }
.al-beispiel p { color: var(--text-secondary); font-size: 0.95rem; }
.al-beispiel-breit { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 28px 36px; align-items: center; }
.al-beispiel-werte { margin: 12px 0 4px; }
.al-beispiel-ergebnis { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.al-beispiel-ergebnis strong { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 1.15rem; color: var(--text-primary); }
.al-beispiel-ergebnis .ampel { font-size: 0.85rem; }
.al-rechenweg { font-size: 0.88rem; margin: 6px 0 0; }

.al-beispiele { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 8px; }
.al-beispiele .al-beispiel { margin-bottom: 0; display: flex; flex-direction: column; }
.al-beispiele .al-beispiel-ergebnis { margin-top: auto; padding-top: 14px; }


figure.al-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.al-skizze-rahmen .svg-einbettung { padding: 18px 20px 8px; }
figure.al-skizze-rahmen .svg-einbettung, figure.al-skizze-rahmen .svg-einbettung > svg { display: block; width: 100%; height: auto; }
figure.al-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.al-skizze-rahmen { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08); }
.al-bsp-raster { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px 40px; align-items: center; }
.al-tabelle th[scope="row"] { min-width: 150px; }


@media (min-width: 1100px) {
    .al-beispiele { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .al-buehne-raster, .al-beispiel-breit, .al-bsp-raster { grid-template-columns: minmax(0, 1fr); }
    .al-rechner .werkzeug-raster { grid-template-columns: minmax(0, 1fr); }
    .al-rechner .werkzeug-ergebnis { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 768px) {
    .al-buehne { padding: 22px 18px; }
    figure.al-skizze-rahmen .svg-einbettung { padding: 12px 10px 6px; }
}
@media (max-width: 640px) {
    .al-beispiel { padding: 20px 18px; }
}


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