/* ==========================================================================
   tieranwalt.at – Alternativentwurf C „Eine Stimme für Tiere“ (Entwurf)
   Redaktionell, kontrastreich, typografisch. Einstieg in dunklem Bordeaux, helle Inhalte, Türkis als Akzent.
   Schriften: DM Serif Display (Titel, Serif) · Public Sans (Text und Bedienung)
   ========================================================================== */

:root {
  --ink: #2A1024;
  --ink-2: #3A1A33;
  --paper: #F5F0E8;
  --paper-2: #ECE4D8;
  --surface: #FFFFFF;
  --text: #2A1C23;
  --text-soft: #5C5156;
  --on-dark: #F5F0E8;
  --on-dark-soft: rgba(245, 240, 232, 0.72);
  --brand: #840047;
  --brand-bright: #C2186F;
  --brand-tint: #F6E6EE;
  --teal-bright: #6FC8C8;
  --teal: #1D6B74;
  --teal-tint: #E1EFF0;
  --alert: #D1203B;
  --line: rgba(42, 16, 36, 0.14);
  --line-dark: rgba(245, 240, 232, 0.18);

  --font-display: "DM Serif Display", "Georgia", "Times New Roman", serif;
  --font-text: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --fs-hero: clamp(2.75rem, 1.4rem + 5.6vw, 6.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --fs-h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 84rem;
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font-text); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: var(--fs-hero); letter-spacing: -0.005em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
em.accent { font-style: italic; font-weight: 400; color: var(--brand-bright); }

:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible { outline-color: var(--teal-bright); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 200; padding: 0.75rem 1rem; background: var(--teal-bright); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 1rem; color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }


/* ---------- Kopf (dunkel) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ink); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.logo img { height: 2.6rem; width: auto; }
.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: 1.75rem; }
.primary-nav a { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.01em; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.45rem; height: 2px; background: var(--teal-bright); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.75rem; border: 1px solid var(--line-dark); border-radius: 4px; background: transparent; color: inherit; font: inherit; font-weight: 500; cursor: pointer; }
.icon-btn:hover { border-color: currentColor; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .txt { display: none; }
@media (min-width: 480px) { .icon-btn .txt { display: inline; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0 1.25rem; border: 0; border-radius: 4px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .18s ease, transform .18s ease; }
.btn:hover { background: var(--brand-bright); color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn { white-space: nowrap; }
.btn--teal { background: var(--teal-bright); color: var(--ink); }
.btn--teal:hover { background: #86D4D4; color: var(--ink); }
.btn--alert { background: var(--alert); }
.btn--alert:hover { background: #A8162F; }
.btn--outline { background: transparent; color: var(--on-dark); border: 1.5px solid currentColor; }
.btn--outline:hover { background: var(--on-dark); color: var(--ink); }
.btn--big { min-height: 3.5rem; padding: 0 1.75rem; font-size: 1.0625rem; }
.btn-help .short { display: inline; } .btn-help .long { display: none; }
@media (min-width: 720px) { .btn-help .short { display: none; } .btn-help .long { display: inline; } }
@media (min-width: 1024px) { .primary-nav { display: block; margin-left: 1.5rem; } .js-menu { display: none; } }

.menu-dialog { border: 0; padding: 0; width: min(100%, 26rem); max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; background: var(--ink); color: var(--on-dark); }
.menu-dialog::backdrop { background: rgba(42, 16, 36, 0.6); }
.menu-dialog__inner { padding: 1.25rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: 1.5rem; min-height: 100%; }
.menu-dialog__head { display: flex; justify-content: space-between; align-items: center; }
.menu-dialog nav a { display: flex; justify-content: space-between; align-items: center; min-height: 3.5rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; }
.menu-dialog nav a::after { content: "→"; color: var(--teal-bright); font-family: var(--font-text); }
.menu-dialog .secondary a { font-family: var(--font-text); font-size: 1rem; font-weight: 500; }

.header-search { display: none; border-top: 1px solid var(--line-dark); padding-block: 1rem; }
.header-search.is-open { display: block; }

/* ---------- Dunkler Einstieg ---------- */
.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 85% 110%, rgba(132, 0, 71, 0.45), transparent 65%),
    linear-gradient(90deg, var(--ink) 0%, var(--ink) 30%, rgba(42, 16, 36, 0.82) 55%, rgba(42, 16, 36, 0.35) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(42, 16, 36, 0) 35%);
}
.hero::after {
  /* feines Korn, damit die dunkle Fläche nicht flach wirkt */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}
.hero .wrap { position: relative; z-index: 2; }
.hero::before, .hero::after { z-index: 1; }
.hero__photo { position: absolute; inset: 0; z-index: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 45%; opacity: 0.55; filter: saturate(0.85); }
@media (min-width: 1024px) { .hero__photo img { object-position: 80% 45%; } }
.hero__grid { display: grid; gap: 2.5rem; }
.overline { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 1.25rem; }
.overline::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; }
.hero h1 { max-width: 14ch; margin-bottom: 1.25rem; color: var(--on-dark); }
.hero .lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); max-width: 34rem; color: var(--on-dark-soft); margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* „Jetzt wichtig“-Tafel */
.panel { background: rgba(42, 16, 36, 0.55); border: 1px solid var(--line-dark); border-radius: 6px; padding: 1.5rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.panel h2 { font-family: var(--font-text); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 1rem; font-weight: 700; }
.panel ol { display: grid; }
.panel li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.9rem 0; border-top: 1px solid var(--line-dark); }
@media (max-width: 479px) { .panel li { grid-template-columns: 2.5rem minmax(0, 1fr); } .panel a.tel { grid-column: 2; justify-self: start; } }
.panel li:first-child { border-top: 0; padding-top: 0; }
.panel .n { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--on-dark-soft); }
.panel strong { display: block; font-weight: 600; }
.panel span.s { display: block; font-size: 0.8125rem; color: var(--on-dark-soft); }
.panel a.tel { color: var(--on-dark); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem; padding: 0 0.75rem; border: 1px solid var(--line-dark); border-radius: 4px; }
.panel a.tel:hover { border-color: var(--on-dark); }
.panel a.tel svg { width: 16px; height: 16px; }
.panel a.tel.is-alert { background: var(--alert); border-color: var(--alert); }
.panel .foot { margin: 1rem 0 0; font-size: 0.8125rem; color: var(--on-dark-soft); }
.panel .foot a { color: var(--on-dark); }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 4rem; } }

/* Suche als Zeile unter dem Einstieg */
.searchline { background: var(--ink-2); color: var(--on-dark); border-top: 1px solid var(--line-dark); }
.searchline .wrap { display: grid; gap: 0.75rem; padding-block: 1.25rem; }
.searchline label { font-family: var(--font-display); font-size: 1.25rem; }
.search__row { display: flex; gap: 0.5rem; }
.search__field { position: relative; flex: 1; }
.search__field svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 20px; height: 20px; opacity: 0.7; pointer-events: none; }
.input { width: 100%; min-height: 3.25rem; padding: 0 1rem 0 3rem; border: 1.5px solid var(--line-dark); border-radius: 4px; background: rgba(245, 240, 232, 0.08); color: var(--on-dark); font: inherit; font-size: 1.0625rem; }
.input::placeholder { color: var(--on-dark-soft); }
.input:focus { outline: none; border-color: var(--teal-bright); box-shadow: 0 0 0 4px rgba(111, 200, 200, 0.3); }
.searchline .examples { margin: 0; font-size: var(--fs-small); color: var(--on-dark-soft); display: flex; flex-wrap: wrap; gap: 0.3rem 0.75rem; }
.searchline .examples a { color: var(--on-dark); }
@media (min-width: 720px) { .searchline .wrap { grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; } .searchline .examples { grid-column: 3; } }
@media (max-width: 479px) { .search__row { flex-direction: column; } }

/* ---------- Abschnitte mit Nummern ---------- */
.section { padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.section--flush { border-top: 0; }

/* Bänder auf der Startseite: abwechselnd Sand und Weiß, Überschrift in Bordeaux bzw. Teal */
.band { border-top: 0; }
.band--sand { background: var(--paper-2); }
.band--sand .section-head h2 { color: var(--brand); }
.band--white { background: var(--surface); }
.band--white .section-head h2 { color: var(--teal); }
.section-head { display: grid; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--text-soft); max-width: 40rem; }
.section-head .link-arrow { justify-self: start; }
@media (min-width: 1024px) { .section-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } .section-head p { grid-column: 1; } .section-head .link-arrow { grid-column: 2; grid-row: 1; } }
.link-arrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; color: var(--brand); }
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Anliegen als große typografische Zeilen */
.ways { border-top: 1px solid var(--line); }
.way { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); transition: padding-left .2s ease; }
.way:hover { padding-left: 0.5rem; }
.way h3 { margin: 0; grid-column: 1; font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.75rem); }
.way h3 a { color: var(--text); text-decoration: none; }
.way h3 a::after { content: ""; position: absolute; inset: 0; }
.way:has(a:focus-visible) { outline: 3px solid var(--teal-bright); outline-offset: 2px; }
.way a:focus-visible { outline: none; }
.way p { margin: 0; color: var(--text-soft); max-width: 44rem; grid-column: 1; }
.way .go { grid-column: 2; grid-row: 1 / span 2; width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid var(--text); display: grid; place-items: center; transition: background-color .18s ease, color .18s ease; }
.way .go svg { width: 20px; height: 20px; }
.way:hover .go { background: var(--brand); border-color: var(--brand); color: #fff; }
.way--urgent .go { border-color: var(--brand); color: var(--brand); }
.tag { display: inline-flex; align-items: center; min-height: 1.6rem; padding: 0 0.6rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); background: var(--teal-tint); border-radius: 3px; }
.tag--alert { color: #8E1428; background: #FBE3E7; }

/* Tierarten als Lauftext-Index */
.index { display: grid; gap: 0; border-top: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.index a:hover { color: var(--brand); }
.index .pic { display: block; width: 6rem; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--teal-tint); }
.index .t { display: grid; gap: 0.2rem; }
.index strong { font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; line-height: 1.15; }
.index .s { font-size: var(--fs-small); color: var(--text-soft); }
.index .go { width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid var(--text); display: grid; place-items: center; color: var(--text); transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.index .go svg { width: 20px; height: 20px; }
.index a:hover .go { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (min-width: 720px) { .index { grid-template-columns: 1fr 1fr; column-gap: 3rem; } .index a:nth-child(-n+2) { border-top: 0; } }
@media (min-width: 1024px) { .index { grid-template-columns: 1fr 1fr 1fr; } }

/* Rechtsfall als redaktionelles Feature */
.cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.cases a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 1rem; row-gap: 0; padding: 0.9rem 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.cases a::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; font-size: 1.25rem; color: var(--text-soft); transition: color .18s ease, transform .18s ease; }
.cases a:hover { color: var(--brand); }
.cases a:hover::after { color: var(--brand); transform: translateX(3px); }
.cases strong { display: block; grid-column: 1; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.2; }
.cases .meta { display: block; grid-column: 1; margin-top: 0.2rem; font-size: var(--fs-small); color: var(--text-soft); }
@media (min-width: 900px) { .cases { grid-template-columns: 1fr 1fr; column-gap: 3rem; } .cases li:nth-child(-n+2) a { border-top: 0; } }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
@media (max-width: 599px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.stats a { display: grid; gap: 0.25rem; padding: 1.25rem 0; border-top: 2px solid var(--text); color: var(--text); text-decoration: none; }
.stats a:hover { border-top-color: var(--brand); color: var(--brand); }
.stats b { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); line-height: 1; }
.stats span { font-size: var(--fs-small); color: var(--text-soft); }

/* Aktuelles: Zeitungsspalten */
.columns { display: grid; gap: 2rem; }
.story { display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 2px solid var(--text); align-content: start; }
.story__img { margin: 0 0 0.5rem; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.story__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.story:hover .story__img img { transform: scale(1.03); }
.story .type { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.story h3 { font-size: 1.5rem; margin: 0; }
.story h3 a { color: var(--text); text-decoration: none; }
.story h3 a:hover { color: var(--brand); }
.story p { margin: 0; color: var(--text-soft); }
.story time { font-size: 0.8125rem; color: var(--text-soft); }
@media (min-width: 720px) { .columns { grid-template-columns: repeat(3, 1fr); } }

/* Über uns: Zitatblock */
.about { display: grid; gap: 2rem; }
.about blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.75rem); line-height: 1.2; font-weight: 400; font-style: italic; max-width: 22ch; }
.about blockquote cite { display: block; font-family: var(--font-text); font-style: normal; font-size: var(--fs-small); color: var(--text-soft); margin-top: 1rem; }
.about .text { max-width: var(--measure); }
@media (min-width: 1024px) { .about { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 4rem; align-items: start; } }

.place { display: grid; gap: 0.75rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.place--alert { border-left-color: var(--alert); }
.place h3 { margin: 0; font-size: 1.25rem; }
.place .role { margin: 0; color: var(--text-soft); font-size: var(--fs-small); }
.place dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 0.25rem 0 0; }
.place dt { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); padding-top: 0.3rem; }
.place dd { margin: 0; }
.place .tel { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 1.125rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.place .tel svg { width: 18px; height: 18px; flex: none; }
.place .checked { font-size: 0.8125rem; color: var(--text-soft); margin: 0.25rem 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-soft); padding-block: 3rem 6rem; }
.site-footer a { color: var(--on-dark); }
.footer-grid { display: grid; gap: 2rem; }
.site-footer h2 { font-family: var(--font-text); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 0.75rem; }
.site-footer address { font-style: normal; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); font-size: 0.875rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } .site-footer { padding-bottom: 3rem; } }

/* Mobile Aktionsleiste */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; padding: 0.5rem var(--gutter) max(0.5rem, env(safe-area-inset-bottom)); background: var(--ink); color: var(--on-dark); border-top: 1px solid var(--line-dark); }
.action-bar a { display: grid; justify-items: center; gap: 0.15rem; min-height: 3.25rem; padding: 0.4rem 0; border-radius: 4px; color: var(--on-dark); text-decoration: none; font-size: 0.75rem; font-weight: 700; }
.action-bar a svg { width: 22px; height: 22px; }
.action-bar a.is-alert { background: var(--alert); color: #fff; }
.action-bar a.is-brand { background: var(--brand); color: #fff; }
@media (min-width: 720px) { .action-bar { display: none; } }

/* ---------- Hilfeseite ---------- */
.page-hero { background: var(--ink); color: var(--on-dark); padding-block: 2rem clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50rem 24rem at 90% 120%, rgba(132, 0, 71, 0.5), transparent 65%); }
.page-hero .wrap { position: relative; }
.page-hero--photo { isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; margin: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 42%; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42, 16, 36, 0.96) 0%, rgba(42, 16, 36, 0.9) 38%, rgba(42, 16, 36, 0.68) 68%, rgba(42, 16, 36, 0.5) 100%); }
@media (max-width: 899px) { .page-hero__bg::after { background: linear-gradient(180deg, rgba(42, 16, 36, 0.94) 0%, rgba(42, 16, 36, 0.88) 60%, rgba(42, 16, 36, 0.82) 100%); } }
.breadcrumb { font-size: var(--fs-small); color: var(--on-dark-soft); margin-bottom: 1.5rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin: 0 0.6em; opacity: 0.5; }
.breadcrumb a { color: var(--on-dark-soft); }
.page-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 5rem); max-width: 16ch; color: var(--on-dark); }
.page-hero .lead { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem); color: var(--on-dark-soft); max-width: var(--measure); margin: 0; }
.page-hero__grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .page-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 4rem; } }

.emergency { display: grid; gap: 1rem; padding: 1.5rem; background: var(--surface); color: var(--text); border-left: 6px solid var(--alert); }
.emergency h2 { margin: 0; font-size: 1.5rem; }
.emergency p { margin: 0; }
.emergency strong { font-size: 1.25em; }

.layout { display: grid; gap: 2.5rem; padding-block: clamp(2rem, 5vw, 4rem) 3rem; }
@media (min-width: 1024px) { .layout { grid-template-columns: 16rem minmax(0, 1fr); gap: 5rem; } .layout__aside .sticky { position: sticky; top: 6rem; } }

.chapter { display: grid; gap: 1rem; padding-block: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 5.5rem; }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter h2 { margin: 0; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); }
.chapter h2 small { display: block; font-family: var(--font-text); font-size: 1rem; font-weight: 400; color: var(--text-soft); margin-top: 0.5rem; letter-spacing: 0; }
.chapter > p, .chapter > ul { max-width: var(--measure); }
.chapter ul.bullets { list-style: disc; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.chapter--urgent h2 { color: var(--alert); }

.places { display: grid; gap: 1rem; }
@media (min-width: 900px) { .places { grid-template-columns: 1fr 1fr; } }

.checklist { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: var(--measure); }
.checklist li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: baseline; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.checklist b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--brand); }

.note { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; padding: 1rem 1.25rem; max-width: var(--measure); border-left: 4px solid currentColor; }
.note svg { width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; flex: none; }
.note h3 { font-family: var(--font-text); font-size: 1rem; font-weight: 700; margin: 0 0 0.25rem; }
.note p { margin: 0; font-size: var(--fs-small); }
.note--info { background: var(--teal-tint); color: #123F45; }
.note--important { background: var(--brand-tint); color: #5E0032; }

.aside-toc { display: grid; gap: 0.5rem; }
.aside-toc h2 { font-family: var(--font-text); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 0.5rem; }
.aside-toc ol { display: grid; gap: 0; border-top: 1px solid var(--line); }
.aside-toc li { border-bottom: 1px solid var(--line); }
.aside-toc a { display: flex; gap: 0.75rem; align-items: baseline; min-height: 2.75rem; padding: 0.6rem 0; color: var(--text); text-decoration: none; }
.aside-toc a:hover, .aside-toc a[aria-current="true"] { color: var(--brand); }
.aside-toc .place { margin-top: 1.5rem; }
.toc-mobile { border: 1px solid var(--line); background: var(--surface); margin-bottom: 1rem; }
.toc-mobile summary { padding: 0.9rem 1.25rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; color: var(--brand); }
.toc-mobile[open] summary::after { content: "–"; }
.toc-mobile ol { padding: 0 1.25rem 1rem; display: grid; gap: 0.5rem; }
@media (min-width: 1024px) { .toc-mobile { display: none; } }
@media (max-width: 1023px) { .aside-toc { display: none; } }

.more-help { display: grid; gap: 0; border-top: 1px solid var(--line); }
.more-help a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.more-help a:hover { color: var(--brand); }
.more-help strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.more-help span { font-size: var(--fs-small); color: var(--text-soft); }
.more-help a::after { content: "→"; font-size: 1.25rem; }

.toast { position: fixed; left: 50%; bottom: 5.5rem; translate: -50% 0; z-index: 300; max-width: calc(100% - 2rem); padding: 0.75rem 1.25rem; background: var(--teal-bright); color: var(--ink); font-size: var(--fs-small); font-weight: 600; }
@media (min-width: 720px) { .toast { bottom: 1.5rem; } }

@media (prefers-reduced-motion: no-preference) {
  .hero .overline, .hero h1, .hero .lead, .hero__cta, .hero .panel { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-delay: .06s; } .hero .lead { animation-delay: .12s; } .hero__cta { animation-delay: .18s; } .hero .panel { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media print {
  .draft-tab, .site-header, .action-bar, .site-footer, .toast, .toc-mobile, .aside-toc { display: none !important; }
  .hero, .page-hero { background: #fff; color: #000; }
}

/* ==========================================================================
   Themenportal, Rechtsfallliste, Rechtsfalldetail
   ========================================================================== */
.page-hero__fig { margin: 0; width: 100%; justify-self: end; }
.page-hero__fig img { display: block; width: 100%; height: auto; }
@media (min-width: 1024px) { .page-hero__grid:has(.page-hero__fig) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.page-hero .tags { margin-bottom: 1rem; }
.page-hero .tags li { background: rgba(245, 240, 232, 0.1); color: var(--on-dark); }
.summary { display: grid; gap: 0.75rem; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 4px solid var(--teal); margin-bottom: 2rem; }
.summary h2 { font-family: var(--font-text); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); margin: 0; }
.summary ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: 0.35rem; max-width: var(--measure); font-size: 1.0625rem; margin: 0; }
.summary p { margin: 0; max-width: var(--measure); font-size: 1.125rem; }
.chapter .link-arrow { justify-self: start; }
.chapter--prose p { max-width: var(--measure); font-size: 1.0625rem; }
.label--upper { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { display: inline-flex; align-items: center; min-height: 1.6rem; padding: 0 0.6rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); background: var(--teal-tint); border-radius: 3px; }
.lookback summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: 0.5rem 0; }
.more { margin: 1rem 0 0; }
.cards { display: grid; gap: 1.5rem 2rem; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards .story { border-top: 1px solid var(--line); }
.cards .story h3 { font-size: 1.25rem; }

/* Trefferliste */
.hits { display: grid; gap: 0; border-top: 1px solid var(--line); }
.hit { position: relative; display: grid; gap: 0.4rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.hit h2, .hit h3 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem); margin: 0; }
.hit h2 a, .hit h3 a { color: var(--text); text-decoration: none; }
.hit h2 a:hover, .hit h3 a:hover { color: var(--brand); }
.hit .meta { margin: 0; font-size: 0.8125rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.hit p { margin: 0; color: var(--text-soft); max-width: 70ch; }
.hit .tags { margin-top: 0.25rem; }
@media (min-width: 900px) {
  .hit { grid-template-columns: 10rem minmax(0, 1fr); column-gap: 2rem; }
  .hit .label--upper { grid-column: 1; grid-row: 1; }
  .hit .meta { grid-column: 1; grid-row: 2 / span 3; }
  .hit h2, .hit h3, .hit p, .hit .tags { grid-column: 2; }
}
mark { background: var(--teal-tint); color: inherit; padding: 0 0.1em; }

/* Datenbank */
.page-hero .searchform { margin-top: 1.5rem; max-width: 44rem; display: grid; gap: 0.5rem; }
.page-hero .searchform .examples { margin: 0; font-size: var(--fs-small); color: var(--on-dark-soft); display: flex; flex-wrap: wrap; gap: 0.3rem 0.75rem; }
.page-hero .searchform .examples a { color: var(--on-dark); }
.db { display: grid; gap: 2rem; padding-block: clamp(2rem, 5vw, 4rem) 3rem; }
@media (min-width: 1024px) { .db { grid-template-columns: 16rem minmax(0, 1fr); gap: 5rem; } .filters__aside { position: sticky; top: 6rem; align-self: start; } }
.filters__aside { display: none; }
@media (min-width: 1024px) { .filters__aside { display: block; } .js-filter-open { display: none; } }
.filters fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; border-top: 1px solid var(--line); }
.filters legend { font-family: var(--font-text); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); font-weight: 700; padding: 0.9rem 0 0.4rem; float: left; width: 100%; }
.check { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; min-height: 2.5rem; cursor: pointer; clear: both; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--brand); }
.check .count { font-size: 0.8125rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.check.is-zero { color: var(--text-soft); }
.filters__more { background: none; border: 0; padding: 0.25rem 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-bottom: 1rem; }
.results-count { margin: 0; font-family: var(--font-display); font-size: 1.5rem; flex: 1; }
.sort { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-small); }
.select { min-height: 2.75rem; padding: 0 2.25rem 0 0.9rem; border: 1.5px solid var(--line); border-radius: 4px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232A1C23' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.75rem center; color: var(--text); font: inherit; appearance: none; }
.btn--small { min-height: 2.75rem; padding: 0 1rem; font-size: var(--fs-small); }
.btn--secondary { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.btn--secondary:hover { background: var(--text); color: var(--paper); }
.active-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2rem; padding: 0 0.7rem; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--text); font: inherit; font-size: 0.8125rem; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--text); }
.chip svg { width: 14px; height: 14px; }
.chip--reset { background: transparent; border-style: dashed; }
.pagination { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1.5rem; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.75rem; border-radius: 4px; text-decoration: none; font-weight: 600; }
.pagination a { color: var(--text); border: 1px solid var(--line); }
.pagination a:hover { border-color: var(--text); }
.pagination span[aria-current] { background: var(--text); color: var(--paper); }
.pagination .is-disabled { color: var(--text-soft); }
.empty { padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty h2 { font-size: 1.75rem; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.filter-dialog { border: 0; padding: 0; width: min(100%, 28rem); max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; background: var(--paper); color: var(--text); }
.filter-dialog::backdrop { background: rgba(42, 16, 36, 0.6); }
.filter-dialog__inner { display: flex; flex-direction: column; min-height: 100%; }
.filter-dialog__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); border-bottom: 1px solid var(--line); }
.filter-dialog__head h2 { margin: 0; font-size: 1.5rem; }
.filter-dialog .icon-btn { border-color: var(--line); color: var(--text); }
.filter-dialog__body { padding: 1.25rem var(--gutter); flex: 1; overflow: auto; }
.filter-dialog__foot { display: flex; gap: 0.75rem; justify-content: flex-end; padding: 1rem var(--gutter); border-top: 1px solid var(--line); background: var(--surface); }

/* Rechtsfalldetail */
.page-hero .gz { font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 2vw, 2.75rem); color: var(--teal-bright); line-height: 1.1; word-break: break-word; margin-bottom: 1rem; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem 1.25rem; margin: 0; font-size: var(--fs-small); border-top: 1px solid var(--line-dark); padding-top: 1rem; }
.facts dt { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-soft); padding-top: 0.2rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.download { display: grid; gap: 0.75rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--teal); background: var(--teal-tint); color: #123F45; max-width: var(--measure); }
.download p { margin: 0; }
.download .btn { justify-self: start; text-align: left; }
.download .meta { font-weight: 400; font-size: 0.8125rem; opacity: 0.8; }
.note--stand { background: var(--paper-2); color: var(--text-soft); }
.pager { display: grid; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .pager { grid-template-columns: 1fr 1fr; } .pager a:last-child { text-align: right; } }
.pager a { display: grid; gap: 0.2rem; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 1.25rem; }
.pager a span { font-family: var(--font-text); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); font-weight: 700; }
.pager a:hover { color: var(--brand); }
.aside-block { margin-top: 1.5rem; }
.aside-block h2 { font-family: var(--font-text); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 0.5rem; }
.aside-block ul { border-top: 1px solid var(--line); }
.aside-block li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.aside-block a { color: var(--text); text-decoration: none; }
.aside-block a:hover { color: var(--brand); }
.aside-block .meta { color: var(--text-soft); font-size: 0.8125rem; }
@media (max-width: 1023px) { .aside-block { display: none; } }

/* Umschalter zwischen den Entwürfen (Entwurfs-Tab) */
.draft-switch { display: inline-flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.draft-switch__label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.draft-switch__seg { display: inline-flex; border: 1px solid rgba(42, 16, 36, 0.45); border-radius: 3px; overflow: hidden; }
.draft-switch__seg a, .draft-switch__seg span { display: inline-grid; place-items: center; min-width: 2.25rem; min-height: 1.75rem; padding: 0 0.5rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.draft-switch__seg a:hover { background: rgba(42, 16, 36, 0.12); }
.draft-switch__seg [aria-current] { background: var(--ink); color: var(--on-dark); }
.check > span:first-of-type { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 479px) { .facts { grid-template-columns: 1fr; gap: 0.15rem 0; } .facts dd { margin-bottom: 0.6rem; } }

/* ---------- Entwurfs-Tab am rechten Rand (nur Prototyp) ---------- */
.draft-tab { position: fixed; right: 0; top: 22vh; z-index: 200; display: flex; align-items: stretch; transform: translateX(calc(100% - 2.25rem)); transition: transform .7s cubic-bezier(.33, 0, .2, 1) .45s; font-size: 0.8125rem; line-height: 1.4; filter: drop-shadow(-4px 4px 14px rgba(0, 0, 0, 0.22)); }
.draft-tab:hover, .draft-tab:focus-within, .draft-tab.is-open { transform: translateX(0); transition: transform .25s ease-out 0s; }
.draft-tab__handle { flex: none; width: 2.25rem; margin: 0; padding: 1rem 0; border: 0; border-radius: 3px 0 0 3px; background: var(--teal-bright); color: var(--ink); cursor: pointer; display: grid; place-items: center; font: inherit; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.draft-tab__handle span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.draft-tab__handle:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.draft-tab__panel { width: 15rem; max-width: calc(100vw - 2.25rem); padding: 1rem 1.25rem 1.1rem; background: var(--teal-bright); color: var(--ink); display: grid; gap: 0.85rem; align-content: start; }
.draft-tab__panel strong { display: block; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--ink); }
.draft-tab__panel .draft-switch { margin-left: 0; }
.draft-tab__panel nav ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.draft-tab__panel nav a { display: block; padding: 0.3rem 0; color: var(--ink); text-decoration: none; }
.draft-tab__panel nav a:hover { text-decoration: underline; }
.draft-tab__panel nav a[aria-current] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.draft-tab__panel nav li:last-child { margin-top: 0.7rem; padding-top: 0.85rem; border-top: 1px solid rgba(42, 16, 36, 0.35); }
.draft-tab__panel nav li:last-child a { padding: 0.55rem 0.7rem; border-radius: 3px; background: var(--ink); color: var(--on-dark); font-weight: 700; }
.draft-tab__panel nav li:last-child a::before { content: "←"; margin-right: 0.55rem; }
.draft-tab__panel nav li:last-child a:hover, .draft-tab__panel nav li:last-child a:focus-visible { background: var(--ink-2); color: var(--on-dark); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .draft-tab { transition: none; } }

/* ==========================================================================
   Tiere & Alltag, Aktuelles, Über uns
   ========================================================================== */

/* Overline auf hellem Grund */
.overline--ink { color: var(--teal); }

/* Tiere & Alltag: Tierarten als großzügige Abschnitte, durch Hairlines getrennt */
.species { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.species__grid { display: grid; gap: 1.5rem 3rem; align-items: start; }
@media (min-width: 720px) { .species__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
@media (min-width: 1024px) { .species__grid { gap: 2rem 5rem; } }
.species__fig { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--teal-tint); }
.species__fig img { width: 100%; height: 100%; object-fit: cover; }
.species__body { display: grid; gap: 0.75rem; align-content: start; }
.species__body .overline { margin-bottom: 0; }
.species h2 { margin: 0; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.species h2 a { color: var(--text); text-decoration: none; }
.species h2 a:hover { color: var(--brand); }
.species__intro { margin: 0; color: var(--text-soft); max-width: var(--measure); font-size: 1.0625rem; }
.species .link-arrow { justify-self: start; margin-top: 0.25rem; }

/* Linkliste mit Pfeil (Beispielinhalte, Berichte) */
.linklist { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 40rem; margin-top: 0.5rem; }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; min-height: 3rem; padding: 0.6rem 0; color: var(--text); text-decoration: none; }
.linklist a::after { content: "→"; color: var(--text-soft); transition: color .18s ease, transform .18s ease; }
.linklist a:hover { color: var(--brand); }
.linklist a:hover::after { color: var(--brand); transform: translateX(3px); }
.linklist .kind { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.linklist .kind + span { display: block; }

/* Aktuelles: Filterzeile im dunklen Seitenkopf */
.filterbar { display: grid; gap: 1rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); }
@media (min-width: 900px) { .filterbar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.filter-types { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.filter-types a { position: relative; display: inline-flex; align-items: center; min-height: 2.5rem; color: var(--on-dark-soft); text-decoration: none; font-weight: 600; font-size: var(--fs-small); }
.filter-types a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.35rem; height: 2px; background: var(--teal-bright); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.filter-types a:hover { color: var(--on-dark); }
.filter-types a[aria-current] { color: var(--on-dark); }
.filter-types a:hover::after, .filter-types a[aria-current]::after { transform: scaleX(1); }
.filter-species { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-small); color: var(--on-dark-soft); }
.filter-species .select { min-width: 12rem; }

/* Aktuelles: Hauptspalte links, Kästen rechts */
@media (min-width: 1024px) { .layout--news { grid-template-columns: minmax(0, 1fr) 18rem; } .layout--news .layout__aside { order: 2; } }
.layout--news .layout__aside .sticky { display: grid; gap: 1.5rem; }
.layout__main > .section-head { margin-bottom: 1.5rem; }
.layout__main > .section-head h2 { color: var(--brand); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); }
.layout__main .columns { margin-bottom: 3rem; }
.feed-status { margin: 0 0 0.75rem; font-size: var(--fs-small); color: var(--text-soft); }

/* Datierte Beitragsliste */
.feed { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feed li { border-bottom: 1px solid var(--line); }
.feed a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; row-gap: 0.15rem; align-items: center; padding: 0.9rem 0; color: var(--text); text-decoration: none; }
.feed a::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; font-size: 1.25rem; color: var(--text-soft); transition: color .18s ease, transform .18s ease; }
.feed a:hover { color: var(--brand); }
.feed a:hover::after { color: var(--brand); transform: translateX(3px); }
.feed time { grid-column: 1; font-size: 0.8125rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.feed .body { grid-column: 1; display: grid; gap: 0.15rem; }
.feed .kind { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.feed strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.2; }
.feed p { margin: 0; font-size: var(--fs-small); color: var(--text-soft); max-width: 60ch; }
@media (min-width: 720px) {
  .feed a { grid-template-columns: 7rem minmax(0, 1fr) auto; align-items: start; }
  .feed time { grid-row: 1; padding-top: 0.3rem; }
  .feed .body { grid-column: 2; grid-row: 1; }
  .feed a::after { grid-column: 3; grid-row: 1; align-self: center; }
}
.feed li[hidden] { display: none; }
.place--teal { border-left-color: var(--teal); }
.place .when { margin: 0; font-family: var(--font-display); font-size: 1.125rem; color: var(--brand); }
.place ul.plain li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.place ul.plain li:last-child { border-bottom: 0; }
.place .btn { justify-self: start; }

/* Über uns: Zitat, Aufgaben, Team, Zeitleiste, Netzwerk */
.pullquote { margin: 1rem 0 0; padding-left: 1.5rem; border-left: 4px solid var(--brand); font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.2; font-style: italic; max-width: 26ch; color: var(--text); }
.pullquote cite { display: block; font-family: var(--font-text); font-style: normal; font-size: var(--fs-small); color: var(--text-soft); margin-top: 0.75rem; }
.tasks { display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: task; }
.tasks li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.25rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); counter-increment: task; }
.tasks li::before { content: counter(task, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--brand); padding-top: 0.15rem; }
.tasks h3 { margin: 0; font-size: 1.375rem; }
.tasks p { margin: 0; color: var(--text-soft); max-width: var(--measure); }
.team { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .team { grid-template-columns: 1fr 1fr; column-gap: 3rem; } .team li:nth-child(-n+2) { border-top: 0; } }
.team li { display: grid; gap: 0.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.team .name { margin: 0; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.15; }
.team .role { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.team p { margin: 0; font-size: var(--fs-small); color: var(--text-soft); }
.team .mail { font-size: var(--fs-small); overflow-wrap: anywhere; }
.team q { font-style: italic; }
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 48rem; }
.timeline li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 479px) { .timeline li { grid-template-columns: minmax(0, 1fr); } }
.timeline .year { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--brand); font-variant-numeric: tabular-nums; }
.timeline .year small { display: block; font-family: var(--font-text); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); margin-top: 0.25rem; }
.timeline strong { display: block; font-weight: 600; }
.timeline p { margin: 0; color: var(--text-soft); font-size: var(--fs-small); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); border-top: 1px solid var(--line); }
.table th, .table td { text-align: left; vertical-align: top; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.table th { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); font-weight: 700; }
.table td a { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody th { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: 0; text-transform: none; color: var(--text); font-weight: 400; }
.social { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; }
.chapter .checked { font-size: 0.8125rem; color: var(--text-soft); margin: 0; }

/* Mobil: Rasterspalten dürfen nicht breiter als der Viewport werden (Sortierfeld, Tabellen) */
.db > *, .layout > *, .chapter > *, .table-wrap { min-width: 0; max-width: 100%; }
.sort { flex-wrap: wrap; }
.sort select { min-width: 0; max-width: 100%; }
