/* ki-weiterbildung-unternehmen.de: Motiv „Qualifizierungsmatrix“. Raster, Stufenkreise in Vierteln (Ist), Ringe (Ziel).
   Schriften lokal (SIL OFL 1.1): Source Serif 4 für Überschriften, DM Sans für Text. Keine Abrufe bei Dritten.
   Eine Hintergrundfarbe für die ganze Seite, damit iPhone-Safari die Ränder hinter Status- und Adressleiste richtig färbt. */

@font-face { font-family: "Source Serif"; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans-normal-300-700-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

:root {
  --grund: #EBEFF2;
  --grund-2: #DFE5EA;
  --flaeche: #FFFFFF;
  --tinte: #1B2836;
  --tinte-2: #4A5868;
  --raster: #C3CDD6;
  --petrol: #0E5E66;
  --petrol-dunkel: #0A454B;
  --petrol-hell: #D5E7E7;
  --ocker: #B7791F;
  --ocker-text: #85570C;
  --ocker-hell: #F6EAD3;
  --marker: #F5D96B;
  --kopf-h: 4.4rem;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 1rem); background: var(--grund); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 400 1.0625rem/1.62 var(--sans); font-kerning: normal; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--petrol-dunkel); text-decoration-color: var(--petrol); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--tinte); text-decoration-color: var(--ocker); }
:focus-visible { outline: 3px solid var(--ocker); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--petrol-hell); color: var(--tinte); }

h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; margin: 0 0 .55em; text-wrap: balance; hyphens: manual; overflow-wrap: break-word; }
h1 { font-size: clamp(1.9rem, 5vw, 3.85rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.2rem); line-height: 1.15; }
h3 { font: 650 1.15rem/1.3 var(--sans); margin: 0 0 .45em; letter-spacing: -.005em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .45em; }
strong { font-weight: 650; }
.huelle { max-width: 75rem; margin: 0 auto; padding: 0 var(--rand); }
.lesen { max-width: 44rem; }
.leise { color: var(--tinte-2); font-size: .95rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.marke-klein { font: 600 .9375rem/1.4 var(--sans); color: var(--petrol); margin: 0 0 .7rem; }
.offen { background: var(--marker); padding: .05em .3em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.sprung { position: absolute; left: -999px; top: .5rem; background: var(--tinte); color: var(--flaeche); padding: .6rem 1rem; z-index: 100; }
.sprung:focus { left: 1rem; }
.entwurf { background: var(--marker); color: var(--tinte); font: 500 .9rem/1.4 var(--sans); text-align: center; padding: .45rem var(--rand); }

/* Stufenkreis: Füllung in Vierteln = Ist-Stand, Ring = höheres Ziel */
.kreis { --g: 1.3rem; display: inline-block; flex: none; width: var(--g); height: var(--g); border-radius: 50%; border: 2px solid var(--petrol);
  background: conic-gradient(var(--petrol) calc(var(--p) * 1turn), var(--flaeche) 0); vertical-align: middle;
  transition: --p .7s cubic-bezier(.3, .7, .2, 1), box-shadow .45s ease; }
.kreis.gross { --g: 1.9rem; }
[data-ist="0"] { --p: 0; } [data-ist="1"] { --p: .25; } [data-ist="2"] { --p: .5; } [data-ist="3"] { --p: .75; } [data-ist="4"] { --p: 1; }
.kreis.luecke { box-shadow: 0 0 0 3px var(--flaeche), 0 0 0 5px var(--ocker); }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--grund); border-bottom: 1px solid var(--raster); }
.kopf .huelle { display: flex; align-items: center; gap: 1.2rem; min-height: var(--kopf-h); }
.marke { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; text-decoration: none; color: var(--tinte); margin-right: auto; }
.marke > span:last-child { font: 650 1.05rem/1.15 var(--sans); white-space: nowrap; }
.nobr { white-space: nowrap; }
abbr[title] { text-decoration: none; }
.nur-handy { display: none; }
.marke small { display: block; font: 400 .875rem/1.3 var(--sans); color: var(--tinte-2); white-space: nowrap; }
.marke-zeichen { display: grid; grid-template-columns: repeat(2, .78rem); gap: .2rem; }
.marke-zeichen i { width: .78rem; height: .78rem; border-radius: 50%; border: 2px solid var(--petrol); }
.marke-zeichen i:nth-child(1) { background: var(--petrol); }
.marke-zeichen i:nth-child(2) { background: conic-gradient(var(--petrol) .5turn, transparent 0); }
.marke-zeichen i:nth-child(3) { background: conic-gradient(var(--petrol) .25turn, transparent 0); }
.marke-zeichen i:nth-child(4) { border-color: var(--ocker); }
.menue { display: flex; align-items: center; gap: .2rem 1.1rem; }
.menue a { text-decoration: none; font-weight: 550; font-size: 1rem; padding: .35rem 0; white-space: nowrap; color: var(--tinte); }
.menue a:hover { color: var(--petrol); }
.menue a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ocker); text-decoration-thickness: 2px; text-underline-offset: .4em; }
.menue-schalter { display: none; }
.lesekreis { --g: 1.15rem; width: var(--g); height: var(--g); border-radius: 50%; border: 2px solid var(--petrol); flex: none;
  background: conic-gradient(var(--petrol) calc(var(--p) * 1turn), transparent 0); }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.3rem; border-radius: var(--r);
  background: var(--petrol); color: var(--flaeche); font-weight: 650; text-decoration: none; border: 2px solid var(--petrol); transition: background .2s, border-color .2s; text-align: center; }
.knopf:hover { background: var(--petrol-dunkel); border-color: var(--petrol-dunkel); color: var(--flaeche); }
.knopf.hell { background: transparent; color: var(--petrol-dunkel); }
.knopf.hell:hover { background: var(--flaeche); color: var(--tinte); border-color: var(--petrol-dunkel); }
.knopf.klein { min-height: 2.6rem; padding: .45rem 1rem; font-size: .95rem; }
.menue .knopf.klein, .menue .knopf.klein:hover { color: var(--flaeche); }
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .7rem; }
.aufruf { margin: 2rem 0 0; }

/* Startbühne */
.buehne { padding: clamp(2.2rem, 6vw, 5rem) 0 clamp(1.5rem, 4vw, 3rem); }
.buehne .huelle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.buehne h1 { max-width: 17ch; }
.buehne .buehnen-matrix { margin-top: 2.6rem; }
.buehne .unterzeile { font-size: clamp(1.1rem, 1.7vw, 1.28rem); color: var(--tinte-2); max-width: 34rem; }
.buehnen-matrix { margin: 0; background: var(--flaeche); border: 1px solid var(--raster); border-radius: 10px; padding: clamp(1rem, 3vw, 1.8rem); justify-self: end; width: 100%; max-width: 34rem; }
.mini-matrix { border-collapse: collapse; width: 100%; }
.mini-matrix th, .mini-matrix td { padding: 0; text-align: center; }
.mini-matrix thead th { height: 7.4rem; vertical-align: bottom; padding-bottom: .55rem; }
.mini-matrix thead th span { display: inline-block; writing-mode: vertical-rl; transform: rotate(200deg); font: 550 .9375rem/1 var(--sans); color: var(--tinte-2); white-space: nowrap; }
.mini-matrix tbody th { text-align: left; font: 550 .9375rem/1.2 var(--sans); padding: .55rem .8rem .55rem 0; white-space: nowrap; }
.mini-matrix tbody td { border-left: 1px solid var(--grund-2); height: 3rem; width: 3.1rem; }
.mini-matrix tbody tr + tr th, .mini-matrix tbody tr + tr td { border-top: 1px solid var(--grund-2); }
.mini-matrix .kreis { --g: 1.45rem; }
.buehnen-matrix figcaption { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--grund-2); font-size: .9375rem; color: var(--tinte-2); }
.legende { display: inline-flex; align-items: center; gap: .55rem; }
.legende .kreis { --g: 1rem; }
.zaehler { margin-left: auto; font-weight: 650; color: var(--ocker-text); font-variant-numeric: tabular-nums; }
.belege { list-style: none; padding: 0; margin: 1.4rem 0 1.6rem; display: grid; gap: .55rem; }
.belege li { display: grid; grid-template-columns: 1.2rem 1fr; gap: .7rem; align-items: start; margin: 0; }
.belege li::before { content: ""; width: 1rem; height: 1rem; margin-top: .3rem; border-radius: 50%; border: 2px solid var(--petrol); background: conic-gradient(var(--petrol) .75turn, transparent 0); }

/* Stufenleiste zwischen Abschnitten */
.stufenleiste { max-width: 75rem; margin: 0 auto; padding: .4rem var(--rand); display: flex; gap: .6rem; align-items: center; }
.stufenleiste::after { content: ""; flex: 1; height: 1px; background: var(--raster); margin-left: .4rem; }
.stufenleiste .kreis { --g: .95rem; border-width: 1.5px; }

/* Seitenkopf der Unterseiten */
.seitenkopf { padding: clamp(2rem, 5.5vw, 4rem) 0 1.2rem; }
.seitenkopf h1 { max-width: 21ch; }
.pfad { font: 500 .9375rem/1.4 var(--sans); color: var(--tinte-2); margin-bottom: 1.3rem; }
.pfad a { color: var(--tinte-2); }
.unterzeile { font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: var(--tinte-2); max-width: 44rem; }
.kurz { max-width: 46rem; margin: 1.5rem 0 1rem; padding: 1.1rem 1.3rem; background: var(--flaeche); border: 1px solid var(--raster); border-left: 5px solid var(--petrol); border-radius: var(--r); }
.kurz p { margin: 0; font-size: 1.07rem; }
.kurz .kurz-marke { font: 650 .9375rem/1 var(--sans); color: var(--petrol); margin-bottom: .55rem; }
.stand { font: 400 .9rem/1.4 var(--sans); color: var(--tinte-2); margin: 0; }

/* Abschnitte */
.abschnitt { padding: clamp(1.8rem, 4.5vw, 3.4rem) 0; }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3.5vw, 2.6rem); margin-bottom: 1.6rem; }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: 1.6rem; }
.feld { background: var(--flaeche); border: 1px solid var(--raster); border-radius: var(--r); padding: 1.2rem 1.25rem 1.05rem; }
.feld h3 { margin-bottom: .4em; }
.feld p:last-child, .feld ul:last-child { margin-bottom: 0; }
.feld.ziel { border-color: var(--ocker); border-top-width: 4px; }
.feld.ist { border-top: 4px solid var(--petrol); }
.zahl { display: block; font: 600 clamp(1.9rem, 4vw, 2.6rem)/1 var(--serif); color: var(--petrol-dunkel); margin-bottom: .45rem; font-variant-numeric: lining-nums tabular-nums; }
.merk { padding-left: 1.2rem; }
.merk li::marker { color: var(--petrol); }
.hinweis { background: var(--ocker-hell); border-left: 4px solid var(--ocker); border-radius: var(--r); padding: 1rem 1.2rem; margin: 1.4rem 0; }
.hinweis p:last-child { margin: 0; }
.wortlaut { margin: 1.3rem 0; padding: .9rem 1.2rem; background: var(--flaeche); border-left: 3px solid var(--tinte); border-radius: 0 var(--r) var(--r) 0; }
.wortlaut p { font: italic 400 1.1rem/1.55 var(--serif); margin: 0 0 .4rem; }
.wortlaut footer { font-size: .9375rem; color: var(--tinte-2); }

/* Schritte (echte Abfolge) */
.schritte { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 0; max-width: 50rem; }
.schritt { display: grid; grid-template-columns: 3rem 1fr; gap: 1.1rem; margin: 0; padding: 1.1rem 0; border-top: 1px solid var(--raster); }
.schritt:last-child { border-bottom: 1px solid var(--raster); }
.schritt-marke { padding-top: .1rem; }
.schritt h3 { font-size: 1.18rem; }
.schritt-nr { display: block; font: 600 .9375rem/1.3 var(--sans); color: var(--petrol); margin-bottom: .2rem; }
.schritt p { margin: 0; }

/* Tabellen */
.tabelle-huelle { overflow-x: auto; margin: 1.4rem 0; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--flaeche); border: 1px solid var(--raster); font-size: 1rem; }
.tabelle caption { caption-side: bottom; text-align: left; padding: .7rem .2rem 0; font-size: .9375rem; color: var(--tinte-2); }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: .75rem .95rem; border-bottom: 1px solid var(--grund-2); }
.tabelle thead th { font: 650 .9375rem/1.3 var(--sans); background: var(--grund-2); color: var(--tinte); border-bottom: 2px solid var(--raster); }
.tabelle tbody th { font-weight: 650; }
.tabelle th a { display: inline-block; padding: .55rem 0; margin: -.55rem 0; }
.tabelle tr:last-child th, .tabelle tr:last-child td { border-bottom: 0; }
.tabelle.vorlage td { min-width: 7rem; }

/* Fragen */
.fragen { display: grid; gap: 0; margin: 1.2rem 0; border-top: 1px solid var(--raster); }
.fragen details { border-bottom: 1px solid var(--raster); }
.fragen summary { -webkit-tap-highlight-color: transparent; cursor: pointer; list-style: none; padding: 1rem 2.8rem 1rem 0; font-weight: 650; position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; position: absolute; right: .3rem; top: 1.05rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--petrol); transition: background .25s; }
.fragen details[open] summary::after { background: conic-gradient(var(--petrol) 1turn, transparent 0); }
.fragen .antwort { padding: 0 0 1.1rem; }
.fragen .antwort p { margin: 0; }

/* Werkzeug: interaktive Qualifikationsmatrix */
.werkzeug { background: var(--flaeche); border: 1px solid var(--raster); border-radius: 10px; padding: clamp(1rem, 3vw, 1.8rem); margin: 1.5rem 0; }
.werkzeug-leiste { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; margin-bottom: 1rem; }
.modus { display: inline-flex; border: 2px solid var(--petrol); border-radius: var(--r); overflow: hidden; margin: 0; padding: 0; }
.modus legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.modus label { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .4rem 1rem; cursor: pointer; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.modus input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.modus label:has(input:checked) { background: var(--petrol); color: var(--flaeche); }
.modus label:has(input:focus-visible) { outline: 3px solid var(--ocker); outline-offset: -3px; }
.matrix-huelle { overflow-x: auto; margin: 0 0 1rem; }
.matrix { border-collapse: separate; border-spacing: 0; min-width: 40rem; width: 100%; }
.matrix th, .matrix td { border-bottom: 1px solid var(--grund-2); }
.matrix thead th { font: 600 .9375rem/1.25 var(--sans); color: var(--tinte-2); vertical-align: bottom; padding: .4rem .3rem .7rem; text-align: center; }
.matrix thead th:first-child { text-align: left; }
.matrix tbody th { text-align: left; font: 650 .9375rem/1.25 var(--sans); padding: .5rem .8rem .5rem 0; position: sticky; left: 0; background: var(--flaeche); z-index: 1; min-width: 8.5rem; }
.matrix td { text-align: center; padding: .25rem; }
.zelle { -webkit-tap-highlight-color: transparent; display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 3.4rem; min-height: 3.5rem; padding: .45rem .3rem;
  background: transparent; border: 1px solid transparent; border-radius: var(--r); cursor: pointer; font: 500 .875rem/1 var(--sans); color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.zelle:hover { border-color: var(--raster); background: var(--grund); }
.zelle .wert { white-space: nowrap; }
.zelle .wert b { color: var(--ocker-text); font-weight: 650; }
.stufen-legende { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .9375rem; color: var(--tinte-2); }
.stufen-legende li { display: inline-flex; gap: .5rem; align-items: center; margin: 0; }
.stufen-legende .kreis { --g: 1rem; }
.plan { border-top: 2px solid var(--tinte); padding-top: 1.2rem; margin-top: .5rem; }
.plan h3 { font: 600 1.35rem/1.2 var(--serif); }
.plan-welle { margin: 0 0 1.2rem; }
.plan-welle h4 { font: 650 1.02rem/1.3 var(--sans); margin: 0 0 .5rem; color: var(--petrol-dunkel); }
.plan-welle ol { margin: 0; padding-left: 1.3rem; }
.plan-welle li { margin-bottom: .35rem; }
.plan-welle .format { color: var(--tinte-2); }
.werkzeug-knoepfe { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.werkzeug-knoepfe button { font: 650 1rem/1 var(--sans); cursor: pointer; }

/* Kontakt am Ende */
.kontakt-karte { background: var(--tinte); color: #E8EEF2; border-radius: 10px; padding: clamp(1.4rem, 4vw, 2.6rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.2rem, 4vw, 3rem); align-items: center; }
.kontakt-karte h2 { color: var(--flaeche); }
.kontakt-karte a { color: var(--flaeche); text-decoration-color: var(--ocker); }
.kontakt-karte .marke-klein { color: #9ED0D2; }
.kontakt-karte .leise { color: #C3CED8; }
.kontakt-karte .knopf { background: var(--flaeche); border-color: var(--flaeche); color: var(--tinte); }
.kontakt-karte .knopf:hover { background: var(--petrol-hell); border-color: var(--petrol-hell); color: var(--tinte); }
.kontakt-wege p:last-child { margin: 0; }

/* Weiterlesen, Quellen */
.weiter-liste { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 1.6rem; border-top: 1px solid var(--raster); }
.weiter-liste li { padding: .95rem 0; margin: 0; display: grid; gap: .2rem; border-bottom: 1px solid var(--raster); }
.weiter-liste a { font-weight: 650; }
.weiter-liste span { color: var(--tinte-2); font-size: .97rem; }
.quellen { font-size: .9375rem; color: var(--tinte-2); border-top: 1px solid var(--raster); padding-top: 1rem; margin-top: 2rem; }

/* Fuß */
.fuss { background: var(--grund-2); border-top: 1px solid var(--raster); padding: 3rem 0 2.5rem; margin-top: 2rem; font-size: .97rem; }
.fuss .spalten { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 2rem; }
.fuss h2 { font: 650 1rem/1.3 var(--sans); letter-spacing: 0; margin-bottom: .7rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .35rem; }
.fuss .klein { margin-top: 2rem; font-size: .9375rem; color: var(--tinte-2); max-width: 60rem; }

/* Bewegung: nur mit JavaScript (html.bewegt) und ohne Wunsch nach reduzierter Bewegung */
html.bewegt .buehnen-matrix:not(.an) .kreis { --p: 0; }
html.bewegt .buehnen-matrix:not(.ziel-an) .kreis.luecke { box-shadow: 0 0 0 3px var(--flaeche), 0 0 0 3px var(--flaeche); }
html.bewegt .buehnen-matrix .zaehler { transition: opacity .4s; }
html.bewegt .buehnen-matrix:not(.ziel-an) .zaehler { opacity: 0; }
html.bewegt .stufenleiste:not(.an) .kreis, html.bewegt .schritt:not(.an) .kreis { --p: 0; }
html.bewegt .stufenleiste .kreis:nth-child(2) { transition-delay: .08s; } html.bewegt .stufenleiste .kreis:nth-child(3) { transition-delay: .16s; }
html.bewegt .stufenleiste .kreis:nth-child(4) { transition-delay: .24s; } html.bewegt .stufenleiste .kreis:nth-child(5) { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .kreis { transition: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Feste Aufrufleiste am Handy: erst nach dem ersten Bildschirm, Platz unten reserviert */
.leiste-unten { display: none; }
@media (max-width: 980px) {
  .leiste-unten { display: flex; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .6rem var(--rand) calc(.6rem + env(safe-area-inset-bottom));
    background: var(--grund); border-top: 1px solid var(--raster); transform: translateY(110%); transition: transform .3s ease; }
  .leiste-unten .knopf { flex: 1; min-height: 2.9rem; padding: .5rem .8rem; }
  .leiste-unten .knopf.hell { flex: 0 0 auto; }
  html.leiste-da .leiste-unten { transform: none; }
  /* Platz am Seitenende für die feste Leiste: immer vorhanden, damit das Ein- und Ausblenden
     die Seitenhöhe nicht ändert (sonst springt der Schalter am Seitenende hin und her und
     die Leiste verdeckt die letzte Zeile der Fußzeile). Höhe der Leiste: .6rem + 2.9rem + .6rem. */
  .fuss { padding-bottom: calc(2.5rem + 5.5rem + env(safe-area-inset-bottom)); }
}

@media print {
  .kopf, .fuss, .leiste-unten, .entwurf, .kontakt-bereich, .weiter, .stufenleiste, .werkzeug-knoepfe, .modus { display: none !important; }
  body, html { background: #fff; }
  .werkzeug { border: 0; padding: 0; }
}

/* Schmale Bildschirme */
@media (max-width: 1240px) { .marke small { display: none; } }
@media (max-width: 1080px) {
  .fuss .spalten { grid-template-columns: 1fr 1fr; }
  .drei { grid-template-columns: 1fr 1fr; }
  .menue { gap: .2rem .9rem; }
}
@media (max-width: 980px) {
  :root { --kopf-h: 3.9rem; }
  .menue-schalter { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1rem; border: 2px solid var(--tinte); border-radius: var(--r); background: transparent; color: var(--tinte); font: 650 1rem/1 var(--sans); cursor: pointer; }
  .menue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--grund); border-bottom: 1px solid var(--raster); flex-direction: column; align-items: stretch; padding: .5rem var(--rand) 1.2rem; gap: 0; }
  .menue.offen-menue { display: flex; }
  .menue a { padding: .8rem 0; border-bottom: 1px solid var(--raster); font-size: 1.08rem; }
  .menue .knopf.klein { margin-top: .9rem; border-bottom: 2px solid var(--petrol); }
  .kopf .huelle { position: relative; }
  .buehne .huelle { grid-template-columns: 1fr; }
  .buehnen-matrix { justify-self: start; }
  .zwei { grid-template-columns: 1fr; }
  .kontakt-karte { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nur-handy { display: block; }
  .marke > span:last-child { white-space: normal; }
  .buehne h1, .seitenkopf h1 { max-width: none; }
  h1 { hyphens: auto; -webkit-hyphens: auto; }
  .buehne .buehnen-matrix { margin-top: 0; }
  .modus { width: 100%; }
  .modus label { flex: 1; justify-content: center; padding: .4rem .6rem; }
  .drei { grid-template-columns: 1fr; }
  .fuss .spalten { grid-template-columns: 1fr; }
  .marke small { display: none; }
  .marke > span:last-child { font-size: 1rem; }
  .lesekreis { display: none; }
  .mini-matrix thead th { height: 6.6rem; }
  .mini-matrix tbody th { font-size: .875rem; padding-right: .5rem; white-space: normal; }
  .mini-matrix tbody td { width: 2.55rem; height: 2.7rem; }
  .mini-matrix .kreis { --g: 1.2rem; }
  .zaehler { margin-left: 0; }
  .knoepfe .knopf { width: 100%; }
  .tabelle.stapel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabelle.stapel, .tabelle.stapel tbody, .tabelle.stapel tr, .tabelle.stapel th, .tabelle.stapel td { display: block; width: 100%; }
  .tabelle.stapel { display: flex !important; flex-direction: column; }
  .tabelle.stapel caption { display: block; width: 100%; padding: .7rem 1rem .2rem; order: 2; }
  .tabelle.stapel tr { border-bottom: 2px solid var(--grund-2); padding: .4rem 0; }
  .tabelle.stapel tbody th { padding-bottom: .2rem; border: 0; }
  .tabelle.stapel td { border: 0; padding-top: .25rem; padding-bottom: .5rem; }
  .tabelle.stapel td::before { content: attr(data-spalte); display: block; font: 650 .875rem/1.3 var(--sans); color: var(--tinte-2); margin-bottom: .1rem; }
  .schritt { grid-template-columns: 2.3rem 1fr; gap: .8rem; }
}
