/* =========================================================
   Gemeinsames Design-System · Dr. Edmund Bruns
   Farbwelt und Typografie der Startseite für alle Bereiche.
   ========================================================= */

:root {
  --ink: #14292c;
  --paper: #edf3f0;
  --paper-2: #dbe8e2;
  --cream: #fbfdfc;
  --line: rgba(23, 37, 31, .16);
  --muted: #667673;
  --green: #1f6d67;
  --green-2: #beded9;
  --gold: #c99d4b;
  --blue: #456f78;
  --brick: #b6674f;
  --violet: #64657f;
  --shadow: 0 22px 70px rgba(23, 37, 31, .14);
  --radius: 24px;
  --max: 1240px;

  /* Wird pro Bereich überschrieben */
  --accent: #1f6d67;
  --accent-soft: #d9eee2;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(213,163,63,.15), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(31,105,77,.12), transparent 27rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 999;
  padding: .8rem 1rem; background: var(--ink); color: #fff;
  border-radius: 999px; transition: top .2s; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

h1, h2, h3, h4, p { margin-top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 0;
  backdrop-filter: blur(18px);
  background: rgba(244, 240, 230, .8);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 32px rgba(23,37,31,.08); }
.nav { display: flex; align-items: center; gap: 18px; min-height: 54px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 800; letter-spacing: -.03em; white-space: nowrap;
}
.brand-mark {
  display: grid; place-items: center; width: 42px; aspect-ratio: 1;
  border-radius: 14px 14px 14px 4px; background: var(--ink); color: var(--paper);
  font-family: Georgia, serif; font-size: 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  padding: .55rem .75rem; border-radius: 999px; color: #33433c;
  text-decoration: none; font-size: .9rem; font-weight: 650;
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a.active {
  background: rgba(23,37,31,.075); outline: none;
}
.nav-links a.active { color: var(--ink); font-weight: 800; }
.menu-button {
  display: none; margin-left: auto; border: 1px solid var(--line);
  border-radius: 14px; background: rgba(255,255,255,.44); color: var(--ink);
  padding: .55rem .75rem; font: inherit; font-weight: 750;
}

/* ---------- Sekundäre Sprungnavigation (Chips) ---------- */
.chipnav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(237,243,240,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.chipnav-inner { display: flex; gap: 8px; overflow-x: auto; padding: 11px 0; }
.chipnav a {
  white-space: nowrap; text-decoration: none;
  padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.55); color: #33433c; font-size: .9rem; font-weight: 700;
}
.chipnav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.chipnav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Schlichter Home-Link im Kopf (ersetzt die zweite Menüzeile) */
.nav-home {
  margin-left: auto; padding: .55rem .95rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.5); color: #33433c;
  text-decoration: none; font-size: .9rem; font-weight: 750;
}
.nav-home:hover, .nav-home:focus-visible { background: var(--ink); color: #fff; border-color: var(--ink); outline: none; }

/* ---------- Hero ---------- */
.page-hero { padding: clamp(46px, 6vw, 84px) 0 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 12px 7px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.42); color: var(--green);
  font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px rgba(213,163,63,.15);
}
.page-hero h1 {
  max-width: 16ch; margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 6.4vw, 5.6rem); font-weight: 500;
  line-height: .95; letter-spacing: -.055em;
}
.page-hero h1 em { position: relative; color: var(--accent); font-style: italic; }
.page-hero h1 em::after {
  content: ""; position: absolute; left: 1%; right: -2%; bottom: -.07em;
  height: .1em; border-radius: 999px; background: var(--gold);
  transform: rotate(-1.2deg); opacity: .78;
}
.lead {
  max-width: 760px; margin: 0; color: #425149;
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Buttons ---------- */
.button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: .74rem 1.1rem;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 750;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.button:hover, .btn:hover, .button:focus-visible, .btn:focus-visible {
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,37,31,.18); outline: none;
}
.button.secondary, .btn.secondary {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.button.secondary:hover, .btn.secondary:hover { background: rgba(255,255,255,.5); }
.btn.disabled {
  background: rgba(23,37,31,.05); color: var(--muted);
  border-color: var(--line); cursor: not-allowed; pointer-events: none; transform: none;
}
.btn.small { min-height: 40px; padding: .5rem .8rem; font-size: .9rem; }

/* ---------- Sektionen ---------- */
.section { padding: clamp(46px, 7vw, 88px) 0; scroll-margin-top: 84px; }
.section.tight { padding: clamp(30px, 4vw, 48px) 0; }
.section-head { margin-bottom: 34px; max-width: 900px; }
.kicker {
  color: var(--accent); font-size: .78rem; font-weight: 850;
  letter-spacing: .11em; text-transform: uppercase; display: block; margin-bottom: 10px;
}
h2 {
  margin-bottom: 0; font-family: Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 500;
  line-height: 1; letter-spacing: -.04em;
}
.section-head p, .section-intro { margin: 16px 0 0; color: var(--muted); font-size: 1.06rem; max-width: 820px; }

/* ---------- Karten-Grid ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.auto { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.span-2 { grid-column: span 2; }
.span-full { grid-column: 1 / -1; }

/* ---------- Karte ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid rgba(23,37,31,.12);
  border-radius: var(--radius); padding: 24px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(23,37,31,.07);
  transition: transform .22s, box-shadow .22s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 24px 56px rgba(23,37,31,.12); }
.card.accent-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.card.accent-top { padding-top: 28px; }
.card h3 {
  font-family: Georgia, serif; font-size: 1.35rem; font-weight: 600;
  line-height: 1.15; margin: 6px 0 10px; letter-spacing: -.01em;
}
.card p { margin: 0 0 14px; color: #3b4740; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 4px 0 14px; padding-left: 1.15rem; color: #3b4740; }
.card ul li { margin-bottom: 4px; }
.mini { font-size: .92rem; color: var(--muted); }

/* Bildkarte / Media */
.media {
  margin: -24px -24px 16px; background: var(--paper-2);
  border-bottom: 1px solid var(--line); display: grid; place-items: center;
  min-height: 210px; overflow: hidden;
}
.media img { width: 100%; height: 260px; object-fit: contain; background: #fff; }
.card.compact .media img { height: 210px; }

/* ---------- Tags / Badges ---------- */
.tag, .badge {
  display: inline-flex; align-items: center; width: fit-content;
  padding: 5px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  font-size: .74rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase;
}
.tag.plain { background: rgba(23,37,31,.055); color: #48564f; border-color: transparent; text-transform: none; letter-spacing: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }

/* ---------- Linklisten ---------- */
.links { display: flex; flex-direction: column; gap: 9px; margin-top: auto; padding-top: 12px; }
.links.wrap { flex-direction: row; flex-wrap: wrap; }
.link {
  display: flex; gap: 12px; justify-content: space-between; align-items: center;
  border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.6);
  padding: 10px 13px; color: var(--ink); font-weight: 750; text-decoration: none;
  transition: background .16s, transform .16s;
}
.link:hover { background: var(--accent-soft); transform: translateX(2px); }
.link small { color: var(--muted); font-weight: 700; white-space: nowrap; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure {
  margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--cream); box-shadow: 0 10px 30px rgba(23,37,31,.06);
}
.gallery img { width: 100%; height: 250px; object-fit: contain; background: #fff; }
.gallery figcaption { padding: 11px 14px; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.wide img { height: 340px; }

/* ---------- Video-Grid ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.video-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--cream); box-shadow: 0 10px 30px rgba(23,37,31,.06); }
.video-wrap { position: relative; aspect-ratio: 16/9; background: #111; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { padding: 12px 15px; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Hinweis / Callout ---------- */
.note {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 12px 40px rgba(23,37,31,.07);
}
.note-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 1.4rem;
}
.note h3 { font-family: Georgia, serif; font-size: 1.35rem; margin: 0 0 8px; }
.note p { margin: 0; color: #3b4740; }

/* dunkles Statement-Band (Zitat) */
.statement { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); border-radius: var(--radius); padding: clamp(32px,5vw,56px); }
.statement .quote { margin: 0; font-family: Georgia, serif; font-size: clamp(1.7rem,3.6vw,3rem); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
.statement .quote em { color: #e2bd67; font-style: italic; }
.statement p { color: rgba(255,255,255,.75); margin: 18px 0 0; }

/* ---------- Zeitleiste (Publikationen) ---------- */
.timeline { display: grid; gap: 10px; }
.t-item { padding: 12px 15px; background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 13px; }
.t-item strong { color: var(--accent); }

/* ---------- Schnellzugriff-Kacheln ---------- */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.quick a {
  display: block; text-decoration: none; padding: 15px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.5);
  color: var(--ink); transition: transform .16s, box-shadow .16s;
}
.quick a:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(23,37,31,.1); }
.quick strong { display: block; font-weight: 800; }
.quick span { display: block; margin-top: 3px; color: var(--muted); font-size: .9rem; }

/* Poesie / Zitatblock (Lehrerzimmer) */
.poem { white-space: pre-line; background: rgba(255,255,255,.65); border: 1px solid var(--line); padding: 18px; border-radius: 16px; font-family: Georgia, serif; line-height: 1.55; }
.pull { font-family: Georgia, serif; font-size: 1.2rem; line-height: 1.35; background: rgba(255,255,255,.7); border-left: 5px solid var(--accent); padding: 16px 18px; border-radius: 12px; margin: 4px 0 12px; }
.story { columns: 2 340px; column-gap: 30px; }
.story p { break-inside: avoid; }

/* ---------- Schach-Bereich ---------- */
.sym-media {
  margin: -24px -24px 16px; min-height: 120px; display: grid; place-items: center;
  background:
    repeating-conic-gradient(rgba(23,37,31,.05) 0% 25%, transparent 0% 50%) 0 0 / 26px 26px,
    linear-gradient(135deg, var(--accent-soft), #fff);
  border-bottom: 1px solid var(--line); font-size: 2.6rem; color: var(--accent);
}
.group-title { font-family: Georgia, serif; font-size: 1.55rem; font-weight: 600; letter-spacing: -.01em; margin: 38px 0 16px; display: flex; align-items: center; gap: 11px; }
.group-title::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.group-title:first-of-type { margin-top: 6px; }
details.figure { border: 1px solid var(--line); border-radius: 16px; background: var(--cream); margin-bottom: 10px; overflow: hidden; }
details.figure summary { cursor: pointer; padding: 14px 18px; font-weight: 800; font-family: Georgia, serif; font-size: 1.1rem; list-style: none; }
details.figure summary::-webkit-details-marker { display: none; }
details.figure summary::before { content: "+ "; color: var(--accent); font-weight: 900; }
details.figure[open] summary::before { content: "– "; }
details.figure .fig-body { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 0 18px 18px; align-items: start; }
details.figure img { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
details.figure p { margin: 0; color: #3b4740; }
@media (max-width: 560px) { details.figure .fig-body { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.footer-title { max-width: 760px; margin-bottom: 12px; font-family: Georgia, serif; font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 500; line-height: 1; letter-sp