/* Gestaltung nach mockup/index.html: iOS/tvOS im Web.
   Tagdienst immer gelb, Nachtdienst immer blau. Hell, 22-6 Uhr dunkel und gedimmt. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif;
  --bg-1: #dfe9f7; --bg-2: #f6e3d6; --bg-3: #e3f1ea;
  --glass: rgba(255,255,255,.58); --glass-strong: rgba(255,255,255,.86); --glass-border: rgba(255,255,255,.7);
  --label: #1c1c1e; --label-2: rgba(60,60,67,.62); --label-3: rgba(60,60,67,.36);
  --sep: rgba(60,60,67,.14); --fill: rgba(120,120,128,.12);
  --shadow: 0 1px 1px rgba(0,0,0,.04), 0 12px 40px -12px rgba(30,40,70,.22);
  --tag: #ffcc00; --tag-ink: #3d2f00; --nacht: #1f4fd1;
  --blau: #007aff; --gruen: #34c759; --rot: #ff3b30; --lila: #af52de; --orange: #ff9500;
  --frei: rgba(120,120,128,.18);
  --tonne-rest: #3a3a3c; --tonne-bio: #8e5a2b; --tonne-papier: #0a84ff; --tonne-gelb: #ffcc00;
  --tonne-schadstoff: #ff3b30; --tonne-altkleider: #af52de;
  --versatz: 0px 0px;
  color-scheme: light;
}
:root[data-theme="dunkel"] {
  --bg-1: #0b1424; --bg-2: #1a1030; --bg-3: #08201b;
  --glass: rgba(44,44,46,.55); --glass-strong: rgba(58,58,60,.92); --glass-border: rgba(255,255,255,.08);
  --label: #f2f2f7; --label-2: rgba(235,235,245,.6); --label-3: rgba(235,235,245,.3);
  --sep: rgba(84,84,88,.5); --fill: rgba(118,118,128,.24);
  --shadow: 0 12px 40px -12px rgba(0,0,0,.6);
  --tag: #ffd60a; --nacht: #2f5fe8;
  --blau: #0a84ff; --gruen: #30d158; --rot: #ff453a; --lila: #bf5af2;
  --frei: rgba(118,118,128,.28); --tonne-rest: #8e8e93;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font); color: var(--label); -webkit-font-smoothing: antialiased;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2) 55%, var(--bg-3)) fixed;
  transition: background .8s;
}
/* Nachts zusaetzlich gedimmt. Eine Ebene statt filter, weil filter
   position: fixed im Inhalt zerstoert. */
:root[data-theme="dunkel"]:not([data-dimmung="aus"]) body::after {
  content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.22); pointer-events: none; z-index: 30;
}
:root[data-theme="dunkel"][data-dimmung="stark"] body::after { background: rgba(0,0,0,.42); }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--blau); text-decoration: none; }
.sym { width: 1em; height: 1em; flex: none; }

/* --- Aufbau Wand ------------------------------------------------------- */
.app {
  position: relative; display: grid; gap: 22px; padding: 26px 30px;
  grid-template-columns: minmax(280px, 25fr) minmax(460px, 50fr) minmax(280px, 25fr);
  grid-template-rows: auto 1fr; height: 100vh; height: 100dvh;
  translate: var(--versatz); transition: translate 60s linear;
}
/* Nur die Wand-Ansicht passt auf einen Bildschirm; Unterseiten scrollen. */
@media (min-width: 900px) { body:has(main.app) { overflow: hidden; } }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.topbar h1 { font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--label-2); margin: 0; text-transform: uppercase; }
.actions { display: flex; gap: 12px; }
.round-btn {
  width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--glass-border);
  background: var(--glass); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
  display: grid; place-items: center; color: var(--label); box-shadow: var(--shadow); cursor: pointer; font-size: 24px;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.3);
}
.round-btn:active { transform: scale(.92); }
.round-btn.klein { width: 48px; height: 48px; font-size: 20px; box-shadow: none; }
.col { display: flex; flex-direction: column; gap: 22px; min-height: 0; }
.card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 28px;
  backdrop-filter: blur(40px) saturate(1.8); -webkit-backdrop-filter: blur(40px) saturate(1.8);
  box-shadow: var(--shadow); padding: 22px 24px;
}
.eyebrow { font-size: 14px; font-weight: 600; color: var(--label-2); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }

/* --- Uhr --------------------------------------------------------------- */
.clock { padding: 26px; }
.time { font-size: clamp(64px, 7.2vw, 108px); font-weight: 700; letter-spacing: -.035em; line-height: .95; font-variant-numeric: tabular-nums; }
.date { font-size: 22px; font-weight: 600; margin-top: 10px; }
.date small { display: block; font-size: 16px; font-weight: 500; color: var(--label-2); margin-top: 3px; }

/* --- Naechster Dienst -------------------------------------------------- */
.next { position: relative; overflow: hidden; border: none; }
.next .when { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.next .zeit { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.next .where { font-size: 18px; font-weight: 600; margin-top: 6px; }
.next .vehicle { font-size: 16px; opacity: .8; margin-top: 2px; }
.next .countdown { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: 999px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.2); }
.next .glyph { position: absolute; right: -18px; top: -18px; width: 140px; height: 140px; opacity: .16; }
.next:not(.leer) .eyebrow { color: inherit; opacity: .75; }
.next.leer .when { font-size: 22px; color: var(--label-2); }

/* --- Abfall ------------------------------------------------------------ */
.waste { display: flex; align-items: center; gap: 16px; }
.bin { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; font-size: 30px; }
.waste .t1 { font-size: 19px; font-weight: 700; }
.waste .t2 { font-size: 15px; color: var(--label-2); margin-top: 2px; }
.bin-rest { background: color-mix(in srgb, var(--tonne-rest) 20%, transparent); color: var(--tonne-rest); }
.bin-bio { background: color-mix(in srgb, var(--tonne-bio) 22%, transparent); color: var(--tonne-bio); }
.bin-papier { background: color-mix(in srgb, var(--tonne-papier) 20%, transparent); color: var(--tonne-papier); }
.bin-gelb { background: color-mix(in srgb, var(--tonne-gelb) 28%, transparent); color: #b38f00; }
.bin-schadstoff { background: color-mix(in srgb, var(--tonne-schadstoff) 20%, transparent); color: var(--tonne-schadstoff); }
.bin-altkleider { background: color-mix(in srgb, var(--tonne-altkleider) 20%, transparent); color: var(--tonne-altkleider); }

/* --- Kalender ---------------------------------------------------------- */
.calendar { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 22px 22px 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 4px; gap: 12px; }
.cal-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -.025em; margin: 0; }
.cal-head h2 span { color: var(--heute, var(--rot)); }
.nav { display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; background: var(--fill); border-radius: 12px; padding: 3px; }
.seg a { font-size: 15px; font-weight: 600; color: var(--label); padding: 0 18px; border-radius: 9px; min-height: 44px; display: grid; place-items: center; }
.seg a.on { background: var(--glass-strong); box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.heute-btn { font-weight: 600; font-size: 15px; padding: 0 14px; min-height: 44px; display: grid; place-items: center; }
.weekdays, .grid { display: grid; grid-template-columns: 34px repeat(7, 1fr); gap: 6px; }
.weekdays div { font-size: 13px; font-weight: 600; color: var(--label-2); text-align: center; padding-bottom: 6px; text-transform: uppercase; }
.grid { flex: 1; grid-auto-rows: 1fr; min-height: 0; }
.kw { font-size: 11px; color: var(--label-3); font-weight: 600; display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); }
.day {
  border: 0; background: transparent; text-align: left; border-radius: 18px; padding: 8px;
  display: flex; flex-direction: column; gap: 6px; min-height: 60px; min-width: 0; position: relative; cursor: pointer;
  transition: background .25s, transform .35s cubic-bezier(.2,.9,.3,1.3);
}
.day:hover { background: var(--fill); }
.day:active { transform: scale(.95); }
.day.out { opacity: .35; }
.day.weekend .num { color: var(--label-2); }
.num { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.day.today .num { background: var(--heute, var(--rot)); color: #fff; }
.holiday { position: absolute; top: 12px; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--heute, var(--rot)); }
.chip { font-size: 13px; font-weight: 700; padding: 5px 7px; border-radius: 9px; display: flex; align-items: center; gap: 4px; color: #fff; white-space: nowrap; overflow: hidden; }
.chip .sym { width: 13px; height: 13px; }
.chip.X { background: var(--frei); color: var(--label-2); }
.marks { display: flex; gap: 4px; margin-top: auto; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--termin, var(--gruen)); }
.mini-bin { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; }
.mini-termin { font-size: 13px; font-weight: 500; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--termin, var(--gruen)); padding-left: 6px; }
.grid.woche .day { justify-content: flex-start; }

/* --- Listen ------------------------------------------------------------ */
.list { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.group { margin: 0; padding: 0; list-style: none; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 0; min-height: 60px; border-bottom: .5px solid var(--sep); }
.row:last-child { border-bottom: 0; }
.row.leer { color: var(--label-2); }
.lead { width: 46px; text-align: center; flex: none; }
.lead b { display: block; font-size: 21px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.lead small { font-size: 12px; color: var(--label-2); font-weight: 600; text-transform: uppercase; }
.body { flex: 1; min-width: 0; }
.title { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { font-size: 14px; color: var(--label-2); margin-top: 2px; }
.bar { width: 4px; align-self: stretch; border-radius: 2px; flex: none; background: var(--frei); }
.bar.termin { background: var(--termin, var(--gruen)); }
.bar.aufgabe { background: var(--aufgabe, var(--orange)); }
.bar.abfall-rest { background: var(--tonne-rest); } .bar.abfall-bio { background: var(--tonne-bio); }
.bar.abfall-papier { background: var(--tonne-papier); } .bar.abfall-gelb { background: var(--tonne-gelb); }
.bar.abfall-schadstoff { background: var(--tonne-schadstoff); } .bar.abfall-altkleider { background: var(--tonne-altkleider); }

.todo form { display: contents; }
.check { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--label-3); background: transparent; flex: none;
  display: grid; place-items: center; cursor: pointer; font-size: 18px; color: #fff; transition: all .3s cubic-bezier(.2,.9,.3,1.4); }
.check .sym { opacity: 0; transform: scale(.4); transition: all .3s cubic-bezier(.2,.9,.3,1.4); }
.todo.done .check { background: var(--blau); border-color: var(--blau); }
.todo.done .check .sym { opacity: 1; transform: none; }
.todo.done .title { color: var(--label-3); text-decoration: line-through; }
.neu { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.neu input[name="titel"] { flex: 1 1 100%; }
.neu input { flex: 1; min-width: 0; min-height: 44px; border: 0; border-radius: 12px; background: var(--fill); padding: 0 12px; }
.neu input[type="date"] { flex: 0 0 auto; width: 150px; }
.add { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blau); color: #fff; display: grid; place-items: center; font-size: 22px; cursor: pointer; flex: none; }

/* --- Tagesblatt -------------------------------------------------------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 10; opacity: 0; pointer-events: none; transition: opacity .35s; }
.sheet {
  position: fixed; z-index: 11; left: 50%; top: 50%; width: min(640px, 92vw); max-height: 90vh; overflow: auto;
  transform: translate(-50%, -44%) scale(.94); opacity: 0; pointer-events: none;
  background: var(--glass-strong); backdrop-filter: blur(50px) saturate(1.8); -webkit-backdrop-filter: blur(50px) saturate(1.8);
  border-radius: 32px; padding: 26px 28px 28px; box-shadow: 0 40px 100px -20px rgba(0,0,0,.45); border: 1px solid var(--glass-border);
  transition: transform .5s cubic-bezier(.2,.9,.25,1.12), opacity .3s;
}
.open .scrim { opacity: 1; pointer-events: auto; }
.open .sheet { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.sheet header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sheet h3 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.fertig-btn { font-size: 17px; font-weight: 600; color: var(--blau); background: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 6px; }
.feiertag { color: var(--rot); font-weight: 600; margin: 0; }
.section-label { font-size: 13px; font-weight: 600; color: var(--label-2); text-transform: uppercase; letter-spacing: .04em; margin: 18px 4px 8px; }
.shift-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.shift-picker button { font-weight: 700; font-size: 17px; border: 0; border-radius: 14px; min-height: 60px; cursor: pointer;
  background: var(--fill); transition: transform .3s cubic-bezier(.2,.9,.3,1.4); }
.shift-picker button:active { transform: scale(.94); }
.shift-picker button.sel { color: #fff; background: var(--label-2); }
.uhrzeit { padding-top: 12px; }
.inset { background: var(--glass); border-radius: 16px; padding: 0 16px; }
.termin summary { list-style: none; cursor: pointer; }
.termin summary::-webkit-details-marker { display: none; }
.termin .add-zeile { color: var(--blau); font-weight: 600; gap: 10px; }
.formular { display: grid; gap: 10px; padding: 4px 0 16px; }
.formular input, .formular textarea { min-height: 48px; border: 0; border-radius: 12px; background: var(--fill); padding: 10px 12px; }
.formular .zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.formular label { display: grid; gap: 4px; font-size: 13px; color: var(--label-2); }
.schalter { display: flex !important; align-items: center; gap: 10px; font-size: 16px !important; color: var(--label) !important; min-height: 44px; }
.schalter input { width: 22px; height: 22px; min-height: 0; }
.primaer { min-height: 50px; border: 0; border-radius: 14px; background: var(--blau); color: #fff; font-weight: 600; font-size: 17px; cursor: pointer; }
.loeschen { min-height: 44px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--rot) 14%, transparent); color: var(--rot); font-weight: 600; padding: 0 16px; cursor: pointer; }
.loeschen.breit { width: 100%; }
.hinweis { color: var(--label-2); margin: 8px 4px 0; }

/* --- Leisten ----------------------------------------------------------- */
.hinweis-leiste { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 20; font-size: 15px; font-weight: 600;
  background: var(--glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.hinweis-leiste.fehler { color: var(--rot); bottom: 70px; }
.tabbar { display: none; }

/* --- Unterseiten ------------------------------------------------------- */
.seite { max-width: 820px; margin: 0 auto; padding: 26px 16px 60px; display: grid; gap: 18px; }
.seite-kopf { display: flex; align-items: center; gap: 14px; }
.seite-kopf h1 { font-size: 34px; font-weight: 800; letter-spacing: -.025em; margin: 0; flex: 1; }
.seite-mitte { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.anmelde-karte { width: min(420px, 100%); display: grid; gap: 16px; }
.anmelde-karte h1 { font-size: 34px; font-weight: 800; margin: 0; }
.feld { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.feld input { min-height: 50px; border: 0; border-radius: 12px; background: var(--fill); padding: 0 14px; font-size: 17px; color: var(--label); }
.fehler { color: var(--rot); font-weight: 600; margin: 0; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kachel b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kachel span { color: var(--label-2); font-weight: 600; }
.kachel.T { background: var(--tag); color: var(--tag-ink); border: none; }
.kachel.T span { color: rgba(61,47,0,.7); }
.kachel.N { background: var(--nacht); color: #fff; border: none; }
.kachel.N span { color: rgba(255,255,255,.75); }
.tabelle { width: 100%; border-collapse: collapse; font-size: 17px; }
.tabelle th, .tabelle td { text-align: left; padding: 12px 4px; border-bottom: .5px solid var(--sep); font-variant-numeric: tabular-nums; }
.tabelle th { font-size: 13px; color: var(--label-2); text-transform: uppercase; letter-spacing: .04em; }

/* --- Einstellungen ----------------------------------------------------- */
.einst { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 22px; padding: 26px 30px; max-width: 1200px; margin: 0 auto; }
.einst-liste .group { padding: 4px 18px; }
.einst-eintrag { color: var(--label); justify-content: space-between; font-size: 17px; font-weight: 600; }
.einst-eintrag .sym { color: var(--label-3); font-size: 18px; }
.einst-eintrag.aktiv { color: var(--blau); }
.einst-detail { display: grid; gap: 18px; align-content: start; min-width: 0; }
.einst-detail h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.detail-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.zurueck-link { display: none; font-weight: 600; }
.leer-hinweis { color: var(--label-2); }
.meldung-ok { color: var(--gruen); font-weight: 600; margin: 0; }
.warnung { border: 1px solid color-mix(in srgb, var(--orange) 50%, transparent); }
.primaer.klein { min-height: 44px; padding: 0 16px; display: inline-grid; place-items: center; color: #fff; }
.punkt { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--frei); }
.row a.body { color: var(--label); }
.formular select { min-height: 48px; border: 0; border-radius: 12px; background: var(--fill); padding: 0 12px; color: var(--label); }
.card.formular { padding: 22px 24px; }
/* Eingaben stehen in ihrer Beschriftung und wuerden sonst deren graue Farbe erben. */
.formular label input, .formular label select { color: var(--label); font-size: 17px; }
.dienstart-formular .nur-dienst, .dienstart-formular .mit-zeit { display: none; }
.dienstart-formular:has(option[value="dienst"]:checked) .nur-dienst { display: grid; }
.dienstart-formular:has(option[value="dienst"]:checked) .mit-zeit,
.dienstart-formular:has(option[value="termin"]:checked) .mit-zeit { display: grid; }
.dienstart-formular:has(option[value="dienst"]:checked) label.schalter.mit-zeit,
.dienstart-formular:has(option[value="termin"]:checked) label.schalter.mit-zeit { display: flex !important; }
.farbwahl { display: flex; flex-wrap: wrap; gap: 10px; }
.farbknopf { position: relative; width: 44px; height: 44px; cursor: pointer; }
.farbknopf input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.farbknopf span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.farbknopf input:checked + span { box-shadow: 0 0 0 3px var(--glass-strong), 0 0 0 5px var(--label); }
.farbknopf input:focus-visible + span { outline: 2px solid var(--blau); outline-offset: 4px; }

/* --- Karten ------------------------------------------------------------ */
.minikarte { height: 140px; border-radius: 16px; overflow: hidden; margin-top: 14px; background: var(--fill); }
.karte-gross { height: 320px; padding: 0; overflow: hidden; }
.fahrzeit { margin-top: 10px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.karten-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; color: inherit; min-height: 44px; }
.karten-link .sym { width: 14px; height: 14px; }
.inset .karten-link { color: var(--blau); }
.suche-zeile { display: grid; gap: 6px; justify-items: start; }
.suchergebnis { margin: 0; font-size: 15px; color: var(--label-2); }

/* --- Handy ------------------------------------------------------------- */
@media (max-width: 899px) {
  .app { grid-template-columns: 1fr; grid-template-rows: none; height: auto; padding: 16px 16px 100px; gap: 16px; }
  .round-btn { width: 44px; height: 44px; font-size: 20px; }
  .calendar { min-height: 70vh; padding: 16px 10px; }
  .cal-head { flex-wrap: wrap; }
  .cal-head h2 { font-size: 26px; }
  .weekdays, .grid { grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .kw, .kw-kopf { display: none; }
  .day { padding: 4px 2px; min-height: 64px; border-radius: 12px; }
  .num { width: 26px; height: 26px; font-size: 15px; }
  .chip { font-size: 11px; padding: 3px 4px; }
  .chip .sym { display: none; }
  .list { overflow: visible; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; justify-content: space-around;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--glass-strong);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border-top: .5px solid var(--sep); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--label-2); min-width: 64px; min-height: 44px; font-size: 22px; }
  .tabbar a span { font-size: 11px; }
  .sheet { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 92vh; border-radius: 28px 28px 0 0;
    transform: translateY(100%); padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .open .sheet { transform: none; }
  .hinweis-leiste { bottom: 84px; }
  .seite-kopf h1 { font-size: 24px; }
  .einst { grid-template-columns: 1fr; padding: 16px; }
  .einst.mit-auswahl .einst-liste, .einst.ohne-auswahl .einst-detail { display: none; }
  .zurueck-link { display: block; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .app { translate: none; } }
