/* ------------------------------------------------------------------ Schriften (lokal, OFL) */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: italic; font-display: swap;
}

/* ------------------------------------------------------------------ Tokens */
:root {
  --bg: #fffdf9;
  --surface: #ffffff;
  --text: #23323b;
  --muted: #5f6f78;
  --line: #ebe7e0;
  --primary: #1c6079;
  --primary-strong: #144b5f;
  --primary-bright: #2b93b8;
  --primary-soft: #e8f5fa;
  --accent: #e86f00;
  --accent-soft: #fff2e4;
  --sunny: #fff7ec;
  --shadow: 0 1px 2px rgb(60 50 30 / .04), 0 10px 28px -14px rgb(40 60 70 / .16);
  --shadow-lift: 0 2px 4px rgb(60 50 30 / .05), 0 20px 44px -18px rgb(40 60 70 / .26);

  /* Themenfarben aus der Palette von creative-it.solutions */
  --t0: #2b93b8; --t0-soft: #e2f3f9;
  --t1: #7c5cc4; --t1-soft: #efe8fb;
  --t2: #5f7f00; --t2-soft: #eef8cf;
  --t3: #d26a00; --t3-soft: #ffeedd;
  --t4: #c0574a; --t4-soft: #fbe9e6;
  --t5: #3f6fd8; --t5-soft: #e6eefd;

  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Charter, "Iowan Old Style", Georgia, serif;
  --radius: 18px;
  --wrap: 1180px;
  color-scheme: light;
}
/* Dunkelmodus: folgt dem Betriebssystem, per Umschalter oben rechts überstimmbar (siehe theme.js) */
:root[data-theme="dark"] {
    --bg: #0e191f;
    --surface: #15242c;
    --text: #e6eef2;
    --muted: #9db0ba;
    --line: #233641;
    --primary: #6cc3e0;
    --primary-strong: #9ad8ec;
    --primary-soft: #16323d;
    --accent: #ff9a36;
    --accent-soft: #3a2614;
    --sunny: #1a2328;
    --primary-bright: #6cc3e0;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / .3), 0 18px 40px -16px rgb(0 0 0 / .7);
    --t0: #7fcbe6; --t0-soft: #15323d;
    --t1: #c3a8f2; --t1-soft: #2a2140;
    --t2: #c4e95a; --t2-soft: #263214;
    --t3: #ffb066; --t3-soft: #3a2614;
    --t4: #f0a399; --t4-soft: #3a201d;
    --t5: #9cb8f7; --t5-soft: #1d2a45;
    color-scheme: dark;
}
.t-0 { --tc: var(--t0); --tc-soft: var(--t0-soft); }
.t-1 { --tc: var(--t1); --tc-soft: var(--t1-soft); }
.t-2 { --tc: var(--t2); --tc-soft: var(--t2-soft); }
.t-3 { --tc: var(--t3); --tc-soft: var(--t3-soft); }
.t-4 { --tc: var(--t4); --tc-soft: var(--t4-soft); }
.t-5 { --tc: var(--t5); --tc-soft: var(--t5-soft); }

/* ------------------------------------------------------------------ Basis */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.022em; text-wrap: balance; font-weight: 750; overflow-wrap: break-word; }
/* Lange deutsche Komposita („Stadtentwicklungsausschuss“) auf schmalen Bildschirmen trennen */
@media (max-width: 600px) { h1, h2, h3 { hyphens: auto; } }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); margin: .25em 0 .4em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin: .2em 0 .4em; }
[id] { scroll-margin-top: 90px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }
.wrap.narrow { max-width: calc(700px + 64px); }
.wrap.medium { max-width: calc(960px + 64px); }

.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0;
}
.eyebrow::before, .kicker::before { content: ""; width: 1.4rem; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.hint { color: var(--muted); font-size: .92rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15em .6em; border-radius: 99px; background: var(--accent-soft); color: var(--accent); margin-left: .4em; vertical-align: middle; }

.btn { display: inline-flex; align-items: center; gap: .4rem; font: 650 1rem/1 var(--sans); padding: .9rem 1.35rem; border-radius: 99px; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary-bright), var(--primary)); color: #fff; box-shadow: 0 10px 22px -10px var(--primary-bright); }
.btn-primary:hover { background: var(--primary-strong); color: #fff; }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-primary:hover { color: #0e191f; }
.btn-ghost { color: var(--text); border: 1.5px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ------------------------------------------------------------------ Kopf */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; font-weight: 750; letter-spacing: -.01em; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #2b93b8 60%, #ff9a36 140%); color: #fff; font: 800 .85rem/1 var(--sans); letter-spacing: .03em; box-shadow: 0 6px 14px -8px var(--primary); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav a, .nav-search { display: flex; align-items: center; color: var(--text); text-decoration: none; padding: .5rem .85rem; border-radius: 99px; font-size: .95rem; font-weight: 550; white-space: nowrap; }
.main-nav a:hover, .nav-search:hover { background: var(--primary-soft); color: var(--primary); }
.main-nav a[aria-current], .nav-search[aria-current] { background: var(--primary-soft); color: var(--primary); }
.header-tools { display: flex; align-items: center; gap: .15rem; }
.nav-search { justify-content: center; width: 40px; height: 40px; padding: 0; }
/* Handy: Logo und Werkzeuge oben, die Menüpunkte als eigene Zeile darunter */
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; gap: 0 .5rem; min-height: 0; padding-top: .5rem; }
  .header-tools { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: .25rem 0 .4rem; }
  .main-nav ul { justify-content: space-between; }
  .main-nav a { padding: .55rem .7rem; font-size: .92rem; }
  [id] { scroll-margin-top: 120px; }
}
@media (max-width: 340px) { .main-nav a { padding-inline: .5rem; } }

/* Hell/Dunkel-Umschalter */
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 99px; background: transparent; color: var(--text); cursor: pointer; }
.theme-toggle:hover { background: var(--primary-soft); color: var(--primary); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(40rem 26rem at 90% 5%, color-mix(in srgb, #55b7d9 30%, transparent), transparent 70%),
    radial-gradient(32rem 24rem at 65% 100%, color-mix(in srgb, #ffc078 34%, transparent), transparent 70%),
    radial-gradient(34rem 24rem at 0% 0%, color-mix(in srgb, #d6c4f7 34%, transparent), transparent 70%),
    radial-gradient(28rem 20rem at 20% 100%, color-mix(in srgb, #dcf28f 26%, transparent), transparent 70%),
    var(--bg);
}
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .hero-inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); } }
.hero h1 { max-width: 17ch; }
.hero-lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.hero-lead p { margin: 0 0 1em; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-portrait { margin: 0; justify-self: center; position: relative; width: min(100%, 340px); aspect-ratio: 1; }
.hero-portrait::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: conic-gradient(from 200deg, #55b7d9, #bc9dee, #ff9a36, #bee729, #55b7d9); opacity: .9; }
.hero-portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid var(--bg); display: block; }
/* margin: Platz für den Farbring (inset -10px), damit er am Textrand beginnt und nicht am Bildschirmrand */
@media (max-width: 859px) { .hero-portrait { width: 180px; order: -1; justify-self: start; margin: 10px 0 0 10px; } }

/* ------------------------------------------------------------------ Abschnitte */
.section { margin-top: clamp(3rem, 7vw, 5.5rem); }
.section-head { margin-bottom: 1.8rem; }
.section-head h2 { margin-bottom: .2em; }
.section-intro { color: var(--muted); max-width: 62ch; margin: .3rem 0 0; font-size: 1.05rem; }
.more { display: inline-block; margin-top: 1.2rem; font-weight: 650; text-decoration: none; }
.band { margin-top: clamp(3rem, 7vw, 5.5rem); padding-block: clamp(2.5rem, 6vw, 4.5rem); background: linear-gradient(180deg, var(--sunny), var(--primary-soft) 55%, var(--bg)); }
.band-soft { background: linear-gradient(180deg, var(--bg), var(--sunny) 35%, var(--bg)); }
.split { display: grid; gap: 3rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4rem; } }

/* ------------------------------------------------------------------ Karten */
.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; text-decoration: none; }
.card-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; display: block; }
.card-art {
  aspect-ratio: 16 / 7; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--tc) 55%, transparent) 0 18%, transparent 19%),
    radial-gradient(circle at 15% 110%, color-mix(in srgb, var(--tc) 35%, transparent) 0 30%, transparent 31%),
    linear-gradient(135deg, var(--tc-soft), color-mix(in srgb, var(--tc-soft) 60%, var(--surface)));
}
.card-year { position: absolute; left: 1.2rem; bottom: .2rem; font: 800 3.4rem/1 var(--sans); letter-spacing: -.04em; color: color-mix(in srgb, var(--tc) 70%, transparent); }
.card-body { padding: 1.2rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0; font-size: .82rem; color: var(--muted); }
.card h3 { font-size: 1.28rem; margin: 0; line-height: 1.25; transition: color .15s; }
.card:hover h3 { color: var(--primary); }
.excerpt { margin: 0; color: var(--muted); font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-more { margin-top: auto; padding-top: .4rem; font-weight: 700; font-size: .92rem; color: var(--primary); }
@media (min-width: 1000px) {
  .card-large { grid-column: span 2; }
  .card-large .card-art { aspect-ratio: 16 / 6; }
  .card-large h3 { font-size: 1.7rem; }
}

.pill { display: inline-flex; align-items: center; padding: .22rem .7rem; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--tc-soft, var(--primary-soft)); color: var(--tc, var(--primary)); text-decoration: none; }
a.pill:hover { text-decoration: none; filter: brightness(.97); color: var(--tc); }

/* ------------------------------------------------------------------ Themen */
.topic-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.topic-tile { display: flex; flex-direction: column; gap: .3rem; padding: 1.15rem 1.25rem; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--text); border-left: 5px solid var(--tc); transition: transform .15s, box-shadow .15s; }
.topic-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--text); text-decoration: none; }
.topic-name { font-weight: 750; font-size: 1.08rem; }
.topic-count { font-size: .85rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.chips a, .chip { display: inline-flex; gap: .4rem; align-items: baseline; padding: .35rem .85rem; border-radius: 99px; text-decoration: none; color: var(--text); font-size: .9rem; font-weight: 600; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.chips a span { color: var(--muted); font-size: .78rem; font-weight: 500; }
.chips a:hover { box-shadow: inset 0 0 0 1.5px var(--tc, var(--primary)); color: var(--tc, var(--primary)); text-decoration: none; }
.chips a[aria-current] { background: var(--tc, var(--primary)); color: var(--surface); box-shadow: none; }
.chips a[aria-current] span { color: inherit; opacity: .8; }

/* ------------------------------------------------------------------ Jahresbalken */
.year-bars { list-style: none; margin: 0 0 .8rem; padding: 1.2rem 1rem .8rem; display: flex; align-items: flex-end; gap: .35rem; height: 190px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.year-bars li { flex: 1; height: 100%; }
.year-bars a { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .35rem; height: 100%; text-decoration: none; color: var(--muted); font-size: .75rem; font-weight: 650; }
.year-bars .bar { width: 100%; max-width: 28px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #55b7d9, var(--primary)); transition: filter .15s, transform .15s; transform-origin: bottom; }
.year-bars a:hover .bar { background: linear-gradient(180deg, #ffb066, var(--accent)); }
.year-bars a:hover { color: var(--accent); }
.h-1 { height: 10%; } .h-2 { height: 20%; } .h-3 { height: 30%; } .h-4 { height: 40%; } .h-5 { height: 50%; }
.h-6 { height: 60%; } .h-7 { height: 70%; } .h-8 { height: 80%; } .h-9 { height: 90%; } .h-10 { height: 100%; }

/* ------------------------------------------------------------------ Listen */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-row { display: grid; grid-template-columns: 6.2rem 1fr; gap: .2rem 1.2rem; padding: .95rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.post-row time { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.post-row a { color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.04rem; line-height: 1.35; }
.post-row a:hover { color: var(--primary); }
.post-row.has-thumb { grid-template-columns: 6.2rem 1fr 88px; }
.row-thumb { width: 88px; height: 62px; object-fit: cover; border-radius: 10px; align-self: center; box-shadow: var(--shadow); }
.row-meta { display: flex; align-items: center; gap: .35rem; margin-top: .25rem; font-size: .82rem; color: var(--muted); }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--tc); display: inline-block; }
@media (max-width: 520px) {
  .post-row, .post-row.has-thumb { grid-template-columns: 1fr 72px; }
  .post-row time { grid-column: 1 / -1; }
  .post-row:not(.has-thumb) { grid-template-columns: 1fr; }
  .row-thumb { width: 72px; height: 54px; }
}

.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1.8rem; }
.archive-layout { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .archive-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; } }
.aside-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .8rem; }
.aside-title:not(:first-child) { margin-top: 2rem; }
.archive-aside { align-self: start; position: sticky; top: 92px; }
.aside-card { display: grid; gap: .2rem; padding: .9rem 1.1rem; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text); text-decoration: none; }
.aside-card span { color: var(--muted); font-size: .88rem; }
.aside-card:hover { box-shadow: inset 0 0 0 1.5px var(--primary); text-decoration: none; }
.aside-card:hover strong { color: var(--primary); }
@media (max-width: 899px) { .archive-aside { position: static; order: -1; } }
.year-block { margin-bottom: 2.8rem; }
.year-block h2 { font-size: 2rem; margin: 0 0 .2rem; color: var(--primary); }

.search-form { display: flex; align-items: center; gap: .5rem; margin-top: 1.4rem; padding: .4rem .4rem .4rem 1.1rem; background: var(--surface); border-radius: 99px; box-shadow: var(--shadow); }
.search-form .search-icon { color: var(--muted); flex: none; }
.search-form input { flex: 1; min-width: 0; font: inherit; font-size: 1.08rem; padding: .7rem .4rem; border: 0; background: transparent; color: var(--text); }
.search-form input:focus { outline: none; }
.search-form input::-webkit-search-cancel-button { cursor: pointer; }
.search-form:focus-within { box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow); }
.search-form button { font: 650 1rem var(--sans); padding: .75rem 1.4rem; border: 0; border-radius: 99px; background: linear-gradient(135deg, var(--primary-bright), var(--primary)); color: #fff; cursor: pointer; }
:root[data-theme="dark"] .search-form button { color: #0e191f; }
.search-tips { color: var(--muted); font-size: .88rem; margin: .9rem 0 0 .4rem; }
/* Tastenkürzel nur dort erwähnen, wo es eine Tastatur gibt */
@media (hover: none) { .kbd-tip { display: none; } }
kbd { font: 600 .82em var(--sans); padding: .1em .45em; border-radius: 6px; background: var(--surface); box-shadow: inset 0 -1px 0 var(--line), 0 0 0 1px var(--line); color: var(--text); }

[data-search-results] { transition: opacity .15s; }
[data-search-results].loading { opacity: .55; }
.search-empty h2, .search-none h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 2rem 0 .8rem; }
.suggestion { font-size: 1.1rem; }
.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.result-count { color: var(--muted); margin: 0; }
.result-count strong { color: var(--text); }
.sort { margin: 0; font-size: .9rem; color: var(--muted); display: flex; gap: .7rem; }
.sort a { text-decoration: none; font-weight: 600; color: var(--muted); }
.sort a[aria-current] { color: var(--primary); text-decoration: underline; text-underline-offset: .3em; }
.facets { display: grid; gap: .6rem; margin: 1.1rem 0 .4rem; }
.chips-small a { font-size: .8rem; padding: .25rem .7rem; }
/* Handy: Filter-Chips als wischbare Zeile statt mehrerer Bildschirmhöhen */
@media (max-width: 600px) {
  .facets .chips, .archive-aside .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; scroll-padding-inline: 16px; }
  .facets .chips::-webkit-scrollbar, .archive-aside .chips::-webkit-scrollbar { display: none; }
  .facets .chips li, .archive-aside .chips li { flex: none; }
  .facets, .archive-layout { grid-template-columns: minmax(0, 1fr); }
  .archive-aside { min-width: 0; }
  .chips a, .chip { padding-block: .5rem; }
}

.results { list-style: none; padding: 0; margin: .4rem 0 0; }
.result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.result h2, .snippet { overflow-wrap: anywhere; }
.result.has-thumb { grid-template-columns: minmax(0, 1fr) 132px; align-items: start; }
.result-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 .35rem; font-size: .85rem; color: var(--muted); }
.result h2 { font-size: 1.3rem; margin: 0 0 .45rem; line-height: 1.3; }
.result h2 a { color: var(--text); text-decoration: none; }
.result h2 a:hover { color: var(--primary); }
.snippet { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.6; }
.result-thumb { width: 132px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .result.has-thumb { grid-template-columns: minmax(0, 1fr) 84px; } .result-thumb { width: 84px; } }
mark { background: color-mix(in srgb, #ffc078 55%, transparent); color: inherit; padding: 0 .12em; border-radius: 3px; }
:root[data-theme="dark"] mark { background: color-mix(in srgb, #ff9a36 40%, transparent); }
.meta { color: var(--muted); font-size: .88rem; margin: 0; }

/* ------------------------------------------------------------------ Artikel */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #55b7d9, var(--accent)); transform-origin: left; transform: scaleX(0); }

.article-head { padding-block: clamp(2.5rem, 7vw, 4.5rem) 1.2rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.article-head h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); }
.byline { color: var(--muted); font-size: .95rem; margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.edit-link { margin-left: auto; font-weight: 700; }
.archive-note { display: block; background: var(--sunny); border: 1px solid var(--accent-soft); color: var(--text); padding: .85rem 1.1rem; border-radius: 14px; font-size: .93rem; margin: 1.4rem 0 0; }
.archive-note strong { color: var(--accent); }

.cover { margin: 1rem 0 2.2rem; }
.cover img { width: 100%; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
figcaption { color: var(--muted); font: .88rem/1.45 var(--sans); margin-top: .6rem; }

.prose { font-family: var(--serif); font-size: 1.22rem; line-height: 1.75; font-optical-sizing: auto; overflow-wrap: break-word; hyphens: auto; }
.prose > :first-child { margin-top: 0; }
.prose > p:first-of-type { font-size: 1.36rem; line-height: 1.6; color: var(--text); }
.prose h2, .prose h3, .prose h4 { font-family: var(--sans); margin: 2.1em 0 .6em; hyphens: manual; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose table { margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.prose a { text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.prose blockquote { position: relative; margin-inline: 0; padding: 1.2rem 1.4rem 1.2rem 1.6rem; background: var(--primary-soft); border-radius: 0 14px 14px 0; border-left: 4px solid var(--primary); font-style: italic; display: flow-root; } /* flow-root: neben umflossenen Bildern nicht darunter schieben */
.prose blockquote > :last-child { margin-bottom: 0; }
.prose img { border-radius: 12px; display: block; }
.prose figure { margin-inline: 0; }
.prose figure.align-left, .prose img.align-left { float: left; max-width: 45%; margin: .3rem 1.5rem 1rem 0; }
.prose figure.align-right, .prose img.align-right { float: right; max-width: 45%; margin: .3rem 0 1rem 1.5rem; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.8rem 0; clear: both; }
.prose table { border-collapse: collapse; width: 100%; font: .95rem/1.5 var(--sans); display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .6rem .7rem; text-align: left; vertical-align: top; }
.prose th { background: var(--primary-soft); }
.prose code { font-size: .88em; background: var(--primary-soft); padding: .1em .35em; border-radius: 5px; }
.prose::after { content: ""; display: table; clear: both; }
.prose a[href$=".pdf"]::after { content: " PDF"; font: 700 .62em var(--sans); letter-spacing: .05em; padding: .1em .4em; margin-left: .25em; border-radius: 4px; background: var(--accent-soft); color: var(--accent); vertical-align: .15em; }
@media (max-width: 600px) {
  .prose { font-size: 1.12rem; }
  .prose > p:first-of-type { font-size: 1.22rem; }
  .prose figure.align-left, .prose figure.align-right, .prose img.align-left, .prose img.align-right { float: none; max-width: 100%; margin: 0 0 1.2em; }
}

/* ------------------------------------------------------------------ Autorenbox */
.author-box { display: flex; gap: 1.3rem; align-items: flex-start; margin-top: 3rem; padding: 1.5rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--primary-soft); }
.author-box p { margin: 0 0 .5rem; color: var(--muted); font-size: .97rem; }
.author-box .author-name { color: var(--text); font-weight: 750; font-size: 1.05rem; }
.author-links { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 0 !important; }
.author-links a { font-weight: 700; text-decoration: none; }
@media (max-width: 520px) { .author-box { flex-direction: column; } }

/* ------------------------------------------------------------------ Galerie */
.gallery { margin-top: 2.8rem; }
.gallery-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.gallery-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.gallery-grid figure { margin: 0; }
.gallery-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 12px; display: block; transition: transform .2s, box-shadow .2s; }
.gallery-grid a:hover img { transform: scale(1.02); box-shadow: var(--shadow-lift); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgb(8 16 20 / .9); backdrop-filter: blur(4px); }
.lightbox-inner { display: grid; place-items: center; height: 100%; padding: 3.5rem 1rem 1rem; }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); border-radius: 8px; }
.lightbox p { color: #dde7ec; text-align: center; margin: .7rem 0 0; font-size: .95rem; }
.lightbox button { position: fixed; background: rgb(255 255 255 / .14); color: #fff; border: 0; border-radius: 99px; width: 46px; height: 46px; font-size: 1.3rem; cursor: pointer; }
.lightbox button:hover { background: rgb(255 255 255 / .28); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; }
.lightbox .lb-next { right: 1rem; top: 50%; }

/* ------------------------------------------------------------------ Kommentare & Navigation */
.comments { margin-top: 3rem; }
.comments h2 { font-size: 1.3rem; }
.comments h2 small { color: var(--muted); font-weight: 500; font-size: .85rem; }
.comments ol { list-style: none; padding: 0; margin: 0; }
.comments li { background: var(--surface); border-radius: 16px; padding: 1.1rem 1.3rem; margin-bottom: .9rem; box-shadow: var(--shadow); }
.comment-head { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: .95rem; }
.comment-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .9rem; }
.comment-text { margin-top: .6rem; font-size: .98rem; overflow-wrap: anywhere; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.pager a { display: block; padding: 1.1rem 1.3rem; border-radius: 16px; text-decoration: none; color: var(--text); background: var(--surface); box-shadow: var(--shadow); font-weight: 650; line-height: 1.35; transition: transform .15s; }
.pager a span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; font-weight: 700; }
.pager a:hover { transform: translateY(-2px); color: var(--primary); }
.pager .next { grid-column: 2; text-align: right; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

/* ------------------------------------------------------------------ Fuß */
.site-footer { margin-top: clamp(4rem, 9vw, 7rem); background: linear-gradient(180deg, var(--sunny), var(--primary-soft)); border-top: 1px solid var(--line); padding-top: 3rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.2fr .8fr 1.2fr; align-items: start; } }
.footer-about p { color: var(--muted); max-width: 36ch; }
.footer-nav h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: .4rem 0 .9rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-nav a { color: var(--text); text-decoration: none; font-weight: 550; display: inline-block; padding-block: .4rem; }
.footer-nav a:hover { color: var(--primary); }
.footer-company { display: flex; flex-direction: column; gap: .3rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); text-decoration: none; color: var(--text); background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #55b7d9, #bc9dee, #ff9a36) border-box; border: 2px solid transparent; transition: transform .15s, box-shadow .15s; }
.footer-company:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--text); text-decoration: none; }
.fc-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.fc-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--primary); }
.fc-claim { color: var(--muted); font-size: .92rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: baseline; margin-top: 2.5rem; padding-block: 1.4rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: inherit; display: inline-block; padding-block: .45rem; }
.footer-note { margin-left: auto !important; }

@media print {
  .site-header, .site-footer, .pager, .gallery, .progress, .band, .author-box { display: none; }
  body { background: #fff; color: #000; }
}
