/* Dashboard – Glasoptik in Schwarz, Weiß, Rot (wie bertramplischke.de). Hoch- und Querformat, iPhone-Randbereiche. */
:root {
  --bg: #07070a;
  --ink: #f4f4f6;
  --ink-2: rgba(244, 244, 246, .72);
  --ink-3: rgba(244, 244, 246, .48);
  --red: #e10000;
  --red-soft: rgba(225, 0, 0, .55);
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .10);
  --glass-border: rgba(255, 255, 255, .14);
  --glass-border-2: rgba(255, 255, 255, .26);
  --shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  --radius: 22px;
  --green: #2fd36b;
  --yellow: #f3c43c;
  --grey: #8a8a93;
  /* Diagrammfarben (geprüfte Kategorienpalette für dunklen Grund) */
  --s-apple: #3987e5;
  --s-google: #d95926;
  --s-paypal: #9085e9;
  --s-manuell: #d55181;
  --s-werbung: #c98500;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; min-width: 0; }
html { overflow-x: hidden; overscroll-behavior-x: none; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-top: var(--sat);
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(225, 0, 0, .5); }

/* Hintergrund mit roten Lichtflächen hinter dem Glas */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 800px at 80% -10%, #1a0a0c 0%, var(--bg) 60%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.b1 { width: 48vmax; height: 48vmax; left: -14vmax; top: -12vmax; background: radial-gradient(circle, rgba(225, 0, 0, .75), rgba(225, 0, 0, 0) 70%); animation: drift 26s ease-in-out infinite alternate; }
.b2 { width: 40vmax; height: 40vmax; right: -16vmax; top: 30vh; background: radial-gradient(circle, rgba(255, 60, 60, .45), rgba(225, 0, 0, 0) 70%); animation: drift 32s ease-in-out infinite alternate-reverse; }
.b3 { width: 36vmax; height: 36vmax; left: 30vw; bottom: -20vmax; background: radial-gradient(circle, rgba(160, 0, 20, .55), rgba(225, 0, 0, 0) 70%); animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, 4vh, 0) scale(1.12); } }

.app { max-width: 1480px; margin: 0 auto; padding: 12px calc(16px + var(--sar)) calc(28px + var(--sab)) calc(16px + var(--sal)); }
.boot { text-align: center; color: var(--ink-3); padding: 40vh 0; }

/* Glas */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 32%); opacity: .7; }

/* Kopfzeile */
.top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; margin-bottom: 14px; position: sticky; top: calc(var(--sat) + 8px); z-index: 20; }
.top .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .3px; }
.top .brand .mark { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff6a6a, var(--red) 55%, #7a0000); box-shadow: 0 0 22px rgba(225, 0, 0, .55), inset 0 0 0 3px rgba(255, 255, 255, .85); position: relative; }
.top .brand .mark::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 2px solid #fff; }
.top .meta { color: var(--ink-3); font-size: 12px; margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .spacer { flex: 1; }
.nav { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, .25); overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav button { border: 0; background: transparent; color: var(--ink-2); padding: 8px 12px; border-radius: 12px; cursor: pointer; white-space: nowrap; font-weight: 600; font-size: 13px; position: relative; }
.nav button.active { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.nav button .badge { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.iconbtn { border: 1px solid var(--glass-border); background: var(--glass); color: var(--ink); width: 38px; height: 38px; border-radius: 12px; cursor: pointer; display: grid; place-items: center; font-size: 17px; }
.iconbtn:active { transform: scale(.96); }
.iconbtn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Ampel */
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--grey); box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); vertical-align: middle; flex: none; }
.dot.green { background: var(--green); box-shadow: 0 0 10px rgba(47, 211, 107, .7), 0 0 0 2px rgba(255, 255, 255, .08); }
.dot.yellow { background: var(--yellow); box-shadow: 0 0 10px rgba(243, 196, 60, .7), 0 0 0 2px rgba(255, 255, 255, .08); }
.dot.red { background: var(--red); box-shadow: 0 0 12px rgba(225, 0, 0, .8), 0 0 0 2px rgba(255, 255, 255, .08); animation: pulse 1.6s ease-in-out infinite; }
.dot.grey { background: var(--grey); }
.dot.lg { width: 14px; height: 14px; }
@keyframes pulse { 50% { box-shadow: 0 0 2px rgba(225, 0, 0, .3), 0 0 0 2px rgba(255, 255, 255, .08); } }
.ampel { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }

/* Kachelraster: Hochformat 1 Spalte, Querformat/Tablet 2–4 */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }
.tile { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.tile:hover { border-color: var(--glass-border-2); }
.tile:active { transform: scale(.985); }
.tile.wide { grid-column: span 2; }
@media (max-width: 660px) { .tile.wide { grid-column: span 1; } }
.tile.static { cursor: default; }
.tile .head { display: flex; align-items: center; gap: 10px; }
.tile .head h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .2px; flex: 1; }
.tile .head .sub { font-size: 12px; color: var(--ink-3); }
.tile .big { font-size: 34px; font-weight: 800; letter-spacing: -.5px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile .big small { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-left: 4px; }
.tile .row { display: flex; gap: 14px; flex-wrap: wrap; }
.tile .kv { display: flex; flex-direction: column; gap: 1px; min-width: 70px; }
.tile .kv b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .kv span { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .4px; }
.delta { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.delta.up { color: var(--green); } .delta.down { color: #ff7b7b; }
.chev { color: var(--ink-3); font-size: 18px; transition: transform .2s; }
.tile.open .chev { transform: rotate(90deg); }
.tile .detail { display: none; border-top: 1px solid var(--glass-border); padding-top: 12px; margin-top: 2px; cursor: default; }
.tile.open .detail { display: block; }
.hint { font-size: 12.5px; color: var(--ink-3); }
.hint.warn { color: var(--yellow); }
.hint.err { color: #ff8a8a; }
.empty { color: var(--ink-3); font-size: 13px; padding: 10px 0; }

/* Listen */
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .06); }
.item .ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); flex: none; object-fit: cover; display: grid; place-items: center; font-weight: 700; }
.item .body { flex: 1; min-width: 0; }
.item .t { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.item .s b { color: var(--ink-2); font-weight: 600; }
.item.clickable { cursor: pointer; }
.item.clickable:hover { border-color: var(--glass-border-2); }
.stars { color: #ffcc4d; letter-spacing: 1px; font-size: 12px; }
.review { padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .06); }
.review.unseen { border-color: rgba(225, 0, 0, .55); }
.review .rh { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.review .rt { font-weight: 600; margin-top: 4px; }
.review .rb { margin-top: 3px; white-space: pre-wrap; font-size: 14px; }
.review .ra { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--ink-2); }
.tag.red { background: rgba(225, 0, 0, .25); color: #ffb3b3; }
.tag.green { background: rgba(47, 211, 107, .2); color: #9af0b8; }
.tag.yellow { background: rgba(243, 196, 60, .2); color: #ffe39a; }

/* Buttons und Formulare */
.btn { border: 1px solid var(--glass-border-2); background: rgba(255, 255, 255, .1); color: #fff; padding: 9px 14px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { background: rgba(255, 255, 255, .16); }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(160deg, #ff3b3b, var(--red)); border-color: rgba(255, 120, 120, .6); box-shadow: 0 6px 20px rgba(225, 0, 0, .35); }
.btn.small { padding: 6px 10px; font-size: 12.5px; border-radius: 10px; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.field label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.field .h { font-size: 11.5px; color: var(--ink-3); }
.inp, .field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(0, 0, 0, .3); color: #fff; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { border-color: rgba(255, 90, 90, .8); box-shadow: 0 0 0 3px rgba(225, 0, 0, .2); }
.field textarea { min-height: 84px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.field input.set::placeholder { color: var(--green); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.msg { padding: 10px 12px; border-radius: 12px; font-size: 13px; margin: 8px 0; background: rgba(255, 255, 255, .08); }
.msg.ok { background: rgba(47, 211, 107, .18); color: #bff5d0; }
.msg.err { background: rgba(225, 0, 0, .25); color: #ffc2c2; }

/* Anmeldung */
.auth { min-height: calc(100vh - var(--sat) - 40px); display: grid; place-items: center; padding: 20px 0; }
.card { width: min(440px, 100%); padding: 26px 22px; }
.card h1 { margin: 0 0 4px; font-size: 22px; }
.card p { color: var(--ink-2); margin: 0 0 16px; font-size: 14px; }
.card .qr { background: #fff; padding: 10px; border-radius: 14px; width: 196px; margin: 10px auto; }
.card .qr img, .card .qr canvas { display: block; width: 176px; height: 176px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; background: rgba(0, 0, 0, .35); padding: 8px 10px; border-radius: 10px; user-select: all; }
.steps { display: flex; gap: 6px; margin-bottom: 14px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.steps span.on { background: var(--red); box-shadow: 0 0 10px rgba(225, 0, 0, .6); }

/* Diagramme */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--ink-3); font-size: 10.5px; font-family: inherit; }
.chart .grid line { stroke: rgba(255, 255, 255, .07); }
.chart .bar { rx: 3px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.chart .bar:hover { opacity: .85; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { opacity: .18; }
.chart .hit { fill: transparent; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.tip { position: fixed; z-index: 50; pointer-events: none; padding: 8px 10px; border-radius: 10px; font-size: 12px; background: rgba(10, 10, 14, .92); border: 1px solid var(--glass-border-2); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); display: none; max-width: 240px; }
.tip b { display: block; margin-bottom: 2px; }
.tip .r { display: flex; justify-content: space-between; gap: 12px; }

/* Abschnitte */
.section { margin-bottom: 16px; padding: 16px; }
.section h2 { margin: 0 0 10px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.section h2 .sub { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.section h3 { margin: 14px 0 8px; font-size: 14px; color: var(--ink-2); }
details.acc { border-top: 1px solid var(--glass-border); padding: 8px 0; }
details.acc summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; font-weight: 600; padding: 6px 0; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary .grow { flex: 1; }
details.acc[open] summary { color: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { text-align: left; padding: 7px 8px; border-bottom: 1px solid rgba(255, 255, 255, .07); vertical-align: top; }
table.tbl th { color: var(--ink-3); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.toast { position: fixed; left: 50%; bottom: calc(22px + var(--sab)); transform: translateX(-50%); z-index: 60; padding: 11px 16px; border-radius: 14px; font-size: 13.5px; background: rgba(20, 20, 26, .92); border: 1px solid var(--glass-border-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px); }
.toast.err { border-color: rgba(255, 90, 90, .7); }
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 40; display: grid; place-items: end center; padding: 0; }
.sheet { width: min(640px, 100%); max-height: calc(100vh - var(--sat) - 20px); overflow: auto; padding: 18px 18px calc(18px + var(--sab)); border-radius: 22px 22px 0 0; }
@media (min-width: 700px) { .sheet-bg { place-items: center; } .sheet { border-radius: 22px; max-height: 88vh; } }
.sheet h2 { margin: 0 0 10px; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.sheet h2 .x { margin-left: auto; }
pre.prompt { white-space: pre-wrap; font-size: 12.5px; background: rgba(0, 0, 0, .35); padding: 10px; border-radius: 12px; max-height: 260px; overflow: auto; }
.months { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.months::-webkit-scrollbar { display: none; }
.months button { flex: none; }
.sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.sum .kv { padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .22); }
.sum .kv b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.sum .kv span { font-size: 11.5px; color: var(--ink-3); }
.upload { border: 1px dashed var(--glass-border-2); border-radius: 14px; padding: 14px; text-align: center; color: var(--ink-2); font-size: 13px; }
.upload input { display: none; }
.sess { font-size: 12.5px; color: var(--ink-2); }
.sess b { color: #fff; }
.net { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.netcard { padding: 12px 14px; border-radius: 16px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .06); }
.netcard .t { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.netcard .m { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.netcard .m div { font-size: 12px; color: var(--ink-3); }
.netcard .m div b { display: block; font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } .dot.red { animation: none; } }
@media (orientation: landscape) and (max-height: 500px) {
  .top { position: static; }
  .app { padding-top: 6px; }
}

/* Schmale Bildschirme: Kopfzeile zweizeilig (Marke oben, Menü darunter) */
@media (max-width: 700px) {
  .top { flex-wrap: wrap; row-gap: 8px; padding: 10px 12px; }
  .top .meta { display: none; }
  .top .nav { order: 5; width: 100%; flex: none; }
  .top .brand span:last-child { display: none; }
  .tile .big { font-size: 30px; }
}

/* Wetterstreifen in der Kachel Zuhause */
.wx-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; padding-bottom: 2px; }
.wx-strip::-webkit-scrollbar { display: none; }
.wx-day { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .06); font-size: 12px; }
.wx-day .wd { color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.wx-day .wi { font-size: 22px; line-height: 1.1; }
.wx-day .wt { font-variant-numeric: tabular-nums; } .wx-day .wt b { font-size: 14px; }
.wx-day .wr { font-size: 11px; color: var(--ink-3); }
.home-sec + .home-sec { border-top: 1px solid var(--glass-border); margin-top: 10px; }

/* Gruppen in der Übersicht und Kalender-Auswahl */
.grp { margin: 4px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); }
.grid + .grp { margin-top: 22px; }
.calpick { margin: 8px 0 10px; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .06); }
.calrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; }
.calrow + .calrow { border-top: 1px solid var(--glass-border); }
.calrow input { width: 18px; height: 18px; accent-color: var(--red, #e0312e); }
.calrow .swatch { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.calrow .grow { flex: 1; }

/* Bereiche: Farbwelt je Bereich */
.a-business { --acc: #e10000; --acc2: #ff7a7a; --acc-soft: rgba(225, 0, 0, .35); }
.a-privat { --acc: #7c5cff; --acc2: #b8a6ff; --acc-soft: rgba(124, 92, 255, .38); }
.a-home1 { --acc: #ff8a00; --acc2: #ffc46b; --acc-soft: rgba(255, 138, 0, .36); }
.a-home2 { --acc: #19a974; --acc2: #7ee2b8; --acc-soft: rgba(25, 169, 116, .36); }
.bg { transition: filter .7s ease; }
body[data-area="privat"] .bg { filter: hue-rotate(265deg); }
body[data-area="zuhause1"] .bg { filter: hue-rotate(32deg) saturate(.9); }
body[data-area="zuhause2"] .bg { filter: hue-rotate(150deg) saturate(.8); }

/* Übersicht: vier große Bereichs-Kacheln */
.hubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
@media (min-width: 700px) { .hubs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1240px) { .hubs { grid-template-columns: 1fr 1fr 1fr 1fr; } .hubs .tile.w2 { grid-column: span 2; } }
.hub { min-height: 200px; justify-content: flex-start; animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.hub:nth-child(2) { animation-delay: .05s; } .hub:nth-child(3) { animation-delay: .1s; } .hub:nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
.hub::after { content: ""; position: absolute; right: -18%; top: -45%; width: 65%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--acc-soft), transparent 68%); filter: blur(14px); pointer-events: none; }
.hub .head { position: relative; z-index: 1; }
.hub .head h2 { font-size: 19px; }
.hub .big { position: relative; z-index: 1; font-size: 30px; }
.hub .big small { display: block; margin: 2px 0 0; font-size: 13px; }
.hub .big .ev { display: block; font-size: 21px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub .row, .hub .hint, .hub .wx-strip { position: relative; z-index: 1; }
.hub .go { margin-top: auto; align-self: flex-end; font-size: 12px; color: var(--ink-3); position: relative; z-index: 1; }
.hub:hover { border-color: var(--acc); box-shadow: 0 10px 40px rgba(0, 0, 0, .35), 0 0 0 1px var(--acc-soft); }
.ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: 0 6px 18px var(--acc-soft), inset 0 1px 0 rgba(255, 255, 255, .35); }
.ico svg { width: 21px; height: 21px; }
.wx-strip.mini .wx-day { flex: 1 0 56px; padding: 6px 2px; }
.wx-strip.mini .wx-day .wi { font-size: 18px; }

/* Bereichsseite: Kopf, Rückweg, Leuchten, Wischen */
.page { position: relative; z-index: 0; }
.page .glow { position: fixed; z-index: -1; top: -18vh; right: -12vw; width: 64vw; height: 64vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, var(--acc-soft), transparent 65%); filter: blur(40px); pointer-events: none; opacity: .8; }
.page.area .tile { border-color: rgba(255, 255, 255, .12); box-shadow: var(--shadow), inset 0 1px 0 var(--acc-soft); }
.page.area .tile .head h2 { color: #fff; }
.pagehead { display: flex; align-items: center; gap: 12px; margin: 2px 0 16px; }
.pagehead .back { border: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; flex: none; }
.pagehead .back:hover { background: rgba(255, 255, 255, .18); }
.pagehead h1 { margin: 0; font-size: 22px; line-height: 1.1; }
.pagehead .sub { font-size: 12.5px; color: var(--ink-3); }
.pagehead .daylab, .daylab { margin: 10px 0 4px; font-weight: 600; color: var(--ink-2); }
.page.slide-in { animation: slideIn .34s cubic-bezier(.2, .7, .2, 1) both; }
.page.slide-out { animation: slideOut .34s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes slideIn { from { opacity: 0; transform: translate3d(70px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes slideOut { from { opacity: 0; transform: translate3d(-70px, 0, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page, .hub { animation: none !important; } }

/* Kachelgrößen (Anordnen) */
.tile.w1 { grid-column: span 1; }
.tile.w2 { grid-column: span 2; }
.tile.w3 { grid-column: 1 / -1; }
@media (max-width: 660px) { .tile.w2 { grid-column: span 1; } }
.iconbtn.on { background: rgba(225, 0, 0, .35); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.page.editing .tile { cursor: grab; outline: 1px dashed rgba(255, 255, 255, .35); outline-offset: -1px; animation: wobble 1.6s ease-in-out infinite; }
.page.editing .tile:nth-child(odd) { animation-delay: -.8s; }
.page.editing .tile.dragging { opacity: .45; }
.page.editing .tile .detail { display: none !important; }
@keyframes wobble { 0%, 100% { transform: rotate(-.25deg); } 50% { transform: rotate(.25deg); } }
.edtb { display: flex; gap: 6px; align-items: center; margin: -4px 0 2px; position: relative; z-index: 2; }
.edtb .grow { flex: 1; }
.edtb button { width: 34px; height: 30px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .35); color: #fff; font-size: 15px; cursor: pointer; }
.edtb button:hover { background: rgba(255, 255, 255, .18); }
