/* =========================================================
   die roms. – helles, modernes Design
   ========================================================= */
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka.woff") format("woff"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff") format("woff"); font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --surface-2: #F4EFE7;
  --line: #ECE5DA;
  --ink: #221E1A;
  --text: #221E1A;
  --muted: #7A7268;
  --accent: #F2613F;          /* Koralle */
  --accent-ink: #FFFFFF;
  --accent-soft: #FDE8E1;
  --essen: #F2613F;
  --essen-soft: #FDE8E1;
  --aufgaben: #2F8F83;        /* Petrol */
  --aufgaben-soft: #DDF0EC;
  --green: #2E9E6A;
  --red: #D6453A;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(34,30,26,.04), 0 10px 30px -14px rgba(34,30,26,.20);
  --shadow-lg: 0 2px 4px rgba(34,30,26,.04), 0 18px 40px -18px rgba(34,30,26,.28);
  --display: "Fredoka", ui-rounded, -apple-system, system-ui, sans-serif;
  --body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Gegen „verrutschte“ Ansicht auf dem iPhone: nichts darf seitlich überstehen, Eingabefelder nie unter 16px (sonst zoomt iOS hinein) */
html, body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: max(16px, 1em); }
input, select, textarea { max-width: 100%; min-width: 0; }
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 2rem; line-height: 1.15; margin: .2em 0 .15em; }
h2 { font-size: 1.2rem; margin: 0 0 .7em; }
p { margin: .4em 0; }
:focus-visible { outline: 3px solid rgba(242,97,63,.45); outline-offset: 2px; border-radius: 8px; }

.wrap { max-width: 560px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); }
.back { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 10px; color: var(--muted); font-weight: 700; font-size: .95rem; }
.back:hover { color: var(--ink); text-decoration: none; }
.home-btn { position: sticky; top: calc(8px + env(safe-area-inset-top)); z-index: 50; display: inline-flex; align-items: center; gap: 7px; margin: 4px 0 12px; padding: 8px 15px 8px 12px;
  border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); box-shadow: 0 2px 12px rgba(60, 40, 20, .10); color: var(--ink); font-weight: 800; font-size: .95rem; }
.home-btn:hover { text-decoration: none; transform: translateY(-1px); }
.home-btn:active { transform: scale(.97); }
.home-btn svg { flex: none; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.stack-s > * + * { margin-top: 6px; }
.grow { flex: 1; min-width: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.big { font-size: 1.05rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Karten & Formulare ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 14px 0; box-shadow: var(--shadow); }
.form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 700; color: #4A433C; }
input[type=text], input[type=url], input[type=email], input[type=tel], input[type=number], input[type=password], select {
  width: 100%; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
  background: var(--surface-2); border: 2px solid transparent; border-radius: 14px; padding: 13px 15px; outline: none;
  transition: border-color .15s, background .15s;
}
input::placeholder { color: #ADA398; font-weight: 500; }
input:focus, select:focus { border-color: var(--accent); background: #fff; }
input[type=file] { color: var(--muted); font-size: .9rem; max-width: 100%; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--ink); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 18px; cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; border-color: #D9D0C3; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 8px 18px -8px rgba(242,97,63,.7); }
.btn-primary:hover { background: #E4532F; border-color: #E4532F; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-s { padding: 8px 12px; font-size: .88rem; border-radius: 11px; }
.btn-danger { color: var(--red); border-color: #F3D3CF; }
.btn-danger:hover { background: #FDF0EE; border-color: #EBB9B2; }
.btn-soft { background: var(--accent-soft); color: #B4401F; border-color: transparent; }

.flash { border-radius: 14px; padding: 12px 15px; margin: 10px 0; font-size: .95rem; font-weight: 600; }
.flash-ok  { background: #E3F4EA; color: #1D5E3D; }
.flash-err { background: #FCE6E3; color: #8E2A21; }

/* ---------- Kopfleiste ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 8px; }
.topbar .wordmark img { height: 30px; width: auto; display: block; }
.topbar .me { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; }
.topbar .me:hover { text-decoration: none; }

/* ---------- Start (nicht angemeldet) ---------- */
.intro { min-height: calc(100svh - 110px); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.intro-logo { display: block; width: min(300px, 76vw); margin: 0 auto 4px; }
.intro-logo img { width: 100%; height: auto; display: block; }
.intro-sub { text-align: center; color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.intro .card { margin: 10px 0 4px; }
.intro .links { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); font-weight: 800; }
.pill:hover { text-decoration: none; border-color: #D9D0C3; }

/* Kopf auf Unterseiten wie Registrieren/Passwort */
.hero { text-align: center; padding: 26px 0 6px; }
.hero .logo-link { display: inline-block; width: min(200px, 56vw); }
.hero .logo-link img { width: 100%; height: auto; display: block; }
.page-title { font-family: var(--display); font-weight: 600; font-size: 1.9rem; margin: 18px 0 2px; }

/* ---------- Startseite (angemeldet) ---------- */
.greet { margin: 22px 0 18px; }
.greet .hello { font-family: var(--display); font-weight: 600; font-size: 2.1rem; line-height: 1.1; margin: 0; }
.greet .date { color: var(--muted); font-weight: 700; margin: 4px 0 0; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 184px;
  padding: 18px 16px 16px; border-radius: 26px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.choice:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.choice:active { transform: scale(.98); }
.choice::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--c-soft); z-index: 0; }
.choice > * { position: relative; z-index: 1; }
.choice.essen { --c: var(--essen); --c-soft: var(--essen-soft); }
.choice.aufgaben { --c: var(--aufgaben); --c-soft: var(--aufgaben-soft); }
.choice-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--c-soft); margin-bottom: 8px; }
.choice-title { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.1; }
.choice-sub { font-size: .84rem; color: var(--muted); font-weight: 600; line-height: 1.35; }
.choice-status { margin-top: auto; padding-top: 10px; font-size: .85rem; font-weight: 800; line-height: 1.3; color: var(--c); display: flex; align-items: flex-start; gap: 7px; }
.choice-status::before { content: ""; width: 7px; height: 7px; margin-top: .42em; border-radius: 50%; background: currentColor; flex: none; }

.admin-bar {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 14px; padding: 14px 16px;
  border-radius: 20px; background: var(--ink); color: #fff; box-shadow: var(--shadow);
}
.admin-bar:hover { text-decoration: none; background: #34302B; }
.admin-bar-icon { width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 1.2rem; }
.admin-bar-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.admin-bar-text strong { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.admin-bar-text span { font-size: .82rem; color: #CFC7BC; font-weight: 600; }
.arrow { font-size: 1.2rem; opacity: .7; }

.home-foot { display: flex; justify-content: center; margin-top: 18px; }

/* ---------- Profilbilder ---------- */
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-l { width: 88px; height: 88px; font-size: 2rem; }
.avatar-empty { display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: #B4401F; font-weight: 800; font-family: var(--display); }
.photo-row { display: flex; align-items: center; gap: 16px; }
.photo-pick { display: flex; align-items: center; gap: 16px; }
.photo-circle { width: 84px; height: 84px; border-radius: 50%; flex: none; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 2px dashed #D9D0C3; font-size: 1.7rem; }
.photo-circle:hover { border-color: var(--accent); }
.photo-circle img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick .stack-s { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
label.btn { color: var(--ink); font-size: .9rem; flex-direction: row; }

/* ---------- Listen (Admin) ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: 0; }
.list-item.is-dim, .is-dim > details > summary { opacity: .5; }
.tag { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--accent-soft); color: #B4401F; border-radius: 7px; padding: 2px 7px; margin-left: 4px; vertical-align: 2px; }
.tag-err { background: #FCE6E3; color: var(--red); }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; background: #fff; border: 1px solid var(--line); border-radius: 16px; min-width: 220px; padding: 6px; box-shadow: var(--shadow-lg); }
.menu-btn { width: 100%; text-align: left; font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.menu-btn:hover { background: var(--surface-2); }
.menu-btn.danger { color: var(--red); }
.menu-link { border-top: 1px solid var(--line); margin-top: 6px; padding: 8px 6px 4px; }

/* Benutzer verwalten */
.list.users > li { border-top: 1px solid var(--line); }
.list.users > li:first-child { border-top: 0; }
details.user > summary { list-style: none; cursor: pointer; border-top: 0; }
details.user > summary::-webkit-details-marker { display: none; }
details.user .u-name, details.user .grow > span { display: block; }
.chev { font-size: 1.5rem; color: var(--muted); transition: transform .2s; line-height: 1; }
details.user[open] .chev { transform: rotate(90deg); }
.user-body { display: flex; flex-direction: column; gap: 14px; padding: 6px 14px 16px; margin: 0 -8px 10px; background: var(--surface-2); border-radius: 18px; }
.user-body input[type=text], .user-body input[type=email], .user-body select { background: #fff; }
.pw-row { flex-direction: row; align-items: flex-end; }
.pw-row label { flex: 1; }
.user-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.newuser { margin: 0 0 12px; }
.newuser > summary { list-style: none; display: inline-flex; }
.newuser > summary::-webkit-details-marker { display: none; }
.newuser[open] > summary { margin-bottom: 12px; }
.h-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Online */
.dot-live { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-right: 4px; animation: live 1.8s infinite; vertical-align: 1px; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(46,158,106,.55); } 70% { box-shadow: 0 0 0 8px rgba(46,158,106,0); } 100% { box-shadow: 0 0 0 0 rgba(46,158,106,0); } }
.online-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 22px; }
.online-list li { display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.av-wrap { position: relative; display: inline-flex; }
.on-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.online-txt { color: var(--green); font-weight: 800; }

/* Backup */
.backup-btns form, .backup-btns .btn { width: 100%; }
h3.sub { font-family: var(--body); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 20px 0 4px; color: var(--muted); }

.prose h2 { margin-top: 1.3em; font-size: 1.1rem; }
.prose p { color: #4A433C; }

.foot { text-align: center; color: var(--muted); font-size: .85rem; font-weight: 600; margin-top: 34px; }
.foot a { color: var(--muted); font-weight: 700; }

@media (max-width: 370px) {
  .choose { grid-template-columns: 1fr; }
  .choice { min-height: 0; }
  .row2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* =========================================================
   Landingpage
   ========================================================= */
body.landing { overflow-x: hidden; }
.landing { position: relative; min-height: calc(100svh - 90px); display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 10px 0; }
.landing-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.landing-bg span { position: absolute; border-radius: 50%; filter: blur(2px); }
.landing-bg span:nth-child(1) { width: 340px; height: 340px; right: -120px; top: -110px; background: var(--accent-soft); }
.landing-bg span:nth-child(2) { width: 260px; height: 260px; left: -120px; bottom: 60px; background: var(--aufgaben-soft); }
.landing-bg span:nth-child(3) { width: 90px; height: 90px; right: 12%; bottom: 18%; background: #FCEFD6; }

.landing-head { text-align: center; }
.landing-logo { display: block; width: min(320px, 80vw); height: auto; margin: 0 auto;
  animation: pop .6s cubic-bezier(.2,.9,.3,1.3) both; }
.landing-sub { margin: 18px 0 0; font-family: var(--display); font-weight: 500; font-size: 1.25rem; color: var(--ink); line-height: 1.35; }
.landing-sub span { font-family: var(--body); font-size: .95rem; font-weight: 700; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(10px); } to { opacity: 1; transform: none; } }

.landing-actions { display: flex; flex-direction: column; gap: 12px; }
.action {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease; animation: rise .45s ease both;
}
.action:nth-child(2) { animation-delay: .06s; } .action:nth-child(3) { animation-delay: .12s; } .action:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.action:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.action:active { transform: scale(.98); }
.action-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 1.35rem; background: var(--surface-2); flex: none; }
.action-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.action-text strong { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.action-text span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.action .arrow { color: var(--muted); }
.action-main { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 14px 28px -14px rgba(242,97,63,.8); }
.action-main .action-icon { background: rgba(255,255,255,.2); }
.action-main .action-text span, .action-main .arrow { color: rgba(255,255,255,.85); }
.action-admin { background: var(--ink); border-color: var(--ink); color: #fff; margin-top: 6px; }
.action-admin .action-icon { background: rgba(255,255,255,.12); }
.action-admin .action-text span, .action-admin .arrow { color: #CFC7BC; }
.page-title + .muted { margin-top: 2px; }

/* Adminbereich: aufklappbare Bereiche */
.panels-title { font-family: var(--body); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 8px; }
details.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 10px; overflow: hidden; }
details.panel > summary { list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
.panel-btn { display: flex; align-items: center; gap: 14px; padding: 15px 16px; cursor: pointer; }
.panel-btn:hover { background: #FDFBF8; }
.panel-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: var(--surface-2); flex: none; }
.panel-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.panel-text strong { font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
.panel-text span { font-size: .84rem; font-weight: 600; color: var(--muted); }
details.panel[open] > summary .chev { transform: rotate(90deg); }
details.panel[open] > summary { border-bottom: 1px solid var(--line); }
.panel-body { padding: 4px 18px 18px; }
.panel-body > h3.sub:first-child { margin-top: 14px; }
.choice-crown { font-size: .78rem; font-weight: 800; color: #9A6B00; background: #FFF3CF; border-radius: 10px; padding: 4px 8px; margin-top: 6px; align-self: flex-start; line-height: 1.3; }

/* ---------- Startseite: Demnächst & Pinnwand ---------- */
.home-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 6px 16px 10px; margin-top: 14px; }
.home-card-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 6px; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.home-card-head:hover { text-decoration: none; }
.home-card-head .arrow { color: var(--muted); font-size: 1.1rem; }
.home-empty { margin: 2px 0 10px; }
.soon { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); }
.soon:hover { text-decoration: none; }
.soon-day { width: 54px; flex: none; text-align: center; background: var(--surface-2); border-radius: 12px; padding: 5px 0; line-height: 1.15; }
.soon-day b { display: block; font-size: .8rem; }
.soon-day small { font-size: .72rem; color: var(--muted); font-weight: 700; }
.soon-day.today { background: var(--accent); color: #fff; }
.soon-day.today small { color: rgba(255,255,255,.85); }
.soon strong, .mini-post strong { font-weight: 800; }
.soon small { display: block; font-size: .8rem; }
.mini-post { display: flex; gap: 11px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.mini-post:hover { text-decoration: none; }
.mini-text { display: block; font-size: .88rem; color: #4A433C; line-height: 1.35; margin-top: 1px; }
.mini-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }

/* ---------- Pinnwand ---------- */
textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface-2); border: 2px solid transparent; border-radius: 14px; padding: 12px 14px; resize: vertical; outline: none; }
textarea:focus { border-color: var(--accent); background: #fff; }
.compose-row { display: flex; gap: 12px; align-items: flex-start; }
.compose-actions { display: flex; justify-content: space-between; align-items: center; }
.post-prev { max-width: 100%; max-height: 260px; border-radius: 14px; object-fit: cover; }
.post { padding: 16px; }
.post.pinned { border-color: #F6C9B9; background: #FFFBF8; }
.post-head { display: flex; gap: 11px; align-items: center; }
.post-text { margin: 12px 0 4px; font-size: 1.02rem; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.post-photo { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 16px; margin-top: 10px; }
.like-form { margin-top: 8px; }
.like { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-weight: 800; cursor: pointer; filter: grayscale(1); opacity: .75; }
.like.on { filter: none; opacity: 1; border-color: #F6C9B9; background: #FFF1EC; }

/* ---------- Kalender ---------- */
.newevent > summary { list-style: none; display: inline-flex; }
.newevent > summary::-webkit-details-marker { display: none; }
.newevent[open] > summary { margin-bottom: 14px; }
.newevent:not([open]) { background: transparent; border: 0; box-shadow: none; padding: 0; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg2 label { flex-direction: row; }
.seg2 input { position: absolute; opacity: 0; pointer-events: none; }
.seg2 span { flex: 1; text-align: center; padding: 11px 8px; border-radius: 12px; background: var(--surface-2); font-weight: 800; color: var(--ink); cursor: pointer; border: 2px solid transparent; }
.seg2 input:checked + span { background: var(--accent-soft); border-color: var(--accent); }
.row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
input[type=date], input[type=time] { width: 100%; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: var(--surface-2); border: 2px solid transparent; border-radius: 14px; padding: 11px 12px; min-height: 48px; }
.lbl { font-size: .9rem; font-weight: 700; color: #4A433C; margin-bottom: 6px; }
.who-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.who-chip { flex-direction: row; }
.who-chip input { position: absolute; opacity: 0; pointer-events: none; }
.who-chip span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface-2); border: 2px solid transparent; color: var(--ink); font-weight: 800; cursor: pointer; }
.who-chip span .avatar { width: 26px; height: 26px; font-size: .75rem; }
.who-chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); }
.who-filter { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; margin: 8px 0; }
.who-filter .pill { padding: 7px 14px; white-space: nowrap; font-size: .9rem; }
.who-filter .pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.day-title { font-family: var(--body); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 6px; }
.day-group.today .day-title { color: var(--accent); }
.event { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin: 8px 0; }
.event.bday { background: #FFF8EC; border-color: #F5E2BF; }
.ev-time { width: 58px; flex: none; font-weight: 800; font-size: .95rem; text-align: center; line-height: 1.2; }
.ev-time small { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; }
.subscribe { margin-top: 26px; }
@media (max-width: 380px) { .row3 { grid-template-columns: 1fr 1fr; } .row3 label:first-child { grid-column: 1 / -1; } }

/* ---------- Mitteilungen ---------- */
.push-box { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.push-state { margin: 0; font-weight: 700; }
.prefs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prefs th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 800; padding: 4px 6px; text-align: center; }
.prefs td { padding: 9px 6px; border-top: 1px solid var(--line, #EDE6DC); }
.prefs td:nth-child(n+2) { text-align: center; width: 64px; }
.prefs input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent, #F2613F); }
.cron-url { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; word-break: break-all; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; user-select: all; }
.photo-row form { min-width: 0; flex: 1; }
.photo-row input[type=file] { max-width: 100%; width: 100%; }

/* ---------- eingebundene Kalender ---------- */
.event.ext { border-left: 4px solid var(--aufgaben); }
.ext-tag { display: inline-block; margin-top: 4px; font-size: .74rem; font-weight: 800; color: var(--aufgaben); background: var(--aufgaben-soft); border-radius: 999px; padding: 2px 9px; }
.how summary { cursor: pointer; font-weight: 700; }
.how ol { padding-left: 18px; margin: 8px 0; }
.how p { margin: 6px 0 0; }

/* ---------- Termine aus Foto ---------- */
.foto-box { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.foto-box p { margin: 0; flex: 1 1 200px; }
.foto-btn { cursor: pointer; }
.foto-btn.disabled { opacity: .5; pointer-events: none; }
.foto-wait { display: grid; gap: 6px; justify-items: center; padding: 26px 16px; }
.foto-wait p { margin: 0; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.foto-review h2 { margin: 0; }
.foto-review > p { margin: 0 0 4px; }
.foto-ev { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0 4px; display: grid; gap: 8px; min-width: 0; }
.foto-ev.off > :not(.foto-on) { opacity: .35; }
.foto-on { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.foto-on input { width: 22px; height: 22px; accent-color: var(--accent); }
.foto-ev .who-chips { margin: 0; }
@media (max-width: 380px) { .foto-ev .row3 > input:first-child { grid-column: 1 / -1; } }
.foto-ev { grid-template-columns: minmax(0, 1fr); }
.foto-ev input[type=text] { width: 100%; }
.foto-ev .row3 > input { min-width: 0; }
.foto-on { flex-direction: row; justify-content: flex-start; }
.foto-ev .row3 { grid-template-columns: 1fr 1fr; }
.foto-ev .row3 > input:first-child { grid-column: 1 / -1; }

/* ---------- Startseite: Hinweise & Mehr ---------- */
.home-hints { display: grid; gap: 8px; margin-top: 14px; }
.hint { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 11px 14px; color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.hint:hover { text-decoration: none; }
.hint .hi { font-size: 1.3rem; }
.hint .grow { min-width: 0; }
.hint.bin { background: #FFF6D6; border-color: #F1DF9C; }
.hint.poll { background: var(--aufgaben-soft); border-color: #BFE3DC; }
.hint.over { background: #FCE6E3; border-color: #F3C9C3; }
.hint .arrow { color: var(--muted); }
.more { margin-top: 18px; }
.more-title { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 0 0 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.tile { display: grid; justify-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 6px 12px; color: var(--ink); text-align: center; box-shadow: var(--shadow); transition: transform .15s; }
.tile:hover { text-decoration: none; transform: translateY(-2px); }
.tile span { font-size: 1.7rem; line-height: 1; }
.tile b { font-size: .82rem; font-weight: 800; }

/* ---------- Wunschzettel ---------- */
.hint-box { background: var(--aufgaben-soft); border-radius: 14px; padding: 10px 14px; margin: 0 0 12px; }
.wish-list { display: grid; gap: 10px; margin-bottom: 14px; }
.wish { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.wish .grow { min-width: 0; }
.wish strong { font-weight: 800; }
.wish.taken { opacity: .7; }
/* Update 150: Passwort-Link für Gäste */
.pwlink-box { display: grid; gap: 6px; background: var(--accent-soft); border-radius: 14px; padding: 10px 12px; margin: 8px 0; }
.pwlink-box input { width: 100%; font-size: .85rem; }
.wish-link { display: inline-block; margin-top: 4px; font-weight: 700; }
/* Update 149: Link-Vorschau */
.wish-prev { display: flex; margin-top: 8px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; overflow: hidden; background: var(--surface-2); color: var(--ink); text-decoration: none; max-width: 520px; }
.wish-prev:hover { text-decoration: none; filter: brightness(.98); }
.wish-prev img { width: 92px; min-height: 92px; object-fit: cover; flex: none; background: #fff; }
.wish-prev-txt { display: grid; gap: 2px; padding: 8px 10px; min-width: 0; }
.wish-prev-txt small { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wish-prev-txt b { font-size: .9rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wish-prev-txt em { font-style: normal; color: var(--muted); font-size: .8rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wish-prev-txt i { font-style: normal; font-size: .8rem; font-weight: 800; }
.wish-prev.loading b { color: var(--muted); font-weight: 600; }
@media (min-width: 560px) { .wish-prev img { width: 120px; } }
.res-note { margin-top: 6px; font-weight: 800; color: var(--aufgaben); }
.wish-actions { display: flex; gap: 6px; align-items: center; flex: none; }

/* ---------- Umfragen ---------- */
.poll { margin-bottom: 12px; }
.poll.closed { opacity: .85; }
.poll-head { display: flex; gap: 10px; align-items: flex-start; }
.poll-head h2 { margin: 0 0 2px; font-size: 1.15rem; }
.poll-form { display: grid; gap: 8px; margin-top: 12px; justify-items: start; }
.poll-opt { position: relative; display: flex; flex-direction: row; align-items: center; gap: 10px; width: 100%; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; overflow: hidden; cursor: pointer; font-size: 1rem; color: var(--ink); }
.poll-opt input { width: 20px; height: 20px; accent-color: var(--accent); position: relative; z-index: 1; flex: none; }
.poll-opt .bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); z-index: 0; transition: width .4s; }
.poll-opt.mine .bar { background: #FBD3C6; }
.poll-opt.win { outline: 2px solid var(--accent); }
.poll-opt .txt { position: relative; z-index: 1; flex: 1; min-width: 0; }
.poll-opt .who { position: relative; z-index: 1; display: flex; }
.poll-opt .who .avatar { margin-left: -6px; border: 2px solid var(--surface-2); }
.poll-opt .n { position: relative; z-index: 1; font-weight: 800; min-width: 1.2em; text-align: right; }
.av-xs { width: 22px; height: 22px; font-size: .65rem; }
.opts { display: grid; gap: 8px; }

/* ---------- Abzeichen ---------- */
.badge-card { margin-bottom: 14px; }
.badge-head { display: flex; justify-content: space-between; align-items: baseline; }
.badge-head h2 { margin: 0; }
.badge-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.badge-stats div { background: var(--surface-2); border-radius: 14px; padding: 10px 6px; text-align: center; }
.badge-stats b { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.badge-stats span { font-size: .72rem; color: var(--muted); font-weight: 700; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.badge { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 10px 6px; border-radius: 16px; background: var(--surface-2); opacity: .5; filter: grayscale(1); }
.badge.on { opacity: 1; filter: none; background: #FFF4D6; box-shadow: inset 0 0 0 1.5px #F1DF9C; }
.badge .b-icon { font-size: 1.9rem; line-height: 1.1; }
.badge strong { font-size: .82rem; font-weight: 800; }
.badge small { font-size: .7rem; color: var(--muted); line-height: 1.25; }

/* ---------- Infos ---------- */
.info-jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.info-jump .pill { padding: 8px 14px; font-size: .88rem; }
.info-cat { margin-bottom: 12px; }
.info-cat h2 { margin: 0 0 4px; }
.info-item .grow { min-width: 0; }
.info-val { display: inline-block; margin-top: 3px; font-weight: 800; font-size: 1.05rem; word-break: break-word; }
.copy { cursor: pointer; border-bottom: 1.5px dashed var(--line); }
.pre { white-space: pre-line; }
.wifi { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.wifi .grow { min-width: 0; flex: 1 1 200px; }
.wifi h2 { margin: 0 0 8px; }
.kv { display: flex; gap: 10px; align-items: baseline; margin: 4px 0; }
.kv span { color: var(--muted); font-size: .85rem; width: 70px; flex: none; }
.kv b { word-break: break-all; }
.qr { width: 150px; height: 150px; background: #fff; border-radius: 12px; padding: 4px; flex: none; }
.qr svg { width: 100%; height: 100%; display: block; }
textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface-2); border: 2px solid transparent; border-radius: 14px; padding: 11px 12px; resize: vertical; }
textarea:focus { border-color: var(--accent); background: #fff; outline: none; }

/* ---------- Fristen ---------- */
.frist-list { display: grid; gap: 10px; margin-top: 12px; }
.frist { display: flex; gap: 12px; align-items: center; margin: 0; }
.frist .grow { min-width: 0; }
.frist-date { width: 58px; flex: none; text-align: center; background: var(--surface-2); border-radius: 12px; padding: 6px 0; line-height: 1.15; }
.frist-date b { display: block; font-size: 1rem; }
.frist-date small { font-size: .72rem; color: var(--muted); font-weight: 700; }
.frist .due { font-weight: 800; }
.frist.soon .frist-date { background: #FFF1CC; }
.frist.soon .due { color: #9A6700; }
.frist.over .frist-date { background: #FCE6E3; }
.frist.over .due { color: var(--red); }
.idea-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.idea-chips .pill { padding: 8px 14px; font-size: .85rem; cursor: pointer; font: inherit; font-weight: 700; }

/* ---------- Rückblick ---------- */
.year-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.year-stats .card { margin: 0; text-align: center; padding: 14px 8px; }
.year-stats b { display: block; font-family: var(--display); font-size: 1.8rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.year-stats span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.year-tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.year-tops .card { margin: 0; }
.year-tops h2 { margin: 0 0 8px; }
.tops { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.tops li span { display: inline-block; max-width: calc(100% - 60px); }
.tops li b { float: right; font-variant-numeric: tabular-nums; }
.month { margin: 18px 0; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
.ph { padding: 0; border: 0; background: var(--surface-2); border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,17,14,.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 12px; }
.lightbox figcaption { color: #fff; font-weight: 600; text-align: center; font-size: .92rem; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }
.lb-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.lb-nav.prev { left: 10px; top: 50%; }
.lb-nav.next { right: 10px; top: 50%; }

/* ---------- Müll ---------- */
.bin-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.bin-list .soon .bin-ico { background: #FFF1CC; }
.bin-list .grow { min-width: 0; }
.shift-body { min-width: 250px; padding: 10px; }
.shift-body .form { gap: 8px; }
.bin-pick span { width: auto; height: auto; padding: 8px 10px; display: grid; justify-items: center; gap: 2px; min-width: 76px; }
.bin-pick small { font-size: .7rem; font-weight: 700; color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: underline; }
.ext-tag.bin { background: #FFF1CC; color: #7A5A00; }

/* ---------- Küchen-Display ---------- */
body.display { background: var(--bg); }
.dsp { max-width: 1400px; margin: 0 auto; padding: 18px clamp(16px, 3vw, 36px) 24px; display: grid; gap: 16px; }
.dsp-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dsp-clock b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(3.4rem, 9vw, 6.5rem); line-height: .95; font-variant-numeric: tabular-nums; }
.dsp-clock span { font-size: clamp(1rem, 2.2vw, 1.5rem); font-weight: 700; color: var(--muted); }
.dsp-weather { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 12px 18px; box-shadow: var(--shadow); }
.dsp-weather .wi { font-size: 3rem; }
.dsp-weather > div b { display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 600; line-height: 1; }
.dsp-weather > div span { font-size: .9rem; color: var(--muted); font-weight: 700; }
.wdays { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line); }
.wdays li { display: grid; justify-items: center; font-size: .85rem; font-weight: 700; }
.wdays i { font-style: normal; font-size: 1.5rem; }
.wdays small { color: var(--muted); font-size: .75rem; }
.dsp-alerts { display: grid; gap: 8px; }
.dsp-alerts .alert { background: #FFF1CC; border: 1px solid #F1DF9C; border-radius: 18px; padding: 14px 18px; font-size: clamp(1.1rem, 2.4vw, 1.5rem); }
.dsp-alerts .alert.bday { background: var(--accent-soft); border-color: #F7C6B7; }
.dsp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
/* Aufgaben als eigene Spalte ganz rechts – so schieben lange Listen nichts mehr nach unten */
.dsp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 26%); gap: 16px; align-items: start; }
.dsp-side { display: grid; gap: 16px; position: sticky; top: 12px; }
@media (max-width: 760px) { .dsp-layout { grid-template-columns: 1fr; } .dsp-side { position: static; } }
/* Countdown zwischen Uhr und Wetter */
.dsp-top { flex-wrap: nowrap; }
.dsp-cds { display: flex; gap: 10px; flex: 1 1 auto; justify-content: center; min-width: 0; flex-wrap: nowrap; }
.dsp-cd { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px 14px; box-shadow: var(--shadow); min-width: 0; flex: 0 1 auto; }
.dsp-cd .ic { font-size: 1.9rem; line-height: 1; flex: none; }
.dsp-cd div { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: baseline; line-height: 1.15; min-width: 0; }
.dsp-cd b { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1; grid-row: span 2; }
.dsp-cd small { font-size: .78rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.dsp-cd span:not(.ic) { font-weight: 800; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.dsp-cd.cd-vac { background: linear-gradient(160deg, #36B3E8, #1F8FCB 60%, #F2C26B); color: #fff; border: 0; }
.dsp-cd.cd-vac small { color: rgba(255,255,255,.9); }
.dsp-cd.bday { background: var(--accent-soft); }
@media (max-width: 1000px) { .dsp-top { flex-wrap: wrap; } .dsp-cds { order: 3; flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; } }
@media (min-width: 1001px) { .dsp-weather { flex-wrap: nowrap; flex: none; } .dsp-cd span:not(.ic) { max-width: 200px; } }
@media (min-width: 1001px) and (max-width: 1360px) { .dsp-cd:nth-child(n+2) { display: none; } }
.dsp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.dsp-card h2 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: 0 0 10px; }
.dsp-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 4px; }
.dsp-card .big { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 600; line-height: 1.15; margin: 0 0 8px; }
.dsp-card p { margin: 0 0 6px; font-size: 1.05rem; }
.dsp-mem { margin-bottom: 10px; font-size: 1.1rem; }
.dsp-mem ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; }
.dsp-mem li { font-size: 1.05rem; }
.dsp-mem li.done { color: var(--muted); text-decoration: line-through; }
.dsp-mem .okk { color: var(--green); font-size: .95rem; font-weight: 700; }
.dsp-ev { display: flex; gap: 12px; padding: 6px 0; font-size: 1.08rem; }
.dsp-ev .tm { width: 70px; flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }
.dsp-ev small { color: var(--muted); }
.dsp-poll { font-weight: 800; color: var(--aufgaben); }
.dsp-foot { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; flex-wrap: wrap; }
.dsp-foot button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.dsp-settings ol { padding-left: 18px; }
@media (max-width: 600px) { .wdays { border-left: 0; padding-left: 0; } }
.dsp-card.misc .dsp-ev .tm { width: auto; min-width: 70px; white-space: nowrap; }
.album-add { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 10px 0 4px; }
.album-add .btn { cursor: pointer; }
.lightbox form { margin: 0; }

/* ---------- Kalender: Liste / Woche / Monat ---------- */
.kal-bar { display: grid; gap: 10px; margin: 6px 0 12px; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 4px; }
.seg3 a { text-align: center; padding: 9px 6px; border-radius: 11px; font-weight: 800; color: var(--muted); }
.seg3 a:hover { text-decoration: none; color: var(--ink); }
.seg3 a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(34,30,26,.12); }
.kal-nav { display: flex; align-items: center; gap: 8px; }
.kal-nav strong { flex: 1; text-align: center; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.kal-nav .btn-ghost { font-size: 1.3rem; line-height: 1; padding: 6px 14px; }
.week-day.past { opacity: .6; }
.empty-day { margin: 0 0 6px 4px; }
.month-card { padding: 10px 8px; }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.mhead span { text-align: center; font-size: .72rem; font-weight: 800; color: var(--muted); padding: 2px 0 6px; }
.mday { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 64px; padding: 4px 3px; border: 0; border-radius: 10px; background: var(--surface-2); font: inherit; color: var(--ink); cursor: pointer; text-align: left; min-width: 0; }
.mday.other { opacity: .4; }
.mday .dn { font-weight: 800; font-size: .82rem; text-align: center; border-radius: 999px; width: 24px; height: 24px; line-height: 24px; margin: 0 auto; }
.mday.today .dn { background: var(--accent); color: #fff; }
.mday.sel { box-shadow: inset 0 0 0 2px var(--accent); background: var(--surface); }
.mev { display: grid; gap: 2px; min-width: 0; }
.mev i { font-style: normal; font-size: .62rem; font-weight: 700; line-height: 1.25; padding: 1px 3px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--accent-soft); color: #9A3A1C; }
.mev i.bd { background: #FCE1EC; color: #9B2458; }
.mev i.ext { background: var(--aufgaben-soft); color: #1F6B61; }
.mev i.bin { background: #FFF1CC; color: #7A5A00; }
.mev i.more { background: none; color: var(--muted); padding: 0; }
@media (max-width: 420px) {
  .mev i:not(.more) { font-size: 0; height: 5px; padding: 0; border-radius: 3px; }
  .mday { min-height: 54px; }
}

/* Schalter „Ganztägig“ */
.switch { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; font-size: 1rem; color: var(--ink); width: max-content; max-width: 100%; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .sw { width: 46px; height: 28px; border-radius: 999px; background: #DCD5CB; position: relative; transition: background .2s; flex: none; }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .sw { background: var(--accent); }
.switch input:checked + .sw::after { transform: translateX(18px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Kalender im iOS-Stil ---------- */
.kal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.kal-head h1 { margin: 0; font-size: 2rem; }
.kal-actions { display: flex; gap: 8px; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 1.25rem; font-weight: 700; background: var(--surface-2); color: var(--ink); cursor: pointer; flex: none; }
.round-btn.primary { background: var(--accent); color: #fff; font-size: 1.5rem; box-shadow: 0 4px 12px -4px rgba(242,97,63,.6); }
.form-title { margin: 0 0 12px; font-size: 1.2rem; }
#newEvent:not([open]) { display: none; }
#newEvent > summary { display: none; }
.kal-top { display: grid; gap: 10px; margin-bottom: 4px; }
.ios-seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #EEEAE3; border-radius: 9px; padding: 2px; }
.ios-seg a { text-align: center; padding: 6px 4px; border-radius: 7px; font-size: .88rem; font-weight: 700; color: var(--ink); position: relative; }
.ios-seg a:hover { text-decoration: none; }
.ios-seg a.on { background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 1px 1px rgba(0,0,0,.04); font-weight: 800; }
.ios-seg a:not(.on) + a:not(.on)::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: #D5CEC3; }
.who-filter.chips { margin: 0; }
.who-filter.chips .pill { padding: 6px 14px; font-size: .85rem; border-width: 1px; }
.cal-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 2px 6px; }
.cal-title h2 { margin: 0; font-family: var(--display); font-size: 1.6rem; font-weight: 600; }
.cal-title h2 span { color: var(--accent); font-weight: 500; }
.cal-arrows { display: flex; align-items: center; gap: 4px; }
.arrow-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; color: var(--accent); font-weight: 600; }
.arrow-btn:hover { background: var(--surface-2); text-decoration: none; }
.today-link { color: var(--accent); font-weight: 800; font-size: .92rem; padding: 0 8px; }
.ios-month { background: var(--surface); border-radius: 18px; padding: 8px 6px 6px; box-shadow: var(--shadow); }
.im-head, .im-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.im-head span { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0 6px; }
.im-head span.we { color: #B3AAA0; }
.im-day { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 7px; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; border-top: 1px solid var(--line); min-width: 0; }
.im-day .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.im-day.we .n { color: var(--muted); }
.im-day.other .n { color: #CFC7BC; }
.im-day.today .n { color: var(--accent); font-weight: 800; }
.im-day.sel .n { background: var(--ink); color: #fff; font-weight: 800; }
.im-day.sel.today .n { background: var(--accent); }
.im-day:focus-visible { outline: none; }
.im-day:focus-visible .n { box-shadow: 0 0 0 2px var(--accent); }
.im-day .chips { display: none; }
.dots { display: flex; gap: 3px; height: 6px; justify-content: center; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dots i.bd { background: #E0508A; }
.dots i.ext { background: var(--aufgaben); }
.dots i.bin { background: #E3A600; }
.im-day.other .dots { opacity: .4; }
.ios-day { margin: 16px 0 0; }
.ios-day h3 { margin: 0 4px 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; }
.ios-day.today h3 { color: var(--accent); }
.ios-day.past { opacity: .55; }
.ios-group { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.ios-empty { padding: 14px 16px; color: var(--muted); font-size: .92rem; }
.ios-ev { display: flex; align-items: center; gap: 10px; padding: 11px 8px 11px 14px; position: relative; }
.ios-ev + .ios-ev::before { content: ""; position: absolute; top: 0; left: 76px; right: 0; height: 1px; background: var(--line); }
.ios-ev .t { width: 52px; flex: none; display: grid; line-height: 1.2; text-align: right; font-variant-numeric: tabular-nums; }
.ios-ev .t b { font-size: .95rem; }
.ios-ev .t small { font-size: .78rem; color: var(--muted); font-weight: 600; }
.ios-ev .bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--accent); flex: none; }
.ios-ev.bd .bar { background: #E0508A; }
.ios-ev.ext .bar { background: var(--aufgaben); }
.ios-ev.bin .bar { background: #E3A600; }
.ios-ev .c { flex: 1; min-width: 0; display: grid; }
.ios-ev .c strong { font-weight: 800; font-size: 1rem; }
.ios-ev .c small { color: var(--muted); font-size: .82rem; }
.ios-ev .menu summary { padding: 4px 10px; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border-radius: 16px; padding: 8px 4px; box-shadow: var(--shadow); }
.ws-day { display: grid; justify-items: center; gap: 2px; color: var(--ink); padding: 2px 0; border-radius: 12px; }
.ws-day:hover { text-decoration: none; background: var(--surface-2); }
.ws-day small { font-size: .72rem; font-weight: 700; color: var(--muted); }
.ws-day b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 1.02rem; }
.ws-day.today b { background: var(--accent); color: #fff; }

/* ---------- Kalender am PC: breite Ansicht ---------- */
@media (min-width: 900px) {
  body.wide .wrap { max-width: 1200px; padding-left: 32px; padding-right: 32px; }
  .cal-page .newevent, .cal-page .panel, .cal-page .subscribe, .cal-page #fotoResult, .cal-page .flash { max-width: 760px; }
  .kal-top { grid-template-columns: 320px 1fr; align-items: center; gap: 16px; }
  .cal-title h2 { font-size: 2rem; }
  /* Monat: großes Raster mit Termin-Titeln, Tagesliste rechts */
  .month-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
  .month-side { position: sticky; top: 16px; }
  .month-side .ios-day { margin-top: 0; }
  .ios-month { padding: 0; overflow: hidden; }
  .im-head span { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: right; padding-right: 12px; }
  .im-day { align-items: stretch; justify-content: flex-start; min-height: 118px; padding: 6px 6px 8px; border-top: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); gap: 4px; text-align: left; transition: background .15s; }
  .im-day:nth-child(7n) { border-right: 0; }
  .im-day:hover { background: #FBF8F3; }
  .im-day.sel { background: #FFF4EF; }
  .im-day.we { background: #FCFAF7; }
  .im-day .n { width: 28px; height: 28px; font-size: .95rem; align-self: flex-end; }
  .im-day .dots { display: none; }
  .im-day .chips { display: grid; gap: 3px; min-width: 0; }
  .im-day .chips i { font-style: normal; font-size: .74rem; font-weight: 700; line-height: 1.3; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--accent-soft); color: #9A3A1C; border-left: 3px solid var(--accent); }
  .im-day .chips i.bd { background: #FCE1EC; color: #9B2458; border-color: #E0508A; }
  .im-day .chips i.ext { background: var(--aufgaben-soft); color: #1F6B61; border-color: var(--aufgaben); }
  .im-day .chips i.bin { background: #FFF4D6; color: #7A5A00; border-color: #E3A600; }
  .im-day .chips i.more { background: none; border: 0; color: var(--muted); padding: 0 6px; }
  /* Woche: sieben Spalten nebeneinander */
  .week-strip { display: none; }
  .week-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: start; }
  .week-cols .ios-day { margin: 8px 0 0; }
  .week-cols .ios-day h3 { font-size: .7rem; min-height: 2.4em; }
  .week-cols .ios-group { min-height: 120px; }
  .week-cols .ios-ev { flex-wrap: wrap; align-items: flex-start; gap: 2px 8px; padding: 10px 8px 10px 12px; border-left: 3px solid var(--accent); margin: 6px; border-radius: 8px; background: #FFF4EF; }
  .week-cols .ios-ev.bd { border-color: #E0508A; background: #FDEEF4; }
  .week-cols .ios-ev.ext { border-color: var(--aufgaben); background: #EEF7F5; }
  .week-cols .ios-ev.bin { border-color: #E3A600; background: #FFF8E3; }
  .week-cols .ios-ev + .ios-ev::before { display: none; }
  .week-cols .ios-ev .bar { display: none; }
  .week-cols .ios-ev .t { width: auto; text-align: left; display: flex; gap: 4px; align-items: baseline; flex-basis: 100%; }
  .week-cols .ios-ev .t small::before { content: "– "; }
  .week-cols .ios-ev .t small:only-child::before { content: ""; }
  .week-cols .ios-ev .c strong { font-size: .88rem; }
  .week-cols .ios-ev .c small { font-size: .74rem; }
  .week-cols .ios-ev .menu { position: absolute; top: 2px; right: 0; }
  .week-cols .ios-ev .menu summary { padding: 2px 6px; font-size: .8rem; }
  .week-cols .ios-empty { font-size: .8rem; padding: 12px; }
  /* Liste: angenehme Lesebreite */
  .ios-listwrap { max-width: 760px; }
}

/* ---------- Startseite: wer ist online, Kalender-Kachel ---------- */
.online-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -4px 0 14px; }
.on-label { font-size: .82rem; font-weight: 800; color: var(--muted); margin-right: 2px; }
.on-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; box-shadow: var(--shadow); }
.on-chip .avatar { width: 30px; height: 30px; font-size: .8rem; }
.on-chip .on-dot { width: 10px; height: 10px; }
.on-chip b { display: block; font-size: .85rem; font-weight: 800; line-height: 1.1; }
.on-chip small { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; line-height: 1.1; }
.choice.kalender { --c: #3F76B5; --c-soft: #E2ECF7; grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.choice.kalender .choice-icon { grid-row: 1 / 3; margin: 0; }
.choice.kalender .kal-txt { display: grid; gap: 2px; }
.choice.kalender .choice-status { grid-column: 2; padding-top: 6px; margin-top: 0; }
.choice.schule { --c: #7A4FB5; --c-soft: #ECE3F7; }
.choice.kalender::after { right: -30px; bottom: -60px; }

/* iPhone & Kalender-Abo: versteckt, öffnet über den 📲-Button */
#iphone:not([open]) { display: none; }
#iphone > summary { display: none; }
.iphone-box { max-width: 760px; }
.iphone-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.iphone-head h2 { margin: 0; font-size: 1.2rem; }
.round-btn.small { width: 32px; height: 32px; font-size: .9rem; }
.iphone-sec { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.iphone-sec h3 { margin: 0 0 6px; font-size: 1rem; }

/* Farben eingebundener Kalender */
.ios-ev.ext .bar, .dots i.ext { background: var(--ec, var(--aufgaben)); }
.im-day .chips i.ext { background: color-mix(in srgb, var(--ec, #2F8F83) 14%, #fff); color: color-mix(in srgb, var(--ec, #2F8F83) 75%, #000); border-color: var(--ec, var(--aufgaben)); }
.week-cols .ios-ev.ext { border-color: var(--ec, var(--aufgaben)); background: color-mix(in srgb, var(--ec, #2F8F83) 10%, #fff); }
.mev i.ext { background: color-mix(in srgb, var(--ec, #2F8F83) 16%, #fff); color: color-mix(in srgb, var(--ec, #2F8F83) 75%, #000); }
.event.ext { border-left-color: var(--ec, var(--aufgaben)); }
.feed-item { align-items: flex-start; }
.feed-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 5px; }
.color-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.color-pick .sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; display: block; }
.color-pick .sw.on, .color-pick input:checked + .sw { box-shadow: 0 0 0 2px var(--ink); }
.color-pick.radio label { display: block; }
.color-pick.radio input { position: absolute; opacity: 0; pointer-events: none; }
.color-pick.radio input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Fahrer & Countdown */
.opt-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ride-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .8rem; font-weight: 800; color: #9A5B00; background: #FFF1CC; border-radius: 999px; padding: 2px 10px; width: max-content; max-width: 100%; }
.ride-chip.ok { color: #1F6B61; background: var(--aufgaben-soft); }
.ride-chip .linkbtn { font-size: .8rem; }
.countdowns { display: flex; gap: 10px; overflow-x: auto; margin: 14px 0 0; padding-bottom: 2px; }
.cd { flex: 1 0 140px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.cd b { font-family: var(--display); font-size: 1.9rem; font-weight: 600; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.cd b small { font-size: .9rem; color: var(--muted); font-weight: 600; margin-left: 3px; }
.cd span { font-weight: 800; font-size: .88rem; line-height: 1.25; }
.cd.bday b { color: #D2477F; }

/* ---------- Pinnwand: Reaktionen & Kommentare ---------- */
.react-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.react-row .like-form, .react-row .react-form { margin: 0; }
.react-row .react-form.empty { display: none; }
.react-row.all .react-form.empty { display: block; }
.react-more { border: 1.5px dashed var(--line); background: none; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: .85rem; cursor: pointer; color: var(--muted); }
.react-row.all .react-more { display: none; }
.comments { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 8px; }
.comment { display: flex; gap: 8px; align-items: flex-start; }
.av-s { width: 30px; height: 30px; font-size: .78rem; }
.bubble { background: var(--surface-2); border-radius: 14px; padding: 7px 12px; font-size: .92rem; min-width: 0; overflow-wrap: anywhere; }
.bubble b { font-weight: 800; }
.bubble small { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }
form.inline { display: inline; }
.comment-form { display: flex; gap: 8px; align-items: center; }
.comment-form input[type=text] { flex: 1; min-width: 0; padding: 9px 12px; min-height: 0; }

/* ---------- Stundenplan ---------- */
.today-school h2 { margin: 0 0 8px; }
.ts-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.ts-row b { display: block; }
.ts-row span { font-size: .9rem; color: var(--muted); font-weight: 600; }
.tt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tt-head h2 { margin: 0; }
.tt-scroll { overflow-x: auto; }
.tt { width: 100%; border-collapse: separate; border-spacing: 4px; }
.tt th { font-size: .78rem; color: var(--muted); font-weight: 800; }
.tt tbody th { text-align: left; white-space: nowrap; padding-right: 4px; }
.tt tbody th b { display: block; color: var(--ink); }
.tt tbody th small { font-weight: 600; }
.tt td { background: var(--surface-2); border-radius: 8px; padding: 8px 6px; font-size: .85rem; font-weight: 700; text-align: center; min-width: 58px; }
.tt td.free { background: transparent; }
.tt th.today { color: var(--accent); }
.tt td.today { background: var(--accent-soft); }
.tt td.now { outline: 2px solid var(--accent); }
.tt-edit td { padding: 0; background: none; }
.tt-edit input[type=text] { padding: 8px 6px; font-size: .85rem; min-height: 0; text-align: center; min-width: 70px; }
.periods { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.per { display: flex; align-items: center; gap: 6px; }
.per input { min-height: 0; padding: 7px 8px; }
.small-lh { margin: 2px 0 0; font-size: 1rem; }

/* ---------- Packlisten ---------- */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }
.pl-card { margin: 0; display: grid; gap: 4px; color: var(--ink); }
.pl-card:hover { text-decoration: none; }
.pl-ic { font-size: 1.8rem; }
.pbar { display: block; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.pbar i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .3s; }
.pbar.big { height: 8px; margin-top: 8px; }
.pl-head { display: flex; gap: 10px; align-items: flex-start; }
.pl-head h2 { margin: 0; }
.pl-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1rem; }
.pl-group h3 .avatar { width: 26px; height: 26px; font-size: .75rem; }
.pl-items { list-style: none; margin: 0; padding: 0; }
.pl-items li { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.pl-items label { flex: 1; flex-direction: row; align-items: center; gap: 10px; padding: 10px 2px; font-size: 1rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.pl-items input { width: 22px; height: 22px; accent-color: var(--green); flex: none; }
.pl-items li.done span { text-decoration: line-through; color: var(--muted); }
.pl-items .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .9rem; padding: 6px; }
.preset-pick span { width: auto; height: auto; padding: 8px 10px; display: grid; justify-items: center; gap: 2px; min-width: 78px; }
.preset-pick small { font-size: .7rem; font-weight: 700; color: var(--ink); }

/* ---------- Vorrat ---------- */
.soon-box h2 { margin: 0 0 6px; }
.soon-it { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.soon-it small { font-weight: 800; color: #9A6700; white-space: nowrap; }
.soon-it.over small { color: var(--red); }
.vsearch { width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 14px; border: 2px solid transparent; background: var(--surface); box-shadow: var(--shadow); margin: 4px 0 12px; color: var(--ink); }
.v-place h2 { margin: 0 0 4px; }
.v-item.soon .grow strong::after { content: " ⏰"; }
.v-item.over .grow strong { color: var(--red); }
.v-item .menu summary { white-space: nowrap; }

/* ---------- Haushaltskasse ---------- */
.amount { font-size: 1.3rem !important; font-weight: 800; }
.cat-pick span { min-width: 88px; }
.k-total b { display: block; font-family: var(--display); font-size: 2.2rem; font-weight: 600; line-height: 1.1; }
.k-total span { color: var(--muted); font-size: .85rem; font-weight: 700; }
.k-bars { display: grid; gap: 6px; margin-top: 14px; }
.k-bar { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center; font-size: .88rem; font-weight: 700; }
.kb-t { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.kb-t i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.kb-v { font-variant-numeric: tabular-nums; }
.k-who { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: .88rem; font-weight: 700; }
.k-who span { display: inline-flex; align-items: center; gap: 6px; }
.k-who .avatar { width: 24px; height: 24px; font-size: .7rem; }
.k-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 420px) { .k-bar { grid-template-columns: 110px 1fr auto; font-size: .8rem; } }

/* ---------- Darstellung ---------- */
.theme-seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 4px; }
.theme-seg label { flex-direction: row; justify-content: center; padding: 9px 6px; border-radius: 11px; font-weight: 800; color: var(--muted); cursor: pointer; text-align: center; }
.theme-seg label.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(34,30,26,.12); }
.theme-seg input { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- Stundenplan (WebUntis) ---------- */
.kid-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: #B4401F; display: grid; place-items: center; font-weight: 800; font-family: var(--display); flex: none; }
.sp-week { display: grid; gap: 12px; margin-top: 6px; }
.sp-day { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 10px 12px 12px; }
.sp-day h3 { margin: 2px 2px 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; }
.sp-day h3 span { font-weight: 700; margin-left: 4px; }
.sp-day.today { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.sp-day.today h3 { color: var(--accent); }
.sp-day.past { opacity: .6; }
.sp-free { color: var(--muted); font-size: .9rem; padding: 4px 2px; }
.sp-l { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); margin-top: 6px; border-left: 4px solid var(--aufgaben); }
.sp-l .t { width: 44px; flex: none; font-weight: 800; font-size: .88rem; line-height: 1.15; font-variant-numeric: tabular-nums; display: grid; }
.sp-l .t small { font-weight: 600; color: var(--muted); font-size: .75rem; }
.sp-l .c { display: grid; min-width: 0; }
.sp-l .c b { font-size: .98rem; overflow-wrap: anywhere; }
.sp-l .c small { color: var(--muted); font-size: .78rem; }
.sp-l .c em { font-style: normal; font-size: .72rem; font-weight: 800; color: #fff; background: var(--red); border-radius: 6px; padding: 1px 6px; width: max-content; margin: 2px 0; }
.sp-l.cx { border-left-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--surface)); }
.sp-l.cx .c b { text-decoration: line-through; color: var(--muted); }
.sp-l.chg { border-left-color: #E3A600; }
.sp-l .info { color: #9A6700 !important; font-weight: 700; }
.sp-l.now { box-shadow: 0 0 0 2px var(--accent); }
.sp-l { min-height: calc(var(--n, 1) * 56px + (var(--n, 1) - 1) * 6px); box-sizing: border-box; }
.sp-l .t { width: 62px; }
.sp-l .t small { font-size: .7rem; white-space: nowrap; }
.sp-l.free { background: transparent; border: 1.5px dashed var(--line, #ddd); border-left: 4px solid transparent; color: var(--muted); align-items: center; }
.sp-l.free .t { color: var(--muted); }
.sp-l.free .c small { font-style: italic; }
.sp-settings { margin-top: 14px; }
@media (min-width: 900px) {
  body.sp-page .wrap { max-width: 1200px; }
  .sp-week { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; }
  .sp-page .today-school, .sp-page .sp-settings, .sp-page .card:not(.today-school) { max-width: 760px; }
}


/* ---------- Durchsage ---------- */
.top-actions { display: flex; align-items: center; gap: 10px; }
.shout-top { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.shout-top:hover { text-decoration: none; transform: translateY(-1px); }
.shout-form { display: grid; gap: 14px; }
.shout-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.shout-preset { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.shout-preset span { font-size: 1.05rem; }
.shout-preset:active { transform: scale(.97); }
.shout-send { font-size: 1.05rem; padding: 14px 20px; }
.shout { display: grid; gap: 8px; }
.shout.mine { border-left: 4px solid var(--accent); }
.shout-head { display: flex; align-items: center; gap: 10px; }
.shout-head .avatar { width: 34px; height: 34px; }
.shout-text { margin: 0; font-size: 1.12rem; font-weight: 700; overflow-wrap: anywhere; }
/* Update 172: Umfrage in der Durchsage */
.shout-poll { display: grid; gap: 6px; margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--bg); }
.shout-poll-q { font-size: .95rem; }
.shout-poll-o { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.shout-poll-o .bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(242, 97, 63, .14); z-index: 0; transition: width .3s; }
.shout-poll-o .t, .shout-poll-o b, .shout-poll-o input { position: relative; z-index: 1; }
.shout-poll-o .t { flex: 1; }
.shout-poll-o.on { border-color: var(--accent, #f2613f); font-weight: 700; }
.shout-poll-o.win { border-color: #d4a017; }
.shout-poll-f { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.shout-replies { display: flex; flex-wrap: wrap; gap: 8px; }
.shout-replies .btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.shout-answers { display: flex; flex-wrap: wrap; gap: 8px; }
.shout-answers span { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: .88rem; }
.shout-answers .avatar { width: 24px; height: 24px; font-size: .7rem; }

/* ---------- Kamera ---------- */
.ico-cam { width: 1.15em; height: 1.15em; vertical-align: -0.18em; display: inline-block; }
.tile .ico-cam { width: 1.2em; height: 1em; vertical-align: top; display: block; }
.cam-grid { display: grid; gap: 14px; }
.cam-live-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cam-frame { position: relative; background: #111; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.cam-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cam-frame img:not([src]) { visibility: hidden; }
.cam-play { position: absolute; }
.cam-h { font-size: 1.1rem; margin: 0 0 4px; }
.cam-h small { font-size: .8rem; font-weight: 600; }
.cam-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.cam-thumb { position: relative; border-radius: 10px; overflow: hidden; background: #111; aspect-ratio: 16 / 9; display: block; }
.cam-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-thumb span { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; font-weight: 800; padding: 1px 6px; border-radius: 6px; }
.cam-setup summary { cursor: pointer; }
.cam-setup .form { margin-top: 12px; }
.cam-steps { padding-left: 20px; display: grid; gap: 8px; line-height: 1.45; }
code.copy { display: inline-block; margin-top: 4px; background: var(--surface-2); border: 1px dashed var(--line); padding: 4px 8px; border-radius: 8px; word-break: break-all; cursor: copy; font-size: .82rem; }
code.copy.copied { border-color: var(--green); }
code.copy.copied::after { content: " ✓ kopiert"; color: var(--green); font-weight: 800; }
.err-text { color: var(--red); font-weight: 700; }
a.cam-frame { display: grid; }
.cam-live.fresh { box-shadow: 0 0 0 3px var(--green), var(--shadow); transition: box-shadow .3s; }
.cam-live-opt { border: 1.5px dashed var(--line); border-radius: 12px; padding: 10px 12px; }
.cam-live-opt summary { cursor: pointer; }
.cam-live-opt[open] summary { margin-bottom: 10px; }
.cam-check { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; margin-bottom: 8px; }
.cam-check code, .cam-found code { word-break: break-all; font-size: .8rem; }
.cam-found { display: grid; gap: 8px; margin: 8px 0; }
.cam-found-row { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; }
.cam-pager { justify-content: center; margin-top: 12px; }
@media (min-width: 900px) {
  .cam-grid { grid-template-columns: 3fr 2fr; align-items: start; }
  .cam-grid > .cam-events:only-child { grid-column: 1 / -1; }
  .cam-grid.stack { grid-template-columns: 1fr; }
  .cam-grid.stack .cam-live { max-width: 860px; }
  .cam-grid.stack .cam-thumbs { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}


/* ---------- Mähroboter ---------- */
.eco-status { display: grid; gap: 12px; }
.eco-head { display: flex; align-items: center; gap: 14px; }
.eco-big { width: 64px; height: 64px; border-radius: 18px; background: #E8F5E9; display: grid; place-items: center; font-size: 2.4rem; flex: none; }
.eco-big .ico-cam { width: 1.15em; height: 1em; }
.eco-name { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.15; }
.eco-state { font-weight: 800; margin-top: 2px; }
.eco-state.ok { color: #2E7D32; }
.eco-state.warn { color: #9A6700; }
.eco-state.err { color: var(--red); }
.eco-meter { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 10px; font-size: .92rem; }
.eco-meter .bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.eco-meter .bar i { display: block; height: 100%; background: #43A047; border-radius: 99px; }
.eco-meter .bar i.mid { background: rgb(242 183 5); }
.eco-meter .bar i.low { background: var(--red); }
.eco-prot { display: grid; gap: 8px; }
.eco-p { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 9px 12px; }
.eco-p .ic { font-size: 1.35rem; }
.eco-p span:last-child { display: grid; }
.eco-p small { color: var(--muted); font-size: .85rem; }
.eco-p em { font-style: normal; font-weight: 800; color: #9A6700; }
.eco-p.now { box-shadow: inset 0 0 0 2px #F2B705; }
.eco-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.eco-actions .btn { flex: 1 1 140px; font-size: 1.02rem; padding: 13px 16px; }
.eco-upd { margin: 0; }
.eco-pick { margin-top: 8px; }
.eco-pick .btn { width: 100%; justify-content: flex-start; gap: 8px; display: flex; align-items: center; }
.warn-text { color: #9A6700; font-weight: 700; margin: 0; }


/* ---------- Noten ---------- */
.g-form { display: grid; gap: 12px; }
.g-subj-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.chip-btn { font: inherit; font-size: .82rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.g-kind { grid-template-columns: repeat(3, 1fr); }
.g-kind span { font-size: .88rem; padding: 10px 4px; }
.g-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.g-pick label { flex-direction: row; }
.g-pick input { position: absolute; opacity: 0; pointer-events: none; }
.g-pick span { flex: 1; text-align: center; padding: 10px 0; border-radius: 10px; font-weight: 800; font-size: 1.02rem; cursor: pointer; border: 2px solid transparent; background: var(--gc-soft); color: var(--gc); }
.g-pick input:checked + span { background: var(--gc); color: #fff; border-color: var(--gc); }
.g-pick input:focus-visible + span { outline: 2px solid var(--ink); }
.g-good { --gc: #2E7D32; --gc-soft: #E6F4E7; }
.g-ok { --gc: #7A8B00; --gc-soft: #F1F5DA; }
.g-warn { --gc: #C77700; --gc-soft: #FDF0DC; }
.g-bad { --gc: #C62828; --gc-soft: #FBE4E4; }
.g-none { --gc: var(--muted); --gc-soft: var(--surface-2); }
.g-title { flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 600px) { .g-term { flex: 1 1 100%; } .g-term select { width: 100%; } }
.g-term select { font: inherit; font-weight: 700; padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.g-overall { display: flex; align-items: center; gap: 16px; }
.g-big { font-family: var(--display); font-weight: 600; font-size: 2.4rem; line-height: 1; min-width: 86px; text-align: center; padding: 12px 10px; border-radius: 18px; background: var(--gc-soft); color: var(--gc); }
.g-grid { display: grid; gap: 12px; }
.g-subj { margin: 0; }
.g-head { display: flex; align-items: center; gap: 10px; }
.g-head h3 { margin: 0; font-size: 1.08rem; }
.g-avg { font-family: var(--display); font-weight: 600; font-size: 1.5rem; min-width: 54px; text-align: center; padding: 6px 8px; border-radius: 12px; background: var(--gc-soft); color: var(--gc); }
.g-spark-wrap { color: var(--gc); opacity: .85; display: flex; }
.g-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.g-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 999px; background: var(--gc-soft); color: var(--gc); font-size: .9rem; }
.g-chip:hover { text-decoration: none; filter: brightness(.97); }
.g-chip b { font-size: .98rem; }
.g-chip em { font-style: normal; color: var(--muted); font-size: .78rem; }
@media (min-width: 900px) { .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .g-pick { grid-template-columns: repeat(4, 1fr); } }


/* ---------- Smart Home ---------- */
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 8px; }
.sh-head h2 { margin: 0; font-size: 1.3rem; }
.sh-upd { display: flex; align-items: center; gap: 6px; }
.sh-rooms, .sh-lights { display: grid; gap: 12px; }
.sh-room { margin: 0; display: grid; gap: 8px; }
.sh-room.off { opacity: .75; }
.sh-room.heat { box-shadow: inset 0 0 0 2px #F59E0B, var(--shadow); }
.sh-rtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sh-rtop h3 { margin: 4px 0 0; font-size: 1.1rem; }
.sh-temp { font-family: var(--display); font-weight: 600; font-size: 2.1rem; line-height: 1; }
.sh-temp small { font-size: 1rem; color: var(--muted); margin-left: 2px; }
.sh-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); align-items: center; }
.sh-meta .tag { background: var(--surface-2); border-radius: 999px; padding: 2px 9px; color: var(--ink); font-weight: 700; }
.sh-meta .tag.warn { background: #FDF0DC; color: #9A6700; }
.sh-meta .tag.heat { background: #FFF1E0; color: #C2410C; }
.sh-ctrl { display: flex; align-items: center; gap: 12px; }
.sh-ctrl .btn { width: 44px; height: 40px; font-size: 1.3rem; padding: 0; justify-content: center; }
.sh-ctrl b { font-size: 1.15rem; min-width: 56px; text-align: center; }
.sh-ctrl2 { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-light { margin: 0; padding: 12px 14px; display: grid; gap: 8px; }
.sh-light.offline { opacity: .55; }
.sh-bulb { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.sh-bulb .ic { font-size: 1.6rem; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); filter: grayscale(1); opacity: .7; transition: .2s; }
.sh-light.on .sh-bulb .ic { background: #FFF3C4; filter: none; opacity: 1; box-shadow: 0 0 18px rgba(255, 196, 0, .45); }
.sh-bulb .nm { flex: 1; display: grid; min-width: 0; }
.sh-bulb .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-bulb .nm small { color: var(--muted); }
.sh-bulb .sw { width: 46px; height: 28px; border-radius: 99px; background: #D6CFC4; position: relative; flex: none; transition: .2s; }
.sh-bulb .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .2s; }
.sh-bulb .sw.on { background: #34C759; }
.sh-bulb .sw.on::after { left: 21px; }
.sh-bform input[type=range] { width: 100%; accent-color: #F2B705; }
.sh-groups { margin-bottom: 12px; }
.sh-group.on .sh-bulb .ic { background: #FDE7FF; box-shadow: 0 0 18px rgba(214, 120, 255, .4); }
.sh-flow { display: grid; gap: 8px; }
.dsp-rooms { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.dsp-rooms span { display: grid; font-size: .95rem; color: var(--muted); }
.dsp-rooms b { font-family: var(--display); font-size: 1.7rem; color: var(--ink); font-weight: 600; line-height: 1.05; }
@media (min-width: 700px) { .sh-lights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .sh-rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sh-lights { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


/* ---------- Urlaubs-Countdown ---------- */
.vac { position: relative; overflow: hidden; display: grid; gap: 2px; margin: 14px 0 0; padding: 18px 20px 16px; border-radius: 24px; color: #fff;
  background: linear-gradient(160deg, #36B3E8 0%, #1F8FCB 55%, #F2C26B 100%); box-shadow: 0 8px 24px rgba(31, 143, 203, .28); }
.vac:hover { text-decoration: none; transform: translateY(-1px); }
.vac::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #FFE9A8 0%, #FFD35A 55%, rgba(255, 211, 90, 0) 70%); opacity: .9; }
.vac.running { background: linear-gradient(160deg, #2BB59A 0%, #1C8C7A 60%, #F2C26B 100%); }
.vac > * { position: relative; z-index: 1; }
.vac-ic { position: absolute; right: 18px; bottom: 14px; font-size: 3.4rem; z-index: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); }
.vac-top { font-weight: 800; font-size: .95rem; opacity: .92; }
.vac-num { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.vac-num b { font-size: 3.2rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.vac-num small { font-family: var(--body); font-size: .85rem; font-weight: 800; opacity: .9; margin-left: 4px; font-variant-numeric: tabular-nums; }
.vac-small { font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; opacity: .95; }
.vac-small:empty { display: none; }
.vac-title { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin-top: 4px; padding-right: 64px; }
.vac-when { font-size: .88rem; font-weight: 700; opacity: .92; padding-right: 64px; }
.vac-sleep { margin-top: 6px; font-weight: 800; background: rgba(255,255,255,.22); border-radius: 999px; padding: 4px 12px; width: max-content; max-width: calc(100% - 64px); }
.vac-bar { display: block; height: 7px; border-radius: 99px; background: rgba(255,255,255,.3); margin-top: 10px; margin-right: 64px; overflow: hidden; }
.vac-bar i { display: block; height: 100%; background: rgb(255 255 255); border-radius: 99px; }
.dsp-card.vacd { background: linear-gradient(160deg, #36B3E8, #1F8FCB 60%, #F2C26B); color: #fff; border: 0; }
.dsp-card.vacd h2, .dsp-card.vacd .big { color: #fff; }


/* ---------- Erinnerungen ---------- */
.tile-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 16px; }
.tile-toggles .user-actions { grid-column: 1 / -1; }
.rem-form { display: grid; gap: 12px; }
.rem-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.rem-time { width: 58px; flex: none; display: grid; text-align: center; background: var(--accent-soft); color: var(--accent); border-radius: 12px; padding: 6px 4px; line-height: 1.1; }
.rem-time b { font-family: var(--display); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rem-time small { font-size: .7rem; font-weight: 800; color: var(--muted); }
.rem-time.done { background: var(--surface-2); color: var(--muted); }
.rem-fired { border-left: 4px solid var(--accent); display: grid; gap: 10px; }
.rem-fired-top { display: flex; gap: 12px; align-items: center; }
.rem-bell { font-size: 1.6rem; }
.rem-snooze { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rem-later { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }


/* ---- Klassenarbeiten, Ferien, Gesundheit (Update 45) ---- */
.sp-exam { background: rgb(237,230,247); color: #5B3F8A; border-radius: 10px; padding: 5px 9px; font-size: .82rem; font-weight: 800; margin-bottom: 6px; }
.sp-exams h2 { margin-top: 0; }
.sp-ex-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.sp-ex-row:first-of-type { border-top: 0; }
.sp-ex-row .grow { display: grid; min-width: 0; }
.sp-ex-row small { font-size: .82rem; }
.sp-ex-d { display: grid; text-align: center; min-width: 52px; background: var(--surface-2); border-radius: 12px; padding: 4px 6px; line-height: 1.2; }
.sp-ex-d small { font-size: .7rem; color: var(--muted); font-weight: 700; }
.sp-ex-d.soon { background: rgb(237,230,247); color: #5B3F8A; }
.sp-ex-add { margin: 10px 0 6px; }
.sp-ex-add > summary { list-style: none; display: inline-flex; }
.sp-ex-add > summary::-webkit-details-marker { display: none; }
.fer-cd { align-self: center; }
.fer-cd .chip-btn { white-space: nowrap; font-size: .78rem; padding: 4px 9px; }
.hl-form [hidden] { display: none !important; }
.hl-kinds { flex-wrap: wrap; }
.hl-soon h2 { margin-top: 0; }
.hl-soon-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.hl-soon-row:first-of-type { border-top: 0; }
.hl-soon-row small { font-weight: 600; }
.hl-soon-row > .grow { flex: 1; min-width: 0; }
.hl-soon-row > .hl-due { flex: none; }
.hl-person h2 { margin-top: 0; }
.hl-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; margin: 16px 0 4px; }
.hl-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.hl-item:target { background: var(--accent-soft); border-radius: 12px; }
.hl-item .grow { display: grid; min-width: 0; gap: 1px; }
.hl-item small { color: var(--muted); font-size: .82rem; }
.hl-item.off, .hl-item.past { opacity: .6; }
.hl-ic { font-size: 1.35rem; width: 32px; text-align: center; flex: none; }
.hl-act { display: flex; align-items: center; gap: 6px; flex: none; }
.hl-due { display: inline-block; justify-self: start; font-size: .76rem; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.hl-due.soon { background: rgb(255,240,214); color: #9A6200; }
.hl-due.late { background: rgb(253,226,222); color: var(--red); }
.hl-old { margin-top: 4px; }
.hl-old > summary { cursor: pointer; padding: 4px 0; }
@media (max-width: 520px) { .hl-act .btn { padding: 6px 9px; font-size: .8rem; } }

.b-list { display: grid; }
.b-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.b-row:first-child { border-top: 0; }
.b-row .grow { display: grid; min-width: 0; }
.b-row .grow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.b-row select { width: auto; min-width: 0; flex: none; padding: 6px 8px; }

.bd-head { display: flex; align-items: center; gap: 12px; }
.bd-head .grow { display: grid; }
.bd-search { width: 100%; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; font-size: 1rem; }
.bd-list { padding-top: 6px; }
.bd-m { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; margin: 14px 0 2px; }
.bd-m:first-child { margin-top: 4px; }
.bd-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.bd-m + .bd-row { border-top: 0; }
.bd-row .grow { display: grid; min-width: 0; }
.bd-row .grow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-row.off .grow, .bd-row.off .bd-day { opacity: .45; }
.bd-day { display: grid; text-align: center; min-width: 50px; line-height: 1.15; }
.bd-day small { font-size: .7rem; color: var(--muted); font-weight: 700; }
.bd-t { border: 0; background: var(--surface-2); border-radius: 12px; width: 40px; height: 36px; font-size: 1.05rem; cursor: pointer; filter: grayscale(1); opacity: .45; flex: none; }
.bd-t.on { filter: none; opacity: 1; background: var(--accent-soft); }
.bd-del { flex: none; }
.bd-row.today .grow b { color: var(--accent); }
.bd-bell { flex: none; font-size: .95rem; opacity: .8; }
.kal-bd { margin-top: 12px; }
.ios-seg { grid-template-columns: 1fr 1fr 1fr 1.45fr; }
.ios-seg a { white-space: nowrap; }
.bd-x { border: 0; background: none; color: var(--muted); font-size: .9rem; padding: 6px; cursor: pointer; }

.brief-hero { text-align: center; margin: 6px 0 16px; }
.brief-hero h1 { margin: 4px 0 2px; }
.brief-hero p { margin: 0; color: var(--muted); font-weight: 700; }
.brief-sun { font-size: 3rem; line-height: 1; animation: briefSun 6s ease-in-out infinite; }
@keyframes briefSun { 50% { transform: rotate(12deg) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .brief-sun { animation: none; } }
.brief-list { padding-top: 6px; padding-bottom: 6px; }
.brief-row { display: flex; align-items: center; gap: 14px; padding: 13px 2px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; line-height: 1.4; }
.brief-row:first-child { border-top: 0; }
a.brief-row:hover { text-decoration: none; background: var(--surface-2); border-radius: 12px; }
.brief-ic { font-size: 1.5rem; width: 34px; text-align: center; flex: none; }
.brief-row .chev { color: var(--muted); font-size: 1.3rem; flex: none; }

.poll-by { position: relative; z-index: 1; font-size: .75rem; color: var(--muted); font-weight: 600; }
.poll-new { width: 100%; }
.avatar.guest { background: #E3DCD1; color: var(--ink); font-size: .62rem; font-weight: 800; display: inline-grid; place-items: center; }
.poll-share { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.poll-share-row { display: flex; gap: 8px; }
.poll-share-row input { flex: 1; min-width: 0; font-size: .85rem; color: var(--muted); }
.guest-brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 8px 0 16px; font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.guest-brand img { border-radius: 10px; }
.guest-brand span { display: grid; line-height: 1.1; }
.guest-brand small { font-family: var(--body); font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.guest-q { font-size: 1.5rem; margin: 0 0 4px; }
.guest-new, .guest-name { width: 100%; display: grid; gap: 4px; font-weight: 700; font-size: .92rem; }
.guest-new { margin-top: 4px; }

.wa-btn { background: #25D366; color: #fff !important; border-color: #25D366; white-space: nowrap; }
.wa-btn:hover { text-decoration: none; filter: brightness(.95); }
.wa-row { margin: 0 0 12px; }

.home-polls { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 6px 16px 8px; }
.home-polls .home-card-head { margin-bottom: 4px; }
.hp-badge { font-style: normal; font-size: .72rem; font-weight: 800; background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
.hp-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }
.hp-row:first-of-type { border-top: 0; }
.hp-row:hover { text-decoration: none; }
.hp-row .grow { display: grid; min-width: 0; }
.hp-row strong { line-height: 1.3; }
.hp-row small { font-weight: 600; }
.hp-act { flex: none; font-size: .82rem; font-weight: 800; background: var(--accent); color: #fff; border-radius: 99px; padding: 5px 12px; }
.hp-row.done .hp-act { background: var(--surface-2); color: var(--muted); }

.poll-share.result { border-top-style: solid; }
.guest-result { display: flex; align-items: center; gap: 12px; margin: 10px 0 6px; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); font-size: 1.8rem; }
.guest-result span { display: grid; line-height: 1.25; }
.guest-result b { font-size: 1.15rem; font-family: var(--display); font-weight: 600; }
.guest-result small { font-size: .78rem; color: var(--muted); font-weight: 700; }

.guest-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 16px; flex-wrap: wrap; }
.guest-top .guest-brand { margin: 0; color: var(--ink); }
.guest-top .guest-brand:hover { text-decoration: none; }
.guest-me { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.guest-h1 { font-size: 1.5rem; margin: 0 0 12px; }
.guest-back { margin: 0 0 10px; }
.guest-list h2 { margin: 0 0 4px; font-size: 1.1rem; }
.guest-opts { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-weight: 600; }
.guest-tabs { margin-bottom: 12px; }
.guest-auth .form { gap: 10px; }
.gpane-forgot { margin-top: 10px; }

.tempo-facts { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.tempo-log { display: grid; gap: 2px; max-height: 320px; overflow: auto; font-size: .8rem; }
.tempo-log div { display: grid; grid-template-columns: 92px 52px 1fr; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); align-items: baseline; }
.tempo-log span { color: var(--muted); }
.tempo-log b.bad { color: var(--red); }
.tempo-log code { overflow-wrap: anywhere; font-size: .78rem; }

.display main.dsp { transition: transform 2s ease; }
.dsp-night { position: fixed; inset: 0; background: #000; z-index: 9999; cursor: pointer; }
.dsp-night-clock { position: absolute; left: 0; top: 0; color: #5a5550; text-align: center; transition: transform 3s ease; display: grid; }
.dsp-night-clock b { font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 9vw, 6rem); line-height: 1; color: #6b655e; }
.dsp-night-clock span { font-size: 1rem; margin-top: 6px; }
body.night-on { background: #000 !important; }

.tile.ext b i { font-style: normal; font-size: .8em; color: var(--muted); }

.hl-views { margin: 4px 0 6px; grid-template-columns: 1fr 1fr; }
.impf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.impf-head h2 { margin: 0; }
.impf-head h2 small { font-size: .85rem; font-weight: 700; }
.impf-birth label { display: grid; gap: 2px; font-weight: 700; }
.impf-birth input { min-height: 40px; padding: 6px 10px; }
.impf-bd { display: flex; gap: 6px; align-items: center; }
.impf-bd input { width: auto; }
.impf-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.impf-row .grow { display: grid; min-width: 0; }
.impf-row small { font-size: .82rem; }
.impf-ic { font-size: 1.05rem; width: 26px; text-align: center; flex: none; }
.impf-row.st-due .impf-st { color: var(--red); font-weight: 800; }
.impf-row.st-soon .impf-st { color: #9A6200; font-weight: 800; }
.impf-row.st-done b { color: var(--muted); }

.impf-photo { margin: 10px 0 2px; }
.impf-scan { margin: 8px 0; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.impf-found { display: grid; gap: 8px; }
.impf-f { display: grid; grid-template-columns: auto 140px 1fr; gap: 8px; align-items: center; }
.impf-f input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
.impf-f input[type=date], .impf-f input[type=text] { min-height: 40px; padding: 6px 10px; background: var(--surface); }
.impf-f small { grid-column: 3; margin-top: -6px; }
@media (max-width: 480px) { .impf-f { grid-template-columns: auto 1fr; } .impf-f input[type=text] { grid-column: 1 / -1; } .impf-f small { grid-column: 1 / -1; } }

/* Haustiere */
.hl-pets summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.hl-pets summary::-webkit-details-marker { display: none; }
.hl-pet-row { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.hl-pet-row select { width: auto; flex: 0 0 auto; }
.hl-pet-row input[type=text] { flex: 1; min-width: 0; }
.hl-pet-row .danger { color: var(--red); }
.pet-chip span { background: #FFF4E5; }
.pl-pet { display: flex; gap: 12px; align-items: center; }
.pl-pet > span { font-size: 24px; }
.pl-pet small { display: block; color: var(--muted); font-weight: 600; margin-top: 2px; }
.pl-pet.warn { border-left: 4px solid #E8A33B; }
.pl-pet.ok { border-left: 4px solid #3BA776; }

.ride-set { display: inline-block; margin: 4px 0 0 6px; }
.ride-set select { width: auto; font-size: .78rem; font-weight: 700; padding: 2px 24px 2px 8px; min-height: 0; height: auto; border-radius: 999px; }
.ride-who select { margin-top: 4px; }

.drv-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.drv-add { margin-top: 12px; }

/* Drucken */
.pr-form { gap: 12px; }
.pr-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px 14px; border: 2px dashed var(--line); border-radius: 18px; background: var(--surface-2); cursor: pointer; }
.pr-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pr-drop.has { border-color: var(--accent); }
.pr-drop-ic { font-size: 34px; }
.pr-list { list-style: none; margin: 0; padding: 0; }
.pr-list li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .9rem; word-break: break-all; }
.pr-list li.pr-bad { color: var(--red); border: 0; }
.pr-text summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.pr-text textarea { width: 100%; margin-top: 8px; }
.pr-job { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.pr-job:first-of-type { border-top: 0; }
.pr-job small { display: block; }
.pr-help { margin-top: 12px; }
.pr-help code { font-size: .95rem; font-weight: 800; cursor: pointer; }
.pr-printers { margin: 0; }
.pr-printers span small { display: block; font-size: .74rem; font-weight: 700; color: var(--muted); margin-top: 1px; }
.drv-row form + form { margin-left: 4px; }
.pr-h3 { font-size: 1rem; margin: 14px 0 6px; }
.pr-saved { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; margin-bottom: 8px; background: var(--surface); }
.pr-saved .drv-row { display: flex; align-items: center; gap: 10px; }
.pr-saved .grow small { display: block; word-break: break-all; }
.pr-kind { font-size: 1.3rem; }
.pr-edit summary { cursor: pointer; font-weight: 800; color: var(--muted); margin-top: 4px; }
.pr-edit .form { margin-top: 8px; }
.pr-add { margin-top: 10px; }
.pr-add > summary { list-style: none; display: inline-flex; }
.pr-add > summary::-webkit-details-marker { display: none; }

/* Urlaubsplanung */
.tr-plan { padding: 16px; }
.tr-plan-head { display: flex; gap: 8px; align-items: flex-start; }
.tr-plan-head h2 { margin: 0; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 14px 0 10px; }
.tr-house { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; scroll-margin-top: 80px; }
.tr-editing { padding: 14px; }
.tr-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.tr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; opacity: .6; }
.tr-top { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.92); color: #221E1A; font-weight: 800; font-size: .78rem; padding: 3px 9px; border-radius: 999px; }
.tr-body { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tr-body h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.tr-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .86rem; font-weight: 700; color: var(--ink); }
.tr-by { margin-top: 2px; }
.tr-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.tr-like { font: inherit; font-weight: 800; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.tr-like.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.tr-likers { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-add > summary { list-style: none; display: inline-flex; }
.tr-add > summary::-webkit-details-marker { display: none; }
.tr-add[open] > summary { margin-bottom: 10px; }
.tr-url { display: flex; gap: 6px; }
.tr-url input { flex: 1; min-width: 0; }
.tr-preview { display: flex; gap: 10px; align-items: center; }
.tr-sort { display: flex; justify-content: flex-end; margin: -4px 0 -6px; }
.tr-sort select { width: auto; padding: 6px 30px 6px 10px; font-size: .85rem; }
.tr-start { padding: 12px 16px; }
.tr-start > summary { cursor: pointer; font-weight: 800; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tr-others { display: block; font-size: .78rem; }
.tr-booked { margin: 6px 0 0; font-size: .9rem; color: #1F6B61; font-weight: 600; }
.tr-tools { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.tr-tool { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; background: var(--surface-2); }
.tr-tool > summary { cursor: pointer; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.tr-tool > summary b { margin-left: auto; font-size: .82rem; color: var(--accent); }
.tr-people { list-style: none; margin: 8px 0; padding: 0; }
.tr-people li { display: flex; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.tr-people-f { margin-top: 6px; }
.tr-weeks { display: flex; flex-direction: column; gap: 4px; }
.tr-week { display: grid; grid-template-columns: 24px 1fr 70px 22px; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface); font-size: .86rem; cursor: pointer; }
.tr-week.fer { box-shadow: inset 3px 0 0 #E8A33B; }
.tr-week.best { background: var(--aufgaben-soft, #E3F3EF); font-weight: 700; }
.tr-wk-d small { display: block; color: var(--muted); font-size: .74rem; }
.tr-wk-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.tr-wk-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.tr-wk-n { text-align: right; font-weight: 800; }
.tr-map { height: 320px; border-radius: 12px; margin-top: 8px; overflow: hidden; background: var(--surface); }
.tr-pin { display: grid !important; place-items: center; font-size: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 6px rgba(0,0,0,.35); }
.tr-fit { font-size: .82rem; font-weight: 700; border-radius: 8px; padding: 3px 8px; width: max-content; max-width: 100%; }
.tr-fit.ok { background: var(--aufgaben-soft, #E3F3EF); color: #1F6B61; }
.tr-fit.no { background: #FFF1CC; color: #9A5B00; }
.tr-fit.q { background: var(--surface-2); color: var(--muted); }
.tr-house.st-abgesagt { opacity: .55; }
.tr-house.st-gebucht { border-color: #3BA776; box-shadow: 0 0 0 2px #3BA77633; }
.tr-com { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.tr-com > summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.tr-c { position: relative; background: var(--surface-2); border-radius: 12px; padding: 8px 30px 8px 10px; margin: 6px 0; }
.tr-c p { margin: 2px 0 0; font-size: .9rem; }
.tr-c-del { position: absolute; right: 6px; top: 4px; }
.tr-c-form { display: flex; gap: 6px; align-items: flex-end; margin-top: 6px; }
.tr-c-form textarea { flex: 1; min-width: 0; font: inherit; border: 2px solid transparent; background: var(--surface-2); border-radius: 12px; padding: 8px 10px; resize: vertical; color: var(--ink); }
.tr-status-f { gap: 8px; }
.tr-preview img { width: 96px; height: 60px; object-fit: cover; border-radius: 10px; flex: none; }

/* Chat */
.chat-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; color: var(--ink); box-shadow: var(--shadow); --c-soft: #E6EEFB; }
.chat-bar:hover { text-decoration: none; transform: translateY(-1px); }
.chat-bar .choice-icon { margin: 0; flex: none; width: 44px; height: 44px; }
.chat-bar .grow { min-width: 0; display: flex; flex-direction: column; }
.chat-bar .choice-title { font-size: 1.15rem; }
.chat-bar .choice-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-bar.unread { border-color: var(--accent); }
.chat-bar.unread .choice-sub { color: var(--ink); }
.chat-count { flex: none; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.chat-go { flex: none; font-size: 1.6rem; color: var(--muted); }
.tile span { position: relative; }
.tile-badge { position: absolute; top: -6px; right: -12px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-style: normal; font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.chat-page .foot { display: none; }
.ch-wrap { display: flex; flex-direction: column; height: calc(100dvh - 92px); min-height: 360px; }
.ch-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ch-head h1 { margin: 0; font-size: 1.4rem; }
.ch-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 2px 10px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; }
.ch-empty { text-align: center; margin: auto; }
.ch-older { align-self: center; font-size: .85rem; margin: 6px 0; }
.ch-day { align-self: center; font-size: .75rem; font-weight: 800; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 3px 10px; margin: 10px 0 4px; }
.ch-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 86%; margin-top: 8px; scroll-margin: 60px; }
.ch-msg.cont { margin-top: 2px; }
.ch-msg.cont .ch-name { display: none; }
.ch-msg.cont .ch-av { visibility: hidden; }
.ch-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.ch-av .avatar { width: 30px; height: 30px; font-size: .8rem; }
.ch-col { display: flex; flex-direction: column; min-width: 0; }
.ch-msg.mine .ch-col { align-items: flex-end; }
.ch-name { font-size: .74rem; font-weight: 800; color: var(--muted); margin: 0 0 2px 10px; }
.ch-bubble { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 8px 12px 6px; font-size: .97rem; line-height: 1.38; word-wrap: break-word; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; -webkit-touch-callout: none; }
.ch-msg.mine .ch-bubble { background: var(--accent); color: #fff; border-color: var(--accent); border-radius: 18px 18px 6px 18px; }
.ch-msg.mine .ch-bubble a { color: #fff; text-decoration: underline; }
.ch-bubble.big { background: transparent !important; border-color: transparent !important; font-size: 2.4rem; line-height: 1.1; padding: 0 2px; }
.ch-bubble.big .ch-time { color: var(--muted) !important; }
.ch-text { white-space: normal; }
.ch-time { display: block; text-align: right; font-size: .68rem; opacity: .7; margin-top: 2px; }
.ch-photo { display: block; max-width: 240px; max-height: 300px; border-radius: 12px; margin: 2px 0 4px; }
.ch-at { font-weight: 800; color: var(--accent); }
.ch-at.me { background: #FFE9A8; color: #6B4A00; border-radius: 6px; padding: 0 3px; }
.ch-msg.mine .ch-at { color: #fff; text-decoration: underline; }
.ch-reply { display: block; border-left: 3px solid currentColor; padding: 2px 8px; margin-bottom: 4px; opacity: .85; font-size: .82rem; color: inherit !important; text-decoration: none !important; }
.ch-reply b { display: block; }
.ch-reply span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.ch-reacts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: -4px; padding: 0 6px; position: relative; z-index: 1; }
.ch-react { font: inherit; font-size: .85rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; cursor: pointer; }
.ch-react.on { border-color: var(--accent); background: var(--accent-soft); }
.ch-msg.del .ch-bubble { background: transparent; border-style: dashed; color: var(--muted); }
.ch-form { position: relative; border-top: 1px solid var(--line); padding-top: 8px; background: var(--bg); }
.ch-row { display: flex; gap: 6px; align-items: flex-end; }
.ch-row textarea { flex: 1; min-width: 0; resize: none; font: inherit; font-size: 16px; line-height: 1.35; border: 2px solid transparent; background: var(--surface-2); color: var(--ink); border-radius: 20px; padding: 9px 14px; max-height: 140px; outline: none; overflow-y: hidden; scrollbar-width: thin; }
.ch-row textarea:focus { border-color: var(--accent); background: var(--surface); }
.ch-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-size: 1.3rem; background: none; border: 0; cursor: pointer; border-radius: 50%; }
.ch-send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.1rem; cursor: pointer; }
.ch-send:disabled { opacity: .5; }
.ch-emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 2px; max-height: 170px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; margin-bottom: 8px; }
.ch-emojis button { font-size: 1.45rem; background: none; border: 0; padding: 4px; cursor: pointer; border-radius: 8px; }
.ch-emojis button:active { background: var(--surface-2); }
.ch-mention { position: absolute; bottom: 100%; left: 46px; right: 50px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,.15)); overflow: hidden; margin-bottom: 4px; z-index: 5; }
.ch-mention button { display: block; width: 100%; text-align: left; font: inherit; font-weight: 700; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; color: var(--ink); cursor: pointer; }
.ch-mention button:first-child { background: var(--accent-soft); }
.ch-replybar, .ch-photo-prev { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 6px 10px; margin-bottom: 6px; font-size: .85rem; }
.ch-replybar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-photo-prev img { height: 60px; border-radius: 8px; }
.ch-photo-prev .x { margin-left: auto; }
.ch-head { flex-direction: column; align-items: stretch; gap: 6px; }
.ch-wrap { width: 100%; min-width: 0; }
.ch-head, .ch-head > * { min-width: 0; max-width: 100%; }
.ch-rooms { width: 100%; }
.ch-rooms { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ch-rooms::-webkit-scrollbar { display: none; }
.ch-room { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 800; font-size: .88rem; white-space: nowrap; }
.ch-room:hover { text-decoration: none; }
.ch-room.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ch-room.add { color: var(--accent); border-style: dashed; }
.ch-room-n { font-style: normal; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; text-align: center; }
.ch-tools { display: flex; align-items: center; gap: 4px; }
.ch-tools small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ch-tool { background: none; border: 0; font-size: 1.15rem; cursor: pointer; padding: 4px 8px; border-radius: 10px; list-style: none; color: var(--ink); }
.ch-tool::-webkit-details-marker { display: none; }
.ch-search { display: flex; gap: 6px; }
.ch-search input { flex: 1; min-width: 0; padding: 9px 12px; }
.ch-pins { display: flex; flex-direction: column; gap: 4px; }
.ch-pins:empty { display: none; }
.ch-pinrow { display: block; background: #FFF6D6; color: #5A4300; border-radius: 10px; padding: 6px 10px; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-pinrow:hover { text-decoration: none; }
.ch-msg.pinned .ch-bubble { box-shadow: 0 0 0 2px #F2C94C; }
.ch-pin-ic { float: right; font-size: .75rem; margin-left: 6px; }
.ch-guest { font-size: .65rem; background: var(--surface-2); border-radius: 6px; padding: 0 4px; font-weight: 700; }
.ch-status { display: flex; justify-content: space-between; gap: 8px; font-size: .75rem; color: var(--muted); min-height: 16px; padding: 0 4px 2px; }
.ch-status #chSeen { margin-left: auto; text-align: right; }
.ch-plus { position: relative; }
.ch-plus > summary { list-style: none; font-size: 1.5rem; font-weight: 400; color: var(--accent); }
.ch-plus > summary::-webkit-details-marker { display: none; }
.ch-plus-menu { position: absolute; bottom: 46px; left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 6px; display: flex; flex-direction: column; min-width: 160px; z-index: 6; }
.ch-plus-menu label, .ch-plus-menu button { display: block; text-align: left; font: inherit; font-weight: 700; background: none; border: 0; padding: 9px 10px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.ch-plus-menu label:hover, .ch-plus-menu button:hover { background: var(--surface-2); }
.ch-mic { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ch-rec { display: flex; align-items: center; gap: 10px; background: #FDE8E1; color: #8A2A12; border-radius: 12px; padding: 8px 12px; margin-bottom: 6px; font-weight: 700; font-size: .9rem; }
.ch-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #E0553A; animation: chpulse 1s infinite; }
@keyframes chpulse { 50% { opacity: .3; } }
.ch-voice { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.ch-play { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 0; background: rgba(0,0,0,.08); font-size: .9rem; cursor: pointer; color: inherit; }
.ch-msg.mine .ch-play { background: rgba(255,255,255,.25); }
.ch-wave { flex: 1; height: 4px; border-radius: 2px; background: currentColor; opacity: .35; position: relative; overflow: hidden; }
.ch-wave i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: currentColor; }
.ch-pollform { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 8px; }
.ch-pollform input { padding: 9px 12px; }
.ch-bubble.poll { min-width: 230px; }
.ch-poll-q { font-weight: 800; margin-bottom: 6px; }
.ch-poll-o { position: relative; display: flex; width: 100%; align-items: center; gap: 8px; font: inherit; text-align: left; border: 1.5px solid currentColor; border-color: rgba(127,127,127,.35); background: transparent; color: inherit; border-radius: 10px; padding: 7px 10px; margin: 4px 0; cursor: pointer; overflow: hidden; }
.ch-poll-o.on { border-color: currentColor; font-weight: 800; }
.ch-poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: currentColor; opacity: .12; }
.ch-poll-t { position: relative; flex: 1; }
.ch-poll-n { position: relative; font-weight: 800; }
.ch-poll-sum { display: block; opacity: .75; font-size: .74rem; margin-top: 2px; }
.ch-results { gap: 6px; }
.ch-hit { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; color: var(--ink); }
.ch-hit:hover { text-decoration: none; border-color: var(--accent); }
.ch-hit span { display: block; font-size: .92rem; margin-top: 2px; }
.ch-bubble mark, .ch-hit mark { background: #FFE27A; color: #221E1A; border-radius: 3px; padding: 0 1px; }
.flash-hl .ch-bubble { animation: chflash 1.8s ease; }
@keyframes chflash { 0%, 40% { box-shadow: 0 0 0 4px #F2C94C; } 100% { box-shadow: none; } }
.ch-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; z-index: 70; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.ch-roomform { margin: 6px 0; }
.ch-menu { position: fixed; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 6px; min-width: 220px; }
.ch-menu > button { display: block; width: 100%; text-align: left; font: inherit; font-weight: 700; background: none; border: 0; padding: 9px 10px; border-radius: 10px; color: var(--ink); cursor: pointer; }
.ch-menu > button:hover { background: var(--surface-2); }
.ch-menu > button.danger { color: var(--red); }
.ch-menu-reacts { display: flex; justify-content: space-between; padding: 2px 2px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ch-menu-reacts button { font-size: 1.5rem; background: none; border: 0; cursor: pointer; padding: 4px; border-radius: 10px; }
.ch-menu-reacts button:hover { background: var(--surface-2); transform: scale(1.15); }

/* Notfall */
.nf-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nf-top h1 { margin: 0; }
.nf-calls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.nf-call { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--surface-2); color: var(--ink); }
.nf-call:hover { text-decoration: none; }
.nf-call b { font-size: 1.4rem; font-weight: 900; }
.nf-call span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.nf-call.red { background: #E0553A; color: #fff; } .nf-call.red span { color: #fff; opacity: .9; }
.nf-call.blue { background: #2F7FB8; color: #fff; } .nf-call.blue span { color: #fff; opacity: .9; }
.nf-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.nf-row:last-of-type { border-bottom: 0; }
.nf-row > span { font-size: 1.2rem; }
.nf-row small { display: block; color: var(--muted); font-weight: 700; font-size: .75rem; }
.nf-person h2 { margin: 0 0 10px; }
.nf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.nf-f { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; }
.nf-f.wide { grid-column: 1 / -1; }
.nf-f small { display: block; color: var(--muted); font-weight: 700; font-size: .74rem; }
.nf-f b { font-size: .95rem; }
.nf-f.warn { background: #FFE9A8; color: #5A3F00; } .nf-f.warn small { color: #6B4A00; }
.nf-f.hi b { font-size: 1.3rem; color: #C0392B; }
.nf-edit { margin-top: 10px; }
.nf-edit > summary { cursor: pointer; color: var(--muted); font-weight: 700; }
/* Geschenkideen */
.gf-soon { padding: 10px 14px; font-size: .9rem; }
.gf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.gf-item { padding: 0; overflow: hidden; display: flex; flex-direction: column; margin: 0; }
.gf-img { display: block; aspect-ratio: 16 / 10; background: #fff; }
.gf-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gf-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gf-body h3 { margin: 0; font-size: 1rem; }
.gf-status { font-weight: 800; font-size: .85rem; background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 3px 8px; width: max-content; }
.gf-item.st-gekauft .gf-status { background: var(--aufgaben-soft, #E3F3EF); color: #1F6B61; }
.gf-item.st-verschenkt { opacity: .55; }
@media print {
  .no-print, .home-btn, .foot, header, nav, .flash { display: none !important; }
  body, .card { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .nf-page .card { border: 1px solid #999; break-inside: avoid; margin: 6px 0; padding: 10px; }
  .nf-call { border: 1px solid #999; background: #fff !important; color: #000 !important; } .nf-call span { color: #333 !important; }
  .nf-f { background: #fff; border: 1px solid #ccc; }
  a { color: #000 !important; text-decoration: none !important; }
}

/* ---------- Küchen-Display: Fotos aus dem Familienalbum (Update 96) ---------- */
.dsp-photos { padding: 10px; overflow: hidden; }
.dsp-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--line); }
.dsp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.dsp-photo img.on { opacity: 1; }
.dsp-photocap { margin: 8px 6px 2px; display: grid; gap: 1px; }
.dsp-photocap b { font-size: 1rem; }
.dsp-photocap span { font-size: .9rem; color: var(--muted); }
.dsp-memory { margin: 4px 6px 4px; font-weight: 600; color: var(--accent, #2F5D50); font-size: .95rem; }

.dsp-fdm { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.6); color: #FFD27A; font-weight: 700; font-size: .9rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dsp-fdm[hidden] { display: none; }

/* ---------- Zyklus (Update 100) ---------- */
.cy-page { --cy-red: #E0475B; --cy-red-soft: #FCE3E6; --cy-spot: #F3A3AE; --cy-green: #2E9E83; --cy-green-soft: #DDF3EC; }
.cy-who { margin: 0 0 6px; }
.cy-status { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.cy-ring { --p: 0; width: 124px; height: 124px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  background: conic-gradient(var(--cy-green) calc(var(--p) * 1%), var(--surface-2) 0); }
.cy-ring.is-period { background: conic-gradient(var(--cy-red) calc(var(--p) * 1%), var(--surface-2) 0); }
.cy-ring > div { width: 100px; height: 100px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
.cy-ring b { font-family: var(--display, inherit); font-size: 2.2rem; }
.cy-ring small { font-size: .68rem; color: var(--muted); font-weight: 700; max-width: 84px; }
.cy-facts { flex: 1 1 180px; min-width: 0; }
.cy-facts p { margin: 4px 0; }
.cy-big { font-size: 1.15rem; font-weight: 700; }
.cy-empty { flex: 1 1 100%; }
.cy-quick { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.cy-quick form { margin: 0; }
.cy-edit-head { display: flex; align-items: center; gap: 8px; }
.cy-edit-head h2 { flex: 1; margin: 0; text-align: center; font-size: 1.15rem; }
.cy-edit-head h2 small { font-size: .8rem; font-weight: 600; }
.cy-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cy-chip { position: relative; display: inline-flex; }
.cy-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cy-chip span { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 2px solid transparent; font-weight: 700; font-size: .88rem; cursor: pointer; user-select: none; }
.cy-chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); }
.cy-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cy-flow .cy-chip input:checked + span { background: var(--cy-red-soft); border-color: var(--cy-red); }
.cy-flow .cy-chip.f0 input:checked + span { background: var(--surface-2); border-color: var(--muted); }
.cy-flow i { font-style: normal; font-size: .75rem; letter-spacing: -2px; }
.cy-pain { display: flex; align-items: center; gap: 10px; }
.cy-pain input[type=range] { flex: 1; accent-color: var(--cy-red); }
.cy-pain span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.cy-pain-out { display: inline-block; min-width: 26px; padding: 1px 8px; margin-left: 6px; border-radius: 999px; background: var(--surface-2); color: var(--ink); text-align: center; letter-spacing: 0; }
.cy-del { margin-top: 6px; text-align: right; }
.cy-cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cy-cal-head h2 { flex: 1; margin: 0; text-align: center; font-size: 1.15rem; }
.cy-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cy-wd { text-align: center; font-size: .72rem; font-weight: 800; color: var(--muted); padding-bottom: 2px; }
.cy-day { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); font-size: .92rem; border: 2px solid transparent; }
a.cy-day:hover { text-decoration: none; background: var(--surface-2); }
.cy-day b { font-weight: 700; }
.cy-day.future { color: var(--muted); }
.cy-day.fert { background: var(--cy-green-soft); }
.cy-day.ovu { border-color: var(--cy-green); }
.cy-day.pred { border: 2px dashed var(--cy-red); color: var(--cy-red); }
.cy-day.spot { background: var(--cy-red-soft); }
.cy-day.per, a.cy-day.per:hover { background: var(--cy-red); color: #fff; }
.cy-day.today b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cy-day.today:not(.per) { font-weight: 800; box-shadow: inset 0 0 0 2px var(--ink); }
.cy-day.sel { outline: 3px solid var(--accent); outline-offset: 1px; }
.cy-day .dot { position: absolute; bottom: 9%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #8A5CF6; }
.cy-day.per .dot { background: #fff; }
.cy-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.cy-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cy-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.cy-legend .lg.per { background: var(--cy-red); }
.cy-legend .lg.pred { border: 2px dashed var(--cy-red); }
.cy-legend .lg.fert { background: var(--cy-green-soft); }
.cy-legend .lg.ovu { border: 2px solid var(--cy-green); }
.cy-legend .lg.dot { width: 6px; height: 6px; background: #8A5CF6; }
.cy-ins { list-style: none; padding: 0; margin: 0; }
.cy-ins li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.cy-ins li:last-child { border-bottom: 0; }
.cy-ins .grow { flex: 1; min-width: 0; }
.cy-bar { width: 70px; height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; flex: 0 0 auto; }
.cy-bar i { display: block; height: 100%; background: var(--cy-red); border-radius: 99px; }
.cy-wipe { margin-top: 14px; text-align: right; }
#einstellungen summary { cursor: pointer; }
.cy-note { margin: 18px 8px 6px; }

/* Mitteilungs-Protokoll (Update 101) */
.push-log { list-style: none; padding: 0; margin: 6px 0 0; max-height: 360px; overflow: auto; }
.push-log li { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.push-log .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.push-log .pl-ico { flex: 0 0 auto; }

/* Push-Geräte (Update 102) */
.push-devs { list-style: none; padding: 0; margin: 10px 0 0; }
.push-devs li { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.push-devs .grow { flex: 1; min-width: 0; }
.push-devs form { margin: 0; }

/* Hinweis „Neue Version“ (Update 103) */
.upd-banner { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 999; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-weight: 700; }
.upd-banner[hidden] { display: none; }
.upd-banner span { flex: 1; }
.upd-banner button { font: inherit; font-weight: 800; border: 0; border-radius: 12px; padding: 9px 14px; background: var(--accent); color: #fff; cursor: pointer; }

/* ---------- Medikamente (Update 105) ---------- */
.med-doses { list-style: none; padding: 0; margin: 0; }
.med-dose { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.med-act { display: flex; gap: 4px; margin-left: auto; }
.med-dose:last-child { border-bottom: 0; }
.med-dose form { margin: 0; }
.med-dose .grow { flex: 1 1 150px; min-width: 0; }
.med-time { flex: 0 0 auto; min-width: 52px; padding: 4px 8px; border-radius: 10px; background: var(--surface-2); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.med-dose.due .med-time { background: var(--accent); color: #fff; }
.med-dose.done { opacity: .7; }
.med-dose.done .med-time { background: #DDF3EC; color: #1F6E5B; }
.med-dose.hl { background: var(--accent-soft); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 12px; }
.med-ok { color: #1F8A6E; font-weight: 700; }
.med-bar { display: inline-block; vertical-align: middle; width: 80px; height: 6px; margin-left: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.med-bar i { display: block; height: 100%; background: var(--accent); }
.med-page .cy-chip small { font-weight: 600; opacity: .7; }
.med-dur[hidden] { display: none; }

/* ---------- Haustier-Plan (Update 105) ---------- */
.pet-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pet-btn-form { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pet-btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; border-radius: 18px; border: 2px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; }
.pet-btn span { font-size: 2.2rem; line-height: 1.1; }
.pet-btn b { font-size: 1.05rem; }
.pet-btn small { color: var(--muted); font-weight: 700; font-size: .78rem; }
.pet-btn:active { transform: scale(.98); }
.pet-btn.gassi { background: #E3F1FB; border-color: #B9DBF2; }
.pet-btn.futter { background: #FFF1DD; border-color: #F6D7A8; }
.pet-btn.late { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pet-min { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.pet-min label { position: relative; }
.pet-min input { position: absolute; opacity: 0; pointer-events: none; }
.pet-min span { display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); font-size: .76rem; font-weight: 800; cursor: pointer; }
.pet-feeds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pet-feed { padding: 5px 11px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; font-weight: 700; }
.pet-feed.done { background: #DDF3EC; color: #1F6E5B; }
.pet-feed.late { background: var(--accent-soft); color: var(--accent); }
.pet-later { margin-top: 10px; }
.pet-later summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.pet-later-btns { display: flex; gap: 6px; align-items: flex-end; }
.pet-log { list-style: none; padding: 0; margin: 0; }
.pet-log li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.pet-log li:last-child { border-bottom: 0; }
.pet-log form { margin: 0; }
.pet-log .grow { flex: 1; min-width: 0; }
.pet-log-t { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 44px; }
.pet-week { list-style: none; padding: 0; margin: 0; }
.pet-week li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 6px 0; }
.pet-week-n { font-weight: 800; grid-row: span 2; overflow: hidden; text-overflow: ellipsis; }
.pet-week-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pet-week-bar i { display: block; height: 100%; background: #4A9FD8; border-radius: 99px; }
.pet-food-big { font-size: 1.15rem; margin: 4px 0; }
.pet-food-big.low b { color: var(--accent); }
/* Update 113: Futtersack */
.pet-bag { height: 14px; border-radius: 8px; background: var(--surface-2); overflow: hidden; margin: 6px 0 2px; }
.pet-bag i { display: block; height: 100%; border-radius: 8px; background: var(--green); transition: width .4s; }
.pet-bag.low i { background: var(--accent); }
.pet-open { margin-top: 14px; padding: 12px; border-radius: 16px; background: var(--surface-2); display: grid; gap: 10px; }
.pet-open-check { flex-direction: row; align-items: center; gap: 12px; cursor: pointer; }
.pet-open-check input { position: absolute; opacity: 0; pointer-events: none; }
.pet-open-check .box { width: 30px; height: 30px; flex: none; border-radius: 9px; border: 2.5px solid var(--muted); background: var(--surface); display: grid; place-items: center; }
.pet-open-check input:checked + .box { background: var(--green); border-color: var(--green); }
.pet-open-check input:checked + .box::after { content: "✓"; color: #fff; font-weight: 900; font-size: 1.1rem; }
.pet-open-check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.pet-open-check small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; }
.pet-open-fields, .pet-open > button { display: none; }
.pet-open.on .pet-open-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.pet-open.on > button { display: block; }
.pet-hist { margin-top: 12px; }
.pet-hist summary { cursor: pointer; font-weight: 800; color: var(--muted); }
.pet-adopt { margin-top: 6px; }
.pet-open input, .pet-open select { background: var(--surface); }
.pet-time { width: auto; display: inline-block; padding: 4px 8px; margin: 0 4px; }
.pet-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pet-times input { min-width: 0; }

/* ---------- Unwetter & Hinweise Startseite (Update 105) ---------- */
.uw-box { display: grid; gap: 8px; margin: 10px 0 14px; }
.uw-alert { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid #F5C518; box-shadow: var(--shadow); overflow: hidden; }
.uw-alert.uw-l2 { border-left-color: #F28C28; background: #FFF4E8; }
.uw-alert.uw-l3 { border-left-color: #E03131; background: #FFECEC; }
.uw-alert.uw-l4 { border-left-color: #9C36B5; background: #F7E9FB; }
.uw-alert summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; }
.uw-alert summary::-webkit-details-marker { display: none; }
.uw-alert .uw-ico { font-size: 1.6rem; }
.uw-alert .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.uw-alert small { color: var(--muted); font-weight: 700; }
.uw-alert p { margin: 0 14px 10px; font-size: .9rem; }
.dsp-uw .uw-box { margin: 0 0 12px; }
.home-alert { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 16px; border-radius: 18px; background: var(--accent-soft); border: 1.5px solid var(--accent); color: var(--ink); }
.home-alert:hover { text-decoration: none; }
.home-alert > span:first-child { font-size: 1.7rem; }
.home-alert .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.home-alert small { color: var(--muted); font-weight: 700; }
.home-alert .arrow { font-weight: 800; color: var(--accent); }
.home-alert.pet { background: #FFF1DD; border-color: #F2A541; }

/* ---------- Passkeys (Update 105) ---------- */
.pk-login { margin: 14px 0 0; }
.pk-btn { width: 100%; }
.pk-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; font-weight: 700; margin: 14px 0 -4px; }
.pk-or::before, .pk-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pk-list { list-style: none; padding: 0; margin: 10px 0 0; }
.pk-list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.pk-list .grow { flex: 1; min-width: 0; }
.pk-list form { margin: 0; }

/* ===== Zählerstände (Update 109) ===== */
.mz-due { margin: 0 0 12px; box-shadow: none; }
.mz-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.mz-pick label { flex-direction: row; }
.mz-pick input { position: absolute; opacity: 0; pointer-events: none; }
.mz-pick span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--surface-2); border: 2px solid transparent; font-weight: 800; color: var(--ink); cursor: pointer; }
.mz-pick input:checked + span { background: var(--accent-soft); border-color: var(--accent); }
.mz-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.mz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.mz-photo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mz-photo-btn { flex-direction: row; cursor: pointer; }
.mz-lasthint { margin: -4px 0 0; }
.mz-card { scroll-margin-top: 80px; }
.mz-head { display: flex; align-items: center; gap: 12px; }
.mz-head h2 { margin: 0; font-size: 1.2rem; }
.mz-head .grow { min-width: 0; }
.mz-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; font-size: 1.5rem; background: var(--surface-2); border-radius: 14px; }
.mz-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 14px 0 6px; }
.mz-kpis div { background: var(--surface-2); border-radius: 14px; padding: 9px 11px; min-width: 0; }
.mz-kpis b { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mz-kpis span { font-size: .75rem; color: var(--muted); font-weight: 700; }
.mz-kpis .good b { color: var(--green); }
.mz-kpis .bad b { color: var(--red); }
.mz-chart { display: block; width: 100%; height: auto; margin-top: 8px; }
.mz-chart .mz-bar { fill: var(--accent); }
.mz-chart .mz-bar.part { opacity: .5; }
.mz-chart .mz-prev { fill: var(--line); }
.mz-chart .mz-axis { stroke: var(--line); stroke-width: 1; }
.mz-chart .mz-lbl { font-size: 10px; fill: var(--muted); text-anchor: middle; font-weight: 700; font-family: var(--body); }
.mz-legend { display: flex; gap: 14px; margin-top: 2px; }
.mz-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 3px; }
.mz-sw.cur { background: var(--accent); }
.mz-sw.prev { background: var(--line); }
.mz-period { margin: 10px 0 0; }
.mz-money { display: grid; gap: 3px; margin-top: 10px; padding: 11px 13px; border-radius: 14px; background: var(--surface-2); }
.mz-money strong { font-size: 1.02rem; }
.mz-money.bad { background: #FCE6E3; }
.mz-money.bad strong { color: var(--red); }
.mz-money.good { background: #E1F3EA; }
.mz-money.good strong { color: var(--green); }
.mz-list { margin-top: 12px; }
.mz-list summary { cursor: pointer; font-weight: 800; color: var(--muted); }
.mz-thumb { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: none; display: block; }
.mz-thumb.none { display: grid; place-items: center; background: var(--surface-2); font-size: 1.1rem; }
.mz-admin summary { cursor: pointer; }
.mz-admin h3 { margin: 18px 0 8px; font-size: 1rem; }
.mz-ps { display: flex; gap: 8px; }
@media (max-width: 560px) { .mz-admin .row3 { grid-template-columns: 1fr; } }

/* ===== Zähler: Abrechnungen & Preise (Update 110) ===== */
.mz-billlink { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 800; font-size: .92rem; }
.mz-now { display: grid; gap: 2px; }
.mz-tariff-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.mz-tariff-now span { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.mz-tariff-now small { display: block; font-size: .72rem; color: var(--muted); font-weight: 800; }
.mz-tariff-now b { font-variant-numeric: tabular-nums; }
.mz-h2 { font-size: 1.15rem; margin: 22px 0 8px; }
.mz-hist { display: grid; gap: 0; }
.mz-hrow { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.mz-hrow:first-child { border-top: 0; padding-top: 0; }
.mz-hrow.now .mz-hbar i { background: repeating-linear-gradient(45deg, var(--accent), var(--accent) 6px, color-mix(in srgb, var(--accent) 55%, transparent) 6px, color-mix(in srgb, var(--accent) 55%, transparent) 12px); }
.mz-hhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mz-hbar { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.mz-hbar i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.mz-bad { color: var(--red); font-weight: 800; }
.mz-good { color: var(--green); font-weight: 800; }
.mz-step { margin: 14px 0 -2px; font-size: .95rem; }
.mz-cur strong { color: var(--accent); }
.mz-tag { display: inline-block; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: 1px; }

/* ===== Zähler: neue Ansicht (Update 115) ===== */
.mz-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 0 0 14px; background: var(--surface-2); border-radius: 16px; scrollbar-width: none; }
.mz-tabs::-webkit-scrollbar { display: none; }
.mz-tabs a { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; position: relative; }
.mz-tabs a:hover { text-decoration: none; color: var(--ink); }
.mz-tabs a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(34,30,26,.12); }
.mz-tabs .mz-dot { position: absolute; top: 7px; right: 7px; }
.mz-last.fresh { box-shadow: 0 0 0 3px var(--green), var(--shadow); }
.mz-last-row { display: flex; gap: 14px; align-items: center; }
.mz-last-row .grow { min-width: 0; }
.mz-last-photo { width: 84px; height: 84px; flex: none; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); font-size: 2rem; }
.mz-last-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mz-last-val { font-family: var(--display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mz-last-val small { font-size: .95rem; color: var(--muted); }
.mz-status { margin: 12px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 800; font-size: .9rem; color: var(--muted); }
.mz-status.ok { background: #E1F3EA; color: var(--green); }
.mz-status.due { background: #FFF1CC; color: #9A6700; }
.mz-add { margin-top: 12px; }
.mz-add > summary { list-style: none; display: flex; justify-content: center; }
.mz-add > summary::-webkit-details-marker { display: none; }
.mz-add[open] > summary { display: none; }
.mz-shot { position: relative; display: grid; place-items: center; min-height: 120px; border: 2px dashed var(--line); border-radius: 16px; background: var(--surface-2); cursor: pointer; overflow: hidden; text-align: center; padding: 14px; }
.mz-shot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mz-shot.has { padding: 0; border-style: solid; }
.mz-shot img { width: 100%; max-height: 260px; object-fit: contain; display: block; background: #000; }
.mz-shot-ph b { display: block; font-size: 1.05rem; }
.mz-shot-ph small { color: var(--muted); font-weight: 600; }
.mz-warn { color: var(--red); font-weight: 700; margin: 0; }
.mz-more summary { cursor: pointer; font-weight: 800; color: var(--muted); }
.mz-more[open] { display: grid; gap: 10px; }
.mz-stat h2, .mz-cost h2, .mz-readings h2 { font-size: 1.1rem; margin: 0 0 10px; }
.mz-stat h3 { font-size: .95rem; margin: 16px 0 8px; }
.mz-trow { display: grid; grid-template-columns: 1.1fr 1.1fr .9fr 1.3fr; gap: 6px; align-items: baseline; padding: 7px 0 3px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; font-size: .92rem; }
.mz-trow > span { min-width: 0; }
.mz-trow .mz-v { font-weight: 800; }
.mz-trow .mz-mon small { color: var(--muted); font-weight: 700; font-size: .72rem; }
.mz-trow i { font-style: normal; font-size: .78rem; font-weight: 800; }
.mz-thead { border-top: 0; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding-top: 0; }
.mz-tbar { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 4px; background: transparent; margin-top: 2px; }
.mz-tbar i { position: absolute; left: 0; top: 0; height: 6px; border-radius: 4px; }
.mz-tbar i.prev { background: var(--line); }
.mz-tbar i.cur { background: var(--accent); top: 0; height: 6px; }
.mz-tbar i.cur.est { background: repeating-linear-gradient(45deg, var(--accent), var(--accent) 4px, color-mix(in srgb, var(--accent) 45%, transparent) 4px, color-mix(in srgb, var(--accent) 45%, transparent) 8px); }
.mz-trow.part .mz-v { color: var(--muted); }
.mz-tnote { margin: 10px 0 0; }
.mz-years { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.mz-years div { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; display: grid; }
.mz-years span { font-weight: 800; font-variant-numeric: tabular-nums; }
.mz-years small { font-size: .72rem; }
.mz-billlink.solo { display: block; margin: 0 0 14px; border-top: 0; padding: 14px 18px; }
.mz-kpis .mz-kpi-wait b { color: var(--muted); }
.mz-readings .list-item.fresh { background: #E1F3EA; border-radius: 12px; padding-left: 8px; padding-right: 8px; }

/* ===== Skiurlaub (Update 120) ===== */
.ski-page { --ski: #3B82C4; --ski-soft: #E3EFFA; }
.ski-back { margin-bottom: 4px; }
/* Update 135: winterliche Übersicht – Himmel, Berge, Gondel, Schneefall */
.ski-hero { --sky1: #CFE4F7; --sky2: #F4F9FE; --m1: #A9C3DD; --m2: #E3EEF8; --m3: #FFFFFF; --cap: #FFFFFF; --tree: #2F5D4E; --cable: #5B6B7C; --gondel: #E04F3A;
  position: relative; overflow: hidden; padding-bottom: 104px; background: linear-gradient(180deg, var(--sky1), var(--sky2) 75%); }
.ski-hero > *:not(.ski-scene) { position: relative; z-index: 1; }
.ski-scene { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ski-scene svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; }
.ski-scene .m1 { fill: var(--m1); } .ski-scene .m2 { fill: var(--m2); } .ski-scene .m3 { fill: var(--m3); } .ski-scene .cap { fill: var(--cap); }
.ski-scene .tree { fill: var(--tree); }
.ski-scene .cable { stroke: var(--cable); stroke-width: 1; }
.ski-scene .gondel path { stroke: var(--cable); stroke-width: 1.2; } .ski-scene .gondel rect { fill: var(--gondel); } .ski-scene .gondel .win { fill: #DCEBFA; }
.ski-scene .track { stroke: #9DB7D1; stroke-width: 1.2; stroke-dasharray: 2 2; }
.ski-scene .snow { position: absolute; inset: -120px 0 0; background-image: radial-gradient(circle, #fff 1.4px, transparent 1.8px), radial-gradient(circle, #fff 1px, transparent 1.4px);
  background-size: 60px 60px, 37px 37px; background-position: 0 0, 18px 22px; opacity: .9; animation: ski-snow 9s linear infinite; }
.ski-scene .snow.s2 { background-size: 90px 90px, 53px 53px; animation-duration: 14s; opacity: .7; }
@keyframes ski-snow { to { transform: translateY(120px); } }
@media (prefers-reduced-motion: reduce) { .ski-scene .snow { animation: none; } }
.ski-hero-wx { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 12px 6px 8px; border-radius: 14px; background: rgba(255,255,255,.55); color: var(--ink); text-decoration: none; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); max-width: 100%; }
.ski-hero-wx:hover { text-decoration: none; }
.ski-hero-wx .ic { font-size: 1.6rem; line-height: 1; }
.ski-hero-wx b { font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.ski-hero-wx span { font-size: .82rem; font-weight: 700; line-height: 1.25; }
.ski-hero-wx small { font-weight: 600; opacity: .8; }
:root[data-theme="dark"] .ski-hero-wx { background: rgba(20, 30, 45, .55); }
.ski-hero .ski-count { box-shadow: 0 6px 18px rgba(32, 80, 130, .25); }
.ski-hero .ski-hero-act .btn-ghost { background: rgba(255, 255, 255, .6); }
.ski-hero-main { display: flex; gap: 14px; align-items: flex-start; }
.ski-hero h2 { margin: 0 0 4px; font-size: 1.3rem; }
.ski-hero .grow { min-width: 0; }
.ski-count { flex: none; text-align: center; background: var(--ski); color: #fff; border-radius: 16px; padding: 10px 12px; min-width: 84px; }
.ski-count b { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; }
.ski-count span { font-size: .72rem; font-weight: 800; }
.ski-hero-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ski-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.ski-tile { display: grid; gap: 2px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; color: var(--ink); box-shadow: var(--shadow); min-height: 112px; }
.ski-tile:hover { text-decoration: none; border-color: var(--ski); }
.ski-tile .ic { font-size: 1.7rem; line-height: 1.2; }
.ski-tile b { font-size: .98rem; line-height: 1.2; }
.ski-tile small { color: var(--muted); font-weight: 700; font-size: .76rem; }
.ski-more summary { cursor: pointer; }
.ski-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ski-sum span { background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .88rem; }
.ski-sum span.ok { background: #E1F3EA; color: var(--green); }
.ski-sum span.bad { background: #FCE6E3; color: var(--red); }
.ski-hh-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ski-hh-head h2 { margin: 0; font-size: 1.1rem; }
.ski-hh .list { margin: 6px 0; }
.ski-st { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--surface-2); font-size: 1.1rem; cursor: pointer; }
.ski-person.st-nein b { text-decoration: line-through; color: var(--muted); }
.ski-me { font-size: .7rem; font-weight: 800; background: var(--ski); color: #fff; border-radius: 999px; padding: 2px 7px; vertical-align: 2px; }
.ski-inline select { width: auto; max-width: 46vw; padding: 6px 28px 6px 10px; font-size: 16px; }
.ski-inline { margin: 0; }
.ski-beds { display: flex; flex-wrap: wrap; gap: 6px; }
.ski-bed { padding: 6px 10px; border-radius: 10px; border: 1.5px dashed var(--line); font-size: .85rem; font-weight: 700; color: var(--muted); }
.ski-bed.full { border-style: solid; border-color: transparent; background: var(--ski-soft); color: var(--ink); }
.ski-bed.over { background: #FCE6E3; color: var(--red); }
.ski-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ski-checks form { margin: 0; }
.ski-chk { border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.ski-chk.on { background: #E1F3EA; border-color: transparent; color: var(--green); }
.ski-pre { white-space: pre-wrap; background: var(--surface-2); border-radius: 12px; padding: 12px; font-size: .85rem; margin: 0 0 8px; font-family: var(--body); }
.ski-add .idea-chips { margin-top: 4px; }
.ski-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.ski-item:first-of-type { border-top: 0; }
.ski-item form { margin: 0; }
.ski-item.done .grow { text-decoration: line-through; color: var(--muted); }
.ski-tick { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--muted); background: var(--surface); color: #fff; font-weight: 900; cursor: pointer; padding: 0; }
.ski-item.done .ski-tick { background: var(--green); border-color: var(--green); }
.ski-grp { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 2px; }
.ski-add-inline { display: flex; gap: 8px; align-items: center; }
.ski-add-inline input { flex: 1; }
.ski-countdown { text-align: center; background: linear-gradient(135deg, var(--ski), #6AA9E0); color: #fff; }
.ski-countdown b { display: block; font-family: var(--display); font-size: 3rem; line-height: 1; }
.ski-countdown span { font-weight: 800; }
.ski-wx-now { display: flex; gap: 12px; align-items: center; }
.ski-wx-now .ic { font-size: 2.4rem; }
.ski-wx-now b { font-family: var(--display); font-size: 1.8rem; }
.ski-snow { text-align: center; background: var(--ski-soft); border-radius: 14px; padding: 8px 12px; }
.ski-snow b { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--ski); }
.ski-snow small { font-size: .7rem; font-weight: 800; color: var(--muted); }
.ski-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ski-day { display: grid; justify-items: center; gap: 1px; padding: 8px 2px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.ski-day.trip { background: var(--ski-soft); box-shadow: inset 0 0 0 2px var(--ski); }
.ski-day .ic { font-size: 1.3rem; }
.ski-day small { font-size: .68rem; font-weight: 700; }
.ski-new { color: var(--ski); font-weight: 800 !important; }
.ski-meal { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.ski-meal:first-child { border-top: 0; }
.ski-meal-day { width: 48px; flex: none; text-align: center; background: var(--surface-2); border-radius: 12px; padding: 6px 0; line-height: 1.15; }
.ski-meal-day b { display: block; }
.ski-meal-day small { font-size: .72rem; color: var(--muted); font-weight: 700; }
.ski-meal-txt { display: grid; color: var(--ink); min-width: 0; padding-top: 4px; }
.ski-meal-txt:hover { text-decoration: none; }
.ski-plan-day.today { box-shadow: 0 0 0 2px var(--ski), var(--shadow); }
.ski-plan-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.ski-hh-head + .ski-plan-row, .ski-hh-head + p + .ski-plan-row { border-top: 0; }
.ski-time { width: 52px; flex: none; font-weight: 800; color: var(--ski); font-variant-numeric: tabular-nums; padding-top: 1px; }
.ski-sos { background: #FCE6E3; }
.ski-sos h2 { margin-top: 0; }
.ski-sos-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.ski-sos-nums a { display: grid; background: var(--surface); border-radius: 14px; padding: 10px 12px; color: var(--ink); }
.ski-sos-nums a:hover { text-decoration: none; }
.ski-sos-nums b { font-family: var(--display); font-size: 1.5rem; color: var(--red); }
.ski-sos-nums small { font-weight: 700; color: var(--muted); }
.ski-transfer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; margin-top: 6px; border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.ski-transfer span { font-weight: 800; color: var(--ski); }
.ski-trow { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); align-items: baseline; font-variant-numeric: tabular-nums; font-size: .92rem; }
.ski-trow > span { min-width: 0; }
.ski-trow small { display: block; font-size: .72rem; }
.ski-thead { border-top: 0; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.ski-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 4px; margin-bottom: 10px; }
.ski-grid a { aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--surface-2); }
.ski-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ski-photo-big img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; background: #000; display: block; }
.ski-unit .ski-room { border-top: 1px solid var(--line); padding: 10px 0; }
.ski-room-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ski-room-head b { flex: 1; min-width: 0; }
.ski-bedbox { display: grid; gap: 4px; align-content: start; padding: 8px 10px; border-radius: 12px; border: 1.5px dashed var(--line); min-width: 120px; }
.ski-bedbox.full { border-style: solid; border-color: transparent; background: var(--ski-soft); }
.ski-bedbox small { font-weight: 800; color: var(--muted); font-size: .74rem; }
.ski-bedbox span { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: .88rem; }
.ski-bedbox span.free { color: var(--muted); font-weight: 600; }
.ski-x { margin: 0 0 0 auto; }
.ski-x button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 2px; font-size: .8rem; }
.ski-bedcount { display: grid; gap: 6px; }
.ski-bedcount > label { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.ski-bedcount > label > span:first-child small { display: block; font-size: .72rem; font-weight: 700; }
.ski-step { display: inline-flex; align-items: center; gap: 4px; }
.ski-step input { width: 3.2em; text-align: center; padding: 6px 2px; }
.ski-step button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--surface-2); font-size: 1.1rem; font-weight: 800; color: var(--ink); cursor: pointer; }
.seg-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.seg-units label { flex-direction: row; }
.seg-units input { position: absolute; opacity: 0; pointer-events: none; }
.seg-units span { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; background: var(--surface-2); border: 2px solid transparent; font-size: 1.4rem; cursor: pointer; text-align: center; }
.seg-units span small { font-size: .66rem; font-weight: 800; color: var(--ink); line-height: 1.15; }
.seg-units input:checked + span { background: var(--ski-soft); border-color: var(--ski); }
.ski-pass-head { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.ski-season { display: block; font-size: .88rem; margin-top: 2px; }
.ski-pass-hh { border-top: 1px solid var(--line); padding: 8px 0; }
.ski-pass-row { display: flex; gap: 8px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.ski-pass-total { border-top: 2px solid var(--line); padding-top: 8px; }
.ski-pass-import, .ski-pass-table { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.ski-pass-import summary, .ski-pass-table summary { cursor: pointer; }
.ski-ptable { display: grid; font-variant-numeric: tabular-nums; font-size: .86rem; margin-bottom: 6px; }
.ski-prow { display: grid; grid-template-columns: 3em repeat(4, minmax(0, 1fr)); gap: 4px; padding: 3px 0; border-top: 1px solid var(--line); }
.ski-prow.head { border-top: 0; font-size: .7rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.ski-prow span:not(:first-child) { text-align: right; }
.ski-famimport { display: flex; align-items: center; gap: 12px; background: var(--ski-soft); }
.ski-famimport .grow { min-width: 0; }
.ski-grprow { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
.ski-grprow select { width: auto; }
.ski-points b { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--ski); display: block; }
.ski-points span { font-weight: 700; color: var(--muted); font-size: .88rem; }
.ski-lifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.ski-lifts form { margin: 0; }
.ski-lift { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; border: 0; background: var(--ski-soft); color: var(--ink); font: inherit; cursor: pointer; }
.ski-lift span { font-weight: 700; font-size: .86rem; line-height: 1.2; }
.ski-lift b { color: var(--ski); }
.ski-lift small { grid-column: 1 / -1; font-size: .7rem; color: var(--muted); font-weight: 700; }
.ski-lift:active { transform: scale(.97); }
.ski-lift.no { opacity: .4; cursor: not-allowed; }
.ski-prof { border: 2px solid var(--ski); }
.ski-prof-head { display: flex; align-items: center; gap: 12px; }
.ski-prof-head h2 { margin: 0; font-size: 1.25rem; }
.ski-prof-head .grow { min-width: 0; }
.ski-prof-av { width: 48px; height: 48px; flex: none; display: grid; place-items: center; font-size: 1.6rem; background: var(--ski-soft); border-radius: 50%; }
.ski-prof-pass { margin-top: 12px; }
.ski-prof-big { display: flex; align-items: center; gap: 12px; background: var(--ski-soft); border-radius: 14px; padding: 12px 14px; }
.ski-prof-big > span { font-size: 1.8rem; }
.ski-prof-big b { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 600; line-height: 1.15; }
.ski-prof-big small { color: var(--muted); font-weight: 700; }
.ski-prof-days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ski-prof-days form { margin: 0; }
.ski-prof-days button { width: 46px; padding: 6px 0; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--muted); display: grid; justify-items: center; cursor: pointer; font: inherit; }
.ski-prof-days button small { font-size: .68rem; font-weight: 800; }
.ski-prof-days button b { font-size: 1.05rem; }
.ski-prof-days button.on { background: var(--ski); border-color: var(--ski); color: #fff; }
.ski-prof-card { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); color: var(--ink); }
.ski-prof-card:hover { text-decoration: none; }
.ski-prof-card .grow { min-width: 0; }
.ski-prof-card small { font-weight: 700; color: var(--muted); font-size: .76rem; }
.ski-prof-pts { text-align: center; }
.ski-prof-pts b { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--ski); }
.ski-prof-buy { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ski-prof-buy form { margin: 0; }
.ski-prof-info { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ski-prof-info a, .ski-prof-info span { color: var(--ink); font-weight: 700; }
/* Update 130: Skipass im Profil wählen, Kosten der Familie, Liftplan */
.ski-prof-sel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin: 8px 0 0; }
.ski-prof-sel > label:not(.check) { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.ski-prof-sel > label.sel-n { flex: 0 1 130px; }
.ski-prof-sel select { width: 100%; }
.ski-prof-sel .check { margin: 0 0 8px; }
.ski-prof-sum { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.ski-prof-sum > summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; font-weight: 700; list-style: none; }
.ski-prof-sum > summary::-webkit-details-marker { display: none; }
.ski-prof-sum > summary span::after { content: ' ▾'; color: var(--muted); }
.ski-prof-sum[open] > summary span::after { content: ' ▴'; }
.ski-prof-sum .ski-pass-row a { color: var(--ink); }
.ski-prof-tarif { margin: 6px 0 0; }
.ski-tarife { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 10px; }
.ski-tarif { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; display: grid; gap: 1px; }
.ski-tarif small { color: var(--muted); font-weight: 700; font-size: .78rem; }
.ski-tarif-who { font-size: .8rem; }
.ski-years-row { display: grid; grid-template-columns: 1fr 5.5em auto 5.5em; gap: 6px; align-items: center; }
.ski-years-row > span:first-child { font-weight: 700; font-size: .85rem; }
/* Update 134: ganze Profilseite */
.ski-status-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.ski-status-row .pill { cursor: pointer; font: inherit; font-weight: 700; }
.ski-prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ski-prof-grid h2 { margin-top: 0; }
@media (max-width: 560px) { .ski-prof-grid { grid-template-columns: 1fr; } }
.ski-invite-row { flex-wrap: wrap; }
.ski-invite-act { display: flex; gap: 6px; }
.ski-invite h1 { font-size: 1.5rem; }
/* Update 140: Profilbild & Lieblings-Sachen */
.ski-prof-av { overflow: hidden; }
.ski-prof-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ski-prof-av.big { width: 76px; height: 76px; font-size: 2.2rem; }
.ski-ich-foto { display: flex; gap: 14px; align-items: center; }
.ski-fun { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ski-fun span { background: var(--ski-soft); border-radius: 999px; padding: 5px 11px; font-size: .85rem; font-weight: 700; }
.ski-fun-empty { display: inline-block; margin-top: 8px; font-weight: 700; }
/* Update 141: Hütten, Liftplan im Fenster */
.ski-hut-other[hidden] { display: none !important; }
.ski-huts { display: flex; flex-wrap: wrap; gap: 6px; }
.ski-huts span { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 4px 6px 4px 11px; font-size: .85rem; font-weight: 700; }
.ski-huts form { margin: 0; } .ski-huts button { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; padding: 0 4px; }
html.ski-plan-open, html.ski-plan-open body { overflow: hidden; }
.ski-plan-box { position: fixed; inset: 0; z-index: 9999; background: #0d1520; display: flex; flex-direction: column; }
.ski-plan-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px; color: #fff; }
.ski-plan-bar span { display: flex; gap: 8px; align-items: center; }
.ski-plan-bar button, .ski-plan-bar a { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
.ski-plan-bar [data-x] { font-size: 1.2rem; padding: 6px 14px; background: #fff; color: #0d1520; }
.ski-plan-view { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; display: flex; align-items: center; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.ski-plan-view img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.ski-plan-view.big { display: block; }
.ski-plan-view.big img { max-width: none; max-height: none; width: 250%; cursor: zoom-out; }
.ski-plan-hint { margin: 0; padding: 6px 12px calc(env(safe-area-inset-bottom) + 8px); color: rgba(255,255,255,.6); font-size: .8rem; text-align: center; }
.ski-plan-view iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.ski-prof-spend { margin-top: 8px; background: var(--surface-2); border-radius: 14px; padding: 8px 12px; }
.ski-prof-spend > summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; font-weight: 700; list-style: none; }
.ski-prof-spend > summary::-webkit-details-marker { display: none; }
.ski-prof-spend > summary b { font-family: var(--display); font-size: 1.15rem; color: var(--ski); }
.ski-prof-spend .ski-pass-row { margin-top: 4px; }
.ski-mini-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.ski-plink { color: var(--ink); } .ski-plink:hover { text-decoration: underline; }
/* Update 155: Profile – Stories, Timeline, Likes, Anstupsen */
.ski-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: var(--ski-soft); font-size: 1.3rem; flex: none; position: relative; }
.ski-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ski-av.online::after { content: ''; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid var(--surface); }
.ski-stories { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.ski-stories::-webkit-scrollbar { display: none; }
.ski-story { display: grid; justify-items: center; gap: 4px; width: 66px; flex: none; color: var(--ink); text-decoration: none; }
.ski-story > span:not(.ski-story-av) { font-size: .75rem; font-weight: 700; max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ski-av.ring { width: 58px; height: 58px; font-size: 1.8rem; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--line); }
.ski-story.on .ski-av.ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #22c55e; }
.ski-story.on .ski-av.ring::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2px solid var(--surface); }
.ski-compose-row { display: flex; gap: 10px; align-items: flex-start; }
.ski-compose-row textarea { flex: 1; min-height: 52px; resize: vertical; }
.ski-compose-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.ski-compose-pic { cursor: pointer; }
.ski-post { padding: 0; overflow: hidden; }
.ski-post header { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.ski-post header .grow { display: grid; line-height: 1.2; }
.ski-post-img { display: block; width: 100%; max-height: 520px; object-fit: cover; background: var(--surface-2); }
.ski-post-txt { margin: 0; padding: 10px 14px 0; white-space: normal; overflow-wrap: anywhere; }
.ski-like-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px 10px; margin: 0; }
.ski-like { border: 0; background: none; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 999px; color: var(--ink); }
.ski-like .h { font-size: 1.35rem; line-height: 1; display: inline-block; }
.ski-like.pop .h { animation: ski-pop .35s ease; }
@keyframes ski-pop { 50% { transform: scale(1.4); } }
.ski-people { display: grid; gap: 10px; }
@media (min-width: 640px) { .ski-people { grid-template-columns: 1fr 1fr; } }
.ski-person { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; }
.ski-person-top { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.ski-person-top .grow { display: grid; line-height: 1.25; min-width: 0; }
.ski-person .ski-fun { margin: 0; }
.ski-person-act { display: flex; gap: 6px; flex-wrap: wrap; }
.ski-person-act form { margin: 0; }
.ski-poke { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; animation: ski-poke-in .5s ease; }
.ski-poke-hand { font-size: 1.6rem; display: inline-block; animation: ski-wiggle 1s ease 2; }
@keyframes ski-wiggle { 25% { transform: translateX(6px) rotate(-10deg); } 75% { transform: translateX(-3px); } }
@keyframes ski-poke-in { from { opacity: 0; transform: translateY(-6px); } }
.ski-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ski-grid a { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--ink); text-decoration: none; }
.ski-grid img { width: 100%; height: 100%; object-fit: cover; }
.ski-grid a.txt span { font-size: .72rem; padding: 6px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
@media (prefers-reduced-motion: reduce) { .ski-poke, .ski-poke-hand, .ski-like.pop .h { animation: none; } }
/* Update 156: Profile-Leiste & Wischen */
.ski-page main > .ski-stories { margin: 0 0 10px; }
.ski-story.act .ski-av.ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.ski-story.act span:last-child { color: var(--accent); }
.ski-swipe-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 2px 0; }
.ski-swipe-nav a { font-weight: 800; font-size: .9rem; text-decoration: none; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.ski-swipe-l main { transform: translateX(-24px); opacity: .4; transition: .12s; }
body.ski-swipe-r main { transform: translateX(24px); opacity: .4; transition: .12s; }
.ski-pay { margin-top: 10px; display: grid; gap: 6px; }
.ski-pay .ski-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.ski-pay select { width: auto; min-width: 9em; padding-top: 6px; padding-bottom: 6px; }
.ski-pay details > summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.ski-pay-for { display: grid; gap: 4px; margin-top: 6px; }
/* Update 161: Timeline unter den Kacheln, Chat-Kachel */
.ski-hub-tl { margin-top: 16px; }
.ski-hub-tl > .ski-hh-head { margin: 0 4px 8px; }
.ski-hub-tl > .ski-hh-head h2 { margin: 0; }
.ski-chat-all { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; border: 0; }
.ski-chat-all .ic { font-size: 2rem; }
.ski-chat-all .grow { display: grid; }
.ski-chat-all b { font-size: 1.1rem; }
.ski-chat-all .chev { font-size: 1.6rem; color: var(--muted); }
.ski-badge { background: #ef4444; color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 800; }
.ski-chat-list { display: grid; }
.ski-chat-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ski-chat-row:last-child { border-bottom: 0; }
.ski-chat-row .grow { display: grid; min-width: 0; }
.ski-chat-row .grow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ski-chat-meta { display: grid; justify-items: end; gap: 3px; }
.ski-pick { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.ski-pick-p { display: grid; justify-items: center; gap: 4px; width: 70px; cursor: pointer; position: relative; }
.ski-pick-p input { position: absolute; opacity: 0; pointer-events: none; }
.ski-pick-p .ski-av { width: 54px; height: 54px; font-size: 1.6rem; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--line); transition: .15s; }
.ski-pick-p input:checked + .ski-av { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); transform: scale(1.05); }
.ski-pick-p input:checked + .ski-av::before { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; font-weight: 900; font-size: 1.4rem; z-index: 1; }
.ski-pick-p span:last-child { font-size: .78rem; font-weight: 700; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ski-pick-name { display: grid; gap: 4px; margin-bottom: 10px; }
.ski-pick-name[hidden] { display: none; }
.ski-compose-prev { margin-top: 8px; display: grid; justify-items: start; gap: 6px; }
.ski-compose-prev[hidden] { display: none; }
.ski-compose-prev img { max-width: 100%; border-radius: 12px; }
/* Update 163: Heute, Foto-Pflicht, Challenge, Foto des Tages, Check-in, Treffpunkte, Rückblick */
.ski-story-av { position: relative; display: block; }
.ski-duty { position: absolute; right: -4px; bottom: -2px; font-style: normal; font-size: .7rem; line-height: 1; background: var(--surface); border-radius: 99px; padding: 3px 4px; box-shadow: 0 1px 3px rgba(0,0,0,.2); color: var(--muted); }
.ski-duty.ok { background: #dcfce7; }
.ski-story-loc { font-size: .62rem; color: var(--muted); max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: -3px; }
.ski-heute { display: grid; gap: 10px; }
.ski-heute h2 { margin: 0; }
.ski-duty-box { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; }
.ski-duty-box.ok { background: #f0fdf4; border-color: #bbf7d0; }
.ski-duty-box .btn { justify-self: start; margin-top: 4px; }
.ski-ch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, #eef4ff, #f5f0ff); }
.ski-ch .ic { font-size: 1.8rem; }
.ski-ch .grow { display: grid; }
.ski-pod-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.ski-pod { display: flex; gap: 8px; align-items: center; text-decoration: none; color: var(--ink); background: var(--bg); border-radius: 12px; padding: 6px; }
.ski-pod img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.ski-pod span { display: grid; min-width: 0; }
.ski-loc-form { display: grid; gap: 2px; }
.ski-loc-form label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; }
.ski-loc-now { font-size: .85rem; font-weight: 700; margin-top: 2px; }
.ski-meet { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); flex-wrap: wrap; }
.ski-meet.soon { border-color: #f2613f; background: #fff5f2; }
.ski-meet .grow { display: grid; min-width: 140px; }
.ski-meet-t { display: grid; justify-items: center; min-width: 52px; }
.ski-meet-t b { font-size: 1.15rem; }
.ski-meet-act { display: flex; gap: 6px; }
.ski-meet-new summary { cursor: pointer; }
.ski-meet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ski-wrap-link { display: flex; gap: 6px; align-items: baseline; text-decoration: none; color: var(--ink); padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.ski-wrap-link.hot { background: linear-gradient(135deg, #2b5fa8, #7b3fa0); color: #fff; }
.ski-wrap-link small { opacity: .75; flex: 1; }
.ski-ch-check { margin-top: 8px; font-size: .85rem; }
.ski-vote { border: 0; background: none; font: inherit; cursor: pointer; padding: 4px 8px; border-radius: 99px; color: var(--ink); }
.ski-vote.on { background: #fef3c7; }
.ski-vote.ro { cursor: default; }
.ski-badge-pod, .ski-badge-ch { font-size: 1.2rem; }
.ski-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ski-board li { display: flex; align-items: center; gap: 8px; }
.ski-board .rk { width: 28px; text-align: center; }
.wr { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; border-radius: 20px; scrollbar-width: none; margin-top: 8px; }
.wr::-webkit-scrollbar { display: none; }
.wr-s { flex: 0 0 100%; scroll-snap-align: start; min-height: 70vh; background: var(--wc); background-image: radial-gradient(circle at 20% 10%, rgba(255,255,255,.25), transparent 50%), linear-gradient(160deg, transparent, rgba(0,0,0,.35)); color: #fff; display: grid; grid-template-rows: auto 1fr auto; padding: 24px 20px; text-align: center; position: relative; }
.wr-ic { font-size: 3.2rem; }
.wr-c { align-self: center; display: grid; gap: 8px; justify-items: center; }
.wr-c small { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; opacity: .8; }
.wr-c h2 { margin: 0; font-size: 1.8rem; color: #fff; }
.wr-c p { margin: 0; }
.wr-c .num { font-size: 4.2rem; font-weight: 900; line-height: 1; }
.wr-c .big { font-size: 1.1rem; font-weight: 800; margin-top: 18px; }
.wr-c .ski-av.big { width: 84px; height: 84px; font-size: 2.4rem; box-shadow: 0 0 0 4px rgba(255,255,255,.6); }
.wr-c .btn { background: #fff; color: #222; }
.wr-img { max-width: 100%; max-height: 46vh; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.wr-list { list-style: none; padding: 0; margin: 6px 0 0; width: min(320px, 100%); display: grid; gap: 4px; text-align: left; }
.wr-list li { display: grid; grid-template-columns: 1fr auto; background: rgba(255,255,255,.14); border-radius: 10px; padding: 6px 10px; }
.wr-list li small { grid-column: 1 / -1; opacity: .75; text-transform: none; letter-spacing: 0; font-weight: 600; }
.wr-pods { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; width: 100%; }
.wr-pods figure { margin: 0; }
.wr-pods img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.wr-pods figcaption { font-size: .7rem; }
.wr-n { font-size: .75rem; opacity: .7; }
.wr-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0; }
.wr-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); }
.wr-dots i.on { background: var(--ink); width: 18px; }
.ski-liftplan { display: block; margin: 8px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.ski-liftplan img { display: block; width: 100%; height: auto; }
.ski-petrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.ski-petrow .ski-st { display: grid; place-items: center; cursor: default; }
.ski-bed.pet { background: #FFF1CC; }
@media (max-width: 420px) { .ski-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ===== DUNKELMODUS START ===== */
:root[data-theme="dark"] {
  --bg: #171412; --surface: #221E1B; --surface-2: #2C2723; --line: #3A332E; --ink: #F3EEE7; --text: #F3EEE7; --muted: #A89E92;
  --accent-soft: #3D241C; --essen-soft: #3D241C; --aufgaben-soft: #16302C; color-scheme: dark;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6); --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.7);
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] img[src$="logo.svg"] { filter: invert(1) hue-rotate(180deg) saturate(1.4); }
:root[data-theme="dark"] .admin-bar { background: #2C2723; }
:root[data-theme="dark"] .im-day.sel .n { background: var(--ink); color: var(--bg); }
:root[data-theme="dark"] .med-dose.done .med-time { background: #173A31; color: #7FD6BC; }
:root[data-theme="dark"] .pet-btn.gassi { background: #1A2C3A; border-color: #27445A; }
:root[data-theme="dark"] .pet-btn.futter { background: #3A2C17; border-color: #5A4423; }
:root[data-theme="dark"] .pet-feed.done { background: #173A31; color: #7FD6BC; }
:root[data-theme="dark"] .uw-alert.uw-l2 { background: #3A2A17; }
:root[data-theme="dark"] .uw-alert.uw-l3 { background: #3E1C1C; }
:root[data-theme="dark"] .uw-alert.uw-l4 { background: #33193C; }
:root[data-theme="dark"] .home-alert.pet { background: #3A2C17; }
:root[data-theme="dark"] .cy-page { --cy-red: #E8596B; --cy-red-soft: #4A2228; --cy-green: #3FB898; --cy-green-soft: #173A31; }
:root[data-theme="dark"] .choice.kalender { --c: #8DB3E2; --c-soft: #1D2B3B; }
:root[data-theme="dark"] .sp-exam, :root[data-theme="dark"] .sp-ex-d.soon { background: #2D2440; color: #C9B5EC; }
:root[data-theme="dark"] .hl-due.soon { background: #3A2E14; color: #F2C46B; }
:root[data-theme="dark"] .hl-due.late { background: #3E1F1C; color: #F08A80; }
:root[data-theme="dark"] .choice.schule { --c: #B89BE6; --c-soft: #2A2238; }
:root[data-theme="dark"] .eco-big { background: #1E3322; }
:root[data-theme="dark"] .sh-light.on .sh-bulb .ic { background: #4A3D12; }
:root[data-theme="dark"] .sh-bulb .sw { background: #4A443D; }
:root[data-theme="dark"] .sh-bulb .sw.on { background: #34C759; }
:root[data-theme="dark"] .sh-meta .tag.heat { background: #3A2412; color: #F5A15C; }
:root[data-theme="dark"] .g-good { --gc: #7BC67E; --gc-soft: #1E3322; }
:root[data-theme="dark"] .g-ok { --gc: #C5D35A; --gc-soft: #2C2F18; }
:root[data-theme="dark"] .g-warn { --gc: #F2B35C; --gc-soft: #3A2A12; }
:root[data-theme="dark"] .g-bad { --gc: #F28B82; --gc-soft: #3D1F1B; }
:root[data-theme="dark"] .eco-state.ok { color: #7BC67E; }
:root[data-theme="dark"] .pill.on, :root[data-theme="dark"] .seg3 a.on { color: var(--bg); }
:root[data-theme="dark"] .choice-crown { background: #3A2E12; color: #F2C75C; }
:root[data-theme="dark"] .hint.bin { background: #3A3012; border-color: #5A4A1A; }
:root[data-theme="dark"] .hint.over { background: #3D1F1B; border-color: #5C2B25; }
:root[data-theme="dark"] .dsp-alerts .alert { background: #3A3012; border-color: #5A4A1A; }
:root[data-theme="dark"] .badge.on { background: #3A3012; box-shadow: inset 0 0 0 1.5px #5A4A1A; }
:root[data-theme="dark"] .qr { background: #fff; }
:root[data-theme="dark"] .action-admin { background: #2C2723; border-color: #3A332E; }
:root[data-theme="dark"] label { color: color-mix(in srgb, #4A433C 40%, #f3eee7); }
:root[data-theme="dark"] input:focus, :root[data-theme="dark"] select:focus { background: var(--surface); }
:root[data-theme="dark"] .btn:hover { border-color: var(--line); }
:root[data-theme="dark"] .btn-danger { border-color: var(--line); }
:root[data-theme="dark"] .btn-danger:hover { background: color-mix(in srgb, #FDF0EE 14%, #221e1a); border-color: var(--line); }
:root[data-theme="dark"] .btn-soft { color: color-mix(in srgb, #B4401F 40%, #f3eee7); }
:root[data-theme="dark"] .flash-ok { color: color-mix(in srgb, #1D5E3D 40%, #f3eee7); }
:root[data-theme="dark"] .flash-err { background: color-mix(in srgb, #FCE6E3 14%, #221e1a); color: color-mix(in srgb, #8E2A21 40%, #f3eee7); }
:root[data-theme="dark"] .pill:hover { border-color: var(--line); }
:root[data-theme="dark"] .avatar-empty { color: color-mix(in srgb, #B4401F 40%, #f3eee7); }
:root[data-theme="dark"] .photo-circle { border: 2px dashed var(--line); }
:root[data-theme="dark"] .tag { color: color-mix(in srgb, #B4401F 40%, #f3eee7); }
:root[data-theme="dark"] .tag-err { background: color-mix(in srgb, #FCE6E3 14%, #221e1a); }
:root[data-theme="dark"] .menu-body { background: var(--surface); }
:root[data-theme="dark"] .user-body input[type=text], :root[data-theme="dark"] .user-body input[type=email], :root[data-theme="dark"] .user-body select { background: var(--surface); }
:root[data-theme="dark"] .on-dot { border: 2px solid var(--line); }
:root[data-theme="dark"] .prose p { color: color-mix(in srgb, #4A433C 40%, #f3eee7); }
:root[data-theme="dark"] .landing-bg span:nth-child(3) { background: color-mix(in srgb, #FCEFD6 14%, #221e1a); }
:root[data-theme="dark"] .panel-btn:hover { background: color-mix(in srgb, #FDFBF8 14%, #221e1a); }
:root[data-theme="dark"] .choice-crown { color: color-mix(in srgb, #9A6B00 40%, #f3eee7); background: color-mix(in srgb, #FFF3CF 14%, #221e1a); }
:root[data-theme="dark"] .mini-text { color: color-mix(in srgb, #4A433C 40%, #f3eee7); }
:root[data-theme="dark"] textarea:focus { background: var(--surface); }
:root[data-theme="dark"] .post.pinned { border-color: var(--line); background: color-mix(in srgb, #FFFBF8 14%, #221e1a); }
:root[data-theme="dark"] .like { background: var(--surface); }
:root[data-theme="dark"] .like.on { border-color: var(--line); background: color-mix(in srgb, #FFF1EC 14%, #221e1a); }
:root[data-theme="dark"] .lbl { color: color-mix(in srgb, #4A433C 40%, #f3eee7); }
:root[data-theme="dark"] .event.bday { background: color-mix(in srgb, #FFF8EC 14%, #221e1a); border-color: var(--line); }
:root[data-theme="dark"] .prefs td { border-top: 1px solid var(--line, var(--line)); }
:root[data-theme="dark"] .hint.bin { background: color-mix(in srgb, #FFF6D6 14%, #221e1a); border-color: var(--line); }
:root[data-theme="dark"] .hint.over { background: color-mix(in srgb, #FCE6E3 14%, #221e1a); border-color: var(--line); }
:root[data-theme="dark"] .poll-opt.mine .bar { background: color-mix(in srgb, #FBD3C6 14%, #221e1a); }
:root[data-theme="dark"] .badge.on { background: color-mix(in srgb, #FFF4D6 14%, #221e1a); }
:root[data-theme="dark"] .qr { background: var(--surface); }
:root[data-theme="dark"] textarea:focus { background: var(--surface); }
:root[data-theme="dark"] .frist.soon .frist-date { background: color-mix(in srgb, #FFF1CC 14%, #221e1a); }
:root[data-theme="dark"] .frist.soon .due { color: color-mix(in srgb, #9A6700 40%, #f3eee7); }
:root[data-theme="dark"] .frist.over .frist-date { background: color-mix(in srgb, #FCE6E3 14%, #221e1a); }
:root[data-theme="dark"] .bin-list .soon .bin-ico { background: color-mix(in srgb, #FFF1CC 14%, #221e1a); }
:root[data-theme="dark"] .ext-tag.bin { background: color-mix(in srgb, #FFF1CC 14%, #221e1a); color: color-mix(in srgb, #7A5A00 40%, #f3eee7); }
:root[data-theme="dark"] .dsp-alerts .alert { background: color-mix(in srgb, #FFF1CC 14%, #221e1a); border: 1px solid var(--line); }
:root[data-theme="dark"] .dsp-alerts .alert.bday { border-color: var(--line); }
:root[data-theme="dark"] .mev i { color: color-mix(in srgb, #9A3A1C 40%, #f3eee7); }
:root[data-theme="dark"] .mev i.bd { background: color-mix(in srgb, #FCE1EC 14%, #221e1a); color: color-mix(in srgb, #9B2458 40%, #f3eee7); }
:root[data-theme="dark"] .mev i.ext { color: color-mix(in srgb, #1F6B61 40%, #f3eee7); }
:root[data-theme="dark"] .mev i.bin { background: color-mix(in srgb, #FFF1CC 14%, #221e1a); color: color-mix(in srgb, #7A5A00 40%, #f3eee7); }
:root[data-theme="dark"] .switch .sw { background: color-mix(in srgb, #DCD5CB 14%, #221e1a); }
:root[data-theme="dark"] .switch .sw::after { background: var(--surface); }
:root[data-theme="dark"] .ios-seg { background: color-mix(in srgb, #EEEAE3 14%, #221e1a); }
:root[data-theme="dark"] .ios-seg a.on { background: var(--surface); }
:root[data-theme="dark"] .im-day .chips i.ext { background: color-mix(in srgb, var(--ec, #2F8F83) 14%, var(--surface)); }
:root[data-theme="dark"] .week-cols .ios-ev.ext { background: color-mix(in srgb, var(--ec, #2F8F83) 10%, var(--surface)); }
:root[data-theme="dark"] .mev i.ext { background: color-mix(in srgb, var(--ec, #2F8F83) 16%, var(--surface)); }
:root[data-theme="dark"] .color-pick .sw { border: 2px solid var(--line); }
:root[data-theme="dark"] .ride-chip { color: color-mix(in srgb, #9A5B00 40%, #f3eee7); background: color-mix(in srgb, #FFF1CC 14%, #221e1a); }
:root[data-theme="dark"] .ride-chip.ok { color: color-mix(in srgb, #1F6B61 40%, #f3eee7); }
:root[data-theme="dark"] .soon-it small { color: color-mix(in srgb, #9A6700 40%, #f3eee7); }
:root[data-theme="dark"] .kid-dot { color: color-mix(in srgb, #B4401F 40%, #f3eee7); }
:root[data-theme="dark"] .sp-l .info { color: color-mix(in srgb, #9A6700 40%, #f3eee7) !important; }
:root[data-theme="dark"] .eco-state.warn { color: color-mix(in srgb, #9A6700 40%, #f3eee7); }
:root[data-theme="dark"] .eco-p em { color: color-mix(in srgb, #9A6700 40%, #f3eee7); }
:root[data-theme="dark"] .warn-text { color: color-mix(in srgb, #9A6700 40%, #f3eee7); }
:root[data-theme="dark"] .sh-meta .tag.warn { background: color-mix(in srgb, #FDF0DC 14%, #221e1a); color: color-mix(in srgb, #9A6700 40%, #f3eee7); }
:root[data-theme="dark"] .sh-meta .tag.heat { background: color-mix(in srgb, #FFF1E0 14%, #221e1a); }
:root[data-theme="dark"] .sh-light.on .sh-bulb .ic { background: color-mix(in srgb, #FFF3C4 14%, #221e1a); }
:root[data-theme="dark"] .sh-bulb .sw::after { background: var(--surface); }
:root[data-theme="dark"] .sh-group.on .sh-bulb .ic { background: color-mix(in srgb, #FDE7FF 14%, #221e1a); }
:root[data-theme="dark"] .pet-chip span { background: color-mix(in srgb, #FFF4E5 14%, #221e1a); }
:root[data-theme="dark"] .pl-pet.warn { border-left: 4px solid var(--line); }
:root[data-theme="dark"] .tr-top { color: color-mix(in srgb, #221E1A 40%, #f3eee7); }
:root[data-theme="dark"] .tr-booked { color: color-mix(in srgb, #1F6B61 40%, #f3eee7); }
:root[data-theme="dark"] .tr-pin { background: var(--surface); }
:root[data-theme="dark"] .tr-fit.ok { color: color-mix(in srgb, #1F6B61 40%, #f3eee7); }
:root[data-theme="dark"] .tr-fit.no { background: color-mix(in srgb, #FFF1CC 14%, #221e1a); color: color-mix(in srgb, #9A5B00 40%, #f3eee7); }
:root[data-theme="dark"] .ch-at.me { background: color-mix(in srgb, #FFE9A8 14%, #221e1a); }
:root[data-theme="dark"] .ch-pinrow { background: color-mix(in srgb, #FFF6D6 14%, #221e1a); }
:root[data-theme="dark"] .ch-rec { background: color-mix(in srgb, #FDE8E1 14%, #221e1a); }
:root[data-theme="dark"] .ch-bubble mark, :root[data-theme="dark"] .ch-hit mark { background: color-mix(in srgb, #FFE27A 14%, #221e1a); color: color-mix(in srgb, #221E1A 40%, #f3eee7); }
:root[data-theme="dark"] .nf-f.warn { background: color-mix(in srgb, #FFE9A8 14%, #221e1a); }
:root[data-theme="dark"] .gf-img { background: var(--surface); }
:root[data-theme="dark"] .gf-item.st-gekauft .gf-status { color: color-mix(in srgb, #1F6B61 40%, #f3eee7); }
@media (min-width: 900px) {
  :root[data-theme="dark"] .im-day:hover { background: color-mix(in srgb, #FBF8F3 14%, #221e1a); }
  :root[data-theme="dark"] .im-day.sel { background: color-mix(in srgb, #FFF4EF 14%, #221e1a); }
  :root[data-theme="dark"] .im-day.we { background: color-mix(in srgb, #FCFAF7 14%, #221e1a); }
  :root[data-theme="dark"] .im-day .chips i { color: color-mix(in srgb, #9A3A1C 40%, #f3eee7); }
  :root[data-theme="dark"] .im-day .chips i.bd { background: color-mix(in srgb, #FCE1EC 14%, #221e1a); color: color-mix(in srgb, #9B2458 40%, #f3eee7); border-color: var(--line); }
  :root[data-theme="dark"] .im-day .chips i.ext { color: color-mix(in srgb, #1F6B61 40%, #f3eee7); }
  :root[data-theme="dark"] .im-day .chips i.bin { background: color-mix(in srgb, #FFF4D6 14%, #221e1a); color: color-mix(in srgb, #7A5A00 40%, #f3eee7); border-color: var(--line); }
  :root[data-theme="dark"] .week-cols .ios-ev { background: color-mix(in srgb, #FFF4EF 14%, #221e1a); }
  :root[data-theme="dark"] .week-cols .ios-ev.bd { border-color: var(--line); background: color-mix(in srgb, #FDEEF4 14%, #221e1a); }
  :root[data-theme="dark"] .week-cols .ios-ev.bin { border-color: var(--line); background: color-mix(in srgb, #FFF8E3 14%, #221e1a); }
}
@media print {
  :root[data-theme="dark"] body, :root[data-theme="dark"] .card { background: var(--surface) !important; }
  :root[data-theme="dark"] .nf-call { background: var(--surface) !important; }
  :root[data-theme="dark"] .nf-f { background: var(--surface); }
}
/* ===== DUNKELMODUS ENDE ===== */
:root[data-theme="dark"] .ski-hero { --sky1: #0E1B2E; --sky2: #1C2A3D; --m1: #3A4E68; --m2: #56708F; --m3: #C9D7E6; --cap: #E8F0F8; --tree: #1E3B33; --cable: #8FA3B8; }
:root[data-theme="dark"] .ski-hero .ski-hero-act .btn-ghost { background: rgba(20, 30, 45, .55); }

:root[data-theme="dark"] .mz-money.bad { background: #3D1F1B; }
:root[data-theme="dark"] .mz-money.bad strong { color: #F28B82; }
:root[data-theme="dark"] .mz-money.good { background: #173A31; }
:root[data-theme="dark"] .mz-money.good strong, :root[data-theme="dark"] .mz-kpis .good b { color: #7FD6BC; }
:root[data-theme="dark"] .mz-kpis .bad b { color: #F28B82; }
:root[data-theme="dark"] .mz-chart .mz-prev { fill: #4A433C; }
:root[data-theme="dark"] .mz-sw.prev { background: #4A433C; }
:root[data-theme="dark"] .mz-bad { color: #F28B82; }
:root[data-theme="dark"] .mz-good { color: #7FD6BC; }
:root[data-theme="dark"] .mz-status.ok, :root[data-theme="dark"] .mz-readings .list-item.fresh { background: #173A31; color: #7FD6BC; }
:root[data-theme="dark"] .mz-status.due { background: #3A2E14; color: #F2C46B; }
:root[data-theme="dark"] .mz-tbar i.prev { background: #4A433C; }
:root[data-theme="dark"] .mz-tabs a.on { color: var(--ink); }
:root[data-theme="dark"] .ski-page { --ski: #6AA9E0; --ski-soft: #1B2A3A; }
:root[data-theme="dark"] .ski-sos { background: #3D1F1B; }
:root[data-theme="dark"] .ski-bed.pet { background: #3A2E14; }
:root[data-theme="dark"] .ski-sum span.ok, :root[data-theme="dark"] .ski-chk.on { background: #173A31; color: #7FD6BC; }
:root[data-theme="dark"] .ski-sum span.bad, :root[data-theme="dark"] .ski-bed.over { background: #3D1F1B; color: #F28B82; }
:root[data-theme="dark"] .ski-count, :root[data-theme="dark"] .ski-countdown { color: #10161d; }
:root[data-theme="dark"] .ski-prof-days button.on { color: #10161d; }
:root[data-theme="dark"] .ski-duty-box { background: #3A2A14; border-color: #5a4320; }
:root[data-theme="dark"] .ski-duty-box.ok, :root[data-theme="dark"] .ski-duty.ok { background: #173A31; border-color: #1f5143; }
:root[data-theme="dark"] .ski-ch { background: linear-gradient(135deg, #1c2638, #261c38); }
:root[data-theme="dark"] .ski-meet.soon { background: #3D1F1B; }
:root[data-theme="dark"] .ski-vote.on { background: #3A2E14; }
/* Update 164: Kachel „🎯 Challenges“ */
.ski-ch-hero { text-align: center; display: grid; justify-items: center; gap: 6px; background: linear-gradient(135deg, #eef4ff, #f5f0ff); }
.ski-ch-hero .ic { font-size: 3.4rem; line-height: 1.1; }
.ski-ch-hero h2 { margin: 0; }
.ski-ch-hero > small { text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted); }
.ski-ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.ski-ch-grid a { display: grid; gap: 3px; text-decoration: none; color: var(--ink); font-size: .78rem; font-weight: 700; text-align: center; }
.ski-ch-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.ski-ch .grow { display: grid; }
:root[data-theme="dark"] .ski-ch-hero { background: linear-gradient(135deg, #1c2638, #261c38); }
.ski-sec-h { margin: 18px 4px 8px; font-size: 1.05rem; }
/* Update 168: 2 Challenges pro Tag */
.ski-ch-day { display: grid; gap: 8px; }
.ski-ch-pick { display: grid; gap: 4px; margin-top: 8px; }
.ski-ch-pick .check { font-size: .85rem; }
.ski-row4 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; }
/* Update 170: geheime Challenges */
.ski-ch.secret { background: linear-gradient(135deg, #1f2937, #3b2a5a); color: #fff; }
.ski-ch.secret .muted { color: rgba(255,255,255,.7) !important; }
.ski-ch-mysec { border: 2px dashed #7b3fa0; }
.ski-ch-sec { font-size: .68rem; font-weight: 600; color: var(--muted); line-height: 1.2; }
.ski-post-ch { margin: 8px 0 0; font-size: .85rem; font-weight: 700; color: #7b3fa0; }
:root[data-theme="dark"] .ski-post-ch { color: #c4a3e0; }
/* Update 173: Skiurlaub-Durchsage, Mitteilungen einschalten */
.ski-shout-btn { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px; border-radius: 16px; text-decoration: none; color: #fff; background: linear-gradient(135deg, #f2613f, #e0407a); box-shadow: 0 6px 18px rgba(242, 97, 63, .3); }
.ski-shout-btn .ic { font-size: 1.6rem; }
.ski-shout-btn .grow { display: grid; min-width: 0; }
.ski-shout-btn small { opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ski-shout-btn .chev { font-size: 1.4rem; }
.ski-push { display: flex; align-items: center; gap: 12px; }
.ski-push[hidden] { display: none; }
.ski-push .ic { font-size: 1.6rem; }
.ski-push .grow { display: grid; }
/* Update 174: Challenge-Plan (Admin) */
.ski-ch-plan h2 small { font-size: .75rem; font-weight: 600; }
.ski-ch-tabwrap { overflow-x: auto; margin-top: 8px; }
.ski-ch-tab { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ski-ch-tab th, .ski-ch-tab td { text-align: left; vertical-align: top; padding: 7px 6px; border-bottom: 1px solid var(--line); }
.ski-ch-tab th { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.ski-ch-tabwrap .ski-ch-tab td { min-width: 150px; }
.ski-ch-tabwrap .ski-ch-tab td:first-child { min-width: 70px; position: sticky; left: 0; background: var(--surface); }
.ski-ch-tab tr.now td { background: rgba(242, 97, 63, .08); }
.ski-ch-spoiler { margin-top: 12px; }
.ski-ch-spoiler summary { cursor: pointer; }
/* Update 176: Gruppenfoto des Tages */
.ski-ch.group { background: linear-gradient(135deg, #fff1e6, #ffe4ef); }
:root[data-theme="dark"] .ski-ch.group { background: linear-gradient(135deg, #3a2618, #3a1c2a); }
.ski-ch-plan { overflow-x: auto; }
.ski-ch-todo { margin: 6px 0 0; padding-left: 18px; color: var(--muted); } .ski-ch-todo li { margin: 2px 0; }
/* Update 177: Challenge ✅/❌ */
.ski-post-ch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; justify-content: space-between; }
.ski-post-ch.rej > span { text-decoration: line-through; text-decoration-color: rgba(200, 40, 40, .6); }
.ski-ch-rej { color: #c62828; text-decoration: none; display: inline-block; }
.ski-chv { display: flex; gap: 4px; align-items: center; }
.ski-chv-b { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 3px 10px; font: inherit; font-size: .8rem; cursor: pointer; color: var(--ink); }
.ski-chv-b.on { background: #dcfce7; border-color: #86efac; }
.ski-chv-b.no.on { background: #fee2e2; border-color: #fca5a5; }
:root[data-theme="dark"] .ski-chv-b.on { background: #173A31; }
:root[data-theme="dark"] .ski-chv-b.no.on { background: #3D1F1B; }
/* Update 178: Steckbrief */
.ski-h1 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ski-meav { position: relative; flex: none; text-decoration: none; }
.ski-meav .ski-av { width: 44px; height: 44px; font-size: 1.4rem; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #f2613f; }
.ski-me-dot { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #e53935; color: #fff; font: 800 .7rem/20px system-ui, sans-serif; text-align: center; font-style: normal; box-shadow: 0 0 0 2px var(--surface); }
.ski-sb-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); border: 2px solid #f2613f; }
.ski-sb-card .grow { display: grid; gap: 4px; }
.ski-sb-card .btn { justify-self: start; margin-top: 4px; }
.ski-sb-ring { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#f2613f calc(var(--p) * 1%), var(--line) 0); }
.ski-sb-ring b { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: .85rem; }
.sb { max-width: 520px; margin: 0 auto; }
.sb-prog { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 14px; }
.sb-prog span { display: block; height: 100%; background: linear-gradient(90deg, #f2613f, #e0407a); transition: width .4s; }
.sb-card { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 24px 18px; }
.sb-card h2 { margin: 0; font-size: 1.3rem; }
.sb-ic { font-size: 3.2rem; line-height: 1; }
.sb-card .btn-primary { min-width: 200px; }
.sb-sel { width: 100%; max-width: 360px; font-size: 1.05rem; }
.sb-room { text-align: center; font-size: 1.6rem; max-width: 160px; }
.sb-choice { display: grid; gap: 10px; width: 100%; max-width: 360px; }
.sb-big { padding: 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; color: var(--ink); }
.sb-big:active { border-color: #f2613f; }
.sb-photo { display: grid; gap: 10px; justify-items: center; cursor: pointer; }
.sb-photo input { display: none; }
.sb-av { width: 120px !important; height: 120px !important; font-size: 3.4rem !important; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.sb-chips .pill { cursor: pointer; font: inherit; font-size: .9rem; border: 1px solid var(--line); }
.sb-skip { font-size: .9rem; color: var(--muted); text-decoration: none; }
.sb-btns { display: grid; gap: 8px; width: 100%; max-width: 320px; }
.ski-sb-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.ski-sb-list li { display: flex; align-items: center; gap: 8px; }
.ski-sb-bar { width: 80px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ski-sb-bar span { display: block; height: 100%; background: #22c55e; }
/* Update 180: Hütten mehrfach auswählen & löschen */
#huetten { scroll-margin-top: 80px; }
.ski-hut-pick { cursor: pointer; }
.ski-hut-pick input { position: absolute; opacity: 0; pointer-events: none; }
.ski-hut-pick span { padding: 6px 12px !important; border: 1.5px solid transparent; user-select: none; }
.ski-hut-pick input:checked + span { background: #fee2e2; border-color: #f87171; color: #b91c1c; text-decoration: line-through; }
.ski-hut-pick input:checked + span::before { content: '✓'; display: inline-block; margin-right: 4px; }
.ski-huts-bar { position: sticky; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 8px; border-radius: 14px; background: var(--surface); box-shadow: 0 4px 16px rgba(0,0,0,.15); z-index: 5; }
.ski-huts-bar[hidden] { display: none; }
:root[data-theme="dark"] .ski-hut-pick input:checked + span { background: #3D1F1B; color: #fca5a5; }
#ich { scroll-margin-top: 80px; }
/* Update 182: Steckbrief-Übersicht mit ✏️ */
.sb-sum { list-style: none; padding: 0; margin: 4px 0; width: 100%; max-width: 380px; display: grid; gap: 6px; text-align: left; }
.sb-sum a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); text-decoration: none; color: var(--ink); }
.sb-sum .ic { font-size: 1.4rem; }
.sb-sum .grow { display: grid; min-width: 0; }
.sb-sum b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-sum b.miss { color: #f2613f; font-weight: 700; }
.sb-sum .ed { opacity: .6; }
.sb-av-edit { position: relative; text-decoration: none; }
.sb-av-edit i { position: absolute; right: 2px; bottom: 2px; font-style: normal; background: var(--surface); border-radius: 99px; width: 32px; height: 32px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.sb-big.on { border-color: #f2613f; background: #fff1ec; }
.sb-chips .pill.on { background: #f2613f; color: #fff; border-color: #f2613f; }
:root[data-theme="dark"] .sb-big.on { background: #3D1F1B; }
/* Update 183: Stories wie Instagram */
.ski-story-av { isolation: isolate; }
.ski-story.st-ch .ski-story-av::before, .ski-story.st-new .ski-story-av::before, .ski-story.st-done .ski-story-av::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; z-index: -1; }
.ski-story.st-ch .ski-story-av::before { background: conic-gradient(#f9a825, #f2613f, #e0407a, #7b3fa0, #f9a825); animation: stspin 4s linear infinite; }
.ski-story.st-new .ski-story-av::before { background: conic-gradient(#f9a825, #f2613f, #e0407a, #f9a825); }
.ski-story.st-new.st-seen .ski-story-av::before, .ski-story.st-done .ski-story-av::before { background: var(--line); animation: none; }
.ski-story.st-done .ski-story-av::after { content: '✓'; position: absolute; left: -4px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: #22c55e; color: #fff; font: 800 .7rem/20px system-ui; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
@keyframes stspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ski-story.st-ch .ski-story-av::before { animation: none; } }
.stv { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; display: grid; grid-template-rows: auto auto 1fr auto; padding: calc(env(safe-area-inset-top) + 8px) 10px calc(env(safe-area-inset-bottom) + 12px); }
.stv[hidden] { display: none; }
.stv-bars { display: flex; gap: 4px; }
.stv-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.stv-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.stv-bars i.f b { width: 100%; }
.stv-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px; }
.stv-x { background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 4px 10px; }
.stv-body { position: relative; border-radius: 16px; overflow: hidden; display: grid; place-items: center; cursor: pointer; user-select: none; }
.stv-body.img img { width: 100%; height: 100%; object-fit: contain; }
.stv-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.stv-cap p { margin: 4px 0; font-weight: 600; }
.stv-chip { display: inline-block; background: rgba(255,255,255,.2); border-radius: 99px; padding: 3px 10px; font-size: .8rem; font-weight: 700; }
.stv-body.ch { padding: 24px; text-align: center; }
.stv-body.g-a { background: linear-gradient(160deg, #2b5fa8, #0e7c86); }
.stv-body.g-b { background: linear-gradient(160deg, #f2613f, #e0407a); }
.stv-body.g-c { background: linear-gradient(160deg, #1f2937, #7b3fa0); }
.stv-ch small { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; opacity: .85; }
.stv-ch .ic { font-size: 5rem; margin: 18px 0; }
.stv-ch h2 { color: #fff; font-size: 1.6rem; margin: 0; }
.stv-ch .ok { font-size: 1.2rem; font-weight: 800; margin-top: 14px; }
.stv-foot { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding-top: 12px; }
.stv-foot .btn-ghost { color: #fff; }
/* Update 184: Profil-Kopf – Knöpfe in eigener Zeile */
.ski-prof-head { flex-wrap: wrap; }
.ski-prof-head .grow { flex: 1 1 160px; }
.ski-prof-btns { flex: 1 1 100%; display: flex; gap: 8px; flex-wrap: wrap; }
.ski-prof-btns .btn { flex: 1 1 auto; justify-content: center; }
/* Update 185: Wochen-Challenge */
.ski-ch.week { background: linear-gradient(135deg, #fef9c3, #fde68a); }
:root[data-theme="dark"] .ski-ch.week { background: linear-gradient(135deg, #3a3214, #4a3a10); }
.stv-body.g-d { background: linear-gradient(160deg, #a16207, #f59e0b); }
/* Update 185: Wochen-Challenge */
.ski-ch.week { background: linear-gradient(135deg, #fef9c3, #fde68a); }
:root[data-theme="dark"] .ski-ch.week { background: linear-gradient(135deg, #3a3214, #4a3a10); }
.stv-body.g-d { background: linear-gradient(160deg, #a16207, #f59e0b); }
.ski-sb-remind .chips { display: flex; gap: 14px; margin-bottom: 8px; }
/* Update 190: Statistik */
.st-bars, .st-prog { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.st-bars li, .st-prog li { display: grid; grid-template-columns: 26px 30px minmax(60px, 90px) 1fr auto; align-items: center; gap: 8px; font-size: .9rem; }
.st-prog li { grid-template-columns: 30px minmax(60px, 90px) 1fr auto auto; }
.st-bars .ski-av, .st-prog .ski-av { width: 30px; height: 30px; font-size: 1rem; }
.st-bars .nm, .st-prog .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.st-bars .bar, .st-prog .bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.st-bars .bar i, .st-prog .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2b5fa8, #0e7c86); }
.st-prog .bar i { background: linear-gradient(90deg, #f2613f, #e0407a); }
.st-bars .rk { text-align: center; }
.st-days { display: flex; gap: 4px; align-items: flex-end; height: 140px; padding-top: 18px; }
.st-days div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; font-size: .7rem; }
.st-days i { display: block; width: 70%; border-radius: 6px 6px 2px 2px; background: #2b5fa8; }
.st-days div.now i { background: #f2613f; }
.st-days small { color: var(--muted); text-align: center; line-height: 1.1; }
.st-list { margin: 4px 0 0; padding-left: 18px; }
.st-list li { margin: 3px 0; }
.st-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.st-card { padding: 10px 0; border-bottom: 1px solid var(--line); }
.st-card:last-child { border-bottom: 0; }
.st-meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0; }
.st-meter i { display: block; height: 100%; background: #22c55e; }
.st-top { display: flex; gap: 10px; align-items: center; margin-top: 12px; text-decoration: none; color: var(--ink); background: var(--bg); border-radius: 12px; padding: 6px; }
.st-top img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.st-top span { display: grid; }
.st-admin { margin-top: 12px; }
.st-hm { display: grid; gap: 6px; }
.st-hm label { display: grid; grid-template-columns: 1fr 90px; gap: 8px; align-items: center; font-size: .85rem; }
/* Update 191: Videos & Aura-Filter */
.ski-post-vid { width: 100%; max-height: 80vh; background: #000; display: block; }
.ski-prev-media { position: relative; display: inline-block; max-width: 100%; border-radius: 12px; overflow: hidden; }
.ski-prev-media img, .ski-prev-media video { display: block; max-width: 100%; max-height: 50vh; }
.ski-prev-media.aura img { filter: grayscale(1) contrast(1.35) brightness(.95); }
.ski-aura-txt { position: absolute; left: 0; right: 0; top: 13%; text-align: center; font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: clamp(1.6rem, 9vw, 3.4rem); color: #111; transform: rotate(-3deg); text-shadow: 0 0 6px rgba(255,255,255,.4); letter-spacing: .02em; pointer-events: none; }
.ski-aura-chk { display: flex; margin: 8px 0 4px; font-size: .9rem; }
.ski-ch-grid a.is-vid { position: relative; }
.ski-ch-grid a.is-vid::after { content: '▶'; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.stv-body.img video { width: 100%; height: 100%; object-fit: contain; background: #000; }
/* Update 192: Beispiel-Videos */
.ski-ex-btn { border: 0; background: #111827; color: #fff; border-radius: 99px; padding: 2px 9px; font: 700 .72rem/1.6 system-ui, sans-serif; cursor: pointer; vertical-align: middle; margin-left: 4px; white-space: nowrap; }
.ski-ex { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 16px; }
.ski-ex[hidden] { display: none; }
.ski-ex-box { position: relative; display: grid; gap: 8px; justify-items: center; color: #fff; max-width: 420px; width: 100%; }
.ski-ex-box video { width: 100%; max-height: 78vh; border-radius: 14px; background: #000; }
.ski-ex-x { position: absolute; top: -6px; right: -6px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 1.1rem; cursor: pointer; }
.ski-ex-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.ski-ex-list li { display: flex; align-items: center; gap: 6px; font-size: .88rem; }
.ski-ex-list .grow { flex: 1; }
.ski-ch-tab td.vid { background: rgba(123, 63, 160, .08); }
/* Update 195: Aura-Vorschau in voller Breite, Schriftzug passt sich an */
.ski-prev-media { width: 100%; max-width: 420px; }
.ski-prev-media img, .ski-prev-media video { width: 100%; height: auto; max-height: 60vh; object-fit: contain; background: #000; }
.ski-aura-txt { white-space: nowrap; font-size: 40px; line-height: 1; left: 50% !important; right: auto !important; transform: translateX(-50%) rotate(-3deg) !important; }
.ski-aura-chk { margin: 2px 0 0; }
