:root {
  --bg: #f4f1ec;
  --bg-grad: radial-gradient(1200px 600px at 10% -10%, #fbfaf7 0%, transparent 60%);
  --card: #ffffff;
  --card-hover: #ffffff;
  --text: #1f2430;
  --muted: #6b6f78;
  --line: #e4dfd6;
  --brand: #1f2430;
  --mark-fg: #f4f1ec;
  --primary: #1f2430;
  --primary-fg: #ffffff;
  --danger-bg: #fdecea;
  --danger: #a3302a;
  --warn-bg: #fff4d6;
  --warn: #7a5600;
  --focus: #2f6fdd;
  --bg-soft: #faf8f4;
  --rain: #2f78d6;
  --cloud-fill: #eef0f4;
  --cloud-stroke: #8c95a6;
  --lake: #2f78d6;
  --shadow: 0 1px 2px rgba(31, 36, 48, .06), 0 4px 16px rgba(31, 36, 48, .05);
  --shadow-hover: 0 2px 4px rgba(31, 36, 48, .06), 0 14px 32px rgba(31, 36, 48, .10);
  --radius: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --bg-grad: radial-gradient(1200px 600px at 10% -10%, #1c1f25 0%, transparent 60%);
    --card: #1c1f25;
    --card-hover: #21252c;
    --text: #ecebe8;
    --muted: #9a9ea6;
    --line: #2b2f37;
    --brand: #ecebe8;
    --mark-fg: #14161a;
    --primary: #ecebe8;
    --primary-fg: #14161a;
    --danger-bg: #3a1d1b;
    --danger: #ffb3ad;
    --warn-bg: #352a10;
    --warn: #f3d384;
    --focus: #7ea7ff;
    --bg-soft: #181a1f;
    --rain: #6aa8ff;
    --cloud-fill: #3a404b;
    --cloud-stroke: #a3abba;
    --lake: #6aa8ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-grad), var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
code { font-family: var(--mono); font-size: .9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- Marke */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; color: var(--brand); flex: none; }

/* ------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 12px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { width: 100%; background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.btn.link { background: none; border: 0; color: var(--muted); font-weight: 500; padding: 6px; }
.btn.link:hover { color: var(--text); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------ Hinweise */
.alert {
  margin: 0 0 18px; padding: 11px 14px; border-radius: 12px;
  background: var(--danger-bg); color: var(--danger); font-size: 14.5px;
}
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.ok { background: color-mix(in srgb, #2f9e6b 14%, transparent); color: var(--text); }

/* --------------------------------------------------------- Login/Setup */
body.auth { display: grid; place-items: center; padding: 24px 16px; }
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 32px 28px 26px; box-shadow: var(--shadow);
}
.auth-card.wide { max-width: 560px; }
.auth-card .brand { margin-bottom: 26px; color: var(--muted); font-size: 15px; }
.auth-card h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-card h2 { font-size: 17px; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 22px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 400; color: var(--muted); }
label.check input { width: 18px; height: 18px; accent-color: var(--primary); }
input:not([type=checkbox]) {
  font: inherit; font-weight: 400; width: 100%;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.code-input { font-family: var(--mono) !important; font-size: 26px !important; letter-spacing: .35em; text-align: center; padding: 14px !important; }
.code-input::placeholder { color: color-mix(in srgb, var(--muted) 40%, transparent); }
.hint { color: var(--muted); font-size: 13.5px; margin: 0; }
.hint code { background: var(--bg); padding: 1px 5px; border-radius: 5px; }
.cancel-form { margin-top: 8px; justify-items: center; }
.step-icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--bg); color: var(--text);
}
.step-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.qr-wrap { display: flex; gap: 20px; align-items: center; margin: 4px 0 22px; flex-wrap: wrap; }
.qr { border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; width: 230px; height: auto; max-width: 100%; }
.qr-wrap > div { flex: 1; min-width: 200px; display: grid; gap: 8px; }
.secret {
  display: block; font-size: 15px; word-spacing: .2em; line-height: 1.7;
  background: var(--bg); border: 1px dashed var(--line); padding: 10px 12px; border-radius: 10px;
  user-select: all; word-break: break-word;
}
.recovery { background: var(--bg); border-radius: 16px; padding: 18px; margin: 0 0 18px; }
.recovery p { margin: 0 0 12px; font-size: 14.5px; color: var(--muted); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; margin: 0; padding-left: 22px; }
.codes code { font-size: 16px; user-select: all; }

/* --------------------------------------------------------------- Portal */
.topbar {
  max-width: 1080px; margin: 0 auto; padding: 22px 24px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.portal { max-width: 1080px; margin: 0 auto; padding: 40px 24px 32px; }
.hello { margin-bottom: 30px; }
.hello .date { color: var(--muted); margin: 0 0 4px; font-size: 15px; }
.hello h1 { margin: 0; font-size: clamp(28px, 4.5vw, 40px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }

.tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px; margin-bottom: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.tile {
  --accent: #5b6472;
  position: relative; display: grid; gap: 18px; height: 100%;
  grid-template-rows: auto 1fr auto;
  padding: 20px 20px 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  color: inherit; text-decoration: none; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.tile::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent); opacity: 0; transition: opacity .18s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); background: var(--card-hover);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.tile:hover::before { opacity: 1; }
.tile:active { transform: translateY(-1px); }

.tile-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.tile-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile-icon svg .f { fill: currentColor; stroke: none; }
.tile-text { display: grid; gap: 3px; align-content: start; }
.tile-title { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.tile-desc { color: var(--muted); font-size: 14.5px; }
.tile-host {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
}
.tile-host svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .18s ease, color .18s ease; }
.tile:hover .tile-host svg { transform: translate(2px, -2px); color: var(--accent); }

@media (prefers-color-scheme: dark) {
  .tile-icon { background: color-mix(in srgb, var(--accent) 20%, transparent); color: color-mix(in srgb, var(--accent) 70%, white); }
}

/* -------------------------------------------------------------- Wetter */
.weather {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0;
  margin: 0 0 22px; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.w-today { padding: 20px 22px 18px; display: grid; gap: 18px; align-content: start; }
.w-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.w-place { font-weight: 650; }
.w-upd { color: var(--muted); font-size: 13px; }
.w-now { display: flex; align-items: center; gap: 18px; }
.w-temp { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.w-desc { font-size: 17px; font-weight: 600; margin-top: 4px; }
.w-hilo { color: var(--muted); font-size: 14px; }
.w-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.w-facts div { min-width: 0; }
.w-facts dt { color: var(--muted); font-size: 12.5px; }
.w-facts dd { margin: 1px 0 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-hours {
  list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(8, minmax(52px, 1fr)); gap: 4px;
  overflow-x: auto; scrollbar-width: thin;
}
.w-hours li { display: grid; justify-items: center; gap: 4px; padding: 6px 0; border-radius: 12px; }
.w-hours li:first-child { background: var(--bg); }
.h-time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.h-temp { font-weight: 650; }
.h-rain { font-size: 11.5px; color: var(--muted); min-height: 1.2em; }
.h-rain.hi { color: var(--rain); font-weight: 600; }

.w-days { padding: 20px 22px 14px; background: var(--bg-soft); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.w-days h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .06em; }
.w-days ol { list-style: none; margin: 0; padding: 0; flex: 1; }
.w-days li {
  display: grid; grid-template-columns: 76px 34px minmax(0, 1fr); grid-template-areas: "day icon desc" "range range range";
  align-items: center; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.w-days li:last-child { border-bottom: 0; }
.d-day { grid-area: day; display: grid; line-height: 1.25; }
.d-day small { color: var(--muted); font-size: 12.5px; }
.w-days li > .wicon { grid-area: icon; width: 32px; height: 32px; }
.d-desc { grid-area: desc; display: grid; font-size: 14.5px; line-height: 1.3; min-width: 0; }
.d-desc small { color: var(--muted); font-size: 12.5px; }
.rain-chip { color: var(--rain); font-weight: 600; }
.d-range { grid-area: range; display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 10px; font-size: 14px; }
.d-min { color: var(--muted); text-align: right; }
.d-max { font-weight: 650; }
.bar { position: relative; height: 6px; border-radius: 3px; background: var(--line); }
.bar .fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; min-width: 6px;
  background: linear-gradient(90deg, #5aa0e6, #f0b43c 60%, #e8743c); }
.w-src { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); }
.w-src a { color: inherit; }

/* Wetter-Icons */
.wicon { width: 30px; height: 30px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.wicon.big { width: 76px; height: 76px; flex: none; stroke-width: 1.3; }
.w-sun { stroke: #f0a823; fill: #fcd55a; }
.w-sun path { fill: none; }
.w-moon { stroke: #8f9bb3; fill: #d9deea; }
.w-cloud { stroke: var(--cloud-stroke); fill: var(--cloud-fill); }
.w-rain { stroke: var(--rain); stroke-width: 1.8; }
.w-snow { fill: #9fc4ef; stroke: none; }
.w-fog { stroke: var(--muted); }
.w-bolt { stroke: #f0a823; stroke-width: 1.9; }
.bar .fill.f0{left:0%}.bar .fill.f5{left:5%}.bar .fill.f10{left:10%}.bar .fill.f15{left:15%}.bar .fill.f20{left:20%}.bar .fill.f25{left:25%}.bar .fill.f30{left:30%}.bar .fill.f35{left:35%}.bar .fill.f40{left:40%}.bar .fill.f45{left:45%}.bar .fill.f50{left:50%}.bar .fill.f55{left:55%}.bar .fill.f60{left:60%}.bar .fill.f65{left:65%}.bar .fill.f70{left:70%}.bar .fill.f75{left:75%}.bar .fill.f80{left:80%}.bar .fill.f85{left:85%}.bar .fill.f90{left:90%}.bar .fill.f95{left:95%}.bar .fill.f100{left:100%}
.bar .fill.t0{right:100%}.bar .fill.t5{right:95%}.bar .fill.t10{right:90%}.bar .fill.t15{right:85%}.bar .fill.t20{right:80%}.bar .fill.t25{right:75%}.bar .fill.t30{right:70%}.bar .fill.t35{right:65%}.bar .fill.t40{right:60%}.bar .fill.t45{right:55%}.bar .fill.t50{right:50%}.bar .fill.t55{right:45%}.bar .fill.t60{right:40%}.bar .fill.t65{right:35%}.bar .fill.t70{right:30%}.bar .fill.t75{right:25%}.bar .fill.t80{right:20%}.bar .fill.t85{right:15%}.bar .fill.t90{right:10%}.bar .fill.t95{right:5%}.bar .fill.t100{right:0%}

@media (max-width: 860px) {
  .weather { grid-template-columns: 1fr; }
  .w-days { border-left: 0; border-top: 1px solid var(--line); }
  .w-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .w-today, .w-days { padding: 16px; }
  .w-temp { font-size: 46px; }
  .wicon.big { width: 62px; height: 62px; }
  .w-hours { grid-template-columns: repeat(8, 54px); }
}

/* ------------------------------------------------------ Unwetterwarnungen */
.wn-none { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.wn-none svg { width: 18px; height: 18px; fill: none; stroke: #2f9e6b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.warnings { display: grid; gap: 10px; margin: 0 0 16px; }
.wn {
  --wn: #e3b505; --wn-bg: #fff6d1; --wn-fg: #5c4600;
  border-radius: 16px; background: var(--wn-bg); color: var(--wn-fg);
  border: 1px solid color-mix(in srgb, var(--wn) 55%, transparent); border-left: 6px solid var(--wn);
}
.wn.orange { --wn: #f07f1a; --wn-bg: #ffead6; --wn-fg: #6b3200; }
.wn.red    { --wn: #d92d20; --wn-bg: #fde3e1; --wn-fg: #7a1610; }
@media (prefers-color-scheme: dark) {
  .wn        { --wn-bg: #3a3108; --wn-fg: #fbe39a; }
  .wn.orange { --wn-bg: #3d2410; --wn-fg: #ffc796; }
  .wn.red    { --wn-bg: #3f1512; --wn-fg: #ffb4ad; }
}
.wn summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.wn summary::-webkit-details-marker { display: none; }
.wn-icon { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wn-title { display: grid; flex: 1; line-height: 1.3; }
.wn-title strong { font-size: 16px; }
.wn-title small { font-size: 13.5px; opacity: .85; }
.wn-more { font-size: 13px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.wn-more::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.wn[open] .wn-more::after { transform: rotate(-135deg) translateY(-1px); }
.wn-body { padding: 0 16px 14px 58px; font-size: 14.5px; }
.wn-body h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin: 12px 0 4px; opacity: .8; }
.wn-body ul { margin: 0; padding-left: 18px; }
.wn-body p { margin: 0; }
.wn-body .w-src { margin-top: 12px; color: inherit; opacity: .75; }

/* --------------------------------------------------------------- Bodensee */
.lake {
  margin: 0 0 22px; padding: 18px 22px 14px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.lk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lk-title { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.lk-title small { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.lk-icon { width: 22px; height: 22px; fill: none; stroke: var(--lake); stroke-width: 1.8; stroke-linecap: round; }
.lk-stats { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; gap: 12px 20px; margin: 0 0 16px; align-items: start; }
.lk-stats dt { color: var(--muted); font-size: 12.5px; }
.lk-stats dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.lk-stats dd small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.lk-main dd { font-size: 16px; color: var(--muted); }
.lk-main dd strong { font-size: 34px; line-height: 1.05; letter-spacing: -.03em; color: var(--text); font-weight: 700; margin-right: 3px; }
.lk-trend { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lk-trend.up { color: var(--lake); }
.lk-trend.down { color: #c4762a; }
.lk-gauge { padding-top: 26px; }
.lk-track { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #e8b04a 0%, #9fc8e8 30%, #5fa6dd 65%, #2f6fdd 85%, #2348a8 100%); opacity: .9; }
.lk-fill { display: none; }
.lk-mark { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--card); }
.lk-mark b { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; padding: 1px 7px; border-radius: 6px; background: var(--text); color: var(--card); }
.lk-scale { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 12px; }
.lake .w-src { margin-top: 10px; }
@media (max-width: 860px) { .lk-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lake { padding: 16px; } .wn-body { padding-left: 16px; } }
.lk-mark.p0{left:0%}.lk-mark.p1{left:1%}.lk-mark.p2{left:2%}.lk-mark.p3{left:3%}.lk-mark.p4{left:4%}.lk-mark.p5{left:5%}.lk-mark.p6{left:6%}.lk-mark.p7{left:7%}.lk-mark.p8{left:8%}.lk-mark.p9{left:9%}.lk-mark.p10{left:10%}.lk-mark.p11{left:11%}.lk-mark.p12{left:12%}.lk-mark.p13{left:13%}.lk-mark.p14{left:14%}.lk-mark.p15{left:15%}.lk-mark.p16{left:16%}.lk-mark.p17{left:17%}.lk-mark.p18{left:18%}.lk-mark.p19{left:19%}.lk-mark.p20{left:20%}.lk-mark.p21{left:21%}.lk-mark.p22{left:22%}.lk-mark.p23{left:23%}.lk-mark.p24{left:24%}.lk-mark.p25{left:25%}.lk-mark.p26{left:26%}.lk-mark.p27{left:27%}.lk-mark.p28{left:28%}.lk-mark.p29{left:29%}.lk-mark.p30{left:30%}.lk-mark.p31{left:31%}.lk-mark.p32{left:32%}.lk-mark.p33{left:33%}.lk-mark.p34{left:34%}.lk-mark.p35{left:35%}.lk-mark.p36{left:36%}.lk-mark.p37{left:37%}.lk-mark.p38{left:38%}.lk-mark.p39{left:39%}.lk-mark.p40{left:40%}.lk-mark.p41{left:41%}.lk-mark.p42{left:42%}.lk-mark.p43{left:43%}.lk-mark.p44{left:44%}.lk-mark.p45{left:45%}.lk-mark.p46{left:46%}.lk-mark.p47{left:47%}.lk-mark.p48{left:48%}.lk-mark.p49{left:49%}.lk-mark.p50{left:50%}.lk-mark.p51{left:51%}.lk-mark.p52{left:52%}.lk-mark.p53{left:53%}.lk-mark.p54{left:54%}.lk-mark.p55{left:55%}.lk-mark.p56{left:56%}.lk-mark.p57{left:57%}.lk-mark.p58{left:58%}.lk-mark.p59{left:59%}.lk-mark.p60{left:60%}.lk-mark.p61{left:61%}.lk-mark.p62{left:62%}.lk-mark.p63{left:63%}.lk-mark.p64{left:64%}.lk-mark.p65{left:65%}.lk-mark.p66{left:66%}.lk-mark.p67{left:67%}.lk-mark.p68{left:68%}.lk-mark.p69{left:69%}.lk-mark.p70{left:70%}.lk-mark.p71{left:71%}.lk-mark.p72{left:72%}.lk-mark.p73{left:73%}.lk-mark.p74{left:74%}.lk-mark.p75{left:75%}.lk-mark.p76{left:76%}.lk-mark.p77{left:77%}.lk-mark.p78{left:78%}.lk-mark.p79{left:79%}.lk-mark.p80{left:80%}.lk-mark.p81{left:81%}.lk-mark.p82{left:82%}.lk-mark.p83{left:83%}.lk-mark.p84{left:84%}.lk-mark.p85{left:85%}.lk-mark.p86{left:86%}.lk-mark.p87{left:87%}.lk-mark.p88{left:88%}.lk-mark.p89{left:89%}.lk-mark.p90{left:90%}.lk-mark.p91{left:91%}.lk-mark.p92{left:92%}.lk-mark.p93{left:93%}.lk-mark.p94{left:94%}.lk-mark.p95{left:95%}.lk-mark.p96{left:96%}.lk-mark.p97{left:97%}.lk-mark.p98{left:98%}.lk-mark.p99{left:99%}.lk-mark.p100{left:100%}
.lk-mark.p0 b,.lk-mark.p1 b,.lk-mark.p2 b,.lk-mark.p3 b,.lk-mark.p4 b,.lk-mark.p5 b,.lk-mark.p6 b,.lk-mark.p7 b{left:0;transform:none}
.lk-mark.p93 b,.lk-mark.p94 b,.lk-mark.p95 b,.lk-mark.p96 b,.lk-mark.p97 b,.lk-mark.p98 b,.lk-mark.p99 b,.lk-mark.p100 b{left:auto;right:0;transform:none}

/* ------------------------------------------------------ Sturmwarnung See */
.sw { margin: -4px 0 16px; border-radius: 12px; font-size: 14px; }
.sw.none { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg); color: var(--muted); }
.sw-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #2f9e6b; box-shadow: 0 0 0 3px color-mix(in srgb, #2f9e6b 22%, transparent); }
.sw.wind  { --sw: #f0a020; background: color-mix(in srgb, var(--sw) 16%, var(--card)); border: 1px solid color-mix(in srgb, var(--sw) 50%, transparent); }
.sw.storm { --sw: #d92d20; background: color-mix(in srgb, var(--sw) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--sw) 50%, transparent); }
.sw.wind .sw-dot, .sw.storm .sw-dot { background: var(--sw); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw) 30%, transparent); }
.sw summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.sw summary::-webkit-details-marker { display: none; }
.sw-title { display: grid; flex: 1; line-height: 1.3; }
.sw-title small { color: var(--muted); }
.sw[open] .wn-more::after { transform: rotate(-135deg) translateY(-1px); }
.sw-body { padding: 0 14px 12px 36px; }
.sw-body p { margin: 0 0 6px; }
.blink { animation: blink 1.33s steps(1) infinite; }
.sw.storm .blink { animation-duration: .67s; }
@keyframes blink { 50% { opacity: .15; } }

/* ------------------------------------------------- Müll & Sprit (Karten) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin: 0 0 22px; }
.card {
  padding: 18px 22px 14px; border-radius: var(--radius); display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.cd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cd-title { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.cd-title small { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.cd-icon { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card .w-src { margin-top: auto; padding-top: 10px; }

.card.waste.multi, .card.waste.multi ~ .card { grid-column: 1 / -1; }
.ws-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 4px 32px; }
.ws-col h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 2px 0 2px; font-size: 15px; font-weight: 650;
  padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.ws-col h3 small { font-weight: 400; color: var(--muted); font-size: 13px; }
@media (max-width: 680px) { .ws-col + .ws-col { margin-top: 18px; } }
.ws-list { list-style: none; margin: 0; padding: 0; }
.ws-list li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ws-list li:last-child { border-bottom: 0; }
.ws-list li.soon .ws-when strong { color: var(--focus); }
.ws-when { display: grid; line-height: 1.25; }
.ws-when small { color: var(--muted); font-size: 12.5px; }
.ws-items { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ws-chip { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; }
.ws-chip.rest   { background: #3b3f47; color: #fff; }
.ws-chip.gelb   { background: #ffd83d; color: #4a3b00; }
.ws-chip.papier { background: #d93b33; color: #fff; }
.ws-chip.bio    { background: #7a5634; color: #fff; }
@media (prefers-color-scheme: dark) { .ws-chip.rest { background: #5a606b; } }
.ws-note { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.ws-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }

.fu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.fu-col h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 2px; text-transform: uppercase; letter-spacing: .06em; }
.fu-col ol { list-style: none; margin: 0; padding: 0; }
.fu-col li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fu-col li:last-child { border-bottom: 0; }
.fu-name { display: grid; min-width: 0; line-height: 1.25; }
.fu-name strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-name small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-price { font-weight: 700; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fu-price sup { font-size: .6em; }
.fu-col li.best .fu-price { color: #2f9e6b; }
@media (max-width: 560px) { .card { padding: 16px; } .fu-cols { grid-template-columns: 1fr; } .ws-list li { grid-template-columns: 96px 1fr; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }

/* -------------------------------------------------------------- Abfahrten */
.card.transit { margin: 0 0 22px; }
.tr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 8px 28px; }
.tr-col h3 { display: flex; align-items: center; gap: 10px; margin: 2px 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--line); font-size: 15px; }
.tr-col h3 > span:last-child { display: grid; line-height: 1.25; }
.tr-col h3 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.tr-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.tr-ic.bus { background: color-mix(in srgb, #d6402b 15%, transparent); color: #d6402b; }
.tr-ic.train { background: color-mix(in srgb, #2f6fdd 15%, transparent); color: #2f6fdd; }
.tr-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tr-ic svg .f { fill: currentColor; stroke: none; }
.tr-col ol { list-style: none; margin: 0; padding: 0; }
.tr-col li { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tr-col li:last-child { border-bottom: 0; }
.tr-time { display: grid; line-height: 1.2; }
.tr-time strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.tr-late { color: #d92d20; font-size: 12.5px; font-weight: 700; }
.tr-ok { color: #2f9e6b; font-size: 11.5px; }
.tr-cancel { color: #d92d20; font-size: 12px; font-weight: 700; }
li.cancel .tr-time strong { text-decoration: line-through; color: var(--muted); }
.tr-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.tr-line { font-weight: 700; font-size: 13px; padding: 1px 7px; border-radius: 6px; background: var(--text); color: var(--card); white-space: nowrap; }
.tr-dir { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tr-main small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.tr-in { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tr-empty { color: var(--muted); font-size: 14px; padding: 10px 0; }
.tr-stop { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
@media (max-width: 680px) { .tr-col + .tr-col { margin-top: 14px; } }
.transit-diag h3 { font-size: 14px; margin: 12px 0 4px; }
.diag-list { margin: 0; padding-left: 20px; font-size: 14px; }
.diag-list li.sel { font-weight: 700; }
.diag-list small { color: var(--muted); font-weight: 400; }
.card.transit-diag { margin: 0 0 22px; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 24px 32px; }

@media (max-width: 560px) {
  .portal { padding-top: 28px; }
  .tiles { gap: 12px; }
  .tile { grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 14px; padding: 16px; }
  .tile-icon { grid-row: span 1; width: 44px; height: 44px; }
  .tile-text { align-self: center; }
  .tile-host { grid-column: 1 / -1; margin-top: 8px; padding-top: 8px; }
  .auth-card { padding: 26px 20px 20px; }
  .codes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
