/* Ziffern im Fließtext aus der Schildschrift: Atkinson setzt eine durchgestrichene Null, die wie Programmcode wirkt */
@font-face { font-family: "docminto Ziffern"; font-style: normal; font-weight: 100 549; font-display: swap; src: url("fonts/barlow-sc-latin-500.woff2") format("woff2"); unicode-range: U+0030-0039; }
@font-face { font-family: "docminto Ziffern"; font-style: normal; font-weight: 550 900; font-display: swap; src: url("fonts/barlow-sc-latin-600.woff2") format("woff2"); unicode-range: U+0030-0039; }
/* docminto Prototyp
   Richtung: Wegzeichen. Die Seite führt wie ein markierter Wanderweg.
   Rahmen (Kopf, Sprungleiste, Fuß) in dunklem Moosgrün, Lesespalte ruhig auf hellem Grund.
   Jedes Themenfeld hat ein eigenes Wegzeichen (flache Form auf heller Tafel). */

:root {
  --ground: #f3eee3;
  --surface: #fbf8f2;
  --ink: #16201a;
  --ink-2: #485344;
  --line: #dbd3c2;
  --link: #35511f;
  --moss: #2b3a22;
  --moss-deep: #1c2717;
  --moss-soft: #e8e1d0;
  --on-moss: #eef2e6;
  --on-moss-2: #b8c4aa;
  --lichen: #c8d86a;
  --btn-bg: #2b3a22;
  --btn-fg: #f1f4ec;
  --plate: #f8f4eb;
  --pill: #f8f4eb;
  --pin-2: #6f8a3a; --pin-3: #1c2717; --mk-ring: #ffffff;
  --cal-win: #e4edc2; --cal-win-ink: #2b3a22; --cal-win-dot: #8fa83a;
  --mark: #2b3a22;
  --focus: #6f8f2e;
  --field-border: #7d7868;
  --shadow: 0 1px 2px rgb(28 39 23 / .08), 0 8px 24px -12px rgb(28 39 23 / .22);
  --map-sea: #ebe4d5; --map-land: #fcfaf5; --map-has: #d5dcb4; --map-hover: #ece8d4; --map-edge: #c9bfa9; --map-border: #6f7c66;

  --f-sign: "Barlow Semi Condensed", "Barlow Fallback", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-read: "docminto Ziffern", "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Atkinson Fallback", system-ui, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1240px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #10160e;
    --surface: #172014;
    --ink: #e6ebdf;
    --ink-2: #aab4a0;
    --line: #2d3828;
    --link: #bcd27e;
    --moss: #2e3f24;
    --moss-deep: #1a2416;
    --moss-soft: #1f2a1a;
    --on-moss: #eef2e6;
    --on-moss-2: #b8c4aa;
    --lichen: #c8d86a;
    --btn-bg: #c8d86a;
    --btn-fg: #16201a;
    --plate: #e8eddd;
    --mark: #2b3a22;
    --focus: #c8d86a;
    --field-border: #6d7a64;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 28px -14px rgb(0 0 0 / .6);
    --pin-2: #a9c46a; --pin-3: #f1f4ec; --cal-win: #3a4a26; --cal-win-ink: #e6ebdf; --cal-win-dot: #c8d86a;
  --map-sea: #0d130b; --map-land: #1d2819; --map-has: #34482a; --map-hover: #2a3a23; --map-edge: #2f3c2a; --map-border: #7d8c71;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #10160e;
  --surface: #172014;
  --ink: #e6ebdf;
  --ink-2: #aab4a0;
  --line: #2d3828;
  --link: #bcd27e;
  --moss: #2e3f24;
  --moss-deep: #1a2416;
  --moss-soft: #1f2a1a;
  --on-moss: #eef2e6;
  --on-moss-2: #b8c4aa;
  --lichen: #c8d86a;
  --btn-bg: #c8d86a;
  --btn-fg: #16201a;
  --plate: #e8eddd;
  --mark: #2b3a22;
  --focus: #c8d86a;
  --field-border: #6d7a64;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 28px -14px rgb(0 0 0 / .6);
  --pin-2: #a9c46a; --pin-3: #f1f4ec; --cal-win: #3a4a26; --cal-win-ink: #e6ebdf; --cal-win-dot: #c8d86a;
  --map-sea: #0d130b; --map-land: #1d2819; --map-has: #34482a; --map-hover: #2a3a23; --map-edge: #2f3c2a; --map-border: #7d8c71;
  color-scheme: dark;
}

/* Farbtoene der Vorschau: jeder Ton setzt alle Farben, unabhaengig vom Systemmodus */
:root[data-tone="leinen"] { --ground: #f3eee3; --surface: #fbf8f2; --ink: #16201a; --ink-2: #485344; --line: #dbd3c2; --link: #35511f; --moss: #2b3a22; --moss-deep: #1c2717; --moss-soft: #e8e1d0; --on-moss: #eef2e6; --on-moss-2: #b8c4aa; --lichen: #c8d86a; --btn-bg: #2b3a22; --btn-fg: #f1f4ec; --plate: #f8f4eb; --pill: #f8f4eb; --cal-win: #e4edc2; --cal-win-ink: #2b3a22; --cal-win-dot: #8fa83a; --mark: #2b3a22; --focus: #6f8f2e; --field-border: #7d7868; --shadow: 0 1px 2px rgb(28 39 23 / .08), 0 8px 24px -12px rgb(28 39 23 / .22); --map-sea: #ebe4d5; --map-land: #fcfaf5; --map-has: #d5dcb4; --map-hover: #ece8d4; --map-edge: #c9bfa9; --map-border: #6f7c66; color-scheme: light; }
:root[data-tone="moos"] { --pin-2: #6f8a3a; --pin-3: #1c2717; --ground: #f1f4ec; --surface: #fafbf7; --ink: #16201a; --ink-2: #485344; --line: #d3dac9; --link: #35511f; --moss: #2b3a22; --moss-deep: #1c2717; --moss-soft: #e2e9d6; --on-moss: #eef2e6; --on-moss-2: #b8c4aa; --lichen: #c8d86a; --btn-bg: #2b3a22; --btn-fg: #f1f4ec; --plate: #f6f8f1; --pill: #eef2e6; --cal-win: #e4edc2; --cal-win-ink: #2b3a22; --cal-win-dot: #8fa83a; --mark: #2b3a22; --focus: #6f8f2e; --field-border: #7a8672; --shadow: 0 1px 2px rgb(28 39 23 / .08), 0 8px 24px -12px rgb(28 39 23 / .22); --map-sea: #e9eee2; --map-land: #fbfcf8; --map-has: #d3e0b4; --map-hover: #e6eecf; --map-edge: #b4bfa6; --map-border: #6f7c66; color-scheme: light; }
:root[data-tone="hafer"] { --ground: #f1e9d6; --surface: #faf5e9; --ink: #16201a; --ink-2: #485344; --line: #d8ccb2; --link: #35511f; --moss: #2b3a22; --moss-deep: #1c2717; --moss-soft: #e6dcc4; --on-moss: #eef2e6; --on-moss-2: #b8c4aa; --lichen: #c8d86a; --btn-bg: #2b3a22; --btn-fg: #f1f4ec; --plate: #f6efdf; --pill: #f8f4eb; --cal-win: #e4edc2; --cal-win-ink: #2b3a22; --cal-win-dot: #8fa83a; --mark: #2b3a22; --focus: #6f8f2e; --field-border: #7b7461; --shadow: 0 1px 2px rgb(28 39 23 / .08), 0 8px 24px -12px rgb(28 39 23 / .22); --map-sea: #e9dfc8; --map-land: #fbf7ec; --map-has: #d3d9a8; --map-hover: #eee6cc; --map-edge: #c9bb9c; --map-border: #6f7c66; color-scheme: light; }
:root[data-tone="salbei"] { --ground: #eeede0; --surface: #f8f7ee; --ink: #16201a; --ink-2: #485344; --line: #d2d3bf; --link: #35511f; --moss: #2b3a22; --moss-deep: #1c2717; --moss-soft: #e1e2cd; --on-moss: #eef2e6; --on-moss-2: #b8c4aa; --lichen: #c8d86a; --btn-bg: #2b3a22; --btn-fg: #f1f4ec; --plate: #f5f5ea; --pill: #f8f4eb; --cal-win: #e4edc2; --cal-win-ink: #2b3a22; --cal-win-dot: #8fa83a; --mark: #2b3a22; --focus: #6f8f2e; --field-border: #777a68; --shadow: 0 1px 2px rgb(28 39 23 / .08), 0 8px 24px -12px rgb(28 39 23 / .22); --map-sea: #e6e6d6; --map-land: #fbfbf4; --map-has: #d0dcae; --map-hover: #e8ebd2; --map-edge: #c1c3ab; --map-border: #6f7c66; color-scheme: light; }
:root[data-tone="dunkel"] { --mk-ring: #f1f4ec; --pin-2: #a9c46a; --pin-3: #f1f4ec; --ground: #10160e; --surface: #172014; --ink: #e6ebdf; --ink-2: #aab4a0; --line: #2d3828; --link: #bcd27e; --moss: #2e3f24; --moss-deep: #1a2416; --moss-soft: #1f2a1a; --on-moss: #eef2e6; --on-moss-2: #b8c4aa; --lichen: #c8d86a; --btn-bg: #c8d86a; --btn-fg: #16201a; --plate: #e8eddd; --mark: #2b3a22; --focus: #c8d86a; --field-border: #6d7a64; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 28px -14px rgb(0 0 0 / .6); --cal-win: #3a4a26; --cal-win-ink: #e6ebdf; --cal-win-dot: #c8d86a; --map-sea: #0d130b; --map-land: #1d2819; --map-has: #34482a; --map-hover: #2a3a23; --map-edge: #2f3c2a; --map-border: #7d8c71; color-scheme: dark; }


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-read);
  font-size: var(--step-0);
  line-height: 1.6;
  caret-color: var(--focus);
  scrollbar-color: var(--field-border) var(--ground);
}
::selection { background: var(--lichen); color: #16201a; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--f-sign); font-weight: 600; line-height: 1.1; letter-spacing: -.005em; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf */
.masthead { background: var(--moss-deep); color: var(--on-moss); overflow: hidden; }
.topbar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-moss); text-decoration: none; }
.brand .logo { height: 36px; width: auto; display: block; }
.mainnav { display: flex; gap: 2px; margin-left: auto; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / .045); box-shadow: inset 0 0 0 1px rgb(238 242 230 / .09); }
.mainnav a {
  font-family: var(--f-sign); font-weight: 500; font-size: 1.0625rem; color: var(--on-moss-2);
  text-decoration: none; padding: 7px 16px; border-radius: 999px; white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.mainnav a:active { transform: scale(.97); }
.mainnav a[aria-current="page"], .mainnav a[aria-current="true"] { color: var(--moss-deep); background: var(--pill); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .25); }
@media (hover: hover) and (pointer: fine) { .mainnav a:not([aria-current]):hover { color: var(--on-moss); background: rgb(255 255 255 / .07); } }
.mainnav a:focus-visible, .subnav a:focus-visible, .waybar a:focus-visible { outline: 2px solid var(--lichen); outline-offset: 2px; border-radius: 999px; }
.login {
  font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; color: var(--on-moss);
  text-decoration: none; padding: 8px 14px; border: 1px solid rgb(238 242 230 / .35); border-radius: var(--radius);
  transition: border-color 150ms ease, transform 160ms var(--ease-out);
}
.login:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .login:hover { border-color: var(--on-moss); } }

@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 0 16px; padding-top: 10px; }
  .login { margin-left: auto; }
  .mainnav { order: 3; width: 100%; margin: 10px 0 12px; overflow-x: auto; scrollbar-width: none; gap: 0; }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a { flex: 1 0 auto; text-align: center; padding: 9px 14px; font-size: 1.0625rem; }
}

/* Startbereich */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(40px, 7vw, 88px) clamp(48px, 8vw, 104px); }
.hero h1 { font-size: var(--step-4); font-weight: 600; max-width: 26ch; }
.hero h1 em { font-style: normal; color: var(--lichen); display: block; }
.hero .lead { margin-top: 18px; font-size: var(--step-1); line-height: 1.5; color: var(--on-moss-2); max-width: 36ch; }

.searchbox { margin-top: 32px; display: flex; max-width: 620px; background: var(--plate); border-radius: var(--radius); box-shadow: 0 0 0 1px rgb(0 0 0 / .1), 0 12px 30px -12px rgb(0 0 0 / .5); }
.searchbox label { flex: 1; display: flex; min-width: 0; }
.searchbox input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: #16201a;
  font: inherit; font-size: 1.125rem; padding: 16px 18px; border-radius: var(--radius) 0 0 var(--radius);
}
.searchbox input::placeholder { color: #566152; }
.searchbox input:focus-visible { outline: none; }
.searchbox:focus-within { box-shadow: 0 0 0 3px var(--lichen), 0 12px 30px -12px rgb(0 0 0 / .5); }
.searchbox button {
  border: 0; margin: 6px; padding: 0 20px; border-radius: 4px; background: var(--moss); color: var(--on-moss);
  font-family: var(--f-sign); font-weight: 600; font-size: 1.125rem; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.searchbox button:active { transform: scale(.97); }
.searchbox { position: relative; }
.masthead.such-offen { overflow: visible; position: relative; z-index: 20; }
.masthead .hero-leaf { transition: opacity 150ms ease; }
.masthead.such-offen .hero-leaf { opacity: 0; }
.searchbox { scroll-margin-top: 12px; }
.such-vorschlag { position: absolute; left: 0; right: 0; top: 100%; margin: 8px 0 0; padding: 6px; list-style: none; border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; box-shadow: 0 16px 40px -12px rgb(0 0 0 / .45), inset 0 0 0 1px var(--line); z-index: 30; max-height: min(420px, 46svh); overflow-y: auto; overscroll-behavior: contain; }
.such-vorschlag li { border-radius: 8px; }
.such-vorschlag a { display: grid; gap: 1px; padding: 9px 12px; color: inherit; text-decoration: none; border-radius: 8px; }
.such-vorschlag b { font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; }
.such-vorschlag span { font-size: .8125rem; color: var(--ink-2); overflow-wrap: anywhere; }
.such-vorschlag li.aktiv, .such-vorschlag li:hover { background: var(--moss-soft); }
.quick { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .9375rem; color: var(--on-moss-2); }
.quick a { color: var(--on-moss); }

/* Wegzeichen */
.mark { width: 30px; height: 30px; flex: none; display: inline-grid; place-items: center; background: var(--plate); border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(28 39 23 / .18); }
.mark svg { width: 18px; height: 18px; fill: var(--mark); }
.mark.lg { width: 44px; height: 44px; }
.mark.lg svg { width: 26px; height: 26px; }

/* Abschnitte */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section h2 { font-size: var(--step-3); }
.section .intro { margin-top: 12px; color: var(--ink-2); max-width: 60ch; font-size: var(--step-1); line-height: 1.5; }

/* Themenkarte */
.map { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tfield { display: flex; flex-direction: column; padding: 28px 28px 24px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.tfield-kopf { display: flex; align-items: center; gap: 14px; }
.tfield h3 { font-size: var(--step-2); margin: 0; }
.tfield ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.tfield li a { font-size: 1rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em; }
@media (hover: hover) and (pointer: fine) { .tfield li a:hover { color: var(--link); text-decoration-color: currentColor; } }
@media (max-width: 960px) { .map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .map { grid-template-columns: minmax(0, 1fr); gap: 16px; } .tfield { padding: 22px; } }

/* Zwei Arten von Wissen */
.split { background: var(--moss-soft); }
.twoways { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.way { padding: clamp(24px, 4vw, 44px); background: var(--surface); }
.way + .way { border-left: 1px solid var(--line); }
.way h3 { font-size: var(--step-2); display: flex; align-items: center; gap: 12px; }
.way p { margin-top: 12px; color: var(--ink-2); max-width: 46ch; }
.way .sample { margin-top: 22px; padding: 16px 18px; border-radius: var(--radius); background: var(--ground); font-size: .9375rem; }
.way .sample b { font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; display: block; color: var(--ink); }
span.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-sign); font-weight: 600; font-size: .875rem; letter-spacing: .02em; padding: 2px 8px; border-radius: 3px; }
.tag.checked { background: var(--btn-bg); color: var(--btn-fg); }
.tag.lived { box-shadow: inset 0 0 0 1.5px currentColor; color: var(--ink); }
.tag.sample-tag { background: var(--lichen); color: #16201a; }
@media (max-width: 760px) { .twoways { grid-template-columns: minmax(0, 1fr); } .way + .way { border-left: 0; border-top: 1px solid var(--line); } }

/* Mitmachen */
.join { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding-block: 20px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .verb { font-family: var(--f-sign); font-weight: 600; font-size: var(--step-2); line-height: 1.1; }
.steps p { color: var(--ink-2); margin-top: 4px; }
.steps .mark { margin-top: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-sign); font-weight: 600; font-size: 1.1875rem; line-height: 1;
  padding: 14px 22px; border-radius: var(--radius); border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform 160ms var(--ease-out), filter 150ms ease;
}
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { filter: brightness(1.12); } }
.join .btn { margin-top: 28px; }
.join h2 + p { margin-top: 14px; color: var(--ink-2); max-width: 42ch; font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 860px) { .join { grid-template-columns: minmax(0, 1fr); } }

/* Fuß */
.footer { background: var(--moss-deep); color: var(--on-moss-2); padding-block: 56px 40px; font-size: .9375rem; }
.footer a { color: var(--on-moss); text-decoration: none; transition: color .15s ease; }
.footer a:hover { color: var(--lichen); }   /* ohne Unterstreichung, seit 0.16.70 */
.footer a:focus-visible { outline: 2px solid var(--lichen); outline-offset: 3px; border-radius: 2px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, .8fr)); gap: 40px; }
.emergency { background: rgb(255 255 255 / .05); border-radius: var(--radius); padding: 20px 22px; color: var(--on-moss); }
.emergency strong { font-family: var(--f-sign); font-weight: 600; font-size: 1.375rem; display: block; margin-bottom: 6px; }
.emergency .nr { font-family: var(--f-sign); font-weight: 600; font-size: 1.75rem; color: var(--lichen); }
.footer h3 { font-size: 1.125rem; color: var(--on-moss); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer .fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* Vorschauhinweis */
.preview-note { background: var(--lichen); color: #16201a; font-size: .875rem; }
.preview-note .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-block: 7px; }
.preview-note b { font-family: var(--f-sign); font-weight: 600; font-size: .9375rem; }

/* Krankheitsseite */
.crumbs { font-size: .9375rem; color: var(--on-moss-2); display: flex; flex-wrap: wrap; gap: 4px 10px; padding-top: 22px; }
.crumbs a { color: var(--on-moss); }
.crumbs span[aria-hidden] { opacity: .6; }
.disease-head { padding-block: 22px 40px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 22px; align-items: center; }
.disease-head h1 { font-size: var(--step-4); overflow-wrap: anywhere; }
.disease-head h1.lang-wort { font-size: min(var(--step-4), 7.4vw); }
@media (max-width: 520px) { .disease-head:has(h1.lang-wort) { grid-template-columns: minmax(0, 1fr); } .disease-head:has(h1.lang-wort) .mark.lg { width: 44px; height: 44px; } }
.disease-head .sub { grid-column: 2; color: var(--on-moss-2); font-size: var(--step-1); }
.disease-head .mark { grid-row: 1 / span 2; }
.disease-head .follow { grid-row: 1 / span 2; grid-column: 3; }
.btn.lichen { background: var(--lichen); color: #16201a; }
.follow[aria-pressed="true"] { background: transparent; color: var(--on-moss); box-shadow: inset 0 0 0 1.5px var(--lichen); }
@media (max-width: 700px) {
  .disease-head { grid-template-columns: auto minmax(0, 1fr); }
  .disease-head .follow { grid-row: auto; grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
}

.waybar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--moss); box-shadow: 0 1px 0 rgb(0 0 0 / .2); }
.waybar .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.waybar .wrap::-webkit-scrollbar { display: none; }
.waybar a {
  flex: none; font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; text-decoration: none;
  color: var(--on-moss-2); padding: 6px 14px; border-radius: 999px; transition: color 150ms ease, background-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .waybar a:hover { color: var(--on-moss); background: rgb(255 255 255 / .06); } }
.waybar a[aria-current="true"] { color: var(--moss-deep); background: var(--pill); }
.waybar a[aria-current="true"] .count { color: var(--ink-2); }
.waybar a .count { font-family: var(--f-read); font-weight: 400; font-size: .8125rem; color: var(--on-moss-2); margin-left: 4px; }

.article { display: grid; grid-template-columns: minmax(0, 68ch) minmax(240px, 300px); gap: clamp(32px, 6vw, 88px); justify-content: space-between; padding-block: 48px 88px; }
/* Erfahrungen und Fragen stehen unter dem Text, über die ganze Breite, und scrollen mit der Seite (keine zweite Spalte) */
.article.mit-gemeinschaft { grid-template-columns: minmax(0, 1fr); }
.article.mit-gemeinschaft > .artikel-text { max-width: none; }
/* Themenseiten lesen sich auf einer mittigen Achse: Kopf, Sprungleiste, Text und Erfahrungen stehen untereinander */
/* 0.16.25 Themenseiten und ihr Fließtext so breit wie die Übersicht, auf Wunsch von Timo ohne Begrenzung der Zeilenlänge. */
.article.mit-gemeinschaft { justify-content: stretch; }
.article section { scroll-margin-top: 80px; }
.article section + section { margin-top: 48px; }
.article h2 { font-size: var(--step-3); }
.article h2 + p, .article p + p, .article h2 + ul { margin-top: 14px; }
.article ul.plain { padding-left: 1.1em; margin: 14px 0 0; display: grid; gap: 6px; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--moss-soft); font-size: .9375rem; color: var(--ink-2); }
.facts { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.facts div { padding: 14px 16px 4px 0; }
.facts dt { font-family: var(--f-sign); font-weight: 500; font-size: .9375rem; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-family: var(--f-sign); font-weight: 600; font-size: 1.375rem; line-height: 1.2; }
@media (max-width: 600px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.facts.saetze dd { font-family: var(--f-read); font-weight: 400; font-size: 1rem; line-height: 1.55; }
.facts.saetze div { padding-right: 24px; }
.rail-begriffe { margin: 0; display: grid; gap: 4px; }
.rail-begriffe dt { font-family: var(--f-sign); font-weight: 600; color: var(--ink); margin-top: 8px; }
.rail-begriffe dd { margin: 0; color: var(--ink-2); line-height: 1.5; }
.kr-index { padding-top: 32px; padding-bottom: 64px; }
.kr-intro { max-width: 60ch; color: var(--ink-2); line-height: 1.6; margin: 0 0 8px; }
.kr-feld { padding-top: 28px; }
.kr-liste { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px 32px; }
.kr-liste li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.kr-liste a { font-family: var(--f-sign); font-weight: 600; font-size: 1.125rem; }
.kr-liste span { color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }

.rail { position: sticky; top: 84px; align-self: start; display: grid; gap: 24px; font-size: .9375rem; }
.rail h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.rail .box { padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rail p { color: var(--ink-2); }
.rail .box .btn { width: 100%; margin-top: 14px; font-size: 1.0625rem; padding: 12px 16px; }
@media (max-width: 960px) { .article { grid-template-columns: minmax(0, 1fr); } .rail { position: static; } }

/* Timeline */
.timeline-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; justify-content: space-between; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius); background: var(--moss-soft); }
.tabs button { font: inherit; font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; border: 0; background: transparent; color: var(--ink-2); padding: 8px 14px; border-radius: 4px; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.composer { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.composer p { color: var(--ink-2); }
@media (max-width: 560px) { .composer { grid-template-columns: minmax(0, 1fr); } }
.feed { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.feed-post { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--moss-soft); color: var(--ink); font-family: var(--f-sign); font-weight: 600; font-size: 1.125rem; box-shadow: inset 0 0 0 1px var(--line); }
.avatar.team { background: var(--btn-bg); color: var(--btn-fg); box-shadow: none; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .9375rem; color: var(--ink-2); }
.post-meta b { font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.post-body { margin-top: 6px; }
.post-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.act { font: inherit; font-size: .9375rem; border: 0; background: transparent; color: var(--ink-2); padding: 6px 10px; margin-left: -10px; border-radius: 4px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.act + .act { margin-left: 0; }
.act:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .act:hover { background: var(--moss-soft); color: var(--ink); } }
.act svg { width: 18px; height: 18px; fill: currentColor; }
.act[aria-pressed="true"] { color: var(--link); }
.act[aria-pressed="true"] { font-weight: 700; }
.empty { margin-top: 18px; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.empty h3 { font-size: var(--step-2); }
.empty p { margin-top: 8px; color: var(--ink-2); max-width: 52ch; }
.empty .btn { margin-top: 18px; }
.derived { margin-top: 32px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--moss); color: var(--on-moss); }
.derived h3 { font-size: 1.375rem; }
.derived p { margin-top: 6px; color: var(--on-moss-2); }
.sources { font-size: .9375rem; color: var(--ink-2); }
.sources li + li { margin-top: 6px; }

/* Glossar */
.alpha { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; max-width: 620px; padding-block: 0 36px; }
@media (min-width: 1100px) { .alpha { grid-template-columns: repeat(26, minmax(0, 1fr)); max-width: none; } }
.alpha a, .alpha span { font-family: var(--f-sign); font-weight: 600; font-size: 1.125rem; height: 38px; display: grid; place-items: center; border-radius: 4px; text-decoration: none; }
.alpha a { background: var(--plate); color: #16201a; }
.alpha span { color: var(--on-moss-2); opacity: .5; }
.glossary { padding-block: 48px 88px; display: grid; gap: 40px; }
.letter { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 24px; scroll-margin-top: 20px; }
.letter > h2 { font-size: var(--step-4); color: var(--link); line-height: 1; }
.letter dl { margin: 0; display: grid; gap: 0; }
.letter dl > div { padding-block: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 6px 32px; }
.letter dt { font-family: var(--f-sign); font-weight: 600; font-size: 1.3125rem; line-height: 1.25; }
.letter dd { margin: 0; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 700px) { .letter { grid-template-columns: minmax(0, 1fr); gap: 8px; } .letter dl > div { grid-template-columns: minmax(0, 1fr); } }
.gl-filter { margin-top: 26px; max-width: 520px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}

/* Prüfkorrekturen */
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--lichen); color: #16201a; padding: 10px 14px; border-radius: 4px; font-family: var(--f-sign); font-weight: 600; transition: top 160ms var(--ease-out); }
.skip:focus { top: 12px; }
.masthead :focus-visible, .footer :focus-visible, .waybar :focus-visible { outline-color: var(--lichen); }
.composer { box-shadow: inset 0 0 0 1px var(--field-border); }
.article h2.first { margin-top: 28px; }
.gl-note { margin-top: 32px; }
.gl-filter { display: grid; gap: 6px; margin-top: 22px; max-width: 520px; }
.gl-filter span { font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; }
.gl-filter input { font: inherit; padding: 12px 14px; border-radius: var(--radius); border: 1.5px solid var(--field-border); background: var(--surface); color: var(--ink); }
.gl-count { margin-top: 10px; color: var(--ink-2); min-height: 1.6em; }
.letter dl > div { scroll-margin-top: 20px; }
.letter dl > div:target dt { color: var(--link); }
.act { min-height: 44px; padding-inline: 12px; }
.alpha a, .alpha span { height: 44px; }
@media (max-width: 420px) { .alpha { gap: 3px; } .alpha a, .alpha span { height: 40px; font-size: 1rem; } }
[role="tabpanel"]:focus-visible { outline-offset: 6px; }
.search-msg:empty { display: none; }

/* Großes Blatt aus dem Logo als ruhiges Bild im Startbereich */
.hero > div { position: relative; z-index: 1; }
.hero-leaf { position: absolute; right: var(--gutter); top: 50%; height: 104%; width: auto; transform: translateY(-50%) rotate(-8deg); fill: #2a3a22; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .hero-leaf { animation: leaf-in 900ms var(--ease-out) both; } }
@keyframes leaf-in { from { transform: translateY(-46%) rotate(-12deg); } }
@media (max-width: 860px) { .hero-leaf { display: none; } }
@media (min-width: 861px) and (max-width: 1180px) { .hero-leaf { height: 86%; right: -60px; } }

/* Community */
.ic { width: 18px; height: 18px; fill: currentColor; flex: none; }
.viewswitch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; padding-top: 22px; font-size: .9375rem; color: var(--on-moss-2); }
.viewswitch span { margin-right: 8px; }
.viewswitch a { font-family: var(--f-sign); font-weight: 600; font-size: 1rem; color: var(--on-moss); text-decoration: none; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(238 242 230 / .3); }
.viewswitch a[aria-current="page"] { background: var(--lichen); color: #16201a; box-shadow: none; }
.community { display: grid; grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) minmax(220px, 280px); gap: clamp(24px, 4vw, 48px); padding-block: 40px 88px; align-items: start; }
.c-left, .c-right { display: grid; gap: 14px; font-size: .9375rem; align-content: start; }
.c-h { font-size: 1.1875rem; }
.c-h:not(:first-child) { margin-top: 18px; }
.c-note { color: var(--ink-2); font-size: .9375rem; }
.follow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.follow-list a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin-inline: -8px; border-radius: 6px; color: var(--ink); text-decoration: none; transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .follow-list a:hover { background: var(--moss-soft); } }
.c-more { font-size: .9375rem; }
.composer2 { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.composer-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius); background: var(--moss-soft); justify-self: start; }
.composer-tabs button { font: inherit; font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; border: 0; background: transparent; color: var(--ink-2); padding: 8px 14px; border-radius: 4px; cursor: pointer; min-height: 40px; }
.composer-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.composer2 textarea { font: inherit; width: 100%; resize: vertical; padding: 12px 14px; border-radius: var(--radius); border: 1.5px solid var(--field-border); background: var(--ground); color: var(--ink); }
.composer-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.c-topic { display: flex; gap: 8px; align-items: center; font-size: .9375rem; color: var(--ink-2); }
.c-topic select { font: inherit; padding: 8px 10px; border-radius: 6px; border: 1.5px solid var(--field-border); background: var(--surface); color: var(--ink); }
.c-hint { font-size: .875rem; color: var(--ink-2); }
.composer2 .btn { font-size: 1.0625rem; padding: 12px 18px; }
.post-sub { font-size: .875rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 0 4px; }
.post-sub a { color: var(--ink-2); }
.tag.verified { background: var(--moss-soft); color: var(--link); box-shadow: inset 0 0 0 1px var(--field-border); }
.tag .ic, .tag.verified .ic { width: 15px; height: 15px; }
.avatar.doc { background: var(--moss); color: var(--on-moss); box-shadow: inset 0 0 0 2px var(--lichen); }
.avatar.big { width: 64px; height: 64px; font-size: 1.5rem; }
.translated { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .875rem; color: var(--ink-2); }
.link-btn { font: inherit; border: 0; background: none; padding: 4px 0; color: var(--link); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; min-height: 32px; }
.original { margin-top: 6px; padding-left: 12px; border-left: 2px solid var(--line); color: var(--ink-2); font-style: italic; }
.answers { margin-top: 6px; padding-left: 16px; border-left: 2px solid var(--field-border); }
.feed.nested { margin-top: 0; }
.feed.nested .feed-post:last-child { border-bottom: 0; padding-bottom: 6px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.notes li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.notes .ic { width: 22px; height: 22px; color: var(--link); margin-top: 2px; }
.c-safe { padding: 16px; border-radius: var(--radius); background: var(--moss-soft); display: grid; gap: 8px; margin-top: 8px; }
.c-safe .c-h { margin-top: 0; }
.c-emerg b { font-family: var(--f-sign); font-size: 1.25rem; }
.doc-card { display: grid; gap: 8px; justify-items: start; padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.doc-name { font-family: var(--f-sign); font-weight: 600; font-size: 1.25rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.doc-role { color: var(--ink-2); font-size: .9375rem; }
.doc-facts { margin: 4px 0 0; display: grid; gap: 6px; }
.doc-facts dt { font-size: .8125rem; color: var(--ink-2); }
.doc-facts dd { margin: 0; }
.q-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.q-head h2 { font-size: var(--step-2); }
.q-head.peer { margin-top: 40px; }
.q-list { list-style: none; margin: 14px 0 22px; padding: 0; border-top: 1px solid var(--line); }
.q-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); }
.lang { font-family: var(--f-sign); font-weight: 600; font-size: .875rem; width: 40px; height: 28px; display: grid; place-items: center; border-radius: 4px; background: var(--moss-soft); color: var(--ink); }
.q-title { font-family: var(--f-sign); font-weight: 600; font-size: 1.1875rem; line-height: 1.25; color: var(--ink); text-decoration: none; display: block; }
@media (hover: hover) and (pointer: fine) { .q-title:hover { color: var(--link); } }
.q-meta { font-size: .875rem; color: var(--ink-2); }
.q-wait { font-size: .875rem; color: var(--ink-2); white-space: nowrap; }
.reply-to { font-size: .9375rem; color: var(--ink-2); }
.check { display: flex; gap: 10px; align-items: center; font-size: .9375rem; }
.check input { width: 20px; height: 20px; accent-color: var(--btn-bg); }
@media (max-width: 1100px) { .community { grid-template-columns: minmax(200px, 240px) minmax(0, 1fr); } .c-right { grid-column: 1 / -1; } }
@media (max-width: 760px) { .community { grid-template-columns: minmax(0, 1fr); } .q-row { grid-template-columns: 40px minmax(0, 1fr); } .q-wait { grid-column: 2; } }

/* Bereichsnavigation im Kopf */
.subnav { background: var(--moss); }
.subnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; text-decoration: none; color: var(--on-moss-2); padding: 7px 15px; border-radius: 999px; transition: color 160ms ease, background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .subnav a:hover { color: var(--on-moss); background: rgb(255 255 255 / .06); } }
.subnav a[aria-current="page"] { color: var(--on-moss); background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(200 216 106 / .55); }
.disease-head .mark.lg .ic { width: 26px; height: 26px; color: var(--mark); }

/* Seitenraster und Bausteine */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-block: 36px 88px; align-items: start; }
.page-grid.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); }
@media (max-width: 900px) { .page-grid, .page-grid.wide-left { grid-template-columns: minmax(0, 1fr); } }
.sample-note { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .875rem; color: var(--ink-2); margin-bottom: 18px; }
.sec-h { font-size: var(--step-2); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.sec-h.small { font-size: 1.25rem; margin-bottom: 10px; }
.sec-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-row .sec-h { margin: 0; }
.sec-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.panel { padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.btn.small { font-size: 1rem; padding: 10px 14px; gap: 8px; }
.btn .ic { width: 18px; height: 18px; }
.btn.ghost2 { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--field-border); }
.count-pill { font-family: var(--f-read); font-size: .875rem; font-weight: 700; background: var(--lichen); color: #16201a; padding: 1px 9px; border-radius: 999px; }

/* Termine */
.appts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.appt { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.appt-date { display: grid; justify-items: center; align-content: center; width: 64px; height: 68px; border-radius: var(--radius); background: var(--moss); color: var(--on-moss); }
.appt-date .d { font-family: var(--f-sign); font-weight: 600; font-size: 1.75rem; line-height: 1; }
.appt-date .m { font-size: .8125rem; color: var(--on-moss-2); }
.appt-title { font-family: var(--f-sign); font-weight: 600; font-size: 1.3125rem; line-height: 1.2; }
.appt-meta { color: var(--ink-2); font-size: .9375rem; margin-top: 2px; }
.appt-state { display: flex; align-items: center; gap: 6px; font-size: .9375rem; margin-top: 8px; }
.appt-state.ok { color: var(--link); }
.appt-state.wait { color: var(--ink-2); }
.qlist { margin: 6px 0 0; padding-left: 1.1em; color: var(--ink-2); font-size: .9375rem; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; padding: 0; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { font: inherit; width: 100%; padding: 11px 13px; border-radius: var(--radius); border: 1.5px solid var(--field-border); background: var(--ground); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--field-border); cursor: pointer; font-size: .9375rem; min-height: 40px; }
.chips label:has(input:checked) { background: var(--moss-soft); box-shadow: inset 0 0 0 1.5px var(--link); }
.chips input, .row-check input { accent-color: var(--btn-bg); width: 18px; height: 18px; }
.row-check { display: flex; gap: 10px; align-items: center; min-height: 36px; }
.hint { font-size: .875rem; color: var(--ink-2); }
.form .btn { justify-self: start; }
.form-msg { font-size: .9375rem; color: var(--link); min-height: 1.2em; }
.form-msg:empty { display: none; }

/* Archiv und Diagramm */
.chart { position: relative; margin: 0; padding: 16px 10px 8px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .g { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--ink-2); font-size: 12px; font-family: var(--f-read); }
.chart .band { fill: var(--moss-soft); }
.chart .bl { fill: var(--ink-2); font-size: 12px; font-family: var(--f-read); }
.chart .ln { fill: none; stroke: var(--link); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt circle:first-child { fill: var(--link); stroke: var(--surface); stroke-width: 2; }
.chart .pt .hit { fill: transparent; stroke: none; cursor: default; }
.chart .pt:focus-visible { outline: none; }
.chart .pt:focus-visible circle:first-child { stroke: var(--focus); stroke-width: 3; }
.chart .vl { fill: var(--ink); font-size: 13px; font-weight: 700; font-family: var(--f-read); }
.chart .tip { position: absolute; transform: translate(-50%, -100%); background: var(--ink); color: var(--ground); font-size: .8125rem; padding: 4px 8px; border-radius: 4px; white-space: nowrap; pointer-events: none; }
.chart.compact { padding: 10px 6px 4px; margin-top: 10px; }
.fine-note { font-size: .875rem; color: var(--ink-2); margin-top: 10px; max-width: 60ch; }
.table-view { margin-top: 16px; }
.table-view summary { cursor: pointer; font-family: var(--f-sign); font-weight: 600; color: var(--link); }
.tbl-wrap { overflow-x: auto; margin-top: 10px; }
.tbl-wrap table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.tbl-wrap th, .tbl-wrap td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl-wrap .r { text-align: right; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 14px; padding: 14px; border-radius: var(--radius); background: var(--moss-soft); }
.inline-form .field { width: 170px; }
.side-stack { display: grid; gap: 28px; align-content: start; }
.doclist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.doclist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); align-items: start; }
.doclist .ic { width: 22px; height: 22px; color: var(--link); margin-top: 2px; }
.doclist b { display: block; font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; }
.doclist span { font-size: .875rem; color: var(--ink-2); }
.lock-note { padding: 14px 16px; border-radius: var(--radius); background: var(--moss-soft); font-size: .9375rem; color: var(--ink-2); }

/* Praxis */
.reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.req { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 8px; }
.req-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.req-name { font-family: var(--f-sign); font-weight: 600; font-size: 1.3125rem; }
.req-kasse { font-size: .875rem; color: var(--ink-2); }
.req-meta, .req-q { font-size: .9375rem; color: var(--ink-2); }
.req-q b { color: var(--ink); }
.req .link-btn { display: inline-flex; gap: 6px; align-items: center; justify-self: start; }
.req-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.req-actions label { font-size: .9375rem; color: var(--ink-2); }
.req-actions select { font: inherit; padding: 9px 10px; border-radius: 6px; border: 1.5px solid var(--field-border); background: var(--ground); color: var(--ink); }
.req-actions .form-msg { flex-basis: 100%; }
.slots { list-style: none; margin: 10px 0 12px; padding: 0; border-top: 1px solid var(--line); }
.slots li { display: grid; grid-template-columns: 110px auto minmax(0, 1fr); gap: 10px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.slots li span:last-child { color: var(--ink-2); }
.profile-card { padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 12px; }
.pc-top { display: flex; gap: 14px; align-items: center; }
.pc-text { color: var(--ink); }
.pc-link { font-size: .9375rem; color: var(--ink-2); }
.profile-card .btn { justify-self: start; }
.doc-facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }

/* Nachrichten */
.chat { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); min-height: 560px; margin-block: 0 88px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.conv-list { border-right: 1px solid var(--line); padding: 14px; display: grid; gap: 10px; align-content: start; }
.conv-search { font: inherit; padding: 10px 12px; border-radius: var(--radius); border: 1.5px solid var(--field-border); background: var(--ground); color: var(--ink); width: 100%; }
.conv-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.conv { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 10px; border-radius: var(--radius); text-decoration: none; color: var(--ink); align-items: start; }
.conv[aria-current="true"] { background: var(--moss-soft); }
@media (hover: hover) and (pointer: fine) { .conv:hover { background: var(--moss-soft); } }
.conv-main { display: grid; min-width: 0; }
.conv-main b { font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; }
.conv-sub { font-size: .8125rem; color: var(--ink-2); }
.conv-last { font-size: .875rem; color: var(--ink-2); }
.conv-when { font-size: .8125rem; color: var(--ink-2); display: grid; justify-items: end; gap: 4px; }
.unread { background: var(--lichen); color: #16201a; font-weight: 700; font-size: .75rem; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; }
.thread { display: grid; grid-template-rows: auto auto 1fr auto; min-width: 0; }
.thread-head { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.thread-head b { display: block; font-family: var(--f-sign); font-weight: 600; font-size: 1.1875rem; }
.thread-head span:not(.avatar) { font-size: .875rem; color: var(--ink-2); }
.thread-note { display: flex; gap: 8px; align-items: center; font-size: .8125rem; color: var(--ink-2); padding: 8px 18px; background: var(--ground); }
.thread-note .ic { width: 16px; height: 16px; }
.msgs { list-style: none; margin: 0; padding: 18px; display: grid; gap: 10px; align-content: end; }
.msg { max-width: min(78%, 520px); padding: 10px 14px 6px; border-radius: 14px; display: grid; gap: 4px; }
.msg.them { background: var(--moss-soft); justify-self: start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--btn-bg); color: var(--btn-fg); justify-self: end; border-bottom-right-radius: 4px; }
.msg-time { font-size: .75rem; opacity: .75; justify-self: end; }
.msg-att { display: inline-flex; gap: 6px; align-items: center; font-size: .875rem; padding: 6px 10px; border-radius: 8px; background: rgb(255 255 255 / .14); }
.composer3 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: end; }
.composer3 textarea { font: inherit; resize: none; padding: 11px 13px; border-radius: 22px; border: 1.5px solid var(--field-border); background: var(--ground); color: var(--ink); min-height: 46px; }
.btn.send { width: 46px; height: 46px; padding: 0; border-radius: 50%; }
.btn.send .ic { width: 20px; height: 20px; }
.composer3 .form-msg { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .chat { grid-template-columns: minmax(0, 1fr); }
  .conv-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .conv-list ul { grid-auto-flow: column; grid-auto-columns: minmax(220px, 80%); overflow-x: auto; }
  .msg { max-width: 88%; }
}
fieldset.field { min-inline-size: 0; }
.panel, .form, .page-grid > * { min-width: 0; }
.row-check { flex-wrap: wrap; }
.field { grid-template-columns: minmax(0, 1fr); }
.wrap > .sample-note:first-child { margin-top: 28px; }

/* Regiofinder */
.finder-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 200px auto; gap: 12px; align-items: end; padding: 16px; margin-bottom: 36px; border-radius: var(--radius); background: rgb(255 255 255 / .06); }
.fb-field { display: grid; gap: 6px; min-width: 0; }
.fb-field label { font-family: var(--f-sign); font-weight: 600; font-size: .9375rem; color: var(--on-moss-2); }
.fb-field input, .fb-field select { font: inherit; padding: 12px 14px; border-radius: var(--radius); border: 0; background: var(--plate); color: #16201a; }
.finder-bar .btn { height: 48px; }
@media (max-width: 860px) { .finder-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .finder-bar .fb-field:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } .finder-bar .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .finder-bar { grid-template-columns: minmax(0, 1fr); } }
.filters { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-bottom: 18px; }
.fgroup { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.fgroup legend { font-family: var(--f-sign); font-weight: 600; font-size: 1rem; padding: 0; margin-bottom: 4px; }
.result-count { font-family: var(--f-sign); font-weight: 600; font-size: 1.125rem; margin-bottom: 12px; }
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; padding-bottom: 88px; }
.hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.hit { padding: 14px 0 16px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.hit.sel { background: var(--moss-soft); box-shadow: -12px 0 0 var(--moss-soft), 12px 0 0 var(--moss-soft); }
.hit-btn { all: unset; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; cursor: pointer; border-radius: 4px; }
.hit-btn.static { cursor: default; }
.hit-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.hit-main { display: grid; min-width: 0; }
.hit-main b { font-family: var(--f-sign); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.hit-fach { color: var(--ink); font-size: .9375rem; }
.hit-meta { color: var(--ink-2); font-size: .875rem; }
.hit-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 36px; }
.hit-feat { padding-left: 36px; font-size: .875rem; color: var(--ink-2); }
.hit .btn { margin-left: 36px; justify-self: start; }
.hit.far .hit-tags::before { content: none; }
.mapbox { position: sticky; top: 16px; margin: 0; border-radius: 14px; overflow: hidden; background: var(--map-sea); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.mapbox svg { display: block; width: 100%; height: auto; aspect-ratio: 680 / 880; max-height: calc(100vh - 150px); touch-action: manipulation; }
.krs { fill: var(--map-land); stroke: var(--map-edge); stroke-width: .8; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill 160ms ease; }
.krs.has { fill: var(--map-has); }
@media (hover: hover) and (pointer: fine) { .krs:hover { fill: var(--map-hover); } }
.krs.sel { fill: var(--cal-win); }
.lborder { fill: none; stroke: var(--map-border); stroke-width: 1.4; vector-effect: non-scaling-stroke; pointer-events: none; stroke-linejoin: round; }
.land { transition: opacity 220ms ease; }
.land.dim { opacity: .38; }
.land.on .lborder { stroke: var(--ink); stroke-width: 2; }
.mapbox .pin.off { display: none; }
.mapbox .home circle { fill: var(--btn-bg); stroke: var(--surface); stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
.mapbox .home .halo { fill: none; stroke: var(--btn-bg); stroke-width: 1.5; opacity: .5; }
.map-tip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 12px)); max-width: 240px; padding: 5px 10px; border-radius: 6px; background: var(--moss-deep); color: var(--on-moss); font-size: .8125rem; line-height: 1.35; pointer-events: none; box-shadow: 0 6px 18px -8px rgb(0 0 0 / .5); }
.mapbox figcaption { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px; font-size: .8125rem; color: var(--ink-2); border-top: 1px solid var(--line); background: var(--surface); }
.sw { display: inline-block; width: 14px; height: 10px; border-radius: 2px; background: var(--map-land); box-shadow: inset 0 0 0 1px var(--map-edge); }
.sw.has { background: var(--map-has); }
.crumb-map { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 10px; font-size: .9375rem; color: var(--ink-2); }
.crumb-map button { font: inherit; color: var(--link); background: none; border: 0; padding: 4px 6px; border-radius: 6px; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.crumb-map > span:not(:empty)::before { content: "›"; margin: 0 4px 0 2px; color: var(--ink-2); }
.crumb-map [aria-current] { font-weight: 700; color: var(--ink); padding: 4px 2px; }
.land:focus { outline: none; }
.land:focus-visible .lborder { stroke: var(--focus); stroke-width: 3.5; }
.lg-i { display: inline-flex; gap: 6px; align-items: center; }
.map-note { flex-basis: 100%; }
@media (max-width: 900px) { .finder { grid-template-columns: minmax(0, 1fr); } .mapbox { position: relative; top: 0; order: -1; } }

@media (max-width: 900px) { .mapbox svg { max-height: 70vh; } }
/* Regiofinder: feste Arbeitsfläche, links Suche und Liste, rechts Karte, beide gleich hoch */
.rf-kopf { padding-block: 14px 22px; }
.rf-kopf h1 { font-size: var(--step-3); }
.rf-app { --rf-h: max(520px, calc(100svh - 32px)); display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "suche karte" "liste karte"; gap: 14px 28px; height: var(--rf-h); margin-block: 16px 48px; }
.rf-app .suchbox { grid-area: suche; display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); position: relative; z-index: 3; }
.rf-app .results { grid-area: liste; position: relative; min-height: 0; display: flex; flex-direction: column; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); overflow: hidden; }
.rf-status { padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
.rf-status .crumb-map { margin-bottom: 2px; font-size: .875rem; }
.rf-status .result-count { margin: 0; font-size: 1rem; }
.rf-liste { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 16px 16px; scrollbar-width: thin; }
.rf-liste.zieht { cursor: grabbing; user-select: none; }
.rf-liste .hits { border-top: 0; }
.rf-liste .hit { padding: 12px 0; }
.hit-zeit { display: block; margin-top: 2px; font-size: .8125rem; color: var(--ink-2); }
.hit-akt { font-size: .875rem; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--field-border); text-decoration: none; color: var(--ink); }
@media (hover: hover) { .hit-akt:hover { background: var(--moss-soft); } }
.rf-quelle { margin: 16px 0 0; font-size: .8125rem; color: var(--ink-2); }
.rf-app .mapbox { grid-area: karte; position: relative; top: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; }
.rf-app .mapbox svg { flex: 1; min-height: 0; height: 100%; width: 100%; max-height: none; aspect-ratio: auto; }
.rf-app .mapbox figcaption { flex: none; padding: 8px 14px; gap: 4px 14px; }
.rf-app .map-note { font-size: .75rem; }
.ort-feld { position: relative; }
.suchbox .fb-field label { color: var(--ink); }
.suchbox .fb-field input { background: var(--ground); color: var(--ink); border: 1.5px solid var(--field-border); }
.ort-vorschlag { position: absolute; left: 0; right: 0; top: 100%; margin: 6px 0 0; padding: 6px; list-style: none; border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px -12px rgb(0 0 0 / .35), inset 0 0 0 1px var(--line); z-index: 5; max-height: 340px; overflow-y: auto; }
.ort-vorschlag li { display: grid; gap: 1px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.ort-vorschlag li b { font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; }
.ort-vorschlag li span { font-size: .8125rem; color: var(--ink-2); }
.ort-vorschlag li.aktiv, .ort-vorschlag li:hover { background: var(--moss-soft); }
.rf-leer { margin: 16px 0 0; color: var(--ink-2); line-height: 1.6; }
.kreiswahl { margin: 14px 0 0; }
.kreiswahl select { font: inherit; padding: 9px 12px; border-radius: var(--radius); border: 1.5px solid var(--field-border); background: var(--ground); color: var(--ink); max-width: 100%; }
@media (max-width: 900px) {
  .rf-app { --rf-h: calc(100svh - 12px); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 36% minmax(0, 1fr); grid-template-areas: "suche" "karte" "liste"; gap: 10px; margin-block: 8px 24px; }
  .rf-app .mapbox figcaption .lg-i { display: none; }
  .rf-kopf { padding-block: 4px 10px; gap: 0; }
  .rf-kopf .mark { display: none; }
  .rf-kopf h1 { font-size: 1.375rem; }
  .rf-app .suchbox { padding: 12px; }
  .rf-kopf h1 { font-size: 1.125rem; }
  .rf-kopf { padding-block: 0 8px; }
  .rf-app { grid-template-rows: auto 40% minmax(0, 1fr); }
}

@media (max-width: 420px) { .mainnav a { padding-inline: 8px; font-size: 1rem; } }

/* Praxis Monatskalender */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: clamp(20px, 3vw, 36px); align-items: start; padding-block: 8px 48px; }
.cal { min-width: 0; padding: clamp(14px, 2.4vw, 24px); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cal-head .sec-h { margin: 0; }
.cal-nav { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--moss-soft); }
.cal-btn { font: inherit; display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.cal-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal-btn.txt { font-family: var(--f-sign); font-weight: 600; font-size: 1rem; }
.cal-btn:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .cal-btn:hover { background: var(--surface); } }
.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8125rem; color: var(--ink-2); margin-bottom: 14px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; font-family: var(--f-sign); font-weight: 600; font-size: .875rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.cal-wd span { padding-left: 8px; }
.cal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grid li { min-width: 0; }
.day { all: unset; box-sizing: border-box; width: 100%; min-height: 104px; display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 8px; border-radius: 8px; background: var(--ground); cursor: pointer; transition: background-color 150ms ease, box-shadow 150ms ease; }
@media (hover: hover) and (pointer: fine) { .day:hover { box-shadow: inset 0 0 0 1.5px var(--field-border); } }
.day:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.day .dn { font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; line-height: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.day.we { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.day.out { opacity: .45; }
.day.past .dn, .day.past .ev { opacity: .6; }
.day.today .dn { background: var(--moss-deep); color: var(--on-moss); }
.day.sel { background: var(--moss-soft); box-shadow: inset 0 0 0 2px var(--link); }
.evs { display: grid; gap: 3px; min-width: 0; }
.ev { display: block; min-width: 0; font-size: .75rem; line-height: 1.3; padding: 2px 6px; border-radius: 4px; }
.ev.win { background: var(--cal-win); color: var(--cal-win-ink); }
.ev.bk { background: var(--btn-bg); color: var(--btn-fg); }
.ev.rq { background: transparent; color: var(--ink); outline: 1.5px dashed var(--link); outline-offset: -1.5px; }
.ev.hl { font-size: .6875rem; color: var(--ink-2); padding: 0 2px; white-space: normal; line-height: 1.2; }
.dots { display: none; gap: 3px; flex-wrap: wrap; justify-content: center; }
.dt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dt.win { background: var(--cal-win-dot); }
.dt.bk { background: var(--btn-bg); border-radius: 2px; }
.dt.rq { background: transparent; box-shadow: inset 0 0 0 2px var(--link); }
.cal-sync { margin-top: 14px; }

.day-panel { position: sticky; top: 16px; padding: 20px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); display: grid; gap: 14px; }
.day-h { font-size: 1.375rem; }
.day-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.di { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 2px 10px; padding: 10px 12px; border-radius: 8px; background: var(--ground); font-size: .9375rem; line-height: 1.4; }
.di > .num { font-weight: 700; }
.di .link-btn { grid-column: 2; justify-self: start; font-size: .875rem; min-height: 28px; padding: 2px 0; }
.di.win { box-shadow: inset 4px 0 0 var(--cal-win-dot); }
.di.bk { box-shadow: inset 4px 0 0 var(--btn-bg); }
.di.rq { outline: 1.5px dashed var(--link); outline-offset: -1.5px; }
.di.none { display: block; color: var(--ink-2); }
.win-form { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.wf-h { font-family: var(--f-sign); font-weight: 600; font-size: 1.125rem; }
.wf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.win-form .btn { justify-self: start; }
.reqs-sec { padding-bottom: 88px; max-width: 860px; }

@media (max-width: 1100px) { .day { min-height: 92px; } }
@media (max-width: 900px) {
  .cal-wrap { grid-template-columns: minmax(0, 1fr); }
  .day-panel { position: static; scroll-margin-top: 16px; }
}
@media (max-width: 640px) {
  .cal { padding: 12px 8px; border-radius: 12px; }
  .cal-head { padding-inline: 4px; }
  .cal-legend { padding-inline: 4px; }
  .cal-grid, .cal-wd { gap: 3px; }
  .cal-wd span { padding: 0; text-align: center; font-size: .75rem; }
  .day { min-height: 60px; align-items: center; padding: 6px 2px; gap: 6px; }
  .evs, .ev.hl { display: none; }
  .dots { display: flex; }
}

/* Regiofinder mit echten Daten */
.src-note { margin: 28px 0 22px; font-size: .9375rem; color: var(--ink-2); max-width: 900px; }
.src-note span.tag { display: inline-block; margin-right: 8px; background: var(--lichen); color: #16201a; }
.fgroup .hint { margin-top: 6px; font-size: .8125rem; color: var(--ink-2); max-width: 46ch; }
.hit-tags { align-items: center; }
.hit-tags .ext { font-size: .875rem; margin-left: 4px; }
.more-btn { margin-top: 18px; }
::placeholder { color: var(--ink-2); opacity: 1; }
.fb-field input::placeholder { color: #5c5a4f; }

/* Kartenmarker: runde Marke mit Farbe und Symbol je Art */
.k-praxis { --mk: #35511f; } .k-zahn { --mk: #1d5c66; } .k-mvz { --mk: #6a3a63; } .k-klinik { --mk: #a03c22; } .k-therapie { --mk: #7c5a0c; }
.mk-bg { fill: var(--mk); }
.mk-gl { fill: #fff; }
svg.mk { width: 22px; height: 22px; flex: none; display: block; }
svg.mk .mk-bg { stroke: rgb(255 255 255 / .9); stroke-width: 1.2; }
.mapbox .pin { cursor: pointer; transition: opacity 150ms ease; }
.mapbox .pin .mk-bg { stroke: var(--mk-ring); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
#demap:not(.detail) .pin .mk-gl { display: none; }
.mapbox .pin.off { display: none; }
.mapbox .pin.hov .mk-bg { stroke: var(--ink); stroke-width: 2.5; }
.mapbox .pin.sel .mk-bg { stroke: var(--ink); stroke-width: 3; }
#demap.dragging, #demap.dragging * { cursor: grabbing; }
.hit-shape { display: grid; place-items: start center; padding-top: 2px; }
.lg-i { color: var(--ink); }
.lg-i svg.mk { width: 18px; height: 18px; }
.sw { width: 16px; height: 12px; box-shadow: inset 0 0 0 1.5px var(--map-border); }
.map-ctl { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); overflow: hidden; }
.map-ctl button { all: unset; box-sizing: border-box; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background-color 150ms ease; }
.map-ctl button + button { border-top: 1px solid var(--line); }
.map-ctl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .map-ctl button:hover { background: var(--moss-soft); } }
.map-ctl button:active { background: var(--moss-soft); }
.map-ctl button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
#demap { touch-action: pan-x pan-y; }

/* Kopfbild auf der Startseite (Vorschau zum Vergleichen) */
.masthead { position: relative; isolation: isolate; }
.masthead > :not(.hero-media) { position: relative; z-index: 1; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--moss-deep); }
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.masthead[data-scrim="verlauf"] .hero-media::after {
  background: linear-gradient(90deg, rgb(20 29 16 / .94) 0%, rgb(20 29 16 / .86) 38%, rgb(20 29 16 / .45) 70%, rgb(20 29 16 / .2) 100%),
              linear-gradient(180deg, rgb(20 29 16 / .55) 0%, rgb(20 29 16 / 0) 22%, rgb(20 29 16 / 0) 72%, rgb(20 29 16 / .7) 100%); }
.masthead[data-scrim="getoent"] .hero-media video, .masthead[data-scrim="getoent"] .hero-media img { filter: grayscale(1) contrast(1.15) brightness(.9); mix-blend-mode: luminosity; opacity: .55; }
.masthead[data-scrim="getoent"] .hero-media::after { background: linear-gradient(90deg, rgb(28 39 23 / .82) 0%, rgb(28 39 23 / .55) 55%, rgb(28 39 23 / .35) 100%); }
.masthead.has-media .hero-leaf { display: none; }
.masthead.has-media .hero h1, .masthead.has-media .hero .lead { text-shadow: 0 1px 18px rgb(10 16 8 / .45); }
.hero-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-bottom: 22px; }
.hp-label { font-family: var(--f-sign); font-weight: 600; font-size: .9375rem; color: var(--on-moss); }
.hp-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; max-width: 100%; }
.hp-list::-webkit-scrollbar { display: none; }
.hp-btn { all: unset; box-sizing: border-box; flex: none; position: relative; width: 64px; height: 36px; border-radius: 8px; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px rgb(238 242 230 / .35); background: rgb(255 255 255 / .06); transition: box-shadow 150ms ease, transform 160ms var(--ease-out); }
.hp-btn:active { transform: scale(.96); }
.hp-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-none { position: absolute; inset: 0; background: linear-gradient(135deg, transparent 47%, rgb(238 242 230 / .5) 47% 53%, transparent 53%); }
.hp-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--lichen), 0 0 0 4px rgb(20 29 16 / .8); }
.hp-btn:focus-visible { outline: 2px solid var(--lichen); outline-offset: 3px; }
.hp-mode { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(20 29 16 / .6); box-shadow: inset 0 0 0 1px rgb(238 242 230 / .2); }
.hp-mode button { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 999px; font-family: var(--f-sign); font-weight: 600; font-size: .875rem; color: var(--on-moss-2); }
.hp-mode button[aria-pressed="true"] { background: var(--pill); color: var(--moss-deep); }
.hp-mode button:focus-visible { outline: 2px solid var(--lichen); outline-offset: 2px; }
@media (max-width: 600px) { .hero-media video, .hero-media img { object-position: 60% 50%; } .masthead[data-scrim="verlauf"] .hero-media::after { background: rgb(20 29 16 / .78); } }
.masthead[data-scrim="leicht"] .hero-media::after {
  background: linear-gradient(90deg, rgb(20 29 16 / .9) 0%, rgb(20 29 16 / .78) 40%, rgb(20 29 16 / .3) 70%, rgb(20 29 16 / .05) 100%),
              linear-gradient(180deg, rgb(20 29 16 / .5) 0%, rgb(20 29 16 / 0) 20%, rgb(20 29 16 / 0) 80%, rgb(20 29 16 / .6) 100%); }
@media (max-width: 600px) { .masthead[data-scrim="leicht"] .hero-media::after { background: rgb(20 29 16 / .7); } }
/* Kontrastsicherung Kopfbild: Navigation auf eigener dunkler Fläche, mobil kräftigere Abdunklung */
.masthead.has-media .mainnav { background: rgb(16 23 13 / .72); box-shadow: inset 0 0 0 1px rgb(238 242 230 / .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.masthead.has-media .login { background: rgb(16 23 13 / .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.masthead.has-media .mainnav a:not([aria-current]):not(.unter-glas) { color: #d3dcc6; }
.hp-list { padding: 6px; margin: -3px; }
@media (max-width: 600px) {
  .masthead[data-scrim="leicht"] .hero-media::after { background: rgb(20 29 16 / .8); }
  .masthead[data-scrim="getoent"] .hero-media::after { background: rgb(28 39 23 / .86); }
}

/* Einstellungen: Farbton */
.tone-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 6px; }
.tone-opt { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow 150ms ease; }
.tone-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tone-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--link); background: var(--moss-soft); }
.tone-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.tone-opt b { display: block; font-family: var(--f-sign); font-weight: 600; font-size: 1.125rem; }
.tone-opt small { display: block; color: var(--ink-2); font-size: .875rem; line-height: 1.35; }
.tone-prev { display: grid; gap: 4px; padding: 8px; border-radius: 8px; height: 52px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.tone-prev i { display: block; border-radius: 3px; }
.tone-prev i:nth-child(1) { height: 8px; width: 70%; }
.tone-prev i:nth-child(2) { height: 6px; width: 90%; opacity: .6; }
.tone-prev i:nth-child(3) { height: 6px; width: 50%; opacity: .6; }
.tone-prev.tp-leinen { background: #f3eee3; } .tone-prev.tp-leinen i { background: #16201a; }
.tone-prev.tp-dunkel { background: #10160e; } .tone-prev.tp-dunkel i { background: #e6ebdf; }

/* Rechtstexte */
.legal { max-width: 860px; padding-block: 32px 88px; }
.legal section { padding-block: 22px; border-top: 1px solid var(--line); }
.legal section:first-of-type { border-top: 0; }
.legal h2 { font-size: var(--step-2); margin-bottom: 12px; scroll-margin-top: 16px; }
.legal h3 { font-size: 1.1875rem; margin: 18px 0 6px; }
.legal p { max-width: 72ch; margin-bottom: 12px; }
.legal p:last-child { margin-bottom: 0; }
.legal-draft { padding: 14px 16px; border-radius: var(--radius); background: var(--moss-soft); box-shadow: inset 4px 0 0 var(--lichen); font-size: .9375rem; margin-bottom: 8px; }
.ph { background: #f6e7a8; color: #3b3008; padding: 0 4px; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.legal-tbl { margin: 14px 0; overflow-x: auto; }
.legal-tbl table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 640px; }
.legal-tbl th[scope="col"] { font-family: var(--f-sign); font-weight: 600; background: var(--moss-soft); }
.legal-tbl th[scope="row"] { font-weight: 700; vertical-align: top; }
.legal-tbl td { vertical-align: top; }
.legal-stand { margin-top: 28px; color: var(--ink-2); font-size: .875rem; }
.legal-box { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--field-border); }
.article .status + #timeline, .article > div > .status { margin-bottom: 28px; }
.unchecked { font-size: .75rem; color: var(--ink-2); }

/* ---------- Feinschliff gegen Vorlagenmuster (10.10.2026) ---------- */
/* Ziffern aus der Schildschrift: ruhige, gewöhnliche Zahlen statt Code Optik */
.num { font-family: var(--f-sign); font-weight: inherit; letter-spacing: 0; }
/* Themenverzeichnis: lesbare Links statt Kleingedrucktem */
/* Drei Schritte ohne Linien unter jeder Zeile */
.steps { gap: 28px; }
.steps li, .steps li:last-child { border: 0; padding-block: 0; }
/* Zwei Wege ohne Etikett vor der Überschrift */
.way h3 { display: block; }
/* Antworten und Zitate: feine Linie statt Balken */
.answers { border-left: 1px solid var(--line); padding-left: 18px; }
.original { border-left: 1px solid var(--line); }
.feed .children { border-left: 1px solid var(--line); }
/* Antworten über die volle Breite des Beitrags, nicht in der schmalen Spalte des Profilbilds */
.feed-post > .children { grid-column: 1 / -1; }
/* Kalender: Wochentage in normaler Schreibweise, keine gestrichelten Rahmen */
.cal-wd { text-transform: none; letter-spacing: 0; }
.ev.rq { outline: 0; box-shadow: inset 0 0 0 1px var(--field-border); background: var(--surface); }
/* Tagesliste: Zustand über die Fläche, nicht über einen Farbstreifen am Rand */
.di { grid-template-columns: 5.25rem minmax(0, 1fr); gap: 2px 12px; padding: 12px 14px; border-radius: 10px; box-shadow: none; outline: 0; }
.di > .num { font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.di.win { background: var(--cal-win); color: var(--cal-win-ink); box-shadow: none; }
.di.bk { background: var(--moss-soft); box-shadow: none; }
.di.rq { outline: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--field-border); }
/* Etiketten als Absatz nicht auf volle Breite ziehen */
pspan.tag { width: fit-content; }
/* Einwilligung: Kästchen und Text in einer Zeile */
.row-check { flex-wrap: nowrap; align-items: flex-start; }
.row-check input { flex: none; margin-top: 3px; }
/* Seitenkopf auf dem Handy: Zeichen oben an der Überschrift, nicht mittig daneben schwebend */
@media (max-width: 600px) {
  .disease-head .mark { grid-row: 1; align-self: start; margin-top: 4px; }
  .disease-head .sub { grid-column: 1 / -1; }
}
.stand { margin-top: 18px; font-size: .9375rem; color: var(--ink-2); }
.way .sample a { font-weight: 700; }
.post-actions .melden { font-family: var(--f-sign); font-weight: 600; color: var(--ink-2); margin-left: 18px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .post-actions .melden:hover { color: var(--link); text-decoration: underline; } }

/* Wegzeichen mit Symbolen: etwas größer, damit das Symbol lesbar bleibt */
.mark { width: 38px; height: 38px; border-radius: 9px; }
.mark svg { width: 23px; height: 23px; }
.mark.lg { width: 52px; height: 52px; border-radius: 12px; }
.mark.lg svg { width: 32px; height: 32px; }

/* Mein Profil und Moderation */
.dm-flash { margin: 24px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--cal-win); color: var(--cal-win-ink); }
.dm-flash.fehler { background: #f6e4dc; color: #8f2f1f; }
.mod { padding-top: 36px; }
.mod-zahlen { display: flex; flex-wrap: wrap; gap: 12px 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.mod-zahlen p { margin: 0; color: var(--ink-2); }
.mod-zahlen b { display: block; font-family: var(--f-sign); font-weight: 600; font-size: 2.25rem; line-height: 1.1; color: var(--ink); }
.mod-block { padding-top: 32px; }
.mod-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.mod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mod-list > li { padding: 16px 18px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.mod-list.kompakt > li { padding: 12px 0; background: none; box-shadow: none; border-radius: 0; }
.mod-list.kompakt > li + li { border-top: 1px solid var(--line); }
.mod-meta { font-size: .9375rem; color: var(--ink-2); }
.mod-meta b { color: var(--ink); font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; }
.mod-text { margin-top: 8px; }
.mod-text p { margin: 0 0 8px; }
.mod-auszug { margin: 4px 0 0; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mod-list.kompakt .mod-actions { margin-top: 4px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--field-border); padding: 13px 21px; }   /* echter Rahmen statt inset Schatten, Safari ließ bei krummer Breite die rechte Kante weg, seit 0.16.79 */
.mod-themen { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.mod-themen li { display: flex; justify-content: space-between; gap: 12px; }
.mod-themen .num { color: var(--ink-2); }
.pf-form { display: grid; gap: 16px; }
.pf-wert { padding: 4px 0; }
.pf-ton { margin-top: 24px; }
.pf-links { display: flex; gap: 20px; margin: 22px 0 0; }
.pf-recht { margin-top: 32px; }
.pf-start { padding-top: 36px; padding-bottom: 64px; }
.pf-start .pf-form { max-width: 620px; gap: 18px; }
.pf-text { margin: -6px 0 4px; color: var(--ink-2); max-width: 56ch; line-height: 1.6; }
.pf-abstand { margin-top: 20px; }
.pf-zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pf-plz { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 16px; align-items: start; }
.pf-zwei { align-items: start; }
.pf-weiter { justify-self: start; margin-top: 8px; }
.pf-privat { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.pf-unter { margin: 0; font-family: var(--f-sign); font-weight: 600; font-size: 1.1875rem; }
.pf-privat > .hint { margin: -10px 0 0; }
.field.hat-fehler input { border-color: #b4472f; }
.hint.fehler { color: #8f2f1f; }
[data-tone="dunkel"] .hint.fehler { color: #f0a48f; }
@media (max-width: 520px) { .pf-zwei { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .mod-split { grid-template-columns: minmax(0, 1fr); } }

/* Safari und iPhone: kein seitliches Wackeln, kein Langdruckmenü auf Bedienelementen, eigene Tippfarbe */
html, body { overflow-x: clip; }
a, button, .btn, .mainnav a, .login, .act, .map-ctl button, .tone-opt, .chips label { -webkit-tap-highlight-color: transparent; }
button, .btn, .mainnav a, .waybar a, .act, .map-ctl button, .tone-opt, .chips label, .mark { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

.suchbox .fb-kasse legend { font-family: var(--f-sign); font-weight: 600; font-size: .9375rem; }
.suchbox .fb-kasse .hint { margin: 6px 0 0; }

/* Regiofinder: Filterleiste in einer Zeile, Vollbild */
.filterleiste { display: flex; flex-wrap: wrap; gap: 6px; }
.filterleiste::-webkit-scrollbar { display: none; }
.fchip { flex: none; position: relative; }
.fchip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fchip span { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; font-size: .875rem; white-space: nowrap; box-shadow: inset 0 0 0 1.5px var(--field-border); color: var(--ink-2); transition: background-color 150ms ease, color 150ms ease; }
.fchip input:checked + span { background: var(--moss); color: var(--on-moss); box-shadow: none; }
.fchip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.ftrenn { flex: none; width: 1px; margin: 6px 4px; background: var(--line); }
.fsel { flex: none; }
.fsel select { font: inherit; font-size: .875rem; height: 34px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--field-border); background: var(--ground); color: var(--ink); }
.map-ctl #z-voll .v-zu { display: none; }
.rf-voll #z-voll .v-auf { display: none; }
.rf-voll #z-voll .v-zu { display: inline; }
html.rf-voll-an, html.rf-voll-an body { overflow: hidden; }
.rf-app.rf-voll { position: fixed; inset: 0; z-index: 1000; margin: 0; max-width: none; width: 100%; height: 100dvh; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); gap: 12px; background: var(--ground); grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
@media (max-width: 900px) { .rf-app.rf-voll { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 34% minmax(0, 1fr); padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); gap: 8px; } }
@media (max-width: 900px) and (orientation: landscape) { .rf-app.rf-voll { grid-template-columns: minmax(260px, 42%) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "suche karte" "liste karte"; } }
.admin-bar .rf-app.rf-voll { top: var(--wp-admin--admin-bar--height, 32px); height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px)); }
.fsel select { font-size: 1rem; }

#stoffe h3 { margin: 28px 0 0; font-size: 1.125rem; }
#stoffe .kr-liste { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }


.wb-knopf { display: none; }
.waybar.eng .wb-knopf { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 56px; padding: 0 max(16px, env(safe-area-inset-left)); border: 0; background: none; color: var(--on-moss); font: 600 1rem/1.3 var(--f-sign); text-align: left; cursor: pointer; }
.waybar.eng .wb-knopf::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.waybar.eng.offen .wb-knopf::after { transform: translateY(2px) rotate(-135deg); }
.waybar.eng .wb-vor { color: var(--on-moss-2); font-weight: 500; }
.waybar.eng .wrap { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; gap: 2px; overflow: auto; max-height: min(70vh, 480px); padding: 8px max(16px, env(safe-area-inset-left)) 12px; background: var(--moss); box-shadow: 0 8px 16px rgb(0 0 0 / .25); }
.waybar.eng.offen .wrap { display: flex; }
.waybar.eng .wrap a { white-space: normal; }

.ev, .mod-auszug { overflow-wrap: break-word; }

.gl-seiten { display: block; margin-top: 6px; font-size: .9375rem; }
.rail-begriffe dt a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }

.nach-oben { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--moss); color: var(--on-moss); font: 600 1rem/1 var(--f-sign); box-shadow: 0 4px 14px rgb(0 0 0 / .25); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.nach-oben svg { width: 20px; height: 20px; }
.nach-oben.da { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
.nach-oben:focus-visible { outline: 2px solid var(--lichen); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .nach-oben:hover { background: var(--moss-deep); } }
@media (prefers-reduced-motion: reduce) { .nach-oben { transition: none; } }
.footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

/* Handy hochkant: keine feste Arbeitsfläche, Karte mit fester Höhe, die Liste läuft mit der Seite */
@media (max-width: 900px) and (orientation: portrait) {
  .rf-app:not(.rf-voll) { height: auto; grid-template-rows: auto auto auto; }
  .rf-app:not(.rf-voll) .mapbox { height: min(50svh, 440px); }
  .rf-app:not(.rf-voll) .results { overflow: visible; }
  .rf-app:not(.rf-voll) .rf-liste { flex: none; overflow: visible; }
}
html.rf-voll-an .nach-oben { display: none; }

/* Supplemente und Bedarfsrechner */
.sup { padding-block: 24px 72px; display: grid; gap: 40px; }
.sup h2 { font-size: var(--step-3); }
.sup-intro { max-width: 68ch; color: var(--ink-2); line-height: 1.6; margin: 10px 0 0; }
/* Tagesplan: Angaben oben, darunter Mengen, Teller, Tagesablauf und Verträglichkeit */
.tp { display: grid; gap: 22px; }
.tp-intro h2 { margin: 0; font-size: var(--step-2); }
.tp-intro .sup-intro { margin-top: 6px; }
.tp-wichtig { margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--moss-soft); font-size: .9375rem; line-height: 1.55; color: var(--ink-2); max-width: 90ch; }
.tp svg { fill: currentColor; }
.tp-form { min-width: 0; display: grid; gap: 18px; padding: clamp(16px, 2.6vw, 26px); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.tp-zeile { min-width: 0; display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: flex-end; }
.tp-feld { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 7px; }
.tp-feld legend, .tp-feld > span { padding: 0; margin-bottom: 7px; font: 600 .9375rem/1.2 var(--f-sign); letter-spacing: .01em; color: var(--ink-2); }
.tp-feld > span { margin: 0; }
.tp-feld small { font: 400 .8125rem var(--f-read); }
.tp-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); }
.tp-seg label { position: relative; }
.tp-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tp-seg span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: .9375rem; white-space: nowrap; transition: background-color 150ms ease, color 150ms ease; }
.tp-seg i { display: inline-flex; width: 18px; height: 18px; }
.tp-seg i svg { width: 18px; height: 18px; }
.tp-seg input:checked + span { background: var(--moss); color: var(--on-moss); }
.tp-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) { .tp-seg label:hover input:not(:checked) + span { background: var(--moss-soft); } }
.tp-zahl input, .tp-feld select { height: 46px; padding: 0 12px; border-radius: 8px; border: 1.5px solid var(--field-border); background: var(--ground); color: var(--ink); font: 600 1.0625rem var(--f-read); }
.tp-zahl input { width: 7.5ch; font-variant-numeric: tabular-nums; }
/* Zahlenfelder ohne die Pfeile der Browser: Sie verdeckten bei großer Schrift die Zahl. Eingabe und Zifferntastatur bleiben. */
.tp-zahl input { -moz-appearance: textfield; appearance: textfield; }
.tp-zahl input::-webkit-outer-spin-button, .tp-zahl input::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.tp-zahl input:focus, .tp-feld select:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.tp-schalter { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; cursor: pointer; font-weight: 600; font-size: .9375rem; position: relative; }
.tp-schalter input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.tp-schiene { position: relative; width: 44px; height: 26px; flex: none; border-radius: 99px; background: var(--line); transition: background-color 180ms ease; }
.tp-schiene::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform 200ms var(--ease-out); }
.tp-schalter input:checked + .tp-schiene { background: var(--moss); }
.tp-schalter input:checked + .tp-schiene::after { transform: translateX(18px); background: var(--lichen); }
.tp-schalter input:focus-visible + .tp-schiene { outline: 2px solid var(--focus); outline-offset: 2px; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chip { position: relative; }
.tp-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tp-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 99px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); font-size: .875rem; font-weight: 600; transition: background-color 150ms ease, color 150ms ease; }
.tp-chip input:checked + span { background: var(--moss); color: var(--on-moss); box-shadow: none; }
.tp-chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.tp-meide .tp-chip input:checked + span { background: var(--lichen); color: #16201a; }
.tp-auswahl { border-top: 1px solid var(--line); padding-top: 12px; }
.tp-auswahl summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 600 .9375rem var(--f-sign); color: var(--link); list-style: none; min-height: 32px; }
.tp-auswahl summary::-webkit-details-marker { display: none; }
.tp-auswahl summary i, .tp-auswahl summary svg { width: 18px; height: 18px; display: inline-flex; }
.tp-auswahl[open] .tp-chips { margin-top: 8px; }
.tp-klein { margin: 6px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
.tp-status { margin: 0; color: var(--ink-2); }
.tp-status:empty { display: none; }
.tp-ergebnis { display: grid; gap: 18px; }
.tp-kopf { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.tp-zahlen { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .9375rem; color: var(--ink-2); }
.tp-zahlen b { font: 600 1.625rem/1 var(--f-sign); color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; }
.tp-aktion { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-aktion .btn { font-size: 1.0625rem; padding: 12px 18px; }
.tp-aktion .btn svg { width: 20px; height: 20px; }
.tp-meldung { flex-basis: 100%; margin: 0; font-size: .875rem; color: var(--ink-2); }
.tp-meldung:empty { display: none; }
.tp-karte { padding: clamp(16px, 2.6vw, 26px); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.tp-karte-kopf { margin-bottom: 14px; }
.tp-karte h3 { font-size: var(--step-1); }
.tp-karte h3::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 8px; background: var(--lichen); }
.tp-karte-kopf p { margin: 6px 0 0; font-size: .9375rem; color: var(--ink-2); line-height: 1.5; max-width: 72ch; }
.tp-karte h4 { margin: 18px 0 8px; font: 600 1rem var(--f-sign); color: var(--ink-2); letter-spacing: .01em; }
.tp-mengen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0 22px; }
.tp-menge { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n g" "b p"; gap: 4px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.tp-name { grid-area: n; font-weight: 700; font-size: .9375rem; color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .tp-name:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; } }
.tp-menge > .tp-g, .tp-menge > .tp-leer:not(.tp-proz) { grid-area: g; text-align: right; }
.tp-g { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-einheit { font-weight: 400; color: var(--ink-2); }
.tp-balken { grid-area: b; height: 6px; border-radius: 99px; background: var(--moss-soft); overflow: hidden; }
.tp-balken i { display: block; height: 100%; width: min(100%, var(--p)); border-radius: inherit; background: var(--pin-2); }
.tp-proz { grid-area: p; font-size: .8125rem; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-proz.tp-leer { grid-column: 1 / -1; text-align: left; }
.tp-leer { color: var(--ink-2); font-size: .8125rem; }
.tp-lm { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 22px; }
.tp-lm li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.tp-lm li > span { grid-column: 1; color: var(--ink-2); font-size: .875rem; }
.tp-lm li > small { grid-column: 2; grid-row: 1; font-size: .8125rem; color: var(--link); font-weight: 600; }
.tp-woche { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tp-woche li { display: grid; gap: 4px; align-content: start; padding: 10px 8px; border-radius: 10px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.tp-woche li > span { font: 600 1rem var(--f-sign); color: var(--link); }
.tp-woche b { font-size: .8125rem; line-height: 1.3; hyphens: auto; }
.tp-woche small { font-size: .75rem; }
.tp-ablauf { list-style: none; margin: 0; padding: 0; display: grid; }
.tp-ablauf li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); position: relative; }
.tp-ablauf time { font: 600 1.25rem/1.1 var(--f-sign); color: var(--link); font-variant-numeric: tabular-nums; }
.tp-ablauf li > div { display: grid; gap: 2px; align-content: start; }
.tp-ablauf li > div > b, .tp-ablauf .tp-essen { grid-column: 1 / -1; }
.tp-ablauf li > div > b { font: 600 1.0625rem var(--f-sign); }
.tp-mahl { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.tp-mahl li { display: grid; grid-template-columns: 5.6em minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.tp-mahl li:first-child { border-top: 0; }
.tp-art { font: 600 .875rem var(--f-sign); color: var(--ink-2); }
.tp-mahl .ist-praep .tp-art { color: var(--pin-2); }
.tp-mahl .ist-praep .tp-was { font-weight: 700; }
.tp-mahl .tp-g { text-align: right; }
.tp-mahl small { grid-column: 2 / -1; font-size: .8125rem; line-height: 1.45; color: var(--ink-2); }
.tp-deckt { grid-column: 1 / -1; margin: 4px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--link); }
.tp-essen { margin: -6px 0 0; font-size: .9375rem; color: var(--ink-2); line-height: 1.5; }
.tp-pille { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.tp-pille > span { flex: 1; }
.tp-pille small { display: block; margin-top: 2px; font-size: .8125rem; color: var(--ink-2); line-height: 1.45; }
.tp-hinweis { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--moss-soft); font-size: .9375rem; line-height: 1.5; }
.tp-hinweis > svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.tp-warn { box-shadow: inset 3px 0 0 var(--lichen); }
.tp-fazit-liste { margin: 0; display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); gap: 0 18px; }
.tp-fazit-liste dt { padding: 9px 0; border-top: 1px solid var(--line); font-weight: 700; font-size: .9375rem; }
.tp-fazit-liste dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 640px) { .tp-fazit-liste { grid-template-columns: 1fr; } .tp-fazit-liste dd { border-top: 0; padding-top: 0; } }
.tp-schluss { margin: 4px 0 0; padding: 16px 18px; border-left: 3px solid var(--lichen); background: var(--surface); font-weight: 600; line-height: 1.55; max-width: 90ch; }
.tp-paare { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 28px; margin-bottom: 14px; }
.tp-paar { padding: 10px 0; border-top: 1px solid var(--line); }
.tp-paar ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.tp-stoffe { display: grid; gap: 0; margin-top: 14px; }
.tp-stoff { border-top: 1px solid var(--line); }
.tp-stoff:last-child { border-bottom: 1px solid var(--line); }
.tp-stoff summary { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 0; cursor: pointer; list-style: none; font-weight: 700; }
.tp-stoff summary::-webkit-details-marker { display: none; }
.tp-stoff summary small { font-weight: 400; font-size: .8125rem; color: var(--ink-2); }
.tp-stoff summary::after { content: ""; margin-left: auto; align-self: center; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 200ms var(--ease-out); }
.tp-stoff[open] summary::after { transform: rotate(-135deg); }
.tp-stoff h4 { margin: 4px 0 6px; }
.tp-stoff ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 4px; font-size: .9375rem; line-height: 1.5; }
.tp-stoff > a { display: inline-block; margin-bottom: 12px; font-size: .9375rem; }
@media (max-width: 640px) {
  .tp-zeile { gap: 14px; }
  .tp-zeile > fieldset.tp-feld { flex-basis: 100%; }
  .tp-seg { display: flex; max-width: 100%; }
  .tp-seg:has(input[name="modus"]) { flex-direction: column; }
  .tp-seg:has(input[name="modus"]) span { justify-content: flex-start; padding: 0 14px; }
  .tp-seg label { flex: 1 1 0; }
  .tp-seg span { justify-content: center; width: 100%; padding: 0 8px; }
  .tp-woche { grid-template-columns: 1fr; gap: 0; }
  .tp-woche li { grid-template-columns: 6.5em minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 9px 0; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--line); text-align: left; }
  .tp-woche b { font-size: .9375rem; hyphens: manual; }
  .tp-woche small { font-size: .8125rem; }
  .tp-ablauf li { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .tp-aktion { width: 100%; }
  .tp-aktion .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) { .tp-seg span { font-size: .875rem; } .tp-seg i { display: none; } }
@media (prefers-reduced-motion: reduce) { .tp-schiene::after, .tp-stoff summary::after { transition: none; } }
.sup-stoffe h3 { margin: 28px 0 0; font-size: 1.25rem; }
.sup-quellen .sources { margin-top: 12px; }
.sup-verweis { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 28px 0 0; padding: 16px 18px; border-radius: 12px; background: var(--moss-soft); line-height: 1.5; }

/* Themenseiten: Erfahrungen und Fragen als eigene Spalte, die beim Lesen sichtbar bleibt */
.gemeinschaft { align-self: start; padding: 22px 22px 8px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.gemeinschaft:focus { outline: none; }
.gemeinschaft:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.gemeinschaft .timeline-head { display: grid; gap: 6px; }
.gemeinschaft .timeline-head h2 { font-size: var(--step-2); }
.ugc-hinweis { font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.gemeinschaft .composer { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
.gemeinschaft .feed-post { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding-block: 18px; }
.gemeinschaft .avatar { width: 40px; height: 40px; font-size: 1rem; }
.gemeinschaft .feed > .feed-post:last-child { border-bottom: 0; }
.gemeinschaft { margin-top: 72px; padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 48px) 16px; }
.gemeinschaft > * { max-width: 760px; margin-inline: auto; }
.composer-form label.bilder-waehlen { display: inline-flex; }
.gemeinschaft > .timeline-head { margin-bottom: 8px; }
@media (max-width: 600px) { .gemeinschaft { padding: 18px 16px 4px; margin-inline: calc(var(--gutter) * -0.5); } }
@keyframes gemeinschaft-ruf { 0% { box-shadow: var(--shadow), inset 0 0 0 1px var(--line), 0 0 0 0 rgb(200 216 106 / .9); } 100% { box-shadow: var(--shadow), inset 0 0 0 1px var(--line), 0 0 0 14px rgb(200 216 106 / 0); } }
@media (prefers-reduced-motion: no-preference) { .gemeinschaft.ruf { animation: gemeinschaft-ruf 900ms var(--ease-out); } }

/* Begriffe auf dieser Seite und verwandte Themen */
.begriffe { margin: 14px 0 0; display: grid; gap: 0; }
.begriffe > div { padding: 12px 0; border-top: 1px solid var(--line); }
.begriffe dt { scroll-margin-top: 96px; }
.begriffe dt { font-family: var(--f-sign); font-weight: 600; font-size: 1.125rem; }
.begriffe dt a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
.begriffe dd { margin: 2px 0 0; color: var(--ink-2); line-height: 1.55; }
.begriffe > div:has(dt:target) { background: linear-gradient(90deg, var(--moss-soft), transparent); }
.mehr-themen { margin-top: 16px; font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; }
/* Fachrichtungen als Knöpfe in den Regiofinder */
.fach-hinweis { margin-top: 22px; }
.fach-hinweis > p { color: var(--ink-2); }
.fach-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.fach-knopf {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%;
  padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
  font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; line-height: 1.2;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform 160ms var(--ease-out), filter 150ms ease;
}
.fach-knopf .ic { width: 18px; height: 18px; flex: none; fill: currentColor; }
.fach-knopf:active { transform: scale(.97); }
.fach-knopf:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .fach-knopf:hover { filter: brightness(1.12); } }
.fach-weitere { margin-top: 12px; color: var(--ink-2); font-size: .9375rem; }

/* Fachbegriffe im Text mit Sprechblase */
a.gl { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--focus); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: help; border-radius: 2px; transition: background-color 150ms ease; }
a.gl:hover, a.gl.offen { background: rgb(200 216 106 / .28); }
.gl-blase { position: fixed; z-index: 60; left: 0; top: 0; width: max-content; max-width: min(340px, calc(100vw - 24px)); padding: 14px 16px 12px; border-radius: 12px; background: var(--moss-deep); color: var(--on-moss); font-size: .9375rem; line-height: 1.5; box-shadow: 0 18px 40px -16px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(200 216 106 / .35); transform-origin: var(--gl-ursprung, 50% 100%); }
.gl-blase[hidden] { display: none; }
.gl-blase b { display: flex; align-items: center; gap: 8px; font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; color: var(--lichen); margin-bottom: 4px; }
.gl-blase b svg { width: 18px; height: 18px; flex: none; }
.gl-blase a { display: inline-block; margin-top: 8px; color: var(--lichen); font-family: var(--f-sign); font-weight: 600; }
.gl-blase::after { content: ""; position: absolute; left: var(--gl-pfeil, 50%); width: 14px; height: 14px; background: var(--moss-deep); transform: translateX(-50%) rotate(45deg); box-shadow: 1px 1px 0 rgb(200 216 106 / .35); }
.gl-blase[data-seite="oben"]::after { bottom: -7px; }
.gl-blase[data-seite="unten"]::after { top: -7px; box-shadow: -1px -1px 0 rgb(200 216 106 / .35); }
@media (prefers-reduced-motion: no-preference) {
  .gl-blase.auf { animation: gl-auf 260ms var(--ease-out) both; }
  .gl-blase.auf b svg { animation: gl-blatt 520ms var(--ease-out) both; }
}
@keyframes gl-auf { from { opacity: 0; transform: translateY(var(--gl-weg, 6px)) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes gl-blatt { from { transform: rotate(-35deg) scale(.6); opacity: 0; } 60% { transform: rotate(8deg) scale(1.05); opacity: 1; } to { transform: none; } }

/* Profilbild */
.avatar.mit-bild { overflow: hidden; padding: 0; background: var(--moss-soft); }
.avatar.mit-bild img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.pf-bild { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: start; margin: 8px 0 28px; }
.pf-bild > .avatar { width: 88px; height: 88px; font-size: 1.75rem; }
.pf-bild form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.pf-bild .hint { margin-top: 10px; }
.pf-bild-waehlen { position: relative; cursor: pointer; }
.pf-bild-waehlen input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pf-bild-waehlen:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.mod-mitglied { display: inline-flex; align-items: center; gap: 10px; }
.mod-mitglied .avatar { width: 32px; height: 32px; font-size: .875rem; }
.mod-bild { display: inline; margin-left: 8px; }
.pf-versicherung { margin-top: 28px; }
.pf-vers-art legend { font-family: var(--f-sign); font-weight: 600; margin-bottom: 6px; }
@media (max-width: 480px) { .pf-bild { grid-template-columns: 64px minmax(0, 1fr); } .pf-bild > .avatar { width: 64px; height: 64px; font-size: 1.25rem; } }

/* ---------- Hauptmenü: gleitender Glastropfen (Annäherung im Web, kein Apple Material) ---------- */
.mainnav { position: relative; isolation: isolate; }
.mainnav .nav-glas { display: none; }
.nav-js .mainnav .nav-glas {
  display: block; position: absolute; z-index: -1; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 999px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgb(255 255 255 / .96), rgb(240 236 224 / .9));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -1px 0 rgb(28 39 23 / .08), 0 1px 2px rgb(0 0 0 / .28), 0 6px 18px -8px rgb(200 216 106 / .55);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  transition: transform 460ms cubic-bezier(.3, 1.35, .5, 1), width 460ms cubic-bezier(.3, 1.35, .5, 1), opacity 180ms ease;
  view-transition-name: nav-glas;
}
.nav-js .mainnav .nav-glas.da { opacity: 1; }
.nav-js .mainnav .nav-glas.still, .nav-js .mainnav .nav-glas.still ~ a { transition: none; }
.nav-js .mainnav a[aria-current="page"], .nav-js .mainnav a[aria-current="true"] { background: transparent; box-shadow: none; color: var(--on-moss-2); }
/* Text unter dem Glas immer dunkel, auch im Kopf mit Bild (dort gilt sonst die helle Farbe mit höherer Spezifität) */
.nav-js .mainnav a.unter-glas, .nav-js .masthead.has-media .mainnav a.unter-glas { color: var(--moss-deep); }
@media (hover: hover) and (pointer: fine) { .nav-js .mainnav a:not([aria-current]):hover { background: transparent; } .nav-js .mainnav a:not(.unter-glas):hover { color: var(--on-moss); } }
@media (prefers-reduced-motion: reduce) { .nav-js .mainnav .nav-glas { transition: opacity 120ms ease; } }
@media (prefers-reduced-transparency: reduce) { .nav-js .mainnav .nav-glas { background: var(--pill); -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* Seitenwechsel: nur das Glas wandert, der Rest wechselt ohne Überblenden */
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-duration: 0s; }
::view-transition-group(nav-glas) { animation-duration: 420ms; animation-timing-function: cubic-bezier(.3, 1.25, .5, 1); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Suchvorschläge wachsen aus dem Feld ---------- */
@media (prefers-reduced-motion: no-preference) {
  .such-vorschlag.auf { animation: sv-auf 240ms cubic-bezier(.23, 1, .32, 1) both; transform-origin: 50% 0; }
  .such-vorschlag.auf li { animation: sv-li 280ms cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--i, 0) * 26ms + 40ms); }
}
@keyframes sv-auf { from { opacity: 0; clip-path: inset(0 0 92% 0 round 12px); transform: translateY(-4px) scale(.985); } to { opacity: 1; clip-path: inset(0 0 0 0 round 12px); transform: none; } }
@keyframes sv-li { from { opacity: 0; transform: translateY(-4px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Puls ---------- */
/* Puls: eine mittige, breite Spalte mit viel Luft. Kopf und Feed stehen auf derselben Achse. */
.puls, .puls-seitenkopf { max-width: calc(820px + 2 * var(--gutter)); }
.puls { display: block; padding-block: 48px 104px; }
.puls-schreiben { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.puls-felder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.puls-felder textarea { font: inherit; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 84px; resize: vertical; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--field-border); background: var(--ground); color: var(--ink); line-height: 1.5; }
.puls-felder textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.puls-leiste { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
/* Thema: Eingabe mit Vorschlägen, eigene Zeile über Fotos und Absenden */
.puls-thema-wahl { position: relative; display: grid; gap: 6px; min-width: 0; }
.puls-thema-wahl > label { font-family: var(--f-sign); font-weight: 600; }
.thema-feld { font: inherit; width: 100%; min-width: 0; height: 46px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--field-border); background: var(--ground); color: var(--ink); }
.thema-feld::placeholder { color: var(--ink-2); opacity: .85; }
.puls-thema-wahl.gewaehlt .thema-feld { font-family: var(--f-sign); font-weight: 600; color: var(--moss); background: rgb(200 216 106 / .18); border-color: rgb(200 216 106 / .9); }
:root[data-tone="dunkel"] .puls-thema-wahl.gewaehlt .thema-feld { color: var(--lichen); }
.puls-thema-wahl .such-vorschlag { top: 78px; margin-top: 4px; }
.thema-tipp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 0; font-size: .875rem; color: var(--ink-2); }
.thema-tipp .puls-thema { border: 0; cursor: pointer; font-size: .875rem; }
.thema-tipp .puls-thema:active { transform: scale(.97); }
.thema-fehler { margin: 0; font-size: .875rem; color: #8f2f1f; }
:root[data-tone="dunkel"] .thema-fehler { color: #f0a58f; }
.puls-thema-wahl select { font: inherit; font-family: var(--f-read); font-weight: 400; min-width: 0; flex: 1; height: 46px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--field-border); background: var(--ground); color: var(--ink); }
.puls-senden { margin-left: auto; }
.puls-gast { margin-top: 0; }
.puls-ugc { margin: 22px 0 6px; }
@media (max-width: 560px) { .puls-schreiben { grid-template-columns: minmax(0, 1fr); padding: 14px; } .puls-schreiben > .avatar { display: none; } .puls-senden { width: 100%; } }

/* Außerhalb des Textflusses, damit das Erscheinen nichts verschiebt (kein Layout Shift) */
.puls-neu { position: fixed; top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); left: 50%; z-index: 30; display: block; margin: 0; font-family: var(--f-sign); font-weight: 600; font-size: 1rem; border: 0; border-radius: 999px; padding: 9px 18px; background: var(--lichen); color: #16201a; box-shadow: 0 10px 26px -10px rgb(0 0 0 / .55), 0 0 0 1px rgb(0 0 0 / .08); cursor: pointer; transform: translateX(-50%); opacity: 1; transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out); }
@starting-style { .puls-neu { opacity: 0; transform: translateX(-50%) translateY(12px); } }
/* Am Handy über der App Leiste, gut mit dem Daumen erreichbar */
@media (max-width: 767px) { .puls-neu { bottom: calc(env(safe-area-inset-bottom, 0px) + 78px); } }
.puls-neu:active { transform: translateX(-50%) scale(.97); }
.puls-neu[hidden] { display: none; }

.puls-liste { display: grid; }
.puls-post { padding: 28px 0 22px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.puls-post:focus { outline: none; }
.puls-thema { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 11px 4px 8px; border-radius: 999px; background: rgb(200 216 106 / .3); color: var(--moss); font-family: var(--f-sign); font-weight: 600; font-size: .9375rem; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.puls-thema svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.puls-thema:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .puls-thema:hover { background: rgb(200 216 106 / .5); } }
:root[data-tone="dunkel"] .puls-thema { background: rgb(200 216 106 / .16); color: var(--lichen); }
@media (prefers-color-scheme: dark) { :root:not([data-tone]):not([data-theme="light"]) .puls-thema { background: rgb(200 216 106 / .16); color: var(--lichen); } }
.puls-kopf { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.puls-kopf > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.puls-kopf b, .puls-kopf-klein b { font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; }
.puls-zeit { font-size: .875rem; color: var(--ink-2); }
.puls-post > .post-body { margin-top: 10px; overflow-wrap: anywhere; }
.puls-post .post-body p + p { margin-top: 10px; }
.puls-antw { list-style: none; margin: 12px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.puls-antw > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.puls-antw .avatar { width: 32px; height: 32px; font-size: .875rem; }
.puls-kopf-klein { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.puls-antw .post-body { margin-top: 2px; overflow-wrap: anywhere; }
.puls-antw .post-actions { margin-top: 4px; }
.puls-alle { display: inline-block; margin-top: 10px; font-family: var(--f-sign); font-weight: 600; }
.puls-antwort-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
.puls-antwort-form textarea { font: inherit; box-sizing: border-box; width: 100%; max-width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--field-border); background: var(--surface); color: var(--ink); }
.puls-antwort-knoepfe { display: flex; gap: 10px; align-items: center; }
.puls-blaettern { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-top: 40px; }
.puls-leer { padding: 32px 0; }
.puls-leer h2 { font-size: var(--step-2); }
.puls-leer p { margin-top: 8px; color: var(--ink-2); max-width: 52ch; }
@media (prefers-reduced-motion: no-preference) {
  .puls-rein { animation: puls-rein 520ms cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
}
@keyframes puls-rein { from { opacity: 0; transform: translateY(-10px) scale(.99); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* Startseite: Vorschau auf den Puls */
.puls-vorschau ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 14px; }
.puls-vorschau p { margin: 6px 0 2px; color: var(--ink); max-width: none; }
.puls-vorschau a:not(.puls-thema) { font-family: var(--f-sign); font-weight: 600; }

/* ---------- Gefällt mir ---------- */
.like { font: inherit; font-size: .9375rem; display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--ink-2); padding: 6px 10px; margin-left: -10px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out); }
.like:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .like:hover { background: rgb(200 216 106 / .2); color: var(--ink); } }
.like + .act { margin-left: 0; }
.lk-icon { position: relative; width: 20px; height: 20px; display: inline-grid; }
.lk-icon svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: currentColor; transition: opacity 120ms ease, transform 220ms var(--ease-out); }
.lk-an { opacity: 0; transform: scale(.6); color: var(--focus); }
.like[aria-pressed="true"] { color: var(--link); }
.like[aria-pressed="true"] .lk-an { opacity: 1; transform: none; }
.like[aria-pressed="true"] .lk-aus { opacity: 0; }
.like-zahl { display: inline-block; min-width: 1ch; font-variant-numeric: tabular-nums; }
.like-text { font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .like.pop .lk-an { animation: lk-pop 460ms cubic-bezier(.3, 1.6, .5, 1); }
}
@keyframes lk-pop { 0% { transform: scale(.5) rotate(-25deg); } 55% { transform: scale(1.32) rotate(8deg); } 100% { transform: none; } }
.lk-funke { position: absolute; left: 50%; top: 50%; width: 6px; height: 9px; margin: -4px 0 0 -3px; border-radius: 6px 0 6px 0; background: var(--lichen); pointer-events: none; animation: lk-funke 560ms cubic-bezier(.2, .9, .3, 1) forwards; }
@keyframes lk-funke { from { opacity: 1; transform: translate(0, 0) rotate(var(--r)) scale(1); } to { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.4); } }

/* ---------- Fotos und Videos in Beiträgen ---------- */
.bilder-feld { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bilder-waehlen { position: relative; overflow: hidden; margin-left: 0; display: inline-flex; align-items: center; gap: 6px; box-shadow: inset 0 0 0 1.5px var(--field-border); border-radius: 999px; padding: 8px 14px; }
.bilder-waehlen input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bilder-waehlen:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.bilder-waehlen svg { width: 18px; height: 18px; fill: currentColor; }
.bilder-vorschau { display: flex; gap: 6px; flex-wrap: wrap; }
.bilder-vorschau img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.bilder-hint { font-size: .8125rem; }
.post-bilder { display: grid; gap: 4px; margin-top: 12px; border-radius: 12px; overflow: hidden; max-width: 560px; }
.post-bilder.n2, .post-bilder.n4 { grid-template-columns: 1fr 1fr; }
.post-bilder.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-bilder.n3 .post-bild:first-child { grid-row: span 2; }
.post-bild { display: block; background: var(--moss-soft); -webkit-touch-callout: none; }
.post-bild img { display: block; width: 100%; height: 100%; max-height: 420px; object-fit: cover; aspect-ratio: auto; }
.post-bilder:not(.n1) .post-bild img { aspect-ratio: 1 / 1; }
.bild-gross { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 92vh; }
.bild-gross::backdrop { background: rgb(10 14 9 / .86); }
.bild-gross img { display: block; max-width: 100%; max-height: 92vh; border-radius: 10px; }
.bild-zu { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgb(20 28 17 / .72); color: #fff; cursor: pointer; }
.bild-zu svg { width: 20px; height: 20px; fill: currentColor; }
.yt { margin-top: 12px; max-width: 560px; border-radius: 12px; background: var(--moss-deep); color: var(--on-moss); padding: 18px; display: grid; gap: 10px; }
.yt-start { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; border: 0; border-radius: 999px; padding: 10px 18px 10px 12px; background: var(--lichen); color: #16201a; cursor: pointer; transition: transform 160ms var(--ease-out); }
.yt-start:active { transform: scale(.97); }
.yt-start svg { width: 22px; height: 22px; fill: currentColor; }
.yt-hinweis { font-size: .8125rem; color: var(--on-moss-2); line-height: 1.5; }
.yt-hinweis a { color: var(--on-moss); }
.yt.laeuft { padding: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.yt iframe { width: 100%; height: 100%; border: 0; display: block; }

.puls-felder .feed-hint, .puls-felder .consent { font-size: .875rem; line-height: 1.5; color: var(--ink-2); margin: 0; }
.puls-felder .consent label { display: flex; gap: 8px; align-items: flex-start; }

/* ---------- Web App: App Leiste, Suchblatt, Installieren ---------- */
html { overflow-x: clip; }
/* Kein seitliches Ziehen und Nachfedern der ganzen Seite am Handy. Waagrechte Leisten (Menü, Sprungleiste) scrollen weiter, Zoomen bleibt erlaubt. */
html, body { overscroll-behavior-x: none; }
@media (display-mode: standalone) { html, body { overscroll-behavior-y: none; } }
.app-leiste, .such-blatt { display: none; }
.kopf-app { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid rgb(238 242 230 / .35); background: transparent; color: var(--on-moss); font-family: var(--f-sign); font-weight: 600; font-size: 1rem; cursor: pointer; transition: transform 160ms var(--ease-out); }
.kopf-app:active { transform: scale(.97); }
.kopf-app[hidden] { display: none; }
.kopf-app svg { width: 18px; height: 18px; fill: var(--lichen); }
.app-hinweis { position: fixed; left: 12px; right: 12px; bottom: calc(var(--app-leiste, 0px) + 12px); z-index: 70; display: grid; gap: 12px; padding: 18px; border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 40px -12px rgb(0 0 0 / .5); max-width: 460px; margin-inline: auto; }
.app-hinweis strong { display: block; font-family: var(--f-sign); font-size: 1.125rem; margin-bottom: 4px; }
.app-hinweis-zu { justify-self: end; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--btn-bg); color: var(--btn-fg); font-family: var(--f-sign); font-weight: 600; font-size: 1rem; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) { .app-hinweis { animation: blatt-hoch 260ms cubic-bezier(.32, .72, 0, 1); } }
@keyframes blatt-hoch { from { transform: translateY(24px); opacity: 0; } }

@media (max-width: 767px) {
  :root { --app-leiste: calc(64px + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--app-leiste); }
  .topbar .login { display: none; }
  .app-leiste { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding-bottom: env(safe-area-inset-bottom); background: rgb(28 39 23 / .98); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 -1px 0 rgb(238 242 230 / .1); transition: transform 220ms cubic-bezier(.32, .72, 0, 1); }
  .tastatur-offen .app-leiste, .rf-voll-an .app-leiste, .blatt-offen .app-leiste { transform: translateY(110%); }
  .app-leiste ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
  .app-reiter { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 64px; border: 0; background: transparent; color: var(--on-moss-2); text-decoration: none; font-family: var(--f-sign); font-weight: 600; font-size: .8125rem; letter-spacing: .01em; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; }
  .app-symbol { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background-color 200ms ease, transform 140ms var(--ease-out); }
  .app-symbol svg { grid-area: 1 / 1; width: 24px; height: 24px; fill: currentColor; }
  .app-symbol .ic-an { opacity: 0; }
  .app-reiter:active .app-symbol { transform: scale(.9); }
  .app-reiter[aria-current="page"] { color: var(--on-moss); }
  .app-reiter[aria-current="page"] .app-symbol { background: rgb(200 216 106 / .2); color: var(--lichen); }
  .app-reiter[aria-current="page"] .ic-an { opacity: 1; }
  .app-reiter[aria-current="page"] .ic-aus { opacity: 0; }
  .app-schreiben .app-symbol { background: var(--lichen); color: #16201a; }
  .app-text { white-space: nowrap; }
  .app-reiter:focus-visible { outline: 2px solid var(--lichen); outline-offset: -4px; border-radius: 12px; }
  .nach-oben { bottom: calc(var(--app-leiste) + 14px) !important; }
  .rf-voll-an body { padding-bottom: 0; }
  .such-blatt:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 80; background: rgb(10 14 9 / .55); }
  .such-blatt-kopf { display: flex; gap: 10px; align-items: flex-start; padding: calc(env(safe-area-inset-top) + 14px) 14px 18px; background: var(--moss-deep); max-height: 100dvh; overflow-y: auto; }
  @media (prefers-reduced-motion: no-preference) { .such-blatt:not([hidden]) .such-blatt-kopf { animation: blatt-runter 260ms cubic-bezier(.32, .72, 0, 1); } .such-blatt:not([hidden]) { animation: grund-ein 200ms ease-out; } }
  .blatt-suche { flex: 1; margin-top: 0; }
  .blatt-suche .such-vorschlag { position: static; margin-top: 10px; max-height: none; box-shadow: inset 0 0 0 1px var(--line); }
  .such-blatt-zu { flex: none; width: 48px; height: 52px; border: 0; border-radius: 12px; background: rgb(255 255 255 / .08); color: var(--on-moss); display: grid; place-items: center; cursor: pointer; }
  .such-blatt-zu svg { width: 22px; height: 22px; fill: currentColor; grid-area: 1 / 1; }
  .such-blatt-zu .ic-an { display: none; }
  html.blatt-offen, html.blatt-offen body { overflow: hidden; }
}
@keyframes blatt-runter { from { transform: translateY(-100%); } }
@keyframes grund-ein { from { opacity: 0; } }
@media (max-width: 767px) { .blatt-suche { flex-wrap: wrap; } .blatt-suche .such-vorschlag { flex: 1 0 100%; order: 3; margin: 0 6px 6px; } }
.pf-passkeys { margin-top: 32px; }
.pk-liste { list-style: none; margin: 12px 0; padding: 0; display: grid; }
.pk-liste li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pk-liste li > span { display: grid; }
.pk-meldung:empty { display: none; }

/* Hinweise zum Schreiben: eingeklappt, damit das Formular ruhig bleibt */
.schreib-hinweise { font-size: .875rem; color: var(--ink-2); }
.schreib-hinweise > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; list-style: none; font-family: var(--f-sign); font-weight: 600; color: var(--ink-2); border-radius: 6px; }
.schreib-hinweise > summary::-webkit-details-marker { display: none; }
.schreib-hinweise > summary::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 200ms var(--ease-out); }
.schreib-hinweise[open] > summary::after { transform: translateY(3px) rotate(-135deg); }
.schreib-hinweise > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.schreib-hinweise .feed-hint { margin: 6px 0 0; }
/* Fließtext bleibt angenehm lesbar, Fakten und Tabellen nutzen die ganze Achse */
/* 0.16.25 frühere Begrenzung der Absätze auf 40rem entfernt, der Text nutzt die volle Breite */

/* Schmale Handys: Hauptmenü passt ohne abgeschnittenen Punkt */
@media (max-width: 380px) { .mainnav a { padding-inline: 5px; font-size: .9375rem; } }
/* Löschen im Suchfeld im eigenen Stil statt des Browser Symbols */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; cursor: pointer; background: currentColor; opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Aktionsleiste unter Beiträgen: alle Punkte gleich gesetzt, gleiche Höhe und Grundlinie.
   Die Leiste rückt um das Innenpolster nach links, so beginnt der Text bündig mit dem Beitrag,
   und die Hover Fläche ragt auf beiden Seiten gleich weit hinaus. */
.post-actions { align-items: center; gap: 2px; margin-left: -10px; }
.post-actions > .like, .post-actions > .act, .post-actions > .comment-reply-link, .post-actions > .comment-reply-login, .post-actions > .melden {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin: 0; padding: 6px 10px; border: 0; border-radius: 999px; background: transparent;
  font-family: var(--f-sign); font-weight: 600; font-size: .9375rem; line-height: 1.2; color: var(--ink-2); text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out); }
.post-actions > .like .like-text { font-weight: 600; }
.post-actions > .like[aria-pressed="true"] { color: var(--link); }
.post-actions > :is(.like, .act, .comment-reply-link, .comment-reply-login, .melden):active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .post-actions > :is(.like, .act, .comment-reply-link, .comment-reply-login, .melden):hover { background: rgb(200 216 106 / .2); color: var(--ink); text-decoration: none; }
}
.post-actions > :is(.like, .act, .comment-reply-link, .comment-reply-login, .melden):focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ================= Puls im Aufbau wie X: Menü links, Feed in der Mitte, Schreiben im Fenster ================= */
.px { padding-bottom: 96px; }
.px-seite { display: none; }
.px-feed { max-width: 680px; margin-inline: auto; padding-inline: 0; }
.px-kopf { position: sticky; top: 0; z-index: 20; padding: 14px var(--gutter) 12px; background: color-mix(in srgb, var(--ground) 88%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.px-kopf h1 { font-size: 1.5rem; line-height: 1.15; }
.px-kopf p { margin: 2px 0 0; font-size: .875rem; color: var(--ink-2); }
.px-feed > .dm-flash, .px-feed > .dm-flash.fehler { margin: 16px var(--gutter) 0; }
.px-feed .puls-ugc { margin: 0; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); font-size: .8125rem; }
.px-feed .puls-post { padding: 20px var(--gutter) 16px; scroll-margin-top: 80px; }
.px-feed .puls-blaettern { padding-inline: var(--gutter); }
.px-feed .puls-leer { padding: 32px var(--gutter); }

/* Anstoß über dem Feed: sieht aus wie ein Eingabefeld, öffnet aber das Fenster */
.px-anstoss { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px var(--gutter); border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; transition: background-color 150ms ease; }
.px-anstoss .avatar { flex: none; }
.px-anstoss .avatar svg { width: 22px; height: 22px; fill: var(--moss); }
.px-anstoss-text { flex: 1; min-width: 0; font-size: 1.125rem; }
.px-anstoss-knopf { flex: none; padding: 8px 18px; border-radius: 999px; background: var(--lichen); color: #16201a; font-family: var(--f-sign); font-weight: 700; font-size: 1rem; transition: transform 160ms var(--ease-out); }
.px-anstoss:active .px-anstoss-knopf { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .px-anstoss:hover { background: rgb(200 216 106 / .08); } }

/* Großer Bildschirm: Menü links, eigene Leiste statt Kopfzeile */
@media (min-width: 1100px) {
  body.puls-x .masthead { display: none; }
  .px { display: grid; grid-template-columns: 260px minmax(0, 640px); justify-content: center; gap: 32px; padding-bottom: 0; }
  .px-feed { max-width: none; margin: 0; min-height: 100dvh; border-inline: 1px solid var(--line); padding-bottom: 96px; }
  .px-seite { display: block; }
  .px-seite-innen { position: sticky; top: 0; display: flex; flex-direction: column; gap: 6px; min-height: 100dvh; padding: 18px 0 20px; }
  .px-marke { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 14px; margin-bottom: 8px; border-radius: 999px; color: var(--moss); text-decoration: none; font-family: var(--f-sign); font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; }
  .px-marke svg { width: 30px; height: 30px; fill: currentColor; }
  .px-menue { display: grid; gap: 2px; }
  .px-menue a { display: inline-flex; align-items: center; gap: 16px; justify-self: start; padding: 11px 20px 11px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-family: var(--f-sign); font-weight: 500; font-size: 1.25rem; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
  .px-menue a svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
  .px-menue a[aria-current="page"] { font-weight: 700; color: var(--moss); }
  .px-menue a:active { transform: scale(.97); }
  .px-posten { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 230px; height: 54px; margin-top: 14px; border: 0; border-radius: 999px; background: var(--lichen); color: #16201a; font-family: var(--f-sign); font-weight: 700; font-size: 1.1875rem; cursor: pointer; box-shadow: 0 10px 24px -14px rgb(28 39 23 / .7); transition: transform 160ms var(--ease-out), box-shadow 160ms ease, background-color 150ms ease; }
  .px-posten svg { width: 22px; height: 22px; fill: currentColor; }
  .px-posten:active { transform: scale(.97); }
  .px-ich { margin-top: auto; display: flex; align-items: center; gap: 12px; width: 240px; padding: 10px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; transition: background-color 150ms ease; }
  .px-ich span { display: grid; min-width: 0; }
  .px-ich b { font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; }
  .px-ich small { color: var(--ink-2); font-size: .8125rem; }
  .px-gast { display: grid; gap: 10px; border-radius: 0; padding: 0 12px; }
  .px-gast a:not(.btn) { font-family: var(--f-sign); font-weight: 600; color: var(--link); }
  .px-fab { display: none; }
  .px-kopf { padding-inline: 20px; }
  .px-feed .puls-post, .px-anstoss, .px-feed .puls-ugc { padding-inline: 20px; }
}
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  .px-menue a:hover, .px-ich:hover { background: rgb(200 216 106 / .18); }
  .px-posten:hover { background: #d4e27c; box-shadow: 0 14px 28px -14px rgb(28 39 23 / .75); }
}
@media (min-width: 1100px) and (max-height: 640px) { .px-seite-innen { position: static; } }

/* Kleiner Bildschirm und Web App: nur der Feed, dazu ein auffälliges Plus mit Minzblatt */
.px-fab { position: fixed; right: 18px; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 45; display: grid; place-items: center; width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--lichen); color: #16201a; cursor: pointer; box-shadow: 0 14px 30px -12px rgb(16 23 13 / .65), 0 0 0 1px rgb(16 23 13 / .08); transition: transform 180ms var(--ease-out); }
.px-fab-plus { width: 28px; height: 28px; fill: currentColor; }
.px-fab-blatt { position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--moss-deep); fill: var(--lichen); box-shadow: 0 0 0 2px var(--ground); transform: rotate(-12deg); }
.px-fab:active { transform: scale(.94); }
@media (max-width: 767px) { .px-fab { bottom: calc(env(safe-area-inset-bottom, 0px) + 64px + 16px); } }
.tastatur-offen .px-fab, .blatt-offen .px-fab, .posten-offen .px-fab { display: none; }
@media (prefers-reduced-motion: no-preference) { .px-fab { animation: px-fab-rein 420ms cubic-bezier(.3, 1.35, .5, 1) 200ms both; } }
@keyframes px-fab-rein { from { opacity: 0; transform: scale(.6) rotate(-20deg); } }
@media (max-width: 1099px) { .puls-neu { bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); } }
@media (max-width: 767px) { .puls-neu { bottom: calc(env(safe-area-inset-bottom, 0px) + 78px); left: 18px; transform: none; } .puls-neu:active { transform: scale(.97); } }
.als-app body.puls-x .masthead .mainnav { display: none; }

/* Schreibfenster */
.px-dialog { width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: 6vh auto auto; padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -24px rgb(10 14 8 / .6), inset 0 0 0 1px var(--line); overflow: auto; overscroll-behavior: contain; }
.px-dialog::backdrop { background: rgb(14 20 11 / .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.px-dialog[open] { animation: px-auf 240ms var(--ease-out); }
.px-dialog[open]::backdrop { animation: px-hinter 240ms ease-out; }
.px-dialog.geht { animation: px-zu 160ms ease-in forwards; }
.px-dialog.geht::backdrop { animation: px-hinter 160ms ease-in reverse forwards; }
@keyframes px-auf { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes px-zu { to { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes px-hinter { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .px-dialog[open], .px-dialog[open]::backdrop, .px-dialog.geht, .px-dialog.geht::backdrop { animation: none; } }
.px-dialog-kopf { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.px-dialog-kopf h2 { font-size: 1.125rem; }
.px-zu { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.px-zu svg { width: 20px; height: 20px; fill: currentColor; }
.px-zu:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .px-zu:hover { background: rgb(200 216 106 / .2); } }
.px-dialog .puls-schreiben { margin: 0; padding: 16px 18px 20px; border-radius: 0; background: transparent; box-shadow: none; }
.px-dialog .puls-schreiben textarea { min-height: 120px; font-size: 1.125rem; }
.px-gast-box { padding: 20px 20px 24px; }
.px-gast-box p { margin: 0 0 16px; }
.posten-offen { overflow: hidden; }
@media (max-width: 767px) {
  .px-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .px-dialog-kopf { padding-top: calc(env(safe-area-inset-top, 0px) + 8px); }
  @keyframes px-auf { from { opacity: 0; transform: translateY(28px); } }
}
.alter-feld { display: grid; gap: 6px; margin: 4px 0; }
.alter-feld label { display: grid; gap: 6px; }
.alter-feld label > span { font-family: var(--f-sign); font-weight: 600; }
.alter-feld input { font: inherit; height: 46px; max-width: 240px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--field-border); background: var(--ground); color: var(--ink); }
/* Themenseiten: Schreibfenster und Anstoß in der Spalte Erfahrungen und Fragen */
.px-dialog-form { padding: 14px 18px 20px; }
.px-dialog .composer-form { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.px-dialog .comment-form-comment textarea { min-height: 140px; font-size: 1.125rem; }
.px-dialog .composer { margin: 0; border: 0; box-shadow: none; background: transparent; padding: 0; }
.gemeinschaft .px-anstoss { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); }
.gemeinschaft .feed-post .comment-respond .composer-form { margin-top: 12px; }
@media (min-width: 1100px) { .px-fab { display: none; } }
/* Am Handy im Puls nur der Feed: geschrieben wird über das Plus oder die App Leiste */
@media (max-width: 767px) { body.puls-x .px-anstoss { display: none; } }

/* Prüfbefunde 0.11.0 */
.px-dialog .puls-thema-wahl .such-vorschlag { position: static; max-height: 240px; margin-top: 4px; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 1099px) { body:has(.px-fab) .nach-oben { right: 92px; } }
@media (max-width: 767px) { .px-dialog { box-shadow: none; } }

/* Mein Profil: gespeicherter Tagesplan */
.pf-tagesplan { margin-bottom: 36px; padding: 18px 20px; border-radius: 12px; background: var(--moss-soft); }
.pf-tagesplan .sec-h { margin-bottom: 8px; }
.pf-tp-angaben { margin: 0 0 6px; font-weight: 700; }
.pf-tp-knoepfe { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 12px; }
.pf-tp-meldung:empty { display: none; }

.entry > * + * { margin-top: 14px; }
.site-search { margin: 0 0 32px; }
.nav-links { margin-top: 32px; display: flex; gap: 12px; font-family: var(--f-sign); font-weight: 600; }
.timeline-head + .composer, .timeline-head + .composer-form, .timeline-head + #respond { margin-top: 14px; }
.composer-form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 0 0 18px; display: grid; gap: 12px; }
.composer-form label { font-weight: 700; display: block; margin-bottom: 6px; }
.composer-form textarea { width: 100%; box-sizing: border-box; font: inherit; color: var(--ink); background: var(--ground); border: 1px solid var(--field-border); border-radius: 10px; padding: 12px; min-height: 110px; }
.composer-form textarea:focus-visible, .composer-form input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.composer-form .feed-hint, .composer-form .consent { font-size: .92rem; color: var(--ink-2); margin: 0; }
.composer-form .consent label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.composer-form .consent input { margin-top: 4px; flex: none; }
.composer-form .form-submit { margin: 0; }
#reply-title { font-size: 1rem; margin: 0; }
.feed .children { list-style: none; margin: 14px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.feed .post-body p { margin: 0; }
.comment-reply-link, .comment-reply-login { font-family: var(--f-sign); font-weight: 600; color: var(--link); }
.composer-actions { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; flex: none; }
/* Am Handy fest untereinander, damit die Zeilen nicht von der geladenen Schrift abhängen (kein Layout Shift) */
@media (max-width: 480px) { .composer-actions { flex-direction: column; align-items: flex-start; gap: 12px; } }
.composer-actions a:not(.btn) { font-weight: 700; color: var(--link); }
.admin-bar .waybar { top: var(--wp-admin--admin-bar--height, 32px); }
.admin-bar .article section { scroll-margin-top: calc(80px + var(--wp-admin--admin-bar--height, 32px)); }
.admin-bar .rail { top: calc(84px + var(--wp-admin--admin-bar--height, 32px)); }
@media (max-width: 600px) { .admin-bar .waybar { top: 0; } .admin-bar .article section { scroll-margin-top: 80px; } .admin-bar .rail { top: 84px; } }

/* ---------- 0.13.0 Gespräche: Auswahl Frage oder Erfahrung, Gesprächsseite ---------- */
.dm-art-wahl { border: 0; margin: 0 0 10px; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dm-art-wahl legend { float: left; margin-right: 4px; padding: 0; font: 600 .9375rem/1.2 var(--f-sign); letter-spacing: .01em; color: var(--ink-2); }
.dm-art-wahl label { position: relative; display: inline-flex; }
.dm-art-wahl input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.dm-art-wahl span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: .9375rem; box-shadow: inset 0 0 0 1.5px var(--field-border); color: var(--ink); transition: background-color 150ms ease, color 150ms ease; }
.dm-art-wahl input:checked + span { background: var(--moss); color: var(--on-moss); box-shadow: none; }
.dm-art-wahl input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .dm-art-wahl label:hover input:not(:checked) + span { background: var(--moss-soft); } }
/* Antwortet jemand unter einem Beitrag, wandert das Formular in den Feed: dort gibt es keine Auswahl. */
.feed #respond .dm-art-wahl { display: none; }
.gespraech-pfad { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 12px var(--gutter) 0; font-size: .875rem; color: var(--ink-2); }
.gespraech-pfad a { color: var(--link); }
.gespraech .px-kopf p a { color: var(--link); }
.gespraech-weitere { padding: 22px var(--gutter) 40px; border-top: 1px solid var(--line); }
.gespraech-weitere h2 { font-size: 1.25rem; line-height: 1.2; margin: 0 0 14px; }
.gespraech-weitere ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 16px; }
.gespraech-weitere li > a { font-family: var(--f-sign); font-weight: 600; color: var(--link); }
.gespraech-weitere li p { margin: 4px 0 2px; color: var(--ink); max-width: 70ch; overflow-wrap: anywhere; }
.gespraech-dach { margin: 0 0 4px; font: 600 .875rem/1.2 var(--f-sign); letter-spacing: .02em; color: var(--ink-2); }
.gespraech .px-kopf h1 { overflow-wrap: anywhere; }

/* Regiofinder: Links unter der Karte */
.rf-mehr { padding-block: 40px 56px; }
.rf-mehr > h2 { margin-bottom: 4px; }
.rf-mehr .kr-feld h3 { font-size: var(--step-1); }
.rf-kreise { list-style: none; margin: 10px 0 0; padding: 0; columns: 15rem; column-gap: 32px; }
.rf-kreise li { break-inside: avoid; padding: 5px 0; }
.rf-pfad { font-size: .9375rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
.rf-pfad span[aria-hidden] { opacity: .6; }

/* ---------- Regiofinder im Stil von Google Maps (0.16.0): volle Breite, Liste links, Profil daneben über der Karte ---------- */
.rf-km-hinweis { margin: -4px 0 10px; font-size: .875rem; color: var(--ink-2); }
.rf-app { --rf-lw: 420px; --rf-h: max(560px, calc(100svh - 24px)); position: relative; grid-template-columns: var(--rf-lw) minmax(0, 1fr); gap: 0; margin: 0; max-width: none; width: 100%; border-top: 1px solid var(--line); }
@media (max-width: 1200px) { .rf-app { --rf-lw: 370px; } }
.rf-app .suchbox { border-radius: 0; box-shadow: none; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 16px; }
.rf-app .results { border-radius: 0; box-shadow: none; background: var(--surface); border-right: 1px solid var(--line); }
.rf-app .mapbox { border-radius: 0; box-shadow: none; border: 0; margin: 0; }
.rf-status { padding: 12px 16px 8px; }
.rf-liste { padding: 0; }
.rf-liste .rf-leer, .rf-liste .kreiswahl { margin-inline: 16px; }
.rf-liste .rf-quelle { margin: 16px; }
/* Listeneintrag: Text links, runde Knöpfe rechts, alles markierbar */
.rf-liste, .rf-profil { -webkit-user-select: text; user-select: text; }
.rf-liste .hit { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 2px 12px; align-items: start; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color 150ms ease; }
.rf-liste .hit.sel, .rf-liste .hit.offen { background: var(--moss-soft); box-shadow: inset 4px 0 0 var(--moss); }
@media (hover: hover) and (pointer: fine) { .rf-liste .hit:hover { background: var(--moss-soft); } }
.rf-liste .hit-shape svg.mk { width: 26px; height: 26px; }
.hit-main { gap: 2px; }
.hit-name { font-family: var(--f-sign); font-weight: 600; font-size: 1.125rem; line-height: 1.25; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; justify-self: start; border-radius: 3px; }
@media (hover: hover) and (pointer: fine) { .hit-name:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; } }
.hit-name:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hit-fach { font-size: .9375rem; }
.hit-meta, .hit-zeit { font-size: .875rem; color: var(--ink-2); overflow-wrap: anywhere; }
.hit-zeit { margin-top: 0; }
.hit-knoepfe { display: flex; gap: 6px; align-self: center; }
/* Runde Knöpfe mit Beschriftung wie bei Google Maps */
.rund { display: grid; justify-items: center; align-content: start; gap: 5px; min-width: 56px; padding: 2px 0; text-decoration: none; color: var(--link); font: inherit; font-size: .75rem; font-weight: 600; line-height: 1.2; text-align: center; background: none; border: 0; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.rund-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--field-border); transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.rund svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rund.voll .rund-ic { background: var(--btn-bg); color: var(--btn-fg); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .rund:hover .rund-ic { background: var(--moss-soft); } .rund.voll:hover .rund-ic { background: var(--btn-bg); filter: brightness(1.12); } }
.rund:active .rund-ic { transform: scale(.94); }
.rund:focus-visible { outline: none; }
.rund:focus-visible .rund-ic { outline: 3px solid var(--focus); outline-offset: 2px; }
.rund.kopiert .rund-ic { background: var(--cal-win); color: var(--cal-win-ink); box-shadow: none; }
/* Profil: am Bildschirm rechts neben der Liste über der Karte */
.rf-profil { position: absolute; z-index: 5; top: 0; bottom: 0; left: var(--rf-lw); width: min(408px, calc(100% - var(--rf-lw) - 96px)); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); color: var(--ink); box-shadow: 1px 0 0 var(--line), 12px 0 32px -16px rgb(0 0 0 / .35); scrollbar-width: thin; }
.rf-profil[hidden], .rf-profil-schatten[hidden] { display: none; }
.rf-profil:focus { outline: none; }
.rf-profil:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.rf-profil-schatten { display: none; }
@media (prefers-reduced-motion: no-preference) { .rf-profil:not([hidden]) { animation: rfp-rein 200ms var(--ease-out); } }
@keyframes rfp-rein { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.rfp-leiste { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 8px 8px 0; background: linear-gradient(var(--surface) 70%, transparent); }
.rfp-zu { all: unset; box-sizing: border-box; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); -webkit-user-select: none; user-select: none; }
.rfp-zu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .rfp-zu:hover { background: var(--moss-soft); } }
.rfp-zu:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.rfp-kopf { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; padding: 0 20px 14px; }
.rfp-zeichen { grid-row: span 2; padding-top: 4px; }
.rfp-zeichen svg.mk { width: 36px; height: 36px; }
.rfp-name { margin: 0; font-size: 1.625rem; line-height: 1.2; overflow-wrap: anywhere; }
.rfp-art { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.rfp-aktionen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 4px; padding: 6px 16px 18px; border-bottom: 1px solid var(--line); }
.rfp-aktionen .rund { min-width: 60px; font-size: .8125rem; }
.rfp-aktionen .rund-ic { width: 46px; height: 46px; }
.rfp-aktionen .rund svg { width: 21px; height: 21px; }
.rfp-infos { list-style: none; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rfp-zeile { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 18px; align-items: start; padding: 11px 20px; }
.rfp-i { color: var(--link); padding-top: 1px; }
.rfp-i svg { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rfp-t { min-width: 0; font-size: .9375rem; line-height: 1.5; }
.rfp-wert { overflow-wrap: anywhere; }
a.rfp-wert { color: var(--link); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { a.rfp-wert:hover { text-decoration: underline; text-underline-offset: 3px; } }
.rfp-zeiten summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; cursor: pointer; list-style: none; border-radius: 4px; }
.rfp-zeiten summary::-webkit-details-marker { display: none; }
.rfp-zeiten summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rfp-zeiten .ja { color: var(--link); }
.rfp-zeiten .nein { color: var(--ink); }
.rfp-auf { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.rfp-zeiten[open] .rfp-auf { transform: rotate(180deg); }
.rfp-zeiten table { margin-top: 8px; border-collapse: collapse; font-size: .9375rem; }
.rfp-zeiten th { text-align: left; font-weight: 400; padding: 3px 24px 3px 0; white-space: nowrap; vertical-align: top; }
.rfp-zeiten td { padding: 3px 0; vertical-align: top; }
.rfp-zeiten tr.heute th, .rfp-zeiten tr.heute td { font-weight: 700; }
.rfp-unten { padding: 14px 20px 6px; }
.rfp-knopf { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; text-decoration: none; color: var(--link); font-weight: 600; font-size: .9375rem; box-shadow: inset 0 0 0 1.5px var(--field-border); -webkit-user-select: none; user-select: none; }
.rfp-knopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .rfp-knopf:hover { background: var(--moss-soft); } }
.rfp-knopf:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rfp-fuss { margin: 6px 20px 22px; font-size: .8125rem; color: var(--ink-2); }
.rfp-laden { padding: 4px 20px 24px; color: var(--ink-2); }
/* Kartenknöpfe mit Text, Zoom darunter */
.map-ctl.map-ctl-oben { display: flex; width: max-content; left: auto; gap: 8px; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.map-ctl.map-ctl-oben button { flex: none; width: max-content; height: 40px; padding: 0 16px 0 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border-top: 0; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); font-family: var(--f-read); font-size: .875rem; font-weight: 600; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .map-ctl.map-ctl-oben button:hover { background: var(--moss-soft); } }
.map-ctl.map-ctl-oben button:focus-visible { outline-offset: 2px; }
.map-ctl.map-ctl-zoom { top: 64px; }
/* Größere Kennzeichen und Namen bei starkem Zoom */
.pin-name { display: none; pointer-events: none; }
#demap.namen:not(.namen-ok) .pin-name { visibility: hidden; }
#demap.namen-mess .pin-name { visibility: hidden; }
#demap.namen .pin-name { display: inline; font-family: var(--f-read); font-size: 10.5px; font-weight: 700; fill: var(--ink); stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; paint-order: stroke; }
#demap.namen .pin.off .pin-name, #demap.namen .pin.nn .pin-name { display: none; }
.rf-app .mapbox figcaption { gap: 6px 18px; padding: 10px 16px; }
.lg-i { font-size: .875rem; gap: 8px; }
.lg-i svg.mk { width: 24px; height: 24px; }
/* Vollbild am Bildschirm: gleiche Aufteilung ohne Rand */
.rf-app.rf-voll { padding: 0; gap: 0; grid-template-columns: var(--rf-lw) minmax(0, 1fr); }
/* Handy und Tablet: Suche, Karte, Liste untereinander, Profil als Blatt von unten */
@media (max-width: 900px) {
  .rf-app { --rf-lw: 0px; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
  .rf-app .suchbox, .rf-app .results { border-right: 0; }
  .rf-app.rf-voll { padding: 0; gap: 0; grid-template-columns: minmax(0, 1fr); }
  .rf-liste .hit { padding: 12px; gap: 2px 10px; grid-template-columns: 24px minmax(0, 1fr) auto; }
  .rf-liste .hit-shape svg.mk { width: 24px; height: 24px; }
  .hit-name { font-size: 1.0625rem; }
  .hit-knoepfe { gap: 2px; }
  .rund { min-width: 50px; }
  .rf-profil { position: fixed; z-index: 1100; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: min(84dvh, 760px); border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 40px -10px rgb(0 0 0 / .45); }
  .rf-profil-schatten { display: block; position: fixed; inset: 0; z-index: 1099; background: rgb(0 0 0 / .38); }
  .rfp-leiste { justify-content: space-between; align-items: center; padding: 8px 8px 0 20px; border-radius: 18px 18px 0 0; }
  .rfp-leiste::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: var(--line); position: absolute; left: 50%; top: 8px; transform: translateX(-50%); }
  .rfp-name { font-size: 1.375rem; }
  .rfp-aktionen { padding-inline: 12px; }
  .map-ctl.map-ctl-oben button { height: 36px; padding: 0 12px 0 10px; font-size: .8125rem; }
  .map-ctl.map-ctl-zoom { top: 56px; }
  @keyframes rfp-rein { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
html.rfp-blatt, html.rfp-blatt body { overflow: hidden; }
/* Übereinanderliegende Marker fächern sich auf */
#layer-spinne line { stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; opacity: .55; }
#layer-spinne circle { fill: var(--ink); opacity: .7; }
#demap.spinne-an .pin:not(.gespreizt) { opacity: .3; }
#demap.spinne-an .pin:not(.gespreizt) .pin-name { display: none; }
#demap.spinne-an .pin.gespreizt .mk-gl { display: inline; }
#demap.spinne-an .pin.gespreizt .pin-name { display: none; }
#demap.spinne-an .pin.gespreizt.hov .pin-name, #demap.spinne-namen .pin.gespreizt .pin-name, #demap.spinne-namen.namen .pin.gespreizt.nn .pin-name, #demap.spinne-an.namen .pin.gespreizt.hov.nn .pin-name { display: inline; visibility: visible; font-family: var(--f-read); font-size: 10.5px; font-weight: 700; fill: var(--ink); stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; paint-order: stroke; }
/* Kartenknöpfe: Symbole fest 20 Pixel, sonst rechnet WebKit mit der Breite der Karte */
.rf-app .map-ctl svg { flex: none; width: 20px; height: 20px; max-height: none; aspect-ratio: auto; }
/* Suche: Fachrichtung als Auswahlfeld, weitere Filter eingeklappt (0.16.0) */
.suchbox .fb-field input::placeholder { color: var(--ink-2); opacity: .8; }
.such-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.fach-feld { position: relative; min-width: 0; }
.fach-feld select { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; font: inherit; font-size: .9375rem; padding: 0 38px 0 14px; border-radius: var(--radius); border: 1.5px solid var(--field-border); background: var(--ground); color: var(--ink); cursor: pointer; text-overflow: clip; }
.fach-feld::after { content: ""; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
.fach-feld select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.filter-knopf { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: var(--radius); border: 1.5px solid var(--field-border); background: var(--ground); color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.filter-knopf svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.filter-knopf[aria-expanded="true"] { background: var(--moss-soft); }
@media (hover: hover) and (pointer: fine) { .filter-knopf:hover { background: var(--moss-soft); } }
.filter-knopf:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.filter-zahl { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--moss); color: var(--on-moss); font-size: .75rem; line-height: 1; }
.filter-zahl[hidden], .filterleiste[hidden] { display: none; }
.rf-app .filterleiste { padding-top: 2px; }
.rf-textsuche { margin: 2px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .875rem; color: var(--ink-2); }
.rf-textsuche[hidden] { display: none; }
.rf-textsuche b { color: var(--ink); }
.rf-textsuche button { font: inherit; font-size: .8125rem; padding: 3px 10px; border-radius: 999px; border: 0; background: none; color: var(--link); box-shadow: inset 0 0 0 1.5px var(--field-border); cursor: pointer; }
.ov-meinst { font-family: var(--f-read); font-weight: 400; color: var(--ink-2); }

/* ---------- Hauptmenü: Puls als eigenes soziales Netzwerk (0.15.0) ---------- */
.mainnav a.nav-puls { display: inline-flex; align-items: center; gap: 7px; color: var(--lichen); font-weight: 600; }
.nav-puls svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-puls-tag { font-family: var(--f-read); font-size: .6875rem; font-weight: 600; letter-spacing: .02em; line-height: 1; padding: 4px 7px; border-radius: 999px; background: rgb(200 216 106 / .16); color: var(--lichen); }
.nav-trenn { flex: none; align-self: stretch; width: 1px; margin: 7px 4px; background: rgb(238 242 230 / .16); }
html:not(.nav-js) .mainnav a.nav-puls[aria-current], .nav-js .mainnav a.nav-puls.unter-glas { color: var(--moss-deep); }
html:not(.nav-js) .mainnav a.nav-puls[aria-current] .nav-puls-tag, .nav-js .mainnav a.nav-puls.unter-glas .nav-puls-tag { background: rgb(28 39 23 / .1); color: var(--moss-deep); }
.nav-js .mainnav a.nav-puls[aria-current]:not(.unter-glas) { color: var(--lichen); }
@media (hover: hover) and (pointer: fine) { .nav-js .mainnav a.nav-puls:not(.unter-glas):hover { color: #dce8a0; } }
.masthead.has-media .mainnav a.nav-puls:not([aria-current]):not(.unter-glas) { color: var(--lichen); }
@media (max-width: 860px) { .mainnav .nav-trenn { margin: 8px 2px; } }
@media (max-width: 420px) { .mainnav a.nav-puls { gap: 5px; } .nav-puls-tag { padding: 3px 5px; } }

/* 0.16.2 Handy: kompakter Kopf. Puls und Schreiben sitzen unten in der App Leiste, oben bleiben die Bereiche.
   Supplemente erscheint oben nur auf der eigenen Seite, der Link bleibt im HTML und steht zusätzlich in der Fußzeile. */
@media (max-width: 767px) {
  .topbar { min-height: 0; padding-top: 8px; gap: 0 12px; }
  .brand .logo { height: 30px; }
  .kopf-app { height: 34px; padding: 0 10px; font-size: .9375rem; }
  .mainnav { margin: 8px 0 10px; padding: 3px; }
  .mainnav a.nav-puls, .mainnav .nav-trenn,
  .mainnav a[href$="/supplemente/"]:not([aria-current]) { display: none; }
  .mainnav a { flex: 1 1 auto; padding: 7px 6px; font-size: .9375rem; }
  .nav-js .mainnav .nav-glas { top: 3px; bottom: 3px; }
}
@media (max-width: 380px) {
  .mainnav a { padding-inline: 3px; font-size: .84375rem; }
}

/* 0.16.2 Regiofinder am Handy hochkant: Karte unter der Trefferliste, weitere Einträge per Knopf */
@media (max-width: 900px) and (orientation: portrait) {
  .rf-app:not(.rf-voll) { grid-template-areas: "suche" "liste" "karte"; }
  .rf-app:not(.rf-voll) .mapbox { border-top: 1px solid var(--line); }
}
.rf-mehr-knopf { display: block; width: calc(100% - 32px); min-height: 48px; margin: 12px 16px 4px; padding: 10px 16px; border-radius: 999px; border: 0; background: var(--btn-bg); color: var(--btn-fg); font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 160ms var(--ease-out); }
.rf-mehr-knopf:active { transform: scale(.98); }
.rf-mehr-knopf:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rf-mehr-knopf[hidden] { display: none; }

/* 0.16.24 Themensuche im Kopf auf allen Seiten außer Startseite und Suchergebnis. Auf dem Handy übernimmt die App Leiste mit Suchen. */
.kopf-suche-zeile { padding-block: 2px 6px; }
.masthead > .kopf-suche-zeile { z-index: 40; }
.masthead.such-offen:has(.kopf-suche-zeile) { z-index: 60; }
.kopf-suche { margin-top: 0; max-width: 560px; box-shadow: 0 0 0 1px rgb(0 0 0 / .1); }
.kopf-suche input { font-size: 1rem; padding: 10px 14px; }
.kopf-suche button { margin: 4px; padding: 0 16px; font-size: 1rem; }
.kopf-suche:focus-within { box-shadow: 0 0 0 3px var(--lichen); }
@media (max-width: 767px) { .kopf-suche-zeile { display: none; } }

/* ---------- 0.16.30 Blutwerte Tabelle auf /blutbild/ und Seiten je Blutwert ---------- */
:root { --bw-hoch: #9c3f24; --bw-niedrig: #2b6474; --bw-zeile: var(--surface); }
:root[data-theme="dark"] { --bw-hoch: #e8a088; --bw-niedrig: #8fc8d6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bw-hoch: #e8a088; --bw-niedrig: #8fc8d6; } }
.bw [hidden], .bw-seite [hidden] { display: none !important; }
.article section.bw { margin-top: 56px; scroll-margin-top: 72px; }
.bw { --bw-pad: clamp(18px, 3vw, 34px); }
.bw-kopf { background: var(--moss); color: var(--on-moss); border-radius: 14px 14px 0 0; padding: clamp(22px, 3vw, 34px) var(--bw-pad) 0; position: relative; overflow: hidden; }
.bw-kopf::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgb(200 216 106 / .22), transparent 68%); pointer-events: none; }
.article .bw-kopf h2 { color: var(--on-moss); max-width: 24ch; }
.article .bw-kopf .bw-intro { margin-top: 12px; color: var(--on-moss-2); max-width: 72ch; line-height: 1.6; }
.bw-steuer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; position: relative; z-index: 1; }
.bw-filter { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(0 0 0 / .22); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.bw-filter button { display: inline-flex; align-items: center; gap: 0; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--on-moss); font-family: var(--f-sign); font-weight: 600; font-size: 1rem; cursor: pointer; transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.bw-filter button span:not(.bw-lang) { margin-left: 8px; font-size: .8125rem; font-weight: 600; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: rgb(255 255 255 / .1); color: var(--on-moss-2); }
.bw-filter button[aria-pressed="true"] { background: var(--plate); color: #16201a; }
.bw-filter button[aria-pressed="true"] span:not(.bw-lang) { background: var(--lichen); color: #16201a; }
@media (hover: hover) and (pointer: fine) { .bw-filter button[aria-pressed="false"]:hover { background: rgb(255 255 255 / .08); } }
.bw-filter button:focus-visible, .bw-suche input:focus-visible { outline: 2px solid var(--lichen); outline-offset: 2px; }
.bw-suche { flex: 1 1 240px; max-width: 360px; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 999px; background: var(--plate); color: #16201a; }
.bw-suche svg { width: 18px; height: 18px; flex: none; fill: #485344; }
.bw-suche input { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: #16201a; font: inherit; font-size: 1rem; }
.bw-suche input::placeholder { color: #5f6a5a; opacity: 1; }
.bw-suche input:focus-visible { outline: 0; }
.bw-suche:focus-within { box-shadow: 0 0 0 2px var(--lichen); }
.bw-suche input::-webkit-search-cancel-button { cursor: pointer; }
.bw-auf { background: var(--moss); color: var(--on-moss); border-radius: 0 0 14px 14px; padding: 20px var(--bw-pad) 24px; }
.bw-auf[open] { padding-bottom: 0; }
.bw-knopf { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--lichen); color: #16201a; font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; transition: filter 180ms var(--ease-out), transform 160ms var(--ease-out); }
.bw-knopf::-webkit-details-marker { display: none; }
.bw-knopf::marker { content: ""; }
.bw-knopf svg { width: 18px; height: 18px; fill: currentColor; transition: transform 220ms var(--ease-out); }
.bw-auf[open] > .bw-knopf svg { transform: rotate(180deg); }
.bw-auf .bw-offen, .bw-auf[open] .bw-zu { display: none; }
.bw-auf[open] .bw-offen { display: inline; }
.bw-knopf:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .bw-knopf:hover { filter: brightness(1.06); } }
.bw-knopf:focus-visible { outline: 2px solid var(--on-moss); outline-offset: 3px; }
.bw-auf[open] .bw-steuer { margin-top: 18px; }
.bw-auf[open] .bw-rahmen { margin: 22px calc(-1 * var(--bw-pad)) 0; }
.bw-rahmen { color: var(--ink); background: var(--bw-zeile); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; overflow: hidden; }
.bw-tab { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.bw-tab thead th { text-align: left; font-family: var(--f-sign); font-weight: 600; font-size: .875rem; letter-spacing: .02em; color: var(--ink-2); padding: 12px 16px; border-bottom: 2px solid var(--ink); background: var(--bw-zeile); }
.bw-tab thead th:first-child { width: 27%; }
.bw-tab thead th:nth-child(2) { width: 18%; }
.bw-reihe th { text-align: left; padding: 12px 16px; background: var(--moss-soft); font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.bw-reihe th span { margin-left: 10px; font-weight: 500; font-size: .875rem; color: var(--ink-2); }
.bw-zeile > * { padding: 16px; vertical-align: top; text-align: left; border-top: 1px solid var(--line); font-weight: 400; }
.bw-reihe + .bw-zeile > * { border-top: 0; }
.bw-zeile { transition: background-color 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .bw-zeile:hover { background: color-mix(in srgb, var(--moss-soft) 45%, transparent); } }
.bw-wert { display: flex; align-items: flex-start; gap: 12px; text-decoration: none; color: var(--ink); }
.bw-abk { display: inline-grid; place-items: center; flex: none; min-width: 58px; height: 38px; padding: 0 10px; border-radius: 8px; background: var(--lichen); color: #16201a; font-family: var(--f-sign); font-weight: 700; font-size: 1.0625rem; letter-spacing: .01em; text-decoration: none; box-shadow: inset 0 -2px 0 rgb(28 39 23 / .14); }
abbr.bw-abk { cursor: inherit; }
.bw-name { display: grid; gap: 1px; padding-top: 1px; }
.bw-name b { font-family: var(--f-sign); font-weight: 600; font-size: 1.1875rem; line-height: 1.2; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
@media (hover: hover) and (pointer: fine) { .bw-wert:hover .bw-name b { text-decoration-color: var(--link); color: var(--link); } }
.bw-name small { font-size: .875rem; color: var(--ink-2); }
.bw-wert:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
.bw-was { margin: 8px 0 0 70px; color: var(--ink-2); font-size: .9375rem; }
.bw-rw { margin: 0; display: grid; gap: 8px; }
.bw-rw div { display: grid; gap: 0; }
.bw-rw dt { font-family: var(--f-sign); font-weight: 500; font-size: .8125rem; color: var(--ink-2); }
.bw-rw dd { margin: 0; font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; color: var(--ink); }
.bw-zelle-hoch, .bw-zelle-niedrig { }
.bw-zelle-hoch > span, .bw-zelle-niedrig > span, .bw-zelle-schritt > span { display: block; }
.bw-pfeil { width: 20px; height: 20px; display: block; margin-bottom: 6px; }
.bw-pfeil.hoch { fill: var(--bw-hoch); }
.bw-pfeil.niedrig { fill: var(--bw-niedrig); }
.bw-mehr { display: inline-block; margin-top: 10px; font-family: var(--f-sign); font-weight: 600; font-size: 1rem; color: var(--link); }
.bw-mehr svg { display: inline-block; vertical-align: -2px; margin-left: 5px; width: 16px; height: 16px; fill: currentColor; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .bw-mehr:hover svg { transform: translateX(3px); } }
.bw-nw { white-space: nowrap; }
.bw-filter .bw-lang { margin-left: .25em; }
.bw-leer { margin: 0; padding: 28px 20px; color: var(--ink-2); }
.article .bw-fuss { margin-top: 14px; font-size: .9375rem; color: var(--ink-2); max-width: 90ch; }
@keyframes bw-blink { 0% { background: color-mix(in srgb, var(--lichen) 55%, transparent); } 100% { background: transparent; } }
.bw-zeile.bw-markiert { animation: bw-blink 1800ms var(--ease-out) both; }
.bw-zeile { scroll-margin-top: 90px; }
/* Handy und Tablett: jede Zeile als Karte */
@media (max-width: 900px) {
  .bw-tab, .bw-tab tbody, .bw-tab tr, .bw-tab th, .bw-tab td { display: block; }
  .bw-tab thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bw-reihe th { padding: 12px 16px; }
  .bw-zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; padding: 18px 16px; border-top: 1px solid var(--line); }
  .bw-reihe + .bw-zeile { border-top: 0; }
  .bw-zeile > * { padding: 0; border: 0; }
  .bw-zeile > th { grid-column: 1 / -1; }
  .bw-was { margin-left: 70px; }
  .bw-zeile > td { margin-top: 14px; }
  .bw-zelle-rw { grid-column: 1 / -1; padding: 12px 14px !important; border-radius: 10px; background: var(--moss-soft); }
  .bw-zelle-rw .bw-rw { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; }
  .bw-zelle-schritt { grid-column: 1 / -1; }
  .bw-zeile > td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-family: var(--f-sign); font-weight: 600; font-size: .875rem; color: var(--ink-2); }
  .bw-zelle-hoch::before { color: var(--bw-hoch) !important; }
  .bw-zelle-niedrig::before { color: var(--bw-niedrig) !important; }
  .bw-zelle-rw::before { display: none !important; }
  .bw-zelle-hoch .bw-pfeil, .bw-zelle-niedrig .bw-pfeil { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bw-filter { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bw-filter button { justify-content: center; padding: 0 8px; }
  .bw-suche { max-width: none; flex-basis: 100%; }
}
@media (max-width: 480px) {
  .bw-zeile { grid-template-columns: minmax(0, 1fr); }
  .bw-was { margin-left: 0; }
  .bw-kopf { border-radius: 12px 12px 0 0; }
  .bw-filter button { font-size: .9375rem; }
  .bw-filter .bw-lang { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bw-knopf, .bw-knopf svg { transition: none; } .bw-zeile.bw-markiert { animation: none; background: color-mix(in srgb, var(--lichen) 35%, transparent); } .bw-filter button, .bw-mehr svg, .bw-zeile { transition: none; } }

/* Seite je Blutwert */
.bw-h1-abk { display: inline-block; vertical-align: .32em; margin-left: .25em; padding: .08em .38em; border-radius: 8px; background: var(--lichen); color: #16201a; font-size: .42em; letter-spacing: .01em; text-decoration: none; cursor: help; }
.bw-steckbrief { margin-top: 20px; padding: clamp(20px, 3vw, 30px); border-radius: 14px; background: var(--moss); color: var(--on-moss); }
.bw-sb-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 24px; align-items: start; }
.bw-abk.gross { min-width: 92px; height: 68px; font-size: 1.75rem; border-radius: 12px; }
.article .bw-sb-label { margin: 0 0 6px; font-family: var(--f-sign); font-weight: 600; font-size: .9375rem; color: var(--lichen); letter-spacing: .02em; }
.bw-rw.gross { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px 28px; }
.bw-rw.gross dt { color: var(--on-moss-2); font-size: .9375rem; }
.bw-rw.gross dd { color: var(--on-moss); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.15; }
.article .bw-sb-teil { margin: 14px 0 0; color: var(--on-moss-2); font-size: .9375rem; }
.bw-sb-karten { margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bw-sb-karten div { padding: 14px 16px 16px; border-radius: 10px; background: var(--surface); color: var(--ink); }
.bw-sb-karten dt { display: flex; align-items: center; gap: 8px; font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; }
.bw-sb-karten .hoch dt { color: var(--bw-hoch); }
.bw-sb-karten .niedrig dt { color: var(--bw-niedrig); }
.bw-sb-karten .bw-pfeil { margin: 0; width: 18px; height: 18px; }
.bw-sb-karten dd { margin: 6px 0 0; line-height: 1.55; font-size: 1rem; }
@media (max-width: 760px) { .bw-sb-karten { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .bw-sb-kopf { grid-template-columns: minmax(0, 1fr); } .bw-abk.gross { justify-self: start; min-width: 76px; height: 56px; font-size: 1.5rem; } }
.bw-alle h3 { margin: 26px 0 0; font-size: 1.25rem; }
.bw-kacheln { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.bw-kacheln a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 7px 12px 7px 7px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-family: var(--f-sign); font-weight: 600; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; transition: box-shadow 180ms var(--ease-out), background-color 180ms var(--ease-out); }
.bw-kacheln .bw-abk { min-width: 54px; height: 36px; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) { .bw-kacheln a:hover { box-shadow: inset 0 0 0 1.5px var(--link); } }
.bw-kacheln a[aria-current="page"] { background: var(--moss-soft); box-shadow: inset 0 0 0 1.5px var(--link); }
.bw-kacheln a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* 0.16.32 Übersicht aller Laborwerte unter /blutwerte/ */
.bw-hub { scroll-margin-top: 72px; }
.bw-hub .bw-steuer { margin: 0; padding: 20px var(--bw-pad); background: var(--moss); color: var(--on-moss); border-radius: 14px 14px 0 0; }
.bw-hub .bw-rahmen { border-top: 1px solid var(--line); border-radius: 14px; }
.bw-hub .bw-steuer:not([hidden]) ~ .bw-rahmen { border-top: 0; border-radius: 0 0 14px 14px; }
.bw-filter-viele { border-radius: 22px; }
.bw-q { white-space: nowrap; font-size: .8125rem; color: var(--ink-2); }
.bw-q a { color: inherit; }
.bw-hub-seite .sources li { scroll-margin-top: 80px; }
.bw-hub-seite .sources li:target { background: color-mix(in srgb, var(--lichen) 30%, transparent); border-radius: 6px; }
@media (max-width: 900px) {
  .bw-filter-viele { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
  .bw-filter-viele button { min-height: 44px; line-height: 1.2; text-align: center; border-radius: 14px; }
}
@media (max-width: 480px) {
  .bw-hub .bw-steuer { border-radius: 12px 12px 0 0; padding: 16px 12px; }
  .bw-hub-tabelle { padding-left: 12px; padding-right: 12px; }
}
.bw-name b, .bw-name small { overflow-wrap: anywhere; }
.bw-hub-seite .sources a { overflow-wrap: anywhere; }
.bw-hub-seite.bw-hub-oben { padding-bottom: 0; }
.bw-hub-tabelle { margin-top: 32px; }

.bw-hub-h { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 6px; }
.bw-hub-hinweis { margin: 0 0 18px; color: var(--ink-2); }
.bw-q a { display: inline-block; min-width: 24px; min-height: 24px; line-height: 24px; text-align: center; }
/* 0.16.34 Mail bei Antworten */
.pf-haken label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.pf-haken input { margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--ink); }
.lw-verweis { flex-direction: column; align-items: flex-start; gap: 10px; }
.lw-verweis > span:first-child { font-weight: 700; }
.lw-verweis-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lw-verweis-alle { font-size: .92rem; }
/* 0.16.35 Praxis eintragen */
.praxis-form .field + .field, .praxis-form .field + .pf-zwei, .praxis-form .pf-zwei + .field, .praxis-form fieldset.field { margin-top: 14px; }
.praxis-form .pf-haken { margin-top: 14px; }
.praxis-form > .btn { margin-top: 18px; }
.praxis-form textarea { resize: vertical; }
.praxis-faecher label { font-size: .875rem; min-height: 36px; padding: 6px 11px; }
.field.hat-fehler select, .field.hat-fehler textarea { border-color: #b4472f; }
.pf-haken.hat-fehler span { color: #8f2f1f; }
.pf-praxen { margin: 28px 0; }
.pf-praxen .btn { margin-top: 10px; }
.rfp-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: #fff; display: block; }
.rfp-fotos { display: flex; gap: 8px; overflow-x: auto; padding: 14px 20px 4px; scroll-snap-type: x mandatory; }
/* Ohne sichtbaren Ziehbalken, wischen und mit dem Trackpad schieben geht trotzdem. */
.rfp-fotos { scrollbar-width: none; -ms-overflow-style: none; }
.rfp-fotos::-webkit-scrollbar { display: none; }
.rfp-fotos a { flex: none; scroll-snap-align: start; cursor: zoom-in; }
.rfp-fotos img { display: block; height: 120px; width: auto; max-width: 220px; object-fit: cover; border-radius: 10px; }
.rfp-fotos a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.dm-galerie { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0a0e09; color: #f1f4ec; overflow: hidden; }
.dm-galerie[open] { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; grid-template-rows: 64px minmax(0, 1fr) 48px; align-items: center; }
.dm-galerie::backdrop { background: rgb(10 14 9 / .6); }
.dg-bild { grid-column: 2; grid-row: 2; margin: 0; height: 100%; display: grid; grid-template-rows: auto auto; align-content: center; justify-items: center; gap: 12px; min-height: 0; }
.dg-rahmen { display: grid; max-width: 100%; }
/* Beide Bilder liegen übereinander in einem Rahmen, dessen Größe das Skript aus dem Seitenverhältnis setzt. */
.dg-rahmen img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; display: block; }
.dg-vorschau { filter: blur(8px); visibility: hidden; }
.dg-rahmen.laedt .dg-vorschau, .dg-rahmen.ohne .dg-vorschau { visibility: visible; }
.dg-voll { opacity: 0; }
.dg-voll.da { opacity: 1; }
.dg-rahmen { overflow: hidden; border-radius: 6px; }
.dg-rahmen.ohne .dg-vorschau { filter: none; }
.dg-bild figcaption { font-size: .9375rem; color: #b8c4aa; text-align: center; }
.dm-galerie button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: inherit; display: grid; place-items: center; cursor: pointer; justify-self: center; }
.dm-galerie button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .dm-galerie button:hover { background: rgb(255 255 255 / .2); } }
.dm-galerie button:focus-visible { outline: 3px solid var(--lichen); outline-offset: 2px; }
.dm-galerie .dg-zu { grid-column: 3; grid-row: 1; }
.dm-galerie .dg-vor { grid-column: 1; grid-row: 2; }
.dm-galerie .dg-nach { grid-column: 3; grid-row: 2; }
.dm-galerie [hidden] { display: none; }
.dg-zahl { grid-column: 2; grid-row: 3; margin: 0; text-align: center; font-size: .875rem; color: #b8c4aa; font-variant-numeric: tabular-nums; }
.dg-offen { overflow: hidden; }
@media (max-width: 640px) {
  .dm-galerie[open] { grid-template-columns: 0 minmax(0, 1fr) 0; grid-template-rows: 60px minmax(0, 1fr) 72px; }
  .dg-bild { grid-column: 1 / -1; padding-inline: 8px; }
  .dm-galerie .dg-zu { grid-column: 2; justify-self: end; margin-right: 8px; }
  .dm-galerie .dg-vor, .dm-galerie .dg-nach { grid-row: 3; grid-column: 2; }
  .dm-galerie .dg-vor { justify-self: start; margin-left: 16px; }
  .dm-galerie .dg-nach { justify-self: end; margin-right: 16px; }
  .dg-zahl { grid-row: 1; grid-column: 2; justify-self: start; margin-left: 16px; }
}
.rfp-text { margin: 12px 20px 4px; font-size: .9375rem; line-height: 1.55; }
.rfp-seite { margin: 14px 20px 6px; }
.rfp-seite .btn { width: 100%; font-size: 1.0625rem; padding: 12px 16px; }
.hit-seite { color: var(--link); font-weight: 600; }
.mod-praxis-daten { display: grid; gap: 4px; margin: 10px 0; font-size: .9375rem; }
.mod-praxis-daten div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
.mod-praxis-daten dt { color: var(--ink-2); }
.mod-praxis-daten dd { margin: 0; overflow-wrap: anywhere; }
.mod-praxis-bilder { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.mod-praxis-bilder img { height: 90px; width: auto; border-radius: 8px; display: block; }
.mod-praxis-logo { background: #fff; padding: 4px; object-fit: contain; }
.mod-doppelt { flex-basis: 100%; }
.rf-eintragen { justify-self: end; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.rf-eintragen svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; flex: none; }
@media (max-width: 900px) {
  .rf-kopf:has(.rf-eintragen) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .rf-kopf .rf-eintragen { justify-self: end; min-height: 36px; padding: 6px 12px; font-size: .875rem; background: transparent; color: var(--lichen); box-shadow: inset 0 0 0 1.5px var(--lichen); }
  .rf-kopf .rf-eintragen svg { width: 15px; height: 15px; }
}

/* Redaktion im Puls (0.16.62) */
.puls-bild { margin: 14px 0 0; border-radius: 18px; overflow: hidden; background: var(--line); }
.puls-bild img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
/* seit 0.16.63, Überschrift, Video und Ort der Redaktion, ruhig und klar im Stil von Apple */
.puls-titel { margin: 12px 0 0; font-size: 1.3125rem; line-height: 1.25; font-weight: 650; letter-spacing: -.012em; }
.puls-video { margin: 14px 0 0; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.puls-video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.puls-ort { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: .8125rem; color: var(--ink-2); }
.puls-ort svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.puls-ort-quelle { margin-left: auto; font-size: .6875rem; color: var(--ink-2); opacity: .7; text-decoration: none; }
.ist-redaktion .puls-quelle { font-size: .8125rem; color: var(--ink-2); margin: .5rem 0 0; }   /* seit 0.16.64 unter dem Bild */

/* Einklappbare Quellen, seit 0.16.65 */
.quellen-klapp { margin-top: 10px; }
.quellen-klapp > summary, .puls-quelle > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--field-border); border-radius: 999px; cursor: pointer; list-style: none; font-size: .9375rem; font-weight: 600; color: var(--ink); background: var(--surface); transition: background-color .16s ease, border-color .16s ease; }
.quellen-klapp > summary::-webkit-details-marker, .puls-quelle > summary::-webkit-details-marker { display: none; }
.quellen-klapp > summary::after, .puls-quelle > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
.quellen-klapp[open] > summary::after, .puls-quelle[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.quellen-klapp > summary:hover, .puls-quelle > summary:hover { border-color: var(--moss); }
.quellen-klapp > summary:focus-visible, .puls-quelle > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.quellen-klapp .auf, .quellen-klapp[open] .zu { display: none; }
.quellen-klapp[open] .auf { display: inline; }
.quellen-klapp > .sources { margin-top: 14px; }
.puls-quelle { margin: .75rem 0 0; }
.puls-quelle > summary { min-height: 34px; padding: 5px 14px; font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
.puls-quelle > p { margin: .5rem 0 0; font-size: .8125rem; color: var(--ink-2); overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .quellen-klapp > summary::after, .puls-quelle > summary::after { transition: none; } }



/* Gesundheitsnachrichten auf der Startseite, seit 0.16.67, hell seit 0.16.69. Heller Grund grenzt sich klar vom dunklen
   Kopf ab. Links die Aufmacher Nachricht groß, rechts die nächsten als ruhige Liste mit Haarlinien. Keine Unterstreichung,
   beim Überfahren zoomen alle Fotos sanft ein. */
.nx { background: var(--surface); color: var(--ink); padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.nx a { color: inherit; text-decoration: none; }
.nx-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.nx-kopf h2 { margin: 0; font-family: var(--f-sign); font-size: var(--step-3); font-weight: 600; letter-spacing: -.01em; line-height: 1.05; color: var(--ink); text-wrap: balance; }
.nx-alle { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; font-family: var(--f-sign); font-size: 1.0625rem; font-weight: 600; color: var(--link) !important; }
.nx-alle svg { width: 18px; height: 18px; fill: currentColor; transition: transform .25s var(--ease-out); }
.nx-alle:hover svg { transform: translateX(3px); }
.nx-raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); margin-top: 32px; align-items: start; }
.nx-item { position: relative; transition: transform .16s var(--ease-out); }
.nx-item:active { transform: scale(.99); }
.nx-bild { display: block; overflow: hidden; border-radius: 16px; background: var(--moss-soft); }
.nx-foto { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transform: scale(1.001); transition: transform .7s var(--ease-out); }
.nx-item:hover .nx-foto, .nx-item:focus-within .nx-foto { transform: scale(1.06); }
.nx-titel { margin: 0; font-family: var(--f-sign); font-weight: 600; letter-spacing: -.005em; color: var(--ink); text-wrap: pretty; max-width: none; transition: color .2s ease; }
.nx-item:hover .nx-titel { color: var(--link); }
.nx-titel a::after { content: ""; position: absolute; inset: 0; }   /* ganze Fläche klickbar */
.nx-meta { position: relative; z-index: 1; pointer-events: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 0; font-size: .875rem; color: var(--ink-2); }
.nx-meta a { pointer-events: auto; color: var(--link); font-weight: 600; padding-block: 12px; margin-block: -12px; }   /* 44 Pixel Trefferfläche */
.nx-meta time { font-variant-numeric: tabular-nums; }
.nx-lead .nx-text { margin-top: 24px; }
.nx-lead .nx-titel { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.08; }
.nx-anriss { margin: 16px 0 0; font-size: var(--step-0); line-height: 1.55; color: var(--ink-2); }
.nx-spalte { display: grid; }
.nx-spalte .nx-item { display: grid; grid-template-columns: minmax(0, 1fr) clamp(112px, 12vw, 168px); gap: 16px; align-items: start; padding-block: 24px; border-bottom: 1px solid var(--line); }
.nx-spalte .nx-item:first-child { padding-top: 0; }
.nx-spalte .nx-item:last-child { border-bottom: 0; }
.nx-spalte .nx-bild { order: 2; border-radius: 12px; }
.nx-spalte .nx-titel { font-size: 1.3125rem; line-height: 1.18; }
.nx-spalte .nx-meta { margin-top: 10px; font-size: .8125rem; }
.nx a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.puls-post { scroll-margin-top: 96px; }   /* Sprung von der Startseite landet nicht unter der Kopfleiste */
@media (max-width: 900px) {
  .nx-raster { grid-template-columns: 1fr; }
  .nx-kopf { flex-wrap: wrap; }
  .nx-spalte .nx-item:first-child { padding-top: 24px; }
}
@media (max-width: 520px) {
  .nx-spalte .nx-item { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; }
  .nx-spalte .nx-titel { font-size: 1.125rem; }
  .nx-kopf h2 { font-size: var(--step-2); }
}
@media (prefers-reduced-motion: reduce) {
  .nx-foto, .nx-titel, .nx-alle svg, .nx-item { transition: none; }
  .nx-item:hover .nx-foto, .nx-item:focus-within .nx-foto, .nx-item:active { transform: none; }
}

/* Anzeigen unter Themenseiten, siehe inc/anzeigen.php */
.anzeige { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 40px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.anzeige p { margin: 0; }
.anz-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; font-size: .9375rem; color: var(--ink-2); }
.anz-zeichen { background: var(--btn-bg); color: var(--btn-fg); }
.anz-titel { font-family: var(--f-sign); font-weight: 700; font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
.anz-ziele { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.anz-ziele a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 500; text-decoration: none; }
.anz-ziele a:hover { background: var(--line); }
.anz-ziele a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.anzeige .btn { max-width: 100%; white-space: normal; text-align: center; }
.anz-hinweis { padding-top: 14px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
@media (max-width: 480px) { .anzeige { padding: 18px 16px; } }
/* Eigene Beiträge bearbeiten und löschen, seit 0.16.80 */
.dm-bearbeitet { margin-left: 8px; font-size: .8125rem; color: var(--ink-2); }
.dm-eigen-form { margin-top: 8px; display: grid; gap: 10px; }
.dm-eigen-form textarea { font: inherit; box-sizing: border-box; width: 100%; max-width: 100%; min-height: 120px; resize: vertical; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--field-border); background: var(--ground); color: var(--ink); line-height: 1.5; }
.dm-eigen-form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: -1px; }
.dm-eigen-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dm-eigen-knoepfe .act { margin-left: 0; }
.dm-eigen-frage { display: flex; flex-basis: 100%; flex-wrap: wrap; align-items: center; column-gap: 4px; }
.dm-eigen-frage > span { flex-basis: 100%; font-size: .9375rem; color: var(--ink); padding: 4px 0 0 12px; }
.dm-eigen-frage .act { margin-left: 0; }
.dm-eigen-ja { color: var(--ink); font-weight: 700; }
.dm-eigen-meldung { margin: 8px 0 0; font-size: .9375rem; color: var(--ink-2); }
.dm-eigen-meldung.fehler { color: var(--ink); font-weight: 600; }
.ist-geloescht > div > .post-body { color: var(--ink-2); font-style: italic; }
.avatar.leer { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
