/* Webportal – macOS-Glas-Design */
:root {
  --akzent: #0a84ff;
  --akzent-soft: color-mix(in srgb, var(--akzent) 13%, transparent);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --linie: rgba(60, 60, 67, .12);
  --glas-a: .62;
  --glas: rgba(255, 255, 255, var(--glas-a));
  --glas-stark: rgba(255, 255, 255, min(.96, calc(var(--glas-a) + .2)));
  --block-radius: 20px;
  --fenster-radius: 22px;
  --zeile: 150px;
  --feld: rgba(118, 118, 128, .10);
  --karte: rgba(255, 255, 255, .72);
  --rot: #ff3b30;
  --gruen: #34c759;
  --orange: #ff9f0a;
  --radius: 18px;
  --schatten: 0 20px 60px rgba(30, 40, 80, .18), 0 2px 8px rgba(30, 40, 80, .06);
  --hg: url("../img/hintergrund.4c2dcfededb2.svg");
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-modus="hell"]) {
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --linie: rgba(255, 255, 255, .12);
    --glas: rgba(30, 30, 36, var(--glas-a));
    --glas-stark: rgba(38, 38, 44, min(.96, calc(var(--glas-a) + .24)));
    --feld: rgba(118, 118, 128, .24);
    --karte: rgba(44, 44, 50, .72);
    --akzent-soft: color-mix(in srgb, var(--akzent) 24%, transparent);
    --hg: url("../img/hintergrund-dunkel.3142203edb45.svg");
  }
}
:root[data-modus="dunkel"] {
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --linie: rgba(255, 255, 255, .12);
    --glas: rgba(30, 30, 36, var(--glas-a));
    --glas-stark: rgba(38, 38, 44, min(.96, calc(var(--glas-a) + .24)));
    --feld: rgba(118, 118, 128, .24);
    --karte: rgba(44, 44, 50, .72);
    --akzent-soft: color-mix(in srgb, var(--akzent) 24%, transparent);
    --hg: url("../img/hintergrund-dunkel.3142203edb45.svg");
  }
:root[data-modus="dunkel"] { color-scheme: dark; } :root[data-modus="hell"] { color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.45; color: var(--text);
  background: #dfe6f3 var(--hg) center / cover fixed no-repeat;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); font-weight: 600; margin: 22px 0 8px; }
p { margin: 0 0 12px; }
.glas {
  background: var(--glas);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: var(--schatten);
}
@media (prefers-color-scheme: dark) { :root:not([data-modus="hell"]) .glas { border-color: rgba(255, 255, 255, .08); } }
:root[data-modus="dunkel"] .glas { border-color: rgba(255, 255, 255, .08); }
.leise { color: var(--text-2); font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Formulare ---------- */
label { display: block; font-size: 13px; color: var(--text-2); margin: 0 0 5px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=tel], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--feld);
  border: 1px solid transparent; border-radius: 11px; padding: 11px 13px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-soft); }
input[disabled], select[disabled] { opacity: .6; }
form p { margin: 0 0 14px; }
.helptext, form p span { display: block; font-size: 12px; color: var(--text-2); margin-top: 5px; }
ul.errorlist { list-style: none; padding: 9px 12px; margin: 0 0 10px; border-radius: 10px;
  background: rgba(255, 59, 48, .10); color: var(--rot); font-size: 13px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--akzent); vertical-align: -3px; margin-right: 8px; }
.checks > div, .checks ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checks label { display: flex; align-items: center; color: var(--text); font-size: 14px; margin: 0; }

.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; border-radius: 12px; padding: 11px 18px;
  border: 0; cursor: pointer; background: var(--feld); color: var(--text); text-decoration: none;
  transition: transform .06s, filter .15s;
}
.btn:hover, button:hover { filter: brightness(.96); text-decoration: none; }
.btn:active, button:active { transform: scale(.98); }
.btn-primaer, button[type=submit].primaer, .btn.prominent, .btn.primary:not(.outline) { background: var(--akzent); color: #fff; }
.btn.outline { background: transparent; border: 1px solid var(--linie); color: var(--text); }
.btn.danger, .btn-rot { background: rgba(255, 59, 48, .12); color: var(--rot); }
.btn.link { background: none; color: var(--akzent); padding: 6px 0; }
.btn-breit { width: 100%; }
.btn-klein { padding: 7px 12px; font-size: 13px; border-radius: 9px; }

/* ---------- Anmeldung ---------- */
.eingang { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.eingang-karte { width: 100%; max-width: 400px; border-radius: 28px; padding: 34px 32px 28px; }
.eingang-karte h1 { text-align: center; font-size: 24px; }
.eingang-karte > p, .eingang-karte .untertitel { text-align: center; color: var(--text-2); }
.avatar-neutral { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(145deg, #c9d3e6, #9aa6bf); display: flex; align-items: center; justify-content: center; }
.avatar-neutral svg { width: 42px; height: 42px; fill: rgba(255, 255, 255, .92); }
.eingang-karte form button[type=submit] { width: 100%; background: var(--akzent); color: #fff; margin-top: 4px; }
.eingang-karte hr, .trenner { border: 0; display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 12px; margin: 20px 0; }
.trenner::before, .trenner::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.eingang-karte .knopfgruppe { display: grid; gap: 10px; }
.eingang-karte .knopfgruppe .btn, .eingang-karte .knopfgruppe button { width: 100%; }
.eingang-fuss { text-align: center; margin-top: 18px; font-size: 13px; }
.code-feld input { text-align: center; font-size: 26px; letter-spacing: .5em; font-variant-numeric: tabular-nums; padding: 14px; }
.instanz-hinweis { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); background: var(--orange);
  color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; z-index: 50; letter-spacing: .04em; }

/* ---------- Meldungen ---------- */
.meldungen { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.meldung { padding: 10px 14px; border-radius: 12px; font-size: 14px; background: var(--akzent-soft); }
.meldung.success { background: rgba(52, 199, 89, .14); }
.meldung.error { background: rgba(255, 59, 48, .12); color: var(--rot); }
.meldung.warning { background: rgba(255, 159, 10, .16); }

/* ---------- Portal-Rahmen ---------- */
.menueleiste { position: sticky; top: 0; z-index: 20; height: 44px; display: flex; align-items: center; gap: 18px;
  padding: 0 18px; background: var(--glas); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  border-bottom: 1px solid var(--linie); font-size: 14px; }
.menueleiste .marke { font-weight: 700; color: var(--text); }
.menueleiste .platz { flex: 1; }
.menueleiste .datum { color: var(--text-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(145deg, #8e9dff, #b98bff);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
details.menue { position: relative; }
details.menue > summary { list-style: none; cursor: pointer; }
details.menue > summary::-webkit-details-marker { display: none; }
.menue-liste { background: var(--glas-stark) !important; position: absolute; right: 0; top: 40px; min-width: 220px; border-radius: 14px; padding: 6px; }
.menue-liste a, .menue-liste button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px;
  color: var(--text); background: none; font-weight: 500; font-size: 14px; }
.menue-liste a:hover, .menue-liste button:hover { background: var(--akzent-soft); text-decoration: none; }
.menue-liste .kopf { padding: 8px 12px 6px; font-size: 12px; color: var(--text-2); }

.fenster { margin: 26px auto; width: min(1280px, calc(100% - 40px)); min-height: calc(100vh - 96px);
  border-radius: var(--fenster-radius); display: grid; grid-template-columns: 250px 1fr; overflow: hidden; }
.seitenleiste { padding: 18px 12px; border-right: 1px solid var(--linie); background: rgba(255, 255, 255, .18); }
@media (prefers-color-scheme: dark) { :root:not([data-modus="hell"]) .seitenleiste { background: rgba(0, 0, 0, .12); } }
:root[data-modus="dunkel"] .seitenleiste { background: rgba(0, 0, 0, .12); }
.ampel { display: flex; gap: 8px; padding: 2px 8px 16px; }
.ampel i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.ampel i:nth-child(1) { background: #ff5f57; } .ampel i:nth-child(2) { background: #febc2e; } .ampel i:nth-child(3) { background: #28c840; }
.seitenleiste h3 { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); margin: 14px 10px 6px; font-weight: 600; }
.seitenleiste a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); font-weight: 500; }
.seitenleiste a:hover { background: var(--akzent-soft); text-decoration: none; }
.seitenleiste a.aktiv { background: var(--akzent); color: #fff; }
.seitenleiste a .zahl { margin-left: auto; font-size: 12px; opacity: .7; }
.sym { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; flex: none; }
.sym.blau { background: #0a84ff; } .sym.gruen { background: #30b94d; } .sym.orange { background: #ff9f0a; }
.sym.rot { background: #ff3b30; } .sym.lila { background: #af52de; } .sym.grau { background: #8e8e93; }
.inhalt { padding: 26px 30px 40px; overflow: auto; }
.kopfzeile { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.kopfzeile h1 { margin: 0; }
.kopfzeile .platz { flex: 1; }

.karte { background: var(--karte); border-radius: var(--radius); border: 1px solid var(--linie); padding: 4px 0; margin-bottom: 18px; }
.karte.innen { padding: 18px 20px; }
.zeile { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--linie); }
.zeile:last-child { border-bottom: 0; }
.zeile .platz { flex: 1; min-width: 0; }
.zeile .wert { color: var(--text-2); }
a.zeile { color: var(--text); }
a.zeile:hover { background: var(--akzent-soft); text-decoration: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: var(--akzent-soft); color: var(--akzent); }
.chip.gruen { background: rgba(52, 199, 89, .16); color: #1f8a3a; } .chip.orange { background: rgba(255, 159, 10, .18); color: #b86e00; }
.chip.rot { background: rgba(255, 59, 48, .14); color: var(--rot); } .chip.grau { background: var(--feld); color: var(--text-2); }
.chip.lila { background: rgba(175, 82, 222, .16); color: #8a3db3; } .chip.blau { background: var(--akzent-soft); color: var(--akzent); }
.raster-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.formular-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.aktionen { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.aktionsliste form { margin: 0; }
.aktionsliste button { width: 100%; justify-content: flex-start; background: none; border-radius: 0; padding: 13px 18px;
  border-bottom: 1px solid var(--linie); color: var(--akzent); font-weight: 500; }
.aktionsliste form:last-child button { border-bottom: 0; }
.aktionsliste button.rot { color: var(--rot); } .aktionsliste button.orange { color: #c77700; }
table.liste { width: 100%; border-collapse: collapse; font-size: 14px; }
table.liste th { text-align: left; font-size: 12px; color: var(--text-2); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--linie); }
table.liste td { padding: 10px 14px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
table.liste tr:last-child td { border-bottom: 0; }
.pw-anzeige { font: 600 26px/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; padding: 16px; text-align: center;
  background: var(--feld); border-radius: 14px; margin: 10px 0 14px; user-select: all; }
.willkommen { padding: 30px; border-radius: var(--radius); }

/* allauth-Verwaltungsseiten (Passkeys, Codes) */
.inhalt section { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; }
.inhalt section h2 { margin-top: 0; }
.inhalt section ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.inhalt table { width: 100%; border-collapse: collapse; }
.inhalt table th, .inhalt table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linie); }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  .fenster { margin: 0; width: 100%; border-radius: 0; grid-template-columns: 1fr; min-height: calc(100vh - 44px); }
  .seitenleiste { border-right: 0; border-bottom: 1px solid var(--linie); padding: 10px; display: flex; gap: 6px; overflow-x: auto; }
  .seitenleiste h3, .ampel { display: none; }
  .seitenleiste a { white-space: nowrap; }
  .inhalt { padding: 18px 16px 40px; }
  .raster-2, .formular-raster { grid-template-columns: 1fr; }
  .menueleiste .datum { display: none; }
  .eingang-karte { padding: 28px 22px 24px; border-radius: 24px; }
}

/* ======== Etappe 2: Seiten, Blöcke, Apps ======== */
.menueleiste .suche input { width: 190px; padding: 6px 12px; border-radius: 9px; font-size: 13px; background: var(--feld); }
.suche-gross input { font-size: 16px; padding: 12px 14px; margin-bottom: 14px; }
.seitenleiste a.unter { padding-left: 46px; font-size: 14px; color: var(--text-2); }
.seitenleiste a.unter.aktiv { color: #fff; }
.zeile.einger { padding-left: 56px; color: var(--text-2); }
button.zeile { width: 100%; background: none; border-radius: 0; font-weight: 500; color: var(--rot); justify-content: flex-start; text-align: left; }

/* App-Symbole */
.aic { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 8px rgba(0,0,0,.12); }
.aic.gross { width: 64px; height: 64px; border-radius: 17px; font-size: 22px; }
.f-blau { background: linear-gradient(145deg, #5ac8fa, #0a60d8); } .f-hellblau { background: linear-gradient(145deg, #8fd3ff, #3a8ee6); }
.f-gruen { background: linear-gradient(145deg, #7ddc6a, #2f9e44); } .f-tuerkis { background: linear-gradient(145deg, #45d6c4, #0f8f86); }
.f-orange { background: linear-gradient(145deg, #ffb347, #f06a1a); } .f-gelb { background: linear-gradient(145deg, #ffd84d, #f4a300); }
.f-rot { background: linear-gradient(145deg, #ff6b6b, #d7263d); } .f-pink { background: linear-gradient(145deg, #ff7eb3, #e0457b); }
.f-lila { background: linear-gradient(145deg, #b28dff, #6b3fe0); } .f-grau { background: linear-gradient(145deg, #a8a8b3, #6c6c78); }
.sym.hellblau { background: #3a8ee6; } .sym.tuerkis { background: #0f9f94; } .sym.gelb { background: #f4a300; } .sym.pink { background: #e0457b; }

/* Block-Raster: 6 Spalten */
.bgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: var(--zeile); gap: 16px; grid-auto-flow: dense; }
.block { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--block-radius); overflow: hidden; min-width: 0; color: var(--text); }
.block.innen { padding: 16px 18px; overflow: auto; }
.block h2 { margin: 0 0 10px; }
.b1 { grid-column: span 1; } .b2 { grid-column: span 2; } .b3 { grid-column: span 3; } .b4 { grid-column: span 4; } .b5 { grid-column: span 5; } .b6 { grid-column: span 6; }
.h1 { grid-row: span 1; } .h2 { grid-row: span 2; } .h3 { grid-row: span 3; }
a.block:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--schatten); }
a.block { transition: transform .15s, box-shadow .15s; }
.bapp { display: flex; align-items: center; gap: 16px; padding: 0 22px; }
.bapp b { display: block; font-size: 19px; } .bapp small { color: var(--text-2); font-size: 13px; }
.bkachel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-weight: 500; text-align: center; padding: 8px; }
.appraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 12px 6px; }
.appraster a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); font-size: 12px; text-align: center; }
.appraster a span { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appraster a:hover { text-decoration: none; } .appraster a:hover .aic { transform: scale(1.06); } .aic { transition: transform .12s; }
.bliste a { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--linie); color: var(--text); }
.bliste a:last-child { border-bottom: 0; } .bliste a:hover { text-decoration: none; background: var(--akzent-soft); border-radius: 10px; }
.bliste b { display: block; font-weight: 600; font-size: 14px; } .bliste small { color: var(--text-2); font-size: 12px; }
.bgrafik { position: relative; display: flex; align-items: flex-end; padding: 18px 24px; color: #fff; font-size: 26px; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.g-abend { background: radial-gradient(circle at 78% 18%, #ffe8d6 0 60px, transparent 61px), linear-gradient(180deg, #d9788f, #ff9a62); }
.g-meer { background: radial-gradient(circle at 80% 25%, #fff6c9 0 50px, transparent 51px), linear-gradient(180deg, #7fc8f8, #2d6fd6 70%, #1d4fa8); }
.g-wald { background: linear-gradient(160deg, #9be7a5, #2f9e5a 60%, #1c6b3c); }
.g-nacht { background: radial-gradient(circle at 80% 30%, #f5f3d7 0 34px, transparent 35px), linear-gradient(180deg, #1b2240, #3b2d6b); }
.g-morgen { background: radial-gradient(circle at 20% 80%, #fff 0 70px, transparent 71px), linear-gradient(180deg, #ffd6e8, #c9dcff); color: #1d1d1f; text-shadow: none; }
.bnotiz p { font-size: 15px; }
.bstatus { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.bstatus span { display: inline-flex; align-items: center; gap: 7px; }
.bstatus i { width: 10px; height: 10px; border-radius: 50%; background: var(--text-2); }
.st-ok i { background: var(--gruen); } .st-warnung i { background: var(--orange); } .st-aus i { background: var(--rot); }
.leer { display: flex; align-items: center; }

/* Tab-Leiste (nur Handy) */
.tableiste { display: none; }
body.vorschau .menueleiste .suche, body.vorschau .menue { pointer-events: none; }

@media (max-width: 1100px) { .bgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .b5, .b6 { grid-column: span 4; } }
@media (max-width: 760px) {
  .menueleiste, .seitenleiste { display: none; }
  .fenster { background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; min-height: 100vh; }
  .inhalt { padding: calc(18px + env(safe-area-inset-top)) 14px 110px; }
  .kopfzeile h1 { font-size: 32px; }
  .bgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: 12px; }
  .b1 { grid-column: span 2; } .b2, .b3, .b4, .b5, .b6 { grid-column: span 4; }
  .h1, .h2, .h3 { grid-row: auto; } .h1 { min-height: 88px; } .h2 { min-height: 150px; } .h3 { min-height: 210px; }
  .block.innen { overflow: visible; } .bapp { min-height: 96px; } .bkachel { min-height: 110px; } .bgrafik { min-height: 120px; }
  .bkachel .aic.gross { width: 46px; height: 46px; font-size: 17px; border-radius: 13px; }
  .bapp .aic.gross { width: 54px; height: 54px; font-size: 19px; }
  .appraster { grid-template-columns: repeat(4, 1fr); }
  .tableiste { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
    border-radius: 26px; padding: 8px 6px; justify-content: space-around; background: var(--glas-stark); }
  .tableiste a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-2); font-size: 11px; min-width: 56px; }
  .tableiste a:hover { text-decoration: none; }
  .tableiste a.aktiv { color: var(--akzent); }
  .tableiste .sym { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
  .tableiste a:not(.aktiv) .sym { opacity: .85; }
}

/* Verwaltung: Seiten-Editor (v5) */
.segment { display: inline-flex; background: var(--feld); border-radius: 10px; padding: 3px; }
.segment button { padding: 6px 12px; font-size: 13px; border-radius: 8px; background: none; font-weight: 500; }
.segment button.an { background: var(--glas-stark); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.als select { width: auto; padding: 7px 10px; font-size: 13px; }
.editor { display: grid; grid-template-columns: minmax(360px, 440px) minmax(0, 1fr); gap: 22px; align-items: start; }
.editor-links { min-width: 0; }
.editor-rechts { position: sticky; top: 64px; display: flex; gap: 18px; align-items: flex-start; justify-content: center; flex-wrap: wrap;
  padding: 18px; border-radius: 18px; background: repeating-linear-gradient(45deg, rgba(127,127,127,.06) 0 10px, transparent 10px 20px); }
.vs-pc { width: 560px; height: 350px; border-radius: 12px; overflow: hidden; box-shadow: var(--schatten); background: #dfe6f3; flex: none; }
.vs-pc iframe { width: 1280px; height: 800px; border: 0; transform: scale(.4375); transform-origin: 0 0; }
.vs-phone .rahmen { width: 190px; height: 402px; border-radius: 34px; background: #1d1d1f; padding: 8px; box-shadow: var(--schatten); }
.vs-phone iframe { width: 390px; height: 844px; border: 0; border-radius: 26px; transform: scale(.444); transform-origin: 0 0; }
.vs-phone .rahmen { overflow: hidden; }
.editor-rechts.pc .vs-phone, .editor-rechts.iphone .vs-pc { display: none; }
.editor-rechts.pc .vs-pc { width: 100%; max-width: 760px; height: 475px; } .editor-rechts.pc .vs-pc iframe { transform: scale(.594); }
.vs-hinweis { width: 100%; text-align: center; margin: 0; }
.blockform { padding: 12px 16px; margin-bottom: 10px; }
.blockkopf { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.blockform details summary { cursor: pointer; margin-top: 6px; }
.neuerblock { display: flex; gap: 10px; align-items: center; }
.spalten ul, .spalten > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.appwahl { max-height: 220px; overflow: auto; padding: 4px; }
@media (max-width: 1250px) { .editor { grid-template-columns: minmax(0, 1fr); } .editor-rechts { position: static; } }

/* ======== Etappe 3: App-Fenster ======== */
.appfenster { position: fixed; z-index: 100; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: var(--glas-stark); box-shadow: 0 30px 80px rgba(20, 30, 70, .30), 0 0 0 1px rgba(0,0,0,.06);
  transition: opacity .2s, transform .2s; }
.appfenster.vorne { box-shadow: 0 36px 100px rgba(20, 30, 70, .38), 0 0 0 1px rgba(0,0,0,.08); }
.appfenster.minimiert { opacity: 0; transform: translateY(40vh) scale(.2); pointer-events: none; }
.appfenster.versteckt { display: none; }
.appfenster.maximiert { left: 10px !important; top: 52px !important; width: calc(100vw - 20px) !important; height: calc(100vh - 140px) !important; }
.af-leiste { height: 42px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; cursor: grab; user-select: none;
  border-bottom: 1px solid var(--linie); background: rgba(246, 246, 250, .9); }
@media (prefers-color-scheme: dark) { :root:not([data-modus="hell"]) .af-leiste { background: rgba(40, 40, 46, .92); } }
:root[data-modus="dunkel"] .af-leiste { background: rgba(40, 40, 46, .92); }
.af-leiste:active { cursor: grabbing; }
.af-ampel { display: flex; gap: 8px; }
.af-ampel button { width: 13px; height: 13px; padding: 0; border-radius: 50%; border: 0; position: relative; }
.af-ampel .rot { background: #ff5f57; } .af-ampel .gelb { background: #febc2e; } .af-ampel .gruen { background: #28c840; }
.af-ampel:hover .rot::after { content: "×"; } .af-ampel:hover .gelb::after { content: "–"; } .af-ampel:hover .gruen::after { content: "+"; }
.af-ampel button::after { position: absolute; inset: 0; font-size: 10px; line-height: 13px; font-weight: 800; color: rgba(0,0,0,.55); }
.af-titel { display: flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; }
.af-leiste .platz { flex: 1; }
.af-titel .aic { width: 22px; height: 22px; border-radius: 6px; font-size: 9px; }
.af-titel b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-knopf { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: transparent; color: var(--text-2); font-size: 15px; text-decoration: none; }
.af-knopf:hover { background: var(--feld); text-decoration: none; }
.af-zurueck, .af-min, .af-zu { display: none; }
.appfenster iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.af-griff { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, rgba(127,127,127,.45) 50% 58%, transparent 58% 70%, rgba(127,127,127,.45) 70% 78%, transparent 78%); }
.appfenster.maximiert .af-griff { display: none; }
body.fenster-aktiv iframe { pointer-events: none; }
body.fenster-aktiv { user-select: none; }

/* Dock (PC): mittig unten, Symbole wachsen beim Drüberfahren */
.dock { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 90; display: flex; align-items: flex-end; gap: 10px;
  padding: 8px 14px 10px; border-radius: 20px; height: 62px; }
.dock[hidden] { display: none; }
.dock-app { position: relative; padding: 0; background: none; border-radius: 12px; display: flex; flex-direction: column; align-items: center; }
.dock-app .aic { width: 42px; height: 42px; font-size: 15px; transition: transform .16s ease; transform-origin: bottom center; }
.dock-app i { width: 4px; height: 4px; border-radius: 50%; background: var(--text); opacity: .55; margin-top: 3px; }
.dock-app.min .aic { opacity: .75; }
.dock-app:hover .aic { transform: scale(1.5) translateY(-4px); }
.dock-app:has(+ .dock-app:hover) .aic, .dock-app:hover + .dock-app .aic { transform: scale(1.22); }
.dock-app::after { content: attr(data-name); position: absolute; bottom: 86px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 5px 10px; border-radius: 8px; background: rgba(30, 30, 35, .88); color: #fff; font-size: 12px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .12s; }
.dock-app:hover::after { opacity: 1; }
.stapel, .stapel-liste { display: none; }

@media (max-width: 760px) {
  .dock { display: none !important; }
  .appfenster, .appfenster.maximiert { inset: 0 !important; left: 0 !important; top: 0 !important; width: 100vw !important; height: 100dvh !important; border-radius: 0; z-index: 200; }
  .af-leiste { height: auto; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; cursor: default; }
  .af-ampel, .af-griff { display: none; }
  .af-zurueck { display: inline-flex; background: none; color: var(--akzent); font-weight: 500; padding: 6px 4px; font-size: 16px; }
  .af-titel { position: absolute; left: 50%; transform: translateX(-50%); max-width: 42%; pointer-events: none; }
  .af-titel .aic { display: none; }
  .af-min, .af-zu { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--feld); }
  .af-min { background: var(--akzent-soft); color: var(--akzent); font-size: 22px; font-weight: 600; }
  .stapel { display: block; position: fixed; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 150; width: 62px; height: 62px;
    border-radius: 20px; padding: 0; background: var(--glas-stark); }
  .stapel[hidden] { display: none; }
  .stapel .aic { position: absolute; width: 32px; height: 32px; border-radius: 10px; font-size: 12px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
  .stapel .stapel-0 { left: 7px; top: 17px; transform: rotate(-6deg); } .stapel .stapel-1 { left: 14px; top: 11px; } .stapel .stapel-2 { left: 21px; top: 5px; transform: rotate(6deg); }
  .stapel-zahl { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--rot); color: #fff;
    font-size: 11px; display: flex; align-items: center; justify-content: center; }
  .stapel-liste { display: block; position: fixed; inset: 0; z-index: 160; background: rgba(10, 12, 20, .25); }
  .stapel-liste[hidden] { display: none; }
  .stapel-box { position: absolute; right: 14px; bottom: calc(168px + env(safe-area-inset-bottom)); width: 270px; border-radius: 22px; padding: 6px; background: var(--glas-stark); }
  .stapel-kopf { font-size: 11px; font-weight: 600; letter-spacing: .06em; opacity: .5; padding: 8px 10px 4px; }
  .stapel-zeile { display: flex; align-items: center; }
  .stapel-auf { flex: 1; display: flex; align-items: center; gap: 12px; justify-content: flex-start; background: none; padding: 9px 10px; font-weight: 600; font-size: 15px; }
  .stapel-auf .aic { width: 34px; height: 34px; font-size: 13px; }
  .stapel-x { background: none; color: var(--text-2); padding: 8px 12px; }
  .stapel-alle { width: 100%; background: none; color: var(--rot); font-size: 13px; padding: 10px; }
}

/* ======== Etappe 4: Tresor, Pinnwand, Glocke ======== */
.af-tresor-panel { position: absolute; top: 48px; right: 10px; width: 380px; height: min(520px, calc(100% - 60px)); border-radius: 16px; overflow: hidden;
  background: var(--glas-stark); box-shadow: var(--schatten); z-index: 5; }
.af-tresor-panel iframe { width: 100%; height: 100%; border: 0; background: transparent; }
.af-tresor-panel > .af-knopf { position: absolute; top: 8px; right: 8px; z-index: 2; }
body.panel { background: transparent; }
body.panel .instanz-hinweis { display: none; }
.tresor-panel { padding: 18px 18px 12px; }
body.panel .eingang { min-height: auto; padding: 10px; } body.panel .eingang-karte { box-shadow: none; padding: 20px 18px; }
.kopierzeile { display: flex; gap: 6px; align-items: center; }
.kopierzeile input { flex: 1; min-width: 0; }
@media (max-width: 760px) { .af-tresor-panel { left: 8px; right: 8px; width: auto; top: calc(56px + env(safe-area-inset-top)); } }

.glocke-symbol { position: relative; font-size: 17px; display: inline-flex; }
.glocke-symbol b { position: absolute; top: -6px; right: -9px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--rot); color: #fff;
  font-size: 10px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.glocke-liste { min-width: 320px; }
.glocke-liste a { display: block; } .glocke-liste a b { display: block; font-size: 14px; } .glocke-liste a small { color: var(--text-2); }
.glocke-liste a.neu { background: var(--akzent-soft); }
.glocke-liste a.fuss { text-align: center; color: var(--akzent); border-top: 1px solid var(--linie); border-radius: 0 0 9px 9px; margin-top: 4px; }
.wichtig-banner { display: block; margin-bottom: 14px; color: var(--text); }
.zeile.mitteilung { align-items: flex-start; } .zeile.mitteilung.neu { background: var(--akzent-soft); }

.bpinnwand { display: flex; flex-direction: column; }
.pw-kopf { display: flex; align-items: flex-start; gap: 10px; } .pw-kopf h2 { flex: 1; }
.pw-neu { position: relative; } .pw-neu summary { list-style: none; } .pw-neu summary::-webkit-details-marker { display: none; }
.pw-neu[open] form { position: absolute; right: 0; top: 36px; width: 300px; z-index: 5; padding: 12px; border-radius: 14px; background: var(--glas-stark); box-shadow: var(--schatten); }
.pw-farben { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.pw-farben input { display: none; } .pw-farben i { display: block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.pw-farben input:checked + i { border-color: var(--text); }
.pw-liste { display: grid; gap: 8px; overflow: auto; }
.pw-notiz { position: relative; padding: 10px 34px 10px 12px; border-radius: 12px; }
.pw-notiz p { margin: 0 0 4px; font-size: 14px; } .pw-notiz small { color: rgba(0,0,0,.55); font-size: 12px; }
.pf-gelb { background: #fff3b0; } .pf-gruen { background: #d8f5d0; } .pf-blau { background: #dbe8ff; } .pf-rosa { background: #ffdbe8; }
.pw-notiz { color: #1d1d1f; }
.pw-weg { position: absolute; top: 6px; right: 6px; margin: 0; } .pw-weg button { padding: 2px 7px; background: none; color: rgba(0,0,0,.4); font-size: 12px; }

/* ======== Etappe 5: Gestaltung ======== */
:root[data-ecken="klein"] { --radius: 10px; --block-radius: 10px; --fenster-radius: 12px; }
:root[data-ecken="gross"] { --radius: 24px; --block-radius: 28px; --fenster-radius: 30px; }
:root[data-kacheln="kompakt"] { --zeile: 118px; } :root[data-kacheln="gross"] { --zeile: 184px; }
:root[data-hg="abend"] { --hg: linear-gradient(160deg, #f6b8c8, #ffb38a 55%, #b99cff); }
:root[data-hg="meer"] { --hg: linear-gradient(170deg, #bfe6ff, #7fb8f0 55%, #3d7bd8); }
:root[data-hg="wald"] { --hg: linear-gradient(165deg, #d9f5d0, #8fd19e 55%, #3f8f63); }
:root[data-hg="nacht"] { --hg: radial-gradient(circle at 80% 15%, #3b2d6b, transparent 45%), linear-gradient(180deg, #151a33, #2a2150); }
:root[data-hg="schlicht"] { --hg: linear-gradient(180deg, #eef0f5, #e3e6ee); }
@media (prefers-color-scheme: dark) { :root:not([data-modus="hell"])[data-hg="schlicht"] { --hg: linear-gradient(180deg, #1c1c21, #121216); } }
:root[data-modus="dunkel"][data-hg="schlicht"] { --hg: linear-gradient(180deg, #1c1c21, #121216); }
:root[data-modus="dunkel"][data-hg="morgen"] { --hg: url("../img/hintergrund-dunkel.3142203edb45.svg"); }
:root[data-modus="hell"][data-hg="morgen"] { --hg: url("../img/hintergrund.4c2dcfededb2.svg"); }
:root[data-kontrast="1"] { --glas-a: .92 !important; --text-2: #4a4a50; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (prefers-contrast: more) { :root { --glas-a: .94 !important; } }

/* Gestaltung: Auswahl-Chips */
.farbwahl { display: flex; gap: 10px; flex-wrap: wrap; }
.farbwahl label { margin: 0; cursor: pointer; }
.farbwahl input { position: absolute; opacity: 0; }
.farbwahl i { display: block; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.farbwahl input:checked + i { box-shadow: 0 0 0 3px var(--glas-stark), 0 0 0 5px var(--text); }
.farbwahl input:focus-visible + i { outline: 2px solid var(--akzent); outline-offset: 3px; }
.segwahl { display: inline-flex; background: var(--feld); border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.segwahl label { margin: 0; } .segwahl input { position: absolute; opacity: 0; }
.segwahl span { display: block; padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.segwahl input:checked + span { background: var(--glas-stark); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.segwahl input:focus-visible + span { outline: 2px solid var(--akzent); }
.gzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.gzeile:last-child { border-bottom: 0; } .gzeile > span { font-weight: 500; }
input[type=range] { accent-color: var(--akzent); width: 200px; }
.hgwahl i { width: 40px; height: 28px; border-radius: 8px; }
.hgm-morgen { background: linear-gradient(135deg, #ffc2dc, #bcd2ff 60%, #bff0dd); } .hgm-abend { background: linear-gradient(160deg, #f6b8c8, #ffb38a 55%, #b99cff); }
.hgm-meer { background: linear-gradient(170deg, #bfe6ff, #3d7bd8); } .hgm-wald { background: linear-gradient(165deg, #d9f5d0, #3f8f63); }
.hgm-nacht { background: linear-gradient(180deg, #151a33, #3b2d6b); } .hgm-schlicht { background: linear-gradient(180deg, #eef0f5, #d9dce5); }

/* Erstanmeldung */
.rundgang { width: 100%; max-width: 460px; border-radius: 30px; padding: 28px 30px 20px; }
.rg-punkte { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.rg-punkte i { width: 7px; height: 7px; border-radius: 4px; background: var(--linie); transition: width .2s; }
.rg-punkte i.an { width: 22px; background: var(--akzent); }
.rundgang:not(.js) .rg-punkte, .rundgang:not(.js) [data-weiter], .rundgang:not(.js) [data-zurueck] { display: none; }
.rg-karte { text-align: center; min-height: 300px; }
.rg-karte h1 { font-size: 26px; margin: 8px 0 10px; }
.rg-karte > p { color: var(--text-2); }
.rg-bild { width: 88px; height: 88px; margin: 6px auto 8px; border-radius: 26px; display: flex; align-items: center; justify-content: center;
  font-size: 42px; background: linear-gradient(145deg, var(--akzent-soft), transparent); }
.rg-liste { text-align: left; padding-left: 20px; line-height: 1.6; } .rg-liste li { margin-bottom: 8px; }
.rg-karte .gzeile { text-align: left; }
.rg-wahl { margin-top: 6px; }
.rg-fuss { display: flex; align-items: center; gap: 8px; margin-top: 16px; } .rg-fuss .rg-skip { margin: 0 auto; font-size: 13px; }
.nur-handy { display: none; }
@media (max-width: 760px) { .nur-pc { display: none; } .nur-handy { display: block; } .rundgang { padding: 22px 20px 16px; } }

/* ======== Etappe 6: Austausch ======== */
.ablage { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px; border: 2px dashed color-mix(in srgb, var(--akzent) 45%, transparent);
  border-radius: var(--radius); background: var(--akzent-soft); color: var(--akzent); cursor: pointer; margin-bottom: 14px; text-align: center; }
.ablage.drueber { background: color-mix(in srgb, var(--akzent) 22%, transparent); }
.ablage input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ablage-symbol { font-size: 26px; } .ablage small { color: var(--text-2); }
.chipwahl { display: flex; flex-wrap: wrap; gap: 8px; }
.chipwahl input { position: absolute; opacity: 0; }
.chipwahl label { margin: 0; padding: 6px 12px; border-radius: 20px; background: var(--feld); color: var(--text); font-size: 14px; cursor: pointer; }
.chipwahl input:checked + label { background: var(--akzent); color: #fff; }
.chipwahl input:focus-visible + label { outline: 2px solid var(--akzent); outline-offset: 2px; }
.austausch-zeile .empf { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 30%; }
.austausch-zeile .rest { width: 110px; display: flex; flex-direction: column; gap: 4px; }
.austausch-zeile .rest i { display: block; height: 4px; border-radius: 2px; background: var(--feld); overflow: hidden; }
.austausch-zeile .rest b { display: block; height: 100%; background: var(--gruen); }
.austausch-zeile form { margin: 0; }
@media (max-width: 760px) { .austausch-zeile { flex-wrap: wrap; } .austausch-zeile .empf { max-width: none; justify-content: flex-start; } }
.zonen-chip { font-size: 13px; padding: 2px 8px; border-radius: 10px; background: var(--feld); }
.zonenwahl { display: flex; gap: 16px; flex-wrap: wrap; }
.update-karte { margin-top: 12px; } .update-karte p { margin: 6px 0 10px; }

/* ======== Etappe 9: Termine ======== */
.termin { display: flex; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--linie); }
.termin:last-child { border-bottom: 0; }
.termin b { display: block; font-size: 14px; } .termin small { color: var(--text-2); font-size: 12px; }
.tdatum { width: 44px; height: 44px; flex: none; border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 59, 48, .12); line-height: 1.05; }
.tdatum small { color: var(--rot); font-size: 10px; font-weight: 700; } .tdatum b { font-size: 18px; }
.tf-orange { background: rgba(255, 159, 10, .16); } .tf-orange small { color: #c77700; }
.tf-gelb { background: rgba(255, 214, 10, .2); } .tf-gelb small { color: #a07c00; }
.tf-gruen { background: rgba(52, 199, 89, .15); } .tf-gruen small { color: #1f8a3a; }
.tf-blau { background: var(--akzent-soft); } .tf-blau small { color: var(--akzent); }
.tf-lila { background: rgba(175, 82, 222, .15); } .tf-lila small { color: #8a3db3; }
.tf-grau { background: var(--feld); } .tf-grau small { color: var(--text-2); }
.terminform { display: grid; gap: 8px; } .terminform .zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ======== Etappe 10: KI ======== */
.ki-knopf { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  color: #fff; font-size: 14px; background: linear-gradient(135deg, #ff375f, #af52de 45%, #0a84ff); box-shadow: 0 2px 8px rgba(175, 82, 222, .35); }
.ki-logo { display: inline-flex; width: 1.4em; height: 1.4em; border-radius: .35em; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #ff375f, #af52de 45%, #0a84ff); font-size: .9em; vertical-align: -.15em; }
.ki-logo.gross { font-size: 30px; border-radius: 14px; }
body.im-fenster { background: var(--flaeche, transparent); min-height: 100vh; }
body.im-fenster .instanz-hinweis { display: none; }
.ki { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 420px; }
.ki-fenster { height: 100vh; padding: 12px 16px 8px; box-sizing: border-box; }
.ki-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ki-kopf h1 { margin: 0; }
.ki-kopf .platz { flex: 1; }
.ki-menue .menue-liste { right: 0; min-width: 260px; max-height: 60vh; overflow: auto; }
.ki-menue .menue-liste button { width: 100%; text-align: left; }
.ki-menue .menue-liste small { color: var(--text-2); margin-left: 6px; }
.rot-text { color: var(--rot, #ff3b30) !important; }
.ki-verlauf { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 2px; }
.blase { max-width: 82%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; }
.blase.user { align-self: flex-end; background: var(--akzent); color: #fff; border-bottom-right-radius: 6px; }
.blase.assistant { align-self: flex-start; background: var(--feld); border-bottom-left-radius: 6px; white-space: normal; }
.blase.denkt { color: var(--text-2); animation: ki-puls 1.2s ease-in-out infinite; }
.blase.fehler { background: rgba(255, 59, 48, .12); }
.ki-punkt { padding-left: 1em; text-indent: -.8em; } .ki-punkt::before { content: "• "; }
@keyframes ki-puls { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .blase.denkt { animation: none; } }
.ki-leer { margin: auto; text-align: center; max-width: 440px; padding: 20px; }
.ki-leer.klein { margin-top: 18vh; }
.ki-leer h2 { text-transform: none; letter-spacing: 0; font-size: 20px; color: var(--text); }
.ki-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.chip-knopf { border: 0; font: inherit; font-size: 13px; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  background: var(--akzent-soft, rgba(10, 132, 255, .12)); color: var(--akzent); }
.ki-eingabe { display: flex; gap: 8px; align-items: flex-end; }
.ki-eingabe textarea { flex: 1; resize: none; border-radius: 20px; padding: 10px 16px; min-height: 42px; }
.ki-senden { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--akzent); color: #fff; font-size: 20px; cursor: pointer; flex: none; }
.ki-senden:disabled { opacity: .45; cursor: default; }
.ki-rest { margin: 6px 0 0; text-align: center; font-size: 11px; }
.reiter { display: flex; gap: 4px; background: var(--feld); padding: 4px; border-radius: 12px; margin: 0 0 16px; overflow-x: auto; }
.reiter a { padding: 7px 14px; border-radius: 9px; text-decoration: none; color: var(--text); font-size: 14px; white-space: nowrap; }
.reiter a.aktiv { background: var(--glas-stark, #fff); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
:root[data-modus="dunkel"] .reiter a.aktiv { background: rgba(255, 255, 255, .14); }
h3.abschnitt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 4px 0 10px; }
.appfenster.intern .af-leiste { background: transparent; }
@media (max-width: 760px) {
  .ki { height: calc(100vh - 190px); }
  .ki-fenster { height: 100vh; }
  .ki-knopf { width: 30px; height: 30px; }
}

/* ======== Etappe 11: Meine Seite & Favoriten ======== */
.seitenleiste a.fav { font-size: 14px; padding-top: 5px; padding-bottom: 5px; }
.stern-form { display: inline; margin-left: -4px; }
.karte .zeile + .stern-form { float: right; margin-top: -40px; margin-right: 10px; position: relative; }
.stern { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--text-2); padding: 4px 8px; }
.stern.an { color: #ffb800; }
.kopfzeile .btn-klein { margin-left: 10px; }

/* ======== Dienst-Logos ======== */
.aic.bild { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .12); padding: 7px; box-sizing: border-box; }
.aic.bild img { width: 100%; height: 100%; object-fit: contain; display: block; }
.aic.bild.gross { padding: 11px; }
:root[data-modus="dunkel"] .aic.bild { background: #f2f2f7; }
@media (prefers-color-scheme: dark) { :root[data-modus="auto"] .aic.bild { background: #f2f2f7; } }
.af-titel .aic.bild { padding: 3px; }
.dock-app .aic.bild { padding: 7px; }

/* ======== Gruppen-Freigaben ======== */
.freigabe-liste { max-height: 560px; overflow-y: auto; }
.auswahl-kopf { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; position: sticky; top: -18px; background: inherit; z-index: 1; padding: 4px 0; }
.auswahl-kopf input[type=search] { flex: 1; padding: 6px 10px; font-size: 13px; }
.freigabe-spalten { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 12px; }
.freigabe-zeile { display: flex; align-items: center; gap: 10px; padding: 5px 0; margin: 0; color: var(--text); font-size: 14px; cursor: pointer; }
.freigabe-zeile[hidden] { display: none; }
.freigabe-zeile.unter { padding-left: 28px; }
.freigabe-zeile .aic { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.freigabe-zeile .aic.bild { padding: 4px; }
.freigabe-zeile .sym { width: 24px; height: 24px; font-size: 12px; }
.freigabe-zeile b { display: block; font-weight: 500; font-size: 14px; }
.freigabe-zeile small { font-size: 11px; }
.freigabe-zeile input { flex: none; }

/* ======== Glocke (gefüllt, eigenes SVG) ======== */
.glocke-svg { width: 1em; height: 1em; display: block; }
.glocke-symbol { font-size: 19px; color: var(--text); }
.glocke .glocke-symbol .glocke-svg { width: 19px; height: 19px; }
.sym .glocke-svg { width: 14px; height: 14px; color: #fff; }
.glocke-titel { display: inline-flex; vertical-align: -.1em; color: var(--rot, #ff3b30); }
.glocke-titel .glocke-svg { width: .95em; height: .95em; }
h3.bereich-titel { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 14px 0 4px; }
h3.bereich-titel:first-of-type { margin-top: 4px; }
h3.bereich-titel label { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; font: inherit; color: inherit; }
h3.bereich-titel input { width: 16px; height: 16px; }
/* aufklappbare Bereiche */
.bereich-titel { display: flex; align-items: center; gap: 8px; }
.aufklapp { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; text-align: left; letter-spacing: inherit; text-transform: inherit; }
.aufklapp .pfeil { display: inline-block; transition: transform .2s ease; font-size: 1.2em; line-height: 1; color: var(--text-2); }
.aufklapp[aria-expanded="true"] .pfeil { transform: rotate(90deg); }
.aufklapp:hover { color: var(--akzent); }
.bereich.unter { margin-left: 18px; }
.bereich.seite .aufklapp { flex: 1; justify-content: flex-start; font-size: 14px; color: var(--text); text-transform: none; letter-spacing: 0; }
.bereich.seite .aufklapp .pfeil { margin-left: auto; }
.bereich-karte { padding: 4px 18px; margin-bottom: 10px; }
.bereich-karte h3.bereich-titel { font-size: 14px; color: var(--text); letter-spacing: .02em; }
.bereich-karte .bereich-inhalt .zeile { padding-left: 0; padding-right: 0; }

/* ======== Symbole: Pastell-Squircles (Variante V9) ======== */
.sym { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; background: var(--sym-weich, #ececef); color: var(--sym-farbe, #7c7c82); transition: background .18s, color .18s, transform .18s; }
.sym .ikon { width: 62%; height: 62%; display: block; }
.sym .glocke-svg { color: currentColor; }
.sym.blau, a:has(> .sym.blau) { --sym-farbe: #0a84ff; --sym-weich: #dcebff; }
.sym.blau { background: var(--sym-weich); color: var(--sym-farbe); }
.sym.hellblau, a:has(> .sym.hellblau) { --sym-farbe: #1ea1e0; --sym-weich: #d9f0fb; }
.sym.hellblau { background: var(--sym-weich); color: var(--sym-farbe); }
.sym.gruen, a:has(> .sym.gruen) { --sym-farbe: #28a745; --sym-weich: #ddf6e3; }
.sym.gruen { background: var(--sym-weich); color: var(--sym-farbe); }
.sym.tuerkis, a:has(> .sym.tuerkis) { --sym-farbe: #0fa597; --sym-weich: #d5f4f0; }
.sym.tuerkis { background: var(--sym-weich); color: var(--sym-farbe); }
.sym.orange, a:has(> .sym.orange) { --sym-farbe: #f08a00; --sym-weich: #fff0da; }
.sym.orange { background: var(--sym-weich); color: var(--sym-farbe); }
.sym.gelb, a:has(> .sym.gelb) { --sym-farbe: #e0a400; --sym-weich: #fff5d1; }
.sym.gelb { background: var(--sym-weich); color: var(--sym-farbe); }
.sym.rot, a:has(> .sym.rot) { --sym-farbe: #f0342a; --sym-weich: #ffe1de; }
.sym.rot { background: var(--sym-weich); color: var(--sym-farbe); }
.sym.pink, a:has(> .sym.pink) { --sym-farbe: #f0286f; --sym-weich: #ffe0eb; }
.sym.pink { background: var(--sym-weich); color: var(--sym-farbe); }
.sym.lila, a:has(> .sym.lila) { --sym-farbe: #a346d6; --sym-weich: #f3e3fb; }
.sym.lila { background: var(--sym-weich); color: var(--sym-farbe); }
.sym.grau, a:has(> .sym.grau) { --sym-farbe: #7c7c82; --sym-weich: #ececef; }
.sym.grau { background: var(--sym-weich); color: var(--sym-farbe); }
.sym.indigo, a:has(> .sym.indigo) { --sym-farbe: #5856d6; --sym-weich: #e5e4fb; }
.sym.indigo { background: var(--sym-weich); color: var(--sym-farbe); }
@media (prefers-color-scheme: dark) { :root:not([data-modus="hell"]) .sym { background: color-mix(in srgb, var(--sym-farbe) 24%, transparent); } }
:root[data-modus="dunkel"] .sym { background: color-mix(in srgb, var(--sym-farbe) 24%, transparent); }
.seitenleiste a { --sym-farbe: var(--akzent); }
.seitenleiste a:hover { background: rgba(118, 118, 128, .1); }
.seitenleiste a.aktiv, .seitenleiste a.unter.aktiv { background: transparent; color: var(--text); font-weight: 600;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sym-farbe) 38%, transparent); }
.seitenleiste a.aktiv .sym { background: var(--sym-farbe); color: #fff; transform: scale(1.06); }
.seitenleiste a.unter.aktiv { color: var(--akzent); }
.freigabe-zeile .sym { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }
.tableiste .sym { width: 30px; height: 30px; }
.tableiste a.aktiv .sym { background: var(--sym-farbe); color: #fff; }
.seitenleiste a.unter { padding-left: 24px; gap: 8px; }
.seitenleiste a.unter .sym { width: 24px; height: 24px; border-radius: 8px; font-size: 12px; }
.zeile.einger .sym { width: 26px; height: 26px; border-radius: 8px; }
.seitenleiste a.unter.aktiv { color: var(--text); }
.cloud-status { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.cloud-ikon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #ececef; color: #7c7c82; flex: none; }
.cloud-ikon .ikon { width: 30px; height: 30px; }
.cloud-status.verbunden .cloud-ikon { background: #d9f0fb; color: #1ea1e0; }
.cloud-status.getrennt .cloud-ikon { background: #ffe1de; color: #f0342a; }
.version-box { display: flex; align-items: center; gap: 10px; margin: 18px 4px 4px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .45); border: 1px solid var(--linie); }
.version-box b { display: block; font-size: 13px; } .version-box small { color: var(--text-2); font-size: 11.5px; }
:root[data-modus="dunkel"] .version-box { background: rgba(255, 255, 255, .06); }
.versions-fuss { padding: 8px 14px 4px; font-size: 11.5px; color: var(--text-2); border-top: 1px solid var(--linie); margin-top: 4px; }
.austausch-zeile .rest small { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 12px; letter-spacing: .02em; }
.austausch-zeile .rest b { transition: width 1s linear; }
.austausch-zeile .rest.bald small { color: #d97706; } .austausch-zeile .rest.bald b { background: #f59e0b; }
.feld-extra { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Updates & Freigabe: Änderungsliste mit Häkchen */
.aenderungsliste label.zeile { cursor: pointer; margin: 0; color: var(--text); font-size: 14px; font-weight: 400; }
.aenderungsliste label.zeile:hover { background: var(--akzent-soft); }
.aenderungsliste .zeile .chip { flex: none; }
.aenderungsliste .erledigt, .aenderungsliste .gesperrt { opacity: .6; cursor: default; }
.aenderungsliste .erledigt:hover, .aenderungsliste .gesperrt:hover { background: none; }

/* ---------- Support-Menü (oben links) ---------- */
.support-menue > summary { display: flex; align-items: center; }
.support-knopf { width: 30px; height: 30px; }
.support-menue[open] .support-knopf, .support-menue > summary:hover .support-knopf { transform: scale(1.06); }
.support-liste { left: 0; right: auto; min-width: 330px; max-width: calc(100vw - 24px); }
.support-fehler > summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; }
.support-fehler > summary::-webkit-details-marker { display: none; }
.support-fehler > summary:hover { background: var(--akzent-soft); }
.support-fehler > summary b { display: block; font-size: 14px; } .support-fehler > summary small { color: var(--text-2); font-size: 12px; }
.support-form { padding: 4px 10px 10px; display: grid; gap: 8px; }
.support-form .support-ort { margin: 0; font-size: 12px; }
.support-form textarea { resize: vertical; min-height: 84px; }
.support-liste a.fuss { text-align: center; color: var(--akzent); border-top: 1px solid var(--linie); border-radius: 0 0 9px 9px; margin-top: 4px; }
.ki-box { border-left: 3px solid #a346d6; }
.menue-liste.support-liste { background: #fbfbfd !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (prefers-color-scheme: dark) { :root:not([data-modus="hell"]) .menue-liste.support-liste { background: #26262c !important; } }
:root[data-modus="dunkel"] .menue-liste.support-liste { background: #26262c !important; }
.menue-liste .support-form button.btn-primaer { background: var(--akzent); color: #fff; text-align: center; font-weight: 600; }
.menue-liste .support-form button.btn-primaer:hover { background: color-mix(in srgb, var(--akzent) 88%, #000); }

/* ======== Handy-Feinschliff (1.4.2): alle Bereiche fürs Smartphone ======== */
.reiter { max-width: 100%; }
.vs-pc { max-width: 100%; }
@media (max-width: 760px) {
  /* Eingaben: groß genug zum Tippen, 16 px verhindert das Hineinzoomen auf dem iPhone */
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=file]), select, textarea { font-size: 16px; min-height: 44px; }
  input[type=file] { max-width: 100%; font-size: 14px; }
  .btn, button { min-height: 40px; } .btn-klein, .btn.btn-klein { min-height: 34px; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
  input[type=range] { width: 100%; }
  .checks label { min-height: 36px; }
  /* Kopfzeilen, Aktionen und Zeilen dürfen umbrechen */
  .kopfzeile { gap: 10px; }
  .kopfzeile .platz { flex-basis: 100%; height: 0; }
  .aktionen .btn, .aktionen button { flex: 1 1 auto; }
  .zeile { flex-wrap: wrap; row-gap: 6px; }
  .zeile > .platz { min-width: 55%; }
  .zeile > .wert { margin-left: auto; text-align: right; }
  .rolle-zeile select { flex: 1 1 auto; }
  .rolle-zeile .btn { margin-left: auto; }
  /* Tabellen: seitlich wischen statt abschneiden */
  table.liste, .inhalt table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  table.liste td.leise, .inhalt table td { white-space: normal; min-width: 90px; }
  /* Einstellungen (Aussehen): Beschriftung oben, Auswahl darunter */
  .gzeile { flex-direction: column; align-items: stretch; }
  .gzeile > * { max-width: 100%; }
  .segwahl { display: flex; width: 100%; } .segwahl label { flex: 1 1 auto; text-align: center; }
  .farbwahl { gap: 12px; } .farbwahl i { width: 32px; height: 32px; }
  /* Editoren (Seiten, Meine Seite, Aussehen): Vorschau nur als iPhone, PC-Umschalter weg */
  .editor { gap: 16px; }
  .editor-rechts .vs-pc, #vorschau-modus { display: none !important; }
  .editor-rechts, .editor-rechts.pc { justify-content: center; }
  .editor-rechts.pc .vs-phone { display: block; }
  .als select { max-width: 100%; }
  /* Reiter und Segmente seitlich wischbar */
  .segment { max-width: 100%; overflow-x: auto; }
  /* Menüs und Karten nicht über den Rand */
  .menue-liste { max-width: calc(100vw - 20px); }
  .karte.innen { padding: 14px 14px; }
  pre, code { white-space: pre-wrap; word-break: break-word; }
  /* Platz über der Tab-Leiste, damit nichts verdeckt wird */
  .inhalt { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  /* Support-Menü passt auf jede Breite */
  .support-liste { min-width: 0; width: calc(100vw - 24px); }
}
.support-mehr .support-fehler > summary { padding: 12px 18px; border-radius: 0; }
.support-mehr .support-form { padding: 4px 18px 16px; }
.support-mehr .support-fehler > summary small { display: block; font-weight: 400; }
.support-mehr .support-fehler > summary small b { display: inline; font-size: inherit; }
