/* iPhone-Stil (angelehnt an iOS: gruppierte Listen, große Titel, halbdurchsichtige Leisten) */
:root {
  --tint: #2f9e44; --tint-fl: rgba(47,158,68,.13); --hg: #f2f2f7; --karte: #fff; --feld: rgba(118,118,128,.12);
  --text: #000; --grau: rgba(60,60,67,.6); --linie: rgba(60,60,67,.22); --rot: #ff3b30; --rot-fl: rgba(255,59,48,.12);
  --gelb: #c77700; --gelb-fl: rgba(255,149,0,.15); --leiste: rgba(249,249,249,.86); --blatt: #f2f2f7;
  --blatt-feld: #fff; --haken: #c4c4c7; color-scheme: light;
}
/* Dunkel: gewählt – oder „Automatisch“ und das Handy steht auf dunkel */
:root[data-modus="dunkel"] {
  --tint: #30d158; --tint-fl: rgba(48,209,88,.16); --hg: #000; --karte: #1c1c1e; --feld: rgba(118,118,128,.24);
  --text: #fff; --grau: rgba(235,235,245,.6); --linie: rgba(84,84,88,.6); --rot: #ff453a; --rot-fl: rgba(255,69,58,.18);
  --gelb: #ff9f0a; --gelb-fl: rgba(255,159,10,.18); --leiste: rgba(22,22,24,.82); --blatt: #1c1c1e; --blatt-feld: #2c2c2e;
  --haken: #5a5a5e; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-modus]) {
    --tint: #30d158; --tint-fl: rgba(48,209,88,.16); --hg: #000; --karte: #1c1c1e; --feld: rgba(118,118,128,.24);
    --text: #fff; --grau: rgba(235,235,245,.6); --linie: rgba(84,84,88,.6); --rot: #ff453a; --rot-fl: rgba(255,69,58,.18);
    --gelb: #ff9f0a; --gelb-fl: rgba(255,159,10,.18); --leiste: rgba(22,22,24,.82); --blatt: #1c1c1e; --blatt-feld: #2c2c2e;
    --haken: #5a5a5e; color-scheme: dark;
  }
}
/* Warm: wie Papier, schont die Augen abends */
:root[data-modus="warm"] {
  --tint: #3d8b37; --tint-fl: rgba(61,139,55,.14); --hg: #f1e9dc; --karte: #fbf6ee; --feld: rgba(140,105,60,.12);
  --text: #3a2e22; --grau: rgba(90,68,45,.62); --linie: rgba(120,90,55,.2); --rot: #c8402f; --rot-fl: rgba(200,64,47,.12);
  --gelb: #a8640a; --gelb-fl: rgba(200,130,30,.16); --leiste: rgba(244,236,224,.88); --blatt: #f1e9dc; --blatt-feld: #fbf6ee;
  --haken: #c9b9a2; color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--hg); color: var(--text);
  font: 16px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.01em; }
body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
a { color: var(--tint); text-decoration: none; }

/* Kopf: schmal, halbdurchsichtig (Titel klein in einer Zeile) */
#kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  padding: calc(4px + env(safe-area-inset-top)) 12px 5px; background: var(--leiste);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--linie); }
#kopf h1 { flex: 1 1 0; order: 2; min-width: 0; margin: 0; font-size: 19px; font-weight: 700; line-height: 28px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopfknopf { order: 1; background: none; border: 0; color: var(--tint); padding: 0 4px 0 0; min-height: 28px;
  display: flex; align-items: center; }
.kopfknopf::before { content: "‹"; font-size: 30px; line-height: 26px; margin-top: -3px; font-weight: 300; }
#netz { order: 3; background: var(--gelb-fl); color: var(--gelb); border-radius: 10px; padding: 1px 8px;
  font-size: 12px; font-weight: 600; }
main { max-width: 700px; margin: 0 auto; padding: 8px 10px 16px; }

/* Leiste unten */
#leiste { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: flex; background: var(--leiste);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); }
#leiste a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 4px 2px 2px;
  color: #8e8e93; font-size: 10px; font-weight: 500; }
#leiste svg { width: 24px; height: 24px; }
#leiste a.an { color: var(--tint); }
#leiste a.an svg { stroke-width: 2.2; }
svg.sym { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Gruppierte Listen */
.karte { background: var(--karte); border-radius: 10px; padding: 2px 12px; margin: 0 0 10px; }
.karte > :first-child { margin-top: 8px; }
.karte > :last-child { margin-bottom: 8px; }
.karte > .zeile:first-child, .karte > a.zeile:first-child { margin-top: 0; }
.karte > .zeile:last-child { margin-bottom: 0; }
.karte h2 { margin: 8px 0 4px; font-size: 17px; font-weight: 700; }
.karte h3 { margin: 10px 0 4px; font-size: 12px; color: var(--grau); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
.zeile { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 7px 0; color: inherit;
  border-bottom: .5px solid var(--linie); }
.zeile:last-child { border-bottom: 0; }
.zeile .haupt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.zeile .klein, .klein { color: var(--grau); font-size: 14px; }
.zeile .rechts { text-align: right; white-space: nowrap; color: var(--grau); font-size: 14px; }
a.zeile::after, .zeile.tipp::after { content: ""; width: 8px; height: 8px; flex: 0 0 auto; margin-left: 2px;
  border: solid #c4c4c7; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.tipp { cursor: pointer; }
a.zeile:active, .tipp:active { opacity: .55; }
.gedimmt { opacity: .45; }
.leer { color: var(--grau); text-align: center; padding: 18px 8px; font-size: 14px; }
.tag-kopf { margin: 10px 0 0; font-size: 12px; color: var(--grau); text-transform: uppercase; letter-spacing: .02em; }

/* Kennzeichen */
.marke { display: inline-block; border-radius: 20px; padding: 2px 9px; font-size: 13px; font-weight: 600;
  background: var(--feld); color: var(--grau); }
.marke.gruen { background: var(--tint-fl); color: var(--tint); }
.marke.gelb { background: var(--gelb-fl); color: var(--gelb); }
.marke.rot { background: var(--rot-fl); color: var(--rot); }
.zahlen { display: flex; gap: 8px; }
.zahlen div { flex: 1; text-align: center; padding: 6px 2px; }
.zahlen b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.zahlen span { font-size: 12px; color: var(--grau); }
.plus { color: var(--tint); } .minus { color: var(--rot); }

/* Eingaben */
label { display: block; font-size: 12px; color: var(--grau); margin: 8px 0 3px; text-transform: uppercase; letter-spacing: .02em; }
input, select, textarea, button { font: inherit; color: var(--text); }
input, select, textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 9px;
  background: var(--feld); -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--grau) 50%), linear-gradient(135deg, var(--grau) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
select, input[type=date], input[type=time] { background-color: var(--feld); }
textarea { min-height: 76px; resize: vertical; }
input[type=time]::-webkit-calendar-picker-indicator { display: none; }
input[type=time] { padding: 8px; }
input::placeholder, textarea::placeholder { color: var(--grau); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--tint); outline-offset: -2px; }
input:disabled, select:disabled, textarea:disabled { opacity: .6; }
.reihe { display: flex; gap: 8px; }
.reihe > * { flex: 1; min-width: 0; }
.reihe > .schmal { flex: 0 0 92px; }
.posten { padding: 0 0 12px; margin-bottom: 12px; border-bottom: .5px solid var(--linie); }
.posten > input { margin-bottom: 8px; }

/* Häkchen rund wie iOS, Schalter */
input[type=checkbox] { width: 24px; height: 24px; min-height: 0; flex: 0 0 24px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--haken); background: transparent; margin: 0; cursor: pointer; display: grid; place-content: center; }
input[type=checkbox]:checked { background: var(--tint); border-color: var(--tint); }
input[type=checkbox]:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px); }
input.schalter { width: 51px; height: 31px; flex: 0 0 51px; border-radius: 16px; border: 0; background: var(--feld);
  position: relative; transition: background .2s; display: block; }
input.schalter::after, input.schalter:checked::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px;
  border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .2s; transform: none; }
input.schalter:checked { background: #34c759; }
input.schalter:checked::after { transform: translateX(20px); }
label.zeile { text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--text); margin: 0; }

/* Knöpfe */
button { min-height: 38px; padding: 7px 14px; border-radius: 10px; border: 0; background: var(--tint-fl); color: var(--tint);
  font-weight: 600; cursor: pointer; }
button:active { opacity: .6; }
button.haupt { background: var(--tint); color: #fff; min-height: 42px; }
button.gefahr { background: var(--rot-fl); color: var(--rot); }
button.breit { width: 100%; margin: 10px 0 0; }
main > button.breit:first-child, main > .monat + button.breit { margin: 0 0 10px; }
button:disabled { opacity: .45; }
button.x { min-height: 38px; padding: 0 12px; flex: 0 0 auto; background: var(--feld); color: var(--grau); }
.knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.karte .knoepfe { margin: 10px 0 8px; }
.knoepfe button { flex: 1; }
.rechts button { min-height: 32px; padding: 4px 12px; }
.monat { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.monat button { min-width: 38px; min-height: 32px; font-size: 22px; padding: 0 4px; background: none; }
.monat b { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }

/* Auswahl-Kapseln (Personen, Maschinen) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.chips label { margin: 0; position: relative; display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 18px;
  background: var(--feld); color: var(--text); font-size: 15px; text-transform: none; letter-spacing: 0; cursor: pointer; }
.chips label > input { position: absolute; opacity: 0; pointer-events: none; }
.chips label.an { background: var(--tint); color: #fff; }
.abstand { height: 10px; }
/* Kalender (wie Apple): schmale Steuerzeile, Wischfläche mit festem Kopf und fester Uhrzeit-Spalte */
.kal-leiste { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.kal-leiste .segmente { flex: 1; }
.kal-knopf { min-height: 30px; padding: 3px 9px; font-size: 14px; border-radius: 8px; flex: 0 0 auto; }
.kal-knopf.plus { font-size: 21px; line-height: 1; padding: 0 11px; background: var(--tint); color: #fff; }
.kal-rahmen { background: var(--karte); border-radius: 10px; overflow: hidden; margin: 0 -4px; }
.kal-scroll { overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
  scroll-padding-left: 42px; height: 60vh; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.kal-scroll.zieht { scroll-snap-type: none; }
.kal-flaeche { display: grid; grid-template-rows: 40px auto 1152px; width: max-content; position: relative; }
.kal-ecke, .kal-ecke2, .kal-zeiten { position: sticky; left: 0; background: var(--karte); z-index: 3; }
.kal-ecke { top: 0; z-index: 5; grid-row: 1; grid-column: 1; border-bottom: .5px solid var(--linie); }
.kal-ecke2 { top: 40px; z-index: 5; grid-row: 2; grid-column: 1; font-size: 9px; color: var(--grau); text-align: right; padding: 4px 4px 0 0;
  border-bottom: .5px solid var(--linie); }
.kal-zeiten { grid-row: 3; grid-column: 1; }
.kal-zeiten span { position: absolute; right: 4px; transform: translateY(-50%); font-size: 10px; color: var(--grau); }
.kal-tagkopf { grid-row: 1; position: sticky; top: 0; z-index: 2; min-height: 0; height: 40px; padding: 2px 0; border-radius: 0;
  background: var(--karte); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 400; border-bottom: .5px solid var(--linie); }
.kal-tagkopf span { font-size: 10px; color: var(--grau); text-transform: uppercase; line-height: 1.1; }
.kal-tagkopf b { font-size: 15px; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; text-align: center; }
.kal-tagkopf.heute b { background: var(--rot); color: #fff; }
.kal-scroll.tag .kal-tagkopf, .kal-scroll.tag .kal-ecke { display: none; }
.kal-scroll.tag .kal-flaeche { grid-template-rows: 0 auto 1152px; }
.kal-scroll.tag .kal-ganzzelle, .kal-scroll.tag .kal-ecke2 { top: 0; }
.kal-ganzzelle { grid-row: 2; position: sticky; top: 40px; z-index: 2; background: var(--karte); min-width: 0; padding: 2px 1px;
  border-bottom: .5px solid var(--linie); }
.kal-flaeche.ohne-ganz .kal-ganzzelle, .kal-flaeche.ohne-ganz .kal-ecke2 { display: none; }
.kal-chip { font-size: 11px; font-weight: 600; padding: 1px 4px; margin: 1px 0; border-radius: 4px; border-left: 3px solid;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.kal-spalte { grid-row: 3; position: relative; border-left: .5px solid var(--linie);
  background-image: linear-gradient(var(--linie) .5px, transparent .5px); background-size: 100% 48px; }
.kal-spalte.rast { scroll-snap-align: start; }
.kal-spalte.heute { background-color: var(--tint-fl); }
.kal-ev { position: absolute; border-radius: 5px; border-left: 3px solid; padding: 2px 4px; overflow: hidden; cursor: pointer;
  font-size: 11px; line-height: 1.25; color: var(--text); transition: box-shadow .15s, transform .15s; }
.kal-ev b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.kal-ev span { display: block; color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal-ev.gehoben { z-index: 4; box-shadow: 0 6px 18px rgba(0,0,0,.28); transform: scale(1.02); opacity: .95; }
.kal-ev.gehoben::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 22px; height: 4px; margin-left: -11px;
  border-radius: 2px; background: currentColor; opacity: .35; }
.kal-ev.neu { background: var(--tint); color: #fff; border-left-color: var(--tint); }
.kal-ev.neu span { color: rgba(255,255,255,.85); }
.kal-jetzt { position: absolute; left: -3px; right: 0; height: 2px; background: var(--rot); pointer-events: none; z-index: 3; }
.kal-jetzt::before { content: ""; position: absolute; left: -2px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--rot); }
.kal-streifen { display: flex; justify-content: space-between; margin: 0 0 4px; }
.kal-streifen button { flex: 1; min-height: 0; padding: 2px 0; background: none; color: var(--text); display: flex; flex-direction: column;
  align-items: center; gap: 1px; font-weight: 400; }
.kal-streifen span { font-size: 10px; color: var(--grau); }
.kal-streifen b { width: 28px; height: 28px; line-height: 28px; border-radius: 50%; font-size: 15px; font-weight: 500; }
.kal-streifen .heute b { color: var(--rot); }
.kal-streifen .an b { background: var(--text); color: var(--hg); }
.kal-streifen .an.heute b { background: var(--rot); color: #fff; }
.zeile > svg.sym { width: 24px; height: 24px; flex: 0 0 24px; color: var(--tint); }
.vorzeilen { white-space: pre-line; }
.mailzeile { align-items: flex-start; }
.mailzeile .punkt { flex: 0 0 9px; height: 9px; border-radius: 50%; margin-top: 7px; }
.mailzeile.ungelesen .punkt { background: var(--tint); }
.mailkopf { display: flex; justify-content: space-between; gap: 8px; }
.mailkopf b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailzeile:not(.ungelesen) .mailkopf b { font-weight: 500; }
.einzeilig { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
iframe.mailinhalt { display: block; width: 100%; height: 70vh; border: 0; border-radius: 12px; background: #fff; margin: 0 0 16px; }
textarea.mailtext { min-height: 40vh; }
pre.zitat { white-space: pre-wrap; font: 13px/1.4 inherit; color: var(--grau); margin: 8px 0 0; }
.knoepfe.kompakt { flex-wrap: nowrap; }
.knoepfe.kompakt button { min-height: 44px; padding: 8px 12px; white-space: nowrap; }
.knoepfe.kompakt button:not(.haupt) { flex: 0 0 auto; }
button.klein-knopf { min-height: 0; padding: 4px 12px; margin-top: 6px; font-size: 14px; }
details summary { cursor: pointer; padding: 6px 0; }
textarea.notizfeld { min-height: 55vh; background: transparent; padding: 4px 0; font-size: 17px; line-height: 1.45; resize: none; }
textarea.notizfeld:focus { outline: none; }
a.knopf-link { flex: 1; display: block; text-align: center; padding: 11px 16px; border-radius: 12px; background: var(--tint-fl);
  color: var(--tint); font-weight: 600; }
.vorschlag { border-bottom: .5px solid var(--linie); padding-bottom: 8px; margin-bottom: 4px; }
.vorschlag .zeile { border-bottom: 0; }
.kv-liste { margin-top: 4px; border: .5px solid var(--linie); border-radius: 10px; overflow: hidden; }
.kv-liste[hidden] { display: none; }
.tag-info { padding: 2px 0 2px 2px; }
.farbbalken { flex: 0 0 4px; align-self: stretch; border-radius: 2px; }
.farben { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 2px; }
.farben button { width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; }
.farben button.an { outline: 3px solid var(--text); outline-offset: 2px; }
.chips > button { min-height: 0; padding: 7px 14px; border-radius: 18px; font-size: 15px; }

/* Bilder */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 8px; }
.fotos div { position: relative; }
.fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; background: var(--feld); }
.fotos button { position: absolute; top: 4px; right: 4px; min-height: 0; width: 26px; height: 26px; padding: 0;
  border-radius: 13px; background: rgba(0,0,0,.55); color: #fff; font-weight: 400; }
.plan img { width: 100%; border-radius: 8px; background: #fff; }

/* Blätter von unten, Vollbild, Meldung */
.schleier { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.4); display: flex; align-items: flex-end;
  justify-content: center; animation: ein .2s ease-out; }
.blatt { background: var(--blatt); width: 100%; max-width: 620px; max-height: 94vh; overflow: auto; border-radius: 12px 12px 0 0;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); animation: hoch .28s cubic-bezier(.2,0,0,1); }   /* 14.331 rein 280 ms ease-out */
.blatt::before { content: ""; display: block; width: 36px; height: 5px; border-radius: 3px; background: #c4c4c7; margin: 0 auto 10px; }
.blatt h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; display: flex; align-items: center; }
.blatt h2 span { flex: 1; }
.blatt h2 button { min-height: 30px; width: 30px; padding: 0; border-radius: 15px; background: var(--feld); color: var(--grau);
  font-size: 18px; font-weight: 600; }
.blatt input, .blatt select, .blatt textarea { background-color: var(--blatt-feld); }
.blatt input[type=checkbox] { background-color: transparent; }
.blatt input:checked { background-color: var(--tint); }
.blatt input.schalter { background-color: var(--feld); }
.blatt input.schalter:checked { background-color: #34c759; }
/* Auswahl wie iOS-Segmente (Darstellung) */
.segmente { display: flex; background: var(--feld); border-radius: 10px; padding: 2px; gap: 2px; }
.segmente button { flex: 1; min-height: 28px; padding: 3px 2px; border-radius: 8px; background: none; color: var(--text);
  font-size: 13px; font-weight: 500; }
.segmente button.an { background: var(--karte); box-shadow: 0 1px 4px rgba(0,0,0,.15); font-weight: 600; }
/* Leiste oben, wenn der Admin die Mitarbeiteransicht benutzt */
#als { order: 0; flex: 1 0 100%; display: flex; align-items: center; gap: 10px; margin: -4px -12px 2px; padding: 4px 12px;
  background: #ff9f0a; color: #000; font-size: 15px; font-weight: 600; }
#als span { flex: 1; }
#als button { min-height: 30px; padding: 2px 12px; background: rgba(0,0,0,.15); color: #000; font-size: 14px; }
@keyframes ein { from { background: rgba(0,0,0,0); } }
@keyframes hoch { from { transform: translateY(100%); } }
.schleier.gross { align-items: center; background: rgba(0,0,0,.92); }
.schleier.gross img { max-width: 100%; max-height: 100%; object-fit: contain; }
#meldung { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px);
  z-index: 30; max-width: 88vw; background: rgba(40,40,42,.92); color: #fff; padding: 11px 18px; border-radius: 14px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: 15px; font-weight: 500; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#meldung.an { opacity: 1; transform: translate(-50%, 0); }
#meldung.fehler { background: rgba(215,40,30,.94); }
#meldung.tipp { pointer-events: auto; cursor: pointer; background: rgba(0,122,255,.95); }   /* 14.326 antippbar (Mitteilung öffnen) */
.anmelden { max-width: 380px; margin: 6vh auto 0; }
.anmelden img { display: block; width: 96px; margin: 0 auto 22px; border-radius: 22px; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.hinweis { background: var(--gelb-fl); color: var(--gelb); border-radius: 10px; padding: 7px 12px; font-size: 14px; margin: 0 0 10px; }
.planfeld { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.planfeld span { flex: 0 0 56px; font-size: 15px; color: var(--grau); }
.gruss { color: var(--grau); font-size: 14px; margin: 0 0 8px; }

/* Unterschrift & Fundamentberichte (14.39) */
.unterschrift-box { position: relative; margin-top: 8px; }
canvas.unterschrift { display: block; width: 100%; height: 170px; background: #fff; border: 1px solid var(--linie, #ccc);
  border-radius: 10px; touch-action: none; cursor: crosshair; }
.unterschrift-linie { position: absolute; left: 14px; right: 14px; top: 122px; border-bottom: 1px solid #bbb; color: #999;
  font-size: 13px; line-height: 1; pointer-events: none; }
/* 14.49: Vorschau + Vollbild-Unterschrift (quer) */
.us-vorschau { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px;
  background: #fff; color: #555; border: 1px solid var(--linie, #ccc); border-radius: 10px; cursor: pointer; padding: 8px; }
.us-vorschau.leer { border: 2px dashed var(--tint, #2e7d32); }
.us-vorschau img { max-width: 100%; max-height: 140px; display: block; }
.us-vorschau .us-tipp { font-size: 17px; font-weight: 600; color: var(--tint, #2e7d32); }
.us-vorschau .klein { color: #777; text-align: center; }
.us-vorschau-name { font-size: 13px; color: var(--grau); margin: 4px 2px 0; }
.us-vorschau.leer ~ .us-weg { display: none; }
body.us-offen { overflow: hidden; }
.us-ebene { position: fixed; inset: 0; z-index: 9999; background: #fff; overflow: hidden; touch-action: none; }
.us-innen { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: flex; flex-direction: column; background: #fff;
  color: #111; padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); box-sizing: border-box; }
.us-kopf { display: flex; align-items: center; gap: 8px; flex: none; }
.us-titel { flex: 1; font-size: 14px; color: #666; }
.us-ebene button { min-height: 0; width: auto; }
.us-knopf { padding: 6px 12px; font-size: 14px; background: #eee; color: #333; border-radius: 16px; }
.us-feld { position: relative; flex: 1; min-height: 0; margin: 6px 0; }
canvas.us-flaeche { display: block; width: 100%; height: 100%; background: #fff; border: 1px solid #ddd; border-radius: 10px;
  touch-action: none; cursor: crosshair; }
.us-linie { position: absolute; left: 24px; right: 24px; bottom: 26%; border-bottom: 1.5px solid #999; color: #999; font-size: 18px;
  line-height: 1; pointer-events: none; }
.us-fuss { display: flex; align-items: center; gap: 10px; flex: none; }
.us-name { flex: 1; text-align: left; background: #f3f3f3; color: #111; padding: 8px 12px; border-radius: 10px; font-size: 16px; }
.us-name .klein { color: #777; }
.us-fertig { padding: 10px 22px; font-size: 16px; }
p.abnahme { font-size: 14px; line-height: 1.45; background: var(--feld); border-radius: 10px; padding: 10px 12px; margin: 6px 0 10px; }
button.kamera { min-height: 0; padding: 6px 12px; font-size: 14px; white-space: nowrap; }
h3.abschnitt { margin: 14px 4px 4px; font-size: 13px; color: var(--grau); text-transform: uppercase; letter-spacing: .02em; }
[hidden] { display: none !important; }.spalte { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }

/* 14.41: Kamera + Album, Leistungen im Fundamentbericht */
.foto-knoepfe { display: flex; gap: 6px; flex-shrink: 0; }
.leistung { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: .5px solid var(--linie); }
.leistung:last-child { border-bottom: none; }
.leistung .segmente { min-width: 120px; }
.leistung .menge { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.leistung .menge input { max-width: 120px; }
img.ag-logo { max-height: 44px; max-width: 180px; margin-top: 6px; background: #fff; border-radius: 6px; padding: 4px; }
.ag-zeile { padding: 6px 0 10px; border-bottom: .5px solid var(--linie); } .ag-zeile:last-child { border-bottom: none; } .ag-zeile input { margin-top: 4px; }
.feld-zeile { padding: 8px 0; border-bottom: .5px solid var(--linie); display: grid; gap: 6px; }
.feld-zeile:last-of-type { border-bottom: none; }
.feld-zeile input.einheit { max-width: 90px; }
.bei-ja { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--tint); background: var(--tint-fl); border-radius: 8px; }
.foto-zeile { display: flex; justify-content: flex-end; margin-top: 6px; }
.karte > .zeile .segmente { min-width: 120px; flex-shrink: 0; }
.bei-ja .menge { display: flex; gap: 8px; align-items: center; }
.bei-ja .menge input { max-width: 110px; margin: 0; }
.bei-ja .menge span:last-child { font-weight: 600; }
.feld-zeile .reihe select { min-width: 0; flex: 1 1 0; } .feld-zeile .reihe input.einheit { flex: 0 0 64px; }

/* 14.43: PDF-Anzeiger */
.pdf-ansicht { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; background: rgba(30,30,30,.96); }
.pdf-kopf { display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 8px) 10px 8px; background: var(--karte); }
.pdf-kopf .haupt { flex: 1; min-width: 0; }
.pdf-kopf button { min-height: 0; padding: 6px 12px; }
.pdf-seiten { --zoom: 1; flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 10px; }
.pdf-seiten img { display: block; width: calc(100% * var(--zoom)); max-width: none; margin: 0 auto 10px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.pdf-seiten .leer { color: #ddd; }
.pdf-ansicht { width: 100vw; max-width: 100vw; overflow: hidden; }
.pdf-kopf { min-width: 0; }
.pdf-kopf .haupt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.pdf-kopf button { flex-shrink: 0; }
.pdf-seiten { width: 100%; box-sizing: border-box; }
/* 14.87 Rechnung bezahlen */
.re-leiste { background: var(--karte); padding: 8px 12px 10px; border-top: 1px solid var(--linie); font-size: 14px; }
.re-leiste .re-text { margin-bottom: 8px; }
.re-leiste .re-text b { display: block; }
.re-leiste .klein { margin: 2px 0 0; }
.re-leiste.gelb { background: var(--gelb-fl); color: var(--gelb); }
.re-warnung { background: var(--rot-fl); color: var(--rot); border-radius: 10px; padding: 8px 12px; font-size: 14px; margin: 0 0 10px; }
.re-bild { display: block; max-width: 100%; margin: 8px auto; background: #fff; }
.re-mitte { text-align: center; padding: 14px 0; }
.video { margin-top: 8px; } .video video { width: 100%; max-height: 60vh; border-radius: 10px; background: #000; }

/* 14.45: Leiste beliebig lang / zweireihig */
#leiste.zwei { flex-wrap: wrap; }
#leiste.zwei a { flex: 0 0 calc(100% / var(--spalten)); }
#leiste.viele { overflow-x: auto; scrollbar-width: none; }
#leiste.viele::-webkit-scrollbar { display: none; }
#leiste.viele a { flex: 0 0 64px; }
body.leiste-zwei { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

/* 14.45: Admin-Startseite */
.gruss-zeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gruss-zeile .gruss { margin: 0; }
.widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 12px; }
.widget { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; min-height: 0;
  background: var(--karte); border-radius: 14px; font-size: 12.5px; font-weight: 600; line-height: 1.2; color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.widget .widget-sym { font-size: 24px; }
.widget:active { transform: scale(.96); }
.team-zeile .haupt b { font-size: 16px; }
.gruen-text { color: var(--tint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.chip { display: inline-block; padding: 5px 10px; border-radius: 14px; background: var(--feld); font-size: 13px; color: var(--text); text-decoration: none; }
.chip.rot { background: var(--rot-fl); color: var(--rot); }
.neu-zeile .haupt { font-size: 14px; }

/* 14.45: Mail wie Outlook am Handy – schmale Symbolleiste, verschwindet beim Scrollen */
.mail-leiste { position: sticky; top: var(--kopf-h, 37px); z-index: 4; display: flex; align-items: center; gap: 4px;
  margin: -6px -10px 6px; padding: 5px 8px; background: var(--leiste); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: .5px solid var(--linie); will-change: transform; overflow-x: auto; scrollbar-width: none; }
.mail-leiste::-webkit-scrollbar { display: none; }
.mail-leiste .ml-luecke { flex: 1; min-width: 2px; }
/* kleine Pillen mit kurzem Text (14.46) */
.ml-knopf { flex: none; min-height: 0; width: auto; height: 27px; padding: 0 8px; border-radius: 14px; background: var(--feld); color: var(--tint);
  font-size: 12.5px; font-weight: 600; line-height: 27px; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ml-knopf .ml-sym { font-size: 13px; font-weight: 500; }
.ml-knopf.leise { background: transparent; color: var(--tint); padding: 0 4px; }
.ml-knopf.nur-sym { font-size: 17px; padding: 0 5px; }
.ml-knopf:active { opacity: .6; }
.mail-kopf h2 { font-size: 17px; line-height: 1.25; margin: 4px 0 6px; }
.mail-kopf .zeile { padding: 4px 0 8px; border-bottom: .5px solid var(--linie); margin-bottom: 8px; }
iframe.mailinhalt.auto { height: 160px; min-height: 160px; border-radius: 0; margin: 0 -10px 16px; width: calc(100% + 20px); }

/* 14.51 Mail wie Outlook: Teilen, Wischen, Anhänge, Werkzeuge, Rückgängig */
.teilen-zeile { gap: 12px; }
.teilen-sym { font-size: 24px; width: 32px; text-align: center; }
.mitte { text-align: center; }
a.geplant-link { padding: 10px 12px; text-decoration: none; }
.knopf-paar { display: inline-flex; gap: 6px; }
.knopf-paar button.nur-sym { min-width: 40px; padding: 7px 10px; font-size: 18px; }
.wisch { position: relative; overflow: hidden; margin: 0 -12px; }
.wisch > .zeile { position: relative; z-index: 1; background: var(--karte); padding: 7px 12px; transition: transform .22s ease;
  touch-action: pan-y; border-bottom: .5px solid var(--linie); }
.wisch:last-child > .zeile { border-bottom: 0; }
.wisch.zieht > .zeile { transition: none; }
.wisch-hg { position: absolute; inset: 0; display: none; align-items: center; padding: 0 20px; color: #fff; font-weight: 700; font-size: 15px; }
.wisch-hg.nach-links { justify-content: flex-end; }
.wisch.zieht:not(.links) .wisch-hg.nach-rechts, .wisch.zieht.links .wisch-hg.nach-links,
.wisch.weg .wisch-hg { display: flex; }
.wisch-hg.rot { background: var(--rot); } .wisch-hg.gruen { background: var(--tint); } .wisch-hg.blau { background: #0a84ff; }
.wisch:not(.weit) .wisch-hg { filter: saturate(.45) brightness(1.05); }
.wisch.weg { max-height: 0; transition: max-height .25s ease; }
.wisch { max-height: 200px; }
.an-zeile { display: flex; align-items: flex-end; gap: 8px; }
.an-zeile > div { flex: 1; min-width: 0; }
.an-zeile .klein-knopf { margin: 0 0 6px; white-space: nowrap; }
.mail-werkzeuge { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 10px; padding: 2px 0; scrollbar-width: none; }
.mail-werkzeuge::-webkit-scrollbar { display: none; }
button.wz { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 0; padding: 7px 8px;
  background: var(--karte); color: var(--text); font-size: 12px; font-weight: 600; border-radius: 12px; }
button.wz .wz-sym { font-size: 21px; line-height: 1.1; }
button.wz.an { background: var(--rot-fl); color: var(--rot); }
.anh-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 4px 0 6px; }
.anh { display: flex; align-items: center; gap: 4px; background: var(--feld); border-radius: 10px; padding: 4px; min-width: 0; }
.anh-inhalt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; color: var(--text); padding: 0;
  min-height: 44px; text-align: left; font-weight: 400; }
.anh img { width: 44px; height: 44px; object-fit: cover; border-radius: 7px; flex: 0 0 44px; }
.anh-sym { font-size: 26px; width: 44px; text-align: center; flex: 0 0 44px; }
.anh-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.25; }
.anh-text .klein { font-size: 12px; }
button.anh-x { flex: 0 0 auto; min-height: 0; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: var(--karte);
  color: var(--grau); font-size: 18px; line-height: 30px; }
.anh.laedt { opacity: .65; }
.anh.laedt .anh-text .klein { color: var(--tint); }
.anh.weg .anh-text b { text-decoration: line-through; color: var(--grau); }
.anh.weg img, .anh.weg .anh-sym { opacity: .4; }
.anh.fehler { background: var(--rot-fl); }
.anh.fehler .anh-text .klein { color: var(--rot); }
.segmente.klein-seg { align-items: center; margin: 4px 0 8px; }
.segmente.klein-seg > .klein { padding: 0 8px; font-size: 13px; }
.senden-knoepfe button { flex: 1 1 auto; white-space: nowrap; }
.senden-knoepfe button.haupt { flex: 2 1 auto; }
button.leise { background: var(--feld); color: var(--grau); }
.sende-balken { position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 14px; background: rgba(30,30,32,.94);
  color: #fff; font-size: 15px; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: 560px; margin: 0 auto; }
.sende-balken button { min-height: 34px; padding: 5px 12px; background: rgba(255,255,255,.16); color: #fff; font-weight: 700; }
.sende-balken.fehler { background: rgba(215,40,30,.96); }
body.leiste-zwei .sende-balken { bottom: calc(130px + env(safe-area-inset-bottom)); }

/* ===================== 14.52 E-Mail im Stil von Outlook am Handy ===================== */
:root { --ol: #0f6cbd; --ol-kopf: #0f6cbd; --ol-kopf-text: #fff; --ol-hg: #fff; --ol-text: #242424; --ol-grau: #616161;
  --ol-linie: #e6e6e6; --ol-wahl: #ebf3fc; --ol-feld: #f5f5f5; --ol-menue: #fff; --ol-rot: #c50f1f; --ol-such: #fff; }
:root[data-modus="dunkel"] { --ol: #479ef5; --ol-kopf: #1b1b1b; --ol-kopf-text: #fff; --ol-hg: #000; --ol-text: #f5f5f5;
  --ol-grau: #adadad; --ol-linie: #2b2b2b; --ol-wahl: #0b2a45; --ol-feld: #1f1f1f; --ol-menue: #262626; --ol-rot: #f1707b; --ol-such: #2e2e2e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-modus]) { --ol: #479ef5; --ol-kopf: #1b1b1b; --ol-kopf-text: #fff; --ol-hg: #000; --ol-text: #f5f5f5;
    --ol-grau: #adadad; --ol-linie: #2b2b2b; --ol-wahl: #0b2a45; --ol-feld: #1f1f1f; --ol-menue: #262626; --ol-rot: #f1707b; --ol-such: #2e2e2e; }
}
:root[data-modus="warm"] { --ol-hg: #fbf6ee; --ol-text: #3a2e22; --ol-grau: rgba(90,68,45,.72); --ol-linie: rgba(120,90,55,.18);
  --ol-wahl: #efe4d2; --ol-feld: #f1e9dc; --ol-menue: #fbf6ee; }
body.ol { background: var(--ol-hg); color: var(--ol-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: 0; }
body.ol #kopf { display: none; }
body.ol main { max-width: none; padding: 0; }
body.ol-voll #leiste, body.ol-waehlen #leiste { display: none; }
body.ol-voll { padding-bottom: 0; }
body.ol svg.sym[data-s=punkte], body.ol svg.sym[data-s=wichtig] { stroke-width: 3; }
.ol button { font: inherit; }

/* Kopfleiste */
.ol-kopf { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 2px; min-height: 52px;
  padding: calc(6px + env(safe-area-inset-top)) 6px 6px 10px; }
.ol-kopf.blau { background: var(--ol-kopf); color: var(--ol-kopf-text); }
.ol-kopf.weiss { background: var(--ol-hg); color: var(--ol-text); border-bottom: .5px solid var(--ol-linie); padding-left: 4px; }
.ol-kopf button { background: none; border: 0; color: inherit; padding: 0; min-height: 40px; border-radius: 20px; }
button.ol-ik { width: 40px; height: 40px; min-height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 20px; flex: 0 0 40px; background: none; color: inherit; }
button.ol-ik svg { width: 24px; height: 24px; }
button.ol-ik.klein { width: 32px; height: 32px; min-height: 32px; flex-basis: 32px; color: var(--ol-grau); }
button.ol-ik.klein svg { width: 18px; height: 18px; }
.ol-kopf.weiss button.ol-ik { color: var(--ol); }
.ol-kopf.blau button.ol-ik.an { background: rgba(255,255,255,.24); }
button.ol-ik:active { opacity: 1; background: rgba(127,127,127,.22); }
.ol-titel { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 7px; text-align: left; font-size: 20px; font-weight: 600;
  white-space: nowrap; overflow: hidden; }
.ol-titel b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ol-titel.klein { font-size: 17px; justify-content: center; }
.ol-unz { font-size: 14px; font-weight: 400; opacity: .85; }
.ol-av-knopf { position: relative; margin-right: 8px; flex: 0 0 auto; width: 34px; }
.ol-av-knopf .ol-punkt { position: absolute; top: 2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #fff;
  border: 2px solid var(--ol-kopf); }
.ol-luecke { flex: 1; }
.ol-av { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0; user-select: none; }
.ol-kopf .ol-av { width: 32px; height: 32px; flex-basis: 32px; font-size: 13px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); }
.ol-av.gross { width: 48px; height: 48px; flex-basis: 48px; font-size: 18px; }
.ol-suche { flex: 1; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 8px;
  background: var(--ol-such); color: var(--ol-text); }
.ol-suche svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .6; }
.ol-suche input { flex: 1; min-height: 0; height: 34px; padding: 0; border: 0; background: none; color: inherit; font-size: 16px; }
.ol-suche input:focus { outline: none; }
button.ol-abbrechen { padding: 0 8px; font-size: 16px; white-space: nowrap; }
button.ol-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--ol); font-weight: 600; font-size: inherit; }

/* Liste */
.ol-chips { display: flex; gap: 8px; padding: 8px 12px; border-bottom: .5px solid var(--ol-linie); overflow-x: auto; }
button.ol-chip { min-height: 30px; padding: 4px 12px; border-radius: 16px; border: 1px solid var(--ol); background: var(--ol-wahl);
  color: var(--ol); font-size: 14px; white-space: nowrap; }
.ol-hinweis { margin: 0; padding: 9px 14px; font-size: 14px; background: var(--ol-feld); color: var(--ol-grau); border-bottom: .5px solid var(--ol-linie); }
.ol-hinweis.warn { color: var(--ol-rot); }
.ol-hinweis.zeile { min-height: 0; gap: 10px; }
a.ol-geplant { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--ol); font-size: 15px; border-bottom: .5px solid var(--ol-linie); }
a.ol-geplant svg { width: 20px; height: 20px; }
.ol-liste { background: var(--ol-hg); padding-bottom: 96px; }
.ol-liste .wisch { margin: 0; max-height: 240px; }
.wisch > .ol-zeile { position: relative; z-index: 1; transition: transform .22s ease; touch-action: pan-y; }
.wisch.zieht > .ol-zeile { transition: none; }
.wisch-hg svg { width: 22px; height: 22px; flex: 0 0 22px; }
.wisch-hg { gap: 8px; }
.ol-liste .wisch-hg.gruen { background: #107c10; } .ol-liste .wisch-hg.blau { background: var(--ol); } .ol-liste .wisch-hg.rot { background: #c50f1f; }
a.ol-zeile { position: relative; display: flex; gap: 12px; padding: 12px 14px 12px 12px; color: var(--ol-text); background: var(--ol-hg); text-decoration: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
a.ol-zeile::after { content: ""; position: absolute; left: 64px; right: 0; bottom: 0; border-bottom: .5px solid var(--ol-linie); }
a.ol-zeile.ungelesen::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ol); }
a.ol-zeile:active, a.ol-zeile.gewaehlt { background: var(--ol-wahl); opacity: 1; }
.ol-av-box { position: relative; flex: 0 0 40px; height: 40px; }
.ol-haken { display: none; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ol-grau); background: var(--ol-hg);
  align-items: center; justify-content: center; color: transparent; }
.ol-haken svg { width: 22px; height: 22px; stroke-width: 2.6; }
body.ol-waehlen .ol-haken { display: flex; }
a.ol-zeile.gewaehlt .ol-haken { background: var(--ol); border-color: var(--ol); color: #fff; }
.ol-z { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ol-z1, .ol-z2 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ol-von { flex: 1; min-width: 0; font-size: 16px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-zeit { flex: 0 0 auto; font-size: 13px; color: var(--ol-grau); }
.ol-betreff { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-icons { display: inline-flex; gap: 4px; align-self: center; color: var(--ol-grau); }
.ol-icons svg { width: 15px; height: 15px; }
svg.sym.rot, .ol-rot { color: var(--ol-rot); }
.ol-vorschau { font-size: 14px; line-height: 1.35; color: var(--ol-grau); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 1px; overflow-wrap: anywhere; }
a.ol-zeile.ungelesen .ol-von, a.ol-zeile.ungelesen .ol-betreff { font-weight: 700; }
a.ol-zeile.ungelesen .ol-zeit { color: var(--ol); font-weight: 600; }
.ol-leer { text-align: center; color: var(--ol-grau); padding: 70px 20px; }
.ol-leer svg { width: 56px; height: 56px; stroke-width: 1.2; opacity: .5; }
button.ol-fab { position: fixed; right: 18px; bottom: calc(52px + 18px + env(safe-area-inset-bottom)); z-index: 7; width: 56px; height: 56px;
  min-height: 0; padding: 0; border-radius: 16px; background: var(--ol); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.28); }
button.ol-fab svg { width: 26px; height: 26px; }
body.leiste-zwei button.ol-fab { bottom: calc(104px + 18px + env(safe-area-inset-bottom)); }
body.ol-waehlen button.ol-fab { display: none; }
/* zum Aktualisieren ziehen */
.ol-zieh { height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: height .2s ease; }
.ol-kreisel { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--ol-linie); border-top-color: var(--ol); display: inline-block; flex: 0 0 auto; }
.ol-kreisel.klein { width: 18px; height: 18px; margin: 0 7px; }
.ol-zieh.bereit .ol-kreisel { border-color: var(--ol); }
.ol-zieh.laedt .ol-kreisel, .ol-kreisel.klein { animation: ol-dreh .8s linear infinite; }
@keyframes ol-dreh { to { transform: rotate(360deg); } }
/* Aktionen bei Auswahl */
nav.ol-aktionen { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; background: var(--ol-hg); border-top: .5px solid var(--ol-linie);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
nav.ol-aktionen button, nav.ol-antwort button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px;
  padding: 6px 2px; background: none; color: var(--ol); font-size: 11.5px; font-weight: 500; border-radius: 10px; }
nav.ol-aktionen svg, nav.ol-antwort svg { width: 24px; height: 24px; }
nav.ol-aktionen button:active, nav.ol-antwort button:active { background: var(--ol-wahl); opacity: 1; }

/* Ordner-Seitenleiste */
.ol-lade-hg { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,0); transition: background .22s ease; }
.ol-lade-hg.auf { background: rgba(0,0,0,.4); }
.ol-lade { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: var(--ol-hg); color: var(--ol-text);
  transform: translateX(-100%); transition: transform .22s ease; display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top); box-shadow: 4px 0 24px rgba(0,0,0,.2); }
.ol-lade-hg.auf .ol-lade { transform: none; }
.ol-lade-kopf { display: flex; align-items: center; gap: 12px; padding: 18px 16px 14px; border-bottom: .5px solid var(--ol-linie); }
.ol-lade-kopf b { font-size: 17px; }
.ol-lade-kopf .klein { color: var(--ol-grau); font-size: 13.5px; }
.ol-lade-liste { overflow-y: auto; padding: 8px 8px calc(16px + env(safe-area-inset-bottom)); }
.ol-lade-titel { font-size: 13px; color: var(--ol-grau); padding: 14px 12px 6px; }
button.ol-ordner { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 46px; padding: 8px 12px; border-radius: 8px;
  background: none; color: var(--ol-text); font-size: 16px; font-weight: 400; text-align: left; }
button.ol-ordner svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--ol-grau); }
button.ol-ordner .haupt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.ol-ordner.an { background: var(--ol-wahl); color: var(--ol); font-weight: 600; }
button.ol-ordner.an svg { color: var(--ol); }
.ol-zahl { font-size: 14px; font-weight: 600; color: var(--ol); }
.ol-zahl.grau { color: var(--ol-grau); font-weight: 400; }
/* Menü (Filter, ⋯) */
.ol-menue-hg { position: fixed; inset: 0; z-index: 35; }
.ol-menue { position: absolute; right: 8px; top: calc(52px + env(safe-area-inset-top)); min-width: 230px; max-width: calc(100vw - 16px);
  background: var(--ol-menue); color: var(--ol-text); border-radius: 12px; padding: 6px 0; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.ol-menue.unten { top: auto; bottom: calc(60px + env(safe-area-inset-bottom)); }
.ol-menue button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 16px; background: none;
  color: inherit; border-radius: 0; font-size: 16px; font-weight: 400; text-align: left; }
.ol-menue button svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--ol-grau); }
.ol-menue button.an { color: var(--ol); font-weight: 600; }
.ol-menue button.an svg:last-child { color: var(--ol); }
.ol-menue button.rot, .ol-menue button.rot svg { color: var(--ol-rot); }
.ol-leer-sym { width: 0; }

/* Lesen */
.ol-lesen { padding: 14px 16px 4px; }
h1.ol-gross { margin: 0 0 14px; font-size: 21px; line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; }
h1.ol-gross svg { width: 18px; height: 18px; vertical-align: -2px; }
.ol-absender { display: flex; gap: 12px; align-items: center; cursor: pointer; padding-bottom: 12px; border-bottom: .5px solid var(--ol-linie); }
.ol-absender .ol-von { font-weight: 600; }
.ol-an { font-size: 13.5px; color: var(--ol-grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-details { font-size: 14px; padding: 10px 0; border-bottom: .5px solid var(--ol-linie); display: grid; gap: 4px; overflow-wrap: anywhere; }
.ol-details .klein { color: var(--ol-grau); font-size: 14px; }
.ol-lesen .ol-hinweis { margin: 10px -16px 0; }
.ol-anh-reihe { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.ol-anh-reihe::-webkit-scrollbar { display: none; }
.ol-anh { flex: 0 0 auto; display: flex; align-items: center; width: 230px; max-width: 78vw; border: 1px solid var(--ol-linie); border-radius: 8px;
  background: var(--ol-hg); padding: 0 2px 0 0; }
.ol-anh.gesperrt { opacity: .55; }
button.ol-anh-inhalt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 4px 6px 8px;
  background: none; color: var(--ol-text); border-radius: 8px; text-align: left; font-weight: 400; }
.ol-anh img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; flex: 0 0 40px; }
.ol-anh-text { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; line-height: 1.3; color: var(--ol-grau); }
.ol-anh-text b { font-size: 14px; font-weight: 500; color: var(--ol-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-datei { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff; background: #737373; letter-spacing: .02em; }
.ol-datei.pdf { background: #c50f1f; } .ol-datei.word { background: #185abd; } .ol-datei.excel { background: #107c41; }
.ol-datei.bild { background: #8764b8; } .ol-datei.video { background: #ca5010; } .ol-datei.zip { background: #986f0b; }
.ol-anh.laedt { opacity: .7; }
.ol-anh.weg .ol-anh-text b { text-decoration: line-through; color: var(--ol-grau); }
.ol-anh.weg img, .ol-anh.weg .ol-datei { opacity: .4; }
.ol-anh.fehler { border-color: var(--ol-rot); }
.ol-anh.fehler .ol-anh-text span { color: var(--ol-rot); }
iframe.mailinhalt.auto.ol-rahmen { display: block; margin: 8px 0 0; width: 100%; border-radius: 0; }
body.ol-voll iframe.mailinhalt.auto.ol-rahmen { margin-bottom: calc(76px + env(safe-area-inset-bottom)); }
nav.ol-antwort { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; gap: 4px; background: var(--ol-hg);
  border-top: .5px solid var(--ol-linie); padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); }
body.ol-voll .sende-balken, body.ol-waehlen .sende-balken { bottom: calc(76px + env(safe-area-inset-bottom)); }

/* Verfassen */
.ol-verfassen { padding: 0 16px calc(80px + env(safe-area-inset-bottom)); }
label.ol-feld, div.ol-feld { display: flex; align-items: center; gap: 6px; min-height: 48px; border-bottom: .5px solid var(--ol-linie);
  margin: 0; text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--ol-text); }
label.ol-suche { margin: 0; text-transform: none; letter-spacing: 0; font-size: 16px; }
.ol-feld-name { color: var(--ol-grau); font-size: 16px; flex: 0 0 auto; }
.ol-feld input { flex: 1; min-width: 0; min-height: 46px; padding: 0 2px; border: 0; border-radius: 0; background: none; color: var(--ol-text); font-size: 16px; }
.ol-feld input:focus, textarea.ol-text:focus { outline: none; }
div.ol-feld input { font-weight: 500; }
textarea.ol-text { display: block; width: 100%; min-height: 180px; padding: 14px 0 6px; border: 0; border-radius: 0; background: none; resize: none;
  color: var(--ol-text); font-size: 16px; line-height: 1.45; overflow: hidden; }
.ol-summe { font-size: 13px; color: var(--ol-grau); padding: 10px 0 0; }
.ol-anh-reihe.neu { padding-top: 6px; }
.ol-sig { font-size: 13px; color: var(--ol-grau); margin: 4px 0 10px; }
details.ol-zitat summary { font-size: 14px; color: var(--ol); padding: 6px 0; }
.ol-senden { color: var(--ol-grau) !important; }
.ol-senden.bereit { color: var(--ol) !important; }
.ol-wz { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between;
  gap: 2px; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); background: var(--ol-hg); border-top: .5px solid var(--ol-linie);
  color: var(--ol-grau); transition: transform .12s ease; }
.ol-wz button.ol-ik { color: var(--ol-grau); }
.ol-wz button.ol-ik.an { color: var(--ol-rot); background: var(--rot-fl); }
.ol .zeile.ol-rot b { color: var(--ol-rot); }

/* ===================== 14.54 Mail 1:1 nach Mergims Outlook-Screenshots ===================== */
:root { --ol-kopf: #2f6cb6; --ol-pille: rgba(214,231,250,.82); --ol-pille-rand: rgba(255,255,255,.75); --ol-pille-text: #111;
  --ol-glas: rgba(250,250,250,.82); --ol-glas-rand: rgba(0,0,0,.06); --ol-glas-text: #1c1c1e; --ol-glas-an: rgba(118,118,128,.16);
  --ol-lade-hg: #f8f8f8; --ol-blatt-hg: #24589a; --ol-ich: #e3823b; --ol-segment: #1e4a80; --ol-badge: #ededed; }
:root[data-modus="dunkel"] { --ol-kopf: #1b1b1b; --ol-pille: rgba(60,60,64,.85); --ol-pille-rand: rgba(255,255,255,.12); --ol-pille-text: #f5f5f5;
  --ol-glas: rgba(40,40,42,.85); --ol-glas-rand: rgba(255,255,255,.08); --ol-glas-text: #f5f5f5; --ol-glas-an: rgba(255,255,255,.12);
  --ol-lade-hg: #141414; --ol-blatt-hg: #0d0d0d; --ol-segment: #333; --ol-badge: #2b2b2b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-modus]) { --ol-kopf: #1b1b1b; --ol-pille: rgba(60,60,64,.85); --ol-pille-rand: rgba(255,255,255,.12); --ol-pille-text: #f5f5f5;
    --ol-glas: rgba(40,40,42,.85); --ol-glas-rand: rgba(255,255,255,.08); --ol-glas-text: #f5f5f5; --ol-glas-an: rgba(255,255,255,.12);
    --ol-lade-hg: #141414; --ol-blatt-hg: #0d0d0d; --ol-segment: #333; --ol-badge: #2b2b2b; }
}
:root[data-modus="warm"] { --ol-glas: rgba(251,246,238,.88); --ol-lade-hg: #f6efe3; --ol-badge: #ece2d2; }
:root { --ol: #2f6cb6; }
:root[data-modus="dunkel"] { --ol: #479ef5; }
@media (prefers-color-scheme: dark) { :root:not([data-modus]) { --ol: #479ef5; } }

/* Kopf: Bild · großer Ordnername · Glas-Pille */
.ol-kopf.ol-kopf-gross { display: block; padding: calc(8px + env(safe-area-inset-top)) 12px 12px 16px; min-height: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.ol-kopf-reihe { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.ol-kopf-reihe.zwei { min-height: 40px; margin-top: 8px; }
.ol-kopf-gross .ol-av-knopf { width: 36px; margin-right: 2px; }
.ol-av.ich { background: var(--ol-ich); }
.ol-kopf-gross .ol-av { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; box-shadow: none; }
.ol-kopf-gross .ol-titel { font-size: 30px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.ol-kopf-gross .ol-titel b { font-weight: 700; }
.ol-titel.klein { font-size: 18px; }
.ol-pille { flex: 0 0 auto; display: flex; align-items: center; gap: 0; height: 50px; padding: 0 4px; border-radius: 25px;
  background: var(--ol-pille); border: 1px solid var(--ol-pille-rand); color: var(--ol-pille-text);
  box-shadow: 0 4px 14px rgba(0,0,0,.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ol-pille button.ol-ik { width: 43px; height: 46px; flex-basis: 43px; color: var(--ol-pille-text); }
.ol-pille button.ol-ik svg { width: 25px; height: 25px; stroke-width: 1.7; }
.ol-pille button.ol-ik.an { background: rgba(0,0,0,.1); }
.ol-segment { display: flex; padding: 3px; border-radius: 22px; background: var(--ol-segment); }
.ol-segment button { position: relative; min-height: 34px; padding: 0 16px; border-radius: 18px; background: none; border: 0;
  color: #fff; font-size: 16px; font-weight: 600; }
.ol-segment button.an { background: #fff; color: var(--ol); }
:root[data-modus="dunkel"] .ol-segment button.an { background: #555; color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-modus]) .ol-segment button.an { background: #555; color: #fff; } }
.ol-seg-punkt { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
button.ol-filter-text { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 4px; background: none; border: 0;
  color: #fff; font-size: 17px; font-weight: 500; }
button.ol-filter-text svg { width: 22px; height: 22px; }
button.ol-filter-text.an { background: rgba(255,255,255,.22); padding: 0 10px; border-radius: 18px; }
.ol-kopf-gross .ol-suche { height: 40px; border-radius: 20px; }

/* Liste: ohne Bilder, ohne Linien, Absender + Datum, Betreff grau, rechts Büroklammer / Anzahl */
.ol-liste { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
a.ol-zeile { display: block; gap: 0; padding: 8px 15px 8px 26px; transition: padding .15s ease, transform .22s ease; }
a.ol-zeile::after { display: none; }
a.ol-zeile.ungelesen::before { left: 0; top: 10px; bottom: 10px; width: 4px; }
.ol-zeile .ol-z1, .ol-zeile .ol-z2 { align-items: center; }
.ol-zeile .ol-von { font-size: 17px; line-height: 1.35; }
.ol-zeile .ol-zeit { font-size: 15px; color: var(--ol-grau); }
.ol-zeile .ol-betreff { font-size: 15.5px; line-height: 1.4; color: var(--ol-grau); }
.ol-zeile .ol-icons { gap: 8px; }
.ol-zeile .ol-icons svg { width: 19px; height: 19px; }
.ol-anz { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 24px; padding: 0 5px; border-radius: 5px;
  border: 1px solid var(--ol-linie); color: var(--ol-grau); font-size: 14px; }
a.ol-zeile.ungelesen .ol-von { font-weight: 700; }
a.ol-zeile.ungelesen .ol-betreff { font-weight: 600; color: var(--ol-text); }
a.ol-zeile.ungelesen .ol-zeit { color: var(--ol); font-weight: 600; }
a.ol-zeile .ol-haken { width: 26px; height: 26px; inset: auto; left: 12px; top: 50%; margin-top: -13px; }
body.ol-waehlen a.ol-zeile { padding-left: 52px; }

/* schwebende Knöpfe rechts unten (Entwürfe, Neue E-Mail) */
.ol-schweber { position: fixed; right: 18px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 7; display: flex; gap: 6px;
  padding: 5px 8px; border-radius: 30px; background: var(--ol-glas); border: 1px solid var(--ol-glas-rand); color: var(--ol-glas-text);
  box-shadow: 0 6px 22px rgba(0,0,0,.14); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); }
.ol-schweber button.ol-ik { width: 48px; height: 48px; flex-basis: 48px; color: var(--ol-glas-text); }
.ol-schweber button.ol-ik svg { width: 27px; height: 27px; stroke-width: 1.6; }
body.ol-waehlen .ol-schweber { display: none; }

/* 14.55 Mergims Leiste unten – in der ganzen App als schwebende Glas-Pille (Design wie Outlook, Inhalt bleibt seine Leiste) */
#leiste { left: 50%; right: auto; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(calc(100% - 24px), calc(var(--spalten, 4) * 84px + 12px)); padding: 5px 6px; flex-wrap: nowrap; overflow-x: auto;
  border-radius: 34px; border: 1px solid var(--ol-glas-rand); background: var(--ol-glas); box-shadow: 0 6px 24px rgba(0,0,0,.14);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); scrollbar-width: none; }
#leiste::-webkit-scrollbar { display: none; }
#leiste a { flex: 1 0 62px; min-width: 62px; padding: 6px 1px 5px; border-radius: 26px; color: var(--ol-glas-text); font-size: 11.5px;
  gap: 2px; white-space: nowrap; }
#leiste a.an { background: var(--ol-glas-an); color: var(--tint); }
body.ol #leiste a.an { color: var(--ol); }
#leiste svg { width: 26px; height: 26px; }
#leiste.zwei { flex-wrap: wrap; overflow-x: hidden; border-radius: 28px; }
#leiste.zwei a { flex: 0 0 calc((100% - 0px) / var(--spalten)); min-width: 0; }
#leiste.viele a { flex: 0 0 64px; }
body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.leiste-zwei { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
#meldung { bottom: calc(100px + env(safe-area-inset-bottom)); }
.sende-balken { bottom: calc(96px + env(safe-area-inset-bottom)); }
body.leiste-zwei .sende-balken { bottom: calc(160px + env(safe-area-inset-bottom)); }
body.leiste-zwei .ol-schweber { bottom: calc(160px + env(safe-area-inset-bottom)); }
body.ol-voll { padding-bottom: 0; }
body.ol-voll .sende-balken, body.ol-waehlen .sende-balken { bottom: calc(76px + env(safe-area-inset-bottom)); }

/* Seitenleiste */
.ol-lade { width: 88vw; max-width: 400px; flex-direction: row; background: var(--ol-lade-hg); }
.ol-schiene { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 18px 0 calc(18px + env(safe-area-inset-bottom)); }
.ol-av-ring { display: inline-flex; padding: 2px; border-radius: 50%; border: 2.5px solid var(--ol); }
.ol-av-ring .ol-av { width: 44px; height: 44px; flex-basis: 44px; font-size: 17px; }
button.ol-plus { width: 46px; height: 46px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--ol-linie);
  background: var(--ol-hg); color: var(--ol-text); display: flex; align-items: center; justify-content: center; }
button.ol-plus svg { width: 24px; height: 24px; stroke-width: 1.5; }
.ol-schiene .ol-luecke { flex: 1; }
.ol-schiene button.ol-ik { color: var(--ol-text); }
.ol-schiene button.ol-ik svg { width: 26px; height: 26px; stroke-width: 1.6; }
.ol-lade-haupt { flex: 1; min-width: 0; overflow-y: auto; padding: 22px 10px calc(20px + env(safe-area-inset-bottom)) 6px; }
.ol-konto { display: flex; flex-direction: column; padding: 2px 8px 18px; }
.ol-konto b { font-size: 17px; }
.ol-konto span { font-size: 14px; color: var(--ol-grau); font-weight: 500; }
.ol-fav-kopf { display: flex; align-items: center; justify-content: space-between; padding: 0 0 4px 8px; font-size: 14.5px;
  font-weight: 500; color: var(--ol-grau); }
.ol-fav-kopf button.ol-ik.klein svg { width: 20px; height: 20px; }
.ol-fav-leer { font-size: 14px; color: var(--ol-grau); padding: 6px 8px; margin: 0; }
.ol-lade-trenner { height: 14px; }
button.ol-ordner { gap: 18px; min-height: 52px; padding: 6px 8px; border-radius: 10px; font-size: 17px; }
button.ol-ordner.tief { padding-left: 36px; }
button.ol-ordner svg { width: 25px; height: 25px; flex-basis: 25px; color: var(--ol-text); stroke-width: 1.5; opacity: .8; }
button.ol-ordner.an { background: none; color: var(--ol); font-weight: 600; }
button.ol-ordner.an svg { color: var(--ol); opacity: 1; }
svg.sym.voll { fill: currentColor; }
.ol-lade .ol-zahl { min-width: 24px; height: 26px; padding: 0 7px; border-radius: 6px; background: var(--ol-badge); color: var(--ol-grau);
  font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }
.ol-klapp { display: inline-flex; padding: 6px; margin: -6px -4px -6px 0; color: var(--ol); }
.ol-klapp svg { width: 20px !important; height: 20px !important; flex-basis: 20px !important; color: var(--ol) !important; stroke-width: 2 !important; opacity: 1 !important; }
.ol-stern { font-size: 22px; color: var(--ol-grau); padding: 0 4px; }
.ol-stern.an { color: #f5a623; }

/* Lesen: Unterhaltung */
iframe.mailinhalt.auto.ol-rahmen.mit-faden { margin-bottom: 0 !important; }
.ol-faden { padding: 10px 16px calc(96px + env(safe-area-inset-bottom)); border-top: 8px solid var(--ol-feld); }
.ol-faden h2 { font-size: 14px; font-weight: 600; color: var(--ol-grau); margin: 4px 0 6px; text-transform: none; letter-spacing: 0; }
a.ol-faden-zeile { display: flex; gap: 12px; padding: 10px 0; color: var(--ol-text); border-bottom: .5px solid var(--ol-linie); }
a.ol-faden-zeile .ol-z1 svg { width: 15px; height: 15px; color: var(--ol-grau); flex: 0 0 15px; }
a.ol-faden-zeile .ol-vorschau { -webkit-line-clamp: 2; }
a.ol-faden-zeile.ungelesen .ol-von { font-weight: 700; }

/* Verfassen: weißes Blatt mit runden Ecken über Blau */
body.ol-neu { background: var(--ol-blatt-hg); }
body.ol-neu main { padding-top: calc(10px + env(safe-area-inset-top)); }
.ol-blatt { min-height: calc(100vh - 10px - env(safe-area-inset-top));
  background: var(--ol-hg); border-radius: 26px 26px 0 0; }
.ol-blatt-kopf { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px;
  background: var(--ol-hg); border-radius: 26px 26px 0 0; border-bottom: .5px solid var(--ol-linie); }
button.ol-rund { width: 42px; height: 42px; flex-basis: 42px; border-radius: 50%; background: var(--ol-hg); color: var(--ol-text);
  box-shadow: 0 2px 10px rgba(0,0,0,.12); }
button.ol-rund svg { width: 22px; height: 22px; stroke-width: 1.7; }
.ol-blatt-kopf .ol-av { width: 30px; height: 30px; flex-basis: 30px; font-size: 12px; }
.ol-blatt-titel { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ol-blatt-titel b { font-size: 16px; font-weight: 600; }
.ol-blatt-titel span { font-size: 14px; color: var(--ol-grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-blatt .ol-verfassen { padding: 0 0 calc(110px + env(safe-area-inset-bottom)); }
.ol-blatt label.ol-feld, .ol-blatt div.ol-feld { min-height: 52px; padding: 0 16px; }
.ol-blatt .ol-feld-name { font-size: 15.5px; }
.ol-blatt div.ol-feld input, .ol-blatt .ol-feld input { font-weight: 400; }
.ol-cc svg { transition: transform .15s ease; }
.ol-cc.auf svg { transform: rotate(180deg); }
.ol-blatt textarea.ol-text, .ol-blatt .ol-summe, .ol-blatt .ol-anh-reihe, .ol-blatt .ol-sig, .ol-blatt details.ol-zitat { margin-left: 16px; margin-right: 16px; width: auto; }
.ol-blatt textarea.ol-text { padding-top: 22px; }
/* Werkzeuge: schwebende Pille über der Tastatur */
.ol-wz { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 420px; padding: 6px 10px; border: 1px solid var(--ol-glas-rand);
  border-radius: 30px; background: var(--ol-glas); box-shadow: 0 6px 22px rgba(0,0,0,.12);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); }
.ol-wz button.ol-ik { color: var(--ol-glas-text); width: 42px; height: 42px; flex-basis: 42px; }
.ol-wz button.ol-ik svg { width: 25px; height: 25px; stroke-width: 1.6; }

/* 14.55 kleiner Pfeil neben dem Profilbild = Ordnerleiste öffnen */
.ol-kopf-gross .ol-av-knopf { display: inline-flex; align-items: center; gap: 1px; width: auto; }
.ol-av-pfeil { display: inline-flex; color: #fff; opacity: .9; }
.ol-av-pfeil svg { width: 16px; height: 16px; stroke-width: 2.6; }
.ol-av-knopf .ol-punkt { left: 26px; right: auto; }
/* 14.55 Firmenschrift überall: Plus Jakarta Sans (OFL-Lizenz, Datei liegt bei) */
@font-face { font-family: "Plus Jakarta Sans"; src: url("PlusJakartaSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("PlusJakartaSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("PlusJakartaSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("PlusJakartaSans-Bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }
html, body, body.ol { font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
/* 14.55 Signatur im Verfassen-Fenster */
iframe.ol-sig-rahmen { display: block; width: calc(100% - 32px); margin: 4px 16px 10px; height: 120px; border: 0; background: transparent; }
.ol-blatt textarea.ol-text { min-height: 110px; }
/* ===================== 14.56 alles im Firmengrün (#0e8140 wie Rechnung/Signatur) ===================== */
:root, :root[data-modus="warm"] { --tint: #0e8140; --tint-fl: rgba(14,129,64,.13); --ol: #0e8140; --ol-kopf: #0e8140;
  --ol-pille: rgba(220,241,228,.86); --ol-blatt-hg: #0a6532; --ol-segment: #0a5f2f; --ol-wahl: #e3f2e8; }
:root[data-modus="dunkel"] { --tint: #3fbf72; --tint-fl: rgba(63,191,114,.17); --ol: #3fbf72; --ol-kopf: #1b1b1b; --ol-wahl: #0f2e1c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-modus]) { --tint: #3fbf72; --tint-fl: rgba(63,191,114,.17); --ol: #3fbf72; --ol-kopf: #1b1b1b; --ol-wahl: #0f2e1c; }
}
.wisch-hg.blau, .ol-liste .wisch-hg.blau { background: #0a5f2f; }
.ol-liste .wisch-hg.gruen { background: var(--tint); }
/* 14.56 Pfeil-Knopf oben links (statt Wischen) + kompaktere Mail-Liste */
.ol-kopf-gross .ol-kopf-reihe { gap: 6px; }
button.ol-lade-knopf { position: relative; flex: 0 0 36px; width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.2); color: #fff; border: 0; }
button.ol-lade-knopf svg { width: 23px; height: 23px; stroke-width: 1.9; }
button.ol-lade-knopf:active { background: rgba(255,255,255,.35); opacity: 1; }
button.ol-lade-knopf .ol-punkt { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ol-kopf); }
.ol-kopf-gross .ol-av-knopf { width: 30px; margin: 0; }
.ol-kopf-gross .ol-av { width: 30px; height: 30px; flex-basis: 30px; font-size: 12px; }
.ol-kopf-gross .ol-titel { font-size: 26px; }
.ol-kopf.ol-kopf-gross { padding-bottom: 10px; }
.ol-kopf-reihe { min-height: 48px; }
.ol-kopf-reihe.zwei { margin-top: 4px; min-height: 38px; }
.ol-pille { height: 46px; }
.ol-pille button.ol-ik { height: 42px; }
a.ol-zeile { padding: 5px 14px 5px 22px; }
.ol-zeile .ol-von { font-size: 16px; line-height: 1.3; }
.ol-zeile .ol-zeit { font-size: 13.5px; }
.ol-zeile .ol-betreff { font-size: 14.5px; line-height: 1.3; }
.ol-zeile .ol-icons svg { width: 17px; height: 17px; }
.ol-anz { height: 20px; min-width: 20px; font-size: 12.5px; border-radius: 4px; }
a.ol-zeile.ungelesen::before { top: 7px; bottom: 7px; }.ol-av.ich { background: var(--tint); }
.ol-kopf-gross .ol-av.ich { background: #fff; color: var(--ol-kopf); }
:root[data-modus="dunkel"] .ol-kopf-gross .ol-av.ich { background: var(--tint); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-modus]) .ol-kopf-gross .ol-av.ich { background: var(--tint); color: #fff; } }
/* 14.57 Adressfeld mit Standort-Knopf */
.standort-zeile { display: flex; gap: 8px; align-items: stretch; }
.standort-zeile input { flex: 1 1 auto; min-width: 0; }
.standort-knopf { flex: 0 0 auto; padding: 0 12px; border-radius: 10px; border: 1px solid var(--tint); background: transparent;
  color: var(--tint); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; }
.standort-knopf:disabled { opacity: .6; }

/* 14.58 Leiste so tief wie möglich: knapp über dem Home-Balken des iPhones (ohne Home-Balken 6 px Rand) */
#leiste { bottom: max(6px, calc(env(safe-area-inset-bottom) - 14px)); }
body { padding-bottom: calc(80px + max(6px, calc(env(safe-area-inset-bottom) - 14px))); }
body.leiste-zwei { padding-bottom: calc(144px + max(6px, calc(env(safe-area-inset-bottom) - 14px))); }
body.ol-voll { padding-bottom: 0; }/* 14.58 Mail-Titel („Posteingang“) kleiner – App möglichst kompakt */
.ol-kopf-gross .ol-titel { font-size: 21px; }
.ol-kopf-gross .ol-titel b { white-space: nowrap; }.ol-kopf-gross .ol-titel, .ol-kopf-gross .ol-titel b { line-height: 1.3; }

/* 14.59 Google-Bewertung: Banner-Vorschau */
.bewertung-banner { display: block; width: 100%; height: auto; border-radius: 12px; margin: 8px 0 10px; }

/* 14.118 Bon-Kamera: gewählte Zahlart deutlich zeigen */
.bon-wahl button { opacity: .5; }
.bon-wahl button.an { opacity: 1; box-shadow: inset 0 0 0 2px var(--tint); font-weight: 700; }
/* 14.123 Steuer-Tipps */
.steuer-neu { display: block; border-left: 4px solid var(--tint); }
.steuer-text { white-space: pre-line; line-height: 1.45; }
.steuer-ab { margin: 8px 0; }
.steuer-ab summary { font-weight: 700; cursor: pointer; padding: 6px 0; }
.steuer-ab p, .karte > div > p { white-space: pre-line; line-height: 1.45; }
.gelb-text { color: #b26a00; }.steuer-ab summary { font-size: 13px; letter-spacing: .02em; }

/* 14.129 Sofort-Anzeige: solange der gemerkte (alte) Stand zu sehen ist, nichts antippen – Scrollen geht */
#inhalt.wartet * { pointer-events: none; }

/* 14.132 Unsere Fundamente: Karten + Draufsicht */
.fbl-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.fbl-karte { display: block; padding: 12px; border-radius: 16px; background: var(--tint-fl); color: var(--text); text-decoration: none; }
.fbl-karte.warn { background: var(--rot-fl); }
.fbl-name { font-size: 14px; line-height: 1.25; }
.fbl-zusatz { font-size: 11px; color: var(--grau); margin-top: 2px; min-height: 28px; }
.fbl-zahl { font-size: 30px; font-weight: 800; color: var(--tint); letter-spacing: -.5px; margin-top: 4px; }
.fbl-zahl small { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.fbl-klein { font-size: 12px; color: var(--grau); }
.fbl-warn { font-size: 12px; font-weight: 700; color: var(--rot); margin-top: 4px; }
.fbs-karte { padding: 6px; }
.fbs { width: 100%; height: auto; display: block; }
.fbs-stein { fill: #c9c4bb; stroke: #8a857c; stroke-width: 4; }
.fbs-geraet { fill: none; stroke: var(--grau); stroke-width: 3; stroke-dasharray: 18 12; }
.fbs-achse { stroke: var(--rot); stroke-width: 3; stroke-dasharray: 20 10; }
.fbs-bohr { fill: var(--rot); }
.fbs-kreuz { stroke: #fff; stroke-width: 5; }
.fbs-kreuz.blau { stroke: #1e6fd9; } .fbs-kreuz.warn { stroke: var(--rot); }
.fbs-kond { stroke-width: 7; }
.fbs-kond.blau { fill: rgba(30,111,217,.18); stroke: #1e6fd9; }
.fbs-kond.warn { fill: var(--rot-fl); stroke: var(--rot); }
.fbs-m { stroke-width: 4; stroke: var(--grau); }
.fbs-m.rot { stroke: var(--rot); } .fbs-m.gruen { stroke: var(--tint); } .fbs-m.blau { stroke: #1e6fd9; } .fbs-m.warn { stroke: var(--rot); }
.fbs-t { font: 700 46px 'Plus Jakarta Sans', system-ui, sans-serif; fill: var(--grau); }
.fbs-t.rot, .fbs-t.warn { fill: var(--rot); } .fbs-t.gruen { fill: var(--tint); } .fbs-t.blau { fill: #1e6fd9; }
.fbs-t.gross { font-size: 68px; font-weight: 800; }
.fbs-t.klein { font-size: 36px; font-weight: 600; }
.fbl-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.fbl-kachel { padding: 12px 14px; border-radius: 18px; background: var(--karte); border: 2px solid var(--linie); }
.fbl-kachel.gruen { border-color: var(--tint); } .fbl-kachel.rot { border-color: var(--rot); }
.fbl-kachel.gruen.hell { background: var(--tint-fl); }
.fbl-k-titel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--grau); }
.fbl-k-wert { font-size: 32px; font-weight: 800; letter-spacing: -.5px; margin-top: 2px; }
.fbl-kachel.gruen .fbl-k-wert { color: var(--tint); } .fbl-kachel.rot .fbl-k-wert { color: var(--rot); }
.fbl-k-wert small { font-size: 14px; font-weight: 600; }
.fbl-k-unter { font-size: 12px; color: var(--grau); }
/* 14.280 Vor-/Rücklauf */
.fbs-hyd { stroke-width: 7; }
.fbs-hyd.orange { fill: rgba(214,104,10,.16); stroke: #d6680a; }
.fbs-hyd.warn { fill: var(--rot-fl); stroke: var(--rot); }
.fbs-vl { fill: #d21e1e; } .fbs-rl { fill: #1e6fd9; }
.fbs-hilf { stroke-width: 3; stroke-dasharray: 10 10; }
.fbs-hilf.orange { stroke: #d6680a; } .fbs-hilf.warn { stroke: var(--rot); }
.fbs-m.orange { stroke: #d6680a; } .fbs-t.orange { fill: #d6680a; }
.fbl-hyd { border-left: 5px solid #d6680a; }
.fbl-hyd.warn { border-left-color: var(--rot); background: var(--rot-fl); }
.fbl-kond { border-left: 5px solid #1e6fd9; }
.fbl-kond.warn { border-left-color: var(--rot); background: var(--rot-fl); }
.fbl-pruefen { background: var(--gelb-fl); }
.fbl-pruefen h2 { color: var(--gelb); }
.fbl-rot { color: var(--rot); font-weight: 700; }
/* 14.291 Fundamentblätter durchblättern */
.fbl-blaettern { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; }
.fbl-blaettern .fbl-bl { flex: 1 1 0; min-width: 0; padding: 9px 10px; border: 0; border-radius: 14px; background: var(--tint-fl); color: var(--tint);
  font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; text-align: left; }
.fbl-blaettern .fbl-bl:last-child { text-align: right; }
.fbl-blaettern .fbl-bl.leer { background: none; }
.fbl-bl-nr { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--grau); }
.fbl-var { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--tint); margin: 18px 4px 8px; }

/* 14.135 Auftragsannahme */
.ap-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 10px; }
.ap-foto { position: relative; border-radius: 12px; overflow: hidden; background: var(--feld); }
.ap-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.ap-foto-text { display: block; width: 100%; border: 0; border-radius: 0; background: var(--karte); color: var(--grau); font-size: 11px;
  padding: 5px 6px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 0; }
.ap-foto-weg { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.55); color: #fff; }
.ap-zeile { padding: 10px 0; border-bottom: 1px solid var(--linie); }
.ap-kopf { display: flex; gap: 8px; align-items: center; }
.ap-kopf input { flex: 1; font-weight: 600; }
.ap-masse { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.ap-masse input { width: 56px; padding: 8px 4px; text-align: center; }
.ap-masse select { width: 66px; padding: 8px 6px; }
.ap-masse input[hidden] + .ap-mal-b, .ap-masse input[hidden] { display: none; }
.ap-mal { color: var(--grau); font-weight: 700; }
.ap-erg { margin-left: auto; font-weight: 800; color: var(--tint); font-size: 16px; }
.ap-summen { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.ap-summe { background: var(--tint-fl); color: var(--tint); font-weight: 800; border-radius: 12px; padding: 6px 12px; font-size: 15px; }
.ap-checks { display: grid; gap: 2px; }
.ap-check { text-transform: none; letter-spacing: 0; color: var(--text); margin: 0; display: flex; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--linie); font-size: 15px; }
.ap-check input { width: 22px; height: 22px; flex: none; accent-color: var(--tint); }

/* 14.137 Aufnahmezeit unter dem Fundament-Foto */
.foto-zeit { display: block; margin-top: 2px; font-size: 11px; line-height: 1.2; text-align: center; color: var(--grau); }

/* 14.143 Karte „Deine Baustelle“ – große Knöpfe für die Mitarbeiter */
.karte.bh { padding: 12px 14px 12px; border: 1.5px solid var(--tint); }
.bh-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bh-wann { font-size: 13px; font-weight: 700; color: var(--tint); text-transform: uppercase; letter-spacing: .03em; }
.bh-titel { font-size: 22px; font-weight: 800; line-height: 1.2; margin-top: 4px; overflow-wrap: anywhere; }
.bh-adr { color: var(--grau); font-size: 15px; margin: 2px 0 10px; overflow-wrap: anywhere; }
.bh-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bh-knopf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 68px; padding: 8px 6px;
  border-radius: 14px; border: none; background: var(--tint-fl); color: var(--text); font: inherit; font-size: 15px; font-weight: 700;
  text-decoration: none; text-align: center; }
.bh-knopf.haupt { background: var(--tint); color: #fff; }
.bh-sym { font-size: 24px; line-height: 1; }
.bh-notiz { margin-top: 10px; }
.bh-notiz summary { color: var(--tint); font-weight: 600; padding: 4px 0; }
.bh-notiz p { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }

/* 14.152 Herunterziehen = aktualisieren (alle Seiten; seit 14.157 auch die Mail-Liste – ihr altes .ol-zieh ist raus).
   #zieh steht zwischen Kopf und Inhalt und wächst beim Ziehen; --p = 0…1 (wie weit bis zum Auslösen). */
#zieh { height: 0; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
#zieh.weich { transition: height .28s cubic-bezier(.2, .8, .2, 1); }
.zieh-kreis { position: relative; flex: 0 0 auto; width: 28px; height: 28px; margin-bottom: 13px;
  opacity: calc(.2 + var(--p, 0) * .8); transform: scale(calc(.55 + var(--p, 0) * .45)); }
.zieh-ring { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%;
  background: conic-gradient(var(--tint) calc(var(--p, 0) * 1turn), var(--linie) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.4px), #000 calc(100% - 2.8px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.4px), #000 calc(100% - 2.8px));
  transform: rotate(calc(var(--p, 0) * 240deg)); }
#zieh.bereit .zieh-kreis { transform: scale(1.14); transition: transform .16s ease; }
#zieh.laedt .zieh-kreis { opacity: 1; transform: none; transition: transform .16s ease; }
#zieh.laedt .zieh-ring { background: conic-gradient(from 90deg, transparent 0 18%, var(--tint)); animation: ol-dreh .7s linear infinite; }
.zieh-haken { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; background: var(--tint);
  display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.3);
  transition: opacity .16s ease, transform .26s cubic-bezier(.2, 1.5, .4, 1); }
.zieh-haken::before { content: ""; width: 7px; height: 13px; margin-top: -3px; border: solid #fff; border-width: 0 2.6px 2.6px 0;
  border-radius: 1px; transform: rotate(45deg); }
#zieh.fertig .zieh-kreis { opacity: 1; transform: none; }
#zieh.fertig .zieh-ring { opacity: 0; animation: none; transition: opacity .14s ease; }
#zieh.fertig .zieh-haken { opacity: 1; transform: none; }
body.zieht { -webkit-user-select: none; user-select: none; cursor: grabbing; }

/* 14.159 Einsatzplanung: Zeile „sichtbar für …“ auf der Baustellen-Karte (nur Admin) und Hinweis im Termin-Blatt */
.bh-wer { display: block; width: 100%; margin: 8px 0 2px; padding: 7px 10px; min-height: 0; border: 0; border-radius: 10px; text-align: left;
  font-size: 14px; font-weight: 600; background: var(--feld); color: var(--grau, #6e6e73); }
.bh-wer.an { background: var(--tint-fl); color: var(--tint); }
.werhinweis { margin: -4px 2px 10px; color: var(--grau, #6e6e73); }

/* 14.157 Derselbe Kreis auch in der Mail-Liste: dort liegt er im Platzhalter .zieh-platz direkt unter der Kopfleiste. */
.zieh-platz { display: block; background: var(--ol-hg); }
/* Kleiner Kreis, wenn die App von selbst nachlädt (Seite stand schon aus dem Speicher da): schwebt unter dem Kopf,
   verschiebt nichts. .laedt = dreht sich, .fertig = grüner Haken. */
#frisch { position: fixed; left: 50%; top: 56px; z-index: 40; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%;
  background: var(--karte); box-shadow: 0 2px 10px rgba(0, 0, 0, .2), 0 0 0 .5px rgba(0, 0, 0, .08);
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  opacity: 0; transform: translateY(-16px) scale(.5); transition: opacity .18s ease, transform .26s cubic-bezier(.2, .8, .2, 1); }
#frisch.an { opacity: 1; transform: none; }
#frisch .zieh-kreis { width: 20px; height: 20px; margin: 0; opacity: 1; transform: none; }
#frisch .zieh-ring { transform: none; }
#frisch.laedt .zieh-ring { background: conic-gradient(from 90deg, transparent 0 18%, var(--tint)); animation: ol-dreh .7s linear infinite; }
#frisch.fertig .zieh-ring { opacity: 0; animation: none; transition: opacity .14s ease; }
#frisch.fertig .zieh-haken { opacity: 1; transform: none; }
#frisch .zieh-haken::before { width: 5px; height: 10px; margin-top: -2px; border-width: 0 2.2px 2.2px 0; }
@media (prefers-reduced-motion: reduce) {
  #zieh.laedt .zieh-ring, #frisch.laedt .zieh-ring { animation-duration: 1.6s; }
  #frisch { transition: opacity .18s ease; transform: none; }
}

/* 14.172 Video/Ton aus Mails direkt in der App */
.video-gross { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: 8px; min-height: 0; }
.video-gross video { width: 100%; max-height: 100%; background: #000; border-radius: 10px; }
.video-gross.ton audio { width: 100%; }
.video-gross .karte { width: 100%; }
.video-lade { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #ddd; font-size: 14px; pointer-events: none; }
/* 14.173 Anhang zuordnen (Projekt, Termin, Kundenakte) + Dateien am Termin */
.ol-anh { width: 262px; }
button.zo-zeile { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--linie, rgba(0,0,0,.08)); font: inherit; color: inherit; }
button.zo-zeile:last-child { border-bottom: 0; }
.zo-sym { flex: 0 0 auto; font-size: 20px; width: 26px; text-align: center; }
.zo-passt { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--tint); background: color-mix(in srgb, var(--tint) 14%, transparent); padding: 2px 8px; border-radius: 99px; }
.knoepfe.senkrecht { flex-direction: column; align-items: stretch; }
.td-liste { margin-top: 10px; border-top: 1px solid var(--linie, rgba(0,0,0,.08)); padding-top: 8px; }
.td-titel { margin-bottom: 4px; }
.td-zeile { display: flex; align-items: center; gap: 4px; }
/* 14.348 Dateien am Termin als kleine Vorschauen */
.td-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.td-kachel { position: relative; min-width: 0; }
button.td-auf { display: flex; flex-direction: column; gap: 4px; width: 100%; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; }
.td-rahmen { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: var(--feld, rgba(120,120,128,.12)); border: 1px solid var(--linie, rgba(0,0,0,.08)); }
.td-bild { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-bild.pdf { object-fit: contain; object-position: top; background: #fff; }
.td-sym .ol-datei { transform: scale(1.4); }
.td-name { font-size: 12px; line-height: 1.25; color: var(--grau, #8e8e93); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.td-knoepfe { position: absolute; top: 4px; right: 4px; display: flex; gap: 2px; }
.td-knoepfe button.ol-ik { width: 30px; height: 30px; min-height: 0; flex: none; border-radius: 15px; color: #fff; background: rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.td-knoepfe button.ol-ik svg { width: 18px; height: 18px; }
.tt-fest { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linie, rgba(0,0,0,.08)); }
button.td-datei { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; background: none; border: 0; padding: 4px 0; font: inherit; color: inherit; text-align: left; }
/* 14.175 Posteingang am Handy: lange Titel mit … kürzen statt verkleinern */
.post-zeile b.einzeilig, .zo-zeile b.einzeilig { display: block; }

/* 14.176 Scannen wie am iPhone: Seiten-Vorschau + Ecken verschieben */
.scan-streifen { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 2px; -webkit-overflow-scrolling: touch; }
.scan-seite { position: relative; flex: 0 0 auto; width: 72px; height: 96px; min-height: 0; padding: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--linie); background: #fff; }
.scan-seite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-seite span { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; line-height: 1.3; border-radius: 6px; padding: 1px 6px; }
.scan-seite.warn span { background: #b86e00; }
.scan-buehne { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 14px; overflow: hidden; touch-action: none; }
.scan-rahmen { position: relative; display: inline-block; line-height: 0; }
.scan-rahmen img { display: block; max-width: calc(100vw - 28px); max-height: calc(100vh - 250px); max-height: calc(100dvh - 250px); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.scan-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; touch-action: none; overflow: visible; }
.scan-flaeche { fill: rgba(63,191,114,.16); stroke: #3fbf72; stroke-width: 3; vector-effect: non-scaling-stroke; }
.scan-griff { fill: rgba(255,255,255,.9); stroke: #0e8140; stroke-width: 3; vector-effect: non-scaling-stroke; }
.scan-hinweis { color: #ddd; text-align: center; font-size: 14px; margin: 0; padding: 0 14px 6px; }
.scan-leiste { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 8px 12px calc(env(safe-area-inset-bottom) + 10px); background: var(--karte); }
.scan-leiste button { min-height: 0; padding: 8px 12px; }

/* ===================== 14.182 Mail-Liste wie Mergims Vorbild (Bild vom 12.11.) =====================
   Absender halbfett und größer, Betreff dünn und grau, Uhrzeit dünn; innerhalb einer Mail liegen die zwei Zeilen dicht,
   zwischen den Mails ist Luft. Lange Namen enden mit „…“ (werden nicht mehr kleiner gemacht – siehe einpassen in app.js).
   Markierte Mails (Fähnchen) haben einen hellgelben Grund. Farben und Kopf bleiben wie besprochen. */
:root { --ol-markiert: #fdf6dc; }
:root[data-modus="warm"] { --ol-markiert: #f6e9c6; }
:root[data-modus="dunkel"] { --ol-markiert: #332b12; }
@media (prefers-color-scheme: dark) { :root:not([data-modus]) { --ol-markiert: #332b12; } }
.ol-liste { padding-top: 6px; }
a.ol-zeile { padding: 4px 16px 4px 26px; }                 /* 4 + 21 + 19 + 4 = 48 px je Mail (Vorbild: 47) */
.ol-zeile .ol-z1 { align-items: baseline; gap: 10px; }
.ol-zeile .ol-z2 { align-items: center; gap: 10px; min-height: 19px; }
.ol-zeile .ol-von { font-size: 17px; line-height: 21px; font-weight: 600; letter-spacing: -.012em; }
.ol-zeile .ol-zeit { font-size: 14.5px; line-height: 21px; font-weight: 400; }
.ol-zeile .ol-betreff { font-size: 15px; line-height: 19px; font-weight: 400; color: var(--ol-grau); }
.ol-zeile .ol-icons { gap: 9px; }
.ol-zeile .ol-icons svg { width: 19px; height: 19px; stroke-width: 1.7; }
.ol-anz { height: 19px; min-width: 20px; padding: 0 4px; font-size: 13px; border-radius: 5px; }
a.ol-zeile.ungelesen .ol-von { font-weight: 700; }
a.ol-zeile.ungelesen .ol-betreff { font-weight: 600; color: var(--ol-text); }
a.ol-zeile.ungelesen::before { top: 7px; bottom: 7px; }
a.ol-zeile.markiert { background: var(--ol-markiert); }
a.ol-zeile.markiert:active, a.ol-zeile.markiert.gewaehlt { background: var(--ol-wahl); }
a.ol-zeile .ol-haken { left: 14px; }
body.ol-waehlen a.ol-zeile { padding-left: 54px; }

/* ===================== 14.185 „Noch zu überweisen“ (Rechnungen von Lieferanten) ===================== */
.zahl-zeile { align-items: flex-start; }
.zahl-zeile .haupt b { display: block; font-size: 15px; font-weight: 600; }
.zahl-zeile .zahl-betrag { flex: 0 0 auto; white-space: nowrap; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.zahl-zeile .zahl-rot, .zahl-kopf .zahl-rot, a.zahl-neu .zahl-rot { color: var(--rot); font-weight: 600; }
.zahl-zeile .zahl-gelb, .zahl-kopf .zahl-gelb, a.zahl-neu .zahl-gelb { color: var(--gelb); font-weight: 600; }
.zahl-kopf { text-align: center; padding: 2px 0 10px; }
.zahl-kopf .zahl-summe { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.zahl-daten { margin: 0 0 10px; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.zahl-daten > div { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--linie); font-size: 15px; }
.zahl-daten > div:last-child { border-bottom: 0; }
.zahl-daten span { flex: 0 0 78px; color: var(--grau); font-size: 14px; }
.zahl-daten b { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.zahl-bisher { margin: 0 0 10px; }
.zahl-bisher div { padding-top: 2px; }
.zahl-gut { text-align: center; padding: 10px 0; margin: 0; color: var(--tint); font-weight: 600; }
.zahl-fuss { margin: 2px 4px 10px; }
/* 14.309 Konto: letzte Buchungen */
.bank-kopf .klein { display: block; }
.zahl-zeile .bank-ein { color: var(--tint); }
.marke.bank-neu { margin-right: 7px; font-size: 12px; padding: 1px 8px; vertical-align: 1px; }
.bank-zweck { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
a.zahl-neu { display: block; color: inherit; border-left: 4px solid var(--rot); }
a.zahl-neu.ruhig { border-left-color: var(--tint); }
a.zahl-neu b { display: block; margin: 1px 0 3px; }
a.zahl-neu .zahl-pos { display: flex; gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.5; }
a.zahl-neu .zahl-pos .einzeilig { flex: 1; min-width: 0; }
a.zahl-neu .zahl-pos .zahl-wann { color: var(--grau); }
a.zahl-neu .zahl-pos .zahl-eur { flex: 0 0 auto; min-width: 76px; text-align: right; font-variant-numeric: tabular-nums; }

/* ===================== 14.189 Skonto und „bis wann überweisen“ ===================== */
.zahl-zeile .zahl-gruen, a.zahl-neu .zahl-gruen { color: var(--tint); font-weight: 600; }
a.zahl-neu .zahl-pos .zahl-firma { flex: 1; min-width: 0; overflow-wrap: anywhere; }
a.zahl-neu .zahl-pos .zahl-status { flex: 0 0 auto; white-space: nowrap; }
.zahl-skonto { margin: 0 0 6px; font-size: 15px; line-height: 1.35; font-weight: 600; text-align: center; }
.zahl-skonto.zahl-gruen { color: var(--tint); }
.zahl-skonto.zahl-gelb { color: var(--gelb); }
.zahl-skonto.aus { color: var(--grau); font-weight: 400; }
.zahl-wann-text { margin: 0 0 12px; text-align: center; }

/* ===================== 14.190 Fristenkatalog ===================== */
.zahl-kopf .frist-wann { display: block; font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.frist-zitat { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--feld); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }


/* ==================== 14.195 Nacharbeit: Felder einzeln dazunehmen ==================== */
.karte > button.feld-weg { display: block; margin: 8px 0 0 auto; min-height: 0; padding: 4px 10px; border: 0; background: none; color: var(--grau, #8a8a8e); font-size: 13px; }

/* 14.198 Foto nicht ganz angekommen */
.foto-halb { color: var(--rot, #d70015); font-size: 12px; line-height: 1.3; font-weight: 600; margin-top: 2px; }

/* 14.199 abgeschlossener Fundamentbericht: PDF direkt in der Seite */
.pdf-inline { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.pdf-inline > img { display: block; width: 100%; height: auto; background: #fff; border-radius: 6px; box-shadow: 0 1px 6px rgba(0,0,0,.18); }

/* 14.201 Kundendatei-Verbindung unter Auftraggeber/Kunde */
.kv-status { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--grau); min-height: 0; }
.kv-status:empty { display: none; }
.kv-status.ok { color: var(--tint, #0e8140); font-weight: 600; }
.kv-status.warn { color: #b26a00; }
.kv-status .ag-logo { height: 28px; max-width: 90px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px; }

/* 14.203 Foto auf dem Handy, lädt noch hoch */
.foto-warte { position: relative; }
.foto-warte > img { opacity: .72; }
.foto-warte.laeuft > img { opacity: .85; }
.foto-warte-text { font-size: 12px; line-height: 1.3; font-weight: 600; color: var(--grau); margin-top: 2px; }
.foto-warte.fehler .foto-warte-text { color: var(--rot, #d70015); }
.foto-warte .knoepfe { gap: 6px; margin-top: 4px; }
.foto-warte .knoepfe button { padding: 4px 8px; font-size: 12px; }

/* 14.207 Warteschlange überall (Leistungsbericht, Posteingang, Bon/Scan) */
/* „Nochmal/Verwerfen“ an einem Foto, das nicht hochging: normale kleine Knöpfe (nicht das runde × von .fotos button) */
.fotos .foto-warte .knoepfe button { position: static; width: auto; height: auto; min-height: 30px; padding: 4px 8px; border-radius: 8px;
  background: var(--feld); color: var(--text); font-size: 12px; font-weight: 600; }
.foto-zeile.gross { justify-content: stretch; margin: 0 0 4px; }
.foto-zeile.gross .foto-knoepfe { width: 100%; }
.foto-zeile.gross button.kamera { flex: 1; min-height: 44px; font-size: 16px; }
.zeile .klein.upl-rot { color: var(--rot); }
.upl-knoepfe { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex-shrink: 0; max-width: 55%; margin-left: 8px; }
.upl-knoepfe button { min-height: 0; padding: 6px 10px; font-size: 13px; }
.scan-seite.wartet img { opacity: .7; }

/* 14.218 Berichte ohne Netz: Hinweis oben im Bericht (mit Knopf darunter, wenn etwas nicht ins Büro ging) */
p.hinweis.upl-rot { color: var(--rot); }
.upl-knoepfe.upl-unten { display: flex; justify-content: flex-start; max-width: none; margin: 8px 0 0; }

/* ===================== 14.210 Ungelesen wie Outlook am iPhone (Mergim: „total schlecht zu erkennen … nur etwas dicker
   gedruckt“). Vorbild Outlook: Punkt links in der App-Farbe, Absender + Betreff fett und dunkel, Uhrzeit farbig –
   GELESENE Mails sind gar nicht fett (seit 14.182 war jeder Absender halbfett, deshalb fiel der Unterschied nicht auf). */
a.ol-zeile .ol-von { font-weight: 400; color: var(--ol-text); }
a.ol-zeile .ol-betreff { font-weight: 400; color: var(--ol-grau); }
a.ol-zeile .ol-zeit { font-weight: 400; color: var(--ol-grau); }
a.ol-zeile.ungelesen::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: auto; width: 10px; height: 10px;
  border-radius: 50%; background: var(--ol); }
a.ol-zeile.ungelesen .ol-von { font-weight: 700; color: var(--ol-text); }
a.ol-zeile.ungelesen .ol-betreff { font-weight: 600; color: var(--ol-text); }
a.ol-zeile.ungelesen .ol-zeit { font-weight: 700; color: var(--ol); }
body.ol-waehlen a.ol-zeile.ungelesen::before { left: 40px; }

/* ===================== 14.211 Titel ganz sichtbar + neue Mails grün (Mergim: „Posteingang oben links am P etwas
   abgeschnitten“, „färbe die Schrift von neuen Mails etwas grün“). Der Titel hat overflow:hidden (lange Ordnernamen
   enden mit „…“) – das fette P von Plus Jakarta ragt links etwas über seinen Kasten hinaus und wurde abgeschnitten:
   2 px Innenabstand links, gleich viel Außenabstand zurück (steht an derselben Stelle). */
.ol-titel b { padding-left: 3px; margin-left: -3px; }
a.ol-zeile.ungelesen .ol-von { color: var(--ol); }
a.ol-zeile.ungelesen .ol-betreff { color: color-mix(in srgb, var(--ol) 62%, var(--ol-text)); }

/* ===================== 14.212 OUTLOOK-MASSE (Mergim 13.11.2026: Bild Outlook vs. unsere App – „deutlich übersichtlicher und
   ruhiger … Pixel für Pixel identisch außer das große Posteingang“). Gemessen in iPhone-Punkten (Bild 920 px = 393 pt).
   Hauptunterschied war die Schrift: Outlook nutzt die iPhone-Systemschrift (SF Pro), die Safari selbst richtig sperrt –
   deshalb im ganzen Mail-Bereich -apple-system und KEIN eigenes letter-spacing. Kopf 160 pt, Umschalter 29 pt hoch mit
   15er-Schrift, Zeile 47 pt (Absender 17/21, Betreff 15/18), Text beginnt 28 pt links, rechts 16 pt. Der Knopf für die
   Ordnerleiste fällt weg – wie bei Outlook öffnet das Bild (MB) die Ordner; der Punkt für ungelesene Mails sitzt dort. */
body.ol, body.ol button, body.ol input, body.ol textarea { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif; }
body.ol .ol-zeile .ol-von, body.ol .ol-zeile .ol-betreff, body.ol .ol-zeile .ol-zeit, body.ol .ol-titel { letter-spacing: normal; }
a.ol-zeile { padding: 4px 16px 4px 28px; }
a.ol-zeile .ol-von { font-size: 17px; line-height: 21px; }
a.ol-zeile .ol-zeit { font-size: 15px; line-height: 21px; }
a.ol-zeile .ol-betreff { font-size: 15px; line-height: 18px; }
.ol-zeile .ol-z2 { min-height: 18px; }
a.ol-zeile.ungelesen::before { left: 10px; top: 10px; }
.ol-anz { height: 17px; min-width: 16px; padding: 0 4px; font-size: 13px; line-height: 15px; border-radius: 4px; }
.ol-zeile .ol-icons svg { width: 18px; height: 18px; }
.ol-kopf-gross .ol-lade-knopf { display: none; }
.ol-kopf-gross .ol-av-knopf { position: relative; }
.ol-kopf-gross .ol-av-knopf .ol-punkt { position: absolute; top: -1px; right: -1px; left: auto; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 2px var(--ol); }
.ol-kopf-gross .ol-titel { font-size: 21px; font-weight: 700; }
.ol-kopf-gross .ol-segment { height: 29px; padding: 2px; border-radius: 15px; }
.ol-kopf-gross .ol-segment button { height: 25px; min-height: 0; padding: 0 13px; font-size: 15px; font-weight: 600; line-height: 25px; border-radius: 13px; }
.ol-kopf-gross .ol-filter-text { font-size: 15px; min-height: 0; }
.ol-kopf-gross .ol-filter-text svg { width: 18px; height: 18px; }

/* Kopf-Positionen wie Outlook (pt unter der Statusleiste): Bild-Mitte 23, Bild links 23, Titel ab 63, Glocke/Suche 105 × 42
   rechts 16, Umschalter-Mitte 77, Kopfende 101; Zeile 47. */
.ol-kopf.ol-kopf-gross { padding: calc(2px + env(safe-area-inset-top)) 16px 10px 16px; }
.ol-kopf-gross .ol-kopf-reihe { min-height: 42px; height: 42px; }
.ol-kopf-gross .ol-av-knopf { margin-left: 7px; height: 42px; }
.ol-kopf-gross .ol-titel { margin-left: 4px; }
.ol-kopf-gross .ol-pille { height: 42px; width: 105px; justify-content: space-evenly; padding: 0; }
.ol-kopf-gross .ol-kopf-reihe.zwei { min-height: 29px; height: 29px; margin-top: 18px; }
.ol-kopf-gross .ol-segment button { padding: 0 7px; }
a.ol-zeile { padding-bottom: 3px; }
.ol-liste { padding-top: 0; }                               /* erste Mail direkt unter dem Kopf (Outlook) */

/* ===================== 14.213 „Neue E-Mail“ wie Outlook: ein runder Knopf, 60 pt, 21 pt vom rechten Rand (Entwürfe-Knopf
   entfällt – Entwürfe über die Ordner). Höhe über der Leiste bleibt wie bisher. */
.ol-schweber.rund { right: 21px; width: 60px; height: 60px; padding: 0; gap: 0; border-radius: 50%; justify-content: center; align-items: center;
  background: var(--karte, #fff); border: 1px solid var(--ol-glas-rand); box-shadow: 0 4px 16px rgba(0,0,0,.16); }
.ol-schweber.rund button.ol-ik { width: 60px; height: 60px; flex-basis: 60px; border-radius: 50%; background: transparent; color: var(--ol-text); }
.ol-schweber.rund button.ol-ik svg { width: 28px; height: 28px; stroke-width: 1.7; }

/* ===================== 14.214 „P“ von „Posteingang“ am iPhone ganz sichtbar (Mergim: „immer noch abgeschnitten, sonst
   rück es etwas weiter nach rechts“). Der Titel ist ein <button>; Safari schneidet bei Knöpfen alles ab, was über den
   Knopf hinausragt – der Ausgleich aus 14.211 (margin-left −3 px) schob das P genau dorthin (Chrome schneidet nicht, deshalb
   sah es im Test richtig aus). Jetzt: kein negativer Rand, echte Luft innen, Titel 4 pt weiter rechts. */
.ol-titel { overflow: visible; }
.ol-titel b { margin-left: 0; padding-left: 4px; padding-right: 2px; }
.ol-kopf-gross .ol-titel { margin-left: 4px; padding-left: 0; }

/* 14.232 Auftragsart Fundament + Gerät am Termin: welche Pumpe mit den wichtigsten Maßen (antippen = nur dieser Plan) */
.bh-geraet { display: block; margin: 8px 0 2px; padding: 9px 11px; border-radius: 12px; background: var(--tint-fl); color: inherit;
  text-decoration: none; }
.bh-geraet.offen { color: var(--grau); font-size: 14px; }
.bh-g-name { font-size: 15px; line-height: 1.3; }
.bh-g-zusatz { font-size: 13px; color: var(--grau); margin-top: 1px; }
.bh-g-mass { font-size: 14px; margin-top: 4px; color: var(--tint); }
.geraet-wahl { width: 100%; }
.geraet-info { margin: 6px 0 0; color: var(--tint); }

/* ---------------------------------------------------------------- Mitarbeiter-App: Termine (Aufbau wie ToolTime)
   Großer Titel, Segment Geplant/Überfällig/Dokumentiert, ruhige weiße Karten, runder Plus-Knopf; Termin mit Karte oben. */
body.tt-seite #titel { opacity: 0; }
.tt-gross { font-size: 32px; font-weight: 700; letter-spacing: -.5px; margin: 4px 2px 12px; }
.tt-seg { display: flex; gap: 22px; border-bottom: 1px solid var(--linie); margin: 0 2px 6px; }
.tt-seg button { position: relative; background: none; border: 0; border-radius: 0; min-height: 0; padding: 8px 0 9px; font-size: 15px;
  font-weight: 600; color: var(--grau); }
.tt-seg button.an { color: var(--text); box-shadow: inset 0 -2.5px 0 var(--text); }
.tt-punkt { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rot); margin-left: 5px; vertical-align: 2px; }
.tt-tag { font-size: 15px; color: var(--text); margin: 18px 2px 8px; }
.tt-tag b { font-weight: 600; }
.tt-karte { display: block; background: var(--karte); border-radius: 14px; padding: 13px 14px 12px; margin: 0 0 10px; color: var(--text);
  text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 10px rgba(0,0,0,.05); }
.tt-k-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tt-zeit { font-size: 15px; font-variant-numeric: tabular-nums; }
.tt-chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px; white-space: nowrap; }
.tt-chip.blau { background: rgba(10,132,255,.12); color: #0a6fd6; }
.tt-chip.gelb { background: var(--gelb-fl); color: var(--gelb); }
.tt-chip.rot { background: var(--rot-fl); color: var(--rot); }
.tt-chip.gruen { background: var(--tint-fl); color: var(--tint); }
.tt-k-titel { font-size: 18px; font-weight: 700; margin-top: 9px; line-height: 1.25; }
.tt-k-adr { font-size: 14px; color: var(--grau); margin-top: 3px; }
.tt-k-geraet { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--tint); margin-top: 7px; }
.tt-k-geraet .sym { width: 17px; height: 17px; }
.tt-leer { text-align: center; color: var(--grau); padding: 50px 10px; font-size: 16px; }
.tt-plus { position: fixed; right: 18px; bottom: calc(84px + env(safe-area-inset-bottom)); width: 56px; height: 56px; min-height: 0;
  border-radius: 16px; border: 0; padding: 0; background: var(--tint); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); z-index: 5; }
.tt-plus .sym { width: 26px; height: 26px; stroke: #fff; }
/* Termin-Seite */
.tt-kopf { position: relative; margin: -8px -12px 0; }
.tt-karte-bild, .tt-karte-leer { display: block; width: 100%; height: 230px; object-fit: cover; background: var(--feld); }
.tt-kunde { position: absolute; left: 12px; right: 12px; bottom: -34px; display: flex; align-items: center; gap: 10px;
  background: var(--karte); border-radius: 14px; padding: 11px 12px; box-shadow: 0 2px 14px rgba(0,0,0,.14); }
.tt-kunde-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.tt-kunde-text b { font-size: 15px; }
.tt-grau { color: var(--grau); }
.tt-rund { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; text-decoration: none; }
.tt-rund .sym { width: 22px; height: 22px; stroke: #fff; }
.tt-rund.gruen { background: #34c759; }
.tt-rund.tint { background: #0a84ff; }
.tt-rund.play { background: #ff9500; border: 0; padding: 0; cursor: pointer; }   /* 14.362 Bericht starten */
.tt-rund.play .sym { fill: #fff; stroke-linejoin: round; }
.tt-rund.play:disabled { opacity: .5; }
.tt-blatt { background: var(--karte); border-radius: 18px 18px 0 0; margin: 46px -12px 0; padding: 16px 16px 30px; min-height: 50vh; }
.tt-titel { font-size: 24px; font-weight: 700; margin: 8px 0 10px; line-height: 1.2; }
.tt-reiter { display: flex; gap: 22px; border-bottom: 1px solid var(--linie); margin-bottom: 14px; }
.tt-reiter button { background: none; border: 0; border-radius: 0; min-height: 0; padding: 8px 0 9px; font-size: 15px; font-weight: 600; color: var(--grau); }
.tt-reiter button.an { color: var(--text); box-shadow: inset 0 -2.5px 0 var(--text); }
.tt-gross-knopf { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; font-size: 17px;
  font-weight: 600; border-radius: 14px; }
.tt-gross-knopf .sym { width: 22px; height: 22px; }
.tt-gross-knopf.haupt .sym { stroke: #fff; }
.tt-hinweis { color: var(--grau); font-size: 14px; margin: 10px 2px; }
.tt-feld { padding: 4px 0 12px; border-bottom: 1px solid var(--linie); margin-bottom: 12px; font-size: 15px; }
.tt-f-titel { font-size: 13px; font-weight: 600; color: var(--grau); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 4px; }
.tt-geraet { margin-bottom: 10px; font-size: 16px; }
.tt-link { display: inline-block; margin: 6px 2px; color: var(--tint); font-weight: 600; text-decoration: none; }
.tt-seg button:focus, .tt-reiter button:focus { outline: none; }
.tt-seg button:focus-visible, .tt-reiter button:focus-visible { outline: 2px solid var(--tint); }

/* ===================== 14.242 Admin-App im Aufbau der Mitarbeiter-App (ToolTime-Stil) =====================
   Bereichs-Kopf (#hubkopf, steht zwischen Kopf und Inhalt): Datum (nur Start), großer Titel, Reiter. Der schmale Kopf oben
   ist dort durchsichtig und zeigt den kleinen Titel erst, wenn der große weggerollt ist (wie bei iOS). */
#hubkopf { max-width: 700px; margin: 0 auto; padding: 0 10px; }
#hubkopf .tt-gross { margin: 2px 2px 8px; overflow-wrap: anywhere; }
.hub-datum { margin: 4px 2px 0; font-size: 13px; font-weight: 600; color: var(--grau); text-transform: uppercase; letter-spacing: .3px; }
.hub-seg { position: relative; gap: 18px; margin-bottom: 2px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.hub-seg::-webkit-scrollbar { display: none; }
.hub-seg button { flex: 0 0 auto; }
.hub-zahl { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 5px; border-radius: 9px; background: var(--feld); color: var(--grau);
  font-size: 12px; font-weight: 600; line-height: 18px; text-align: center; vertical-align: 1px; }
.hub-zahl.rot { background: var(--rot); color: #fff; }
body.hub #titel { opacity: 0; transition: opacity .15s; }
body.hub.hub-gerollt #titel { opacity: 1; }
body.hub:not(.hub-gerollt) #kopf { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.hub-plus main { padding-bottom: 72px; }                 /* die letzte Zeile lässt sich über das Plus rollen */
body.leiste-zwei .tt-plus { bottom: calc(148px + env(safe-area-inset-bottom)); }
#suchknopf { order: 4; display: flex; align-items: center; min-height: 28px; padding: 0 0 0 10px; border: 0; border-radius: 0; background: none; color: var(--tint); }
#suchknopf .sym { width: 23px; height: 23px; }
/* Karten: Zeile „wer sieht den Termin“, Listen in einer Karte, „Mehr“ */
.tt-karte > .tt-k-titel:first-child { margin-top: 0; }
.tt-wer { display: block; width: 100%; margin: 9px 0 0; padding: 6px 10px; min-height: 0; border: 0; border-radius: 9px; text-align: left;
  font-size: 13px; font-weight: 600; background: var(--gelb-fl); color: var(--gelb); }
.tt-wer.an { background: var(--tint-fl); color: var(--tint); }
.tt-karte.as-liste { padding: 2px 14px; }
.tt-karte.as-liste .zeile .haupt b { font-size: 16px; }
.mehr-zeile .sym { flex: 0 0 23px; width: 23px; height: 23px; color: var(--tint); }
/* Plus-Blatt: Kacheln auf dem Blatt, die passende zum Bereich vorn und grün */
.plus-raster { margin: 10px 0 4px; }
.blatt .widget { background: var(--blatt-feld); min-height: 74px; justify-content: center; }
.plus-raster .widget.vorn { background: var(--tint); color: #fff; }
.hub-seg.eng { gap: 13px; }
.hub-seg.eng button { font-size: 14px; }
.tt-kopf { margin-left: -10px; margin-right: -10px; }       /* 14.239 zog 12 px nach außen bei 10 px Seitenrand → Seite ließ sich 2 px quer schieben */
.tt-blatt { margin-left: -10px; margin-right: -10px; }

/* ===================== 14.243 Start der Jungs: was über den Terminen steht (ttOben in 02_start.js) =====================
   Nachrichten vom Chef, „Läuft gerade“, Feierabend, Mitteilungen – nur da, wenn es etwas gibt. */
.tt-oben .karte { border-radius: 14px; padding: 4px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 10px rgba(0,0,0,.05); }   /* „Nicht im Büro angekommen“: wie die Karten der Seite */
.tt-oben .tt-tag { margin-top: 6px; }
.to-nachricht { padding-top: 9px; box-shadow: inset 3px 0 0 var(--tint), 0 1px 2px rgba(0,0,0,.05), 0 2px 10px rgba(0,0,0,.05); }   /* grüner Rand links: kommt vom Chef */
.to-nachricht .tt-k-kopf { min-height: 36px; }
/* 14.263 „Nicht vergessen“ auf dem Admin-Start: Erinnerungen und angeheftete Notizen, ein Tipp hakt ab */
.merk-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.merk-kopf .klein-knopf { margin: 0; white-space: nowrap; }
.merk .zeile a.haupt { color: inherit; text-decoration: none; }
.merk-ok, .zeile .merk-ok { flex: 0 0 40px; width: 40px; min-height: 40px; padding: 0; border-radius: 50%; background: var(--feld); color: var(--tint); font-size: 19px; font-weight: 600; }
.merk-weg b { text-decoration: line-through; color: var(--grau); font-weight: 400; }
.merk .klein.rot { color: var(--rot); }
.to-fehlt { box-shadow: inset 3px 0 0 var(--rot), 0 1px 2px rgba(0,0,0,.05), 0 2px 10px rgba(0,0,0,.05); }   /* 14.256 roter Rand: Feierabend fehlt */
.to-text { font-size: 16px; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.to-nachricht .to-text { margin-top: 3px; }
.to-knopf, .zeile .to-knopf { flex: 0 0 auto; min-height: 36px; padding: 0 14px; white-space: nowrap; }   /* (.zeile .haupt würde den grünen Knopf sonst mitwachsen lassen) */
.to-knopf.haupt { min-height: 40px; }
.to-alt { display: block; margin: -2px 2px 10px; padding: 2px 0; min-height: 0; border-radius: 0; background: none; color: var(--grau);
  font-size: 13px; font-weight: 400; text-decoration: underline; }

/* 14.264 Notizen (06_notizen.js): Suche + Ordner-Chips, Liste mit Vorschau/Foto, die Notiz als freies Blatt mit Leiste */
.nz-kopf { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.nz-kopf .nz-suche { flex: 1; }
.nz-sort { flex: 0 0 40px; height: 40px; border: 0; border-radius: 10px; background: var(--feld); color: var(--tint); font-size: 18px; }
.nz-chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.nz-chips::-webkit-scrollbar { display: none; }
.nz-chip { flex: 0 0 auto; border: 0; border-radius: 16px; padding: 6px 12px; min-height: 32px; background: var(--feld); color: var(--text);
  font-size: 14px; white-space: nowrap; }
.nz-chip.an { background: var(--tint); color: #fff; font-weight: 600; }
.nz-chip.nz-plus { background: none; color: var(--tint); }
.nz-zahl { margin-left: 6px; opacity: .6; font-size: 12px; }
.nz-zeile { min-height: 58px; }
.nz-titel { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.zeile .nz-vor { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.zeile .nz-wann { color: var(--text); }
.zeile .nz-ordner { font-size: 12px; margin-top: 1px; }
.nz-bild { width: 46px; height: 46px; flex: 0 0 46px; object-fit: cover; border-radius: 6px; }
.nz-hinweis, .nz-anzahl { text-align: center; margin: 6px 0 10px; }
.nz-neu { position: fixed; right: 18px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 4; width: 54px; height: 54px;
  border-radius: 27px; border: 0; background: var(--tint); color: #fff; font-size: 24px; box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.nz-leiste { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 2px; margin: -8px -10px 0; padding: 4px 10px;
  background: var(--leiste); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--linie); }
.nz-lk { flex: 1; min-height: 40px; border: 0; background: none; color: var(--tint); font-size: 20px; border-radius: 8px; padding: 0; }
.nz-lk.nz-aa { font-weight: 600; font-size: 19px; }
.nz-stand { text-align: center; margin: 6px 0; font-size: 12px; }
.nz-blatt { background: var(--karte); border-radius: 12px; padding: 10px 14px 14px; margin-bottom: 30vh; }
.nz-text { outline: none; min-height: 60vh; font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.nz-text > :first-child { margin-top: 0; }
.nz-text h1 { font-size: 26px; line-height: 1.2; margin: 4px 0 6px; font-weight: 700; }
.nz-text h2 { font-size: 21px; line-height: 1.25; margin: 10px 0 4px; font-weight: 700; }
.nz-text h3 { font-size: 18px; margin: 8px 0 2px; font-weight: 600; }
.nz-text p, .nz-text div { margin: 0; }
.nz-text ul, .nz-text ol { margin: 2px 0; padding-left: 26px; }
.nz-text ul.check { list-style: none; padding-left: 0; }
.nz-text ul.check li { position: relative; padding: 2px 0 2px 32px; min-height: 28px; }
.nz-text ul.check li::before { content: ""; position: absolute; left: 1px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--haken); box-sizing: border-box; }
.nz-text ul.check li.checked { color: var(--grau); }
.nz-text ul.check li.checked::before { background: var(--tint); border-color: var(--tint); }
.nz-text ul.check li.checked::after { content: ""; position: absolute; left: 8px; top: 8px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nz-text blockquote { margin: 4px 0; padding-left: 12px; border-left: 3px solid var(--linie); color: var(--grau); }
.nz-text pre { font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace; background: var(--feld); padding: 8px 10px; border-radius: 8px;
  white-space: pre-wrap; margin: 4px 0; }
.nz-text mark, .nz-f-gelb { background: rgba(253,214,90,.75); color: inherit; border-radius: 3px; }
.nz-text mark.lila, .nz-f-lila { background: rgba(196,160,250,.6); }
.nz-text mark.rosa, .nz-f-rosa { background: rgba(250,160,200,.6); }
.nz-text mark.orange, .nz-f-orange { background: rgba(253,175,100,.65); }
.nz-text mark.mint, .nz-f-mint { background: rgba(120,225,180,.6); }
.nz-text mark.blau, .nz-f-blau { background: rgba(140,190,250,.6); }
.nz-text table { border-collapse: collapse; width: 100%; margin: 6px 0; }
.nz-text td, .nz-text th { border: 1px solid var(--linie); padding: 6px; vertical-align: top; min-width: 44px; }
.nz-text img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 6px 0; }
.nz-text hr { border: 0; border-top: 1px solid var(--linie); margin: 10px 0; }
.nz-text a { color: var(--tint); text-decoration: underline; }
.nz-stile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.nz-stil { min-height: 46px; border: 0; border-radius: 10px; background: var(--blatt-feld); color: var(--text); font-size: 15px; padding: 2px 4px; }
.nz-s-h1 { font-size: 19px; font-weight: 700; }
.nz-s-h2 { font-size: 16px; font-weight: 700; }
.nz-s-h3 { font-weight: 600; }
.nz-s-pre { font-family: ui-monospace, Menlo, Consolas, monospace; }
.nz-s-blockquote { color: var(--grau); }
.nz-zeichen, .nz-farben { display: flex; gap: 6px; margin-top: 10px; }
.nz-zeichen .nz-lk { background: var(--blatt-feld); color: var(--text); font-size: 17px; }
.nz-b { font-weight: 800; }
.nz-i { font-style: italic; }
.nz-u { text-decoration: underline; }
.nz-s { text-decoration: line-through; }
.nz-farben .nz-lk { flex: 0 0 38px; width: 38px; height: 38px; min-height: 38px; border-radius: 19px; }
.nz-farben .nz-lk:last-child { background: var(--blatt-feld); color: var(--grau); font-size: 15px; }
.nz-wahl { width: 100%; text-align: left; background: none; border: 0; border-bottom: .5px solid var(--linie); color: var(--text); font-size: 16px; }
.nz-wahl:last-child { border-bottom: 0; }
.nz-wahl.an { color: var(--tint); font-weight: 600; }
.nz-wahl.rot { color: var(--rot); }

/* 14.295 Rote Zahlen in der Leiste unten + Pop-up bei neuer Mail (06_neues.js) */
#leiste a { position: relative; }
.l-zahl { position: absolute; top: 1px; left: calc(50% + 3px); min-width: 18px; max-width: 28px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--rot); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; letter-spacing: -.2px;
  box-shadow: 0 0 0 1.5px var(--karte); pointer-events: none; }
#neu-pop { position: fixed; left: 12px; right: 12px; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 29; display: flex; align-items: center;
  max-width: 460px; margin: 0 auto; padding: 8px 6px 8px 10px; border-radius: 20px; background: var(--karte); color: var(--text);
  border: 1px solid var(--linie); box-shadow: 0 10px 30px rgba(0,0,0,.22); opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .22s, transform .22s; }
#neu-pop.an { opacity: 1; transform: none; pointer-events: auto; }
body.leiste-zwei #neu-pop { bottom: calc(164px + env(safe-area-inset-bottom)); }
body.ol-voll #neu-pop { bottom: calc(76px + env(safe-area-inset-bottom)); }
.neu-pop-haupt { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.neu-pop-haupt .ol-av { width: 38px; height: 38px; flex: 0 0 38px; font-size: 14px; color: #fff; font-weight: 700; }
.neu-pop-n { background: var(--rot); }
.neu-pop-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.neu-pop-text b, .neu-pop-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.neu-pop-text b { font-size: 15px; }
.neu-pop-text span { font-size: 13.5px; color: var(--grau); }
.neu-pop-zu { flex: 0 0 auto; width: 36px; height: 36px; border: 0; border-radius: 18px; background: none; color: var(--grau); font-size: 22px; line-height: 1; padding: 0; }

/* 14.300 Kundenliste (Admin) und große Knöpfe auf der Karte des Kunden */
.kl-zahl { margin: 6px 2px 0; }
.kl-zeile a.haupt { color: inherit; text-decoration: none; padding: 2px 0; }
.kl-zeile a.haupt:active { opacity: .55; }
.kl-zeile .kl-rund { width: 38px; height: 38px; border-radius: 19px; }
.kl-zeile .kl-rund .sym { width: 19px; height: 19px; }
.kl-buchstabe { font-weight: 700; margin-top: 12px; }
.kl-buchstabe:first-child { margin-top: 0; }
.kl-aktionen { display: flex; gap: 6px; margin: 10px 0 8px; }
.kl-aktion { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px 8px; border-radius: 14px;
  background: var(--feld); color: var(--text); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.kl-aktion:active { opacity: .55; }
.kl-aktion .tt-rund { width: 40px; height: 40px; border-radius: 20px; }
/* 14.316 Aufträge der Mitarbeiter (Admin-Ansicht): rotes M oben rechts wie eine Mitteilungs-Zahl (vorher orange, 14.314) */
.tt-karte.jungs, .karte.bh.jungs { position: relative; }
.m-badge { position: absolute; top: -7px; right: -5px; z-index: 2; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; letter-spacing: .5px;
  background: #ff3b30; color: #fff; font-size: 13px; font-weight: 700; line-height: 22px; text-align: center;
  box-shadow: 0 0 0 2px var(--hg, #fff); pointer-events: none; }
.m-badge.inline { position: static; display: inline-block; vertical-align: 3px; margin-left: 8px; box-shadow: none; }
.tt-titel .m-badge.inline { vertical-align: 4px; }
.m-badge.mini { position: absolute; top: 1px; right: 1px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px;
  font-size: 9px; line-height: 14px; box-shadow: none; }
.kal-chip.jungs { position: relative; padding-right: 18px; }
.kal-ev.jungs { padding-right: 16px; }
/* 14.317 Plantafel: Zeilen = Offen/Mergim/Mitarbeiter, Spalten = Tage; waagerecht wischen, Namen bleiben links */
.pt-leiste { align-items: center; }
.pt-kw { flex: 1; text-align: center; font-size: 14px; white-space: nowrap; }
.pt-hinweis { margin: 4px 2px 8px; }
.pt-scroll { overflow-x: auto; padding: 0 0 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pt-scroll::-webkit-scrollbar { display: none; }
.pt-tafel { display: grid; gap: 4px; width: max-content; }
.pt-ecke, .pt-name { position: sticky; left: 0; z-index: 2; background: var(--hg); }
.pt-name { display: flex; align-items: flex-start; padding: 10px 4px 0 2px; font-size: 13px; font-weight: 700; color: var(--text);
  box-shadow: 6px 0 6px -6px rgba(0, 0, 0, .25); }
.pt-name.offen { color: #ff3b30; }
.pt-name.ich { color: var(--tint); }
.pt-tagkopf { text-align: center; font-size: 12px; color: var(--grau, #8e8e93); padding: 2px 0 4px; }
.pt-tagkopf b { display: block; font-size: 15px; color: var(--text); }
.pt-tagkopf.heute b { color: var(--tint); }
.pt-tagkopf.vorbei, .pt-zelle.vorbei { opacity: .55; }
.pt-zelle { min-height: 64px; background: var(--karte); border-radius: 10px; padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.pt-zelle.offen { background: rgba(255, 59, 48, .07); }
.pt-zelle.heute { box-shadow: inset 0 0 0 1.5px var(--tint); }
.pt-karte { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; padding: 5px 6px;
  border: 0; border-left: 3px solid; border-radius: 6px; background: var(--feld); color: var(--text); font: inherit; cursor: pointer; }
.pt-karte b { font-size: 12.5px; line-height: 1.25; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; }
.pt-zeit { font-size: 11px; color: var(--grau, #8e8e93); font-variant-numeric: tabular-nums; }
.pt-ort, .pt-mit { font-size: 11px; color: var(--grau, #8e8e93); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.pt-mit { color: var(--tint); }
.pt-karte { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.pt-karte.pt-weg { opacity: .3; }
.pt-geist { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; margin: 0; transform-origin: 0 0;
  background: linear-gradient(var(--feld), var(--feld)), var(--karte); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.pt-tafel.zieht .pt-plus { visibility: hidden; }
.pt-zelle.ziel { box-shadow: inset 0 0 0 2px var(--tint); background: color-mix(in srgb, var(--tint) 12%, var(--karte)); }
.pt-plus { margin-top: auto; align-self: stretch; border: 1px dashed var(--linie, rgba(128,128,128,.4)); background: none; color: var(--grau, #8e8e93);
  border-radius: 6px; font-size: 16px; line-height: 22px; padding: 0; cursor: pointer; }
/* 14.323 Nichts darf seitlich aus dem Bild rutschen (Mergim 20.11.: Konto/Büro „manchmal so ein bisschen aus dem Frame“):
   ist irgendwo etwas breiter als das Handy, ließ sich am iPhone die ganze Seite seitlich verschieben. clip statt hidden,
   damit Kopf und Leisten (position: sticky) weiter oben kleben; eigene Wisch-Streifen (Reiter, Plantafel) bleiben wischbar. */
html, body { overflow-x: clip; overscroll-behavior-x: none; }
#inhalt { max-width: 100%; }

/* ---------------------------------------------------------------- 14.331 Bewegung (Recherche: Rückmeldung ~100 ms, Blätter rein
   280 ms / raus 200 ms, rein ease-out cubic-bezier(.2,0,0,1), raus cubic-bezier(.3,0,.8,.15), nie über 300 ms, nie blockierend).
   „Bewegung reduzieren“ (html.ruhig oder die Einstellung des Handys): nichts verschiebt/vergrößert sich, nur Überblenden ≤ 150 ms. */
/* Blatt weich schließen (zu() in 01_grund.js setzt .zu, entfernt nach der Bewegung) */
.schleier.zu { pointer-events: none; animation: schleier-aus .2s cubic-bezier(.3,0,.8,.15) forwards; }
.schleier.zu .blatt { animation: blatt-runter .2s cubic-bezier(.3,0,.8,.15) forwards; }
@keyframes schleier-aus { to { background: rgba(0,0,0,0); } }
@keyframes blatt-runter { to { transform: translateY(100%); } }
/* Knöpfe: Ring, wenn es dauert · Haken, wenn es geklappt hat · Schütteln bei einem Fehler */
button.laeuft, button.ok { position: relative; }
button.laeuft:disabled { opacity: .8; }
button.laeuft::after { content: ""; position: absolute; right: 3px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: knopf-dreh .7s linear infinite; }
button.ok::after { content: ""; position: absolute; right: 6px; top: 50%; width: 5px; height: 10px; margin-top: -7px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); animation: knopf-haken .26s cubic-bezier(.2,1.5,.4,1); }
button.schuettel { animation: knopf-schuettel .24s cubic-bezier(.3,0,.8,.15); }
@keyframes knopf-dreh { to { transform: rotate(360deg); } }
@keyframes knopf-haken { from { opacity: 0; transform: rotate(45deg) scale(.2); } }
@keyframes knopf-schuettel { 20% { transform: translateX(-4px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } 90% { transform: translateX(1px); } }
/* Seitenwechsel: neuer Inhalt blendet ein und rückt 6 px hoch (Kalender/Plantafel nur Überblenden) */
#inhalt.rein { animation: seite-rein .18s cubic-bezier(.2,0,0,1); }
#inhalt.rein-blass { animation: seite-blass .15s ease-out; }
@keyframes seite-rein { from { opacity: 0; transform: translateY(6px); } }
@keyframes seite-blass { from { opacity: 0; } }
/* Skelett statt „Lädt …“ */
.skelett-karte { padding-top: 14px; padding-bottom: 14px; }
.sk-balken { display: block; height: 12px; margin: 6px 0 12px; border-radius: 6px; background: var(--feld); width: 92%; }
.sk-balken:last-child { margin-bottom: 4px; }
.sk-balken.kurz { width: 42%; height: 14px; }
.sk-balken.mittel { width: 68%; }
.sk-balken { background: linear-gradient(90deg, var(--feld) 0%, var(--feld) 35%, var(--linie) 50%, var(--feld) 65%, var(--feld) 100%);
  background-size: 300% 100%; animation: sk-schimmer 1.4s linear infinite; }
@keyframes sk-schimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skelett { position: relative; }
/* „Rückgängig“-Leiste (mitRueckgaengig): sieht aus wie die Sende-Leiste der Mail, ist aber eine eigene (die Mail räumt ihre
   weg); stehen beide da, steht die spätere darüber. Kommt weich herein, geht weich. */
.rueck-balken { position: fixed; left: 10px; right: 10px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 14px; background: rgba(30,30,32,.94);
  color: #fff; font-size: 15px; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: 560px; margin: 0 auto; }
.rueck-balken button { min-height: 34px; padding: 5px 12px; background: rgba(255,255,255,.16); color: #fff; font-weight: 700; }
body.leiste-zwei .rueck-balken { bottom: calc(160px + env(safe-area-inset-bottom)); }
body.ol-voll .rueck-balken, body.ol-waehlen .rueck-balken { bottom: calc(76px + env(safe-area-inset-bottom)); }
.sende-balken ~ .rueck-balken, .rueck-balken ~ .sende-balken { transform: translateY(-58px); }
.rueck-balken { animation: rueck-rein .2s cubic-bezier(.2,0,0,1); }
.rueck-balken.zu { pointer-events: none; animation: rueck-raus .2s cubic-bezier(.3,0,.8,.15) forwards; }
@keyframes rueck-rein { from { opacity: 0; transform: translateY(10px); } }
@keyframes rueck-raus { to { opacity: 0; transform: translateY(10px); } }
/* Gleitende Pille: Umschalter (weiße Fläche) und Reiter (Strich darunter) – Lage kommt aus pille() in 01_grund.js */
.segmente { position: relative; isolation: isolate; }      /* Pille liegt unter den Knöpfen, ohne über anderes zu malen */
.segmente > button { position: relative; z-index: 1; }
.segmente.pille > button.an { background: none; box-shadow: none; }
.segmente.pille::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 0; width: var(--pille-b, 0); border-radius: 8px;
  background: var(--karte); box-shadow: 0 1px 4px rgba(0,0,0,.15); transform: translateX(var(--pille-x, 0)); }
.hub-seg.pille > button.an { box-shadow: none; }
.hub-seg.pille::before { content: ""; position: absolute; left: 0; bottom: 0; height: 2.5px; width: var(--pille-b, 0); background: var(--text);
  transform: translateX(var(--pille-x, 0)); }
.segmente.pille-weich::before, .hub-seg.pille-weich::before { transition: transform .2s cubic-bezier(.2,0,0,1), width .2s cubic-bezier(.2,0,0,1); }
/* Antippen: kurz kleiner (120 ms) · das leuchtende Symbol unten ploppt beim Wechsel · rote Zahlen ploppen, wenn sie steigen */
button, .widget, #leiste a { transition: transform .12s cubic-bezier(.2,0,0,1), opacity .12s ease, background-color .12s ease; }
button:active:not(:disabled), #leiste a:active { transform: scale(.97); }
.pt-geist, .pt-karte.pt-weg { transition: none; }
#leiste a.plopp svg { animation: leiste-plopp .18s cubic-bezier(.2,0,0,1); }
@keyframes leiste-plopp { 50% { transform: scale(1.12); } }
.l-zahl.plopp { animation: zahl-plopp .22s cubic-bezier(.2,1.5,.4,1); }
@keyframes zahl-plopp { from { transform: scale(.6); } 60% { transform: scale(1.18); } }
/* Weniger Bewegung: alles Verschieben/Vergrößern weg, nur kurzes Überblenden */
html.ruhig .blatt { animation: blass-rein .14s ease-out; }
html.ruhig .schleier.zu .blatt, html.ruhig .rueck-balken.zu { animation: blass-raus .12s ease-in forwards; }
html.ruhig #inhalt.rein, html.ruhig #inhalt.rein-blass { animation: seite-blass .12s ease-out; }
html.ruhig .rueck-balken { animation: blass-rein .12s ease-out; }
html.ruhig button.schuettel, html.ruhig #leiste a.plopp svg, html.ruhig .l-zahl.plopp { animation: none; }
html.ruhig button.ok::after { animation: blass-rein .12s ease-out; }
html.ruhig button:active:not(:disabled), html.ruhig #leiste a:active { transform: none; }
html.ruhig .segmente.pille-weich::before, html.ruhig .hub-seg.pille-weich::before { transition: none; }
html.ruhig .sk-balken { animation: none; background: var(--feld); }
@keyframes blass-rein { from { opacity: 0; } }
@keyframes blass-raus { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .blatt { animation: blass-rein .14s ease-out; }
  .schleier.zu .blatt, .rueck-balken.zu { animation: blass-raus .12s ease-in forwards; }
  #inhalt.rein, #inhalt.rein-blass { animation: seite-blass .12s ease-out; }
  .rueck-balken { animation: blass-rein .12s ease-out; }
  button.schuettel, #leiste a.plopp svg, .l-zahl.plopp { animation: none; }
  button.ok::after { animation: blass-rein .12s ease-out; }
  button:active:not(:disabled), #leiste a:active { transform: none; }
  .segmente.pille-weich::before, .hub-seg.pille-weich::before { transition: none; }
  .sk-balken { animation: none; background: var(--feld); }
}
/* 14.334 Mitteilung, die warten musste (Blatt/Eingabe offen): kleiner 🔔-Knopf oben in der Mitte der Kopfleiste, bis sie
   geöffnet wurde (07_kalender_start.js zielKnopfZeigen). Unter den Blättern (die decken ihn ab), über dem Inhalt. */
#ziel-knopf { position: fixed; top: calc(5px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 15;
  display: flex; align-items: center; gap: 4px; min-height: 26px; padding: 3px 12px; border: 0; border-radius: 13px;
  background: var(--tint); color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .2); animation: ziel-rein .22s cubic-bezier(.2, 0, 0, 1); }
#ziel-knopf:active { opacity: .7; }
@keyframes ziel-rein { from { opacity: 0; transform: translate(-50%, -8px); } }
/* 14.334 Bewegung reduzieren auch bei Meldung, Nachlade-Kreis, Pop-up „Neu“, Mail-Ordnerleiste und Herunterziehen:
   nichts gleitet oder wächst, nur kurzes Überblenden (≤ 150 ms) – Schalter in der App (html.ruhig) UND Einstellung des Handys */
html.ruhig #meldung, html.ruhig #meldung.an { transform: translate(-50%, 0); transition: opacity .15s ease; }
html.ruhig #frisch, html.ruhig #frisch.an { transform: none; transition: opacity .15s ease; }
html.ruhig #neu-pop, html.ruhig #neu-pop.an { transform: none; transition: opacity .15s ease; }
html.ruhig .ol-lade, html.ruhig .ol-lade-hg.auf .ol-lade { transform: none; transition: opacity .15s ease; }
html.ruhig .ol-lade { opacity: 0; }
html.ruhig .ol-lade-hg.auf .ol-lade { opacity: 1; }
html.ruhig .ol-lade-hg { transition: background .15s ease; }
html.ruhig .zieh-kreis, html.ruhig #zieh.bereit .zieh-kreis, html.ruhig #zieh.laedt .zieh-kreis { transform: none; transition: none; }
html.ruhig .zieh-haken { transform: none; transition: opacity .15s ease; }
html.ruhig #zieh.weich { transition: none; }
html.ruhig #ziel-knopf { animation: blass-rein .12s ease-out; }
@media (prefers-reduced-motion: reduce) {
  #meldung, #meldung.an { transform: translate(-50%, 0); transition: opacity .15s ease; }
  #frisch, #frisch.an { transform: none; transition: opacity .15s ease; }
  #neu-pop, #neu-pop.an { transform: none; transition: opacity .15s ease; }
  .ol-lade, .ol-lade-hg.auf .ol-lade { transform: none; transition: opacity .15s ease; }
  .ol-lade { opacity: 0; }
  .ol-lade-hg.auf .ol-lade { opacity: 1; }
  .ol-lade-hg { transition: background .15s ease; }
  .zieh-kreis, #zieh.bereit .zieh-kreis, #zieh.laedt .zieh-kreis { transform: none; transition: none; }
  .zieh-haken { transform: none; transition: opacity .15s ease; }
  #zieh.weich { transition: none; }
  #ziel-knopf { animation: blass-rein .12s ease-out; }
}


/* ---------------------------------------------------------------- 14.331 Schnellzugriff oben auf dem Start (07_admin.js schnellKarte)
   4 Kacheln je Zeile, höchstens 8: Symbol in einem runden Feld, darunter der kurze Name (zwei Zeilen erlaubt, nichts abgeschnitten). */
.schnell-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.schnell-kopf .klein-knopf { margin: 0; white-space: nowrap; }
.schnell-raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 6px; }
a.schnell-kachel { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 10px 3px 8px; border-radius: 14px;
  background: var(--karte); color: var(--text); text-decoration: none; text-align: center;
  transition: transform .12s cubic-bezier(.2,0,0,1), opacity .12s ease; -webkit-touch-callout: none; }
a.schnell-kachel:active { transform: scale(.96); opacity: .75; }
.schnell-sym { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--tint-fl); color: var(--tint); }
.schnell-sym svg.sym { width: 22px; height: 22px; }
.schnell-name { display: block; width: 100%; font-size: 11.5px; font-weight: 500; line-height: 1.2; white-space: nowrap; }   /* zu lang: einpassen() verkleinert */
.schnell-leer { margin: 0 2px 8px; }
.schnell-vorschlag { background: var(--feld); border-radius: 10px; padding: 7px 10px; }
/* beim Umstellen kurz einblenden (nacheinander, zusammen unter 300 ms) */
.schnell-raster.neu .schnell-kachel { animation: schnell-ein .18s cubic-bezier(.2,0,0,1) both; }
.schnell-raster.neu .schnell-kachel:nth-child(2) { animation-delay: 15ms; }
.schnell-raster.neu .schnell-kachel:nth-child(3) { animation-delay: 30ms; }
.schnell-raster.neu .schnell-kachel:nth-child(4) { animation-delay: 45ms; }
.schnell-raster.neu .schnell-kachel:nth-child(5) { animation-delay: 60ms; }
.schnell-raster.neu .schnell-kachel:nth-child(6) { animation-delay: 75ms; }
.schnell-raster.neu .schnell-kachel:nth-child(7) { animation-delay: 90ms; }
.schnell-raster.neu .schnell-kachel:nth-child(8) { animation-delay: 105ms; }
@keyframes schnell-ein { from { opacity: 0; transform: scale(.94); } }
html.ruhig .schnell-raster.neu .schnell-kachel { animation: blass-rein .12s ease-out both; animation-delay: 0s; }
html.ruhig a.schnell-kachel:active { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .schnell-raster.neu .schnell-kachel { animation: blass-rein .12s ease-out both; animation-delay: 0s; }
  a.schnell-kachel:active { transform: none; }
}

/* ---------------------------------------------------------------- 14.331 Finanzen (06_finanzen.js): Fixkosten, Ausgaben, Vorschläge */
.fin-leer { color: var(--grau); text-align: center; padding: 12px 6px; margin: 0; font-size: 15px; }
.fin-kz div { min-width: 0; }
.fin-kz b { white-space: nowrap; }                      /* zu breit: einpassen() verkleinert (EINPASSEN .fin-kz b) */
.fin-kz b.fin-mengen { white-space: normal; }            /* 14.334 je Einheit eine Zeile (06_finanzen.js finArtikelErgebnis) */
.fin-kz b.fin-mengen > span { display: block; white-space: nowrap; font-size: inherit; color: inherit; }   /* (nicht wie .zahlen span, die kleine Beschriftung) */
.fin-vgl { margin: 6px 2px 0; }
.fin-zwischen { margin: 0 2px 8px; color: var(--grau); }
.fin-hinweise .hinweis { margin-bottom: 8px; }
.fin-hinweise details summary { font-size: 14px; color: var(--tint); font-weight: 600; }
.fin-rechenweg > summary { font-size: 15px; }
.fin-rw .haupt { font-size: 14px; }
.fin-rw.zwischen .haupt, .fin-rw.zwischen .rechts { font-weight: 700; color: var(--text); }
.fin-rw.ergebnis .haupt, .fin-rw.ergebnis .rechts { font-weight: 700; color: var(--tint); font-size: 16px; }
details.fin-klasse > summary { list-style: none; padding: 2px 0; }
details.fin-klasse > summary::-webkit-details-marker { display: none; }
details.fin-klasse > summary::after { content: ""; width: 8px; height: 8px; flex: 0 0 auto; margin-left: 4px; border: solid #c4c4c7;
  border-width: 2px 2px 0 0; transform: rotate(135deg); transition: transform .2s cubic-bezier(.2,0,0,1); }
details.fin-klasse[open] > summary::after { transform: rotate(-45deg); }
details.fin-klasse[open] > summary { border-bottom: .5px solid var(--linie); margin-bottom: 2px; }
.fin-balken { display: block; height: 4px; margin-top: 5px; border-radius: 2px; background: var(--feld); overflow: hidden; }
.fin-balken-fuell { display: block; height: 100%; border-radius: 2px; background: var(--tint); }
.fin-monate { display: flex; align-items: flex-end; gap: 3px; height: 96px; overflow-x: auto; scrollbar-width: none; padding-top: 4px; }
.fin-monate::-webkit-scrollbar { display: none; }
.fin-monat { flex: 1 0 11px; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; min-width: 11px; }
.fin-monat > span { font-size: 10px; color: var(--grau); line-height: 1; }
.fin-saeule-box { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.fin-saeule { display: block; width: 100%; border-radius: 3px 3px 1px 1px; background: var(--tint); opacity: .85;
  transform-origin: bottom; animation: fin-wachsen .28s cubic-bezier(.2,0,0,1) both; }
@keyframes fin-wachsen { from { transform: scaleY(0); } }
.fin-preise { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; }
.fin-preise .klein { flex: 1; min-width: 0; }
svg.fin-spark { width: 96px; height: 26px; flex: 0 0 96px; }
svg.fin-spark polyline { fill: none; stroke: var(--tint); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.fin-art-kopf .rechts b.fin-menge { color: var(--text); font-size: 16px; }
input.fin-suche { font-size: 18px; padding: 12px 14px; }
.fin-artikel { transition: opacity .15s ease; }
.fin-artikel.laedt { opacity: .55; }
.fin-zweck { overflow-wrap: anywhere; }
.fin-std-zeile { padding: 8px 0 4px; }
.fin-std-zeile input { width: 100%; margin-top: 6px; }
.fin-link { display: inline-block; margin-top: 6px; color: var(--tint); font-weight: 600; text-decoration: none; }
a.zeile.fin-art.an { font-weight: 600; }
.fin-vs-kopf { display: flex; flex-wrap: wrap; gap: 6px; }
h3.fin-vs-titel { margin: 8px 0 4px; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--text); text-transform: none;
  letter-spacing: normal; }                               /* (sonst wie die kleinen grauen Abschnitts-Überschriften) */
.fin-vs-text { margin: 0 0 6px; font-size: 15px; line-height: 1.4; }
.fin-vs-wirkung { margin: 4px 0; font-weight: 700; color: var(--tint); }
.segmente.fin-bereiche { overflow-x: auto; scrollbar-width: none; margin: 0 0 10px; }
.segmente.fin-bereiche::-webkit-scrollbar { display: none; }
.segmente.fin-bereiche > button { flex: 0 0 auto; padding: 3px 12px; white-space: nowrap; }
.fin-je-art .zeile.fin-aus { opacity: .5; }               /* Art zählt in der Liste gerade nicht mit */
.fin-je-art > p.klein { margin: 6px 0 2px; }
html.ruhig .fin-saeule { animation: none; }
html.ruhig details.fin-klasse > summary::after { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .fin-saeule { animation: none; }
  details.fin-klasse > summary::after { transition: none; }
}

/* ---------------------------------------------------------------- Rakete: To-dos aus einem Satz (06_rakete.js)
   Kopfzeile: Rakete neben der Suche (order 5 = ganz rechts), kleine rote Zahl = fällig. „Zünden“ = einmal 1 s (hebt 3 px ab,
   kleine Flamme) – nie Dauerblinken; bei „Bewegung reduzieren“ (html.ruhig / Einstellung des Handys) gar keine Bewegung. */
#raketenknopf { order: 5; position: relative; display: flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 9px 0 12px;
  border: 0; border-radius: 0; background: none; color: var(--tint); -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
  touch-action: manipulation; }
#raketenknopf::before { content: ""; position: absolute; inset: -9px -3px -9px 0; }    /* Tippfläche größer als das Symbol (45 × 46 px) */
#raketenknopf .rk-sym { width: 24px; height: 24px; overflow: visible; }
#raketenknopf.an .rk-rumpf { fill: var(--tint-fl); }
.rk-flamme { fill: #ff9500; stroke: none; opacity: 0; transform-box: fill-box; transform-origin: 50% 0; }
.rk-zahl { position: absolute; top: -1px; left: calc(100% - 17px); min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--rot); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; white-space: nowrap; pointer-events: none; }
#raketenknopf.zuendet .rk-rumpf { animation: rk-abheben 1s cubic-bezier(.2,0,0,1); }
#raketenknopf.zuendet .rk-flamme { animation: rk-flamme 1s ease-out; }
#raketenknopf.zuendet .rk-zahl { animation: zahl-plopp .22s cubic-bezier(.2,1.5,.4,1); }
@keyframes rk-abheben { 25%, 70% { transform: translateY(-3px); } }
@keyframes rk-flamme { 0% { opacity: 0; transform: translateY(0) scaleY(.3); } 22% { opacity: 1; transform: translateY(-3px) scaleY(1); }
  45% { opacity: .85; transform: translateY(-3px) scaleY(.65); } 70% { opacity: 1; transform: translateY(-3px) scaleY(1); } 100% { opacity: 0; transform: translateY(0) scaleY(.3); } }
.rk-blase { position: absolute; right: 8px; top: 100%; z-index: 6; margin-top: 6px; min-height: 44px; padding: 7px 14px; border-radius: 12px;
  background: rgba(30,30,32,.94); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.25); animation: blass-rein .2s ease-out;
  transition: opacity .25s ease; }
.rk-blase.zu { opacity: 0; pointer-events: none; }
input.rk-vorfokus { position: fixed; top: 0; left: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; font-size: 16px; }

/* Seite: Eingabe + Mikrofon */
.karte.rk-eingabe { padding: 10px 12px; }
.karte.rk-eingabe > :first-child { margin-top: 0; }
.karte.rk-eingabe > :last-child { margin-bottom: 0; }
.rk-zeile1 { display: flex; align-items: flex-end; gap: 8px; }
textarea.rk-feld { flex: 1 1 0; min-width: 0; min-height: 44px; max-height: 160px; height: 44px; resize: none; font-size: 17px; line-height: 1.3; padding: 10px 12px; }
button.rk-los { flex: 0 0 auto; min-height: 44px; min-width: 58px; padding: 0 14px; font-weight: 600; }
button.rk-mikro { flex: 0 0 52px; width: 52px; height: 52px; min-height: 52px; padding: 0; border-radius: 50%; background: var(--tint); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: -4px; }
button.rk-mikro .sym { width: 26px; height: 26px; }
button.rk-mikro.aus { background: var(--feld); color: var(--grau); }
button.rk-mikro.hoert { background: var(--rot); animation: rk-puls 1.3s ease-in-out infinite; }
@keyframes rk-puls { 50% { box-shadow: 0 0 0 7px var(--rot-fl); } }
.rk-vorschau { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rk-vorschau:empty { display: none; }
.rk-schild { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; max-width: 100%; padding: 5px 10px; border: 1px solid transparent; border-radius: 15px;
  background: var(--feld); color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.25; text-align: left; white-space: normal; overflow-wrap: anywhere;
  text-decoration: none; }
/* antippbare Schildchen: 44 px Tippfläche, die Pille (::before) ist 6 px kleiner – deshalb oben/unten 11 px, damit auch ein
   zweizeiliger Name (langer Kunde) 5 px Luft zum Pillenrand hat */
button.rk-schild, a.rk-schild { position: relative; z-index: 0; min-height: 44px; padding-top: 11px; padding-bottom: 11px; background: none !important; border-color: transparent !important; }
button.rk-schild::before, a.rk-schild::before { content: ""; position: absolute; z-index: -1; inset: 6px 0; border: 1px solid transparent; border-radius: 16px; background: var(--feld); }
button.rk-schild.kunde::before, a.rk-schild.gruen::before { background: var(--tint-fl); }
button.rk-schild.wann::before { background: rgba(10,132,255,.12); }
button.rk-schild.rot::before { background: var(--rot-fl); }
button.rk-schild.unsicher::before { background: none; border: 1px dashed var(--grau); }
button.rk-schild:active { opacity: 1; }
.rk-schild .sym { width: 15px; height: 15px; flex: 0 0 15px; }
.rk-schild.kunde, .rk-schild.gruen { background: var(--tint-fl); color: var(--tint); }
.rk-schild.wann { background: rgba(10,132,255,.12); color: #0a6fd6; }
.rk-schild.rot { background: var(--rot-fl); color: var(--rot); }
.rk-schild.unsicher { background: none; border: 1px dashed var(--grau); color: var(--text); }
:root[data-modus="dunkel"] .rk-schild.wann:not(.rot):not(.unsicher) { color: #6cb4ff; }
@media (prefers-color-scheme: dark) { :root:not([data-modus]) .rk-schild.wann:not(.rot):not(.unsicher) { color: #6cb4ff; } }
.rk-aufnahme { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--rot-fl); }
.rk-pegel { display: inline-flex; align-items: center; gap: 3px; height: 30px; --pegel: 0; }
.rk-pegel i { width: 4px; border-radius: 2px; background: var(--rot); height: calc(6px + 24px * var(--pegel) * var(--f, 1)); transition: height .08s linear; }
.rk-pegel i:nth-child(1), .rk-pegel i:nth-child(5) { --f: .45; }
.rk-pegel i:nth-child(2), .rk-pegel i:nth-child(4) { --f: .75; }
.rk-ton-text { flex: 1; min-width: 0; font-weight: 600; }
.rk-ton-text small { display: block; min-height: 16px; font-weight: 400; font-size: 13px; color: var(--grau); font-variant-numeric: tabular-nums; }
button.rk-ton-fertig { min-height: 44px; flex: 0 0 auto; }
.rk button.x, .rk-startkarte button.x { min-height: 44px; min-width: 44px; }
.rk-dreh { width: 20px; height: 20px; flex: 0 0 20px; border: 2.5px solid var(--rot); border-right-color: transparent; border-radius: 50%; animation: knopf-dreh .7s linear infinite; }
.rk-hinweise:empty { display: none; }
.rk-wartet-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rk-wartet-kopf .klein-knopf { margin: 0; min-height: 44px; white-space: nowrap; }
/* „Wartet auf das Büro“: Sätze und Aufnahmen, die noch nicht im Büro sind – mit Grund und Knöpfen */
.rk-w-eintrag { padding: 10px 0 8px; border-top: .5px solid var(--linie); margin-top: 8px; }
.rk-w-text { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; overflow-wrap: anywhere; }
.rk-w-text .sym { width: 20px; height: 20px; flex: 0 0 20px; color: var(--grau); }
.rk-w-eintrag .klein { margin-top: 2px; overflow-wrap: anywhere; }
.rk-w-eintrag .klein.rot { color: var(--rot); }
.rk-w-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rk-w-knoepfe button { min-height: 44px; padding: 4px 14px; font-size: 14px; }
.rk-w-knoepfe button.rot { color: var(--rot); }
.rk-ton-hinweis { margin-top: 3px; color: var(--gelb); }
.rk-aufnahme { flex-wrap: wrap; }
.rk-ton-tipp { flex: 1 0 100%; font-size: 13px; font-weight: 600; color: var(--rot); }
/* Stille-Ende mit Ankündigung: „endet gleich … weitersprechen hält es offen“ + Balken, der abläuft (Platz ist immer reserviert) */
.rk-ende { flex: 1 0 100%; height: 3px; margin-top: -5px; border-radius: 2px; overflow: hidden; background: var(--feld); visibility: hidden; }
.rk-aufnahme.endet-gleich .rk-ende { visibility: visible; }
.rk-ende i { display: block; height: 100%; border-radius: 2px; background: var(--rot); transform-origin: 0 50%; transform: scaleX(0); transition: transform .09s linear; }
html.ruhig .rk-ende i { transition: none; }
@media (prefers-reduced-motion: reduce) { .rk-ende i { transition: none; } }
/* Gesprochen, aber nicht sicher verstanden: Hinweis unter dem Feld bzw. antippbare Zeile „Gesprochen: … – übernehmen“ */
.rk-pruef:empty { display: none; }
.rk-pruef-z { margin-top: 10px; padding: 8px 12px 10px; border-radius: 12px; background: var(--gelb-fl); }
.rk-pruef-hinweis { display: flex; align-items: flex-start; gap: 8px; padding-top: 2px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.rk-pruef-hinweis .sym, .rk-pruef-nimm .sym { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; color: var(--gelb); }
.rk-pruef-hinweis b { color: var(--gelb); }
button.rk-pruef-nimm { display: flex; align-items: flex-start; gap: 8px; width: 100%; min-height: 44px; padding: 10px 0 6px; background: none; color: var(--text);
  font-size: 15px; font-weight: 500; line-height: 1.35; text-align: left; white-space: normal; overflow-wrap: anywhere; border-radius: 8px; }
.rk-pruef-nimm b { color: var(--tint); white-space: nowrap; }
.rk-pruef-z .klein { overflow-wrap: anywhere; }
.rk-pruef-z .rk-w-knoepfe { margin-top: 6px; }
#raketenknopf.wartet::after { content: ""; position: absolute; right: 5px; bottom: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--gelb);
  box-shadow: 0 0 0 1.5px var(--hg); }                        /* etwas wartet noch auf das Büro (Satz oder Aufnahme) */
textarea.rk-feld { scrollbar-width: none; }
textarea.rk-feld::-webkit-scrollbar { display: none; }
@media (max-width: 350px) {                                     /* schmale Handys: mehr Platz fürs Feld */
  .rk-zeile1 { gap: 6px; }
  button.rk-mikro { flex-basis: 44px; width: 44px; height: 44px; min-height: 44px; margin-bottom: 0; }
  button.rk-mikro .sym { width: 23px; height: 23px; }
  button.rk-los { min-width: 48px; padding: 0 10px; }
  textarea.rk-feld { padding: 10px 9px; }
  .karte.rk-eingabe { padding: 8px; }
}

/* Listen */
.tt-tag.rk-kopf { display: flex; align-items: baseline; gap: 8px; margin: 16px 2px 6px; }
.rk-kopf.rot b { color: var(--rot); }
.rk-anz { color: var(--grau); font-size: 13px; font-weight: 400; }
.karte.rk-liste { padding: 0 12px; overflow: hidden; }
.karte.rk-liste > :first-child { margin-top: 0; }
.karte.rk-liste > :last-child { margin-bottom: 0; }
.rk-liste .wisch { max-height: none; }
.rk-liste .wisch.weg { max-height: 0; }
.zeile.rk-z { align-items: flex-start; gap: 10px; padding: 10px 0; }
.rk-liste .wisch > .zeile.rk-z { padding: 10px 12px; }
/* Haken: der Knopf ist 44 × 44 px (Tippfläche), gemalt wird der 30-px-Kreis darin */
.rk-haken { position: relative; z-index: 0; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; margin: -7px -7px -7px -7px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: transparent; display: flex; align-items: center; justify-content: center; }
.rk-haken::before { content: ""; position: absolute; z-index: -1; inset: 7px; border: 2px solid var(--haken); border-radius: 50%; }
button.rk-haken:active { opacity: 1; }
.rk-haken .sym { width: 18px; height: 18px; stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 24; }
.rk-z.ab .rk-haken, .rk-haken.voll { color: #fff; opacity: 1; }
.rk-z.ab .rk-haken::before, .rk-haken.voll::before { background: var(--tint); border-color: var(--tint); }
.rk-z.ab .rk-haken .sym { animation: rk-haken-zieh .26s .06s ease-out forwards; }
.rk-haken.voll .sym { stroke-dashoffset: 0; }
.rk-z.ab .rk-text { text-decoration: line-through; color: var(--grau); }
.rk-z.ab { animation: rk-ab .42s ease-in forwards; }
@keyframes rk-haken-zieh { to { stroke-dashoffset: 0; } }
@keyframes rk-ab { 0%, 62% { opacity: 1; } 100% { opacity: .3; } }
.rk-h { cursor: pointer; }
.rk-titel { display: flex; align-items: flex-start; gap: 6px; font-size: 16px; font-weight: 600; line-height: 1.3; padding-top: 4px; }
.rk-art { flex: 0 0 18px; margin-top: 1px; color: var(--grau); }
.rk-art .sym { display: block; width: 18px; height: 18px; }
.rk-text { min-width: 0; overflow-wrap: anywhere; }
.rk-schilder { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin-top: 1px; }
.rk-schilder > span.rk-schild { margin: 6px 0; }
.rk-noch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.rk-noch .klein-knopf { margin: 0; min-height: 44px; }
.rk-vor { margin-top: 10px; }
.rk-akte { display: flex; flex-wrap: wrap; gap: 8px; }
.rk-akt, button.rk-akt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 0; border-radius: 12px; background: var(--tint-fl);
  color: var(--tint); font-size: 15px; font-weight: 600; line-height: 1.2; text-align: left; text-decoration: none; }
.rk-akt .sym { width: 20px; height: 20px; flex: 0 0 20px; }
.rk-akt small { display: block; font-size: 12px; font-weight: 400; color: var(--grau); overflow-wrap: anywhere; }
.rk-akt-hinweis, .rk-original { margin: 8px 0 0; }
.rk-original { font-style: italic; overflow-wrap: anywhere; }
.rk-klein { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rk-klein button { min-height: 44px; padding: 4px 14px; font-size: 14px; }
.rk-luecke { flex: 1 1 12px; min-width: 12px; }                 /* „Löschen“ steht für sich ganz rechts */
.rk-klein button.rot { color: var(--rot); }
.rk-z.ziel { animation: rk-ziel 1.8s ease-out; }
@keyframes rk-ziel { 0%, 35% { background-color: var(--gelb-fl); } }
button.rk-erl-kopf { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin: 14px 0 6px; padding: 4px 2px; border-radius: 8px;
  background: none; color: var(--text); font-size: 15px; font-weight: 400; text-align: left; }
.rk-erl-kopf .sym { width: 18px; height: 18px; margin-left: auto; color: var(--grau); transition: transform .15s ease; }
.rk-erl-kopf.auf .sym { transform: rotate(180deg); }
.zeile.rk-z.erledigt { align-items: center; }
.rk-z.erledigt .rk-titel { padding-top: 0; }
.rk-z.erledigt .rk-text { text-decoration: line-through; color: var(--grau); font-weight: 400; }
.rk-leer { padding: 28px 12px; }
.rk-fuss { display: flex; justify-content: center; margin: 18px 0 8px; }
button.rk-einst-knopf { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; }
.rk-einst-knopf .sym { width: 18px; height: 18px; }

/* Blätter: Wann? · Wer? · Erinnern */
.rk-blatt-titel { margin: 0 0 8px; overflow-wrap: anywhere; }
.rk-wahlen { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
button.rk-wahl { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; min-height: 48px; padding: 8px 14px; border-radius: 12px;
  background: var(--blatt-feld); color: var(--text); text-align: left; }
.rk-wahl b { font-weight: 600; overflow-wrap: anywhere; }
.rk-wahl .klein { font-size: 13px; overflow-wrap: anywhere; }
.rk-jetzt { margin: 0 0 4px; overflow-wrap: anywhere; }
.rk-einst-feld { flex: 0 0 104px; }
.rk-einst-feld input, .rk-einst-feld select { min-height: 36px; padding: 5px 8px; text-align: center; }
.blatt .rk-einst .zeile { min-height: 48px; }

/* Start: Karte „Heute fällig“ */
.rk-startkarte .zeile.rk-z { align-items: center; padding: 8px 0; }
.rk-startkarte .rk-titel { padding-top: 0; }
/* Titel: Umbruch bis 3 Zeilen, nie „…“ (nichts abgeschnitten) – was nicht passt, klappt „mehr“ auf */
.rk-startkarte .rk-text { display: block; max-height: calc(3 * 1.3em); overflow: hidden; }
.rk-startkarte .rk-z.ganz .rk-text { max-height: none; }
button.rk-mehr { min-height: 44px; margin: -8px 0 -10px; padding: 0 12px 0 0; background: none; color: var(--tint); font-size: 14px; font-weight: 600; }
.rk-start a.rk-start-link { display: block; color: inherit; text-decoration: none; }
/* der schwebende „+“-Knopf (rechts unten, 56 px) verdeckt in dieser Karte nie Text: rechts bleibt dafür Platz */
body.hub-plus .rk-startkarte .zeile { padding-right: 54px; }
body.hub-plus a.rk-start-mehr { margin-right: 78px; }
.rk-vorbefuellt > div + div { margin-top: 4px; }
button.rk-vb-preis { min-height: 44px; margin-top: 8px; padding: 4px 14px; background: var(--karte); color: var(--tint); font-weight: 600; }
.merk-kopf .rk-start-plus { min-height: 44px; margin: -9px 0; }
a.rk-start-mehr { display: flex; align-items: center; min-height: 44px; margin: -6px 4px 4px; font-size: 14px; color: var(--tint); }

/* Weniger Bewegung: nichts hebt ab, nichts pulsiert */
html.ruhig #raketenknopf.zuendet .rk-rumpf, html.ruhig #raketenknopf.zuendet .rk-flamme, html.ruhig #raketenknopf.zuendet .rk-zahl,
html.ruhig button.rk-mikro.hoert, html.ruhig .rk-z.ab, html.ruhig .rk-z.ziel, html.ruhig .rk-blase { animation: none; }
html.ruhig .rk-z.ab .rk-haken .sym { animation: none; stroke-dashoffset: 0; }
html.ruhig .rk-pegel i, html.ruhig .rk-erl-kopf .sym { transition: none; }
@media (prefers-reduced-motion: reduce) {
  #raketenknopf.zuendet .rk-rumpf, #raketenknopf.zuendet .rk-flamme, #raketenknopf.zuendet .rk-zahl, button.rk-mikro.hoert, .rk-z.ab, .rk-z.ziel, .rk-blase { animation: none; }
  .rk-z.ab .rk-haken .sym { animation: none; stroke-dashoffset: 0; }
  .rk-pegel i, .rk-erl-kopf .sym { transition: none; }
}
.rk-gelernt { margin-top: 6px; }
.rk-gelernt .zeile { min-height: 44px; }

/* 14.347 Restarbeiten am Termin und an der Baustelle */
.ra-kasten { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--linie); }
.ra-kasten textarea { width: 100%; margin: 6px 0 8px; }
.ra-liste { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.ra-zeile { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ra-punkt { color: #5e5ce6; font-size: 17px; line-height: 20px; width: 18px; flex: none; text-align: center; }
.ra-zeile.erl .ra-punkt { color: var(--gruen, #34c759); }
.ra-zeile.erl .ra-text { color: var(--grau); text-decoration: line-through; }
.ra-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ra-von { color: var(--grau); font-size: 12px; margin-top: 2px; text-decoration: none; }
/* 14.359 Kurz-Checkliste am Termin („Auf einen Blick“, oben in Details) */
.tc-zeile, .tc-mit { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; font-size: 15px; }
.tc-zeile + .tc-zeile, .tc-zeile + .tc-mit { border-top: 1px solid var(--linie); }
.tc-sym { width: 22px; flex: none; text-align: center; }
.tc-zeile .tc-titel { flex: 1; color: var(--grau); }
.tc-wert { text-align: right; }
.tc-zeile.nein .tc-wert, .tc-zeile.offen .tc-wert { color: var(--grau); }
.tc-mit .tc-titel { color: var(--grau); font-size: 13px; margin-bottom: 2px; }
.tc-leer { margin: 6px 0 2px; }
.tc-knoepfe { margin: 10px 0 0; }
/* 14.360 Packliste, zweite Zeile beim Fundament, Plan direkt in „Auf einen Blick“ */
.tc-unter { font-size: 12px; color: var(--grau); font-weight: 400; }
.tc-pack { margin: 2px 0 0; padding-left: 18px; }
.tc-pack li { padding: 1px 0; }
.tc-sonst { margin-top: 4px; }
.tc-plan { border-top: 1px solid var(--linie); margin-top: 6px; padding-top: 8px; }
.tc-plan-titel { color: var(--grau); font-size: 13px; margin-bottom: 6px; }
.tc-plan .fbs-karte { margin-top: 0; }
/* Wartungsprotokolle (06_wartung.js): Wartungszettel als zweispaltige Tabelle, Schritte nummeriert */
.wz-tab { width: 100%; border-collapse: collapse; margin: 4px 0 6px; font-size: 15px; }
.wz-tab th, .wz-tab td { text-align: left; vertical-align: top; padding: 7px 0; border-top: 1px solid var(--linie); }
.wz-tab tr:first-child th, .wz-tab tr:first-child td { border-top: 0; }
.wz-tab th { width: 36%; padding-right: 10px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.wz-tab td { overflow-wrap: anywhere; }
.karte h3.wz-h { margin: 14px 0 2px; }
.wz-schritte { margin: 6px 0 4px; padding-left: 22px; font-size: 15px; }
.wz-schritte li { margin: 0 0 6px; }
.wz-herkunft { margin: 0 0 6px; }
.wz-herkunft.wz-allgemein { color: var(--gelb); }
.wz-text { width: 100%; margin: 6px 0 8px; font-size: 14px; }

/* ===================== 14.376 Leiste unten als „Liquid Glass“ =====================
   Mergim 29.11.2026: „mach die Leiste unten liquid“. Die schwebende Pille (14.55) bleibt, neu:
   · klareres Glas mit Lichtkante oben und weicherem Schatten,
   · unter dem gewählten Punkt liegt eine helle „Linse“, die beim Wechsel federnd hinübergleitet
     (leisteLinse in 01_grund.js setzt --lx/--ly/--lb/--lh am Element – CSP erlaubt das).
   Im backdrop-filter stehen feste Werte (Safari liest dort keine Variablen). Echte Lichtbrechung kann der Browser
   am iPhone nicht – das hier ist Unschärfe + Glanz. */
:root { --l-glas: rgba(250,250,252,.66); --l-rand: rgba(255,255,255,.55); --l-kante: rgba(255,255,255,.85);
  --l-glanz: rgba(255,255,255,.24); --l-linse: rgba(255,255,255,.74); --l-linse-kante: rgba(255,255,255,.95);
  --l-linse-schatten: rgba(0,0,0,.12); --l-feder: cubic-bezier(.3,1.25,.5,1); --l-feder-ms: 420ms; }
:root[data-modus="dunkel"] { --l-glas: rgba(38,38,42,.66); --l-rand: rgba(255,255,255,.10); --l-kante: rgba(255,255,255,.22); --l-glanz: rgba(255,255,255,.07); --l-linse: rgba(255,255,255,.15); --l-linse-kante: rgba(255,255,255,.24); --l-linse-schatten: rgba(0,0,0,.30); }
@media (prefers-color-scheme: dark) { :root:not([data-modus]) { --l-glas: rgba(38,38,42,.66); --l-rand: rgba(255,255,255,.10); --l-kante: rgba(255,255,255,.22); --l-glanz: rgba(255,255,255,.07); --l-linse: rgba(255,255,255,.15); --l-linse-kante: rgba(255,255,255,.24); --l-linse-schatten: rgba(0,0,0,.30); } }
:root[data-modus="warm"] { --l-glas: rgba(250,244,234,.70); --l-linse: rgba(255,252,246,.80); }
@supports (transition-timing-function: linear(0, 1)) {
  :root { --l-feder: linear(0, 0.005 1.3%, 0.024 2.8%, 0.059 4.5%, 0.105 6.3%, 0.151 7.8%, 0.201 9.3%, 0.443 16%, 0.545 19%, 0.645 22.3%, 0.725 25.3%, 0.794 28.3%, 0.855 31.5%, 0.904 34.8%, 0.942 38%, 0.972 41.5%, 0.995 45.5%, 1.01 49.8%, 1.018 54.8%, 1.019 63%, 1.006 84%, 1); --l-feder-ms: 510ms; }
}
#leiste { background: linear-gradient(180deg, var(--l-glanz) 0%, rgba(255,255,255,0) 46%, rgba(0,0,0,.03) 100%), var(--l-glas);
  border: 1px solid var(--l-rand);
  box-shadow: 0 10px 30px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08), inset 0 1px 0 var(--l-kante), inset 0 -1px 0 rgba(0,0,0,.05);
  -webkit-backdrop-filter: blur(20px) saturate(190%) brightness(1.04); backdrop-filter: blur(20px) saturate(190%) brightness(1.04); }
:root[data-modus="dunkel"] #leiste { -webkit-backdrop-filter: blur(20px) saturate(160%) brightness(.86); backdrop-filter: blur(20px) saturate(160%) brightness(.86); }
@media (prefers-color-scheme: dark) { :root:not([data-modus]) #leiste { -webkit-backdrop-filter: blur(20px) saturate(160%) brightness(.86); backdrop-filter: blur(20px) saturate(160%) brightness(.86); } }
#leiste .l-linse { position: absolute; left: 0; top: 0; width: var(--lb, 0px); height: var(--lh, 0px); border-radius: 26px; z-index: 0;
  transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0); pointer-events: none; background: var(--l-linse);
  box-shadow: inset 0 1px 0 var(--l-linse-kante), inset 0 -1px 0 rgba(0,0,0,.04), 0 1px 6px var(--l-linse-schatten);
  transition: transform var(--l-feder-ms) var(--l-feder), width var(--l-feder-ms) var(--l-feder), opacity .15s ease; }
#leiste .l-linse.ohne { transition: none; }
#leiste .l-linse.weg { opacity: 0; }
#leiste a { z-index: 1; }
/* Die Linse darf die Leiste nie „rollbar“ machen (sonst hält Chromium die Leiste für ein Rollfeld, und weil die Seite
   „Leiste unten“ die Adresse #leiste hat – wie die Leiste selbst –, bekäme sie den Tastatur-Rahmen). Passt alles
   nebeneinander (kein .rollt), endet die Linse deshalb spätestens am Rand der Leiste. */
#leiste:not(.rollt) .l-linse { max-width: calc(100% - var(--lx, 0px)); max-height: calc(100% - var(--ly, 0px)); }
#leiste:focus, #leiste:focus-visible { outline: none; }
#leiste a.an, body.ol #leiste a.an { background: transparent; }
html.ruhig #leiste .l-linse { transition: opacity .12s ease; }
@media (prefers-reduced-motion: reduce) { #leiste .l-linse { transition: opacity .12s ease; } }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #leiste { background: var(--ol-glas); }      /* ohne Unschärfe: fast deckend wie vor 14.375 */
}
@media (prefers-contrast: more) {
  #leiste { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--karte); border-color: var(--text); }
  #leiste .l-linse { background: var(--tint-fl); box-shadow: inset 0 0 0 1.5px var(--tint); }
}

/* ===================== 14.385 Handy wie die Büro-App: Glas aus einem Guss =====================
   Mergim 30.11.2026: „Hast du auch das Handy-App-Design … so angepasst? So wie beim Desktop? Dass das so aus einem Guss ist?“
   Bis hier hatte nur die Leiste unten (14.376) und der breite Bildschirm (14.377) das Glas-Aussehen. Jetzt überall:
   · Tapete: weiche Farbflächen hinter allem (wie glas.tapete in der Büro-App) – erst darauf wirken Leisten und Karten als Glas,
   · Karten als Glaskarten: leicht durchscheinend, Lichtkante oben, weicher Schatten, Radius 16 (wie die Widgets am Rechner) –
     bewusst OHNE Unschärfe (viele Karten mit backdrop-filter machen das Rollen am iPhone zäh; die Tapete ist ohnehin weich),
   · Reiter (Heute/Offen/Neues, Geplant/Überfällig, Details …) als Kapsel mit gleitender Linse (wie apfel.Segment),
   · Symbole in „Mehr“ und im Schnellzugriff in farbigen Feldern mit weißem Zeichen – dieselben Farben wie in der Seitenleiste
     der Büro-App (apfel.NAV_SYMBOL),
   · kleine Knöpfe („Bearbeiten“, „+ To-do“) als Kapseln.
   Die Mail (body.ol) behält ihr eigenes Papier. Blätter (.schleier) bleiben deckend – dort stehen Eingaben. */
:root { --tap-1: rgba(14,129,64,.15); --tap-2: rgba(255,170,60,.17); --tap-3: rgba(60,130,230,.11);
  --g-karte: rgba(255,255,255,.80); --g-kante: rgba(255,255,255,.85); --g-rand: rgba(20,30,50,.06);
  --g-schatten: 0 1px 2px rgba(20,30,50,.05), 0 6px 18px rgba(20,30,50,.07);
  --g-mulde: rgba(118,118,128,.13); --g-linse: rgba(255,255,255,.95); --g-linse-schatten: 0 1px 4px rgba(0,0,0,.12); }
:root[data-modus="warm"] { --tap-1: rgba(70,150,70,.17); --tap-2: rgba(235,150,60,.23); --tap-3: rgba(205,120,80,.13);
  --g-karte: rgba(255,252,247,.80); --g-kante: rgba(255,255,255,.85); --g-rand: rgba(60,40,20,.07);
  --g-schatten: 0 1px 2px rgba(60,40,20,.06), 0 6px 18px rgba(60,40,20,.08);
  --g-mulde: rgba(140,105,60,.12); --g-linse: rgba(255,253,249,.96); --g-linse-schatten: 0 1px 4px rgba(60,40,20,.14); }
:root[data-modus="dunkel"] { --tap-1: rgba(48,209,88,.15); --tap-2: rgba(255,159,10,.10); --tap-3: rgba(64,120,255,.16);
  --g-karte: rgba(40,42,47,.84); --g-kante: rgba(255,255,255,.07); --g-rand: rgba(0,0,0,.35);
  --g-schatten: 0 1px 2px rgba(0,0,0,.30), 0 6px 18px rgba(0,0,0,.28);
  --g-mulde: rgba(255,255,255,.08); --g-linse: rgba(104,108,118,.88); --g-linse-schatten: 0 1px 4px rgba(0,0,0,.35); }
@media (prefers-color-scheme: dark) {
  :root:not([data-modus]) { --tap-1: rgba(48,209,88,.15); --tap-2: rgba(255,159,10,.10); --tap-3: rgba(64,120,255,.16);
    --g-karte: rgba(40,42,47,.84); --g-kante: rgba(255,255,255,.07); --g-rand: rgba(0,0,0,.35);
    --g-schatten: 0 1px 2px rgba(0,0,0,.30), 0 6px 18px rgba(0,0,0,.28);
    --g-mulde: rgba(255,255,255,.08); --g-linse: rgba(104,108,118,.88); --g-linse-schatten: 0 1px 4px rgba(0,0,0,.35); }
}

/* ---- Tapete am Handy (breit setzt der Abschnitt „Breite Bildschirme“ oben seine eigenen Flächen) */
html { background: var(--hg); }
@media (max-width: 899px), (max-height: 499px) {
  body { background: transparent; min-height: 100vh; }
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(70vw 46vh at 0% 0%, var(--tap-1), transparent 70%),
      radial-gradient(62vw 40vh at 100% 8%, var(--tap-2), transparent 70%),
      radial-gradient(80vw 50vh at 70% 100%, var(--tap-3), transparent 72%); }
  body.ol::before { display: none; }                   /* die Mail behält ihr Papier */
}

/* ---- Glaskarten (nur im Inhalt – Blätter bleiben deckend) */
#inhalt .karte, #inhalt .tt-karte, #inhalt a.schnell-kachel, #inhalt .tt-oben .karte, #inhalt .widget {
  background: var(--g-karte); border-radius: 16px; box-shadow: inset 0 1px 0 var(--g-kante), 0 0 0 .5px var(--g-rand), var(--g-schatten); }
#inhalt .to-nachricht { box-shadow: inset 3px 0 0 var(--tint), inset 0 1px 0 var(--g-kante), 0 0 0 .5px var(--g-rand), var(--g-schatten); }
#inhalt .karte.bh { box-shadow: var(--g-schatten); }                          /* (hat seinen grünen Rand) */
#inhalt .tt-blatt .karte, #inhalt .tt-blatt .tt-karte { box-shadow: 0 0 0 .5px var(--g-rand); }   /* auf dem deckenden Blatt: ohne Schatten */
#inhalt .tt-kunde { border-radius: 16px; }

/* ---- Reiter als Kapsel mit Linse (wie apfel.Segment am Rechner); pille() in 01_grund.js setzt Lage und Breite */
.tt-seg, .tt-reiter { display: flex; gap: 2px; width: max-content; max-width: 100%; padding: 3px; border: 0; border-radius: 999px;
  background: var(--g-mulde); }
.tt-seg { margin: 2px 2px 8px; }
.tt-reiter { margin-bottom: 14px; }
.tt-seg button, .tt-reiter button { padding: 6px 14px; border-radius: 999px; font-size: 14.5px; line-height: 1.25; color: var(--grau); }
.tt-seg button.an, .tt-reiter button.an { color: var(--text); background: var(--g-linse); box-shadow: var(--g-linse-schatten); }
.hub-seg { gap: 2px; }
.hub-seg.eng { gap: 1px; }
.hub-seg.eng button { padding: 6px 11px; font-size: 14px; }
.hub-seg.pille > button.an { background: none; box-shadow: none; }
.hub-seg.pille::before { top: 3px; bottom: 3px; height: auto; border-radius: 999px; background: var(--g-linse); box-shadow: var(--g-linse-schatten); }
.hub-seg .hub-zahl { margin-left: 4px; }
.hub-seg button:focus-visible, .tt-reiter button:focus-visible { outline-offset: -2px; }
/* viele Reiter (Büro: neun) – die Kapsel wird gewischt; an den Rändern weich ausblenden statt mitten im Wort abzuschneiden */
.hub-seg:has(> button:nth-child(5)) { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 48px), transparent 100%); }
/* Umschalter (Darstellung, Aufbau, Kalender-Ansicht …): dieselbe Kapsel mit Linse */
.segmente { border-radius: 999px; padding: 3px; background: var(--g-mulde); }
.segmente button { border-radius: 999px; }
.segmente button.an { background: var(--g-linse); box-shadow: var(--g-linse-schatten); }
.segmente.pille > button.an { background: none; box-shadow: none; }
.segmente.pille::before { top: 3px; bottom: 3px; border-radius: 999px; background: var(--g-linse); box-shadow: var(--g-linse-schatten); }
.kal-leiste .segmente { border-radius: 18px; }                   /* („3 Tage“ bricht am schmalen Handy um – dann keine Kugel-Form) */
.kal-leiste .segmente button, .kal-leiste .segmente.pille::before { border-radius: 15px; }

/* ---- Symbole in farbigen Feldern (wie die Seitenleiste der Büro-App, apfel.NAV_SYMBOL) */
svg.sym { --sf: #8e8e93; }
svg.sym[data-s="heute"] { --sf: #23863a; }
svg.sym[data-s="mail"], svg.sym[data-s="neu"] { --sf: #0a84ff; }
svg.sym[data-s="posteingang"] { --sf: #30b0c7; }
svg.sym[data-s="kalender"], svg.sym[data-s="termine"] { --sf: #ff453a; }
svg.sym[data-s="auftraege"], svg.sym[data-s="zeiten"], svg.sym[data-s="kamera"], svg.sym[data-s="idee"] { --sf: #ff9f0a; }
svg.sym[data-s="projekte"], svg.sym[data-s="notizen"], svg.sym[data-s="stift"], svg.sym[data-s="wartung"] { --sf: #f5a300; }
svg.sym[data-s="berichte"], svg.sym[data-s="nachricht"], svg.sym[data-s="haken"], svg.sym[data-s="bank"], svg.sym[data-s="euro"] { --sf: #34c759; }
svg.sym[data-s="fundamente"] { --sf: #a2845e; }
svg.sym[data-s="kunden"], svg.sym[data-s="allen"] { --sf: #0a84ff; }
svg.sym[data-s="angebote"], svg.sym[data-s="fixkosten"] { --sf: #bf5af2; }
svg.sym[data-s="rechnungen"], svg.sym[data-s="ordner"], svg.sym[data-s="auge"] { --sf: #5e5ce6; }
svg.sym[data-s="antraege"], svg.sym[data-s="planung"] { --sf: #00b8ae; }
svg.sym[data-s="uhr"] { --sf: #ff375f; }
svg.sym[data-s="einkauf"] { --sf: #ff6b35; }
.mehr-zeile > svg.sym { flex: 0 0 18px; width: 18px; height: 18px; margin: 0 6px 0 5px; padding: 0; border-radius: 2px;
  color: #fff; stroke-width: 2.1; background: var(--sf); box-shadow: 0 0 0 5px var(--sf); }
.schnell-sym { background: none; }
.schnell-sym > svg.sym { width: 22px; height: 22px; border-radius: 3px; color: #fff; stroke-width: 2; background: var(--sf);
  box-shadow: 0 0 0 8px var(--sf); }

/* ---- kleine Knöpfe als Kapseln */
button.klein-knopf { border-radius: 999px; padding: 5px 14px; }

@media (prefers-contrast: more) {
  #inhalt .karte, #inhalt .tt-karte, #inhalt a.schnell-kachel, #inhalt .widget { background: var(--karte); box-shadow: 0 0 0 1px var(--linie); }
}

/* 14.386 Kalender: „3 Tage“ bricht nicht mehr um (Mergim 30.11.2026: Schönheitsfehler). Die Leiste war am Handy 14–29 px zu
   schmal: die vier Ansichten teilten sich die Breite gleichmäßig (flex: 1), „3 Tage“ bekam so zu wenig. Jetzt nimmt jede
   Ansicht so viel, wie ihr Wort braucht, und alles ist etwas enger (gemessen: eine Zeile bei 360, 375, 390 und 430 px).
   Noch schmaler darf es umbrechen – besser als über den Rand. */
.kal-leiste { gap: 4px; }
.kal-leiste .segmente { padding: 2px; gap: 1px; }
.kal-leiste .segmente button { flex: 1 1 auto; padding: 3px 5px; font-size: 13.5px; }
.kal-leiste .segmente.pille::before { top: 2px; bottom: 2px; }
.kal-leiste .kal-knopf { padding: 3px 8px; }
.kal-leiste .kal-knopf.plus { padding: 0 10px; }
@media (max-width: 370px) {                                    /* kleine Androids (360 px): noch etwas enger, dann passt es auch dort */
  .kal-leiste { gap: 3px; }
  .kal-leiste .kal-knopf { padding: 3px 6px; }
  .kal-leiste .kal-knopf.plus { padding: 0 8px; }
}

/* ===================== 14.377 Breite Bildschirme (MacBook, iPad quer): Seitenleiste statt Leiste unten =====================
   Mergim 29.11.2026: „noch einen Zugang für mein MacBook … fast alles, was ich auf dem Handy kann“ – und es soll aussehen,
   „als säße man an einem Apple-Laptop“. Ab 900 px Breite UND 500 px Höhe (große iPhones quer sind auch über
   900 px breit – die bleiben beim Handy-Aufbau):
   · die Leiste unten wird zur schwebenden Glas-Seitenleiste links (Punkte untereinander, Linse gleitet senkrecht),
   · der Inhalt bekommt eine ruhige Spalte (--inhalt-b – nicht --spalte, das benutzt der Kalender selbst), Kopf und großer Titel stehen bündig darüber,
   · Blätter gehen als Fenster in der Mitte auf, das PDF bleibt lesbar schmal, Knöpfe schweben unten rechts,
   · mit der Maus: Zeilen und Knöpfe reagieren beim Darüberfahren.
   Auf Handys ändert sich NICHTS. Ohne :has() (sehr alte Browser) bleibt es auch breit beim Handy-Aufbau –
   breit() in 01_grund.js fragt dieselbe Bedingung ab. */
@supports selector(:has(*)) {
@media (min-width: 900px) and (min-height: 500px) {
  :root { --sl-b: 236px; --sl-rand: 12px; --sl-platz: calc(var(--sl-b) + 2 * var(--sl-rand)); --inhalt-b: 1040px; --inhalt-rand: 28px; }
  /* Tapete: weiche Farbflächen hinter allem (wie in der Büro-App) – erst dadurch wirkt die Seitenleiste als Glas */
  :root { --tap-1: rgba(14,129,64,.14); --tap-2: rgba(255,170,60,.16); --tap-3: rgba(60,130,230,.10); }
  :root[data-modus="warm"] { --tap-1: rgba(70,150,70,.16); --tap-2: rgba(235,150,60,.22); --tap-3: rgba(205,120,80,.12); }
  :root[data-modus="dunkel"] { --tap-1: rgba(48,209,88,.15); --tap-2: rgba(255,159,10,.10); --tap-3: rgba(64,120,255,.16); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-modus]) { --tap-1: rgba(48,209,88,.15); --tap-2: rgba(255,159,10,.10); --tap-3: rgba(64,120,255,.16); }
  }
  html { scrollbar-gutter: stable; }                  /* Seiten mit und ohne Rollbalken stehen gleich (kein Springen) */
  body { background: transparent; min-height: 100vh; }
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(62vw 58vh at 0% 0%, var(--tap-1), transparent 70%),
      radial-gradient(52vw 52vh at 100% 6%, var(--tap-2), transparent 70%),
      radial-gradient(64vw 62vh at 72% 100%, var(--tap-3), transparent 72%); }
  body.ol::before { display: none; }                   /* die Mail behält ihr Papier (body.ol hat seinen eigenen Hintergrund) */
  body, body.leiste-zwei, body.ol-voll { padding-bottom: 28px; }
  body:has(#leiste:not([hidden])) { padding-left: var(--sl-platz); }

  /* ---- Seitenleiste */
  #leiste, #leiste.zwei, #leiste.viele { left: var(--sl-rand); top: var(--sl-rand); bottom: var(--sl-rand); right: auto; transform: none;
    width: var(--sl-b); flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 2px;
    padding: 14px 10px 10px; border-radius: 24px; overflow-x: hidden; overflow-y: auto; }
  body.ol-voll #leiste, body.ol-waehlen #leiste { display: flex; }
  #leiste::before { content: "Berisha GaLaBau"; flex: 0 0 auto; display: block; min-height: 34px; margin: 0 0 12px; padding: 0 6px 0 48px;
    font-size: 16px; font-weight: 700; line-height: 34px; letter-spacing: -.2px; color: var(--text); white-space: nowrap;
    background: url(icon-192.png) 6px 0 / 34px 34px no-repeat; }
  #leiste a, #leiste.zwei a, #leiste.viele a { flex: 0 0 auto; flex-direction: row; align-items: center; justify-content: flex-start;
    gap: 12px; min-width: 0; padding: 9px 12px; border-radius: 13px; font-size: 15px; font-weight: 600; letter-spacing: -.1px; }
  #leiste svg { width: 22px; height: 22px; flex: 0 0 22px; }
  #leiste .l-linse { border-radius: 13px; }
  /* ganz unten: wer angemeldet ist (führt zu „Mein Konto“) – leisteZeigen hängt den Punkt nur breit an */
  #leiste a.l-ich, #leiste.zwei a.l-ich { margin-top: auto; padding: 12px 8px 4px; border-top: .5px solid var(--linie); border-radius: 0;
    gap: 10px; font-size: 13.5px; color: var(--grau); }
  #leiste a.l-ich i { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
    background: var(--tint); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: 0; }
  #leiste a.l-ich span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .l-zahl { top: 50%; left: auto; right: 10px; margin-top: -9px; box-shadow: none; }

  /* ---- Inhalt: eine Spalte, Kopf und Bereichs-Titel bündig */
  #inhalt { max-width: var(--inhalt-b); margin: 0 auto; padding: 10px var(--inhalt-rand) 24px; }
  #hubkopf { max-width: var(--inhalt-b); padding: 0 var(--inhalt-rand); }
  #kopf { padding: 10px max(var(--inhalt-rand), calc((100% - var(--inhalt-b)) / 2 + var(--inhalt-rand))) 8px; }
  #kopf h1 { font-size: 20px; }
  .tt-gross { font-size: 34px; margin-top: 2px; }
  body.hub-plus #inhalt { padding-bottom: 96px; }      /* die letzte Zeile lässt sich über das Plus rollen */
  body.ol #inhalt { max-width: none; padding: 0; }
  body.ol-neu #inhalt { padding-top: 10px; }
  .schnell-raster { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }   /* Schnellzugriff: alle in einer Reihe */
  body.ol .ol-liste { padding-bottom: 96px; }
  /* Mail lesen / auswählen / verfassen: die Leisten unten beginnen neben der Seitenleiste (sie bleibt breit sichtbar) */
  nav.ol-antwort, nav.ol-aktionen { left: var(--sl-platz); }
  .ol-wz { left: calc(var(--sl-platz) + 12px); right: auto; width: 420px; }

  /* ---- Schwebendes: unten rechts bzw. unten in der Mitte des Inhalts */
  .tt-plus, body.leiste-zwei .tt-plus { right: 30px; bottom: 30px; }
  button.ol-fab, body.leiste-zwei button.ol-fab { right: 30px; bottom: 30px; }
  .ol-schweber, body.leiste-zwei .ol-schweber { right: 30px; bottom: 30px; }
  #meldung { left: calc(50% + var(--sl-platz) / 2); bottom: 30px; max-width: 520px; }
  #neu-pop, body.leiste-zwei #neu-pop, body.ol-voll #neu-pop { left: auto; right: 24px; bottom: 100px; width: 400px; margin: 0; }   /* über dem Plus */
  .sende-balken, body.leiste-zwei .sende-balken, body.ol-voll .sende-balken, body.ol-waehlen .sende-balken, .rueck-balken {
    left: calc(var(--sl-platz) + 24px); right: 24px; bottom: 24px; max-width: 560px; margin: 0 auto; }

  /* ---- Blätter als Fenster in der Mitte */
  .schleier:not(.pdf-ansicht):not(.gross) { align-items: center; padding: 28px; }
  .schleier:not(.pdf-ansicht) .blatt { max-width: 600px; max-height: 88vh; border-radius: 20px; padding: 18px 22px 22px;
    box-shadow: 0 30px 90px rgba(0,0,0,.34), 0 0 0 .5px rgba(0,0,0,.12); animation: fenster-auf .2s cubic-bezier(.2,0,0,1); }
  .schleier:not(.pdf-ansicht) .blatt::before { display: none; }
  .schleier.zu:not(.pdf-ansicht) .blatt { animation: fenster-zu .16s ease-in forwards; }
  html.ruhig .schleier:not(.pdf-ansicht) .blatt { animation: blass-rein .14s ease-out; }          /* „Bewegung reduzieren“: nur überblenden */
  html.ruhig .schleier.zu:not(.pdf-ansicht) .blatt { animation: blass-raus .12s ease-in forwards; }
  .pdf-seiten img { width: min(calc(100% * var(--zoom)), calc(920px * var(--zoom))); }
  .pdf-kopf { padding: 10px 18px; }

  /* ---- Maus */
  button, a, summary, select, label.zeile, label.bw-haken, .tipp, input[type=checkbox], input[type=radio] { cursor: pointer; }
  input[type=text], input[type=search], input[type=number], input[type=email], input[type=tel], input[type=date], input[type=time], textarea { cursor: text; }
}
@media (min-width: 900px) and (min-height: 500px) and (hover: hover) {
  #leiste a:not(.an):hover { background: var(--feld); }
  #leiste a.l-ich:hover { background: none; color: var(--text); }
  .karte > a.zeile:hover, .karte > .zeile.tipp:hover, .karte > div > a.zeile:hover { background: var(--feld); box-shadow: -8px 0 0 var(--feld), 8px 0 0 var(--feld); border-radius: 4px; }
  a.ol-zeile:hover { background: var(--ol-wahl); }
  button:not(:disabled):hover { filter: brightness(.96); }
  :root[data-modus="dunkel"] button:not(:disabled):hover { filter: brightness(1.14); }
  .tt-seg button:hover, .hub-seg button:hover { filter: none; color: var(--text); }
  .schnell-kachel:hover { filter: brightness(.97); }
}
@media (min-width: 900px) and (min-height: 500px) and (prefers-color-scheme: dark) and (hover: hover) {
  :root:not([data-modus]) button:not(:disabled):hover { filter: brightness(1.14); }
}
@media (min-width: 900px) and (min-height: 500px) and (prefers-reduced-motion: reduce) {
  .schleier:not(.pdf-ansicht) .blatt { animation: blass-rein .14s ease-out; }
  .schleier.zu:not(.pdf-ansicht) .blatt { animation: blass-raus .12s ease-in forwards; }
}
@keyframes fenster-auf { from { opacity: 0; transform: translateY(10px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes fenster-zu { to { opacity: 0; transform: translateY(6px) scale(.985); } }
}

/* ===================== 14.377 Büro im Web: Rechnungen, Angebote, Kunden bearbeiten (06_buero_web.js) =====================
   Links die Karten (Kunde, Angaben, Positionen), rechts die Summe mit den Knöpfen – sie bleibt beim Rollen stehen.
   Ist wenig Platz (Handy, schmales Fenster), steht alles untereinander und eine Position wird dreizeilig. */
.bw-editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; align-items: start; }
.bw-zwei { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
.bw-reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
label.bw-haken { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 15px;
  color: var(--text); margin: 10px 0 6px; }
.bw-suchfeld { position: relative; }
.bw-vorschlaege { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 12; min-width: 280px; max-height: 320px; overflow: auto;
  padding: 4px; border-radius: 12px; background: var(--karte); box-shadow: 0 12px 34px rgba(0,0,0,.22), 0 0 0 .5px var(--linie); }
.bw-vorschlaege button { display: block; width: 100%; min-height: 0; padding: 7px 10px; border-radius: 9px; background: none;
  color: var(--text); text-align: left; font-weight: 400; }
.bw-vorschlaege button b { display: block; font-weight: 600; }
.bw-vorschlaege button.an { background: var(--tint-fl); }
.bw-vorschlaege p { margin: 6px 10px; }
.bw-kunde-wahl { margin-bottom: 4px; }

.bw-pos { margin: 10px 0 4px; }
.bw-zeile { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "l l l" "m e p" "b b k"; gap: 6px; align-items: start;
  padding: 8px 0; border-top: .5px solid var(--linie); }
.bw-zeile > :nth-child(1) { display: none; }
.bw-zeile > :nth-child(2) { grid-area: l; }
.bw-zeile > :nth-child(3) { grid-area: m; }
.bw-zeile > :nth-child(4) { grid-area: e; }
.bw-zeile > :nth-child(5) { grid-area: p; }
.bw-zeile > :nth-child(6) { grid-area: b; }
.bw-zeile > :nth-child(7) { grid-area: k; }
.bw-zeile.bw-kopf { display: none; }
.bw-zeile.titel { grid-template-areas: "l l l" "b b k"; }
.bw-zeile.titel > :nth-child(3), .bw-zeile.titel > :nth-child(4), .bw-zeile.titel > :nth-child(5) { display: none; }
.bw-zeile .r, .bw-zeile input.r { text-align: right; }
.bw-zeile input, .bw-zeile textarea, .bw-zeile select { min-height: 36px; padding: 6px 9px; font-size: 15px; }
.bw-zeile textarea.bw-text { min-height: 0; margin-top: 4px; font-size: 14px; resize: vertical; }
.bw-zeile input.bw-titel { font-weight: 700; }
.bw-zeile.ohne .bw-betrag { color: var(--grau); }
.bw-zeile.text textarea { min-height: 54px; }
.bw-nr { padding-top: 9px; color: var(--grau); font-size: 13px; text-align: right; }
.bw-betrag { padding-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.bw-knoepfe { display: flex; gap: 2px; justify-content: flex-end; }
button.bw-mini { width: 28px; min-height: 30px; padding: 0; border-radius: 8px; background: none; color: var(--grau); font-size: 15px; font-weight: 600; }
select.bw-art { width: auto; min-height: 30px; margin-top: 4px; padding-right: 28px; font-size: 13px; }
.bw-keine { margin: 10px 2px; }
.bw-dazu { margin-top: 10px; }
.bw-dazu button { flex: 0 0 auto; }

.bw-kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 6px; }
.bw-stand { padding: 2px 9px; border-radius: 9px; background: var(--tint-fl); color: var(--tint); font-size: 12px; font-weight: 600; white-space: nowrap; }
.bw-stand.offen { background: var(--gelb-fl); color: var(--gelb); }
.bw-rechts .zeile b { font-variant-numeric: tabular-nums; }
.bw-rechts .zeile.bw-gesamt { border-top: .5px solid var(--linie); font-size: 18px; }
.bw-warn { margin-top: 8px; }
.bw-fehler { margin-top: 8px; padding: 8px 12px 10px; border-radius: 10px; background: var(--rot-fl); color: var(--rot); font-size: 14px; }
.bw-fehler p { margin: 0 0 8px; }
.bw-fehler button { width: 100%; min-height: 0; padding: 7px 10px; font-size: 14px; }
/* Solange gespeichert wird, ist der Editor gesperrt (inert, 06_buero_web.js) – hier nur das Aussehen dazu */
.bw-editor.bw-wartet { opacity: .62; pointer-events: none; }
.bw-aktionen { display: grid; gap: 8px; margin: 12px 0 8px; }
.bw-aktionen button, .bw-aktionen a.knopf-link { width: 100%; }
.bw-neu { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.bw-neu a.knopf-link, .bw-beleg-knoepfe a.knopf-link { flex: 0 0 auto; padding: 9px 18px; }
.bw-beleg-knoepfe { margin: 8px 0; }
.bw-beleg-knoepfe button { flex: 0 0 auto; }
.bw-neu a.knopf-link.haupt, .bw-beleg-knoepfe a.knopf-link.haupt, .bw-aktionen a.knopf-link.haupt { background: var(--tint); color: #fff; }
input.bw-kurz { max-width: 130px; }
/* Der Editor richtet sich nach dem Platz, den seine linke Spalte wirklich hat (nicht nach der Fensterbreite): mit
   Seitenleiste ist ein 1000 px breites Fenster zu schmal für sieben Spalten je Position, ein iPhone quer ohne
   Seitenleiste aber breit genug. Alte Browser ohne Container-Abfragen behalten den schmalen Aufbau. */
.bw-links { container-type: inline-size; container-name: bw; min-width: 0; }
@container bw (min-width: 540px) {
  .bw-zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bw-reihe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bw-reihe { align-items: end; }
.bw-reihe input[type=date] { min-width: 0; padding-right: 6px; }
@container bw (min-width: 720px) {
  .bw-reihe { grid-template-columns: 1.3fr 1.3fr 1fr .8fr .8fr .9fr; }       /* die zwei Datumsfelder brauchen mehr Platz */
  /* Eine Position in einer Zeile: Nr · Bezeichnung · Menge · Einheit · Preis · Gesamt · Knöpfe; die Beschreibung darunter
     über die ganze Breite bis zum Preis. Dafür löst sich die Zelle „Leistung“ auf (display: contents) – ihre Teile
     (Bezeichnung, Beschreibung, Art) liegen dann selbst im Raster. */
  .bw-zeile, .bw-zeile.titel { grid-template-columns: 24px minmax(0, 1fr) 58px 72px 88px 102px 100px; padding: 6px 0;
    grid-template-areas: "nr titel menge einheit preis gesamt knoepfe" ". text text text text art ."; }
  .bw-zeile > :nth-child(n) { display: block; }                 /* (Titel-/Textzeilen: Menge, Einheit, Preis bleiben ausgeblendet) */
  .bw-zeile > :nth-child(1) { grid-area: nr; }
  .bw-zeile > :nth-child(2) { grid-area: titel; }
  .bw-zeile > :nth-child(3) { grid-area: menge; }
  .bw-zeile > :nth-child(4) { grid-area: einheit; }
  .bw-zeile > :nth-child(5) { grid-area: preis; }
  .bw-zeile > :nth-child(6) { grid-area: gesamt; }
  .bw-zeile > :nth-child(7) { grid-area: knoepfe; display: flex; }
  .bw-zeile > .bw-leistung { display: contents; }
  .bw-leistung > .bw-suchfeld { grid-area: titel; }
  .bw-leistung > textarea.bw-text { grid-area: text; margin-top: 0; }
  .bw-leistung > select.bw-art { grid-area: art; margin-top: 0; width: 100%; }
  .bw-zeile.titel > .bw-leistung > .bw-suchfeld { grid-area: auto; grid-row: 1; grid-column: 2 / 6; }
  .bw-zeile.bw-kopf { display: grid; border-top: 0; padding: 0 0 4px; font-size: 12px; color: var(--grau); text-transform: uppercase; letter-spacing: .02em; }
  .bw-zeile input, .bw-zeile textarea, .bw-zeile select { min-height: 34px; padding: 6px 7px; font-size: 14.5px; }
}
@supports selector(:has(*)) {
@media (min-width: 900px) and (min-height: 500px) {
  body:has(.bw-editor:not(.bw-kunde)) { --inhalt-b: 1340px; }
}
@media (min-width: 1360px) and (min-height: 500px) {
  .bw-editor { grid-template-columns: minmax(0, 1fr) 268px; }                /* Summe und Knöpfe rechts, bleiben beim Rollen stehen */
  .bw-rechts { position: sticky; top: 58px; }
}
@media (min-width: 900px) and (hover: hover) {
  .bw-vorschlaege button:hover { background: var(--tint-fl); filter: none; }
  button.bw-mini:hover { background: var(--feld); color: var(--text); filter: none; }
}
}
