/* Layout: breite Inhaltsspalte (max 1120px), Karten nur fuer Artikel und Ergebnisse; Zeichnungen im Stil technischer Masszeichnungen. */
:root {
  --bg: #f5f8f3;
  --surface: #ffffff;
  --ink: #17241b;
  --muted: #55655a;
  --line: #d7e1d8;
  --brand: #3d8728;
  --brand-strong: #2c6a1a;
  --brand-soft: #e3f1dc;
  --plane: #edf0e8;
  --warn: #8a5200;
  --warn-soft: #fff1cf;
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(23, 36, 27, .08), 0 6px 18px rgba(23, 36, 27, .06);
  --display: "Barlow Semi Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 70rem;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111712; --surface: #19211b; --ink: #e8efe9; --muted: #a2b2a6; --line: #2b372e;
    --brand: #7dc462; --brand-strong: #9cd884; --brand-soft: #1f2f20; --plane: #1e2820;
    --warn: #f1c465; --warn-soft: #3a2e10; --on-brand: #0e190f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111712; --surface: #19211b; --ink: #e8efe9; --muted: #a2b2a6; --line: #2b372e;
  --brand: #7dc462; --brand-strong: #9cd884; --brand-soft: #1f2f20; --plane: #1e2820;
  --warn: #f1c465; --warn-soft: #3a2e10; --on-brand: #0e190f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: var(--brand-strong); text-underline-offset: .15em; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; max-width: 68ch; }
ul, ol { margin: 0; padding-left: 1.2rem; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem .75rem; z-index: 50; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-l { display: flex; flex-direction: column; gap: 1.75rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.num { font-variant-numeric: tabular-nums; }

/* Hinweisleiste der Vorschau */
.banner { background: var(--warn-soft); color: var(--warn); font-size: .9rem; border-bottom: 1px solid var(--line); }
.banner .wrap { padding-block: .45rem; }

/* Kopf */
.util { background: var(--ink); color: var(--bg); font-size: .9rem; }
.util .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; justify-content: space-between; padding-block: .4rem; }
.util a { color: inherit; font-weight: 600; text-decoration: none; }
.head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-block: .6rem; }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: .01em; }
.logo svg { width: 46px; height: 26px; flex: none; }
.logo b { color: var(--brand); font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; gap: .1rem .25rem; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: .4rem .6rem; border-radius: 6px; font-weight: 600; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }
.nav .korb { background: var(--brand); color: var(--on-brand); }
.nav .korb:hover { background: var(--brand-strong); color: var(--on-brand); }
.korb-n { display: inline-block; min-width: 1.4em; text-align: center; background: var(--on-brand); color: var(--brand-strong); border-radius: 999px; font-size: .85rem; padding: 0 .35em; margin-left: .25rem; }

/* Knoepfe und Felder */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 700; padding: .7rem 1.15rem; border-radius: 8px; border: 2px solid var(--brand); background: var(--brand); color: var(--on-brand); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.btn.sek { background: transparent; color: var(--brand-strong); }
.btn.sek:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn.klein { padding: .45rem .8rem; font-size: .95rem; }
label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: .2rem; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: .6rem .7rem; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; padding: 0; accent-color: var(--brand); flex: none; }
.feld { min-width: 0; }
.felder { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.fehler { color: var(--warn); font-size: .9rem; font-weight: 600; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check label { font-weight: 400; margin: 0; }

/* Abschnitte */
main > section { padding-block: 2.5rem; }
main > section.eng { padding-block: 1.5rem; }
section.band { background: var(--plane); }
.kopf { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; color: var(--brand-strong); font-weight: 600; }

/* Einstieg */
.hero { padding-block: 2.5rem 2rem; }
.hero-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); }
.maske { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.1rem; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); align-items: end; }
.maske .btn { width: 100%; }
.zeichnung { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .75rem; }
.zeichnung svg { display: block; width: 100%; height: auto; }
.belege { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; list-style: none; color: var(--muted); font-size: .98rem; }
.belege li::before { content: ""; display: inline-block; width: .55rem; height: .55rem; background: var(--brand); border-radius: 2px; margin-right: .5rem; transform: rotate(45deg); }

/* Raster */
.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.raster.breit { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.karte .bild { background: var(--plane); padding: .6rem; border-bottom: 1px solid var(--line); }
.karte .bild svg { display: block; width: 100%; height: 9.5rem; }
.karte .inhalt { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.karte h3 a { color: var(--ink); text-decoration: none; }
.karte h3 a:hover { color: var(--brand-strong); text-decoration: underline; }
.karte .fuss { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding-top: .4rem; }
.preis { font-family: var(--display); font-size: 1.45rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.preis small { font-family: var(--body); font-size: .85rem; font-weight: 400; color: var(--muted); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: .1rem .45rem; border-radius: 4px; background: var(--warn-soft); color: var(--warn); vertical-align: middle; }
.tag.gut { background: var(--brand-soft); color: var(--brand-strong); }
.daten { display: flex; flex-wrap: wrap; gap: .25rem .9rem; color: var(--muted); font-size: .95rem; padding: 0; list-style: none; }
.kacheln { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.kachel { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 1rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .15rem; }
.kachel:hover { border-color: var(--brand); color: var(--ink); }
.kachel b { font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.kachel span { color: var(--muted); font-size: .92rem; }
.schritte { counter-reset: s; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); padding: 0; list-style: none; }
.schritte li { counter-increment: s; border-top: 3px solid var(--brand); padding-top: .7rem; display: flex; flex-direction: column; gap: .25rem; }
.schritte li::before { content: counter(s); font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--brand-strong); }
.zwei { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); align-items: start; }

/* Artikelseite */
.pfad { font-size: .9rem; color: var(--muted); padding-block: 1rem .25rem; }
.pfad a { color: var(--muted); }
.artikel { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.kaufbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.1rem; display: flex; flex-direction: column; gap: .9rem; }
.preiszeile { color: var(--muted); font-size: .97rem; }
.status { font-weight: 600; font-size: .97rem; }
.status.ok { color: var(--brand-strong); }
.option { display: flex; gap: .6rem; align-items: center; justify-content: space-between; padding: .45rem 0; border-top: 1px solid var(--line); }
.option .links { display: flex; gap: .6rem; align-items: center; min-width: 0; }
.option label { margin: 0; font-weight: 400; }
.menge { width: 5.2rem; }
.summe { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: .6rem; font-weight: 700; }
.liste-klar { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.liste-klar li { padding-left: 1.3rem; position: relative; }
.liste-klar li::before { content: ""; position: absolute; left: 0; top: .6em; width: .6rem; height: 2px; background: var(--brand); }
dl.werte { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 0; }
dl.werte dt { color: var(--muted); }
dl.werte dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
details { border-top: 1px solid var(--line); padding: .7rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { font-weight: 700; cursor: pointer; }
details p { margin-top: .5rem; color: var(--muted); }
.hinweis { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: .7rem .9rem; font-size: .97rem; }
.hinweis.gut { background: var(--brand-soft); color: var(--brand-strong); }
.kasten { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; }

/* Tabellen */
.tabelle { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
td.r, th.r { text-align: right; white-space: nowrap; }
tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); }

/* Planer */
.planer { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
.wahl { display: flex; flex-wrap: wrap; gap: .5rem; }
.wahl label { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: .4rem .85rem; font-weight: 600; cursor: pointer; margin: 0; }
.wahl label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl label:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-family: var(--display); font-size: 1.2rem; font-weight: 600; padding: 0; margin-bottom: .5rem; }
input[type="range"] { padding: 0; border: 0; accent-color: var(--brand); background: transparent; }
.gross { font-family: var(--display); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.balken { display: flex; height: 1.1rem; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.balken span { display: block; }
.b1 { background: var(--brand); } .b2 { background: var(--brand-strong); } .b3 { background: var(--muted); } .b4 { background: var(--line); }
.legende { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .9rem; color: var(--muted); padding: 0; list-style: none; }
.legende i { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .35rem; }

/* Zeichnungen */
.dz-fill { fill: var(--brand-soft); stroke: var(--brand-strong); stroke-width: 2; }
.dz-plane { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
.dz-line { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.dz-thin { fill: none; stroke: var(--muted); stroke-width: 1; }
.dz-dash { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; }
.dz-solid { fill: var(--ink); stroke: none; }
.dz-brand { fill: var(--brand); stroke: none; }
.dz-wood { fill: var(--plane); stroke: var(--ink); stroke-width: 1.3; }
.dz-text { fill: var(--muted); font-family: var(--body); font-size: 12px; }
.dz-text.b { fill: var(--ink); font-weight: 700; font-size: 13px; }

/* Fuss */
.fuss-seite { background: var(--ink); color: var(--bg); margin-top: 2rem; padding-block: 2.25rem 5.5rem; font-size: .97rem; }
.fuss-seite a { color: inherit; }
.fuss-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.fuss-seite h2 { font-size: 1.1rem; margin-bottom: .5rem; }
.fuss-seite ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; background: var(--surface); border-top: 1px solid var(--line); padding: .45rem .75rem calc(.45rem + env(safe-area-inset-bottom, 0px)); gap: .5rem; }
.leiste a { flex: 1; text-align: center; }

@media (max-width: 56rem) {
  .hero-grid, .artikel, .planer { grid-template-columns: minmax(0, 1fr); }
  .nav { margin-left: 0; width: 100%; }
  .nav a { padding: .35rem .5rem; font-size: .95rem; }
  .leiste { display: flex; }
  .head { position: static; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .kachel, .nav a { transition: background-color .15s, border-color .15s, color .15s; }
}
@media print {
  .head, .util, .leiste, .banner, .fuss-seite { display: none; }
}

/* Ergaenzungen fuer Bilder, Textseiten und Formulare */
.karte .bild { display: block; }
.karte .bild img { display: block; width: 100%; height: 9.5rem; object-fit: cover; border-radius: 6px; }
.zeichnung img { display: block; width: 100%; height: auto; border-radius: 6px; }
.text { display: flex; flex-direction: column; gap: 1rem; }
.text h2 { margin-top: 1rem; }
.text h3 { margin-top: .5rem; }
.text ul, .text ol { display: flex; flex-direction: column; gap: .35rem; max-width: 68ch; }
.lead { font-size: 1.2rem; }
.zahl { font-family: var(--display); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--brand-strong); }
.dreier { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.radios { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.radios label { display: inline-flex; gap: .45rem; align-items: center; font-weight: 400; margin: 0; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }
.dz-person { fill: var(--muted); stroke: none; }
.preis small { display: block; }
.tag { font-family: var(--body); }
.preis .tag { margin-left: .4rem; }
.nav .korb[aria-current="page"] { background: var(--brand-strong); color: var(--on-brand); }
.galerie { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.galerie figure { margin: 0; }
.galerie img { display: block; width: 100%; height: 13rem; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.zeichnung.klein { max-width: 22rem; }
.zeichnung img { max-height: 30rem; object-fit: cover; }
