/* Einheitlicher Rahmen aller Unterseiten (Chef, 21.10.2026).
   Massstab ist die Startseite: Streifen und Kopf wie dort, weisser Grund,
   weisse Karten mit Ring und Schatten, Knoepfe als gruene Pillen,
   Fliesstext nicht unter 15 px, Tabellen ruhig. Gebaut von bauen.py
   (einheit.css neben bauen.py) - nicht in site/ von Hand aendern. */
:root{--ek-tinte:#1d1d1f;--ek-kopf:#121815;--ek-leise:#5a645f;--ek-gruen:#00704c;--ek-gruen-hell:#00875a;
  --ek-ring:rgba(18,24,21,.10);--ek-schatten:0 10px 30px -14px rgba(4,40,28,.30);
  --ek-schrift:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Helvetica,Arial,sans-serif}

/* Streifen wie auf der Startseite */
.ek-streifen{height:40px;display:flex;align-items:center;justify-content:center;gap:8px;margin:0;
  background:#f5f5f7;color:var(--ek-tinte);font:400 13px/1.6 var(--ek-schrift);letter-spacing:-.08px;padding:0 16px;text-align:center}
.ek-streifen .ek-punkt{width:8px;height:8px;border-radius:4px;background:#f0b871;flex:none}

/* Kopf wie auf der Startseite */
header.ek-kopf{position:static;display:block;height:76px;margin:0;padding:0;box-sizing:border-box;
  background:rgba(255,255,255,.78);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);
  border:0;border-bottom:1px solid rgba(0,0,0,.08);box-shadow:none;font-family:var(--ek-schrift);color:var(--ek-tinte);z-index:20}
header.ek-kopf .ek-innen{max-width:1120px;height:76px;margin:0 auto;padding:0;display:flex;align-items:center;gap:24px;box-sizing:border-box}
header.ek-kopf a.ek-marke{display:flex;align-items:center;gap:10px;min-height:44px;text-decoration:none;color:var(--ek-tinte);background:none;padding:0}
header.ek-kopf a.ek-marke svg{width:auto;height:32px;display:block;flex:none}
header.ek-kopf .ek-name{font-weight:700;font-size:19px;letter-spacing:-.3px;line-height:1.2}
header.ek-kopf .ek-luft{flex-grow:1}
header.ek-kopf nav.ek-nav{display:flex;gap:2px;margin:0;padding:0;flex-wrap:nowrap;align-items:center;background:none;border:0}
header.ek-kopf nav.ek-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 13.5px;margin:0;font-size:15px;font-weight:500;
  white-space:nowrap;color:#56565a;opacity:.88;text-decoration:none;background:none;border:0}
header.ek-kopf nav.ek-nav a:hover{color:var(--ek-tinte);opacity:1}
header.ek-kopf a.ek-knopf{height:44px;display:inline-flex;align-items:center;padding:0 22px;margin:0;border-radius:999px;border:0;
  background:var(--ek-gruen-hell);color:#fff;font-size:15px;font-weight:600;text-decoration:none;white-space:nowrap}
header.ek-kopf a.ek-knopf:hover{background:var(--ek-gruen)}
@media (max-width:1200px){header.ek-kopf .ek-innen{padding:0 24px}}
@media (max-width:760px){.ek-streifen{height:auto;min-height:40px;padding:8px 16px}
  header.ek-kopf,header.ek-kopf .ek-innen{height:64px}header.ek-kopf .ek-innen{padding:0 16px;gap:12px}
  header.ek-kopf nav.ek-nav a:not(:last-child){display:none}header.ek-kopf nav.ek-nav a{padding:0 4px;font-size:14px}
  header.ek-kopf a.ek-marke svg{height:28px}header.ek-kopf .ek-name{font-size:17px}
  header.ek-kopf a.ek-knopf{padding:0 14px;font-size:14px}}
@media (max-width:420px){header.ek-kopf .ek-innen{padding:0 12px;gap:8px}header.ek-kopf nav.ek-nav a{font-size:13px;padding:0 2px}
  header.ek-kopf a.ek-knopf{padding:0 12px}header.ek-kopf a.ek-marke{gap:8px}header.ek-kopf .ek-name{font-size:16px}}
/* Der alte Kopfrahmen der Proben bleibt nur als Huelle */
.rahmen-kopf{background:none;box-shadow:none;border:0}

/* Grund weiss wie die Startseite */
@media (prefers-color-scheme:light){
  html,html body{background:#fff}
  html body main{background:transparent}
  /* Karten: weiss, Ring und Schatten wie die Karten der Startseite */
  html body main :is(.karte:not(.hinweis-leise):not(.musterhinweis),.rg-karte,.preiskarte,.mini,.bald-box,section.abschluss,.wahlkarte,li.weg-schritt,.rechnerkacheln>a,.ws-formular,.wz-form){
    background:#fff;box-shadow:inset 0 0 0 1px var(--ek-ring),var(--ek-schatten);border-color:transparent}
  html body main .preiskarte.hervor{box-shadow:inset 0 0 0 2px rgba(0,112,76,.55),0 18px 40px -18px rgba(0,112,76,.45)}
  html body main .rollbar{background:#fff;box-shadow:inset 0 0 0 1px var(--ek-ring),0 8px 24px -16px rgba(4,40,28,.28);border-radius:18px}
  html body main details.kurzgefragt,html body main .ws-lose>details{background:#fff;box-shadow:inset 0 0 0 1px var(--ek-ring)}
}

/* Karten mit Text bis an den Rand: Innenabstand wie die Karten der Startseite */
html body main section.karte:is(.sw-block,.faq,.sw-fragen){padding:30px 34px}
@media (max-width:760px){html body main section.karte:is(.sw-block,.faq,.sw-fragen){padding:22px 20px}}

/* Fliesstext nicht unter 15 px (Schnittstellen-Bilder in den Proben ausgenommen) */
html body main :is(p.leise.klein,p.klein,.ratgeber-stand,.rg-start p.leise,td,td b,td a,td .name,td .warum,caption,
  .fs-i-text p,.ws-profi-innen p,.profi p,.profi-inhalt p,details.profi summary,.datenlage p,.datenlage dt,.datenlage dd,
  .gegenrechnung .dazu,.gegenkarte .grundlage,.gegenkarte .daneben,.hebel .satz,.hebel label,.feldgruppe label,.ws-formular label,
  .hilfe,.wege .name,.wege .text,.mehrfelder summary,.mehrfelder .warum,.mehrfelder label,.weg-zusatz,.weg-stolper p,.rfv-hilfe,
  dl.angaben dt,.kr-wahl small,.kr-wahl b,.kr-feld small,.preiskarte .takt,.fusszeile p,.ws-lose p.leise.klein,.rollhinweis){font-size:15px;line-height:1.5}
html body main details.fs-i .fs-i-text p{font-size:15px!important;line-height:1.5}
html body main td .leise.klein{font-size:inherit}
html body main :is(td .name,td b,td a,td .warum){font-size:inherit}

/* Tabellen: ruhig, gleiche Abstaende, Zahlen buendig */
html body main .rollbar{overflow-x:auto;-webkit-overflow-scrolling:touch}
html body main .rollbar table{width:100%;border-collapse:collapse;background:transparent}
html body main .rollbar :is(th,td){padding:12px 16px;vertical-align:top}
html body main .rollbar th{font-size:13px;font-weight:600;color:#6e6e73;letter-spacing:0;text-transform:none;border-bottom:1px solid rgba(0,0,0,.10)}
html body main .rollbar td{border-bottom:1px solid rgba(0,0,0,.06);color:var(--ek-tinte)}
html body main .rollbar tr:last-child td{border-bottom:0}
html body main .rollbar :is(td.wieviel,td.zahl,th[style*="right"]){text-align:right}
html body main .rollbar :is(td.wieviel,td.zahl){white-space:nowrap}
@media (max-width:560px){html body main .rollbar :is(th,td){padding:10px 10px}}
html body main figure.rg-schaubild{display:flex;justify-content:center}

/* Fundstelle: kleiner Hinweis unter dem Absatz statt einzelnem Kreis */
html body main :is(div,section,article,header,main,form,aside)>details.fs-i{display:block;margin:-6px 0 14px;width:auto;height:auto}
html body main :is(div,section,article,header,main,form,aside)>details.fs-i>summary{width:auto;height:auto;min-height:28px;padding:2px 10px;border-radius:999px;
  display:inline-flex;align-items:center;gap:6px;font-size:13px;line-height:1.4;color:#5a645f;background:rgba(18,24,21,.05);border:0;box-shadow:none}
html body main :is(div,section,article,header,main,form,aside)>details.fs-i>summary>span{display:none}
html body main :is(div,section,article,header,main,form,aside)>details.fs-i>summary::before{content:"§ Fundstelle";font-weight:500}
html body main :is(div,section,article,header,main,form,aside)>details.fs-i[open]>summary{background:rgba(0,112,76,.10);color:var(--ek-gruen)}

/* Knoepfe wie auf der Startseite */
html body :is(main,.held-foto,.wa-kopf) a.knopf{background:var(--ek-gruen);color:#fff;border-color:transparent;border-radius:980px;font-weight:600;
  box-shadow:0 1px 2px rgba(0,0,0,.08),0 6px 16px -8px rgba(0,80,55,.45)}
html body :is(main,.held-foto,.wa-kopf) a.knopf:hover{background:#005c3f}
html body .held-foto a.knopf.klein{background:var(--ek-gruen);border-color:transparent;color:#fff;font-size:15px;padding:10px 20px}
html body main a.zweiter.zweiter{display:inline-flex;width:auto;align-items:center;min-height:44px;padding:0 20px;margin-top:12px;border-radius:980px;
  background:rgba(21,128,61,.12);color:#0f6b33;font-weight:600;text-decoration:none}
html body main .innen:has(>a.zweiter){text-align:center}

@media (prefers-color-scheme:dark){
  .ek-streifen{background:#161a18;color:#ECF1EE}
  header.ek-kopf{background:rgba(14,18,16,.78);border-bottom-color:rgba(255,255,255,.08);color:#ECF1EE}
  header.ek-kopf a.ek-marke,header.ek-kopf nav.ek-nav a{color:#ECF1EE}
  html body main :is(div,section,article,header,main,form,aside)>details.fs-i>summary{color:#AEB8B3;background:rgba(255,255,255,.08)}
  html body main .rollbar th{color:#AEB8B3;border-bottom-color:rgba(255,255,255,.12)}
  html body main .rollbar td{color:inherit;border-bottom-color:rgba(255,255,255,.08)}
}
