@font-face { font-family: 'Archivo'; src: url('schrift/archivo-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Archivo'; src: url('schrift/archivo-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; src: url('schrift/geist-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Geist'; src: url('schrift/geist-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --grund: #F3F6F4; --karte: #FFFFFF;
  --tinte: #101915; --tinte2: #3B4842; --tinte3: #5F6C66;
  --linie: #D6DDD9; --linie2: #E6EBE8;
  --struktur: #102C1D;
  --lime: #80B507; --lime-tief: #466600; --lime-hell: #EEF6D8;
  --fest: #8C9791; --fest-tief: #4E5953;
  --fenster: #E3EEDB; --warn: #A3410F;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 15px/1.45 'Geist', system-ui, sans-serif; }
h1, h2, .zahl, .sym, .kachel b { font-family: 'Archivo', 'Geist', system-ui, sans-serif; }
[hidden] { display: none !important; }
.r { text-align: right; }
b { font-weight: 650; }
.chip { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: 0; }

/* Kopf */
.kopf { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding: 14px 28px; background: var(--struktur); color: #fff; }
.titel { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.titel h1 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -0.01em; }
.titel h1::before { content: ''; display: inline-block; width: 12px; height: 12px; background: var(--lime); margin-right: 10px; vertical-align: 2px; }
.unter { color: #B9C6BF; font-size: 14px; }
.ansicht { display: flex; gap: 4px; }
.ansicht button { font: 600 15px/1 'Archivo', sans-serif; color: #B9C6BF; background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px 9px; min-height: 40px; cursor: pointer; }
.ansicht button:hover { color: #fff; }
.ansicht button[aria-selected="true"] { color: #fff; border-bottom-color: var(--lime); }
.ansicht .trennstrich { width: 1px; align-self: stretch; margin: 8px 8px; background: #3A5446; }
.ansicht .nr { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin-right: 8px; font-size: 12px; background: #2A4335; color: #DCE5E0; }
.ansicht button[aria-selected="true"] .nr { background: var(--lime); color: var(--struktur); }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

/* Ansichten und Wahlleisten */
.ansichtflaeche { padding: 14px 28px 6px; max-width: 1680px; margin: 0 auto; }
.leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: 12px; }
.wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.wahl button { font: 600 14px/1 'Geist', sans-serif; display: inline-flex; align-items: center; padding: 9px 12px; min-height: 38px; border-radius: 6px; cursor: pointer; border: 1px solid var(--linie); background: #fff; color: var(--tinte2); }
.wahl button:hover { border-color: var(--fest); color: var(--struktur); }
.wahl button[aria-checked="true"] { background: var(--struktur); border-color: var(--struktur); color: #fff; }
.wahl.schalter button[aria-checked="true"] { background: var(--lime); border-color: var(--lime); color: var(--struktur); }
.suche { display: flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 600; color: var(--struktur); }
.suche input { width: 320px; font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 6px; background: #fff; }

/* Karten */
.karte { background: var(--karte); border: 1px solid var(--linie2); border-radius: 10px; padding: 16px 18px 14px; display: flex; flex-direction: column; min-width: 0; }
.karte > header, .teilkopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 2px solid var(--struktur); margin-bottom: 6px; }
.karte h2 { margin: 0; font-size: 18px; font-weight: 650; color: var(--struktur); }
.legende { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tinte3); white-space: nowrap; }
.legende i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 6px; }
.legende i.fest { background: #fff; border: 3px solid var(--fest); }
.legende i.rechner { background: var(--lime); }
.legende i.fenster { background: var(--fenster); border-radius: 2px; width: 16px; }
.klein { margin: 0; padding-top: 8px; font-size: 13px; color: var(--tinte3); }
.satz { margin: 4px 0 10px; font-size: 16px; color: var(--tinte2); }
.satz b { color: var(--struktur); }
.link { font: inherit; color: var(--lime-tief); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.knopf { font: 600 15px/1 'Geist', sans-serif; padding: 11px 16px; min-height: 42px; border-radius: 6px; cursor: pointer; border: 1px solid var(--struktur); background: #fff; color: var(--struktur); }
.knopf:hover:not(:disabled) { background: var(--lime-hell); }
.knopf:disabled { opacity: .35; cursor: default; }
.knopf.primaer { background: var(--struktur); color: #fff; min-width: 220px; }
.knopf.primaer:hover { background: #1C4630; }

/* Gattieren: Ofen links, Ablauf rechts */
.gattieren { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; }
.herkunft { margin: 0; font-size: 13px; color: var(--tinte3); }
.gelernt { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--lime-hell); font-size: 13px; color: var(--tinte2); }
.gelernt > b { color: var(--struktur); font-size: 14px; }
.gelernt span b { color: var(--lime-tief); }
.quelle { display: inline-block; font-size: 12px; font-weight: 600; color: var(--lime-tief); background: var(--lime-hell); border-radius: 4px; padding: 2px 7px; margin-right: 8px; vertical-align: 1px; }
.el .m.erw { background: transparent; border: 2px dashed var(--tinte3); width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.erwpunkt { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px dashed var(--tinte3); vertical-align: -1px; margin-right: 4px; }

/* Planung */
.plangrid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); grid-template-rows: auto 1fr; gap: 14px 16px; }
.plangrid > .karte:first-child { grid-row: 1 / 3; }
.plangrid .woche .vergleich th, .plangrid .woche .vergleich td { padding: 4px 4px; }
.bedarf { padding: 10px 0; border-bottom: 1px solid var(--linie2); }
.bkopf { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.bkopf b { color: var(--struktur); }
.bkopf span { color: var(--tinte3); font-variant-numeric: tabular-nums; }
.bbalken { display: flex; height: 18px; margin: 6px 0 5px; background: var(--linie2); border-radius: 4px; overflow: hidden; }
.bbalken i { display: block; height: 100%; transition: width .45s ease; }
.bsorten { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--tinte2); font-variant-numeric: tabular-nums; }
.zeitachse { position: relative; height: 22px; margin-left: 92px; border-bottom: 1px solid var(--linie); }
.zeitachse .sch { position: absolute; top: 0; font-size: 12px; color: var(--tinte3); padding-left: 4px; border-left: 1px solid var(--linie); height: 22px; white-space: nowrap; }
.bahn { display: flex; align-items: stretch; border-bottom: 1px solid var(--linie2); }
.bname { width: 92px; flex: none; display: flex; flex-direction: column; justify-content: center; padding: 10px 0; font-size: 14px; }
.bname b { color: var(--struktur); }
.bname span { font-size: 12px; color: var(--tinte3); }
.spur2 { position: relative; flex: 1; min-height: 64px; background: repeating-linear-gradient(90deg, transparent 0 calc(33.333% - 1px), var(--linie) calc(33.333% - 1px) 33.333%); }
.block { position: absolute; top: 12px; bottom: 12px; border: 0; border-radius: 3px; cursor: pointer; padding: 0; box-shadow: inset -1px 0 0 rgba(255,255,255,.7); color: #102C1D; font: 600 11px/1 'Geist', sans-serif; overflow: hidden; }
.block span { display: block; transform: rotate(-90deg); white-space: nowrap; }
.block:hover, .block.an { outline: 3px solid var(--struktur); outline-offset: 1px; z-index: 2; }
.block.spaet { box-shadow: inset 0 -5px 0 var(--warn); }
.sortenlegende { flex-wrap: wrap; white-space: normal; gap: 4px 10px; }
.sortenlegende span { display: inline-flex; align-items: center; }
.klein2 { font-size: 14px; margin-top: 10px; }
.warnt { color: var(--warn); }
.vergleich td.an { background: var(--lime-hell); font-weight: 650; color: var(--struktur); }

/* Rueckverfolgung */
.rueckgrid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }
.schmelzliste { list-style: none; margin: 0; padding: 0; max-height: max(260px, calc(100vh - 290px)); overflow: auto; }
.tabrolle { overflow-x: auto; }
.schmelzliste button { width: 100%; display: grid; grid-template-columns: 18px 58px 1fr auto; align-items: center; gap: 6px; text-align: left; font: 14px/1.2 'Geist', sans-serif; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--linie2); background: #fff; color: var(--tinte); cursor: pointer; }
.schmelzliste button:hover { background: #F6F8F7; }
.schmelzliste button[aria-pressed="true"] { background: var(--lime-hell); }
.schmelzliste .zeit { color: var(--tinte3); font-variant-numeric: tabular-nums; }
.schmelzliste .leer { padding: 12px 6px; color: var(--tinte3); }
.kette { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.4fr) 28px minmax(0, 1fr); align-items: stretch; margin: 6px 0 14px; }
.glied { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid var(--linie2); border-radius: 8px; font-size: 14px; }
.glied > b { font: 700 20px/1.1 'Archivo', sans-serif; color: var(--struktur); }
.pfeil { position: relative; }
.pfeil::before { content: ''; position: absolute; left: 4px; right: 8px; top: 50%; height: 2px; background: var(--struktur); }
.pfeil::after { content: ''; position: absolute; right: 4px; top: calc(50% - 5px); border: 6px solid transparent; border-left-color: var(--struktur); border-right: 0; }
.ana { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 8px; font-variant-numeric: tabular-nums; }
.ana span { display: flex; justify-content: space-between; gap: 4px; }
.ana i { font-style: normal; font-weight: 650; color: var(--struktur); }
.klein3 { display: block; font-size: 12px; color: var(--tinte3); }
.spurtab td { vertical-align: top; }
.spurtab tr.treffer td { background: var(--lime-hell); }
.ofen svg { width: 100%; height: auto; display: block; margin-top: 6px; }
.tiegelgruppe { transition: transform .8s ease; transform-origin: 284px 334px; transform-box: view-box; }
.tiegelgruppe.kipp { transform: rotate(10deg); }
.ofen rect.neu { animation: fallen .7s ease-in both; }
@keyframes fallen { from { transform: translateY(-120px); opacity: 0; } to { transform: none; opacity: 1; } }
.ofentext { margin: 6px 0 0; text-align: center; font-weight: 600; color: var(--struktur); }

.ablauf { min-height: 0; }
.schritte { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; counter-reset: s; }
.schritte li { counter-increment: s; }
.schritte button { font: 600 14px/1 'Geist', sans-serif; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; min-height: 38px; border-radius: 20px; border: 1px solid var(--linie); background: #fff; color: var(--tinte2); cursor: pointer; }
.schritte button::before { content: counter(s); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--linie2); color: var(--tinte2); font-size: 12px; }
.schritte li.war button { border-color: #A9C796; color: var(--struktur); }
.schritte li.war button::before { content: '✓'; background: var(--lime-hell); color: var(--lime-tief); }
.schritte li.jetzt button { background: var(--struktur); border-color: var(--struktur); color: #fff; }
.schritte li.jetzt button::before { background: var(--lime); color: var(--struktur); }
.schritte button:disabled { cursor: default; color: var(--tinte3); opacity: .6; }
.rechnen { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 24px; }
.teil { display: flex; flex-direction: column; min-width: 0; }
.teil h2 { font-size: 17px; }
.dyn { max-width: 860px; }
.aktion { display: flex; justify-content: flex-end; gap: 10px; margin-top: auto; padding-top: 14px; }

/* Gattierungstabelle */
#einsatz { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
#einsatz th, #einsatz td { padding: 4px 4px; border-bottom: 1px solid var(--linie2); }
#einsatz thead th { font-size: 12px; font-weight: 600; color: var(--tinte3); text-align: left; border-bottom: 1px solid var(--linie); white-space: nowrap; }
#einsatz thead th.r { text-align: right; }
#einsatz tbody th { text-align: left; font-weight: 500; white-space: nowrap; }
#einsatz tbody tr.zusatz th { color: var(--tinte2); }
td.preis { width: 76px; }
td.preis input { width: 70px; font: inherit; text-align: right; padding: 3px 6px; border: 1px solid var(--linie); border-radius: 5px; background: #FAFBFA; color: var(--tinte); }
td.kg { width: 24%; text-align: right; }
td.kg .wert { display: block; font-weight: 600; }
td.kg.fest .wert { color: var(--fest-tief); }
td.kg.rechner .wert { color: var(--lime-tief); }
td.kg .balken { display: block; height: 5px; background: var(--linie2); border-radius: 3px; margin-top: 2px; overflow: hidden; direction: rtl; }
td.kg .balken i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .45s ease; }
td.kg.fest .balken i { background: var(--fest); }
td.kg.rechner .balken i { background: var(--lime); }
#einsatz tfoot th { text-align: left; font-weight: 600; padding-top: 8px; border-bottom: 0; }
#einsatz tfoot td { padding-top: 8px; border-bottom: 0; font-size: 18px; white-space: nowrap; }
#einsatz tfoot td.fest b { color: var(--fest-tief); }
#einsatz tfoot td.rechner b { color: var(--lime-tief); }

/* Chemie und Proben */
.chemie { display: flex; flex-direction: column; }
.el { display: grid; grid-template-columns: 30px minmax(0, 1fr) 84px; column-gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--linie2); }
.el .sym { grid-row: 1 / 3; font-size: 17px; font-weight: 650; color: var(--struktur); }
.el .spur { position: relative; height: 22px; background: linear-gradient(var(--linie), var(--linie)) center / 100% 2px no-repeat; }
.el .fenster { position: absolute; top: 2px; bottom: 2px; background: var(--fenster); border-left: 2px solid #A9C796; border-right: 2px solid #A9C796; }
.el .m { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; transition: left .45s ease; }
.el .m.fest { background: #fff; border: 3px solid var(--fest); }
.el .m.rechner { background: var(--lime); box-shadow: 0 0 0 2px #fff; width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.el .m.mess { background: var(--struktur); box-shadow: 0 0 0 2px #fff; width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.el.warn .m.mess { background: var(--warn); }
.el .werte { grid-row: 1 / 3; grid-column: 3; display: flex; flex-direction: column; text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; line-height: 1.25; }
.el .werte .fest { color: var(--fest-tief); }
.el .werte .rechner { color: var(--lime-tief); font-weight: 650; }
.el .werte .mess { font-size: 16px; font-weight: 650; color: var(--struktur); }
.el .grenze { grid-column: 2; font-size: 12px; color: var(--tinte3); font-variant-numeric: tabular-nums; }
.probe .el { grid-template-columns: 30px minmax(0, 1fr) 70px 110px; }
.probe .el .stand { grid-row: 1 / 3; grid-column: 4; font-size: 14px; color: var(--lime-tief); font-weight: 600; }
.probe .el.warn .stand { color: var(--warn); }

/* Listen am Ofen */
.liste { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.liste th, .liste td { padding: 6px 6px; border-bottom: 1px solid var(--linie2); }
.liste thead th { font-size: 12px; font-weight: 600; color: var(--tinte3); text-align: left; border-bottom: 1px solid var(--linie); }
.liste thead th.r { text-align: right; }
.liste tbody th { text-align: left; font-weight: 500; }
.liste .trenner th { font-size: 12px; font-weight: 600; color: var(--tinte3); padding-top: 12px; }
.liste .waage input { width: 86px; font: inherit; font-weight: 600; text-align: right; padding: 4px 6px; border: 1px solid var(--linie); border-radius: 5px; background: #FAFBFA; }
.liste td.neu b { color: var(--lime-tief); }
.liste td.abw { color: var(--tinte3); width: 70px; }
.liste .leise th, .liste .leise td { color: var(--tinte3); }
.liste tfoot th, .liste tfoot td { border-bottom: 0; padding-top: 10px; font-size: 17px; }
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 4px; }
.kachel { border: 1px solid var(--linie2); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.kachel span { font-size: 13px; color: var(--tinte3); }
.kachel b { font-size: 30px; line-height: 1.1; font-weight: 700; }
.kachel.rechner b { color: var(--lime-tief); }
.kachel.fest b { color: var(--fest-tief); }
.kachel.gross2 { background: var(--lime-hell); border-color: #D3E6B0; }
.kachel.gross2 b { color: var(--struktur); }
.kachel em { font-style: normal; font-size: 14px; color: var(--tinte2); }

/* Auswertung */
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 32px; align-items: start; }
.gross { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 14px; padding: 6px 0 10px; }
.gross .label { grid-column: 1 / 3; font-size: 13px; color: var(--tinte3); }
.gross .zahl { font-size: 48px; line-height: 1.1; font-weight: 700; color: var(--struktur); letter-spacing: -0.02em; white-space: nowrap; }
.gross .zahl b { font-weight: 700; }
.gross .neben { font-size: 15px; color: var(--tinte2); }
.vergleich { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.vergleich th, .vergleich td { padding: 7px 4px; border-bottom: 1px solid var(--linie2); }
.vergleich thead th { font-size: 12px; font-weight: 600; color: var(--tinte3); border-bottom: 1px solid var(--linie); }
.vergleich thead th.fest { color: var(--fest-tief); }
.vergleich thead th.rechner { color: var(--lime-tief); }
.vergleich tbody th { text-align: left; font-weight: 500; }
.vergleich td { width: 25%; }
.kurvenbox { margin: 6px 0 0; }
.kurvenbox figcaption { font-size: 13px; color: var(--tinte3); margin-bottom: 4px; }
.kurvenbox .punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--tinte3); margin: 0 3px 0 10px; }
#kurve { width: 100%; height: auto; display: block; }
#kurve .gitter { stroke: var(--linie2); stroke-width: 1; }
#kurve .ach { fill: var(--tinte3); font: 11px 'Geist', sans-serif; }
#kurve .lin { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
#kurve .lin.fest { stroke: var(--fest); }
#kurve .lin.rechner { stroke: var(--lime); }
#kurve .nach { fill: #fff; stroke-width: 2; }
#kurve .nach.fest { stroke: var(--fest-tief); }
#kurve .nach.rechner { stroke: var(--lime-tief); }
.jahr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--linie2); }
.jahr label { font-weight: 600; }
.jahr input { width: 100px; font: inherit; text-align: right; padding: 6px 8px; border: 1px solid var(--linie); border-radius: 5px; background: #FAFBFA; }
.jahr .einheit { color: var(--tinte3); }
.jahr .ergebnis { margin-left: auto; font-size: 20px; color: var(--struktur); font-variant-numeric: tabular-nums; }

.fuss { max-width: 1680px; margin: 0 auto; padding: 8px 28px 18px; font-size: 12px; color: var(--tinte3); }
.fuss a { color: var(--tinte2); }
#fehler { color: var(--warn); font-size: 14px; padding-bottom: 0; }

@media (max-width: 1000px) { .unter { display: none; } }
/* Beamer 1280 x 720 */
@media (min-width: 1101px) and (max-height: 800px) {
  .kopf { padding: 10px 28px; }
  .ansichtflaeche { padding-top: 10px; }
  .gattieren { gap: 14px; }
  .leiste { margin-bottom: 8px; }
  .wahl button { min-height: 34px; padding: 7px 10px; }
  .karte { padding: 12px 16px 10px; }
  .schritte { margin-bottom: 8px; }
  #einsatz th, #einsatz td { padding: 2px 4px; }
  td.preis input { padding: 2px 6px; }
  .el { padding: 3px 0; }
  .klein { padding-top: 4px; }
  .aktion { padding-top: 8px; }
  .liste th, .liste td { padding: 4px 6px; }
  .bedarf { padding: 5px 0; }
  .karte > header, .teilkopf { padding-bottom: 6px; margin-bottom: 4px; }
  .bbalken { margin: 4px 0 3px; height: 14px; }
  .spur2 { min-height: 54px; }
  .gross { padding: 2px 0 6px; }
  .vergleich th, .vergleich td { padding: 4px 4px; }
  .kurvenbox { margin-top: 2px; }
  .fuss { padding-top: 4px; padding-bottom: 8px; }
}
@media (max-width: 1240px) {
  .rechnen { grid-template-columns: minmax(0, 1fr); }
  .plangrid { grid-template-columns: minmax(0, 1fr); }
  .plangrid > .karte:first-child { grid-row: auto; }
  .kette { grid-template-columns: minmax(0, 1fr); }
  .pfeil { height: 18px; }
  .pfeil::before { left: 50%; right: auto; top: 0; bottom: 6px; width: 2px; height: auto; }
  .pfeil::after { left: calc(50% - 5px); right: auto; top: auto; bottom: 0; border: 6px solid transparent; border-top-color: var(--struktur); border-bottom: 0; }
}
@media (max-width: 1100px) {
  .gattieren { grid-template-columns: 230px minmax(0, 1fr); }
  .zwei { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .ansichtflaeche { padding: 12px 12px 6px; }
  .rueckgrid { grid-template-columns: minmax(0, 1fr); }
  .schmelzliste { max-height: 260px; }
  .suche { margin-left: 0; width: 100%; }
  .suche input { flex: 1; width: auto; }
  .gattieren { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ofen svg { max-width: 260px; margin: 0 auto; }
  .kacheln { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .kopf { padding: 12px 16px; }
  .ansicht { flex-wrap: wrap; }
  .wahl button, .ansicht button, .schritte button { min-height: 44px; }
  .suche input { font-size: 16px; min-height: 44px; }
  .zeitachse { margin-left: 64px; }
  .bname { width: 64px; }
  .zeitachse .sch { font-size: 0; }
  .ana { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spurtab { font-size: 13px; }
  td.preis input, .jahr input, .liste .waage input { font-size: 16px; min-height: 44px; }
  .knopf { min-height: 44px; }
  .knopf.primaer { min-width: 0; flex: 1; }
  .link { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .karte { padding: 14px 12px 12px; }
  td.preis { width: 64px; } td.preis input { width: 60px; }
  #einsatz tbody th { white-space: normal; }
  .probe .el { grid-template-columns: 26px minmax(0, 1fr) 58px 76px; column-gap: 8px; }
  .gross .zahl { font-size: 36px; }
  .fuss { padding: 8px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Rechenweg */
.rechenweg { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); gap: 14px; }
.rechnung { font-size: 13.5px; }
.rechnung th, .rechnung td { padding: 5px 5px; white-space: nowrap; }
.datenliste { font-size: 14px; }
.datenliste th, .datenliste td { padding: 6px 5px; }
.rechnung tbody tr:not(.genutzt) th, .rechnung tbody tr:not(.genutzt) td { color: var(--tinte3); }
.rechnung .null { color: var(--linie); }
.rechnung td.loesung, .rechnung th.loesung { background: var(--lime-hell); }
.rechnung tbody tr.genutzt td.loesung b { color: var(--lime-tief); }
.rechnung tfoot th, .rechnung tfoot td { border-bottom: 0; font-size: 14px; padding-top: 8px; }
.rechnung .fensterzeile th, .rechnung .fensterzeile td { border-top: 2px solid var(--struktur); color: var(--struktur); font-weight: 600; }
.rechnung .mischzeile td { color: var(--lime-tief); font-weight: 650; }
.klein3.inl { display: inline; margin-left: 4px; }
.datenliste th, .datenliste td { vertical-align: top; }
.datenliste tbody th { font-weight: 600; color: var(--struktur); }
@media (max-width: 1240px) { .rechenweg { grid-template-columns: minmax(0, 1fr); } }

/* Fuehrung */
.fuehrung { max-width: 1180px; margin: 0 auto; padding: 22px 28px 16px; min-height: 540px; }
.f-kopf { border-bottom: 2px solid var(--struktur); padding-bottom: 12px; margin-bottom: 18px; }
.f-nr { font-size: 13px; font-weight: 600; color: var(--lime-tief); }
.fuehrung h2 { font-size: 27px; line-height: 1.25; margin: 4px 0 0; }
.f-bild { min-height: 250px; }
.f-text { font-size: 19px; line-height: 1.5; color: var(--tinte2); max-width: 900px; margin: 20px 0 0; }
.f-zeile { display: grid; grid-template-columns: 140px minmax(0, 1fr) 130px; align-items: center; gap: 14px; margin: 14px 0; }
.f-name { font-weight: 600; font-size: 17px; }
.f-name.fest, .f-eur.fest { color: var(--fest-tief); }
.f-name.rechner, .f-eur.rechner { color: var(--lime-tief); }
.f-eur { font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.f-balken { display: flex; height: 44px; border-radius: 6px; overflow: hidden; background: var(--linie2); }
.f-balken i { display: block; height: 100%; box-shadow: inset -2px 0 0 #fff; }
.f-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 0 154px; font-size: 14px; color: var(--tinte2); }
.f-kreis { display: flex; align-items: stretch; gap: 0; margin-top: 10px; }
.f-schritt { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--linie); border-radius: 10px; background: #fff; }
.f-schritt b { font: 650 22px/1.2 'Archivo', sans-serif; color: var(--struktur); }
.f-schritt span:last-child { font-size: 15px; color: var(--tinte2); }
.f-zahl { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--struktur); font-weight: 700; }
.f-pfeil { width: 34px; flex: none; position: relative; }
.f-pfeil::before { content: ''; position: absolute; left: 6px; right: 10px; top: 50%; height: 2px; background: var(--struktur); }
.f-pfeil::after { content: ''; position: absolute; right: 4px; top: calc(50% - 6px); border: 7px solid transparent; border-left-color: var(--struktur); border-right: 0; }
.f-zurueckpfeil { margin: 14px 0 0 auto; width: calc(50% - 17px); text-align: center; font-size: 14px; color: var(--tinte2); border: 2px dashed var(--fest); border-top: 0; border-radius: 0 0 12px 12px; padding: 10px 8px 8px; }
.f-zwei { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.f-mini { font-size: 15px; }
.f-mini tfoot th, .f-mini tfoot td { border-top: 2px solid var(--struktur); border-bottom: 0; color: var(--struktur); }
.f-daten { display: flex; flex-direction: column; border: 1px solid var(--linie2); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.f-daten > b { color: var(--struktur); margin-bottom: 6px; }
.f-daten div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--linie2); }
.f-daten div span:last-child { color: var(--tinte3); text-align: right; }
.f-kacheln .kachel b { font-size: 36px; }
@media (max-width: 900px) {
  .fuehrung { padding: 16px 14px 12px; }
  .fuehrung h2 { font-size: 21px; }
  .f-text { font-size: 16px; }
  .f-zeile { grid-template-columns: 1fr; gap: 6px; }
  .f-eur { text-align: left; }
  .f-legende { margin-left: 0; }
  .f-kreis { flex-direction: column; }
  .f-pfeil { height: 24px; width: auto; }
  .f-pfeil::before { left: 50%; right: auto; top: 2px; bottom: 8px; width: 2px; height: auto; }
  .f-pfeil::after { left: calc(50% - 6px); right: auto; top: auto; bottom: 0; border: 7px solid transparent; border-top-color: var(--struktur); border-bottom: 0; }
  .f-zurueckpfeil { width: auto; }
  .f-zwei { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1101px) and (max-height: 800px) {
  .fuehrung { padding: 16px 24px 12px; min-height: 0; }
  .fuehrung h2 { font-size: 24px; }
  .f-bild { min-height: 0; }
  .f-text { margin-top: 14px; font-size: 17px; }
}
