/* Familienplaner – warm, freundlich, große Tippflächen. Kompatibel mit Safari ab iPadOS 15. */
:root {
  --bg: #fff7ec;
  --bg2: #ffeeda;
  --card: #ffffff;
  --ink: #2d2a32;
  --muted: #7a7380;
  --line: #f0e3d3;
  --accent: #ff7a59;
  --accent2: #ffb347;
  --ok: #2bb673;
  --radius: 22px;
  --shadow: 0 6px 20px rgba(120, 80, 40, .10);
  --nav-w: 104px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  font-size: 17px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, "SF Pro Rounded", "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink);
  -webkit-user-select: none; user-select: none; overflow: hidden;
}
input, textarea, select { -webkit-user-select: text; user-select: text; font: inherit; color: inherit; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
.boot { display: flex; height: 100vh; align-items: center; justify-content: center; font-size: 80px; animation: bob 1.6s ease-in-out infinite; }

/* ---------- Grundlayout ---------- */
.shell { display: flex; position: fixed; top: 0; left: 0; right: 0; bottom: 0; }
.nav {
  width: var(--nav-w); flex: none; display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: calc(14px + var(--safe-t)) 8px 14px; background: var(--bg2);
}
.nav .logo { font-size: 38px; margin-bottom: 8px; animation: bob 3s ease-in-out infinite; }
.nav button {
  width: 86px; padding: 10px 4px; border-radius: 18px; display: flex; flex-direction: column;
  align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--muted);
  transition: background .2s, transform .15s;
}
.nav button .ico { font-size: 30px; line-height: 1.1; }
.nav button.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.nav button:active { transform: scale(.94); }
.nav .spacer { flex: 1; }
.main { flex: 1; min-width: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(18px + var(--safe-t)) 22px 28px; }

.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.topbar h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.topbar .grow { flex: 1; }
.lockbtn { font-size: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); flex: none; }
.lockbtn.open { background: #fff2b8; animation: pulse 2s infinite; }

/* ---------- Karten ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card h2 { margin: 0 0 12px; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.card h2 .grow { flex: 1; }
.grid-today { display: grid; grid-template-columns: 1.05fr 1.4fr 1fr; gap: 18px; align-items: start; }
.grid-today.home { grid-template-areas: "ev rt tk"; }
.home .col-events { grid-area: ev; } .home .col-routines { grid-area: rt; } .home .col-tasks { grid-area: tk; }
.empty { color: var(--muted); padding: 10px 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Kopfbereich "Heute" ---------- */
.hero {
  display: flex; align-items: center; gap: 20px; margin-bottom: 18px; padding: 18px 24px;
  border-radius: 28px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #ff9a6b, #ffcf6b);
}
.hero.mittags { background: linear-gradient(120deg, #4fb7ff, #7be0c3); }
.hero.abends { background: linear-gradient(120deg, #5b4bd6, #c56bd6); }
.hero.nacht { background: linear-gradient(120deg, #1f2a57, #4a3b8f); }
.hero .sky { font-size: 64px; animation: float 6s ease-in-out infinite; }
.hero .clock { font-size: 64px; font-weight: 800; letter-spacing: -2px; line-height: 1; font-variant-numeric: tabular-nums; }
.hero .date { font-size: 20px; font-weight: 600; opacity: .95; }
.hero .greet { margin-left: auto; text-align: right; font-size: 18px; font-weight: 600; }
.hero .cloud { position: absolute; font-size: 46px; opacity: .35; animation: drift 40s linear infinite; top: 6px; }

/* ---------- Mitglieder ---------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  width: 44px; height: 44px; font-size: 24px; flex: none; background: var(--c, #ddd);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.6);
}
.avatar.big { width: 64px; height: 64px; font-size: 36px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); font-weight: 600; border: 3px solid transparent;
}
.chip .avatar { width: 32px; height: 32px; font-size: 18px; }
.chip.on { border-color: var(--c, var(--accent)); }
.chip.off { opacity: .45; }
.stars { font-weight: 800; color: #e7a400; white-space: nowrap; }

/* ---------- Termine ---------- */
.ev { display: flex; gap: 10px; align-items: stretch; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ev:last-child { border-bottom: 0; }
.ev .bar { width: 6px; border-radius: 6px; background: var(--c, var(--accent)); flex: none; }
.ev .t { font-weight: 700; min-width: 54px; font-variant-numeric: tabular-nums; }
.ev .ti { font-weight: 600; }
.ev .sub { font-size: 13px; color: var(--muted); }
.dayhead { font-weight: 800; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin: 12px 0 2px; }

/* ---------- Routinen ---------- */
.routine { border-radius: 20px; padding: 14px; background: #fffaf3; border: 2px solid var(--line); margin-bottom: 12px; }
.routine-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.routine-head .name { font-weight: 800; font-size: 18px; flex: 1; }
.progress { height: 12px; border-radius: 12px; background: #f3e6d6; overflow: hidden; margin: 0 0 12px; }
.progress > i { display: block; height: 100%; border-radius: 12px; background: linear-gradient(90deg, var(--c, var(--accent)), var(--accent2)); transition: width .5s cubic-bezier(.3, 1.6, .5, 1); }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.step {
  position: relative; border-radius: 18px; background: var(--card); padding: 12px 6px 10px; text-align: center;
  box-shadow: 0 3px 0 #efe0cc; border: 3px solid transparent; transition: transform .15s;
}
.step:active { transform: scale(.93); }
.step .e { font-size: 42px; line-height: 1.1; display: block; }
.step .l { font-size: 14px; font-weight: 700; display: block; margin-top: 4px; }
.step.done { background: #e9fbf1; border-color: var(--ok); box-shadow: 0 3px 0 #bfe9d2; }
.step.done .e { filter: saturate(.6); opacity: .55; }
.step.done::after {
  content: "✓"; position: absolute; top: 4px; right: 8px; font-size: 22px; font-weight: 900; color: var(--ok);
  animation: pop .45s cubic-bezier(.3, 1.8, .5, 1);
}
.step.just { animation: jelly .6s; }
.routine.complete { border-color: var(--ok); background: #f1fcf6; }

/* ---------- Aufgaben & Listen ---------- */
.row {
  display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row .txt { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.row .txt .sub { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.check {
  width: 36px; height: 36px; border-radius: 12px; border: 3px solid #e2cfb8; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; color: #fff;
  transition: background .2s, border-color .2s, transform .15s;
}
.row.done .check { background: var(--ok); border-color: var(--ok); }
.row.done .txt { text-decoration: line-through; color: var(--muted); }
.row.just .check { animation: pop .45s cubic-bezier(.3, 1.8, .5, 1); }
.xbtn { color: #c9b7a3; font-size: 22px; width: 36px; height: 36px; border-radius: 50%; }
.addrow { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.addrow input[type=text], .addrow input:not([type]) { flex: 1; min-width: 160px; }

.lists { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.listnav button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 16px;
  font-weight: 700; text-align: left; margin-bottom: 6px;
}
.listnav button.active { background: var(--card); box-shadow: var(--shadow); }
.listnav .count { margin-left: auto; background: var(--bg2); border-radius: 999px; padding: 2px 10px; font-size: 14px; }

/* ---------- Formulare ---------- */
input, select, textarea {
  border: 2px solid var(--line); background: #fffdfa; border-radius: 14px; padding: 11px 13px; font-size: 17px;
  outline: none; -webkit-appearance: none; appearance: none; max-width: 100%;
}
select { padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { border-color: var(--accent2); }
input[type=color] { padding: 2px; width: 56px; height: 46px; }
input[type=checkbox] { -webkit-appearance: checkbox; appearance: auto; width: 22px; height: 22px; }
label.f { display: block; font-weight: 700; font-size: 14px; color: var(--muted); margin: 12px 0 4px; }
.btn {
  background: var(--accent); color: #fff; font-weight: 800; border-radius: 14px; padding: 12px 18px;
  box-shadow: 0 3px 0 #d95c3e; transition: transform .1s;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #d95c3e; }
.btn.ghost { background: var(--bg2); color: var(--ink); box-shadow: 0 3px 0 #ecd6bb; }
.btn.danger { background: #e2504c; box-shadow: 0 3px 0 #b73a37; }
.btn.small { padding: 8px 12px; font-size: 15px; }
.seg { display: inline-flex; background: var(--bg2); border-radius: 14px; padding: 4px; }
.seg button { padding: 8px 16px; border-radius: 10px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.wd { display: flex; gap: 6px; flex-wrap: wrap; }
.wd button { width: 46px; height: 42px; border-radius: 12px; background: var(--bg2); font-weight: 700; color: var(--muted); }
.wd button.on { background: var(--accent); color: #fff; }
.steped { display: flex; gap: 8px; margin-bottom: 8px; }
.steped input.emo { width: 64px; text-align: center; font-size: 22px; }
.steped input.ttl { flex: 1; }

/* ---------- Kalender ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.wday { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 10px 8px; min-height: 340px; }
.wday.today { outline: 4px solid var(--accent2); }
.wday .h { text-align: center; margin-bottom: 8px; }
.wday .h .d { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.wday .h .n { font-size: 26px; font-weight: 800; }
.evchip {
  display: block; width: 100%; text-align: left; border-radius: 10px; padding: 6px 8px; margin-bottom: 6px;
  background: var(--cl, #ffe7d9); border-left: 5px solid var(--c, var(--accent)); font-size: 13px; line-height: 1.25;
  overflow: hidden; overflow-wrap: anywhere;
}
.evchip b { display: block; font-size: 12px; color: var(--muted); }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month .mh { text-align: center; font-weight: 800; color: var(--muted); font-size: 13px; padding: 4px; }
.mday { background: var(--card); border-radius: 14px; min-height: 104px; padding: 6px; overflow: hidden; }
.mday.other { opacity: .45; }
.mday.today { outline: 3px solid var(--accent2); }
.mday .n { font-weight: 800; font-size: 15px; margin-bottom: 3px; }
.mday .evchip { padding: 2px 5px; font-size: 12px; margin-bottom: 3px; white-space: nowrap; text-overflow: ellipsis; border-left-width: 4px; }
.mday .more { font-size: 12px; color: var(--muted); font-weight: 700; }
.calerr { background: #fff1f0; color: #a33; border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }

/* ---------- Modal, PIN, Toast ---------- */
.overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(45, 30, 20, .35); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s;
}
.modal {
  background: var(--bg); border-radius: 28px; padding: 22px; width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; -webkit-overflow-scrolling: touch; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: rise .3s cubic-bezier(.3, 1.4, .5, 1);
}
.modal h3 { margin: 0 0 6px; font-size: 24px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.modal .actions .left { margin-right: auto; }
.pin { max-width: 360px; text-align: center; }
.pin .dots { display: flex; justify-content: center; gap: 14px; margin: 14px 0 18px; }
.pin .dots i { width: 18px; height: 18px; border-radius: 50%; background: #ead9c4; }
.pin .dots i.on { background: var(--accent); animation: pop .3s; }
.pin .pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pin .pad button { height: 70px; border-radius: 20px; background: var(--card); font-size: 30px; font-weight: 700; box-shadow: 0 3px 0 #ecd6bb; }
.pin .pad button:active { transform: translateY(2px); }
.pin.shake { animation: shake .4s; }
.toast {
  position: fixed; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translateX(-50%); z-index: 80;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 16px; font-weight: 600; max-width: 90vw;
  animation: rise .25s;
}
#fx { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }

/* ---------- Feier-Overlay ---------- */
.party { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 85; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255, 247, 236, .82); animation: fade .25s; }
.party .who { font-size: 140px; animation: dance 1s ease-in-out infinite; }
.party .msg { font-size: 42px; font-weight: 900; text-align: center; margin-top: 10px; animation: rise .5s cubic-bezier(.3, 1.6, .5, 1); padding: 0 20px; }
.party .sub { font-size: 22px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.flystar { position: fixed; z-index: 95; font-size: 34px; pointer-events: none; animation: flyup 1s ease-in forwards; }

/* ---------- Login ---------- */
.login { display: flex; height: 100vh; align-items: center; justify-content: center; padding: 20px; }
.login .card { width: 100%; max-width: 420px; text-align: center; }
.login .big { font-size: 90px; animation: bob 2s ease-in-out infinite; }
.login input { width: 100%; margin-top: 10px; }
.login .btn { width: 100%; margin-top: 14px; }
.login label.cb { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------- Animationen ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg) } 50% { transform: translateY(-10px) rotate(6deg) } }
@keyframes drift { from { left: -80px } to { left: 110% } }
@keyframes pop { 0% { transform: scale(0) } 70% { transform: scale(1.3) } 100% { transform: scale(1) } }
@keyframes jelly { 0% { transform: scale(1) } 30% { transform: scale(1.18, .85) } 50% { transform: scale(.9, 1.1) } 70% { transform: scale(1.05, .95) } 100% { transform: scale(1) } }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.96) } to { opacity: 1; transform: none } }
@keyframes shake { 0%, 100% { transform: translateX(0) } 20%, 60% { transform: translateX(-12px) } 40%, 80% { transform: translateX(12px) } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 179, 71, .6) } 50% { box-shadow: 0 0 0 10px rgba(255, 179, 71, 0) } }
@keyframes dance { 0%, 100% { transform: rotate(-12deg) scale(1) } 50% { transform: rotate(12deg) scale(1.12) } }
@keyframes flyup { 0% { transform: translate(0, 0) scale(1); opacity: 1 } 100% { transform: translate(var(--dx, 0), -260px) scale(1.8) rotate(200deg); opacity: 0 } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ---------- Essensplan ---------- */
.dinner {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-bottom: 14px; padding: 10px 14px;
  border-radius: 18px; background: linear-gradient(120deg, #fff1d6, #ffe2cf); font-size: 18px;
}
.dinner .de { font-size: 40px; animation: float 5s ease-in-out infinite; }
.meals { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.meal {
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 12px 6px 14px; min-height: 170px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: transform .15s;
}
.meal:active { transform: scale(.95); }
.meal .h { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.meal .e { font-size: 50px; line-height: 1.1; margin-top: 6px; }
.meal .e.plus { font-size: 34px; color: #d9c4ab; margin-top: 14px; }
.meal .l { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.meal.today { outline: 4px solid var(--accent2); }
.meal.empty { background: #fffaf3; border: 2px dashed #ecd9c2; box-shadow: none; }
.rtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; max-height: 42vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px; }
.rtiles.big { max-height: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rtile {
  background: var(--card); border-radius: 16px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  box-shadow: 0 3px 0 #efe0cc; text-align: center; transition: transform .15s;
}
.rtile:active { transform: scale(.93); }
.rtile .e { font-size: 34px; }
.rtiles.big .rtile .e { font-size: 46px; }
.rtile .l { font-weight: 700; font-size: 13px; overflow-wrap: anywhere; }
.reel {
  margin: 18px auto; width: 260px; height: 220px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 5px solid var(--accent2);
}
.reel .e { font-size: 90px; line-height: 1; }
.reel .l { font-weight: 800; font-size: 19px; text-align: center; padding: 0 10px; }
.reel.tick .e { animation: reelin .12s ease-out; }
.reel.win { border-color: var(--ok); animation: jelly .7s; }
.reel.win .e { animation: dance 1s ease-in-out infinite; }
@keyframes reelin { from { transform: translateY(-30px); opacity: .3 } to { transform: none; opacity: 1 } }
.ing { margin: 0; padding-left: 22px; line-height: 1.7; }
textarea { border: 2px solid var(--line); background: #fffdfa; border-radius: 14px; padding: 11px 13px; font-size: 16px; resize: vertical; }
@media (max-width: 1100px) {
  .meals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .meals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meal { min-height: 130px; }
  .meal .e { font-size: 40px; }
  .rtiles.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Dienste ---------- */
table.chores { width: 100%; border-collapse: separate; border-spacing: 4px; min-width: 640px; }
table.chores th { font-size: 13px; color: var(--muted); font-weight: 800; padding: 4px; }
table.chores th span { font-size: 18px; color: var(--ink); }
table.chores th.today span { color: var(--accent); }
table.chores td { text-align: center; border-radius: 14px; background: #fffaf3; height: 62px; }
table.chores td.off { background: transparent; }
table.chores td.ok { background: #e9fbf1; }
table.chores td.miss { background: #fff0ee; }
table.chores td.today { outline: 3px solid var(--accent2); }
table.chores td.cn { background: none; text-align: left; width: 190px; }
td.cn button { display: flex; gap: 8px; align-items: center; text-align: left; font-weight: 700; }
td.cn .ce { font-size: 28px; }
td.cn .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.cell { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.cell .avatar { width: 38px; height: 38px; font-size: 20px; }
.cell i { position: absolute; right: 4px; bottom: 2px; font-style: normal; font-weight: 900; font-size: 15px; }
td.ok .cell i { color: var(--ok); } td.miss .cell i { color: #d9534f; }

/* ---------- Bildermodus ---------- */
.saver { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; background: #111; overflow: hidden; animation: fade 1.2s; }
.ss-img { position: absolute; top: -4%; left: -4%; right: -4%; bottom: -4%; background: center / cover no-repeat; opacity: 0; transition: opacity 1.6s ease; }
.ss-img.on { opacity: 1; }
.ss-img.kb1 { animation: kb1 20s linear forwards; }
.ss-img.kb2 { animation: kb2 20s linear forwards; }
@keyframes kb1 { from { transform: scale(1) translate(0, 0) } to { transform: scale(1.08) translate(-1.5%, -1%) } }
@keyframes kb2 { from { transform: scale(1.08) translate(1%, 1%) } to { transform: scale(1) translate(0, 0) } }
.ss-info {
  position: absolute; left: 34px; bottom: 30px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.65);
  padding: 16px 22px; border-radius: 24px; background: rgba(0,0,0,.22); transition: transform 2s ease;
}
.ss-clock { font-size: 84px; font-weight: 800; letter-spacing: -2px; line-height: 1; font-variant-numeric: tabular-nums; }
.ss-date { font-size: 24px; font-weight: 600; margin-top: 4px; }
.ss-line { font-size: 20px; margin-top: 8px; }
.saver.night { background: #000; }
.saver.night .ss-img { opacity: 0 !important; }
.saver.night .ss-info { background: none; color: #6b6b75; text-shadow: none; }
.photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ph { position: relative; }
.ph img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; display: block; }
.ph .xbtn { position: absolute; top: 4px; right: 4px; background: rgba(255,255,255,.9); color: #333; }
@media (max-width: 820px) { .ss-clock { font-size: 56px; } .ss-info { left: 16px; bottom: calc(20px + var(--safe-b)); } }

/* ---------- Hochformat / Handy ---------- */
@media (max-width: 1100px) {
  .grid-today { grid-template-columns: 1fr 1fr; }
  .grid-today.home { grid-template-columns: 1.6fr 1fr; grid-template-areas: "rt ev" "rt tk"; grid-template-rows: auto 1fr; }
  .home .col-tasks { align-self: start; }
  .home .steps { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
  .home .step .e { font-size: 34px; }
  .home .step .l { font-size: 13px; }
  .topbar h1 { font-size: 26px; }
}
@media (max-width: 820px) {
  :root { font-size: 16px; }
  .shell { flex-direction: column-reverse; }
  .nav {
    width: 100%; flex-direction: row; justify-content: space-around; padding: 6px 4px calc(6px + var(--safe-b));
    gap: 0; box-shadow: 0 -4px 16px rgba(120, 80, 40, .08);
  }
  .nav .logo, .nav .spacer { display: none; }
  .nav button { width: auto; flex: 1; padding: 6px 2px; font-size: 11px; }
  .nav button .ico { font-size: 24px; }
  .main { padding: calc(12px + var(--safe-t)) 14px 20px; }
  .grid-today, .grid-today.home { grid-template-columns: 1fr; grid-template-areas: "ev" "tk" "rt"; grid-template-rows: none; }
  .steps, .home .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .step .e, .home .step .e { font-size: 32px; }
  .step .l { font-size: 12px; }
  .chip { padding: 4px 10px 4px 4px; font-size: 14px; }
  .chip .avatar { width: 26px; height: 26px; font-size: 15px; }
  .hero { padding: 14px 16px; gap: 12px; }
  .hero .sky { font-size: 44px; }
  .hero .clock { font-size: 42px; }
  .hero .date { font-size: 16px; }
  .hero .greet { display: none; }
  .week { grid-template-columns: 1fr; }
  .wday { min-height: 0; }
  .wday .h { display: flex; gap: 8px; align-items: baseline; text-align: left; }
  .month .mday { min-height: 58px; }
  .month .mday .evchip { display: none; }
  .month .mday .dotrow { display: flex; }
  .lists { grid-template-columns: 1fr; }
  .listnav { display: flex; gap: 6px; overflow-x: auto; }
  .listnav button { width: auto; white-space: nowrap; margin: 0; }
  .topbar h1 { font-size: 24px; }
  .party .who { font-size: 100px; }
  .party .msg { font-size: 30px; }
}
.dotrow { display: none; gap: 3px; flex-wrap: wrap; }
.dotrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }
