/* =========================================================
   JH FamilySync — Themenseiten (Ratgeber), 26.09.2026
   ---------------------------------------------------------
   Gilt NUR für die Artikel-Elemente der Themenseiten
   (web/<thema>/index.html, Vorlage: tools/vorlagen/themenseite.html).
   Kopf, Fuss, Knöpfe, FAQ, Store-Badges, Cookie-Hinweis und die
   gezeichnete App kommen aus landing.css; diese Datei wird DANACH
   eingebunden. Farben und Schrift sind die Variablen aus landing.css
   (:root). Dunkelmodus wie landing.css: die Seiten bleiben hell.
   Handy zuerst: 16 px Rand, nichts breiter als der Bildschirm.
   ========================================================= */

/* ---------- Kopf: auf dem Handy am Rand des Textes (16 px) ---------- */
@media (max-width: 639px) {
  .seite .site-header .container { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Spalte ---------- */
.seite-spalte {
  width: 100%;
  max-width: 752px;          /* 720 Text + 2 x 16 Rand */
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .seite-spalte { max-width: 768px; padding: 0 24px; }
}

/* ---------- Brotkrumen ---------- */
.brotkrumen {
  padding-top: 22px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.brotkrumen ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brotkrumen li {
  display: inline-flex;
  align-items: center;
  color: var(--mute);
  min-width: 0;
}
.brotkrumen li + li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin: 0 10px 0 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  flex: none;
}
.brotkrumen a { color: var(--primary-deep); font-weight: 600; }
.brotkrumen [aria-current="page"] { color: var(--ink-soft); font-weight: 600; }

/* ---------- Artikelkopf (klein und schnell, kein Hero) ---------- */
.seite-kopf {
  padding: 18px 0 8px;
}
.seite-kopf .eyebrow { margin-bottom: 12px; }
.seite-titel {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 1.35rem + 3.4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 18px;
  font-variation-settings: "opsz" 120, "WONK" 0, "SOFT" 0;
  overflow-wrap: break-word;
  /* manual statt auto: auto trennte am Handy auch Wörter, die ganz Platz
     hatten (en-fants, ga-gner, re-warded). Bei 360 px passt jedes Wort
     der Titel (gemessen an allen Seiten); für schmalere Fenster bleibt
     overflow-wrap als Netz. */
  hyphens: manual;
}
.seite-lead {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.24rem);
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.seite-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--mute);
}
.seite-meta .stand { font-weight: 700; color: var(--ink-soft); }

/* ---------- Auf dieser Seite (Inhaltsverzeichnis) ---------- */
.inhalt {
  margin: 28px 0 8px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.inhalt__titel {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.inhalt ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: inhalt;
  display: grid;
  gap: 2px;
}
.inhalt li { counter-increment: inhalt; }
.inhalt a {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.4;
}
.inhalt a::before {
  content: counter(inhalt);
  flex: none;
  width: 1.4em;
  color: var(--primary-deep);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.inhalt a:hover { color: var(--primary-deep); }

/* ---------- Fliesstext ---------- */
.artikel { padding-bottom: 12px; }
.artikel h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 52px 0 14px;
  font-variation-settings: "opsz" 110, "WONK" 0, "SOFT" 0;
  scroll-margin-top: 88px;
  overflow-wrap: break-word;
}
.artikel h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.14rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 30px 0 8px;
  scroll-margin-top: 88px;
}
.artikel p,
.artikel li {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink-soft);
}
.artikel p { margin: 0 0 1.05em; }
.artikel strong { color: var(--ink); font-weight: 700; }
.artikel a:not(.btn):not(.store-badge) {
  color: var(--primary-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.artikel a:not(.btn):not(.store-badge):hover { text-decoration-thickness: 2px; }

/* Aufzählung ohne eigene Klasse: Punkt in der Akzentfarbe wie .fakten-liste */
.artikel ul:not([class]),
.punkte {
  margin: 0 0 1.3em;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.artikel ul:not([class]) > li,
.punkte > li {
  position: relative;
  padding-left: 24px;
}
.artikel ul:not([class]) > li::before,
.punkte > li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Nummerierte Liste ohne eigene Klasse */
.artikel ol:not([class]) {
  margin: 0 0 1.3em;
  padding-left: 1.4em;
  list-style: decimal;
}
.artikel ol:not([class]) > li { padding-left: 4px; margin-bottom: 6px; }
.artikel ol:not([class]) > li::marker { color: var(--primary-deep); font-weight: 800; }

/* ---------- Schritte (So geht es in der App) ---------- */
.schritte {
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: schritt;
  display: grid;
  gap: 14px;
}
.schritte > li {
  counter-increment: schritt;
  position: relative;
  padding: 16px 18px 16px 62px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.schritte > li::before {
  content: counter(schritt);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lavender);
  color: var(--primary-deep);
  font-weight: 800;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.schritte > li > strong:first-child {
  display: block;
  margin-bottom: 2px;
  font-size: 1.04rem;
  color: var(--ink);
}
.schritte > li p { margin: 0; }
@media (max-width: 480px) {
  .schritte > li { padding: 14px 16px 14px 52px; }
  .schritte > li::before { left: 13px; top: 14px; width: 28px; height: 28px; font-size: 0.88rem; }
}
.schritte > li p + p { margin-top: 0.6em; }

/* Bezeichnungen aus der App (Knöpfe, Bereiche) — wie sie dort heissen */
.app-wort {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Tipp- und Hinweiskasten ---------- */
.tipp {
  margin: 24px 0;
  padding: 16px 18px 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 6px var(--radius) var(--radius) 6px;
}
.tipp--hinweis { border-left-color: var(--accent-dark); background: #FFF8FB; }
.tipp__titel {
  display: block;
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-deep);
}
.tipp--hinweis .tipp__titel { color: var(--accent-dark); }
.tipp p { margin: 0; }
.tipp p + p { margin-top: 0.6em; }

/* ---------- Tabellen ---------- */
.tabelle-rahmen {
  margin: 22px 0 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.tabelle caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 0;
  font-weight: 800;
  color: var(--ink);
}
.tabelle th,
.tabelle td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}
.tabelle thead th {
  background: var(--lavender);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tabelle caption + thead th { border-top: 12px solid var(--surface); }
.tabelle tbody tr + tr > * { border-top: 1px solid var(--line); }
.tabelle tbody th {
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
/* Auf schmalen Bildschirmen: die erste Spalte darf umbrechen, damit die
   Tabelle nicht breiter als der Bildschirm wird. */
@media (max-width: 480px) {
  .tabelle th,
  .tabelle td { padding: 10px 12px; }
  .tabelle tbody th { white-space: normal; min-width: 5.5em; }
}

/* ---------- Gezeichneter App-Bildschirm ---------- */
.app-bild {
  margin: 34px auto 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.app-bild .phone { --s: 0.6; }            /* 264 px Bildschirm */
.app-bild figcaption {
  max-width: 44ch;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--mute);
}
@media (max-width: 380px) {
  .app-bild .phone { --s: 0.55; }         /* 242 px */
}
/* Auf breiten Bildschirmen steht das Handy im Rand rechts neben dem Text,
   ohne den Text zu verschieben: der negative Rand rechts ist so gross wie
   Handy (282) und Abstand (32) zusammen. Rechte Kante bei 1400 px Fenster:
   700 + 360 + 314 = 1374, dazu Platz für den Scrollbalken. */
@media (min-width: 1400px) {
  .app-bild--rand {
    float: right;
    width: 282px;
    margin: 6px -314px 24px 32px;
  }
}

/* ---------- FAQ (Stil aus landing.css, .faq) ---------- */
.faq.seite-faq {
  padding: 0;
  background: none;
  margin-top: 8px;
}
.seite-faq h2 { margin-bottom: 20px; }
.seite-faq .faq-list { max-width: none; }
.seite-faq details p { font-size: 1.02rem; line-height: 1.68; color: var(--ink-soft); }
.seite-faq details p + p { margin-top: -10px; }

/* ---------- Handlungsaufruf ---------- */
.cta-band {
  margin: 56px 0 8px;
  padding: 34px 22px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 138, 177, 0.24), transparent 55%),
    radial-gradient(circle at 90% 85%, rgba(108, 142, 245, 0.32), transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, #0d0e1c 100%);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 10px;
  font-variation-settings: "opsz" 110, "WONK" 0, "SOFT" 0;
}
.cta-band p {
  margin: 0 auto 20px;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}
.cta-band .store-badges { justify-content: center; margin: 0 0 14px; }
.cta-band .store-badge {
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.cta-band .btn { white-space: normal; }
.cta-band__hinweis {
  margin: 16px auto 0 !important;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.68) !important;
}
@media (min-width: 640px) {
  .cta-band { padding: 44px 40px 38px; }
}

/* ---------- Weitere Themen ---------- */
.themen {
  margin: 48px 0 12px;
}
.themen h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 16px;
  font-variation-settings: "opsz" 110, "WONK" 0, "SOFT" 0;
}
.themen ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
@media (min-width: 640px) {
  .themen ul { grid-template-columns: 1fr 1fr; }
}
.themen a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  transition: border-color .2s, transform .2s;
}
.themen a::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--primary-deep);
  border-right: 2px solid var(--primary-deep);
  transform: rotate(45deg);
}
.themen a:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  text-decoration: none;
  transform: translateY(-1px);
}
.seite-ende { padding-bottom: 72px; }

/* =========================================================
   Gezeichnete App: Bildschirme, die nur Themenseiten zeigen
   (aemtli, alltag). Grundlage (.a, Statusleiste, Leiste, Kopf)
   steht in landing.css; das HTML erzeugt tools/webseite_mockups.py.
   Masse in Punkten der App (440 x 956).
   ========================================================= */

/* Avatar (MitgliedAvatar ohne Bild): Initiale 42 % der Grösse */
.a .a-kopf-rund {
  width: var(--g); height: var(--g); flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--f); color: var(--t);
  font-size: calc(var(--g) * 0.42); font-weight: 800; line-height: 1; letter-spacing: 0.25px;
}

/* Alltag → Aufgaben (tasks_screen.dart, sterne_leiste.dart) */
.a-aufgaben { position: absolute; left: 16px; top: 126px; width: 408px; display: flex; flex-direction: column; }
.a-st-kopf { height: 21.45px; margin: 0 0 8px 4px; display: flex; align-items: center; }
.a-st-kopf svg { width: 14px; height: 14px; color: #F5A623; }
.a-st-kopf b { flex: 1; margin-left: 6px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.a-st-kopf em { padding: 0 8px; color: #4B5C92; font-size: 12px; font-weight: 700; letter-spacing: 0.1px; white-space: nowrap; }
.a-st-geteilt {
  height: 16.45px; margin: 0 4px 8px; display: flex; align-items: center;
  font-size: 11.5px; color: var(--sub); white-space: nowrap; overflow: hidden;
}
.a-st-geteilt svg { width: 13px; height: 13px; margin-right: 5px; }
.a-st-reihe { height: 152px; padding: 0 2px; display: flex; align-items: flex-start; overflow: hidden; }
.a-truhe { flex: none; padding: 6px; display: flex; flex-direction: column; align-items: center; }
.a .a-truhe__bild { width: 88px; height: 72.16px; }
.a-truhe b { margin-top: 4px; font-size: 13px; font-weight: 800; line-height: 1.43; }
.a-truhe--offen b { color: #7BC67E; }
.a-glas { flex: none; width: 110px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; }
.a-glas__glas { position: relative; width: 86px; height: 98.9px; }
.a .a-glas__bild { width: 86px; height: 98.9px; }
.a-glas__glas > span {
  position: absolute; left: 0; right: 0; top: 50.4px; text-align: center;
  font-size: 25.8px; line-height: 25.8px; font-weight: 800; letter-spacing: 0.25px;
}
.a-glas > b {
  width: 94px; margin-top: 6px; text-align: center; font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.a-glas > small {
  width: 102px; margin-top: 1px; text-align: center; font-size: 11px; font-weight: 500; color: var(--sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.a-podest { margin-top: 10px; display: flex; flex-direction: column; }
.a-podest > b { font-size: 14px; font-weight: 800; white-space: nowrap; }
.a-podest > small { margin-top: 2px; font-size: 11.5px; color: var(--sub); white-space: nowrap; }
.a-podest__stufen { margin-top: 10px; display: flex; justify-content: center; align-items: flex-end; }
.a-stufe { width: 72px; padding: 0 5px; display: flex; flex-direction: column; align-items: center; }
.a-stufe > b {
  width: 62px; margin-top: 4px; text-align: center; font-size: 11.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.a-stufe > span { display: flex; align-items: center; gap: 1px; color: #F5A623; font-size: 11.5px; font-weight: 800; }
.a-stufe > span svg { width: 11px; height: 11px; }
.a-stufe > em {
  display: block; width: 62px; margin-top: 4px; border-radius: 7px 7px 0 0;
  background: linear-gradient(var(--f85), var(--f45));
}
.a-liste-kopf {
  height: 25.9px; margin: 12px 0 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: space-between;
}
.a-liste-kopf > span { font-size: 12.5px; font-weight: 700; color: var(--sub); white-space: nowrap; }
.a-liste-kopf em {
  display: flex; align-items: center; gap: 8px; padding: 4px 8px;
  color: var(--p); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1px; white-space: nowrap;
}
.a-liste-kopf svg { width: 16px; height: 16px; }
.a-aufgabe {
  flex: none; margin-bottom: 8px; padding: 12px 14px 14px; border-radius: 14px; background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); display: flex; align-items: flex-start;
}
.a-haken { width: 24px; height: 24px; margin-top: 1px; flex: none; border-radius: 50%; border: 2px solid var(--sub); }
.a-haken--an { background: var(--p); border-color: var(--p); color: #fff; display: grid; place-items: center; }
.a-haken--an svg { width: 16px; height: 16px; }
.a-aufgabe__text { flex: 1; min-width: 0; margin-left: 12px; }
.a-aufgabe__zeile { display: flex; align-items: flex-start; }
.a-aufgabe__zeile b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.43; }
.a-aufgabe--erledigt .a-aufgabe__zeile b { color: var(--sub); text-decoration: line-through; text-decoration-color: var(--sub); }
.a-wert {
  flex: none; margin-left: 8px; padding: 3px 7px; border-radius: 8px;
  background: rgba(245, 166, 35, 0.16); color: #F5A623;
  display: flex; align-items: center; gap: 1px; font-size: 12px; font-weight: 800; line-height: 1.43;
}
.a-aufgabe--erledigt .a-wert { background: rgba(245, 166, 35, 0.10); }
.a-wert svg { width: 12px; height: 12px; }
.a-chips { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.a-chip {
  display: flex; align-items: center; gap: 5px; height: 24px; padding: 2px 8px 2px 3px; border-radius: 12px;
  background: var(--c15); color: var(--c); font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.a-faellig {
  display: flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px;
  background: rgba(155, 155, 180, 0.12); color: var(--sub); font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.a-faellig svg { width: 12px; height: 12px; }
.a-fab {
  position: absolute; left: 368px; top: 850px; width: 56px; height: 56px; border-radius: 16px;
  background: var(--p); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.12);
}
.a-fab svg { width: 28px; height: 28px; }

/* Alltag (alltag_hub_screen.dart): Kopf wie die Anlässe, dazu „Anpassen" */
.a-anpassen {
  position: absolute; right: 24px; top: 0; height: 48px; display: flex; align-items: center; gap: 8px;
  color: #4B5C92; font-size: 14px; font-weight: 700; letter-spacing: 0.1px; white-space: nowrap;
}
.a-anpassen svg { width: 18px; height: 18px; }
.a-hub { position: absolute; left: 16px; top: 126px; width: 408px; }
.a .a-hub > p { margin: 0 0 18px; font-size: 15px; line-height: 1.43; color: var(--sub); }
.a-werkzeug {
  display: flex; align-items: center; margin-bottom: 12px; border: 1.5px solid transparent; border-radius: 18px;
  background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.a-werkzeug__innen { flex: 1; min-width: 0; display: flex; align-items: center; padding: 16px 4px 16px 16px; }
.a-werkzeug__zeichen {
  width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--c); color: #fff;
  display: grid; place-items: center;
}
.a-werkzeug__zeichen svg { width: 26px; height: 26px; }
.a-werkzeug__text { flex: 1; min-width: 0; margin-left: 14px; display: flex; flex-direction: column; }
.a-werkzeug__text b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-werkzeug__text span { margin-top: 2px; font-size: 13px; color: var(--sub); }
.a-werkzeug em {
  flex: none; margin: 0 8px 0 4px; padding: 4px 9px; border-radius: 10px;
  background: var(--c15); color: var(--c); font-size: 13px; font-weight: 800; line-height: 1.43;
}
.a-werkzeug > svg { margin-right: 16px; color: var(--sub); }

/* ---------------------------------------------------------
   Gezeichnete App: Wochenplan, Finanzen, Packliste, Stempeluhr
   (nur Themenseiten). HTML aus tools/webseite_mockups.py, Masse
   in Punkten der App (440 x 956). Zeilenhöhen ganzzahlig wie in
   der App (Schriftgrösse x 1.43, gerundet).
   --------------------------------------------------------- */

/* Leiste auf der Farbe der Seite (Finanzen, Packliste): Zurück von iOS,
   Titel 20 fett mittig, rechts ein Symbolknopf. */
.a-kopfleiste { position: absolute; left: 0; top: 62px; width: 440px; height: 56px; }
.a-kopfleiste--sliver { top: 61px; }
.a-kopfleiste > svg { position: absolute; left: 16px; top: 16px; color: var(--ink); }
.a-kopfleiste > svg.rechts { left: 404px; }
.a-kopfleiste b {
  position: absolute; left: 72px; right: 72px; top: 0; line-height: 56px; text-align: center;
  font-size: 20px; font-weight: 800; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Weisse Leiste mit Symbolknopf rechts (Stempeluhr) */
.a-appbar svg.a-appbar__rechts { left: 404px; }

/* Alltag → Wochenplan (mealplan_screen.dart: _weekHeader, _dayCard) */
.a-wp-woche { position: absolute; left: 0; top: 118px; width: 440px; height: 72px; }
.a-wp-woche > svg { position: absolute; top: 22px; }
.a-wp-woche > svg:first-child { left: 24px; }
.a-wp-woche > svg:last-child { left: 392px; }
.a-wp-woche b, .a-wp-woche small { position: absolute; left: 60px; width: 320px; text-align: center; white-space: nowrap; }
.a-wp-woche b { top: 14px; font-size: 16px; line-height: 23px; font-weight: 800; }
.a-wp-woche small { top: 37.5px; font-size: 12px; line-height: 17px; font-weight: 700; color: var(--p); }
.a-wp { position: absolute; left: 16px; top: 190px; width: 408px; }
.a-wp-tag {
  display: flex; align-items: center; margin-bottom: 8px; padding: 12px 14px; border-radius: 14px;
  background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.a-wp-tag--heute { border: 1.5px solid var(--p); }
.a-wp-datum { position: relative; top: 0.33px; width: 52px; flex: none; display: flex; flex-direction: column; }
.a-wp-datum b { font-size: 14px; line-height: 20px; font-weight: 800; }
.a-wp-tag--heute .a-wp-datum b { color: var(--p); }
.a-wp-datum small { font-size: 11px; line-height: 16px; color: var(--sub); white-space: nowrap; }
.a-wp-inhalt { flex: 1; min-width: 0; margin-left: 10px; display: flex; flex-direction: column; }
.a-wp-inhalt > b { position: relative; top: 0.67px; font-size: 15px; line-height: 21px; font-weight: 700; }
.a-wp-koch { margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.a-wp-koch > span { font-size: 12px; line-height: 17px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.a-wp-mahl { display: flex; align-items: flex-start; padding-bottom: 3px; }
.a .a-wp-mahl svg { width: 13px; height: 13px; margin-right: 6px; color: var(--sub); }
.a-wp-mahl b {
  flex: 1; min-width: 0; font-size: 14px; line-height: 20px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.a .a-wp-tag > svg { width: 18px; height: 18px; color: var(--sub); }

/* Alltag → Finanzen, Monat (finanzen_screen.dart) */
.a-fz { position: absolute; left: 16px; top: 121px; width: 408px; display: flex; flex-direction: column; }
.a-fz-wer { display: flex; align-items: center; padding: 9px 10px 9px 12px; border-radius: 14px; background: var(--pl); }
.a .a-fz-wer > svg { width: 17px; height: 17px; color: var(--ink); }
.a .a-fz-wer > svg:last-child { width: 16px; height: 16px; color: var(--sub); }
.a-fz-wer__text { flex: 1; min-width: 0; margin-left: 8px; display: flex; flex-direction: column; }
.a-fz-wer__text b { font-size: 12px; line-height: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-fz-wer__text small { font-size: 11.5px; line-height: 16px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-fz-koepfe { position: relative; width: 44px; height: 26px; flex: none; }
.a-fz-koepfe .a-kopf-rund { position: absolute; top: 0; }
.a-fz-kopf0 { right: 0; }
.a-fz-kopf1 { right: 18px; }
.a-fz-kopf2 { right: 36px; }
.a-fz-reiter {
  height: 40px; margin: 16px 0 18px; display: flex; border: 1px solid #757680; border-radius: 20px; overflow: hidden;
}
/* Segment mit Symbol = TextButton.icon: innen links 12, rechts 16. Die
   Schrift ist labelLarge (500), gezeichnet aber im normalen Schnitt, weil das
   Thema die Familie des normalen Schnitts setzt (textTheme.apply). */
.a-fz-reiter span {
  flex: 1 1 0; min-width: 0; overflow: hidden; padding: 0 16px 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #1A1B21; font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0.1px; white-space: nowrap;
}
.a-fz-reiter span + span { border-left: 1px solid #757680; }
.a-fz-reiter span.an { background: #DDE1F9; color: #414659; }
.a .a-fz-reiter svg { width: 18px; height: 18px; }
.a-fz-monat { position: relative; height: 48px; margin-bottom: 12px; }
.a-fz-monat > svg { position: absolute; top: 12px; color: var(--sub); }
.a-fz-monat > svg:first-child { left: 12px; }
.a-fz-monat > svg:last-child { right: 12px; }
.a-fz-monat b, .a-fz-monat small { position: absolute; left: 48px; right: 48px; text-align: center; white-space: nowrap; }
.a-fz-monat b { top: 4px; font-size: 17px; line-height: 24px; font-weight: 800; }
.a-fz-monat small { top: 28px; font-size: 12px; line-height: 17px; font-weight: 700; color: var(--p); }
.a-fz-summe {
  padding: 16px 18px; border: 1.5px solid rgba(123, 198, 126, 0.35); border-radius: 20px; background: #fff;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.a-fz-summe > small { position: relative; top: 1px; font-size: 12px; line-height: 17px; font-weight: 700; color: var(--sub); }
.a-fz-summe > b { margin-top: 2px; font-size: 30px; line-height: 43px; font-weight: 800; color: #7BC67E; white-space: nowrap; }
.a-fz-summe > span { align-self: stretch; margin-top: 12px; display: flex; align-items: center; }
.a-fz-summe > span > span { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.a-fz-summe > span small { position: relative; top: 1px; font-size: 11px; line-height: 16px; color: var(--sub); }
.a-fz-summe > span b { position: relative; top: 0.67px; margin-top: 2px; font-size: 14px; line-height: 20px; font-weight: 700; white-space: nowrap; }
.a-fz-summe > span > i { width: 1px; height: 28px; flex: none; background: rgba(155, 155, 180, 0.2); }
.a-fz-stand { height: 18px; margin-top: 10px; display: flex; align-items: center; }
.a .a-fz-stand svg { width: 16px; height: 16px; margin-right: 6px; color: var(--sub); }
.a-fz-stand b { font-size: 12.5px; line-height: 18px; font-weight: 700; white-space: nowrap; }
.a-fz-balken { height: 6px; margin: 6px 0 18px; border-radius: 4px; overflow: hidden; display: flex; }
.a-fz-balken i:first-child { background: #7BC67E; }
.a-fz-balken i:last-child { background: rgba(155, 155, 180, 0.22); }
.a .a-fz-kat {
  margin: 0; padding: 17px 4px 5px; font-size: 12px; line-height: 17px; font-weight: 800; letter-spacing: 0.3px;
  color: var(--sub); white-space: nowrap;
}
.a .a-fz-kat:first-of-type { padding-top: 1px; }
.a-fz-posten {
  flex: none; height: 60px; margin-bottom: 8px; padding: 6px 14px 6px 4px; border-radius: 14px; background: #fff;
  display: flex; align-items: center;
}
.a-fz-kreis { width: 48px; height: 48px; flex: none; display: grid; place-items: center; color: var(--sub); }
.a-fz-kreis.an { color: #7BC67E; }
.a .a-fz-kreis svg { width: 26px; height: 26px; }
.a-fz-posten__text { position: relative; top: 0.67px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.a-fz-posten__text > span { display: flex; align-items: center; min-width: 0; }
.a-fz-posten__text b { min-width: 0; font-size: 14px; line-height: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a .a-fz-posten__text span svg { width: 13px; height: 13px; margin-left: 4px; color: var(--sub); }
.a-fz-posten__text small {
  font-size: 11.5px; line-height: 16px; font-weight: 600; color: var(--sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.a-fz-posten__text small.an { color: #7BC67E; }
.a-fz-posten > em { position: relative; top: 0.67px; flex: none; margin-left: 10px; font-size: 14px; line-height: 20px; font-weight: 800; white-space: nowrap; }
.a-fz-posten--ein > em { color: #7BC67E; }

/* Alltag → Packliste, eine Liste (packliste_detail_screen.dart) */
.a-pk { position: absolute; left: 16px; top: 122px; width: 408px; display: flex; flex-direction: column; }
.a .a-pk-stand { position: relative; top: 1px; margin: 0 0 14px; font-size: 12px; line-height: 17px; font-weight: 700; color: var(--sub); }
.a .a-pk-rubrik {
  flex: none; height: 44px; margin: 4px 0 0; padding: 8px 2px; display: flex; align-items: center;
  font-size: 11px; line-height: 16px; font-weight: 800; letter-spacing: 0.6px; color: var(--sub); white-space: nowrap;
}
.a-pk-sache { flex: none; display: flex; align-items: center; padding: 11px 12px; border-radius: 12px; background: #fff; }
.a .a-pk-sache svg { width: 21px; height: 21px; color: rgba(155, 155, 180, 0.6); }
.a .a-pk-sache.an svg { color: #2E9E5B; }
.a-pk-sache b { flex: 1; min-width: 0; margin-left: 11px; font-size: 14px; line-height: 20px; font-weight: 600; }
.a-pk-sache.an b { color: var(--sub); text-decoration: line-through; text-decoration-color: var(--sub); }
.a-pk-sache em {
  flex: none; padding: 2px 7px; border-radius: 8px; background: rgba(108, 142, 245, 0.14); color: var(--p);
  font-size: 11px; line-height: 16px; font-weight: 800;
}
.a-pk-luft { display: block; flex: none; height: 8px; }
.a-pk-neu {
  position: absolute; right: 16px; bottom: 50px; height: 56px; padding: 0 20px 0 16px; border-radius: 16px;
  background: var(--p); color: #fff; display: flex; align-items: center; gap: 8px;
  font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 0.1px; white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Alltag → Stempeluhr, Heute (ansicht_heute.dart, stempel_bausteine.dart) */
.a-su { position: absolute; left: 16px; top: 126px; width: 408px; display: flex; flex-direction: column; }
.a-su-reiter {
  flex: none; height: 40px; margin: 4px 0 16px; display: flex; border: 1px solid #757680; border-radius: 20px; overflow: hidden;
}
.a-su-reiter span {
  flex: 1 1 0; min-width: 0; overflow: hidden; display: grid; place-items: center; color: var(--sub);
  font-size: 13px; line-height: 19px; font-weight: 700; letter-spacing: 0.1px; white-space: nowrap;
}
.a-su-reiter span + span { border-left: 1px solid #757680; }
.a-su-reiter span.an { background: var(--p); color: #fff; }
.a-su-tag { position: relative; flex: none; height: 48px; }
.a-su-tag > svg { position: absolute; top: 12px; color: var(--ink); }
.a-su-tag > svg:first-child { left: 12px; }
.a-su-tag > svg:last-child { right: 12px; }
.a-su-tag b {
  position: absolute; left: 48px; right: 48px; top: 12.5px; text-align: center;
  font-size: 16px; line-height: 23px; font-weight: 800; white-space: nowrap;
}
.a-su-plan { flex: none; display: flex; align-items: center; }
.a-su-plan__wrap {
  flex: 1; min-width: 0; padding-left: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
}
.a-su-chip {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 10px; background: var(--c14);
  font-size: 11px; line-height: 16px; font-weight: 700; white-space: nowrap;
}
.a-su-chip i { width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--c); flex: none; }
/* TextButton.icon und die Knöpfe der Uhr: labelLarge, gezeichnet im
   normalen Schnitt (siehe .a-fz-reiter). */
.a-su-schicht {
  height: 48px; padding: 0 16px 0 12px; display: inline-flex; align-items: center; gap: 8px; color: #4B5C92;
  font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0.1px; white-space: nowrap;
}
.a .a-su-schicht svg { width: 18px; height: 18px; }
.a .a-su-plan > svg { margin: 12px; color: var(--ink); }
.a-su-uhr {
  flex: none; margin: 8px 0 0; padding: 20px 20px 16px; border-radius: 20px; background: #fff;
  display: flex; flex-direction: column; text-align: center;
}
.a-su-uhr > small { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--sub); }
.a-su-uhr > b {
  margin: 8px 0 16px; font-size: 56px; line-height: 80px; font-weight: 800; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.a-su-uhr > span { display: flex; gap: 12px; }
.a-su-uhr em {
  flex: 1 1 0; height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0.1px; white-space: nowrap;
}
.a .a-su-uhr em svg { width: 18px; height: 18px; }
.a-su-pause { border: 1px solid #757680; color: #4B5C92; }
.a-su-stopp { background: #EF5350; color: #fff; }
.a-su-zahl { flex: none; margin-top: 12px; padding: 16px; border-radius: 20px; background: #fff; }
.a-su-zahl > span {
  display: flex; align-items: center; font-size: 12px; line-height: 17px; font-weight: 700; color: var(--sub); white-space: nowrap;
}
.a .a-su-zahl svg { width: 16px; height: 16px; margin-right: 6px; }
.a-su-zahl > b {
  display: block; margin-top: 6px; font-size: 24px; line-height: 34px; font-weight: 800;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
