:root {
  --bg: #f3f4f6; --karte: #fff; --text: #1d232b; --gedimmt: #6b7480; --linie: #dde1e6;
  --kopf: #1f2a36; --kopf-text: #fff; --akzent: #f2c200; --akzent-text: #1d232b;
  --primaer: #1f5fa8; --primaer-text: #fff; --gefahr: #c62828; --ok: #2e7d32; --warn: #d97706;
  --rund: 10px; --g-name: 7.2rem; --g-tag: 2rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b; --karte: #1c232b; --text: #e7eaee; --gedimmt: #9aa4af; --linie: #2e3843;
    --kopf: #0c1015; --primaer: #4b8fe0; --gefahr: #ef5350; --ok: #66bb6a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--primaer); }
h1 { font-size: 1.45rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
h3 { font-size: 1rem; margin: 0 0 .4rem; }
p { margin: .4rem 0; }

/* Kopf */
.kopf { background: var(--kopf); color: var(--kopf-text); display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; padding: .6rem max(1rem, env(safe-area-inset-right)) .6rem max(1rem, env(safe-area-inset-left));
  padding-top: max(.6rem, env(safe-area-inset-top)); position: sticky; top: 0; z-index: 10; }
.marke { color: inherit; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.blitz { width: 1.4rem; height: 1.4rem; border-radius: 6px; background: var(--akzent) url(icon.svg) center/cover; display: inline-block; }
.konto { display: flex; align-items: center; gap: .6rem; font-size: .9rem; min-width: 0; }
.konto-name { color: var(--kopf-text); opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.konto form { margin: 0; }
button.link { background: none; border: 0; color: var(--akzent); padding: .3rem; font: inherit; cursor: pointer; }
.hauptnav { background: var(--kopf); display: flex; gap: .2rem; padding: 0 .6rem .4rem; overflow-x: auto; }
.hauptnav a { color: #c9d1da; text-decoration: none; padding: .35rem .7rem; border-radius: 999px; font-size: .92rem; white-space: nowrap; }
.hauptnav a.aktiv { background: rgba(255,255,255,.12); color: #fff; }

main { max-width: 1200px; margin: 0 auto; padding: 1rem 1rem calc(2rem + env(safe-area-inset-bottom)); }

/* Projektkopf + Tabs */
.projektkopf h1 { margin: .2rem 0 0; }
.projektkopf .unter { color: var(--gedimmt); font-size: .92rem; }
.zurueck { font-size: .9rem; text-decoration: none; }
.tabs { display: flex; gap: .3rem; overflow-x: auto; margin: .8rem -1rem 1rem; padding: 0 1rem .2rem; border-bottom: 1px solid var(--linie);
  scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: .55rem .8rem; text-decoration: none; color: var(--gedimmt); white-space: nowrap; border-bottom: 3px solid transparent; font-weight: 500; }
.tabs a.aktiv { color: var(--text); border-bottom-color: var(--akzent); }
.zahl { background: var(--gefahr); color: #fff; border-radius: 999px; font-size: .72rem; padding: .05rem .4rem; vertical-align: 1px; }

/* Karten & Raster */
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund); padding: 1rem; margin-bottom: 1rem; }
.karte.schmal { max-width: 560px; }
.raster { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.raster > .karte { margin-bottom: 0; }
.raster + * { margin-top: 1rem; }
@media (min-width: 700px) { .raster { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }
@media (min-width: 900px) { .raster.zwei-spalten { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.raster.drei { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 899px) { .liste-zuerst > form { order: 2; } }
.kennzahl .wert { font-size: 1.8rem; font-weight: 700; }
.projektkarte { display: block; color: inherit; text-decoration: none; transition: border-color .15s; }
.projektkarte:hover { border-color: var(--primaer); }
.zeile { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.leiste { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.klein { font-size: .86rem; }
.gedimmt { color: var(--gedimmt); }
.warn { color: var(--warn); font-weight: 600; }

.status { font-size: .75rem; padding: .15rem .55rem; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.s-geplant { background: #e3ecf8; color: #1f5fa8; }
.s-laeuft { background: #fff3c4; color: #7a5c00; }
.s-abgeschlossen { background: #e3e7eb; color: #5b6570; }
.marke-klein { font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--linie); color: var(--gedimmt); white-space: nowrap; }
.marke-klein.warn { border-color: var(--warn); }
.marke-klein.extern { border-color: #7e57c2; color: #6a46b0; }

/* Hinweise */
.hinweis { padding: .7rem 1rem; border-radius: var(--rund); margin-bottom: 1rem; }
.hinweis.ok { background: #e6f4ea; color: #1e5631; }
.hinweis.fehler { background: #fdecea; color: #8a1c1c; }

/* Formulare */
label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .8rem; }
input, select, textarea { display: block; width: 100%; margin-top: .25rem; font: inherit; font-size: 16px; color: var(--text);
  background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: .6rem .7rem; min-height: 2.75rem; }
textarea { resize: vertical; min-height: 4.5rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primaer); outline-offset: 0; border-color: transparent; }
input[type=color] { padding: .15rem; width: 3rem; min-height: 2.5rem; }
input[type=checkbox] { display: inline; width: auto; min-height: 0; margin: 0 .3rem 0 0; }
.zwei, .drei { display: grid; gap: 0 .8rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .zwei { grid-template-columns: 1fr 1fr; } .drei { grid-template-columns: 1fr 1fr 1fr; } }
button, .knopf { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; font: inherit; font-weight: 600;
  font-size: .95rem; padding: .6rem 1rem; min-height: 2.75rem; border-radius: 8px; border: 1px solid var(--linie);
  background: var(--karte); color: var(--text); cursor: pointer; text-decoration: none; }
button.primaer, .knopf.primaer { background: var(--primaer); color: var(--primaer-text); border-color: var(--primaer); }
button.gefahr { color: var(--gefahr); border-color: var(--gefahr); background: transparent; }
button.klein, .knopf.klein { font-size: .85rem; padding: .35rem .7rem; min-height: 2.2rem; }
button:disabled { opacity: .6; }
.breit { width: 100%; }
.knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.knoepfe form { margin: 0; }
.knoepfe.senkrecht { flex-direction: column; align-items: stretch; }
.knoepfe.senkrecht button { width: 100%; }
.inline-formular { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; margin-top: .8rem; }
.inline-formular select { flex: 1 1 12rem; margin: 0; }
.inline-formular select[name=rolle] { flex: 0 1 9rem; }
.haken { display: inline-flex; align-items: center; margin: 0; font-weight: 400; }

/* Mikrofon */
.mic-huelle { position: relative; display: block; }
.mic-huelle input, .mic-huelle textarea { padding-right: 3rem; }
.mic { position: absolute; right: .3rem; top: .55rem; min-height: 2.1rem; width: 2.4rem; padding: 0; border: 0; background: transparent; font-size: 1.15rem; }
.mic.an { background: var(--gefahr); border-radius: 50%; animation: puls 1s infinite; }
@keyframes puls { 50% { opacity: .5; } }

/* Listen */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { padding: .55rem 0; border-bottom: 1px solid var(--linie); }
.liste > li:last-child { border-bottom: 0; }
.teamzeile, .materialzeile, .punktzeile { display: flex; justify-content: space-between; gap: .6rem; align-items: center; flex-wrap: wrap; }
.aktionen { display: flex; gap: .35rem; flex-wrap: wrap; }
.aktionen form { margin: 0; }
.menge { font-weight: 700; }
.punktzeile.erledigt strong { text-decoration: line-through; color: var(--gedimmt); }
.punkt { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; background: #888; }
dl.info { display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; margin: 0; }
dl.info dt { color: var(--gedimmt); font-size: .9rem; }
dl.info dd { margin: 0; }
.notiz { white-space: normal; background: var(--bg); padding: .6rem; border-radius: 8px; }
.eintrag .besonders { background: #fff7e0; color: #5c4400; padding: .5rem .6rem; border-radius: 8px; }
@media (prefers-color-scheme: dark) { .eintrag .besonders { background: #3a3014; color: #f5e2a8; } }
.unterbereich { margin-top: .8rem; }
.unterbereich > summary { color: var(--primaer); font-weight: 600; padding: .4rem 0; }
.unterbereich[open] > summary { margin-bottom: .6rem; }
.empfaenger { border: 1px solid var(--linie); border-radius: 8px; padding: .6rem .8rem; margin: 0 0 .8rem; }
.empfaenger legend { font-size: .9rem; font-weight: 500; padding: 0 .3rem; }
.empfaenger label { display: flex; align-items: flex-start; gap: .4rem; font-weight: 400; margin: .35rem 0; }
.empfaenger input[type=checkbox] { margin-top: .25rem; width: 1.1rem; height: 1.1rem; }
.gruppe-titel { font-size: .8rem; font-weight: 700; color: var(--gedimmt); text-transform: uppercase; letter-spacing: .03em; margin: .6rem 0 .1rem; }
.gruppe-titel:first-of-type { margin-top: .2rem; }
.ok-text { color: var(--ok); margin-top: .3rem; }
.eintrag.entwurf { border-style: dashed; }
.eintrag .warn { margin-top: .3rem; }
.s-entwurf { background: #fff3c4; color: #7a5c00; }
.s-fertig { background: #e6f4ea; color: #1e5631; }
details > summary { cursor: pointer; list-style: none; }
details > summary h2 { display: inline; }
details > summary::before { content: "▸ "; color: var(--gedimmt); }
details[open] > summary::before { content: "▾ "; }

/* Tabellen */
.tabelle-huelle { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabelle th, .tabelle td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-size: .8rem; color: var(--gedimmt); font-weight: 600; }
.zahlspalte { text-align: right !important; }
.warnzeile td { background: rgba(217, 119, 6, .1); }
.nur-breit { display: none; }
@media (min-width: 700px) { .nur-breit { display: table-cell; } }

/* Balkenplan */
.kalendernav { margin-bottom: .6rem; justify-content: flex-start; }
.materialform .zwei { grid-template-columns: 1fr 1fr; }
.kalendernav a.aktiv { font-weight: 700; color: var(--text); }
.gantt-huelle { overflow-x: auto; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund); margin-bottom: .6rem; -webkit-overflow-scrolling: touch; }
.gantt { display: grid; grid-template-columns: var(--g-name) repeat(42, var(--g-tag)); grid-auto-rows: minmax(2.3rem, auto); min-width: max-content; position: relative; }
.g-ecke, .g-name, .g-gruppe { position: sticky; left: 0; background: var(--karte); z-index: 2; border-right: 1px solid var(--linie); }
.g-ecke { grid-column: 1; z-index: 3; }
.g-tag { text-align: center; font-size: .72rem; color: var(--gedimmt); border-left: 1px solid var(--linie); padding: .15rem 0; position: relative; line-height: 1.15; }
.g-tag .wt, .g-tag .nr { display: block; }
.g-tag .nr { font-weight: 600; color: var(--text); }
.g-tag .kw { position: absolute; top: -.05rem; left: .15rem; font-size: .6rem; color: var(--primaer); white-space: nowrap; }
.g-tag.we { background: rgba(127,127,127,.12); }
.g-tag.heute { background: var(--akzent); }
.g-tag.heute .nr, .g-tag.heute .wt { color: #1d232b; }
.g-tag .kw ~ .wt { margin-top: .55rem; }
.g-name { grid-column: 1; padding: .3rem .5rem; font-size: .85rem; overflow: hidden; border-top: 1px solid var(--linie); }
.g-name > span { display: block; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-name { white-space: nowrap; text-overflow: ellipsis; }
.g-gruppe { grid-column: 1 / -1; position: sticky; font-weight: 700; padding: .45rem .5rem .2rem; border-top: 2px solid var(--linie); font-size: .9rem; border-right: 0; background: transparent; }
.g-balken { margin: .35rem 1px; border-radius: 6px; font-size: .75rem; font-weight: 600; padding: .25rem .4rem; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis; text-decoration: none; color: #fff; background: #888; border-top: 1px solid transparent; align-self: center; }
.g-balken.offen-links { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.g-balken.offen-rechts { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.g-leer { grid-column: 1 / -1; padding: 1rem; color: var(--gedimmt); }
.legende { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .82rem; margin: .2rem 0 1rem; color: var(--gedimmt); }
@media (min-width: 700px) { :root { --g-name: 13rem; --g-tag: 2.1rem; } }

/* Gewerke */
.gewerkzeile { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; flex-wrap: wrap; }
.gewerkzeile input[name=name] { flex: 1 1 10rem; margin: 0; }
.gewerkzeile input[type=color] { margin: 0; }

/* Fotos */
.dateiwahl { border: 2px dashed var(--linie); border-radius: var(--rund); padding: 1.2rem; text-align: center; cursor: pointer; }
.dateiwahl input { border: 0; padding: 0; min-height: 0; margin: 0 auto .4rem; max-width: 100%; }
.dateiwahl span { font-weight: 600; color: var(--primaer); }
.vorschau { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.vorschau img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 6px; }
.fortschritt { margin-top: .6rem; font-weight: 600; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .4rem; }
.kachel { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--bg); }
.kachel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.schnellzugriff { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.schnellzugriff .knopf { flex: 1 1 10rem; }
.scan-knopf { padding: 1.6rem 1rem; }
.scan-knopf input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scan-knopf span { font-size: 1.15rem; }
.scan-seiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); gap: .5rem; margin-bottom: .8rem; }
.scan-seite { position: relative; aspect-ratio: 3 / 4; border: 1px solid var(--linie); border-radius: 6px; overflow: hidden; background: #fff; }
.scan-seite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-seite .nr { position: absolute; left: .3rem; bottom: .3rem; background: var(--kopf); color: #fff; font-size: .75rem; padding: 0 .4rem; border-radius: 999px; }
.scan-seite .weg { position: absolute; top: .2rem; right: .2rem; min-height: 0; width: 1.8rem; height: 1.8rem; padding: 0; border-radius: 50%; font-size: .8rem; }
.dateiwahl { position: relative; display: block; }
.fotoansicht img { max-width: 100%; max-height: 75vh; display: block; margin: .5rem auto; border-radius: 6px; }

@media print {
  .kopf, .hauptnav, .tabs, form, .knopf, button { display: none !important; }
  body { background: #fff; color: #000; }
  .karte { border: 0; padding: 0; }
}

/* Scan-Editor (Ecken prüfen) */
body.ohne-scroll { overflow: hidden; }
.scan-editor { position: fixed; inset: 0; z-index: 100; background: #0c1015; color: #fff; display: flex; flex-direction: column;
  padding: max(.6rem, env(safe-area-inset-top)) .6rem max(.6rem, env(safe-area-inset-bottom)); }
.scan-editor-kopf { padding: .3rem .4rem .6rem; }
.scan-buehne { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.scan-buehne canvas { max-width: 100%; max-height: 100%; border-radius: 4px; }
.scan-griff { position: absolute; width: 2.6rem; height: 2.6rem; margin: -1.3rem 0 0 -1.3rem; border-radius: 50%;
  border: 3px solid #f2c200; background: rgba(242, 194, 0, .25); touch-action: none; cursor: grab; }
.scan-editor-fuss { padding-top: .6rem; justify-content: center; }
.scan-editor-fuss button { flex: 1 1 8rem; }

.wetter-zeile { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: -.25rem 0 .75rem; }
.wetter-zeile button { font-size: .9rem; }
.empfaenger label.weitere { flex-direction: column; align-items: stretch; gap: .25rem; margin-top: .7rem; font-weight: 500; }
/* Logo */
.logo-platte { background: #fff; border-radius: 6px; padding: .15rem .4rem; display: inline-flex; align-items: center; }
.logo { height: 2.1rem; width: auto; display: block; }
.marke-text { font-weight: 600; opacity: .9; }
.login-logo { max-width: 26rem; margin: 1.5rem auto 1rem; background: #fff; border-radius: 12px; padding: 1rem 1.4rem; }
.login-logo img { width: 100%; height: auto; display: block; }
@media (max-width: 380px) { .marke-text { display: none; } }
/* Archiv */
form.inline { display: inline-block; margin: 0 0 0 .4rem; }
.hinweis.archiv { background: var(--bg); border: 1px dashed var(--gedimmt); color: inherit; display: flex; flex-wrap: wrap;
  gap: .6rem; align-items: center; justify-content: space-between; }
.hinweis.archiv form { margin: 0; }

/* Bautagebuch-Fotos */
.unsichtbar { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.tb-fotos label.knopf { position: relative; cursor: pointer; }
.tb-fotoliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .6rem; margin-bottom: .6rem; }
.tb-foto { display: flex; flex-direction: column; gap: .3rem; }
.tb-foto img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; background: var(--bg); }
.tb-foto input:not([type=checkbox]) { margin: 0; font-size: .9rem; }
.tb-fotos .tb-foto label { margin: 0; }
.tb-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .5rem; margin: .5rem 0; }
.tb-galerie a { text-decoration: none; color: inherit; font-size: .8rem; }
.tb-galerie img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; display: block; }
.weitere-personen { margin-top: .5rem; }
.weitere-personen summary { cursor: pointer; font-size: .9rem; color: var(--primaer); margin: .3rem 0; }

.projektkarte .projektnr { font-size: .9rem; color: var(--gedimmt); }
.projektkarte .projektnr strong { color: inherit; color: var(--text, inherit); }
.projektkarte .projektname { margin: .15rem 0 .1rem; font-size: 1.05rem; }

/* Balkenplan: Tageslinien bis unten */
.g-saeule { position: absolute; bottom: 0; border-left: 1px solid rgba(127,127,127,.18); pointer-events: none; z-index: 0; }
.g-saeule.wochenanfang { border-left-color: rgba(127,127,127,.45); }
.g-saeule.we { background: rgba(127,127,127,.08); }
.g-saeule.heute { background: rgba(242,194,0,.12); border-left: 1px solid rgba(242,194,0,.6); border-right: 1px solid rgba(242,194,0,.6); }
.g-balken { position: relative; z-index: 1; }
.g-name, .g-ecke { z-index: 2; }
.g-gruppe { z-index: 1; }
.g-gruppe > span { position: sticky; left: .5rem; }
.g-name { border-top-color: rgba(127,127,127,.25); }
.g-gruppe { position: relative; }
.tabelle .mitte { text-align: center; }
.rechte-tabelle input[type=checkbox] { width: 1.3rem; height: 1.3rem; }

/* Team-Auswahl im Projekt-Formular */
.team-wahl .team-zeile { display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  border-bottom: 1px solid var(--linie); padding: .15rem 0; }
.team-wahl .team-zeile:last-child { border-bottom: none; }
.team-wahl .team-zeile label { margin: .3rem 0; flex: 1; }
.team-wahl .team-zeile select { width: auto; min-width: 8.5rem; margin: 0; padding: .3rem .5rem; font-size: .9rem; }

/* Bautagebuch-Eingabe: nummerierte Abschnitte */
.tb-formular > h2 { margin-bottom: .2rem; }
.tb-abschnitt { border-top: 1px solid var(--linie); padding: 1.1rem 0 .4rem; margin-top: .9rem; }
.tb-abschnitt:first-of-type { border-top: none; margin-top: .2rem; padding-top: .6rem; }
.tb-abschnitt > h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; margin: 0 0 .8rem; }
.tb-abschnitt > h3 .nr { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem;
  border-radius: 50%; background: #c8050f; color: #fff; font-size: .85rem; font-weight: 700; flex: none; }
.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .7rem; }
.tb-abschnitt fieldset.empfaenger { border: none; padding: 0; margin: 0 0 .4rem; }
.tb-abschnitt fieldset.empfaenger > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tb-abschnitt .wetter-zeile { margin: 0 0 .4rem; }
.tb-abschnitt textarea { line-height: 1.5; }
.tb-leiste { position: sticky; bottom: 0; background: var(--karte); border-top: 1px solid var(--linie);
  margin: 1rem -1rem -1rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); border-radius: 0 0 var(--rund) var(--rund); z-index: 5; }
@media (max-width: 559px) { .tb-leiste { flex-wrap: nowrap; gap: .5rem; }
  .tb-leiste button, .tb-leiste .knopf { flex: 1 1 0; font-size: .85rem; padding: .45rem .5rem; line-height: 1.2; white-space: normal; } }
