/* ==========================================================================
   Mieter-App – Mobile-First Styles
   Design angelehnt an willbrandt-kompagnon.de:
   helles Grau, Oliv, Hellgrün auf Dunkel, Playfair Display + Source Sans,
   Titelband mit schräger Kante, schwarzer Fußbereich.
   ========================================================================== */

/* ---------- Schriften (lokal eingebunden, keine Verbindung zu Google) ---------- */
/* Zusatz-Zeichensätze (Tschechisch, Kyrillisch) lädt der Browser nur bei Bedarf (unicode-range). */
@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Playfair Display"; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Oswald"; font-weight: 400; font-display: swap; src: url("../fonts/oswald-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url("../fonts/oswald-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Farben von willbrandt-kompagnon.de */
:root {
  --c-bg: #f8f8f8;
  --c-surface: #ffffff;
  --c-text: #151515;
  --c-heading: #1a1a2e;       /* fette Zwischenüberschriften */
  --c-muted: #5f625a;
  --c-border: #e2e3dc;
  --c-primary: #6d7454;       /* Oliv: Logo, Überschriften, Buttons */
  --c-primary-ink: #ffffff;
  --c-primary-soft: #eef0e6;
  --c-lime: #e3f2b3;          /* Hellgrün auf dunklem Grund */
  --c-dark: #151515;          /* Fußbereich */
  --c-hero: #2b3033;          /* Titelband */
  --c-danger: #b3261e;
  --c-danger-soft: #fbeceb;
  --c-urgent: #b85c00;        /* dringende Störung (orange) */
  --c-urgent-soft: #fff1e0;
  --c-ok: #4f7a28;
  --c-whatsapp: #1c9d56;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-brand: "Oswald", "Arial Narrow", sans-serif;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(21, 21, 21, .05);
  --tap: 52px;
  --tabbar-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #151515;
    --c-surface: #1f201e;
    --c-text: #ecece8;
    --c-heading: #f4f4ef;
    --c-muted: #a6a99d;
    --c-border: #33352f;
    --c-primary: #b3ba8f;
    --c-primary-ink: #151515;
    --c-primary-soft: #2a2d23;
    --c-hero: #0d0f10;
    --c-danger: #ff7a70;
    --c-danger-soft: #3a1f1f;
    --c-urgent: #ffab57;
    --c-urgent-soft: #3a2a17;
    --c-ok: #a8d468;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.45;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 { color: var(--c-heading); }

img, iframe { max-width: 100%; }

[hidden] { display: none !important; }

a { color: var(--c-primary); }

:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }

/* ---------- Kopfzeile ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--c-bg);
  padding-top: env(safe-area-inset-top, 0px);
}
.app-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  min-height: 60px;
  margin: 0 auto;
  padding: 8px 16px;
}
.brand {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--c-primary);
  text-decoration: none;
  white-space: nowrap;
}
.brand strong { font-weight: 600; }

.icon-btn {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-primary);
  font-size: 22px;
  cursor: pointer;
}

.demo-banner {
  background: var(--c-lime);
  color: #151515;
  font-size: 14px;
  text-align: center;
  padding: 4px 16px;
}

/* ---------- Titelband ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .06), transparent 45%),
    linear-gradient(180deg, #3a4043 0%, var(--c-hero) 100%);
  color: var(--c-lime);
  /* schräge Oberkante wie auf der Website */
  clip-path: polygon(0 34px, 100% 0, 100% 100%, 0 100%);
  padding: 46px 16px 26px;
}
@media (prefers-color-scheme: dark) {
  .hero { background: linear-gradient(180deg, #25292b 0%, var(--c-hero) 100%); }
}
.hero__inner { max-width: 720px; margin: 0 auto; }
.hero__eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d9dccf;
  text-decoration: none;
  padding: 4px 0;
}
.hero__title {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  color: var(--c-lime);
}

/* ---------- Main / Views ---------- */
.app-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 8px;
  outline: none;
}

.view { animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }

.lead { margin: 0 0 18px; color: var(--c-text); }
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin: 34px 0 12px;
  color: var(--c-primary);
}
.section-title__sub {
  display: block;
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-heading);
}
.muted { color: var(--c-muted); }
.small { font-size: 15px; }
.link { display: inline-block; margin-top: 8px; }

/* ---------- Karten ---------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.card--accent { background: var(--c-surface); border-left: 4px solid var(--c-primary); }
.card__title { margin: 0 0 6px; font-family: var(--font-serif); font-weight: 400; font-size: 22px; color: var(--c-primary); }
.card p { margin: 0 0 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 12px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .06s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--block { display: flex; width: 100%; }
.btn--block + .btn--block { margin-top: 10px; }
.btn--primary { background: var(--c-primary); color: var(--c-primary-ink); }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--small { min-height: 40px; padding: 6px 14px; font-size: 16px; }
.btn--whatsapp { background: var(--c-whatsapp); color: #fff; }

/* ---------- Notfall-Kontakte ---------- */
.contact-list, .link-list, .departures { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
.contact:active { transform: scale(.99); }
.contact__icon { font-size: 28px; flex: none; }
.contact__body { flex: 1; min-width: 0; }
.contact__label { display: block; font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--c-heading); }
.contact__sub { display: block; font-size: 15px; color: var(--c-muted); }
.contact__call {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 22px;
}
.contact--danger { border-color: var(--c-danger); background: var(--c-danger-soft); }
.contact--danger .contact__call { background: var(--c-danger); }
.contact--urgent { border-color: var(--c-urgent); background: var(--c-urgent-soft); }
.contact--urgent .contact__call { background: var(--c-urgent); }

/* ---------- Regeln / Kiez (Akkordeon) ---------- */
.rules { display: grid; gap: 8px; }
.rule {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.rule summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--c-heading);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.rule summary::-webkit-details-marker { display: none; }
.rule summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--c-primary); }
.rule[open] summary::after { content: "–"; }
.rule p { margin: 0; padding: 0 16px 14px; }

/* ---------- Link-Liste (Dokumente) ---------- */
.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
}
.link-item__icon { font-size: 24px; }
.link-item__body { flex: 1; min-width: 0; }
.link-item__label { display: block; font-weight: 700; color: var(--c-heading); }
.link-item__sub { display: block; font-size: 15px; color: var(--c-muted); }
.link-item::after { content: "↓"; color: var(--c-primary); font-weight: 700; }

/* ---------- iFrame ---------- */

/* ---------- ÖPNV ---------- */
.transit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.transit-head__stop { font-weight: 700; color: var(--c-heading); }
.transit-info { margin-top: 16px; }
#transitStatus.is-error { color: var(--c-danger); }

.departure {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.departure__line {
  min-width: 52px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--c-primary);
  color: var(--c-primary-ink);
  font-weight: 700;
  text-align: center;
  font-size: 16px;
}
/* Offizielle Linienfarben (BVG/VBB) für schnelle Orientierung */
.departure__line[data-product="suburban"] { background: #007734; color: #fff; }
.departure__line[data-product="subway"] { background: #115d91; color: #fff; }
.departure__line[data-product="tram"] { background: #be1414; color: #fff; }
.departure__line[data-product="bus"] { background: #95276e; color: #fff; }
.departure__line[data-product="regional"] { background: #e2001a; color: #fff; }
.departure__dir { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--c-heading); }
.departure__meta { display: block; font-size: 14px; font-weight: 400; color: var(--c-muted); }
.departure__time { text-align: right; font-variant-numeric: tabular-nums; }
.departure__planned { display: block; font-weight: 700; font-size: 19px; }
.departure__delay { display: block; font-size: 14px; font-weight: 700; }
.delay--ok { color: var(--c-ok); }
.delay--late { color: var(--c-danger); }
.departure--cancelled { opacity: .7; }
.departure--cancelled .departure__planned { text-decoration: line-through; }

/* ---------- Service-Kacheln ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 124px;
  padding: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
.tile:active { transform: scale(.98); }
.tile__icon { font-size: 30px; }
.tile__label { font-family: var(--font-serif); font-size: 19px; line-height: 1.2; color: var(--c-heading); }
@media (min-width: 560px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { font-weight: 700; font-size: 16px; padding: 0; color: var(--c-heading); }
.field__hint { font-size: 15px; color: var(--c-muted); }
.field__hint.is-error { color: var(--c-danger); font-weight: 700; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 360px) { .field-row { grid-template-columns: 1fr; } }

input, select, textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  font: inherit;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--c-primary) 50%), linear-gradient(135deg, var(--c-primary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
textarea { resize: vertical; min-height: 96px; }
input[type="file"] { padding: 10px; font-size: 16px; }
input:focus, select:focus, textarea:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px var(--c-primary-soft); }
.was-validated :invalid { border-color: var(--c-danger); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; min-height: 0; cursor: pointer; }
.segmented span { display: grid; place-items: center; min-height: calc(var(--tap) - 3px); font-weight: 700; background: var(--c-surface); }
.segmented input:checked + span { background: var(--c-primary); color: var(--c-primary-ink); }
.segmented input:focus-visible + span { outline: 3px solid var(--c-primary); outline-offset: -3px; }

.photo-preview { display: block; max-height: 220px; border-radius: var(--radius); border: 1px solid var(--c-border); object-fit: contain; }

/* Honeypot gegen Spam-Bots – für Menschen unsichtbar */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Adress-Auswahl ---------- */
.picker-group + .picker-group { margin-top: 4px; }
.picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.picker__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 16px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-heading);
  font-weight: 700;
  text-decoration: none;
}
.picker__item.is-active { border-color: var(--c-primary); background: var(--c-primary-soft); }
.picker__check { color: var(--c-primary); font-size: 20px; }

/* ---------- Fußbereich (schwarz wie auf der Website) ---------- */
.app-footer {
  margin-top: 40px;
  padding: 32px 16px calc(var(--tabbar-h) + var(--safe-bottom) + 28px);
  background: var(--c-dark);
  color: #cfd0ca;
  font-size: 15px;
  text-align: center;
}
.app-footer__site { font-family: var(--font-serif); font-size: 22px; color: #fff; margin-bottom: 4px; }
.app-footer a { color: var(--c-lime); font-weight: 600; text-decoration: none; }

/* ---------- Tab-Leiste ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}
.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
  text-decoration: none;
}
.tabbar__item span { font-size: 22px; line-height: 1; filter: grayscale(1); opacity: .6; }
.tabbar__item[aria-current="page"] { color: var(--c-primary); }
.tabbar__item[aria-current="page"] span { filter: none; opacity: 1; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
  z-index: 20;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--c-dark);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.toast--ok { background: var(--c-dark); color: var(--c-lime); }
.toast--error { background: var(--c-danger); color: #fff; }

/* ---------- Rechtliches ---------- */
.legal p { margin: 0 0 14px; }
.hausordnung { margin: 0 0 8px; padding-left: 24px; }
.hausordnung li { margin-bottom: 10px; line-height: 1.5; }
.hausordnung li::marker { color: var(--c-primary); font-weight: 600; }
.legal .section-title { font-size: 22px; margin-top: 26px; }
.legal .rule + .rule { margin-top: 8px; }
.app-footer__legal { margin-top: 14px; }
.app-footer__legal a { color: #fff; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Zustimmung (Datenschutz) ---------- */
body.has-modal { overflow: hidden; }
.consent {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(21, 21, 21, .72);
  padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
}
.consent__box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--c-bg);
  border-radius: var(--radius);
  border-top: 6px solid var(--c-primary);
  padding: 20px 18px 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
}
.consent__box p { margin: 0 0 12px; font-size: 17px; }
.consent__brand { font-family: var(--font-brand); font-size: 18px; color: var(--c-primary); margin: 0 0 4px !important; }
.consent__brand strong { font-weight: 600; }
.consent__title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  color: var(--c-primary);
  outline: none;
}
.consent__list { margin: 0 0 12px; padding-left: 20px; font-size: 17px; }
.consent__list li { margin-bottom: 4px; }
.consent__links { font-size: 16px !important; }
.consent__check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0;
  padding: 14px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-primary);
  border-radius: var(--radius);
  font-size: 16px;
  cursor: pointer;
}
.consent__check input {
  flex: none;
  width: 26px;
  height: 26px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  appearance: auto;
  accent-color: var(--c-primary);
}
.consent__pin { margin: 16px 0 0; }
.consent__pin label { display: block; font-weight: 600; margin-bottom: 6px; }
.consent__pin label .muted { font-weight: 400; }
.consent__pin input {
  width: 100%;
  max-width: 220px;
  font-size: 26px;
  letter-spacing: 0.4em;
  text-align: center;
  padding: 10px 12px;
  border: 1.5px solid var(--c-primary);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
}
.consent__pin input:disabled { opacity: 0.5; }
.consent__pinmsg { color: var(--c-danger, #b3261e); font-weight: 600; font-size: 16px !important; margin: 8px 0 0 !important; min-height: 0; }
.consent__pinmsg:empty { display: none; }
.consent__contact { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px; }
.consent__back { margin-top: 16px; }
.consent-return {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
  z-index: 30;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

/* ---------- Infos: Sprungmarken, Abfall, Kiez ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.jump a {
  padding: 8px 14px;
  border: 1.5px solid var(--c-primary);
  border-radius: 999px;
  color: var(--c-primary);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.section-title[id] { scroll-margin-top: 76px; }
.subsection-title { margin: 22px 0 10px; font-size: 18px; font-weight: 700; color: var(--c-heading); }

.pickups { list-style: none; margin: 4px 0 16px; padding: 0; }
.pickup { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.pickup:last-child { border-bottom: 0; }
.pickup__dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.pickup__what strong { display: block; color: var(--c-heading); }
.pickup__what .muted { font-size: 15px; }
.pickup__when { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.rule__body { padding: 0 16px 6px; }
.rule__body p { padding: 0; margin: 0 0 10px; }
.yes { color: var(--c-ok); }
.no { color: var(--c-danger); }

.place-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.place {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.place__body { flex: 1; min-width: 0; }
.place__name { display: block; font-weight: 700; color: var(--c-heading); }
.place__addr { display: block; font-size: 15px; color: var(--c-muted); }

.link-list--more { margin-top: 10px; }
.link-item--page::after { content: "›"; font-size: 24px; }
.notice {
  padding: 12px 14px;
  background: var(--c-lime);
  color: #151515;
  border-radius: var(--radius);
  font-weight: 600;
}

/* ---------- Zurück-Button (Pill mit Ziel) ---------- */
.back-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 6px 14px 6px 8px;
  border: 1.5px solid var(--c-primary);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-primary);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.back-btn:active { background: var(--c-primary-soft); }
.back-btn:not([hidden]) + .brand { margin-left: auto; font-size: 18px; }

/* ---------- Direkt-Buttons in Verhaltensregeln ---------- */
.rule__actions { padding: 0 16px 16px; }
#transitStatus.is-warn { color: var(--c-heading); font-weight: 600; }

/* ---------- Wasserzähler: Anleitung, Blöcke, Zählerkarten ---------- */
.steps {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--c-lime);
  color: #151515;
  border-radius: var(--radius);
}
.steps__title { margin: 0 0 6px; font-weight: 700; font-size: 17px; }
.steps ol { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 4px; }
.form-block {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  min-width: 0;
}
.form-block__title { padding: 0; font-family: var(--font-serif); font-size: 20px; color: var(--c-primary); }
.meter { border-left: 4px solid var(--c-primary); }
#meterList { display: grid; gap: 12px; }
.meter__head { display: flex; justify-content: space-between; align-items: center; }
.meter__head legend { float: left; }
.meter__remove {
  border: 0;
  background: none;
  color: var(--c-danger);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 0;
}
.remember { display: flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; }
.remember input { width: 22px; height: 22px; min-height: 0; padding: 0; appearance: auto; accent-color: var(--c-primary); flex: none; }
.form-block > legend, .meter__head legend { float: left; width: 100%; margin: 0; }
.form-block > legend + * { clear: both; }
.meter__head { clear: both; }
.meter__head legend { width: auto; }
input[type="date"] { min-width: 0; max-width: 100%; }
.field-row > * { min-width: 0; }

/* ---------- Sprachwahl ---------- */
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.lang { margin-left: auto; }
.hero__btn + .lang { margin-left: 0; }
.lang__btn {
  list-style: none;
  cursor: pointer;
  padding: 4px 10px;
  border: 1px solid rgba(227, 242, 179, .5);
  border-radius: 999px;
  color: var(--c-lime);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}
.lang__btn::-webkit-details-marker { display: none; }
.lang[open] { flex-basis: 100%; }
.lang[open] .lang__btn { display: inline-block; margin-left: auto; }
.lang[open] summary { text-align: right; }
.lang__menu { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.lang__opt {
  padding: 8px 14px;
  border: 1.5px solid var(--c-lime);
  border-radius: 999px;
  background: transparent;
  color: var(--c-lime);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.lang__opt.is-active { background: var(--c-lime); color: #151515; }
.consent__langs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.consent__langs .lang__opt { border-color: var(--c-primary); color: var(--c-primary); font-size: 15px; padding: 6px 12px; }
.consent__langs .lang__opt.is-active { background: var(--c-primary); color: var(--c-primary-ink); }
body.lang-de .i18n-note { display: none; }

/* ---------- Aktuelles ---------- */
.news { margin-bottom: 22px; }
.news__heading { margin: 0 0 10px; font-family: var(--font-serif); font-weight: 400; font-size: 26px; color: var(--c-primary); }
.news__item {
  padding: 14px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius);
}
.news__item + .news__item { margin-top: 10px; }
.news__item--important { border-color: var(--c-danger); border-left-color: var(--c-danger); background: var(--c-danger-soft); }
.news__flag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--c-danger);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.news__title { margin: 0 0 4px; font-size: 19px; color: var(--c-heading); }
.news__text { margin: 0; white-space: pre-line; }
.news__date { margin: 6px 0 0; font-size: 14px; color: var(--c-muted); }

/* ---------- Meine Meldungen ---------- */
.status-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.status-item__body { flex: 1; min-width: 0; }
.status-item__type { display: block; font-weight: 700; color: var(--c-heading); }
.status-item__meta { display: block; font-size: 14px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.badge { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--c-primary-soft); color: var(--c-heading); }
.badge--offen, .badge--eingegangen { background: #fff1c7; color: #6b4d00; }
.badge--in-Arbeit { background: #dbe9f7; color: #16426b; }
.badge--erledigt, .badge--geprüft { background: #dcefd2; color: #2c5a17; }
.badge--unbekannt { background: var(--c-danger-soft); color: var(--c-danger); }
.status-lookup { margin-top: 28px; }
.tile--status { border-top-color: var(--c-heading); }

/* Anleitung in Verhaltensregeln (z. B. Wasser abstellen) */
.guide { margin: 4px 16px 16px; padding: 14px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.guide__title { font-size: 18px; margin: 0 0 10px; color: var(--c-primary); }
.guide__steps { margin: 12px 0 0; padding-left: 22px; }
.guide__steps li { margin-bottom: 8px; line-height: 1.45; }
.guide__steps li::marker { color: var(--c-primary); font-weight: 700; }
.valves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.valve { margin: 0; text-align: center; }
.valve svg { width: 100%; height: auto; max-height: 80px; }
.valve figcaption { font-size: 13px; line-height: 1.25; margin-top: 2px; }
.v-pipe { fill: #9aa3ab; }
.v-body { fill: #c9a24a; }
.v-hub { fill: #fff; stroke: #333; stroke-width: 1.5; }
.v-lever.v-ok { fill: #2e7d32; }
.v-lever.v-stop { fill: var(--c-danger); }
.v-wheel { fill: var(--c-danger); }
.v-arrow { fill: none; stroke: var(--c-text); stroke-width: 3; stroke-linecap: round; }
.v-arrowhead { fill: var(--c-text); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-weight: 700; font-size: 12px; color: #fff; margin-bottom: 2px; }
.tag--ok { background: #2e7d32; }
.tag--stop { background: var(--c-danger); }
.steps__tip { margin: 10px 0 0; font-size: 16px; }
.stand { display: flex; gap: 6px; }
.stand input { flex: 1; min-width: 0; }
.stand select { width: auto; flex: none; }
.segmented--3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.stand select[hidden] { display: none; }

/* ---------- Epic 3: Hausmeister-Portal ---------- */
.tabbar--5 { grid-template-columns: repeat(5, 1fr); }
.tabbar--5 .tabbar__item { font-size: 12px; }
.btn--big { min-height: 64px; font-size: 20px; }
.staff-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.staff-head__name { font-weight: 700; font-size: 20px; }
.segmented--tabs { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.staff-pane > .btn + .btn, #scanStart .btn + .btn { margin-top: 10px; }
.scanner { margin-bottom: 12px; }
#scannerView { width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; min-height: 260px; }
#scannerView video { width: 100% !important; height: auto !important; }
.scan-form { margin-top: 4px; }
.scan-place { padding: 14px; margin-bottom: 14px; border: 2px solid var(--c-primary); border-radius: var(--radius); background: var(--c-surface); }
.scan-place__name { font-size: 20px; font-weight: 700; }
.scan-form .btn + .btn { margin-top: 10px; }
.scan-done {
  position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 16px;
  padding: 24px; text-align: center; background: rgba(46, 125, 50, 0.96); color: #fff;
}
.scan-done--queued { background: rgba(107, 77, 0, 0.96); }
.scan-done__check { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 72px; font-weight: 700; background: #fff; color: #2e7d32; }
.scan-done--queued .scan-done__check { color: #6b4d00; }
.scan-done__text { font-size: 22px; font-weight: 700; max-width: 22em; }
.today-list, .task-list, .care__list { list-style: none; margin: 0; padding: 0; }
.today-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.today-list__time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--c-primary); }
.task { padding: 14px 16px; margin-top: 10px; background: var(--c-surface); border: 1px solid var(--c-border); border-left: 5px solid var(--c-primary); border-radius: var(--radius); }
.task--urgent { border-left-color: var(--c-danger); }
.task__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.task__type { font-weight: 700; font-size: 18px; }
.task__where, .task__date, .task__contact { margin-top: 2px; }
.task__details { margin: 6px 0; white-space: pre-line; }
.task__meta { margin: 6px 0 10px; }
.badge--dringend { background: var(--c-danger); color: #fff; }
.staff-admin { margin-top: 8px; }
.staff-privacy { margin: 22px 0 12px; }
#staffTabs + .staff-pane .section-title { margin-top: 24px; }

/* Bewohner: Hausreinigung */
.care { margin-top: 28px; }
.care__title { margin: 0 0 6px; font-size: 16px; color: var(--c-primary); }
.care__title + .care__list { margin-bottom: 12px; }
.care__list li { display: grid; grid-template-columns: 7.2em 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--c-border); }
.care__list li:first-child { border-top: 0; }
.care__date { font-weight: 700; font-variant-numeric: tabular-nums; }

/* QR-Druckbogen */
.qr-sheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.qr-card { margin: 0; padding: 12px; background: #fff; color: #111; border: 2px solid #6d7454; border-radius: 10px; text-align: center; break-inside: avoid; }
.qr-card__brand { font-family: var(--font-brand); color: #6d7454; font-size: 14px; }
.qr-card__code svg { width: 100%; height: auto; max-width: 220px; }
.qr-card figcaption { display: grid; gap: 2px; }
.qr-card__place { font-size: 16px; line-height: 1.2; }
.qr-card__hint { font-size: 12px; }
.qr-card__id { font-size: 10px; color: #666; }

@media print {
  body { background: #fff !important; }
  .app-header, .hero, .tabbar, .app-footer, .no-print, .toast, .consent, .consent-return, .back-btn { display: none !important; }
  .app-main { padding: 0 !important; max-width: none !important; }
  .qr-sheet { grid-template-columns: repeat(3, 1fr); gap: 8mm; }
  .qr-card { page-break-inside: avoid; }
}
.kiez-link { margin-top: 8px; }
.badge--owner { background: var(--c-surface); border: 1px solid var(--c-border); font-weight: 600; }

/* UX: Erklärzeile auf den Service-Kacheln */
.tile__sub { font-size: 14px; line-height: 1.3; color: var(--c-muted, #5c6152); margin-top: -2px; }
/* UX: Zustimmung – Details aufklappbar */
.consent__more { margin: 0 0 12px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); }
.consent__more > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 16px; color: var(--c-primary); list-style: none; }
.consent__more > summary::-webkit-details-marker { display: none; }
.consent__more > summary::after { content: " +"; }
.consent__more[open] > summary::after { content: " –"; }
.consent__more > :not(summary) { margin-left: 14px !important; margin-right: 14px !important; }
.consent__more[open] { padding-bottom: 4px; }
/* UX: Foto-Auswahl im Stil der App */
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 10px 14px; border: 1.5px solid var(--c-primary); border-radius: var(--radius);
  background: var(--c-surface); color: var(--c-primary); font: inherit; font-weight: 700; cursor: pointer;
}

/* Infos: Einstieg zu den Abfahrten */
.transit-link { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 16px; text-decoration: none; color: inherit; }
.transit-link__icon { font-size: 28px; }
.transit-link__title { display: block; font-weight: 700; font-size: 18px; color: var(--c-heading); }
.transit-link__sub { display: block; font-size: 14px; color: var(--c-muted); }
.transit-link__go { font-size: 26px; color: var(--c-primary); }
.section-title--first { margin-top: 0; }
.news:not([hidden]) + .section-title--first { margin-top: 8px; }
/* Ungerade Kachelzahl: letzte Kachel über die volle Breite (2 Spalten am Handy) */
@media (max-width: 559px) {
  .tile-grid > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Größere Schrift (Schalter A+) */
.hero__btn {
  margin-left: auto; padding: 4px 10px; min-height: 0; border: 1px solid rgba(227, 242, 179, .5); border-radius: 999px;
  background: transparent; color: var(--c-lime); font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .04em; cursor: pointer;
}
.hero__btn[aria-pressed="true"] { background: var(--c-lime); color: var(--c-hero); }
html.text-large body { zoom: 1.18; }

/* Kurze Einführung */
.intro { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 16px; background: rgba(20, 22, 18, .6); }
.intro__box { width: 100%; max-width: 420px; background: var(--c-bg); border-radius: 14px; border-top: 6px solid var(--c-primary); padding: 26px 22px 20px; text-align: center; display: grid; gap: 10px; }
.intro__icon { font-size: 52px; line-height: 1; }
.intro__title { font-family: var(--font-serif); font-weight: 400; font-size: 28px; color: var(--c-primary); margin: 4px 0 0; outline: none; }
.intro__text { margin: 0 0 6px; font-size: 18px; line-height: 1.45; }
.intro__dots { display: flex; justify-content: center; gap: 8px; margin: 2px 0 8px; }
.intro__dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--c-border); }
.intro__dots span.is-active { background: var(--c-primary); }

/* ---------- Cockpit (Verwaltung) ---------- */
.cockpit-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 12px 14px; background: var(--c-surface); border: 1px solid var(--c-border); border-top: 4px solid var(--c-border); border-radius: var(--radius); }
.kpi--green { border-top-color: var(--c-ok); }
.kpi--yellow { border-top-color: #e0a100; }
.kpi--red { border-top-color: var(--c-danger); }
.kpi__value { font-size: 26px; font-weight: 800; line-height: 1.1; }
.kpi__label { font-weight: 700; margin-top: 2px; }
.kpi__sub { font-size: 14px; color: var(--c-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.chip { min-height: 40px; padding: 6px 14px; border: 1.5px solid var(--c-border); border-radius: 999px; background: var(--c-surface); color: inherit; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-ink); }
.sla-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--c-border); }
.sla-dot--red { background: var(--c-danger); }
.sla-dot--yellow { background: #e0a100; }
.sla-dot--green { background: var(--c-ok); }
.sla-dot--done { background: var(--c-muted); }
.task--sla-red { border-left-color: var(--c-danger); }
.task--sla-yellow { border-left-color: #e0a100; }
.task--sla-green { border-left-color: var(--c-ok); }
.task--sla-done { border-left-color: var(--c-border); }
.task__due { font-weight: 700; }
.task--sla-red .task__due { color: var(--c-danger); }
.task__edit { margin-top: 8px; }
.task__edit summary { cursor: pointer; font-weight: 700; color: var(--c-primary); min-height: 40px; display: flex; align-items: center; }
.task__edit .form { margin-top: 6px; }
.chart { margin: 0 0 18px; padding: 12px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.chart figcaption { font-weight: 700; margin-bottom: 6px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart__axis { font-size: 10px; fill: var(--c-muted); }
.chart__grid { stroke: var(--c-border); stroke-width: 1; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; margin-top: 6px; }
.chart__key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.hbars { list-style: none; margin: 0; padding: 0; }
.hbars li { display: grid; grid-template-columns: minmax(0, 1.4fr) 2fr auto; gap: 8px; align-items: center; margin: 6px 0; font-size: 15px; }
.hbars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars__bar { height: 12px; background: var(--c-primary-soft); border-radius: 6px; overflow: hidden; }
.hbars__bar i { display: block; height: 100%; background: var(--c-primary); }
.hbars__n { font-weight: 700; }

/* ---------- Wetter (Startseite) ---------- */
.weather { margin: 0 0 18px; padding: 12px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.weather__days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.weather__name { font-weight: 700; font-size: 15px; }
.weather__icon { font-size: 30px; line-height: 1.3; }
.weather__temp { font-size: 17px; }
.weather__warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--c-urgent-soft); border-left: 5px solid #e08a00; }
.weather__warn--cold { background: #e6f0fa; border-left-color: #3a6ea5; }
.weather__warn--severe { background: var(--c-danger-soft); border-left-color: var(--c-danger); }
.weather__warn p { margin: 4px 0 0; font-size: 15px; }
.weather__warn-icon { font-size: 22px; line-height: 1.2; }
.weather__src { margin: 8px 0 0; font-size: 12px; color: var(--c-muted); text-align: right; }
@media (prefers-color-scheme: dark) { .weather__warn--cold { background: #1d2a38; } }
