/* IQ-Mail - Gestaltung im Stil von macOS / iCloud.
   Farben als Variablen; dunkler Modus folgt automatisch der Systemeinstellung. */

:root {
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --schrift-anzeige: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  /* Blau/Rot etwas kräftiger als Apple-Standard: Text und Knöpfe erreichen so WCAG AA (4,5:1) */
  --blau: #0068d9; --blau-flaeche: #0068d9; --rot-flaeche: #d92d20; --gruen: #34c759; --rot: #d92d20; --orange: #ff9500; --orange-text: #b35600; --lila: #af52de; --gelb: #ffcc00;
  --text: #1d1d1f; --text-2: #6e6e73; --text-3: #6c6c70;
  --flaeche: #ffffff; --flaeche-2: #f5f5f7; --flaeche-3: #ebebf0;
  --leiste: rgba(246, 246, 248, 0.82);
  --linie: rgba(0, 0, 0, 0.09); --linie-stark: rgba(0, 0, 0, 0.16);
  --auswahl: rgba(0, 122, 255, 0.12); --auswahl-stark: #0068d9;
  --glas: rgba(255, 255, 255, 0.62); --glas-rand: rgba(255, 255, 255, 0.55);
  --widget: rgba(255, 255, 255, 0.58); --widget-text: #1d1d1f;
  --schatten-fenster: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 0.5px rgba(0, 0, 0, 0.25);
  --schatten-karte: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #98989d;
    --flaeche: #1c1c1e; --flaeche-2: #232325; --flaeche-3: #2c2c2e;
    --leiste: rgba(36, 36, 38, 0.82);
    --linie: rgba(255, 255, 255, 0.09); --linie-stark: rgba(255, 255, 255, 0.18);
    --auswahl: rgba(10, 132, 255, 0.22); --auswahl-stark: #0a6fdc;
    --blau: #409cff; --blau-flaeche: #0a6fdc; --rot-flaeche: #d92d20; --gruen: #30d158; --rot: #ff6961; --orange: #ff9f0a; --orange-text: #ffb340;
    --glas: rgba(40, 40, 44, 0.62); --glas-rand: rgba(255, 255, 255, 0.12);
    --widget: rgba(30, 30, 34, 0.55); --widget-text: #f5f5f7;
    --schatten-fenster: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(255, 255, 255, 0.15);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; }
body { font-family: var(--schrift); font-size: 14px; color: var(--text); background: #1b1440; -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: default; opacity: 0.5; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blau); text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--schrift-anzeige); letter-spacing: -0.01em; }
.sym { flex: none; display: block; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blau) 55%, transparent); outline-offset: 1px; border-radius: 6px; }

/* ------------------------------------------------------------ Grundbausteine */

.leise { color: var(--text-2); }
.klein { font-size: 12px; }
.grau { color: var(--text-3); }
.gruen { color: var(--gruen); } .rot { color: var(--rot); } .orange { color: var(--orange); }
.rechts { margin-left: auto; }
.zeile { display: flex; align-items: center; gap: 8px; }
.zeile.zwischen { justify-content: space-between; }
.zeile.umbruch { flex-wrap: wrap; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.breite-70 { width: 90px; flex: none; color: var(--text-2); }
.breite-120 { width: 130px; flex: none; }
.vor { white-space: pre-wrap; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 8px;
  background: var(--flaeche-3); font-weight: 500; white-space: nowrap; transition: filter .15s, transform .05s; }
.knopf:hover:not(:disabled) { filter: brightness(0.96); }
.knopf:active:not(:disabled) { transform: scale(0.98); }
.knopf.primaer { background: var(--blau-flaeche); color: #fff; }
.knopf.gefahr { background: var(--rot-flaeche); color: #fff; }
.knopf.gefahr-text { color: var(--rot); background: transparent; }
.knopf.gross { height: 44px; font-size: 16px; border-radius: 12px; width: 100%; }
.knopf.klein { height: 28px; padding: 0 10px; font-size: 13px; }
.knopf.voll { width: 100%; }
.textknopf { color: var(--blau); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.textknopf.leise { color: var(--text-2); font-weight: 400; }
.symbolknopf { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: var(--text-2); flex: none; }
.symbolknopf:hover:not(:disabled) { background: var(--flaeche-3); color: var(--text); }
.symbolknopf.klein { width: 26px; height: 26px; }
.symbolknopf.blau { color: var(--blau); } .symbolknopf.orange { color: var(--orange); } .symbolknopf.rot { color: var(--rot); font-weight: 800; } .symbolknopf.lila { color: var(--lila); }
.trenner { width: 1px; height: 20px; background: var(--linie-stark); margin: 0 4px; }

.eingabe { width: 100%; height: 36px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--linie-stark); background: var(--flaeche); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.eingabe { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.45; }
.eingabe:focus { border-color: var(--blau); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blau) 25%, transparent); }
.eingabe.klein { height: 30px; font-size: 13px; }
.eingabe.code { text-align: center; font-size: 26px; letter-spacing: 0.3em; height: 54px; font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.eingabe.code.klein { font-size: 18px; height: 40px; }
.eingabe.gross-text { font-size: 18px; font-weight: 600; height: 42px; }
select.eingabe { padding-right: 28px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.formular { display: flex; flex-direction: column; gap: 10px; }
.formular.zentriert { align-items: center; text-align: center; }
.formular.zentriert .eingabe { max-width: 280px; }
.formular-gruppe { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--flaeche-2); border-radius: var(--radius); }
.feld { display: flex; flex-direction: column; gap: 5px; }
.feld-name { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.03em; }
.feld-hinweis { font-size: 12px; color: var(--text-2); }
.fehlertext { color: var(--rot); font-size: 13px; }
.haken-zeile { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.haken-zeile input { accent-color: var(--blau); width: 16px; height: 16px; }
.hinweis-kasten { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--auswahl); font-size: 13px; }
.hinweis-kasten.gruen { background: color-mix(in srgb, var(--gruen) 16%, transparent); color: var(--gruen); font-weight: 600; align-items: center; }

.schalter { width: 46px; height: 28px; border-radius: 14px; background: var(--flaeche-3); position: relative; flex: none; transition: background .2s; box-shadow: inset 0 0 0 1px var(--linie); }
.schalter span { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 12px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform .2s; }
.schalter.an { background: var(--gruen); }
.schalter.an span { transform: translateX(18px); }

.avatar { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; flex: none; letter-spacing: 0.02em; vertical-align: middle; }
.kat-punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.kat-punkt.gross { width: 12px; height: 12px; }

.laden { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px; color: var(--text-2); font-size: 13px; }
.kreisel { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--linie-stark); border-top-color: var(--blau); animation: drehen .8s linear infinite; }
.kreisel.klein { width: 13px; height: 13px; border-width: 2px; }
.kreisel.gross { width: 34px; height: 34px; border-width: 3px; border-color: rgba(255,255,255,.25); border-top-color: #fff; }
@keyframes drehen { to { transform: rotate(360deg); } }
.start-laden { height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #fc5c7d, #6a82fb 55%, #1b1440); }

.glas { background: var(--glas); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); border: 0.5px solid var(--glas-rand); }

.meldungen { position: fixed; top: 40px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.meldung { padding: 10px 18px; border-radius: 22px; background: rgba(30,30,32,.88); color: #fff; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.25); backdrop-filter: blur(20px); animation: rein .25s ease-out; max-width: 90vw; }
.meldung.erfolg { background: rgba(36, 138, 61, .92); }
.meldung.fehler { background: rgba(215, 0, 21, .92); }
@keyframes rein { from { opacity: 0; transform: translateY(-10px) scale(.96); } }

.dialog-hintergrund { position: fixed; inset: 0; background: rgba(0,0,0,.32); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 16px; animation: einblenden .15s; }
@keyframes einblenden { from { opacity: 0; } }
.dialog { background: var(--flaeche); border-radius: 16px; box-shadow: var(--schatten-fenster); width: 460px; max-width: 100%; max-height: 92vh; display: flex; flex-direction: column; padding: 18px; gap: 12px; animation: aufploppen .2s ease-out; }
.dialog.klein { width: 340px; text-align: center; }
.dialog.klein p { margin: 0; color: var(--text-2); line-height: 1.45; }
.dialog.breit { width: 640px; }
.dialog-kopf { display: flex; align-items: center; justify-content: space-between; }
.dialog-scroll { overflow-y: auto; margin: 0 -18px; padding: 0 18px; }
.dialog-knoepfe { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding-top: 4px; }
.dialog.klein .dialog-knoepfe .knopf { flex: 1; }
@keyframes aufploppen { from { opacity: 0; transform: scale(.95); } }

.popup-anker { position: relative; }
.popup-schutz { position: fixed; inset: 0; z-index: 90; }
.popup { position: absolute; top: 36px; left: 0; z-index: 100; min-width: 210px; border-radius: 10px; padding: 5px; box-shadow: 0 12px 36px rgba(0,0,0,.22); display: flex; flex-direction: column; }
.popup.rechtsbuendig { left: auto; right: 0; }
.popup.lang { max-height: 360px; overflow-y: auto; }
.popup button, .popup a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; color: var(--text); white-space: nowrap; }
.popup button:hover, .popup a:hover { background: var(--blau-flaeche); color: #fff; }
.popup .platz { width: 14px; }
.popup-titel { font-size: 11px; font-weight: 600; color: var(--text-2); padding: 4px 10px; text-transform: uppercase; }

.segment { display: inline-flex; background: var(--flaeche-3); border-radius: 8px; padding: 2px; }
.segment button { padding: 4px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.segment button.aktiv { background: var(--flaeche); box-shadow: 0 1px 3px rgba(0,0,0,.15); }

.chip-knopf { padding: 4px 10px; border-radius: 14px; background: var(--flaeche-3); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip-knopf.aktiv { background: var(--blau-flaeche); color: #fff; }
.rolle-chip { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; background: var(--flaeche-3); color: var(--text-2); }
.rolle-chip.admin { background: color-mix(in srgb, var(--lila) 18%, transparent); color: color-mix(in srgb, var(--lila) 62%, var(--text)); }
.rolle-chip.benutzer { background: var(--auswahl); color: var(--blau); }
.rolle-chip.warn { background: color-mix(in srgb, var(--orange) 18%, transparent); color: color-mix(in srgb, var(--orange) 55%, var(--text)); }

/* ------------------------------------------------------------ Sperrbildschirm */

.sperre { height: 100%; display: flex; flex-direction: column; align-items: center; color: #fff; overflow-y: auto; padding: 0 16px; }
.sperre-uhr { text-align: center; margin-top: max(5vh, 30px); text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.sperre-datum { font-size: 20px; font-weight: 500; opacity: .92; }
.sperre-zeit { font-family: var(--schrift-anzeige); font-size: clamp(64px, 14vw, 112px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin-top: 4px; }
.sperre-inhalt { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; padding: 24px 0; }
.sperre-fuss { font-size: 12px; opacity: .75; display: flex; align-items: center; gap: 6px; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); }
.glas-karte { background: rgba(255,255,255,.72); color: #1d1d1f; backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.3); border: 0.5px solid rgba(255,255,255,.6); }
@media (prefers-color-scheme: dark) { .glas-karte { background: rgba(28,28,30,.72); color: #f5f5f7; border-color: rgba(255,255,255,.12); } }
.anmelde-karte { width: 340px; max-width: 100%; padding: 28px 24px; display: flex; flex-direction: column; gap: 11px; align-items: stretch; text-align: center; }
.anmelde-karte.breit { width: 440px; }
.anmelde-karte h1 { font-size: 24px; } .anmelde-karte h2 { font-size: 21px; }
.anmelde-karte p { margin: 0 0 4px; line-height: 1.45; }
.anmelde-karte .eingabe { height: 42px; font-size: 15px; border-radius: 10px; }
.anmelde-karte .eingabe.code { height: 56px; }
.app-logo { width: 58px; height: 58px; border-radius: 15px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(180deg, #4fc3ff, #0a6cff); box-shadow: 0 8px 20px rgba(10,108,255,.35); }
.app-logo.gross { width: 72px; height: 72px; border-radius: 18px; }
.wackeln { animation: wackeln .45s; }
@keyframes wackeln { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.staerke { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); }
.staerke-balken { flex: 1; height: 5px; border-radius: 3px; background: var(--linie); overflow: hidden; }
.staerke-balken span { display: block; height: 100%; border-radius: 3px; transition: width .2s; }
.s0 { background: var(--rot); } .s1 { background: var(--orange); } .s2 { background: var(--gruen); } .s3 { background: #0bb04a; }
.qr { width: 190px; height: 190px; background: #fff; border-radius: 12px; padding: 8px; }
.qr svg { width: 100%; height: 100%; }
.schluessel { display: block; margin-top: 6px; font-size: 13px; word-break: break-all; user-select: all; }
.schritt { font-size: 13px; color: var(--text-2); align-self: stretch; text-align: left; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 12px 16px; background: var(--flaeche-2); border-radius: 10px; }
.codes code { font-size: 15px; font-family: ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: 0.04em; }

/* ------------------------------------------------------------ Desktop */

.desktop { position: fixed; inset: 0; overflow: hidden; background-size: cover !important; }
.menueleiste { position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 300; display: flex; justify-content: space-between; align-items: center; padding: 0 14px;
  color: #fff; font-size: 13px; background: rgba(0,0,0,.18); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%); text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ml-links, .ml-rechts { display: flex; align-items: center; gap: 14px; }
.ml-logo { display: flex; }
.ml-zeit { font-variant-numeric: tabular-nums; font-weight: 500; }
.ml-person { display: flex; border-radius: 50%; }
.ml-schutz { display: flex; opacity: .9; }
.ml-menue { position: absolute; top: 34px; right: 10px; width: 260px; border-radius: 12px; padding: 6px; color: var(--text); text-shadow: none; box-shadow: 0 16px 40px rgba(0,0,0,.3); display: flex; flex-direction: column; }
.ml-menue-kopf { display: flex; gap: 10px; align-items: center; padding: 8px; }
.ml-menue-kopf span { display: block; font-size: 12px; color: var(--text-2); }
.ml-menue button { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 6px; }
.ml-menue button:hover { background: var(--blau-flaeche); color: #fff; }
.ml-menue hr { border: 0; border-top: 1px solid var(--linie); margin: 4px 6px; width: auto; }

.widgets { position: absolute; inset: 30px 0 96px; overflow-y: auto; overflow-x: hidden; padding: 28px 40px 20px; display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 32px; align-content: start; }
.uhr-block { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); padding-top: 10px; }
.uhr-datum { font-size: 20px; font-weight: 500; opacity: .95; }
.uhr-zeit { font-family: var(--schrift-anzeige); font-size: 96px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 4px 0 6px; }
.uhr-sek { font-size: 30px; font-weight: 500; opacity: .55; margin-left: 6px; letter-spacing: 0; }
.uhr-gruss { font-size: 22px; font-weight: 500; opacity: .9; }
.widget-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; align-content: start; max-width: 1100px; }
.widget { background: var(--widget); color: var(--widget-text); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); border-radius: 22px;
  padding: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.12); border: 0.5px solid var(--glas-rand); display: flex; flex-direction: column; gap: 8px; min-height: 160px; text-align: left; width: 100%; }
button.widget { cursor: pointer; transition: transform .15s; }
button.widget:hover { transform: translateY(-2px); }
.widget-kopf { display: flex; align-items: center; gap: 8px; width: 100%; }
.widget-kopf b { font-size: 15px; }
.widget-kopf .rechts { font-size: 12px; color: var(--text-2); }
.wk-symbol { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #fff; }
.widget-leer { color: var(--text-2); font-size: 13px; padding: 10px 0; }

.wetter { background: linear-gradient(180deg, rgba(74,144,226,.85), rgba(46,104,189,.85)); color: #fff; gap: 10px; }
.wetter.wetter-wolke, .wetter.wetter-nebel { background: linear-gradient(180deg, rgba(120,140,165,.85), rgba(85,102,128,.85)); }
.wetter.wetter-regen, .wetter.wetter-gewitter { background: linear-gradient(180deg, rgba(88,106,135,.88), rgba(55,68,92,.88)); }
.wetter.wetter-schnee { background: linear-gradient(180deg, rgba(150,170,200,.88), rgba(105,125,160,.88)); }
.wetter.nacht { background: linear-gradient(180deg, rgba(25,35,75,.88), rgba(12,18,45,.9)); }
.wetter .leise-hell { color: rgba(255,255,255,.75); font-size: 12px; }
.w-kopf { display: flex; justify-content: space-between; }
.w-ort { font-weight: 600; display: flex; align-items: center; gap: 4px; font-size: 14px; }
.w-temp { font-family: var(--schrift-anzeige); font-size: 52px; font-weight: 300; line-height: 1.05; }
.w-rechts { text-align: right; display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; font-weight: 500; }
.w-stunden { display: flex; justify-content: space-between; padding: 8px 0; border-top: 0.5px solid rgba(255,255,255,.25); border-bottom: 0.5px solid rgba(255,255,255,.25); }
.w-stunden div { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; }
.w-tage { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.w-tage div { display: grid; grid-template-columns: 28px 24px 34px 30px 1fr 30px; align-items: center; gap: 6px; }
.w-regen { color: #8fd3ff; font-size: 11px; font-weight: 600; }
.w-balken { height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); }
.w-balken i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #8fd3ff, #ffd36e); }
.w-fuss { font-size: 11px; }

.mail-widget { gap: 2px; }
.mw-zeile { display: flex; gap: 8px; padding: 7px 6px; border-radius: 10px; width: 100%; align-items: flex-start; }
.mw-zeile:hover { background: rgba(127,127,127,.12); }
.mw-punkt { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.mw-text { min-width: 0; flex: 1; }
.mw-oben { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; }
.mw-oben b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-oben span { color: var(--text-2); font-size: 12px; flex: none; }
.mw-betreff { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.kalender-widget { flex-direction: row; gap: 14px; }
.kw-links { display: flex; flex-direction: column; width: 140px; flex: none; }
.kw-tag { color: var(--rot); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.kw-zahl { font-family: var(--schrift-anzeige); font-size: 38px; font-weight: 400; line-height: 1.1; }
.kw-rechts { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kw-termin { border-left: 3px solid; padding-left: 8px; display: flex; flex-direction: column; font-size: 13px; }
.kw-termin span { color: var(--text-2); font-size: 12px; }
.mini-monat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; font-size: 10.5px; text-align: center; margin-top: 6px; }
.mm-kopf { color: var(--text-2); font-weight: 600; }
.mm-tag { padding: 2px 0; border-radius: 50%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.mm-tag.heute { background: var(--rot-flaeche); color: #fff; font-weight: 700; }
.mm-tag.wahl:not(.heute) { background: var(--auswahl); color: var(--blau); font-weight: 700; }
.mm-tag.punkt::after { content: ""; position: absolute; bottom: 1px; width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.kal-leiste .mini-monat { font-size: 12px; gap: 2px; }
.kal-leiste .mm-tag { cursor: pointer; }
.kal-leiste .mm-tag:hover:not(.heute) { background: var(--flaeche-3); }

.links-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 10px 6px; }
.link-kachel { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 2px; border-radius: 12px; color: var(--widget-text); position: relative; }
a.link-kachel:hover { background: rgba(127,127,127,.12); }
.lk-symbol { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.12); overflow: hidden; }
.lk-symbol img { width: 28px; height: 28px; }
.lk-titel { font-size: 11.5px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.link-kachel.bearbeiten { animation: zittern .3s infinite alternate; }
@keyframes zittern { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
.lk-weg { position: absolute; top: 0; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #8e8e93; color: #fff; display: flex; align-items: center; justify-content: center; z-index: 2; }
.lk-pfeile { display: flex; gap: 4px; }
.lk-pfeile button { width: 22px; height: 18px; border-radius: 5px; background: rgba(127,127,127,.2); font-size: 13px; line-height: 1; text-align: center; }
.link-neu { display: flex; gap: 6px; }
.link-neu .eingabe { background: rgba(255,255,255,.6); }
.notiz-widget { background: linear-gradient(180deg, rgba(255,247,200,.85), rgba(255,236,150,.85)); color: #3a3000; }
.notiz-widget .rechts { color: #8a7400 !important; }
.nw-inhalt b { display: block; font-size: 15px; margin-bottom: 4px; }
.nw-inhalt p { margin: 0; font-size: 13px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; opacity: .85; }

.dock { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; gap: 6px; padding: 7px 10px; border-radius: 22px; box-shadow: 0 10px 40px rgba(0,0,0,.25); align-items: flex-end; }
.dock-app { position: relative; display: flex; flex-direction: column; align-items: center; transition: transform .2s cubic-bezier(.2,1.6,.4,1); }
.dock-app:hover { transform: translateY(-8px) scale(1.12); }
.dock-titel { position: absolute; bottom: 74px; padding: 3px 10px; border-radius: 6px; background: rgba(30,30,32,.75); color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.dock-app:hover .dock-titel { opacity: 1; }
.dock-punkt { position: absolute; bottom: -5px; width: 4px; height: 4px; border-radius: 50%; background: var(--text); opacity: .7; }
.abzeichen { position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rot-flaeche); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.app-symbol { display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18), inset 0 0 0 0.5px rgba(255,255,255,.25); flex: none; }
.kalender-symbol { background: #fff !important; flex-direction: column; color: #1d1d1f; gap: 0; }
.ks-tag { color: #d92d20; font-weight: 600; line-height: 1; }
.ks-zahl { font-weight: 400; line-height: 1; font-family: var(--schrift-anzeige); }

/* Fenster */
.fenster { position: absolute; display: flex; flex-direction: column; background: var(--flaeche); border-radius: 12px; overflow: hidden; box-shadow: var(--schatten-fenster); animation: fenster-auf .22s cubic-bezier(.2,.9,.3,1.1); }
.fenster:not(.vorne) { filter: saturate(.92); }
.fenster.maximiert { inset: 30px 0 84px 0 !important; width: auto !important; height: auto !important; border-radius: 0; }
.fenster.versteckt { display: none; }
@keyframes fenster-auf { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.fenster-kopf { height: 38px; display: flex; align-items: center; padding: 0 12px; background: var(--leiste); border-bottom: 1px solid var(--linie); position: relative; cursor: default; user-select: none; flex: none; }
.fenster-titel { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 600; font-size: 13px; color: var(--text-2); }
.ampel { display: flex; gap: 8px; z-index: 2; }
.ampel button { width: 12px; height: 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: transparent; }
.ampel:hover button { color: rgba(0,0,0,.55); }
.ampel .rot { background: #ff5f57; } .ampel .gelb { background: #febc2e; } .ampel .gruen { background: #28c840; }
.fenster:not(.vorne) .ampel button { background: var(--text-3); }
.fenster-inhalt { flex: 1; min-height: 0; display: flex; }
.fenster-inhalt > * { flex: 1; min-width: 0; }
.fenster-griff { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; }

/* ------------------------------------------------------------ Gemeinsame Spalten */

.mail-app, .kalender-app, .kontakte-app, .notizen-app, .einstellungen-app { display: flex; min-height: 0; height: 100%; background: var(--flaeche); }
.mail-leiste, .kal-leiste, .ei-leiste { width: 240px; flex: none; background: var(--leiste); border-right: 1px solid var(--linie); overflow-y: auto; padding: 10px 8px; }
.ml-gruppe { margin-bottom: 14px; }
.ml-gruppe-titel { font-size: 11px; font-weight: 700; color: var(--text-2); padding: 6px 10px 4px; display: flex; align-items: center; justify-content: space-between; text-transform: uppercase; letter-spacing: .03em; }
.ml-mini { color: var(--lila); display: flex; padding: 2px; border-radius: 5px; }
.ml-mini:hover { background: var(--flaeche-3); }
.ml-eintrag { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 10px; border-radius: 7px; font-size: 13.5px; min-height: 30px; }
.ml-eintrag:hover { background: rgba(127,127,127,.1); }
.ml-eintrag.aktiv { background: var(--auswahl); }
.ml-eintrag .sym { color: var(--blau); }
.ml-eintrag em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-2); }
.ml-eintrag em.grau { font-weight: 400; }
.ml-eintrag > span:not(.kat-punkt):not(.ml-pfeil) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rolle-flagged, .ml-eintrag .rolle-flagged { color: var(--orange) !important; }
.rolle-junk { color: var(--text-2) !important; } .rolle-trash { color: var(--text-2) !important; }
.ml-eintrag.konto { font-size: 12.5px; padding-left: 2px; }
.ml-eintrag.ordner { padding-left: 34px; font-size: 13px; }
.ml-eintrag.ordner .sym { color: var(--text-2); }
.ml-pfeil { display: flex; color: var(--text-3); transition: transform .15s; padding: 3px; }
.ml-pfeil.auf { transform: rotate(90deg); }
.ml-konto-name { flex: 1; }
.ml-warn { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ml-hinweis { font-size: 12px; color: var(--text-2); padding: 2px 10px; line-height: 1.5; }
.ml-abgleich { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--text-2); padding: 6px 10px; }

/* ------------------------------------------------------------ Mail */

.mail-liste { width: 360px; flex: none; border-right: 1px solid var(--linie); display: flex; flex-direction: column; min-height: 0; }
.liste-kopf { padding: 12px 14px 8px; border-bottom: 1px solid var(--linie); display: flex; flex-direction: column; gap: 8px; }
.lk-zeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.lk-zeile h2 { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.lk-knoepfe { display: flex; gap: 2px; flex: none; }
.suchfeld { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border-radius: 9px; background: var(--flaeche-3); color: var(--text-2); }
.suchfeld input { flex: 1; border: 0; background: none; outline: none; min-width: 0; height: 100%; color: var(--text); }
.suchfeld button { color: var(--text-3); display: flex; }
.auswahl-leiste { display: flex; gap: 6px; align-items: center; padding: 8px 12px; background: var(--auswahl); font-size: 12.5px; flex-wrap: wrap; }
.auswahl-leiste button { padding: 3px 9px; border-radius: 6px; background: var(--flaeche); font-weight: 500; }
.auswahl-leiste button.rot { color: var(--rot); }
.liste-zeilen { flex: 1; overflow-y: auto; }
.mail-zeile { display: flex; width: 100%; padding: 10px 14px 10px 4px; border-bottom: 1px solid var(--linie); gap: 4px; position: relative; }
.mail-zeile:hover { background: rgba(127,127,127,.05); }
.mail-zeile.offen { background: var(--auswahl-stark); color: #fff; border-radius: 10px; margin: 0 6px; width: calc(100% - 12px); border-color: transparent; }
.mail-zeile.offen * { color: #fff !important; }
.mail-zeile.ausgewaehlt { background: var(--auswahl); }
.mz-rand { width: 18px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 5px; }
.mz-punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--blau); }
.mz-fahne { color: var(--orange); }
.mz-inhalt { flex: 1; min-width: 0; }
.mz-oben { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mz-von { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-datum { font-size: 12px; color: var(--text-2); flex: none; display: flex; gap: 4px; align-items: center; }
.mz-betreff { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.mail-zeile.ungelesen .mz-betreff { font-weight: 500; }
.mz-vorschau { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; margin-top: 2px; }
.mz-unten { display: flex; gap: 8px; margin-top: 4px; font-size: 11px; color: var(--text-3); align-items: center; }
.mz-konto { display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-konto i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.mz-kat { font-weight: 600; }
.liste-leer, .lesen-leer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 40px 20px; color: var(--text-3); text-align: center; height: 100%; }
.liste-leer p, .lesen-leer p { margin: 0; color: var(--text-2); }
.mehr-laden { text-align: center; padding: 12px; }

.mail-lesen { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.lesen { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.lesen-werkzeuge { display: flex; align-items: center; gap: 2px; padding: 6px 12px; border-bottom: 1px solid var(--linie); flex: none; }
.lesen-kopf { padding: 18px 24px 10px; flex: none; display: flex; flex-direction: column; gap: 12px; max-height: 50%; overflow-y: auto; }
.lesen-kopf h1 { font-size: 22px; line-height: 1.25; }
.lk-absender { display: flex; gap: 12px; align-items: flex-start; }
.lk-namen { flex: 1; min-width: 0; }
.lk-name-zeile { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.lk-name-zeile b { font-size: 15px; }
.lk-an { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.lk-details { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; color: var(--text-2); }
.lk-details span { color: var(--text-3); display: inline-block; width: 82px; }
.ki-kasten { border-radius: 12px; padding: 10px 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--lila) 12%, transparent), color-mix(in srgb, var(--blau) 10%, transparent)); border: 1px solid color-mix(in srgb, var(--lila) 25%, transparent); }
.ki-titel { font-size: 12px; font-weight: 700; color: var(--lila); display: flex; gap: 5px; align-items: center; margin-bottom: 4px; }
.ki-text { white-space: pre-wrap; font-size: 13.5px; line-height: 1.5; }
.bilder-hinweis { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); padding: 7px 12px; border-radius: 9px; background: var(--flaeche-2); }
.bilder-hinweis .textknopf { margin-left: auto; }
.anhaenge { display: flex; flex-wrap: wrap; gap: 8px; }
.anhang { display: flex; gap: 8px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 10px; background: var(--flaeche-2); color: var(--text); max-width: 260px; }
.anhang:hover { background: var(--flaeche-3); }
.anhang-symbol { width: 36px; height: 36px; border-radius: 7px; background: var(--blau-flaeche); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.anhang-text { min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; }
.anhang-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.anhang-text span { color: var(--text-2); font-size: 11.5px; }
.lesen-inhalt { flex: 1; min-height: 0; width: 100%; border: 0; background: #fff; border-top: 1px solid var(--linie); }

.zurueck-knopf { display: inline-flex; align-items: center; gap: 2px; color: var(--blau); font-size: 15px; padding: 4px 6px 4px 0; }

/* Verfassen */
.verfassen-hg { align-items: center; }
.verfassen { width: 760px; max-width: 100%; height: min(720px, 92vh); background: var(--flaeche); border-radius: 14px; box-shadow: var(--schatten-fenster); display: flex; flex-direction: column; overflow: hidden; position: relative; animation: aufploppen .2s ease-out; }
.verfassen.handy { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; }
.v-kopf { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--linie); background: var(--leiste); }
.v-felder { border-bottom: 1px solid var(--linie); }
.v-zeile { display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 40px; border-bottom: 1px solid var(--linie); position: relative; }
.v-zeile:last-child { border-bottom: 0; }
.v-name { color: var(--text-2); width: 76px; flex: none; font-size: 13px; }
.v-eingabe { flex: 1; border: 0; outline: none; background: none; min-width: 120px; height: 36px; }
.v-select { flex: 1; border: 0; outline: none; background: none; height: 36px; min-width: 0; }
.chips { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 4px 0; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 9px; border-radius: 12px; background: var(--auswahl); color: var(--blau); font-size: 13px; }
.chip button { display: flex; padding: 3px; border-radius: 50%; color: var(--blau); }
.vorschlaege { position: absolute; top: 100%; left: 90px; z-index: 50; width: 360px; max-width: calc(100% - 100px); border-radius: 10px; padding: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.vorschlaege button { display: flex; gap: 8px; align-items: center; width: 100%; padding: 6px 8px; border-radius: 7px; }
.vorschlaege button.aktiv, .vorschlaege button:hover { background: var(--blau-flaeche); color: #fff; }
.vorschlaege span { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 13px; }
.vorschlaege i { font-style: normal; font-size: 12px; opacity: .7; }
.v-text { flex: 1; border: 0; outline: none; resize: none; padding: 14px 16px; background: var(--flaeche); line-height: 1.55; font-size: 14.5px; min-height: 0; }
.v-anhaenge { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; border-top: 1px solid var(--linie); }
.v-anhang { display: inline-flex; align-items: center; gap: 5px; padding: 3px 4px 3px 9px; border-radius: 8px; background: var(--flaeche-2); font-size: 12.5px; }
.v-anhang i { color: var(--text-2); font-style: normal; }
.v-anhang button { display: flex; padding: 4px; color: var(--text-2); }
.v-fuss { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--linie); background: var(--leiste); }
.ki-eingabe { display: flex; gap: 8px; align-items: center; padding: 8px 14px; background: color-mix(in srgb, var(--lila) 8%, transparent); color: var(--lila); border-bottom: 1px solid var(--linie); }
.ablegen-hinweis { position: absolute; inset: 0; background: color-mix(in srgb, var(--blau) 15%, transparent); border: 3px dashed var(--blau); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; color: var(--blau); pointer-events: none; }

/* ------------------------------------------------------------ Kalender */

.kal-leiste { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; }
.kal-mini-kopf { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.kal-eintrag { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px; border-radius: 6px; }
.kal-eintrag label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }
.kal-eintrag input { width: 15px; height: 15px; }
.kal-haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.kal-kopf { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--linie); gap: 10px; flex-wrap: wrap; }
.kal-kopf h2 { font-size: 22px; }
.kal-steuer { display: flex; align-items: center; gap: 6px; }
.monat { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: 26px repeat(6, 1fr); min-height: 0; overflow: hidden; }
.monat-kopf { font-size: 11px; font-weight: 600; color: var(--text-2); text-align: right; padding: 6px 8px 0; }
.monat-tag { border-top: 1px solid var(--linie); border-right: 1px solid var(--linie); padding: 3px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; min-height: 0; }
.monat-tag:nth-child(7n) { border-right: 0; }
.monat-tag.wochenende { background: var(--flaeche-2); }
.monat-tag.fremd .mt-zahl { color: var(--text-3); }
.mt-zahl { align-self: flex-end; font-size: 13px; padding: 1px 6px; border-radius: 11px; min-width: 22px; text-align: center; }
.monat-tag.heute .mt-zahl { background: var(--rot-flaeche); color: #fff; font-weight: 600; }
.mt-termin { display: flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 1px 4px; border-radius: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 100%; }
.mt-termin i { width: 7px; height: 7px; border-radius: 50%; background: var(--f); flex: none; }
.mt-termin:hover { background: var(--flaeche-3); }
.mt-termin.ganz { color: #fff; font-weight: 500; }
.mt-zeit { color: var(--text-2); }
.mt-mehr { font-size: 11px; color: var(--text-2); text-align: left; padding: 0 4px; }
.zeit { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.zeit-kopf { display: grid; border-bottom: 1px solid var(--linie); }
.zk-tag { padding: 6px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; border-left: 1px solid var(--linie); }
.zk-tag span { font-size: 11px; color: var(--text-2); }
.zk-tag b { font-size: 20px; font-weight: 400; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.zk-tag.heute b { background: var(--rot-flaeche); color: #fff; font-weight: 600; }
.zk-ganz { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.zk-ganz button { font-size: 11px; color: #fff; padding: 1px 5px; border-radius: 4px; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.zeit-raster { flex: 1; overflow-y: auto; }
.zr-innen { display: grid; position: relative; }
.zr-stunden { display: flex; flex-direction: column; }
.zr-stunden span { height: 48px; font-size: 10.5px; color: var(--text-2); text-align: right; padding-right: 8px; transform: translateY(-7px); }
.zr-spalte { position: relative; border-left: 1px solid var(--linie); }
.zr-zeile { height: 48px; border-top: 1px solid var(--linie); }
.zr-termin { position: absolute; left: 3px; right: 3px; border-radius: 6px; padding: 3px 6px; font-size: 11.5px; background: color-mix(in srgb, var(--f) 22%, var(--flaeche)); border-left: 3px solid var(--f); overflow: hidden; display: flex; flex-direction: column; text-align: left; }
.zr-termin b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zr-termin span { color: var(--text-2); font-size: 10.5px; }
.zr-jetzt { position: absolute; left: 0; right: 0; height: 2px; background: var(--rot); z-index: 3; }
.zr-jetzt::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--rot); }
.kal-liste { flex: 1; overflow-y: auto; padding: 0 0 20px; }
.kl-tag { position: sticky; top: 0; background: var(--leiste); backdrop-filter: blur(20px); padding: 8px 16px; font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--linie); }
.kl-tag.heute { color: var(--rot); }
.kl-termin { display: flex; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--linie); width: 100%; align-items: flex-start; }
.kl-termin:hover { background: var(--flaeche-2); }
.kl-termin > i { width: 4px; align-self: stretch; border-radius: 2px; flex: none; }
.kl-zeit { width: 64px; font-size: 12px; color: var(--text-2); white-space: pre-line; flex: none; }
.kl-termin > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.kl-termin em { font-style: normal; font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 3px; }
.farbwahl { display: flex; gap: 8px; flex-wrap: wrap; }
.farbwahl button { width: 26px; height: 26px; border-radius: 50%; }
.farbwahl button.aktiv { box-shadow: 0 0 0 2px var(--flaeche), 0 0 0 4px var(--text-2); }

/* ------------------------------------------------------------ Kontakte & Notizen */

.ko-liste, .no-liste { width: 300px; flex: none; border-right: 1px solid var(--linie); display: flex; flex-direction: column; min-height: 0; background: var(--flaeche); }
.ko-kopf { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; }
.ko-kopf h2 { font-size: 22px; }
.ko-liste .suchfeld, .no-liste .suchfeld { margin: 0 12px 8px; }
.ko-zeilen, .no-zeilen { flex: 1; overflow-y: auto; }
.ko-buchstabe { position: sticky; top: 0; background: var(--leiste); backdrop-filter: blur(20px); padding: 3px 16px; font-size: 12px; font-weight: 700; color: var(--text-2); z-index: 1; }
.ko-zeile { display: flex; align-items: center; gap: 10px; padding: 7px 14px; width: 100%; }
.ko-zeile:hover { background: var(--flaeche-2); }
.ko-zeile.aktiv { background: var(--auswahl-stark); color: #fff; }
.ko-zeile span { display: flex; flex-direction: column; min-width: 0; }
.ko-zeile b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ko-zeile strong { font-weight: 600; }
.ko-zeile i { font-style: normal; font-size: 12px; opacity: .65; }
.ko-karte, .no-text { flex: 1; min-width: 0; overflow-y: auto; }
.kk { max-width: 620px; margin: 0 auto; padding: 0 20px 30px; }
.kk-werkzeuge { display: flex; align-items: center; gap: 8px; padding: 10px 0; position: sticky; top: 0; background: var(--flaeche); z-index: 2; }
.kk-kopf { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 20px; text-align: center; }
.kk-kopf h1 { font-size: 26px; }
.kk-aktionen { display: flex; gap: 10px; margin-top: 12px; }
.kk-aktionen > * { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--blau); width: 72px; padding: 8px 4px; border-radius: 12px; background: var(--flaeche-2); }
.kk-aktionen span { width: 32px; height: 32px; border-radius: 50%; background: var(--blau-flaeche); color: #fff; display: flex; align-items: center; justify-content: center; }
.kk-felder { background: var(--flaeche-2); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.kk-feld { padding: 10px 14px; border-bottom: 1px solid var(--linie); display: flex; flex-direction: column; gap: 2px; }
.kk-feld:last-child { border-bottom: 0; }
.kk-feld > span { font-size: 12px; color: var(--text-2); text-transform: capitalize; }
.no-liste { background: var(--leiste); }
.no-zeile { display: flex; flex-direction: column; gap: 2px; padding: 9px 14px; margin: 0 8px; border-radius: 9px; width: calc(100% - 16px); border-bottom: 1px solid var(--linie); }
.no-zeile.aktiv { background: color-mix(in srgb, var(--gelb) 55%, transparent); border-color: transparent; }
.no-zeile b { display: flex; gap: 4px; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.no-zeile span { font-size: 12.5px; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.no-zeile i { font-style: normal; color: var(--text); margin-right: 4px; }
.no-editor { display: flex; flex-direction: column; height: 100%; padding: 0 28px; max-width: 860px; margin: 0 auto; }
.no-titel { border: 0; outline: none; background: none; font-size: 26px; font-weight: 700; font-family: var(--schrift-anzeige); padding: 10px 0 6px; }
.no-inhalt { flex: 1; border: 0; outline: none; background: none; resize: none; font-size: 15.5px; line-height: 1.6; padding: 4px 0 30px; }

/* ------------------------------------------------------------ Einstellungen */

.ei-leiste { width: 260px; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; }
.ei-ich { display: flex; gap: 10px; align-items: center; padding: 8px 8px 14px; }
.ei-ich span { display: block; font-size: 12px; color: var(--text-2); }
.ei-eintrag { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; }
.ei-eintrag:hover { background: rgba(127,127,127,.1); }
.ei-eintrag.aktiv { background: var(--auswahl-stark); color: #fff; }
.ei-symbol { width: 24px; height: 24px; border-radius: 6px; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ei-version { margin-top: auto; padding: 10px 8px 0; }
.ei-inhalt { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; background: var(--flaeche-2); }
.ei-kopf { padding: 14px 24px 10px; display: flex; flex-direction: column; gap: 4px; }
.ei-kopf h2 { font-size: 22px; }
.ei-koerper { flex: 1; overflow-y: auto; padding: 4px 24px 30px; display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.ei-gruppe h3 { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 6px 4px; }
.ei-karte { background: var(--flaeche); border-radius: var(--radius); box-shadow: 0 0 0 0.5px var(--linie); overflow: visible; }
.ei-fuss { font-size: 12px; color: var(--text-2); margin: 6px 4px 0; line-height: 1.45; }
.ei-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--linie); width: 100%; }
.ei-zeile:last-child { border-bottom: 0; }
.ei-zeile.spalte { flex-direction: column; align-items: stretch; }
.ei-zeile.klickbar:hover { background: var(--flaeche-2); }
.ei-zeile > span:first-child { line-height: 1.4; }
.ei-polster { padding: 14px; }
.geraet { display: flex; gap: 10px; align-items: center; min-width: 0; line-height: 1.35; }
.geraet em { font-style: normal; font-size: 12px; }
.hg-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; padding: 14px; }
.hg-wahl { display: flex; flex-direction: column; gap: 5px; align-items: center; cursor: pointer; font-size: 12px; }
.hg-wahl span { width: 100%; aspect-ratio: 16/10; border-radius: 9px; box-shadow: 0 0 0 1px var(--linie); background-size: cover !important; }
.hg-wahl.aktiv span { box-shadow: 0 0 0 3px var(--blau); }
.hg-wahl i { font-style: normal; color: var(--text-2); }
.hg-eigen { display: flex; align-items: center; justify-content: center; background: var(--flaeche-3); color: var(--text-2); }
.ort-treffer { display: flex; gap: 6px; align-items: center; padding: 7px 4px; border-radius: 6px; font-size: 13px; }
.ort-treffer:hover { background: var(--flaeche-2); }
.zahlen-reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.zahlen-reihe div { background: var(--flaeche); border-radius: var(--radius); padding: 12px 14px; box-shadow: 0 0 0 0.5px var(--linie); display: flex; flex-direction: column; }
.zahlen-reihe b { font-size: 26px; font-family: var(--schrift-anzeige); }
.zahlen-reihe span { font-size: 12px; color: var(--text-2); }
.zahlen-reihe .orange b { color: var(--orange); } .zahlen-reihe .rot b { color: var(--rot); } .zahlen-reihe .gruen b { color: var(--gruen); }
.rollen-wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rolle-karte { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 10px; box-shadow: 0 0 0 1px var(--linie-stark); cursor: pointer; font-size: 12px; color: var(--text-2); }
.rolle-karte b { color: var(--text); font-size: 13.5px; }
.rolle-karte input { display: none; }
.rolle-karte.aktiv { box-shadow: 0 0 0 2px var(--blau); background: var(--auswahl); }
.postfach-wahl { max-height: 240px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 8px; background: var(--flaeche-2); border-radius: 10px; font-size: 13px; }
.protokoll { background: var(--flaeche); border-radius: var(--radius); box-shadow: 0 0 0 0.5px var(--linie); overflow: hidden; }
.pr-zeile { display: grid; grid-template-columns: 140px 1fr 150px; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--linie); font-size: 12.5px; align-items: baseline; }
.pr-zeile.warn { background: color-mix(in srgb, var(--rot) 7%, transparent); }
.pr-zeile.warn b { color: var(--rot); }
.pr-zeit { color: var(--text-2); font-variant-numeric: tabular-nums; }
.pr-was span { color: var(--text-2); }
.pr-wer { text-align: right; display: flex; flex-direction: column; }
.pr-wer i { font-style: normal; color: var(--text-3); font-size: 11px; }

@media (max-width: 1180px) and (min-width: 760px) {
  .widgets { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px 28px; }
  .uhr-block { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
  .uhr-zeit { font-size: 64px; order: -1; }
  .uhr-sek { font-size: 22px; }
  .uhr-datum, .uhr-gruss { font-size: 18px; }
  .mail-leiste { width: 210px; } .mail-liste { width: 300px; }
}

/* ------------------------------------------------------------ Handy */

@media (max-width: 759px) {
  .widgets { inset: 0 0 86px; display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top)) 16px 20px; gap: 18px; }
  .handy-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
  .uhr-block { text-align: center; padding-top: 0; }
  .uhr-zeit { font-size: 76px; }
  .uhr-sek { display: none; }
  .uhr-gruss { font-size: 18px; }
  .widget-raster { grid-template-columns: 1fr; gap: 14px; }
  .dock { bottom: var(--unten); gap: 6px; padding: 7px 9px; border-radius: 22px; max-width: calc(100vw - 16px); }
  .dock .abzeichen { min-width: 17px; height: 17px; font-size: 10.5px; top: -5px; right: -5px; }
  .dock-app:hover { transform: none; }
  .fenster.handy { inset: 0 0 calc(76px + env(safe-area-inset-bottom)) 0 !important; border-radius: 0 0 20px 20px; animation: von-unten .25s ease-out; padding-top: env(safe-area-inset-top); }
  @keyframes von-unten { from { transform: translateY(30px); opacity: 0; } }
  .mail-app.handy > *, .kalender-app.handy > *, .kontakte-app.handy > *, .notizen-app.handy > *, .einstellungen-app.handy > * { width: 100% !important; border-right: 0; flex: 1; }
  .handy-titel { padding: 8px 6px 10px; } .handy-titel h1 { font-size: 30px; }
  .mail-leiste, .ei-leiste { background: var(--flaeche-2); padding: 10px 12px; }
  .ml-eintrag { min-height: 42px; font-size: 16px; }
  .ml-eintrag.konto { font-size: 14.5px; }
  .liste-kopf { padding: 10px 14px 8px; }
  .lk-zeile h2 { font-size: 28px; max-width: 60vw; }
  .mz-von { font-size: 15.5px; } .mz-betreff, .mz-vorschau { font-size: 14.5px; }
  .mail-zeile.offen { margin: 0; width: 100%; border-radius: 0; }
  .lesen-werkzeuge { overflow-x: auto; }
  .lesen-kopf { padding: 14px 16px 8px; max-height: 45%; }
  .lesen-kopf h1 { font-size: 20px; }
  .kal-kopf h2 { font-size: 20px; width: 100%; }
  .kal-steuer { width: 100%; }
  .monat-tag { padding: 2px 1px; }
  .mt-termin { font-size: 10px; padding: 0 2px; }
  .mt-termin .mt-zeit { display: none; }
  .ei-koerper { padding: 4px 14px 30px; }
  .ei-kopf { padding: 10px 14px 6px; }
  .dialog { width: 100% !important; max-height: 94vh; }
  .dialog-hintergrund { align-items: flex-end; padding: 0; }
  .dialog:not(.klein) { border-radius: 16px 16px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .zwei-spalten, .rollen-wahl, .postfach-wahl { grid-template-columns: 1fr; }
  .pr-zeile { grid-template-columns: 1fr; gap: 2px; }
  .pr-wer { text-align: left; flex-direction: row; gap: 8px; }
  .vorschlaege { left: 10px; width: calc(100% - 20px); max-width: none; }
  .eingabe, .v-eingabe, .suchfeld input { font-size: 16px; }
  .meldungen { top: calc(10px + env(safe-area-inset-top)); }
  .no-editor { padding: 0 16px; }
}

@media print {
  body { overflow: visible; background: #fff; }
  .desktop > *:not(.fenster), .fenster-kopf, .dock, .menueleiste { display: none !important; }
}

/* ------------------------------------------------------------ Stufe 3: Anbieter */
.breite-80 { width: 86px; flex: none; }
.anbieter-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.anbieter-karte { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px; box-shadow: 0 0 0 1px var(--linie-stark); font-size: 12.5px; line-height: 1.2; text-align: left; }
.anbieter-karte.aktiv { box-shadow: 0 0 0 2px var(--blau); background: var(--auswahl); }
.ak-logo { width: 24px; height: 24px; border-radius: 6px; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.ms-logo { display: grid; grid-template-columns: 8px 8px; gap: 2px; }
.ms-logo i { width: 8px; height: 8px; }
.ms-logo i:nth-child(1) { background: #f25022; } .ms-logo i:nth-child(2) { background: #7fba00; } .ms-logo i:nth-child(3) { background: #00a4ef; } .ms-logo i:nth-child(4) { background: #ffb900; }
.ms-code p { margin: 4px 0; }
.ms-code-wert { display: block; font-size: 28px; letter-spacing: .15em; font-weight: 700; text-align: center; padding: 10px; background: var(--flaeche); border-radius: 10px; margin: 6px 0; user-select: all; font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.anleitung summary { cursor: pointer; color: var(--blau); font-weight: 500; }
.anleitung ol { padding-left: 20px; margin: 8px 0; line-height: 1.55; }
.anleitung li { margin-bottom: 4px; }
/* ------------------------------------------------------------ Stufe 5 */
.rich { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rich-leiste { display: flex; align-items: center; gap: 2px; padding: 5px 10px; border-bottom: 1px solid var(--linie); flex-wrap: wrap; position: relative; }
.rich-leiste button, .rich-knopf { min-width: 28px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); font-size: 13px; cursor: pointer; }
.rich-leiste button:hover, .rich-knopf:hover { background: var(--flaeche-3); color: var(--text); }
.rich-farbe { min-width: 16px !important; width: 16px; height: 16px !important; border-radius: 50% !important; margin: 0 2px; }
.rich-link { position: absolute; top: 34px; right: 10px; z-index: 5; width: 280px; }
.rich-text { flex: 1; overflow-y: auto; padding: 14px 16px; outline: none; line-height: 1.55; font-size: 14.5px; min-height: 120px; }
.rich-text img { max-width: 100%; }
.rich-text blockquote { margin: 0 0 0 .6em; padding-left: .8em; border-left: 3px solid var(--linie-stark); color: var(--text-2); }
.unterhaltung { display: flex; flex-direction: column; gap: 2px; }
.uh-zeile { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; text-align: left; }
.uh-zeile:hover { background: var(--flaeche-2); } .uh-zeile.aktuell { background: var(--auswahl); }
.uh-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; }
.uh-text i { font-style: normal; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ordner-mehr { margin-left: auto; opacity: 0; display: flex; padding: 2px; border-radius: 4px; }
.ml-eintrag:hover .ordner-mehr { opacity: .7; }
.ml-eintrag.ablegen { background: var(--blau-flaeche) !important; color: #fff; }
.ml-eintrag.ablegen .sym { color: #fff !important; }
.dialog.klein .knopf { width: 100%; }
.hinweis-leiste { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; color: var(--widget-text); }
.hl-text { flex: 1; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.hl-text i { font-style: normal; color: var(--text-2); font-size: 11.5px; margin: 0 6px; }
.briefing-widget { background: linear-gradient(145deg, rgba(255,240,225,.82), rgba(255,226,206,.82)); color: #3a2a1d; }
@media (prefers-color-scheme: dark) { .briefing-widget { background: linear-gradient(145deg, rgba(70,45,30,.75), rgba(55,35,25,.75)); color: #f5e6da; } }
.briefing-text { font-size: 13.5px; line-height: 1.5; }
.quellen { display: flex; flex-wrap: wrap; gap: 6px; }
.quelle { font-size: 11.5px; padding: 3px 9px; border-radius: 10px; background: rgba(127,127,127,.15); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; }
.quelle:hover { background: rgba(127,127,127,.28); }
.buchung-seite { padding: 12px; border-radius: 12px; background: var(--flaeche-2); display: flex; flex-direction: column; gap: 6px; }
.buchung-link { word-break: break-all; user-select: all; }
.buchung-zeile { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; padding: 5px 0; border-top: 1px solid var(--linie); }
.buchung-zeile.abgesagt { opacity: .55; text-decoration: line-through; }
/* Barrierefreiheit */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (prefers-contrast: more) { :root { --text-2: #3a3a3c; --linie: rgba(0,0,0,.3); } .glas, .widget { background: var(--flaeche) !important; backdrop-filter: none !important; } }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung-link { position: absolute; left: 8px; top: -40px; z-index: 1000; background: var(--blau-flaeche); color: #fff; padding: 8px 12px; border-radius: 8px; }
.sprung-link:focus { top: 8px; }

/* Ein offener Dialog liegt immer über Dock und Menüleiste */
.fenster:has(.dialog-hintergrund) { z-index: 600 !important; }

/* ------------------------------------------------------------ Claude */
.claude-app { display: flex; height: 100%; min-height: 0; background: var(--flaeche); }
.claude-logo { width: 30px; height: 30px; border-radius: 9px; flex: none; color: #fff; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg,#f7b267,#d9663a 55%,#b4462a); box-shadow: 0 4px 12px rgba(217,102,58,.35); }
.claude-logo.gross { width: 72px; height: 72px; border-radius: 20px; }
.cl-liste { width: 250px; flex: none; background: var(--leiste); border-right: 1px solid var(--linie); padding: 12px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.cl-eintrag { display: flex; align-items: center; border-radius: 8px; }
.cl-eintrag > button:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 6px 8px; }
.cl-eintrag b { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-eintrag span { font-size: 11px; color: var(--text-2); }
.cl-eintrag .symbolknopf { opacity: 0; }
.cl-eintrag:hover { background: rgba(127,127,127,.1); } .cl-eintrag:hover .symbolknopf { opacity: 1; }
.cl-eintrag.aktiv { background: var(--auswahl); }
.cl-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, #d9663a 6%, transparent), transparent 60%), var(--flaeche); }
.cl-nachrichten { flex: 1; overflow-y: auto; padding: 24px max(24px, calc(50% - 380px)); display: flex; flex-direction: column; gap: 14px; }
.cl-start { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 20px 0; }
.cl-start h1 { font-size: 26px; }
.cl-start p { margin: 0; max-width: 460px; }
.cl-vorschlaege { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; width: 100%; max-width: 560px; }
.cl-vorschlaege button { padding: 12px 14px; border-radius: 14px; background: var(--flaeche-2); box-shadow: 0 0 0 1px var(--linie); text-align: left; font-size: 13.5px; transition: background .15s; }
.cl-vorschlaege button:hover { background: var(--flaeche-3); }
.cl-zeile { display: flex; gap: 10px; align-items: flex-start; }
.cl-zeile.ich { justify-content: flex-end; }
.cl-blase { padding: 10px 14px; border-radius: 18px; line-height: 1.5; font-size: 14.5px; max-width: 100%; white-space: pre-wrap; }
.cl-zeile.ich .cl-blase { background: var(--blau-flaeche); color: #fff; border-bottom-right-radius: 6px; max-width: 75%; }
.cl-zeile.claude .cl-blase { background: var(--flaeche-2); border-bottom-left-radius: 6px; white-space: normal; }
.cl-blase.fehler { background: color-mix(in srgb, var(--rot) 12%, transparent) !important; color: var(--rot); }
.cl-inhalt { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 85%; }
.cl-schritte { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-schritte span { font-size: 11px; color: var(--text-2); background: var(--flaeche-2); padding: 2px 8px; border-radius: 10px; display: inline-flex; align-items: center; gap: 3px; }
.kurztext p { margin: 0 0 8px; } .kurztext p:last-child { margin-bottom: 0; }
.kurztext p.titel { font-weight: 700; }
.kurztext ul { margin: 0 0 8px; padding-left: 20px; } .kurztext li { margin-bottom: 3px; }
.cl-blase.denkt { display: flex; gap: 4px; padding: 14px 16px; }
.cl-blase.denkt span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: huepfen 1.2s infinite; }
.cl-blase.denkt span:nth-child(2) { animation-delay: .15s; } .cl-blase.denkt span:nth-child(3) { animation-delay: .3s; }
@keyframes huepfen { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.aktions-karte { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--flaeche); box-shadow: 0 0 0 1px var(--linie), var(--schatten-karte); text-align: left; width: 100%; }
.aktions-karte > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aktions-karte i { font-style: normal; font-size: 12px; color: var(--text-2); }
.aktions-karte p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-2); white-space: pre-wrap; }
.aktions-karte em { font-style: normal; font-size: 12px; color: var(--gruen); font-weight: 600; }
.aktions-karte.entwurf { align-items: flex-start; }
.cl-eingabe { display: flex; gap: 8px; align-items: flex-end; margin: 0 max(16px, calc(50% - 390px)) 16px; padding: 8px 8px 8px 16px; border-radius: 22px;
  background: var(--flaeche); box-shadow: 0 0 0 1px var(--linie-stark), 0 8px 30px rgba(0,0,0,.08); }
.cl-eingabe textarea { flex: 1; border: 0; outline: none; resize: none; background: none; font-size: 15px; line-height: 1.45; max-height: 160px; padding: 6px 0; field-sizing: content; }
.cl-senden { width: 34px; height: 34px; border-radius: 50%; background: var(--blau-flaeche); color: #fff; display: flex; align-items: center; justify-content: center; transform: rotate(-90deg); flex: none; }
.cl-senden:disabled { background: var(--flaeche-3); color: var(--text-3); opacity: 1; }
.claude-widget { min-height: 0; background: linear-gradient(145deg, rgba(247,178,103,.55), rgba(217,102,58,.55)); color: #fff; }
.claude-widget .widget-kopf b { color: #fff; }
.cw-feld { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.85); border-radius: 14px; padding: 4px 4px 4px 12px; }
.cw-feld input { flex: 1; border: 0; outline: none; background: none; color: #1d1d1f; height: 32px; min-width: 0; }
.cw-feld button { width: 30px; height: 30px; border-radius: 50%; background: #d9663a; color: #fff; display: flex; align-items: center; justify-content: center; transform: rotate(-90deg); }
.cw-feld button:disabled { opacity: .4; }
.cw-vorschlaege { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-vorschlaege button { font-size: 12px; padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,.22); color: #fff; }
.cw-vorschlaege button:hover { background: rgba(255,255,255,.35); }
@media (max-width: 759px) {
  .claude-app.handy > * { width: 100% !important; flex: 1; border-right: 0; }
  .cl-vorschlaege { grid-template-columns: 1fr; }
  .cl-inhalt { max-width: 92%; }
  .cl-eingabe textarea { font-size: 16px; }
}

.knopf.aus { opacity: .45; pointer-events: none; }
.anleitung-text p { margin: 0 0 10px; line-height: 1.55; font-size: 13.5px; }
.anleitung-text p:last-child { margin: 0; }

.geraet-neu { display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--gruen) 9%, transparent); }
.zugang-tabelle { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; align-items: center; }
.zugang-tabelle span { color: var(--text-2); font-size: 12.5px; }
.zugang-tabelle code { font-size: 14px; user-select: all; word-break: break-all; }
.zugang-tabelle .gross-code { font-size: 20px; letter-spacing: .06em; font-weight: 700; }
.anleitung-text code { background: var(--flaeche-2); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; user-select: all; }
.abstand-oben { margin-top: 12px; }

/* ------------------------------------------------------------ Lesezeichen */
.lesezeichen-app { display: flex; height: 100%; min-height: 0; background: var(--flaeche); }
.lesezeichen-app.handy > * { width: 100% !important; flex: 1; }
.lz-haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.lz-haupt .suchfeld { width: 220px; }
.lz-raster { flex: 1; overflow-y: auto; padding: 14px 16px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; align-content: start; }
.lz-karte { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 10px; border-radius: 12px; background: var(--flaeche-2); transition: background .15s; min-width: 0; }
.lz-karte:hover { background: var(--flaeche-3); }
.lz-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--text); }
.lk-symbol.klein { width: 34px; height: 34px; border-radius: 9px; font-size: 15px; flex: none; }
.lk-symbol.klein img { width: 20px; height: 20px; }
.lz-text { display: flex; flex-direction: column; min-width: 0; }
.lz-text b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.lz-text i { font-style: normal; font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lz-aktionen { display: flex; align-items: center; opacity: 0; transition: opacity .15s; }
.lz-karte:hover .lz-aktionen { opacity: 1; }
.lz-quelle { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #e8f0fe; color: #1a73e8; margin-right: 2px; }
.lz-hinweis { font-size: 11.5px; color: var(--text-2); padding: 10px 6px; line-height: 1.45; }
.lz-hinweis .sym { display: inline-block; vertical-align: -2px; }
.lz-hinweis code { font-size: 10.5px; }
@media (max-width: 759px) { .lz-haupt .suchfeld { width: 100%; } .lz-aktionen { opacity: 1; } .lz-raster { grid-template-columns: 1fr; } }
.lesen-leer h2, .lesen-leer h1 { color: var(--text); }
form.ei-zeile { flex-wrap: wrap; }
form.ei-zeile .eingabe { flex: 1 1 200px; width: auto; }
.ei-koerper { overflow-x: hidden; }

/* ------------------------------------------------------------ Stufe 4 */
.zeitwahl { min-width: 280px; top: 38px; }
.zeitwahl .rechts { margin-left: auto; padding-left: 12px; }
.zw-eigen { display: flex; gap: 6px; padding: 6px 6px 2px; border-top: 1px solid var(--linie); margin-top: 4px; }
.senden-gruppe { display: flex; gap: 1px; }
.senden-gruppe > .knopf:first-child { border-radius: 8px 0 0 8px; }
.senden-pfeil { border-radius: 0 8px 8px 0 !important; padding: 0 8px !important; }
.senden-gruppe .zeitwahl { left: auto; right: 0; }
.nachfassen-wahl { border: 0; background: none; color: var(--text-2); font-size: 12px; outline: none; }
.rueckgaengig { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 700; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 16px; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.25); font-weight: 500; animation: rein .25s ease-out; white-space: nowrap; }
.rueckgaengig button:not(.schliessen) { color: var(--blau); font-weight: 700; }
.rueckgaengig .schliessen { color: var(--text-3); display: flex; }
.mail-app { position: relative; }
.sonder-erinnerungen, .rot-zahl { color: var(--rot) !important; }
.sonder-spaeter { color: var(--lila) !important; } .sonder-geplant { color: var(--gruen) !important; } .sonder-mir { color: var(--orange) !important; }
.sonder-tuersteher { color: var(--blau) !important; } .sonder-newsletter { color: #5ac8fa !important; } .sonder-belege { color: var(--orange) !important; } .sonder-abos { color: var(--text-2) !important; }
.ansicht-hinweis { font-size: 12.5px; color: var(--text-2); padding: 10px 14px; background: var(--auswahl); }
.geplant-zeile { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--linie); align-items: center; }
.geplant-zeile > div:first-child { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.geplant-zeile span, .geplant-zeile i { font-size: 12.5px; color: var(--text-2); font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geplant-zeile.fehler i { color: var(--rot); }
.geplant-knoepfe { display: flex; flex-direction: column; gap: 4px; flex: none; }
.abo-hinweis { padding: 10px 14px 0; margin: 0; }
.abo-zeile { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--linie); }
.abo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.abo-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13.5px; }
.abo-text span { font-size: 12px; color: var(--text-2); }
.tuersteher-leiste { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--auswahl); font-size: 13px; }
.tuersteher-leiste > span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tuersteher-leiste .zeile { flex-wrap: wrap; }
.echt { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; vertical-align: 2px; margin-left: 4px; }
.echt.gut { color: var(--gruen); background: color-mix(in srgb, var(--gruen) 13%, transparent); }
.echt.warn { color: var(--orange); background: color-mix(in srgb, var(--orange) 15%, transparent); }
.team-panel { border-radius: 12px; padding: 10px 12px; background: var(--flaeche-2); display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.team-wahl { width: auto; min-width: 170px; }
.gruen-knopf { background: color-mix(in srgb, var(--gruen) 18%, transparent) !important; color: var(--gruen); }
.team-notiz { background: var(--flaeche); border-radius: 9px; padding: 7px 10px; }
.team-notiz i { color: var(--text-3); font-style: normal; font-size: 11.5px; margin: 0 6px; }
.team-notiz p { margin: 3px 0 0; white-space: pre-wrap; }
.team-eingabe { display: flex; gap: 6px; }
.mz-zustaendig { color: var(--orange); font-weight: 600; }
.mz-zustaendig.erledigt { color: var(--gruen); text-decoration: line-through; }
.oder { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12px; }
.oder::before, .oder::after { content: ""; flex: 1; height: 1px; background: var(--linie-stark); }
.passkey-knopf { background: rgba(127,127,127,.15); }

.warn-text { font-style: normal; font-size: 11.5px; color: var(--orange) !important; display: inline-flex; gap: 4px; align-items: center; }
.aktions-karte.vorschlag { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--orange) 55%, transparent), var(--schatten-karte); }

/* ------------------------------------------------------------ Stufe 6 */
.einladung-karte { display: flex; align-items: center; gap: 14px; margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--lila) 9%, var(--flaeche)); box-shadow: 0 0 0 0.5px color-mix(in srgb, var(--lila) 35%, transparent); flex-wrap: wrap; }
.einladung-karte.absage { background: color-mix(in srgb, var(--rot) 8%, var(--flaeche)); }
.ek-datum { width: 50px; height: 54px; border-radius: 11px; background: var(--flaeche); box-shadow: var(--schatten-karte); display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex: none; overflow: hidden; }
.ek-datum span { font-size: 10.5px; font-weight: 700; color: var(--rot); text-transform: uppercase; letter-spacing: .04em; }
.ek-datum b { font-size: 22px; line-height: 1.1; }
.ek-text { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.ek-text b { font-size: 15px; }
.ek-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }

.aufgaben { padding: 10px 18px 24px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 2px; max-width: 760px; }
.aufgabe-neu { display: flex; gap: 8px; align-items: center; padding: 6px 4px 12px; flex-wrap: wrap; }
.aufgabe-neu .eingabe { flex: 1; min-width: 160px; }
.aufgabe-neu .eingabe.datum { flex: 0 0 150px; min-width: 0; }
.aufgabe { display: flex; gap: 12px; align-items: flex-start; padding: 9px 6px; border-bottom: 1px solid var(--linie); }
.aufgabe-haken { width: 22px; height: 22px; border-radius: 50%; border: 1.8px solid var(--text-3, #aaa); flex: none; margin-top: 1px;
  display: flex; align-items: center; justify-content: center; color: #fff; transition: background .15s, border-color .15s; }
.aufgabe-haken:hover { border-color: var(--blau); }
.aufgabe.erledigt .aufgabe-haken { background: var(--blau-flaeche); border-color: var(--blau-flaeche); }
.aufgabe.erledigt .aufgabe-text b { color: var(--text-2); text-decoration: line-through; }
.aufgabe-text { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.aufgabe-text > span { display: flex; gap: 10px; flex-wrap: wrap; }
.aufgabe-text em { font-style: normal; color: var(--blau); }
.ueberfaellig { color: var(--rot) !important; font-weight: 600; }
.aufgabe-details { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; cursor: default; }
.zeile-knoepfe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zeile-knoepfe .eingabe { flex: 1; min-width: 120px; }

.aufgaben-widget { text-align: left; }
.aw-symbol { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #34c759, #30b0c7); color: #fff; display: flex; align-items: center; justify-content: center; }
.aw-zeile { display: flex; align-items: center; gap: 9px; padding: 6px 2px; font-size: 13.5px; }
.aw-zeile span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-zeile em { font-style: normal; font-size: 12px; color: var(--text-2); }
.aw-kreis { width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid var(--text-2); flex: none; }

.verteiler { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-bottom: 20px; overflow-y: auto; max-width: 720px; }
.verteiler .ei-karte { margin: 0 14px; }
.verteiler-zeile { margin: 0 14px; width: auto; }

.such-anker { position: relative; }
.such-erweitert { margin-left: 2px; opacity: .75; }
.such-erweitert.blau { color: var(--blau); opacity: 1; }
.erweiterte-suche { width: 340px; max-width: calc(100vw - 32px); padding: 12px; display: flex; flex-direction: column; gap: 8px; top: 100%; left: 0; }
.erweiterte-suche label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-2); }
.erweiterte-suche label.haken-zeile { flex-direction: row; color: var(--text); }
.erweiterte-suche .zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gespeicherte { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-text { font: inherit; color: inherit; }
.popup.oben { bottom: 100%; top: auto; }
.popup-hinweis { padding: 6px 10px 2px; }

.offline-text { white-space: pre-wrap; font: 14px/1.55 inherit; padding: 16px 22px; overflow: auto; margin: 0; font-family: inherit; }
.offline-hinweis { position: fixed; top: 34px; left: 50%; transform: translateX(-50%); z-index: 9000; background: rgba(40,40,40,.88); color: #fff;
  padding: 7px 14px; border-radius: 20px; font-size: 12.5px; display: flex; gap: 7px; align-items: center; backdrop-filter: blur(12px); }
.offline-hinweis svg { color: var(--orange); }

.ei-zeile.gesperrt b { text-decoration: line-through; color: var(--text-2); }
.auswaehlbar { user-select: all; }
.eingabe.schmal { max-width: 220px; }
.aenderung { margin-bottom: 12px; }
.aenderung ul, .neuigkeiten ul { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; line-height: 1.45; }
.dialog.neuigkeiten { max-width: 520px; text-align: left; }
.dialog.neuigkeiten h3 { text-align: center; }

.pgp-leiste { display: flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 7px 11px; border-radius: 10px; margin: 8px 0 2px;
  background: color-mix(in srgb, var(--text-2) 8%, transparent); color: var(--text-2); }
.pgp-leiste.gut { background: color-mix(in srgb, var(--gruen) 12%, transparent); color: color-mix(in srgb, var(--gruen) 70%, var(--text)); }
.pgp-leiste.schlecht, .pgp-leiste.fehler { background: color-mix(in srgb, var(--rot) 12%, transparent); color: var(--rot); }
.pgp-schalter { display: inline-flex; align-items: center; gap: 6px; }
.symbolknopf.gruen { color: var(--gruen); }
.orange-text { color: var(--orange); }
.fingerabdruck { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; word-break: break-all; }
.eingabe.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; }

/* Handy mit Safari-Seitenzoom oder großer Schrift: Layoutbreite kann unter 300px fallen.
   Widgets dürfen dann nie breiter als der Bildschirm werden, das Dock schrumpft seine Symbole. */
@media (max-width: 759px) {
  .widget-raster { grid-template-columns: minmax(0, 1fr); }
  .widgets > *, .widget, .hinweis-leiste { min-width: 0; max-width: 100%; }
  .widget { overflow: hidden; }
  .w-stunden { overflow-x: auto; gap: 12px; scrollbar-width: none; }
  .w-stunden div { flex: none; }
  .w-tage div { grid-template-columns: 26px 22px 30px 28px minmax(0, 1fr) 30px; gap: 4px; }
  .dock { width: max-content; max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none; }
  .dock-app { flex: none; }
}

.hinweis-leiste.notbremse { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--rot) 60%, transparent); }
.ei-hinweis { display: flex; gap: 6px; align-items: center; padding: 8px 8px 4px; }

/* ------------------------------------------------------------ Stufe 8 */
.aufraeumen { display: flex; flex-direction: column; gap: 10px; padding: 10px 14px 20px; }
.speicher-liste { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--flaeche-2); }
.speicher-zeile { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; }
.speicher-zeile > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.speicher-balken { height: 6px; border-radius: 3px; background: var(--flaeche-3); overflow: hidden; display: block; }
.speicher-balken i { display: block; height: 100%; border-radius: 3px; }
.speicher-balken.breit { flex: 1; margin: 0 12px; }
.aufraeumen-kopf { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.aufraeumen-liste { display: flex; flex-direction: column; }
.aufraeumen-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--linie); cursor: pointer; border-radius: 8px; }
.aufraeumen-zeile.gewaehlt { background: var(--auswahl); }
.az-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.az-text b, .az-text i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-text i { font-style: normal; font-size: 12px; color: var(--text-2); }
.az-zahl { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; }
.az-zahl i { font-style: normal; color: var(--text-2); }
.aufraeumen-fuss { display: flex; gap: 8px; align-items: center; position: sticky; bottom: 0; background: var(--flaeche); padding: 8px 0; }

.wisch-huelle { position: relative; overflow: hidden; }
.wisch-hinten { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 22px; color: #fff; font-weight: 600; font-size: 14px; }
.wisch-hinten span { display: flex; gap: 6px; align-items: center; }
.wisch-hinten.links-aktion { justify-content: flex-end; background: color-mix(in srgb, var(--blau-flaeche) 75%, transparent); }
.wisch-hinten.rechts-aktion { justify-content: flex-start; background: color-mix(in srgb, var(--orange) 75%, transparent); }
.wisch-hinten.bereit.links-aktion { background: var(--blau-flaeche); }
.wisch-hinten.bereit.rechts-aktion { background: var(--orange); }
.wisch-vorne { position: relative; background: var(--flaeche); }
.zieh-anzeige { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; color: var(--text-2); overflow: hidden; }

.anhang.alle .anhang-symbol { background: var(--flaeche-3); color: var(--text); }
.bild-vorschau { position: fixed; inset: 0; z-index: 9500; background: rgba(0,0,0,.85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.bild-vorschau img { max-width: 100%; max-height: calc(100% - 70px); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.bv-leiste { display: flex; gap: 10px; align-items: center; color: #fff; font-size: 13px; flex-wrap: wrap; justify-content: center; }
.uebertragen-liste { max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.ue-kopf { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 2px 4px; }
.ue-ordner { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 22px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.ue-ordner.gewaehlt { background: var(--auswahl); }
.symbolknopf.diktiert { animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .45; } }
.ki-text.uebersetzung { white-space: pre-wrap; }
.ki-titel .rechts { margin-left: auto; }
.einladung-karte.antwort { background: color-mix(in srgb, var(--gruen) 8%, var(--flaeche)); box-shadow: 0 0 0 0.5px color-mix(in srgb, var(--gruen) 35%, transparent); }
.dublette { margin: 0 14px; }
.teilnehmer { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.tn-liste { display: flex; flex-direction: column; gap: 4px; }
.tn { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tn em { font-style: normal; font-size: 12px; margin-left: auto; }
.sieve-karte { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--flaeche-2); display: flex; flex-direction: column; gap: 6px; }
.sieve-vorschau { max-height: 220px; overflow: auto; font-size: 11.5px; background: var(--flaeche); padding: 8px 10px; border-radius: 8px; margin: 0; white-space: pre-wrap; }

.ohne-kennwort-hinweis { display: flex; gap: 8px; align-items: flex-start; margin: 4px 6px 8px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.4;
  background: color-mix(in srgb, var(--orange) 14%, transparent); }
.ohne-kennwort-hinweis svg { flex: none; margin-top: 2px; color: var(--orange); }
.ohne-kennwort-hinweis button { flex: none; }

/* iPhone (vom Home-Bildschirm): Die Statusleiste hat weiße Schrift und liegt über der App.
   Über weißen App-Fenstern wäre sie unlesbar - deshalb ein Streifen in der dunklen Desktop-Farbe. */
@media (max-width: 759px) {
  .fenster.handy::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--statusband, #1b1440); z-index: 5; pointer-events: none; }
}

/* ------------------------------------------------------------ Schmale Bildschirme (1.3.2)
   Zeilen brechen um statt zu quetschen oder über den Rand zu laufen. */
.geraet > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.rolle-chip { white-space: nowrap; flex: none; }
.ei-zeile > .sym, .ei-zeile > .schalter { flex: none; }
.postfach-werkzeuge .eingabe { flex: 1 1 180px; min-width: 0; }
@media (max-width: 759px) {
  .ei-koerper .zeile, .ei-koerper .ei-zeile, .dialog .zeile { flex-wrap: wrap; }
  .ei-koerper .eingabe, .dialog .eingabe { min-width: 0; max-width: 100%; }
  .postfach-werkzeuge .eingabe { flex: 1 1 100%; }
  .postfach-werkzeuge .rechts { display: none; }
  .zahlen-reihe { gap: 6px; }
  .zahlen-reihe div { padding: 10px; }
  .zahlen-reihe b { font-size: 22px; }
  .kal-steuer { flex-wrap: wrap; width: 100%; gap: 4px; }
  .kal-steuer .segment { flex: 1 1 auto; }
  .kal-steuer .segment button { flex: 1; padding-left: 6px; padding-right: 6px; }
  .dock { gap: 4px; padding: 6px 7px; }
}
@media (max-width: 759px) {
  .lk-zeile, .ko-kopf { flex-wrap: wrap; row-gap: 6px; }
  .lk-knoepfe { flex-wrap: wrap; }
  .lk-zeile h2 { max-width: 100%; overflow-wrap: anywhere; }
  .zahlen-reihe { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
}

/* ------------------------------------------------------------ Wischen & Aktionsblatt (1.3.2) */
.wisch-huelle { position: relative; overflow: hidden; touch-action: pan-y; }
.wisch-seite { position: absolute; top: 0; bottom: 0; display: flex; overflow: hidden; }
.wisch-seite.rechts { left: 0; }
.wisch-seite.links { right: 0; justify-content: flex-end; }
.wisch-knopf { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; font-size: 11.5px; font-weight: 600; min-width: 0; }
.wisch-knopf span { white-space: nowrap; }
.wisch-voll { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 22px; color: #fff; font-weight: 600; font-size: 14px; }
.wisch-voll.links { justify-content: flex-end; }
.wisch-vorne { position: relative; background: var(--flaeche); z-index: 1; }
.wisch-vorne.weg { opacity: 0; transition: transform .18s ease, opacity .18s ease !important; }

.aktionsblatt-hg { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; animation: einblenden .15s ease; }
@keyframes einblenden { from { opacity: 0; } }
.aktionsblatt { width: min(460px, 100%); max-height: 88vh; overflow-y: auto; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px;
  animation: von-unten .22s ease-out; }
@media (min-width: 760px) { .aktionsblatt-hg { align-items: center; } }
.ab-kopf { background: var(--flaeche); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ab-kopf b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-kopf span { font-size: 12.5px; color: var(--text-2); }
.ab-reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ab-reihe button { background: var(--flaeche); border-radius: 14px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12.5px; color: var(--blau); }
.ab-gruppe { background: var(--flaeche); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.ab-liste { max-height: 55vh; overflow-y: auto; }
.ab-eintrag { display: flex; align-items: center; gap: 12px; padding: 13px 16px; font-size: 15px; border-bottom: 1px solid var(--linie); text-align: left; }
.ab-eintrag:last-child { border-bottom: 0; }
.ab-eintrag:active, .ab-reihe button:active { background: var(--flaeche-2); }
.ab-eintrag svg { color: var(--blau); flex: none; }
.ab-eintrag.gefahr, .ab-eintrag.gefahr svg { color: var(--rot); }
.ab-abbrechen { background: var(--flaeche); border-radius: 14px; padding: 14px; font-weight: 600; font-size: 15px; color: var(--blau); text-align: center; }
.wisch-wahl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ohne-kennwort-hinweis button { color: var(--text); font-weight: 700; text-decoration: underline; }

/* ------------------------------------------------------------ Einkauf (1.4.0) */
.einkauf-app { display: flex; height: 100%; min-height: 0; }
.ek-leiste { width: 250px; flex: none; background: var(--flaeche-2); border-right: 1px solid var(--linie); padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.ek-listen-eintrag { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; text-align: left; }
.ek-listen-eintrag:hover { background: rgba(127,127,127,.1); }
.ek-listen-eintrag.aktiv { background: var(--auswahl); }
.ek-listen-eintrag em { font-style: normal; font-size: 12px; font-weight: 600; background: var(--flaeche-3); border-radius: 10px; padding: 1px 8px; }
.ek-symbol { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.ek-symbol.gross { width: 42px; height: 42px; border-radius: 11px; font-size: 22px; }
.ek-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ek-text b, .ek-text i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ek-text i { font-style: normal; font-size: 12px; color: var(--text-2); }
.ek-haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.ek-liste { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ek-kopf { padding: 12px 16px 8px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--linie); }
.ek-titel { display: flex; align-items: center; gap: 10px; }
.ek-titel h2 { font-size: 21px; }
.ek-termin { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; background: var(--flaeche-2); }
.ek-eingabe-huelle { position: relative; }
.ek-eingabe { display: flex; align-items: center; gap: 8px; background: var(--flaeche-2); border-radius: 12px; padding: 4px 6px 4px 12px; }
.ek-eingabe input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 15px; height: 36px; }
.ek-vorschlaege { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; }
.ek-vorschlaege button { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; text-align: left; font-size: 14px; }
.ek-vorschlaege button.aktiv, .ek-vorschlaege button:hover { background: var(--auswahl); }
.ek-vorschlaege i { font-style: normal; font-size: 12px; color: var(--text-2); }
.ek-artikel-liste { flex: 1; overflow-y: auto; padding: 4px 0 20px; }
.ek-gruppe-titel { display: flex; align-items: center; gap: 6px; padding: 12px 16px 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); text-transform: none; width: 100%; }
.ek-gruppe-titel.klickbar { cursor: pointer; }
.ek-artikel { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.ek-artikel.erledigt .ek-name { text-decoration: line-through; color: var(--text-2); }
.ek-artikel.offline { opacity: .65; }
.ek-haken { width: 24px; height: 24px; border-radius: 50%; border: 1.8px solid var(--text-3); flex: none; display: flex; align-items: center; justify-content: center; color: #fff; }
.ek-artikel.erledigt .ek-haken { background: #248a3d; border-color: #248a3d; }
.ek-artikel-text { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; gap: 2px; }
.ek-name { font-size: 15px; overflow-wrap: anywhere; }
.ek-name em { font-style: normal; font-weight: 600; color: var(--blau); margin-right: 2px; }
.ek-notiz { font-size: 12px; color: var(--text-2); }
.ek-preis { font-size: 13px; color: var(--text-2); flex: none; }
.ek-kuerzel { width: 22px; height: 22px; border-radius: 50%; background: var(--flaeche-3); font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; color: var(--text-2); }
.ek-gruppe.erledigt .ek-artikel { background: var(--flaeche-2); }
.ek-erledigt-knoepfe { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 16px; flex-wrap: wrap; }
.ek-hinweis { display: flex; justify-content: space-between; align-items: center; margin: 10px 16px; padding: 8px 12px; border-radius: 10px; background: var(--flaeche-2); font-size: 13px; }
.ek-summe { display: flex; justify-content: space-between; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linie); background: var(--flaeche-2); }
.ek-offline { display: flex; gap: 6px; align-items: center; color: var(--orange); padding: 6px 4px; }
.ek-offline svg { color: var(--orange); }
.ek-auswahl { display: flex; flex-wrap: wrap; gap: 6px; }
.ek-wahl { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; background: var(--flaeche-2); }
.ek-wahl.aktiv { box-shadow: 0 0 0 2px var(--blau); }
.ek-farbe { width: 30px; height: 30px; border-radius: 50%; }
.ek-farbe.aktiv { box-shadow: 0 0 0 2px var(--flaeche), 0 0 0 4px var(--text); }
.ek-ordnen { display: flex; flex-direction: column; max-height: 50vh; overflow-y: auto; }
.ek-ordnen-zeile { display: flex; align-items: center; gap: 6px; padding: 6px 4px; border-bottom: 1px solid var(--linie); }
.ek-ordnen-zeile span { flex: 1; }
.ek-stamm { display: flex; flex-direction: column; max-height: 45vh; overflow-y: auto; }
.ek-stamm-zeile { justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--linie); }
.ek-stamm em, .haken-zeile em { font-style: normal; font-weight: 600; color: var(--blau); }
.ek-monate { display: flex; flex-direction: column; gap: 4px; }
.ek-monate div, .ek-einkauf-kopf { display: flex; justify-content: space-between; padding: 6px 2px; border-bottom: 1px solid var(--linie); width: 100%; }
.ek-einkauf ul { margin: 4px 0 8px; padding-left: 18px; }
.termin-einkauf { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.einkaufsmodus { position: fixed; inset: 0; z-index: 9200; background: var(--flaeche); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.em-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; }
.em-kopf b { font-size: 20px; display: block; }
.em-kopf span { font-size: 13px; color: var(--text-2); }
.em-fortschritt { height: 5px; background: var(--flaeche-3); margin: 0 18px; border-radius: 3px; overflow: hidden; }
.em-fortschritt i { display: block; height: 100%; background: #248a3d; transition: width .3s; }
.em-liste { flex: 1; overflow-y: auto; padding: 8px 0 calc(24px + env(safe-area-inset-bottom)); }
.em-abteilung { padding: 14px 18px 6px; font-size: 14px; font-weight: 700; color: var(--text-2); }
.em-zeile { display: flex; align-items: stretch; border-bottom: 1px solid var(--linie); }
.em-tippen { flex: 1; display: flex; align-items: center; gap: 16px; padding: 16px 18px; text-align: left; min-height: 64px; }
.em-haken { width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--text-3); flex: none; display: flex; align-items: center; justify-content: center; color: #fff; }
.em-zeile.erledigt .em-haken { background: #248a3d; border-color: #248a3d; }
.em-text { display: flex; flex-direction: column; gap: 2px; }
.em-text b { font-size: 21px; font-weight: 600; }
.em-text i { font-style: normal; font-size: 15px; color: var(--text-2); }
.em-zeile.erledigt .em-text b { text-decoration: line-through; color: var(--text-2); font-weight: 400; }
.em-preis { flex: none; min-width: 64px; padding: 0 14px; font-size: 15px; color: var(--blau); }
.em-preis-eingabe { position: fixed; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 9300; display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 16px; flex-wrap: wrap; }
.em-preis-eingabe span { flex: 1 1 100%; font-weight: 600; }
.em-preis-eingabe .eingabe { flex: 1; min-width: 0; font-size: 18px; }
.einkauf-widget .ew-eingabe { display: flex; gap: 6px; align-items: center; margin-top: 6px; background: rgba(255,255,255,.55); border-radius: 10px; padding: 2px 4px 2px 10px; }
.einkauf-widget .ew-eingabe input { flex: 1; min-width: 0; border: 0; background: none; outline: none; height: 32px; color: inherit; }
@media (prefers-color-scheme: dark) { .einkauf-widget .ew-eingabe { background: rgba(0,0,0,.25); } }
@media (max-width: 759px) {
  .einkauf-app.handy > * { width: 100% !important; border-right: 0; flex: 1; }
  .ek-leiste { background: var(--flaeche-2); padding: 10px 12px; }
  .ek-listen-eintrag { padding: 10px 8px; }
  .ek-titel { flex-wrap: wrap; }
  .ek-artikel { padding: 11px 16px; }
  .ek-name { font-size: 16px; }
}

.ek-oft { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; scrollbar-width: none; }
.ek-oft .chip-knopf { flex: none; }
.ek-listen-eintrag.aktiv .ek-text i { color: var(--text); opacity: .8; }

/* iPhone: Eingabefelder unter 16 px lassen Safari beim Antippen die ganze Seite vergrößern (und nicht wieder
   verkleinern) - dann ist rechts alles abgeschnitten. Auf dem Handy deshalb überall mindestens 16 px. */
@media (max-width: 759px) {
  input, select, textarea { font-size: 16px !important; }
}
/* Handy-Rundgang 320 px: Knopfzeilen in Dialogen und Segment-Leisten dürfen umbrechen */
@media (max-width: 759px) {
  .dialog-knoepfe { flex-wrap: wrap; row-gap: 8px; }
  .dialog-knoepfe .knopf { flex: 1 1 auto; }
  .dialog-knoepfe .rechts { display: none; }
  .segment { flex-wrap: wrap; max-width: 100%; }
}

/* ------------------------------------------------------------ Familie */
.familie-app { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.fam-kopf { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.fam-kopf h1 { margin: 0; font-size: 24px; flex: 1; min-width: 0; }
.fam-reiter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.fam-reiter button { white-space: nowrap; }
.fam-name { margin-left: auto; font-weight: 600; color: var(--text-2); }
.fam-inhalt { flex: 1; overflow-y: auto; padding: 14px; min-height: 0; }
.fam-leer { max-width: 520px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 0 16px; }
.fam-leer-symbol { width: 72px; height: 72px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(180deg,#7fd3ff,#2e7de0 55%,#5b4bd6); }
.fam-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.fam-nav .rechts { margin-left: auto; }
.fam-punkt { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; line-height: 1; }
.fam-woche { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fam-tag { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fam-tag.heute { border-color: var(--blau); box-shadow: 0 0 0 2px var(--blau-flaeche, rgba(0,104,217,.15)); }
.fam-tag header { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.fam-tag header span { color: var(--text-2); }
.fam-feiertag { font-style: normal; font-size: 12px; color: var(--rot); }
.fam-warnung { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; padding: 6px 8px; border-radius: 8px; background: var(--rot-flaeche, rgba(217,45,32,.1)); color: var(--text); }
.fam-warnung.niemand { background: rgba(255,149,0,.15); }
.fam-warnung svg { flex: none; margin-top: 2px; color: var(--rot); }
.fam-kita { font-size: 13px; border-left: 3px solid; padding-left: 7px; display: flex; gap: 6px; flex-wrap: wrap; }
.fam-zu { color: var(--rot); font-weight: 600; }
.fam-fahrt { display: flex; align-items: center; gap: 6px; font-size: 13px; text-align: left; background: var(--flaeche-2); border: 1px solid transparent; border-radius: 9px; padding: 5px 7px; color: var(--text); cursor: pointer; min-height: 34px; }
.fam-fahrt:disabled, .fam-amt-chip:disabled, .fam-amt:disabled { cursor: default; opacity: 1; color: var(--text); }
.fam-fahrt-name { color: var(--text-2); }
.fam-fahrt > span:nth-child(2) { flex: 1; min-width: 0; }
.fam-fahrt.offen { border-color: #ff9500; }
.fam-fahrt.geaendert { border-style: dashed; border-color: var(--blau); }
.fam-fahrt-art { font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.fam-niemand { color: var(--orange-text, #b35600); font-weight: 600; font-style: normal; }
.fam-person-zeile { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; }
.fam-person-zeile > span { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.fam-dienst { background: rgba(255,149,0,.16); border-radius: 6px; padding: 1px 6px; }
.fam-dienst.frei { background: var(--flaeche-2); color: var(--text-2); }
.fam-termin { color: var(--text-2); }
.fam-essen { font-size: 13px; }
.fam-aemter-tag { display: flex; flex-wrap: wrap; gap: 4px; }
.fam-amt-chip { border: 1px solid var(--linie); background: var(--flaeche); border-radius: 999px; padding: 2px 8px; font-size: 13px; cursor: pointer; color: var(--text); min-height: 28px; }
.fam-amt-chip.erledigt { background: rgba(52,199,89,.2); border-color: #34c759; }
.fam-wahl-personen { display: flex; flex-wrap: wrap; gap: 8px; }
.fam-wahl { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 12px; border: 2px solid transparent; background: var(--flaeche-2); cursor: pointer; color: var(--text); min-width: 74px; }
.fam-wahl.aktiv { border-color: var(--blau); }
.fam-dienstplan-scroll { overflow-x: auto; border: 1px solid var(--linie); border-radius: 12px; }
.fam-dienstplan { border-collapse: collapse; width: 100%; font-size: 13px; }
.fam-dienstplan th, .fam-dienstplan td { padding: 4px; text-align: center; border-bottom: 1px solid var(--linie); }
.fam-dienstplan tbody th { text-align: left; white-space: nowrap; padding: 4px 8px; position: sticky; left: 0; background: var(--flaeche); z-index: 1; }
.fam-dienstplan thead th { font-weight: 500; color: var(--text-2); min-width: 38px; }
.fam-dienstplan th.heute { color: var(--blau); font-weight: 700; }
.fam-dienstplan th.we { background: var(--flaeche-2); }
.fam-zelle { width: 36px; height: 34px; border-radius: 8px; border: 1px dashed var(--linie); background: none; cursor: pointer; font-weight: 700; color: var(--text); }
.fam-zelle.frei { opacity: .6; }
.fam-legende { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-2); margin-top: 10px; }
.fam-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.fam-schicht-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.fam-schicht { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 9px; border-radius: 10px; border: 1px solid; border-left-width: 4px; background: var(--flaeche); cursor: pointer; color: var(--text); text-align: left; }
.fam-schicht.aktiv { background: var(--flaeche-2); }
.fam-schicht i { font-style: normal; font-size: 12px; color: var(--text-2); }
.fam-folge { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 30px; }
.fam-folge span { width: 26px; height: 26px; border-radius: 7px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.fam-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.fam-ueberschrift { margin: 0 0 8px; font-size: 16px; }
.fam-karte { background: var(--flaeche); border: 1px solid var(--linie); border-left: 4px solid var(--linie); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fam-karte h4 { margin: 0; }
.fam-karte .rechts, .zeile .rechts { margin-left: auto; }
.fam-schliesstage { display: flex; flex-direction: column; gap: 4px; }
.fam-oeffnung .haken-zeile { width: 120px; }
.fam-tabelle { border-collapse: collapse; width: 100%; }
.fam-tabelle td, .fam-tabelle th { padding: 4px 6px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.fam-plan th { width: 34px; color: var(--text-2); font-weight: 500; }
.fam-plan select { min-width: 0; flex: 1; }
.fam-zeit { width: 96px; flex: none; }
.fam-zahl { width: 70px; }
.fam-essensplan { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fam-essen-tag { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.fam-essen-tag.heute { border-color: var(--blau); }
.fam-gericht { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--linie); background: var(--flaeche-2); cursor: pointer; color: var(--text); min-height: 44px; }
.fam-gericht.leer { border-style: dashed; background: none; color: var(--text-2); }
.fam-aemter { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fam-amt-karte { border-left-width: 1px; border-top: 4px solid; }
.fam-punkte { font-weight: 700; font-size: 18px; }
.fam-amt { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--linie); background: var(--flaeche); cursor: pointer; color: var(--text); text-align: left; font-size: 16px; min-height: 48px; }
.fam-amt > span:nth-child(2) { flex: 1; }
.fam-amt i { font-style: normal; color: var(--text-2); font-size: 13px; }
.fam-amt.erledigt { background: rgba(52,199,89,.18); border-color: #34c759; text-decoration: line-through; }
.fam-amt-symbol { font-size: 22px; }
.fam-amt-liste { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fam-wochentage { display: flex; gap: 4px; flex-wrap: wrap; }
.chip-knopf.aktiv { background: var(--blau); color: #fff; border-color: var(--blau); }
.fam-infos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.fam-info { border-top: 1px solid var(--linie); padding-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.fam-info-wert { white-space: pre-wrap; }
.fam-faellig { color: var(--orange-text, #b35600); font-weight: 600; }
.fam-einstellungen { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.fam-person { display: flex; gap: 10px; align-items: center; text-align: left; background: none; border: none; padding: 6px 2px; cursor: pointer; color: var(--text); border-radius: 8px; }
.fam-person:hover:not(:disabled) { background: var(--flaeche-2); }
.fam-person .fam-punkt { width: 28px; height: 28px; font-size: 12px; }
.fam-mitglieder { flex-wrap: wrap; gap: 6px; }
.siri-anleitung { display: flex; flex-direction: column; gap: 8px; }
.siri-anleitung ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
code.umbruch { word-break: break-all; white-space: normal; }
.familie-widget .fam-warnung { padding: 4px 6px; }
.fam-warn-zahl { color: var(--rot); font-weight: 700; }
.familie-widget .aw-zeile { gap: 6px; }
.kuechenbildschirm { position: fixed; inset: 0; z-index: 900; background: var(--hintergrund, var(--flaeche-2)); color: var(--text); overflow-y: auto; padding: calc(16px + env(safe-area-inset-top)) 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.kb-kopf { display: flex; align-items: center; gap: 16px; }
.kb-uhr { font-size: 56px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.kb-name { margin-left: auto; font-size: 22px; }
.kb-inhalt { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 16px; align-items: start; }
.kb-woche { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.fam-tag.gross { font-size: 18px; gap: 10px; padding: 16px; }
.fam-tag.gross .fam-fahrt, .fam-tag.gross .fam-kita, .fam-tag.gross .fam-person-zeile, .fam-tag.gross .fam-essen, .fam-tag.gross .fam-warnung { font-size: 18px; }
.fam-tag.gross header b { font-size: 26px; }
@media (max-width: 760px) {
  .fam-inhalt { padding: 10px; }
  .fam-woche { grid-template-columns: 1fr; }
  .fam-kopf { padding: 8px 10px; }
  .fam-reiter { order: 3; width: 100%; }
  .fam-spalten, .fam-einstellungen, .fam-aemter, .fam-infos { grid-template-columns: minmax(0, 1fr); }
  .fam-essensplan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-inhalt { grid-template-columns: minmax(0, 1fr); }
  .kb-uhr { font-size: 40px; }
  .fam-plan .zeile { flex-wrap: wrap; }
  .fam-zeit { width: 100%; }
  .fam-oeffnung .haken-zeile { width: 100%; }
  .fam-wahl { min-width: 64px; }
}

/* ------------------------------------------------------------ Handy: App-Raster auf dem Startbildschirm */
.app-raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 8px; padding: 6px 4px 18px; }
.raster-app { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; padding: 0; color: #fff; cursor: pointer; min-width: 0; }
.raster-app:active .raster-symbol { transform: scale(.92); }
.raster-symbol { position: relative; transition: transform .12s; }
.raster-symbol .app-symbol { border-radius: 14px !important; }
.raster-symbol .abzeichen { position: absolute; top: -6px; right: -8px; }
.raster-titel { font-size: 12px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.55); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 360px) { .raster-titel { font-size: 11px; letter-spacing: -.2px; } .app-raster { gap: 16px 4px; } }

/* ------------------------------------------------------------ Handy-Startbildschirm wie beim iPhone */
.hs { position: absolute; inset: 0 0 calc(84px + var(--unten)) 0; display: flex; flex-direction: column; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hs-seiten { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hs-seiten::-webkit-scrollbar { display: none; }
.hs.zieht .hs-seiten { overflow-x: hidden; }
.hs-seite { flex: 0 0 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow-y: auto; overflow-x: hidden; padding: calc(14px + env(safe-area-inset-top)) 16px 16px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hs .uhr-block { text-align: center; }
.hs-system:empty { display: none; }
.hs-system { display: flex; flex-direction: column; gap: 12px; }
.hs-raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 8px; align-content: start; }
.hs-item { position: relative; min-width: 0; }
.hs-app { display: flex; justify-content: center; }
.hs-widget { grid-column: 1 / -1; }
.hs-widget .widget { margin: 0; }
.hs-leer { color: rgba(255,255,255,.85); text-align: center; padding: 40px 10px; border: 2px dashed rgba(255,255,255,.4); border-radius: 22px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.hs-titel { color: #fff; text-align: center; margin: 4px 0 0; font-size: 20px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.hs-punkte { align-self: center; display: flex; align-items: center; gap: 7px; padding: 6px 12px; margin: 4px 0 6px; border-radius: 999px; background: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; border: none; cursor: pointer; min-height: 28px; }
.hs-punkte i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); }
.hs-punkte i.aktiv { background: #fff; }
.hs-punkte i.mediathek { border-radius: 2px; }
.hs-leiste { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 20; display: flex; gap: 8px; }
.hs-knopf { min-width: 40px; height: 36px; border-radius: 18px; border: none; background: rgba(255,255,255,.85); color: #000; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; cursor: pointer; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.hs-knopf.fertig { margin-left: auto; }
.hs.bearbeiten .hs-seite:first-child { padding-top: calc(60px + env(safe-area-inset-top)); }
.hs-minus { position: absolute; top: -7px; left: -5px; width: 24px; height: 24px; border-radius: 50%; background: rgba(60,60,67,.9); color: #fff; font-size: 18px; line-height: 22px; text-align: center; border: none; z-index: 3; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.hs-minus.plus { background: #0068d9; }
.hs-app .hs-minus { left: calc(50% - 38px); }
.dock-app .hs-minus { top: -6px; left: -6px; }
@keyframes wackeln { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
@keyframes wackeln-leicht { from { transform: rotate(-.35deg); } to { transform: rotate(.35deg); } }
.hs.bearbeiten .hs-app .raster-symbol, .dock.bearbeiten .dock-app { animation: wackeln .14s ease-in-out infinite alternate; }
.hs.bearbeiten .hs-app:nth-child(even) .raster-symbol, .dock.bearbeiten .dock-app:nth-child(even) { animation-delay: -.07s; }
.hs.bearbeiten .hs-widget { animation: wackeln-leicht .16s ease-in-out infinite alternate; }
.hs.bearbeiten .hs-item { touch-action: none; }
.hs.bearbeiten .hs-inhalt { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hs.bearbeiten .hs-app .raster-symbol, .dock.bearbeiten .dock-app, .hs.bearbeiten .hs-widget { animation: none; } }
.hs-item.platzhalter { opacity: .25; }
.hs-geist { position: fixed; z-index: 950; transform: translate(-50%, -50%) scale(1.08); pointer-events: none; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
.hs-geist-widget { background: rgba(255,255,255,.92); color: #000; border-radius: 18px; padding: 14px 18px; font-weight: 600; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.hs-widgetliste { display: flex; flex-direction: column; gap: 8px; }
.hs-widgetwahl { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--linie); background: var(--flaeche-2); color: var(--text); cursor: pointer; text-align: left; min-height: 52px; }
.hs-widgetwahl b { flex: 1; }
.hs-widgetsymbol { width: 36px; height: 36px; border-radius: 10px; background: var(--blau); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.hs-seitenzeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--linie); padding: 6px 0; }
.hs-seitenzeile .haken-zeile { flex: 1; min-width: 0; }
.hs-suche { position: fixed; inset: 0; z-index: 920; background: rgba(14,14,20,.86); -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4); padding: calc(12px + env(safe-area-inset-top)) 16px 16px; display: flex; flex-direction: column; gap: 14px; animation: einblenden .15s; }
.hs-suchfeld { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.9); color: #3c3c43; border-radius: 12px; padding: 4px 4px 4px 12px; }
.hs-suchfeld input { flex: 1; border: none; background: none; font-size: 17px; padding: 8px 0; color: #000; outline: none; min-width: 0; }
.hs-suchergebnis { overflow-y: auto; flex: 1; color: #fff; }
.hs-suchergebnis h4 { margin: 4px 0 10px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.hs-kontakt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.88); color: #000; margin-bottom: 8px; }
.hs-kontakt-name { flex: 1; text-align: left; background: none; border: none; color: #000; font-size: 16px; padding: 4px 0; cursor: pointer; min-width: 0; }
.raster-titel.dunkel { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.dock.aus { display: none; }
.home-balken { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 200px; height: 28px; z-index: 460; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 8px; background: none; border: none; cursor: pointer; touch-action: none; }
.home-balken i { width: 134px; height: 5px; border-radius: 3px; background: var(--text); opacity: .45; }
/* Apps am Handy im Vollbild (wie beim iPhone): das Fenster reicht bis ganz unten,
   der Home-Balken liegt nur als schmaler Strich über dem Inhalt */
.fenster.handy { inset: 0 !important; border-radius: 0 !important; padding-bottom: max(0px, calc(env(safe-area-inset-bottom) - 14px)); }

/* Familie als Bereich in Kalender, Einkauf, Kontakten und Einstellungen */
.familie-bereich { display: flex; flex-direction: column; height: 100%; min-height: 0; flex: 1; }
.kal-haupt .familie-bereich, .ek-haupt .familie-bereich { overflow: hidden; }
.familie-bereich .fam-kopf { border-bottom: none; padding-bottom: 0; }
.fam-titel { margin: 0; font-size: 20px; }
.fam-kueche-knopf { margin-left: auto; }
.ei-koerper .familie-bereich .fam-inhalt { padding: 0; overflow: visible; }
.ek-essensplan { margin-top: 10px; }

/* Abstand nach unten wie beim iPhone: der Sicherheitsbereich (34 px bei Geräten ohne Home-Taste)
   wird nicht zusätzlich zum eigenen Abstand gerechnet - Dock rund 14 px über dem Rand */
:root { --unten: max(8px, calc(env(safe-area-inset-bottom) - 20px)); }

/* ------------------------------------------------------------ macOS 27 „Golden Gate“ / iOS 27: Liquid Glass */
:root {
  --glas-d: .55;
  --glas: rgb(255 255 255 / calc(.16 + var(--glas-d) * .76));
  --widget: rgb(255 255 255 / calc(.12 + var(--glas-d) * .76));
  --glas-kante: 0 0 0 .5px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.65), inset 0 -1px 0 rgba(255,255,255,.18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --glas: rgb(34 34 40 / calc(.16 + var(--glas-d) * .76));
    --widget: rgb(26 26 32 / calc(.12 + var(--glas-d) * .76));
    --glas-kante: 0 0 0 .5px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(255,255,255,.05);
  }
}
/* iOS 27 zerstreut den Hintergrund stärker und zieht dunklere Kanten um Glasflächen */
.glas, .widget, .hs-punkte, .hs-knopf { -webkit-backdrop-filter: blur(44px) saturate(190%); backdrop-filter: blur(44px) saturate(190%); }
.dock.glas { box-shadow: var(--glas-kante), 0 12px 40px rgba(0,0,0,.25); border-radius: 26px; }
.widget { box-shadow: var(--glas-kante), 0 10px 30px rgba(0,0,0,.12); }
/* Menüleiste: wie seit macOS 26 nahezu durchsichtig, mit dem Glas-Regler leicht tönbar */
.menueleiste { background: rgba(0,0,0, calc(var(--glas-d) * .22)); }
/* Fenster: einheitliche, etwas weniger runde Ecken; Werkzeugleiste mit leichter Schattierung */
.fenster:not(.handy):not(.maximiert) { border-radius: 11px; }
.fenster-kopf { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.02)), var(--leiste); }
/* Ampel-Knöpfe mit Glas-Glanz */
.ampel button { box-shadow: inset 0 0 0 .5px rgba(0,0,0,.22), inset 0 1px 1px rgba(255,255,255,.55); }
.ampel .rot { background: radial-gradient(circle at 50% 32%, #ff8f87 0%, #ff5f57 55%, #e2463f 100%); }
.ampel .gelb { background: radial-gradient(circle at 50% 32%, #ffd56e 0%, #febc2e 55%, #e3a21a 100%); }
.ampel .gruen { background: radial-gradient(circle at 50% 32%, #5fe06d 0%, #28c840 55%, #1aa52f 100%); }
.fenster:not(.vorne) .ampel button { background: var(--text-3); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.15); }
/* App-Symbole mit Glasebene (Lichtkante oben, wie die neuen geschichteten Symbole) */
.app-symbol { position: relative; overflow: hidden; }
.app-symbol::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,.06) 42%, rgba(255,255,255,0) 60%);
  box-shadow: inset 0 0 0 .75px rgba(255,255,255,.35), inset 0 1px 0 rgba(255,255,255,.55); }
/* Symbole „klar“: Glas mit weißem Zeichen */
.symbole-klar .app-symbol { background: rgb(255 255 255 / .18) !important; color: #fff !important; -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); }
.symbole-klar .kalender-symbol .ks-tag, .symbole-klar .kalender-symbol .ks-zahl { color: #fff !important; }
/* Symbole „getönt“: dunkel mit goldenem Zeichen */
.symbole-getoent .app-symbol { background: linear-gradient(180deg, #2f2c34, #141317) !important; color: #f3c77b !important; }
.symbole-getoent .kalender-symbol .ks-tag, .symbole-getoent .kalender-symbol .ks-zahl { color: #f3c77b !important; }
.glas-regler { gap: 10px; width: 100%; }
.glas-regler input[type=range] { flex: 1; accent-color: var(--blau); }

.home-balken { position: absolute; }
/* Widgets auf dem Handy-Startbildschirm nur so hoch wie ihr Inhalt */
.hs-widget .widget { min-height: 0; }
.raster-symbol .abzeichen { min-width: 22px; height: 22px; font-size: 13px; top: -5px; right: -6px; }

/* Neuigkeiten: lange Listen scrollen, der Knopf bleibt immer sichtbar */
.dialog.neuigkeiten ul { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 6px; }
.dialog.neuigkeiten .app-logo, .dialog.neuigkeiten h3, .dialog.neuigkeiten .dialog-knoepfe { flex: none; }

/* ------------------------------------------------------------ Kleine Widgets (2 × 2 App-Felder, wie beim iPhone) */
.hs-raster { grid-auto-flow: row dense; grid-auto-rows: minmax(86px, auto); }
.hs-widget.klein { grid-column: span 2; grid-row: span 2; }
.hs-widget.klein .hs-inhalt, .hs-widget.klein .widget { height: 100%; }
.widget.klein-w { min-height: 0; height: 100%; padding: 14px; gap: 4px; overflow: hidden; border-radius: 22px; justify-content: flex-start; font-size: 13px; }
.klein-w .kw-ort { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.klein-w .kw-gross { font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -1px; }
.klein-w .kw-gross.dunkel { font-weight: 500; color: var(--widget-text); }
.klein-w .kw-unten { margin-top: auto; display: flex; flex-direction: column; gap: 1px; font-size: 12px; font-weight: 600; }
.klein-w .kw-kopf { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 4px; min-width: 0; }
.klein-w .kw-kopf b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.klein-w .kw-zahl { margin-left: auto; font-weight: 700; color: var(--text-2); }
.klein-w .kw-zahl.warn { color: var(--rot); }
.klein-w .kw-punktzeile { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
.klein-w .kw-punktzeile span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.klein-w .kw-zeile { margin-top: auto; display: flex; flex-direction: column; min-width: 0; font-size: 12px; }
.klein-w .kw-zeile b, .klein-w .kw-zeile span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.klein-w .kw-zeile span { color: var(--text-2); }
.klein-w .kw-titel { font-size: 14px; }
.klein-w .kw-text { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.klein-w .kw-warnung { font-size: 12px; color: var(--rot); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.kalender-klein .kk-tag { color: var(--rot); font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.kalender-klein .kk-termine { margin-top: auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kalender-klein .kk-termin { border-left: 3px solid; padding-left: 6px; display: flex; flex-direction: column; min-width: 0; font-size: 12px; }
.kalender-klein .kk-termin b, .kalender-klein .kk-termin span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kalender-klein .kk-termin span { color: var(--text-2); }
.hs-groesse { position: absolute; bottom: -6px; right: -4px; width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(60,60,67,.9); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 3; cursor: pointer; padding: 0; }
.hs-widgetwahl .knopf.klein { flex: none; }

/* ------------------------------------------------------------ Einstellungen am Handy wie iOS 27 */
:root { --ios-grund: #f2f2f7; --ios-karte: #ffffff; --ios-trenner: rgba(60,60,67,.18); }
@media (prefers-color-scheme: dark) { :root { --ios-grund: #000000; --ios-karte: #1c1c1e; --ios-trenner: rgba(84,84,88,.6); } }
.einstellungen-app.handy { background: var(--ios-grund); }
.ios-einstellungen { flex: 1; overflow-y: auto; padding: 12px 16px calc(96px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 22px; background: var(--ios-grund); }
.ios-titel { text-align: center; font-size: 17px; font-weight: 600; margin: 4px 0 0; }
.ios-gruppe { background: var(--ios-karte); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; flex: none; }
.ios-titel, .ios-leer { flex: none; }
.ios-zeile { display: flex; align-items: center; gap: 14px; padding: 0 16px 0 14px; min-height: 52px; width: 100%; background: none; border: none; color: var(--text); font-size: 17px; text-align: left; cursor: pointer; position: relative; }
.ios-zeile:active { background: rgba(127,127,127,.15); }
.ios-zeile + .ios-zeile::before { content: ""; position: absolute; top: 0; right: 0; left: 58px; border-top: .5px solid var(--ios-trenner); }
.ios-profil + .ios-familie::before { left: 92px; }
.ios-symbol { width: 30px; height: 30px; border-radius: 8px; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ios-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ios-text > span { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-text b { font-size: 21px; font-weight: 600; }
.ios-wert { color: var(--text-2); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.ios-pfeil { color: var(--text-3, #c4c4c7); flex: none; }
.ios-rot { color: var(--rot); }
.ios-profil { min-height: 86px; padding-top: 10px; padding-bottom: 10px; }
.ios-familie { min-height: 62px; }
.ios-avatare { display: flex; width: 64px; flex: none; }
.ios-avatare > * + * { margin-left: -14px; box-shadow: 0 0 0 2px var(--ios-karte); border-radius: 50%; }
.ios-leer { text-align: center; color: var(--text-2); font-size: 13px; margin: 0; }
.ios-suche { position: absolute; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 18px; height: 52px; border-radius: 26px;
  background: rgb(255 255 255 / .9); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: var(--glas-kante), 0 8px 30px rgba(0,0,0,.12); color: var(--text-2); }
@media (prefers-color-scheme: dark) { .ios-suche { background: rgb(44 44 48 / .9); } }
.ios-suche input { flex: 1; border: none; background: none; outline: none; color: var(--text); min-width: 0; padding: 0; }
.einstellungen-app.handy { position: relative; }
/* Unterseiten am Handy: grauer Grund, Karten mit großen Rundungen, Titel mittig */
.einstellungen-app.handy .ei-inhalt { background: var(--ios-grund); }
.einstellungen-app.handy .ei-kopf { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.einstellungen-app.handy .ei-kopf h2 { font-size: 17px; font-weight: 600; text-align: center; margin: 0; }
.einstellungen-app.handy .ei-kopf .zurueck-knopf { justify-self: start; font-size: 0; }
.einstellungen-app.handy .ei-kopf .zurueck-knopf svg { width: 24px; height: 24px; }
.einstellungen-app.handy .ei-karte { border-radius: 26px; box-shadow: none; background: var(--ios-karte); }
.einstellungen-app.handy .ei-gruppe h3 { text-transform: none; font-size: 15px; margin-left: 16px; }

/* Offline-Hinweis: schmale Pille unten (verdeckt keine Überschriften) */
.offline-hinweis { top: auto !important; bottom: calc(34px + env(safe-area-inset-bottom)); white-space: nowrap; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }

/* Home-Strich von MYMACE knapp ÜBER der Wischzone des iPhones (die unterste Kante gehört iOS:
   dort wischen verlässt die App). Große Tippfläche, Strich in der Mitte. */
.home-balken { bottom: max(0px, calc(env(safe-area-inset-bottom) - 6px)); height: 34px; width: 220px; padding: 0; align-items: center; }
.home-balken i { width: 120px; height: 6px; border-radius: 3px; opacity: .55; }
.fenster.handy { padding-bottom: max(10px, env(safe-area-inset-bottom)); }

/* Profilbild */
.avatar-bild { border-radius: 50%; object-fit: cover; flex: none; display: block; }
.profilbild-karte { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 4px; text-align: center; }
.profilbild-wahl { position: relative; cursor: pointer; border-radius: 50%; }
.profilbild-stift { position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--blau); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--ios-grund, var(--flaeche)); }
.profilbild-name { font-size: 22px; margin-top: 6px; }
