/* Gerüst für Validierungsseiten: keine externen Schriften, keine Skripte. Farben über Variablen anpassbar (site.json → farbe). */
:root { --akzent: #1f5fbf; --text: #1d2330; --leise: #5b6475; --flaeche: #f4f6fa; --rand: #d9dee8; --max: 68rem; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
       color: var(--text); background: #fff; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.schmal { max-width: 44rem; }
main { padding-top: 2rem; padding-bottom: 3rem; min-height: 60vh; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; margin: .5rem 0 1rem; }
h2 { font-size: 1.4rem; margin-top: 2.5rem; }
h3 { font-size: 1.1rem; margin-bottom: .3rem; }
a { color: var(--akzent); }
.kopf { border-bottom: 1px solid var(--rand); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; flex-wrap: wrap; }
.marke { font-weight: 700; text-decoration: none; color: var(--text); }
.nav a { margin-left: 1rem; text-decoration: none; }
.fuss { border-top: 1px solid var(--rand); color: var(--leise); font-size: .9rem; padding: 1.25rem 0; }
.fuss a { color: var(--leise); }
.held { padding: 2rem 0 1rem; }
.unterzeile { font-size: 1.15rem; color: var(--leise); max-width: 46rem; }
.raster { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.5rem 0; }
/* Karten */
.karte h3 { margin-top: 0; }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: .6rem; padding: 1rem 1.2rem; }
.hinweis { background: #fff8e6; border-left: 4px solid #e0a800; padding: .8rem 1rem; border-radius: .3rem; }
.klein { font-size: .88rem; color: var(--leise); }
.formular { background: var(--flaeche); border: 1px solid var(--rand); border-radius: .6rem; padding: 1.25rem; max-width: 34rem; }
.formular label { display: block; margin: .7rem 0 .25rem; font-weight: 600; }
.formular input[type=email], .formular input[type=text], .formular select, .formular textarea {
  width: 100%; padding: .65rem .7rem; font: inherit; border: 1px solid #b8c0cf; border-radius: .4rem; background: #fff; }
.formular textarea { min-height: 9rem; }
.formular .check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; }
.formular .check input { margin-top: .35rem; }
.knopf { display: inline-block; margin-top: 1rem; padding: .75rem 1.3rem; font: inherit; font-weight: 700; color: #fff;
         background: var(--akzent); border: 0; border-radius: .45rem; cursor: pointer; text-decoration: none; }
.knopf:hover, .knopf:focus { filter: brightness(1.1); }
:focus-visible { outline: 3px solid #f0b400; outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* Honeypot */
.rechtstext h1 { font-size: 1.8rem; } .rechtstext h2 { font-size: 1.2rem; margin-top: 1.8rem; }
table { border-collapse: collapse; width: 100%; } td, th { border-bottom: 1px solid var(--rand); padding: .45rem; text-align: left; }
@media (prefers-color-scheme: dark) {
  :root { --text: #e6e9ef; --leise: #a9b1c0; --flaeche: #1b2130; --rand: #343c4e; --akzent: #7fb0ff; }
  body { background: #11151e; } .hinweis { background: #2b2614; }
  .formular input, .formular select, .formular textarea { background: #0d1118; color: var(--text); border-color: #465068; }
  .knopf { color: #0b1020; }
}

:root { --akzent: #b4501e; }

/* GAEB-Viewer (gaeb-angebot) */
[hidden] { display: none !important; }
.datei-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.datei-input:focus-visible + label { outline: 3px solid #f0b400; outline-offset: 2px; }
.ablage { border: 2px dashed var(--rand); border-radius: .8rem; padding: 1.6rem 1.2rem; text-align: center;
  background: var(--flaeche); margin: 1.2rem 0 .8rem; transition: border-color .15s, background .15s; }
.ablage.ziehen { border-color: var(--akzent); background: #fbefe8; }
.ablage .knopf { margin-top: 0; }
.knopf.gross { font-size: 1.15rem; padding: .9rem 1.6rem; cursor: pointer; }
.ablage-text { color: var(--leise); margin: .7rem 0 0; font-size: .95rem; }
.link-knopf { background: none; border: 0; padding: 0; font: inherit; color: var(--akzent); text-decoration: underline; cursor: pointer; }
.meldung { padding: .8rem 1rem; border-radius: .4rem; margin: .5rem 0 1rem; }
.meldung.fehler { background: #fdecea; border-left: 4px solid #c62828; }

.ergebnis { border-top: 1px solid var(--rand); margin-top: 1.5rem; padding-top: 1rem; }
.werkzeuge { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: .6rem; padding: .6rem .8rem; margin-bottom: 1rem; }
.werkzeuge .knopf { margin-top: 0; }
.klein-knopf { padding: .45rem .9rem; font-size: .95rem; cursor: pointer; }
.knopf.zweit { background: transparent; color: var(--akzent); border: 2px solid var(--akzent); }
.schalter { display: inline-flex; gap: .35rem; align-items: center; font-size: .95rem; }
#such { flex: 1 1 12rem; min-width: 10rem; padding: .45rem .6rem; font: inherit; font-size: .95rem; border: 1px solid var(--rand); border-radius: .35rem; }

.lv-kopf h2 { margin-top: .5rem; }
.lv-daten { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: 0 0 1rem; }
.lv-daten dt { color: var(--leise); }
.lv-daten dd { margin: 0; }
details.vorbem, details.gliederung { border: 1px solid var(--rand); border-radius: .5rem; padding: .5rem .9rem; margin: .8rem 0; }
details summary { cursor: pointer; font-weight: 700; }
.gliederung-liste { columns: 2 18rem; margin: .5rem 0; padding-left: 1.2rem; }
.gliederung-liste .tiefe-1 { margin-left: 1rem; font-size: .93rem; }

.bereich { margin: 1.8rem 0 .4rem; padding-bottom: .25rem; border-bottom: 2px solid var(--akzent); font-size: 1.15rem; }
.bereich.tiefe-1 { font-size: 1.05rem; border-bottom-width: 1px; }
.bereich.tiefe-2, .bereich.tiefe-3 { font-size: 1rem; border-bottom-width: 1px; border-bottom-style: dotted; }
.bereich .oz { color: var(--akzent); margin-right: .3rem; }
.pos, .hinweistext { padding: .7rem 0 .8rem; border-bottom: 1px solid var(--rand); break-inside: avoid-page; }
.hinweistext { background: var(--flaeche); padding: .6rem .8rem; border-radius: .4rem; border-bottom: 0; margin: .5rem 0; }
.pos-kopf { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: .2rem 1rem; align-items: baseline; }
.pos-kopf .oz { font-variant-numeric: tabular-nums; color: var(--leise); }
.pos-kopf .kurz { font-weight: 700; }
.pos-kopf .menge { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pos-kopf .preis { grid-column: 3; text-align: right; font-size: .9rem; color: var(--leise); white-space: nowrap; }
.hinweistext .pos-kopf { grid-template-columns: 1fr; }
.hinweistext .pos-kopf .oz { display: none; }
.marken { margin: .3rem 0 0 8.5rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.marke-art { font-size: .8rem; padding: .05rem .5rem; border-radius: 1rem; border: 1px solid var(--rand); background: var(--flaeche); }
.marke-art.bieter { background: #fff3c4; border-color: #e0b400; color: #1d2330; }
.langtext { margin: .4rem 0 0 8.5rem; font-size: .95rem; overflow-wrap: anywhere; }
.langtext p { margin: .2rem 0 .5rem; }
.langtext ul, .langtext ol { margin: .2rem 0 .5rem; padding-left: 1.3rem; }
.langtext.unter { border-left: 3px solid var(--rand); padding-left: .7rem; }
.hinweistext .langtext { margin-left: 0; }
.lv-tabelle { width: auto; margin: .4rem 0; font-size: .9rem; }
.lv-tabelle td { border: 1px solid var(--rand); padding: .25rem .45rem; vertical-align: top; }
.lv-bild { max-width: 100%; height: auto; display: block; margin: .4rem 0; }
.erg-wert { background: #f3f5f9; padding: 0 .25rem; border-radius: .2rem; }
.erg.bieter .erg-wert { background: #fff3c4; outline: 1px solid #e0b400; color: #1d2330; }
.nur-kurz .langtext, .nur-kurz .marken { display: none; }
.ohne-summe .menge { font-style: italic; }
.x84-teaser { margin-top: 2rem; border-left: 4px solid var(--akzent); }

@media (max-width: 40rem) {
  .werkzeuge { position: static; }
  .pos-kopf { grid-template-columns: 1fr auto; }
  .pos-kopf .oz { grid-column: 1 / -1; font-size: .85rem; }
  .pos-kopf .preis { grid-column: 2; }
  .langtext, .marken { margin-left: 0; }
  .lv-daten { grid-template-columns: 1fr; }
  .lv-daten dd { margin-bottom: .4rem; }
}
@media (prefers-color-scheme: dark) {
  .ablage.ziehen { background: #2a1d16; }
  .meldung.fehler { background: #3a1c1c; }
  #such { background: #0d1118; color: var(--text); border-color: #465068; }
  .erg-wert { background: #262d3d; }
}
@media print {
  html.js .kopf, html.js .fuss, html.js .held, html.js .nicht-drucken, .werkzeuge, .nur-bildschirm, .gliederung { display: none !important; }
  body { font-size: 10pt; background: #fff; color: #000; }
  main { padding: 0; }
  .ergebnis { border: 0; margin: 0; padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .bereich { break-after: avoid-page; }
  a { color: #000; text-decoration: none; }
  .marke-art { border-color: #999; }
}
