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

.mk-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;
}
.mk-klein { font-size: 0.92rem; color: var(--text-secondary); margin-top: 12px; }
.mk-ohnejs { display: none; }
html:not(.js) .mk-ohnejs { display: block; }
html:not(.js) .mk-nurjs { display: none; }
.mk-h2-folge { margin-top: 34px; }
.fliesstext .quelle { margin-top: 4px; }
.leistungen-text p + p, .fliesstext p + p { margin-top: 14px; }
.mk-absender { margin-top: 24px; }
.mk-absender p { font-size: 0.95rem; }

.mk-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mk-wahl label { position: relative; display: inline-flex; margin: 0; }
.mk-wahl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mk-wahl span {
display: inline-flex; align-items: center; justify-content: center; gap: 6px; 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;
}
.mk-wahl span b { font-family: 'Space Grotesk', system-ui, sans-serif; color: var(--text-primary); }
.mk-wahl label:hover span { border-color: var(--orange); color: var(--text-primary); }
.mk-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; }
.mk-wahl input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.mk-feldreihe { display: flex; flex-wrap: wrap; gap: 0 16px; }
.mk-feldreihe > .form-group { flex: 1 1 150px; }

.mk-buehne { padding: 32px; box-shadow: var(--schatten-karte); }
.mk-buehne-raster { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px 48px; align-items: start; }
.mk-buehne-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.mk-buehne-knopf { margin-top: 22px; }

.mk-erklaerung h2 { margin-bottom: 16px; }
.mk-stufen-titel { font-size: 1.05rem; margin-bottom: 12px; }
.mk-stufen { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.mk-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; }
.mk-stufe { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-primary); margin-right: 6px; white-space: nowrap; }
.mk-stufe-symbol { flex-shrink: 0; }
.mk-stufe-symbol .mk-sy-leer { fill: none; stroke: var(--text-secondary); stroke-width: 1.5; }
.mk-stufe-symbol .mk-sy-halb { fill: var(--text-secondary); }
.mk-stufe-symbol .mk-sy-orange { fill: var(--orange); }
.mk-check .werkzeug-raster { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
.mk-check .werkzeug-ergebnis { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
.mk-kopfzeile { color: var(--text-secondary); margin: 0; }
.mk-vorlagen { margin-bottom: 16px; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-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;
}
.mk-chip:hover { border-color: var(--orange); color: var(--orange-text); }
.mk-chip-leer { background: transparent; color: var(--text-secondary); }
.mk-zusatz { margin: 18px 0 4px; padding-top: 16px; border-top: 1px solid var(--border); }
.mk-ergebnis h3 { font-size: 1.1rem; margin-bottom: 12px; }
.mk-ergebnis-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.mk-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; }
.mk-befund { margin-top: 8px; }
.mk-befund-text { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }
.mk-ergebnis > .mk-befund, #mk-check-ausgabe > .mk-befund { padding: 10px 12px; border-radius: var(--radius-s); background: var(--bg-card); border: 1px solid var(--border); }
.mk-ergebnis .anfrage-baustein { margin-top: 0; }



.mk-beispiel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 24px 26px; display: flex; flex-direction: column; }
.mk-beispiel h3 { font-size: 1.15rem; margin-bottom: 10px; }
.mk-beispiel p { color: var(--text-secondary); font-size: 0.95rem; }
.mk-beispiel-breit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 28px 36px; align-items: center; margin-bottom: 24px; }
.mk-beispiel-breit .mk-muster-figur .svg-einbettung { padding: 10px; }
.mk-beispiele { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mk-beispiel-liste { margin: 12px 0 4px; padding-left: 20px; color: var(--text-secondary); font-size: 0.93rem; }
.mk-beispiel-liste li { margin-bottom: 6px; }
.mk-beispiel-liste strong { color: var(--text-primary); }
.mk-rechenweg { font-size: 0.88rem; margin: 4px 0 0; }
.mk-beispiel-ergebnis { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.mk-beispiel-ergebnis strong { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 1.3rem; color: var(--text-primary); }


figure.mk-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.mk-skizze-rahmen .svg-einbettung { padding: 18px 20px 8px; }
figure.mk-skizze-rahmen .svg-einbettung, figure.mk-skizze-rahmen .svg-einbettung > svg { display: block; width: 100%; height: auto; }
figure.mk-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.mk-skizze-rahmen { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08); }
.mk-figur-breit { max-width: 880px; margin: 0 auto 28px; }
.mk-bsp-raster { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 28px 40px; align-items: center; }
.leistungen-text p + p, .fliesstext p + p { margin-top: 14px; }
.fliesstext h3 { margin: 0 0 8px; font-size: 1.1rem; }
.mk-klein { font-size: 0.92rem; color: var(--text-secondary); margin-top: 12px; }

@media (max-width: 1024px) {
    .mk-check .werkzeug-raster { grid-template-columns: minmax(0, 1fr); }
    .mk-check .werkzeug-ergebnis { position: static; max-height: none; overflow: visible; }

}
@media (max-width: 768px) {
    .mk-buehne { padding: 22px 18px; }
    figure.mk-skizze-rahmen .svg-einbettung { padding: 12px 10px 6px; }

}
@media (max-width: 640px) {
    .mk-beispiel { padding: 20px 18px; }
    .mk-wahl span { min-width: 64px; padding: 8px 14px; }

}
@media (max-width: 400px) {
    .mk-wahl { gap: 6px; }
    .mk-wahl span { min-width: 0; padding: 8px 12px; }

}

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

}


.mk-sk .tg { fill: var(--text-primary); font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 34px; letter-spacing: 0; }
.mk-sk .tg2 { fill: var(--text-primary); font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 22px; }
.mk-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); }
.mk-status-gefunden { border-left-color: var(--erfolg); }
.mk-status-alt { border-left-color: var(--warnung); }
.mk-status-keine, .mk-status-widerspruch, .mk-status-fehler { border-left-color: var(--fehler); }
.mk-status-leer { font-weight: 500; color: var(--text-secondary); }
.mk-buehne-feld { margin: 18px 0 8px; }
.mk-buehne-feld label { display: block; margin-bottom: 6px; font-weight: 600; }
.mk-eingabehilfe { color: var(--text-secondary); font-size: 0.88rem; margin: 6px 0 0; }
.mk-auswahl-titel { font-size: 0.9rem; color: var(--text-secondary); margin: 14px 0 8px; }
.mk-ergebnis-kopf { display: block; }
.mk-zuordnung { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; font-family: 'Space Grotesk', system-ui, sans-serif; }
.mk-kz { font-size: 2rem; font-weight: 700; color: var(--text-primary); line-height: 1.1; overflow-wrap: anywhere; }
.mk-nr { font-size: 1.35rem; font-weight: 600; color: var(--orange-text); }
.mk-keine { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.mk-gruppe { margin: 8px 0 0; color: var(--text-secondary); font-size: 0.93rem; }
.mk-hinweise { list-style: none; padding: 0; margin: 0; }
.mk-hinweise li { margin-bottom: 8px; }
.mk-hinweise .mk-befund { padding: 10px 12px; border-radius: var(--radius-s); background: var(--bg-card); border: 1px solid var(--border); margin-top: 0; }
.mk-quelle { margin: 6px 0 0; font-size: 0.78rem; color: var(--text-muted); }
.mk-muster { margin: 0; padding: 10px 12px; border-radius: var(--radius-s); background: var(--bg-card); border: 1px solid var(--border); font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 0.9rem; overflow-wrap: anywhere; }
.mk-leer { color: var(--text-secondary); }
.mk-sortentabelle th[scope="row"] { white-space: nowrap; }
.mk-beispiel-karte { margin: 0 0 14px; }
.mk-beispiel-karte svg { display: block; width: 100%; height: auto; }
.mk-beispiel .mk-hinweisliste { margin: 10px 0 0; padding-left: 20px; color: var(--text-secondary); font-size: 0.93rem; }
.mk-beispiel .mk-hinweisliste li { margin-bottom: 6px; }
.mk-beispiel-ergebnis .mk-kz { font-size: 1.4rem; }
.mk-beispiel-ergebnis .mk-nr { font-size: 1.1rem; }
.mk-beispiele-spalte { display: grid; gap: 24px; }
@media (max-width: 1024px) {
    .mk-buehne-raster, .mk-beispiel-breit, .mk-bsp-raster { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .mk-kz { font-size: 1.6rem; }
}
.mk-feldgruppe { border: 0; margin: 20px 0 16px; padding: 0; min-width: 0; }
.mk-feldgruppe legend { padding: 0; }
.mk-sk .tg, .mk-sk .tg2 { letter-spacing: 0; }
