/* PICU Österreich – Design "Nordisch klar". Schrift Figtree (SIL OFL), lokal eingebunden. */
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(/static/fonts/figtree-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Figtree; font-weight: 500; font-display: swap; src: url(/static/fonts/figtree-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(/static/fonts/figtree-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(/static/fonts/figtree-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(/static/fonts/figtree-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Figtree; font-weight: 500; font-display: swap; src: url(/static/fonts/figtree-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(/static/fonts/figtree-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(/static/fonts/figtree-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --bg: #ffffff;
  --surface: #f5f7f8;
  --fg: #17212b;
  --muted: #566371;
  --line: #e3e8ec;
  --line-strong: #cbd3da;
  --accent: #1f4e6b;
  --accent-dark: #133548;
  --red: #b3001b;
  --danger: #b3261e;
  --ok: #1b7a3d;
  --max: 1152px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--fg); }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid #7aa6c2; outline-offset: 2px; border-radius: 4px; }

/* Kopfzeile */
header.site { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding: 18px 40px; border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--fg); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: var(--fg); }
.brand .logo { width: 40px; height: 40px; flex: none; }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 16px; font-weight: 500; }
nav.main a { color: var(--fg); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.main a:hover { border-bottom-color: var(--line-strong); }
nav.main a[aria-current="page"] { border-bottom-color: var(--accent); }
nav.main a.member { color: var(--accent); border: 1.5px solid var(--accent); border-radius: 8px; padding: 8px 16px; font-weight: 600; }
nav.main a.member:hover { background: var(--surface); }

main { max-width: var(--max); margin: 0 auto; padding: 56px 40px 80px; }
footer.site { border-top: 1px solid var(--line); padding: 28px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--muted); font-size: 15px; }
footer.site a { color: var(--muted); }
footer.site nav { display: flex; gap: 24px; flex-wrap: wrap; }

h1 { font-size: 40px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 20px; }
h2 { font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -0.012em; margin: 48px 0 16px; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; }
.lead { font-size: 20px; color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); font-size: .94rem; }
.error { color: var(--danger); }
.ok { color: var(--ok); }
.notice { background: #fff8e1; border: 1px solid #f0d98a; padding: .7rem 1rem; border-radius: 8px; }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.tag { font-size: .75rem; background: #e8eef5; color: var(--muted); padding: .1rem .5rem; border-radius: 999px; vertical-align: middle; font-weight: 500; }

/* Hero und Abschnitte (Startseite) */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 24px 0 56px; }
.hero > div:first-child { flex: 1 1 460px; min-width: 0; }
.hero h1 { font-size: 54px; line-height: 1.06; letter-spacing: -0.025em; margin-bottom: 22px; }
.hero .lead { margin: 0 0 32px; }
.hero-logo { flex: 0 1 320px; min-width: 220px; aspect-ratio: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; display: flex; align-items: center; justify-content: center; }
.hero-logo .logo { width: 62%; height: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button, button { font: inherit; font-weight: 600; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 12px 24px; cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.4; }
.button:hover, button:hover { background: var(--accent-dark); color: #fff; }
.button.outline { background: transparent; color: var(--accent); border: 1.5px solid var(--line-strong); padding: 11px 24px; }
.button.outline:hover { background: var(--surface); color: var(--accent-dark); }
button.link { background: none; color: var(--accent); padding: 0; text-decoration: underline; font-weight: 500; border-radius: 0; }
button.link:hover { background: none; color: var(--accent-dark); }
button.danger { color: var(--danger); }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: 56px 0 22px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 64px -40px 0; padding: 56px 40px; }

ul.cards { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
ul.cards.single { grid-template-columns: 1fr; }
ul.cards li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
ul.cards li p { margin: .4rem 0; }
ul.cards li .meta { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
ul.cards li h3 a { color: var(--fg); text-decoration: none; }
ul.cards li h3 a:hover { text-decoration: underline; }

.rows { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.rows li { border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows a.row-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; color: var(--fg); text-decoration: none; }
.rows a.row-link:hover { background: var(--surface); border-radius: inherit; }
.rows .sub { display: block; color: var(--muted); font-size: 15px; }

.features { display: flex; flex-wrap: wrap; gap: 32px 40px; margin-top: 8px; }
.features > div { flex: 1 1 250px; }
.features svg { width: 32px; height: 32px; color: var(--accent); }
.features h3 { margin: 14px 0 6px; }
.features p { margin: 0; color: var(--muted); }

/* Textinhalte */
.prose { max-width: 42rem; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.article-meta { color: var(--muted); font-size: 15px; margin: -8px 0 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 5px 14px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--fg); font-size: 15px; font-weight: 500; }
.chips a:hover { background: var(--surface); }
.chips a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.doc-title { font-weight: 600; }
.topic-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 6px; }

dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; }
dt { font-weight: 600; } dd { margin: 0; }

/* Formulare */
form.stack { display: grid; gap: .95rem; }
form.narrow { max-width: 36rem; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem 1.1rem; display: grid; gap: .85rem; }
legend { font-weight: 600; padding: 0 .4rem; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.contact .check { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .contact { grid-template-columns: 1fr; }
  header.site, footer.site { padding-left: 20px; padding-right: 20px; }
  main { padding: 36px 20px 64px; }
  .band { margin-left: -20px; margin-right: -20px; padding: 40px 20px; }
  h1 { font-size: 32px; } .hero h1 { font-size: 38px; }
}
label { display: grid; gap: .25rem; font-weight: 500; }
label.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
input, textarea, select { font: inherit; padding: .55rem .7rem; border: 1px solid #b9c3cf; border-radius: 8px; background: #fff; width: 100%; color: var(--fg); }
input[type=checkbox] { width: auto; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
form.inline { display: inline; }
.row { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; margin-top: .5rem; }
.row select { width: auto; }
code.wrap { word-break: break-all; user-select: all; }
.admin-bar { margin: 0 0 24px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
a.tag { text-decoration: none; }
a.tag:hover { background: #d9e3ee; color: var(--accent-dark); }

/* vergangene Events: dezent schraffiert */
ul.cards li.event-past { background: repeating-linear-gradient(135deg, #fff 0 10px, #f3f6f8 10px 20px); color: var(--muted); }
ul.cards li.event-past strong a, ul.cards li.event-past strong { color: var(--fg); }
.tag.past { background: #e3e8ec; color: #55616d; margin-left: .35rem; }

/* Newsletter */
.signup { margin: 56px 0 8px; padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.signup h2 { margin: 0 0 4px; font-size: 22px; } .signup p { margin: 0; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
table.table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
table.table th, table.table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
button.outline { background: #fff; color: var(--accent-dark, #1d4e6a); border: 1px solid var(--line); }

/* Stationen: Karte, Filter, Chips */
form.filter { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; margin: 0 0 24px; }
form.filter label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chips .tag { font-size: .8rem; }
figure.map { margin: 0 0 32px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
figure.map svg { width: 100%; height: auto; display: block; }
figure.map figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.map .land { fill: #fff; stroke: var(--line-strong, #c9d3da); stroke-width: 1.5; stroke-linejoin: round; }
.map .pin circle { fill: #e00000; stroke: #fff; stroke-width: 3; transition: r .15s; }
.map .pin.draft circle { fill: #8a96a0; }
.map .pin text { font-size: 22px; font-weight: 600; fill: var(--fg); paint-order: stroke; stroke: #fff; stroke-width: 5px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.map .pin:hover circle, .map .pin:focus circle { r: 12; }
.map .pin:hover text, .map .pin:focus text { opacity: 1; }
.map .pin:focus { outline: none; }
.map .pin:focus-visible circle { stroke: var(--fg); }
@media (hover: none) { .map .pin text { opacity: 1; font-size: 26px; } }
details { margin: 0; } details summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
button.danger:not(.link) { background: #fff; color: #b00020; border: 1px solid #e3b5bd; }

/* Event-Reihen: Logos */
.series-head { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.series-head > div { flex: 1 1 380px; min-width: 0; }
.series-logo { flex: 0 1 340px; width: 340px; max-width: 100%; height: auto; }
img.series-thumb { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 0 12px; }

/* Mobil: Logos kleiner */
@media (max-width: 640px) {
  .series-head { gap: 16px; }
  .series-head > div { flex-basis: 100%; }
  .series-logo { order: -1; width: 180px; }
  img.series-thumb { max-width: 150px; margin-bottom: 8px; }
  ul.cards li.event-past { color: var(--fg); }
}

.prose h3 { margin: 32px 0 10px; }
.prose h4 { font-size: 16px; font-weight: 600; margin: 22px 0 6px; color: var(--muted, #555); text-transform: uppercase; letter-spacing: .04em; }
.prose ul li { margin: 4px 0; }

.tool { margin: 40px 0; padding-top: 8px; border-top: 1px solid var(--line, #ddd); }
form.calc { display: grid; gap: 14px; max-width: 640px; }
form.calc label { display: grid; gap: 4px; font-weight: 500; }
form.calc label.check { display: flex; font-weight: 400; }
form.calc .row { display: flex; gap: 8px; }
form.calc .row input { flex: 1; min-width: 0; }
form.calc .hint { font-weight: 400; font-size: 14px; color: var(--muted, #666); }
.result { margin: 18px 0 6px; padding: 14px 18px; background: var(--soft, #f2f6f9); border-radius: 10px; max-width: 640px; }
.result p { margin: 4px 0; }
.small { font-size: 14px; max-width: 700px; }

.result .val { display: inline-block; font-size: 24px; font-weight: 700; padding: 2px 12px; border-radius: 8px; background: #dbe9f1; color: #12384f; }
.result .grade { display: inline-block; font-weight: 600; padding: 3px 10px; border-radius: 999px; font-size: 15px; }
.val.lv0, .grade.lv0 { background: #d8f0dc; color: #17491f; }
.val.lv1, .grade.lv1 { background: #fff0b8; color: #5a4300; }
.val.lv2, .grade.lv2 { background: #ffd9b0; color: #6b3200; }
.val.lv3, .grade.lv3 { background: #f8c9c9; color: #7a1010; }
.val.lvx, .grade.lvx { background: #e6e6e6; color: #444; }
.warn { max-width: 720px; padding: 12px 16px; border-left: 4px solid #c47a00; background: #fff6e0; border-radius: 6px; }
.alert { padding: 8px 12px; background: #f8c9c9; color: #7a1010; border-radius: 8px; font-weight: 600; }
.prep { margin: 18px 0 0; padding: 14px 18px; background: #eef4ea; border-radius: 10px; max-width: 640px; }
.prep p { margin: 0; }
fieldset.modes { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
fieldset.modes legend { font-weight: 500; padding: 0; margin-bottom: 4px; }
[hidden] { display: none !important; }
label.check input[type=checkbox], label.check input[type=radio] { width: auto; flex: none; margin-top: .3em; }

details.group { margin-top: 12px; border: 1px solid var(--line, #ddd); border-radius: 12px; background: #fff; }
details.group > summary { cursor: pointer; padding: 14px 18px; font-size: 18px; font-weight: 600; list-style: none; display: flex; align-items: baseline; gap: 8px; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::before { content: "▸"; display: inline-block; width: 1em; transition: transform .15s; }
details.group[open] > summary::before { transform: rotate(90deg); }
details.group > summary .muted { font-weight: 400; font-size: 15px; }
details.group > ul.cards { padding: 0 14px 14px; }
details.group > ul.cards li { box-shadow: none; }
.group-tools { margin: 8px 0 0; }

/* Ganze Karte klickbar: der Hauptlink (a.card-link) wird per ::after über die Karte gelegt.
   Weitere Links und Schaltflächen in der Karte (Bearbeiten, Löschen, Tags, Präsentationen) bleiben einzeln klickbar. */
ul.cards li { position: relative; }
ul.cards li :is(a, button, form, input, select) { position: relative; z-index: 2; }
ul.cards li a.card-link { position: static; z-index: auto; }
ul.cards li a.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
ul.cards li:has(a.card-link):hover { border-color: var(--line-strong); box-shadow: 0 2px 10px rgba(19, 53, 72, .08); }
ul.cards li a.card-link:focus-visible { outline: none; }
ul.cards li a.card-link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 14px; }
ul.cards li:has(a.card-link) h3 a.card-link, ul.cards li:has(a.card-link) a.doc-title { text-decoration: none; }
ul.cards li:has(a.card-link:hover) h3 a.card-link, ul.cards li:has(a.card-link:hover) a.doc-title, ul.cards li:has(a.card-link:hover) strong a { text-decoration: underline; }

/* Besucherzähler und Statistik */
.visitor-counter { text-align: center; margin: 40px 0 8px; font-size: 14px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-num { font-size: 30px; font-weight: 700; color: var(--accent-dark); line-height: 1.1; }
.stat-sub { font-size: 14px; }
.stat-chart { width: 100%; max-width: 760px; height: auto; display: block; margin: 12px 0 4px; }
.stat-chart .bar-views { fill: #cddde8; }
.stat-chart .bar-visitors { fill: var(--accent); }
.stat-chart .bar-label { font-size: 9px; fill: var(--muted); }
.legend-box { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.legend-box.views { background: #cddde8; }
.legend-box.visitors { background: var(--accent); }

/* Honeypot-Feld der Registrierung (für Menschen unsichtbar) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Externe Veranstaltungen (nicht von uns organisiert) */
ul.cards li.event-external { background: #fff7e6; border-color: #f0d9a8; border-left: 4px solid #e0a73a; }
.tag.external { background: #f8e3b5; color: #6b4a06; margin-left: .35rem; }
ul.cards li.event-external.event-past { background: repeating-linear-gradient(135deg, #fff7e6 0 10px, #f7ecd3 10px 20px); }
.star { color: #d99a00; font-size: 1.1em; }
tr.top-day td { background: #fff9e6; }
.events-col .ev-icon { margin-right: .4rem; cursor: help; }
.contact fieldset.topics { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.contact fieldset.topics legend { font-size: .9rem; font-weight: 600; padding: 0; margin-bottom: .2rem; }
.tag.topic { background: #dff0e6; color: #1d5a37; margin-top: .3rem; display: inline-block; }
.contact-line { margin: 0 0 .25rem; }
.ev-icon { display: inline-flex; vertical-align: middle; color: var(--accent-dark); }
.ev-icon .icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.events-col .ev-icon { margin-right: .6rem; }
.stat-legend .ev-icon .icon { width: 18px; height: 18px; }

/* Fotos der Stationen */
.station-head { display: flex; gap: 28px; align-items: flex-start; justify-content: space-between; }
.station-head h1 { margin-bottom: 8px; }
.station-figure { margin: 0; flex: none; width: 240px; }
.station-figure figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.station-photo { display: block; width: 240px; height: 180px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); flex: none; }
.gallery { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery li { display: grid; gap: 6px; align-content: start; font-size: 14px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
.gallery.edit { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.photo-row { display: flex; gap: 16px; align-items: center; margin: 8px 0 12px; }
.photo-row img { width: 160px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 640px) {
  .station-head { flex-direction: column-reverse; gap: 12px; }
  .station-figure { width: 100%; }
  .station-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; }
}

.photo-row { flex-wrap: wrap; }
.photo-row .row { margin: 0; }

/* Anmeldeseite: Vorteile der Registrierung */
.auth-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 40px; align-items: start; }
.benefits { background: var(--surface, #f3f6f8); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; }
.benefits h2 { margin-top: 0; font-size: 22px; }
.benefits ul { margin: 12px 0 0; padding-left: 1.2em; }
.benefits li { margin-bottom: 8px; }
@media (max-width: 760px) { .auth-grid { grid-template-columns: 1fr; gap: 24px; } }
.tag.audience { background: #dfeaf5; color: #1d4466; margin-left: .35rem; }
fieldset.audience { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
fieldset.audience legend { font-weight: 600; padding: 0; margin-bottom: .2rem; font-size: .95rem; }
ul.chips[aria-label="Zielgruppe"] { margin-top: 28px; }
.auto-draft { align-items: end; gap: .8rem; margin: 0 0 .5rem; }
.auto-draft label { display: grid; gap: .25rem; }

/* News: Teaserfoto, Fotos, Seitenblättern */
ul.cards li.news-card { display: flex; gap: 20px; align-items: center; justify-content: space-between; height: 160px; padding: 16px 20px 16px 24px; overflow: hidden; }
.news-text { min-width: 0; flex: 1; }
.news-text h3 { margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-teaser { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-thumb { flex: none; width: 150px; height: 112px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
@media (max-width: 560px) { ul.cards li.news-card { height: 150px; } .news-thumb { width: 90px; height: 90px; } }
.news-gallery { margin-top: 28px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 28px 0; }
.pager a { font-weight: 500; }

/* Rechner: kurzer, fetter Titel mit Untertitel */
h1.tool-title { font-size: clamp(40px, 7vw, 56px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 6px; }
.tool-subtitle { font-size: 18px; font-weight: 500; color: var(--muted); margin: 0 0 20px; }
ul.cards li.tool-card h3 { font-size: 32px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; margin-bottom: 4px; }
ul.cards li.tool-card .tool-sub { font-weight: 600; color: var(--fg); margin: 0 0 8px; }

/* Startseite: Mitmachen */
.actions .textlink { align-self: center; margin-left: 4px; font-weight: 500; }
.join { margin: 56px 0 0; }
.join h2 { margin-bottom: 8px; }
.join .lead { margin: 0 0 20px; max-width: 640px; }
.join .actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
ul.cards li .home-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; margin-top: 10px; }

/* Mitmachen farbig: dunkles Band mit weißen Karten und farbigen Akzenten */
.join { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%); color: #fff; margin: 64px -40px 0; padding: 56px 40px; }
.join h2, .join h3 a { color: #fff; }
.join .lead { color: rgba(255, 255, 255, .88); }
.join ul.cards li { background: rgba(255, 255, 255, .97); border: 0; border-top: 5px solid var(--accent); color: var(--fg); }
.join ul.cards li:nth-child(1) { border-top-color: #e8a317; }
.join ul.cards li:nth-child(2) { border-top-color: #d7263d; }
.join ul.cards li:nth-child(3) { border-top-color: #2aa198; }
.join ul.cards li h3 a { color: var(--fg); }
.join ul.cards li p { color: var(--muted); }
.join .actions .button { background: #fff; color: var(--accent-dark); }
.join .actions .button:hover { background: #ffe9a8; color: var(--accent-dark); }
.join .actions .muted { color: rgba(255, 255, 255, .85); }
@media (max-width: 700px) { .join { margin-left: -20px; margin-right: -20px; padding: 40px 20px; } }

.page-banner { display: block; width: 100%; height: auto; border-radius: 28px; margin: 8px 0 28px; }

/* Menü: Gruppen als Aufklappmenüs (details, ohne Skript bedienbar) */
nav.main details.dd { position: relative; }
nav.main details.dd > summary { list-style: none; cursor: pointer; margin: 0; font-weight: 500; line-height: 25.6px; padding: 4px 0; border-bottom: 2px solid transparent; color: var(--fg); display: inline-flex; align-items: center; gap: 6px; }
nav.main details.dd > summary::-webkit-details-marker { display: none; }
nav.main details.dd > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
nav.main details.dd[open] > summary::after { transform: translateY(1px) rotate(225deg); }
nav.main details.dd > summary:hover { border-bottom-color: var(--line-strong); }
nav.main details.dd > summary.current { border-bottom-color: var(--accent); }
nav.main details.dd > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
nav.main .panel { position: absolute; top: calc(100% + 8px); left: -14px; z-index: 50; min-width: 230px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(19, 53, 72, .14); }
nav.main details.dd.right .panel { left: auto; right: -8px; }
nav.main .panel a, nav.main .panel button.link { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; color: var(--fg); font: inherit; font-weight: 500; text-decoration: none; background: none; cursor: pointer; }
nav.main .panel a:hover, nav.main .panel button.link:hover { background: var(--surface); }
nav.main .panel a[aria-current="page"] { background: var(--surface); color: var(--accent-dark); font-weight: 600; }
nav.main .panel form.inline { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
nav.main .panel-label { padding: 8px 12px 2px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
nav.main .badge { background: var(--red); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 1px 7px; }
@media (max-width: 700px) {
  nav.main { gap: 6px 20px; }
  nav.main details.dd[open] { flex-basis: 100%; }
  nav.main .panel { position: static; box-shadow: none; border: 0; border-left: 4px solid var(--accent); border-radius: 8px; background: var(--surface); margin: 6px 0 8px; padding: 6px; min-width: 0; }
  nav.main .panel a:hover, nav.main .panel button.link:hover { background: var(--bg); }
  nav.main .panel a[aria-current="page"] { background: var(--bg); }
}

/* Projekte */
.members-part { margin-top: 40px; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 14px; }
.members-part h2 { margin-top: 0; }
.pdf-list { padding-left: 20px; }
.filter-row { align-items: end; margin-bottom: 20px; gap: 14px; flex-wrap: wrap; }
.inline-label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
ul.cards li.project-card .chips { margin: 4px 0 8px; }

/* Projekte: Tags in einer Linie, Teaserbild rechts */
.project-tags { align-items: center; }
.project-tags .tag, .project-tags .tag.topic { margin: 0; display: inline-block; line-height: 1.5; padding: .15rem .6rem; }
ul.cards li.project-card { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; }
.project-text { min-width: 0; flex: 1; }
@media (max-width: 560px) { ul.cards li.project-card .news-thumb { width: 90px; height: 90px; } }

/* Besonderes Angebot (z. B. PICS-P Nachsorge): eigene Farbe */
.tag.special { background: #ede3f7; color: #4b2a77; font-weight: 600; }
.checks .special-check { color: #4b2a77; font-weight: 600; }
.checks .special-check .special-note { font-weight: 400; font-size: .85em; color: var(--muted); }

/* Mitgliederprofile */
.avatar { border-radius: 50%; object-fit: cover; display: inline-block; flex: none; border: 1px solid var(--line); background: var(--surface); }
.avatar-s { width: 36px; height: 36px; } .avatar-m { width: 56px; height: 56px; } .avatar-l { width: 96px; height: 96px; } .avatar-xl { width: 140px; height: 140px; }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent-dark); background: #dfeaf5; }
.avatar-s.avatar-initials { font-size: 14px; } .avatar-m.avatar-initials { font-size: 20px; } .avatar-l.avatar-initials { font-size: 32px; } .avatar-xl.avatar-initials { font-size: 46px; }
.avatar-preview { border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.member-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.member-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 20px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--fg); height: 100%; }
.member-card:hover { border-color: var(--line-strong); box-shadow: 0 2px 10px rgba(19, 53, 72, .08); }
.member-name { font-weight: 600; }
.member-head { display: flex; align-items: center; gap: 24px; margin-bottom: 8px; }
.member-head h1 { margin-bottom: 4px; } .member-head .lead { margin: 0; }
.hint-banner { background: #fff7e0; border-bottom: 1px solid #f0dfa8; padding: 14px 40px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.hint-banner p { margin: 0; max-width: 720px; }
.hint-banner .actions { display: flex; gap: 14px; align-items: center; margin: 0; }
@media (max-width: 640px) { .hint-banner { padding: 14px 20px; } .member-head { flex-direction: column; align-items: flex-start; gap: 12px; } }

.team-list { list-style: none; margin: 8px 0 20px; padding: 0; display: grid; gap: 8px; }
.team-list a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); padding: 6px 10px; border-radius: 12px; }
.team-list a:hover { background: #fff; }
ul.cards li.row-flex { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; }
ul.cards li.row-flex .avatar { vertical-align: middle; margin-right: 8px; }

.related { margin-top: 32px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.related h2 { margin: 0 0 10px; font-size: 20px; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* Foto zuschneiden */
.cropper { margin: 10px 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; max-width: 360px; }
.crop-canvas { display: block; width: 100%; max-width: 320px; height: auto; border-radius: 10px; border: 1px solid var(--line-strong); cursor: grab; touch-action: none; background: #fff; }
.crop-canvas:active { cursor: grabbing; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-weight: 600; }
.crop-zoom input { flex: 1; }
.section-head.first { margin-top: 0; }

.admin-row { display: flex; gap: 14px; align-items: center; margin-top: 8px; font-size: 14px; }
.admin-row form { margin: 0; }
.admin-row .link { padding: 0; }

/* Notfallmedikamente */
.g-cpr { --gc: #ff3b30; }
.g-ana { --gc: #ff9f1c; }
.g-sed { --gc: #4cc54a; }
.g-sz { --gc: #ffcc00; }
.g-nar { --gc: #c261e0; }
.g-air { --gc: #2ea8ff; }
.g-oth { --gc: #6b6b6b; }
.g-fl { --gc: #10c4de; }
.c-grau { background: #bdbdbd; color: #111; }
.c-rosa { background: #f6a9c6; color: #111; }
.c-rot { background: #e53935; color: #fff; }
.c-lila { background: #8e44ad; color: #fff; }
.c-gelb { background: #fdd835; color: #111; }
.c-weiss { background: #ffffff; color: #111; }
.c-blau { background: #1e88e5; color: #fff; }
.c-orange { background: #fb8c00; color: #111; }
.c-gruen { background: #43a047; color: #fff; }
#notfall form { display: grid; gap: 14px; max-width: 760px; }
.nf-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
#notfall label { display: grid; gap: 4px; font-weight: 600; }
#notfall .nf-step { font-weight: 700; margin: 8px 0 0; }
#notfall .nf-ages { display: flex; gap: 10px; }
#notfall .nf-ages label { flex: 1; }
.nf-broselow { display: flex; flex-wrap: wrap; gap: 8px; }
.nf-color { display: inline-flex; flex-direction: column; align-items: center; min-width: 78px; padding: 8px 10px; border: 2px solid var(--line-strong); border-radius: 10px; font: inherit; font-size: 14px; line-height: 1.25; cursor: pointer; }
.nf-color span { font-size: 12px; font-weight: 500; }
.nf-color.nf-none { background: #fff; color: var(--fg); justify-content: center; }
.nf-color[aria-pressed="true"] { outline: 4px solid var(--fg); outline-offset: 2px; }
.nf-weight { margin: 18px 0 4px; }
.nf-kg { display: inline-block; font-size: 30px; font-weight: 800; padding: 2px 14px; border-radius: 10px; background: #dbe9f1; color: #12384f; margin-right: 8px; }
.nf-warn { margin: 6px 0; padding: 8px 12px; border-radius: 8px; background: #fff3cd; color: #5c4400; font-weight: 600; }
.nf-group { margin: 22px 0; border: 3px solid var(--gc); border-radius: 12px; overflow: hidden; background: #fff; }
.nf-gh { margin: 0; padding: 8px 16px; background: var(--gc); color: #fff; font-size: 22px; font-weight: 800; }
.g-sz .nf-gh, .g-ana .nf-gh, .g-fl .nf-gh { color: #111; }
.nf-table { width: 100%; border-collapse: collapse; }
.nf-table th { text-align: left; font-size: 13px; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.nf-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.nf-table tr:last-child td { border-bottom: 0; }
.nf-app { display: block; font-size: 13px; color: var(--muted); }
.nf-dose { color: var(--muted); font-size: 15px; }
.nf-kid { font-size: 20px; font-weight: 800; white-space: nowrap; }
.nf-mlcell .ml { display: block; font-weight: 700; font-size: 17px; }
.nf-mlcell .conc { font-weight: 500; font-size: 13px; color: var(--muted); }
.nf-check td:first-child strong::after { content: " *"; }
.nf-blitz { margin: 22px 0 8px; padding: 12px 16px; border: 3px solid #c2007a; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.nf-blitz strong { color: #c2007a; }
@media (max-width: 700px) {
  .nf-table th:nth-child(2) { display: none; }
  .nf-table td.nf-dose { display: none; }
  .nf-table th, .nf-table td { padding: 8px; }
  .nf-kid { font-size: 18px; }
}
#nf-sheet { display: none; }
@media print {
  @page { size: A4; margin: 7mm; }
  html, body { background: #fff !important; }
  header.site, footer, .no-print, #notfall, .skip, nav, .profile-hint { display: none !important; }
  main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  #nf-sheet { display: block; font-size: 8.8pt; line-height: 1.2; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ps-head { display: flex; align-items: center; gap: 10px; margin-bottom: 3mm; }
  .ps-head h1 { font-size: 26pt; line-height: 1; margin: 0; }
  .ps-ver { font-size: 8pt; }
  .ps-logo { width: 14mm; height: 14mm; }
  .ps-logo svg { width: 100%; height: 100%; }
  .ps-pat { margin-left: auto; font-size: 10pt; line-height: 1.5; min-width: 70mm; border: 1.2pt solid #000; padding: 2mm 3mm; }
  .ps-src { font-size: 7.5pt; }
  .ps-table { width: 100%; border-collapse: collapse; }
  .ps-table th { background: #555; color: #fff; font-size: 8.5pt; padding: 1mm 1.5mm; text-align: left; }
  .ps-table td { white-space: nowrap; padding: 1.05mm 1.5mm; border-bottom: 0.4pt solid #999; }
  .ps-table tr:nth-child(even) td { background: #eee; }
  .ps-table th.ps-g { background: var(--gc); color: #fff; width: 6mm; padding: 0; border-bottom: 1pt solid #fff; }
  .ps-g span { writing-mode: vertical-rl; transform: rotate(180deg); display: block; margin: 0 auto; font-size: 9pt; font-weight: 800; text-align: center; }
  .g-sz .ps-g, .g-ana .ps-g, .g-fl .ps-g { color: #111; }
  .ps-table .ml { display: inline; margin-right: 6px; }
  .ps-table .conc { font-size: 7.5pt; }
  .ps-foot { margin-top: 3mm; display: flex; justify-content: space-between; gap: 8mm; font-size: 8pt; }
  .ps-blitz { border: 1.2pt solid #c2007a; padding: 1.5mm 3mm; white-space: nowrap; }
  .ps-note { text-align: right; font-style: italic; }
}
.nf-table { table-layout: fixed; }
.nf-table th:nth-child(1) { width: 34%; }
.nf-table th:nth-child(2) { width: 20%; }
.nf-table th:nth-child(3) { width: 20%; }
@media (max-width: 700px) { .nf-table th:nth-child(1) { width: 38%; } .nf-table th:nth-child(3) { width: 26%; } }
