/* =========================================================
   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; display: inline-flex; align-items: center; gap: 6px; padding: .55rem .95rem;
.home-ico { flex: 0 0 auto; }
  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-spacing: -.04em; }
.footer-note { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.footer-links a { color: var(--muted); font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.copyright { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }

.backtop { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: grid; place-items: center; width: 46px; height: 46px; background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards, .cards.two, .cards.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .nav-links { display: none; width: 100%; }
  .menu-button { display: inline-flex; }
  .nav.open { flex-wrap: wrap; }
  .nav.open .nav-links {
    order: 3; display: grid; width: 100%; margin-top: 8px; padding: 10px;
    border: 1px solid var(--line); border-radius: 18px; background: var(--cream);
  }
  .nav.open .nav-links a { padding: .7rem .8rem; }
  .story { columns: 1; }
}
@media (max-width: 680px) {
  .shell { width: min(calc(100% - 22px), var(--max)); }
  .cards, .cards.two, .cards.four, .span-2, .span-full { grid-template-columns: 1fr; grid-column: auto; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure.wide { grid-column: auto; }
  .gallery figure.wide img, .gallery img { height: auto; }
  .note { grid-template-columns: 1fr; }
  .copyright { flex-direction: column; }
  .media { margin: -24px -24px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ================= Handy-Optimierung (ergänzt) ================= */
@media (max-width: 760px) {
  /* Alle Karten-Raster einspaltig und lesbar */
  .cards, .cards.two, .cards.four, .cards.auto { grid-template-columns: 1fr !important; }
  .span-2, .span-full { grid-column: auto !important; }
  .bio-grid, .contact-grid, .steps, .feature, .facts, .modules, .info-grid, .menu-band,
  .video-grid, .gallery { grid-template-columns: 1fr !important; }
  .gallery figure.wide { grid-column: auto; }
  .gallery img, .gallery figure.wide img, .media img, .card.compact .media img { height: auto; }
  .feature .media img { min-height: 0; }

  /* Überschriften fürs Handy: kleiner, umbruchsicher */
  .page-hero { padding: 36px 0 14px; }
  .page-hero h1 { max-width: none; font-size: clamp(2rem, 8.5vw, 2.9rem); line-height: 1.06; letter-spacing: -.02em; }
  .page-hero h1 em { white-space: normal; }
  .page-hero h1 em::after { bottom: 0; height: .07em; }
  h2 { font-size: clamp(1.6rem, 6.8vw, 2.3rem); line-height: 1.08; }
  .group-title { font-size: 1.3rem; margin: 26px 0 12px; }
  .card h3 { font-size: 1.2rem; }
  .footer-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .page-hero h1, h2, h3, .group-title, .footer-title, .card h3 {
    overflow-wrap: break-word; word-break: break-word; hyphens: auto;
  }
  .lead, .section-head p, .section-intro { font-size: 1.02rem; }

  /* Abstände */
  .section { padding: 40px 0; }
  .section.tight { padding: 26px 0; }
  .card { padding: 18px; }
  .media { margin: -18px -18px 14px; }
  .nav { gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .backtop { right: 12px; bottom: 12px; }
}

/* =========================================================
   Dunkelmodus und einfache Ansicht (UX-Layer)
   ========================================================= */
html[data-theme="dark"]{
  --ink:#e7efe9;
  --paper:#0f1c1a;
  --paper-2:#16261f;
  --cream:#16241f;
  --line:rgba(220,235,228,.16);
  --muted:#9fb2ab;
  --green:#5cb4a8;
  --green-2:#274b44;
  --gold:#d7b36a;
  --accent-soft:#1d3a33;
}
html[data-theme="dark"]{ background:var(--paper); }
html[data-theme="dark"] body{
  background:
    radial-gradient(circle at 8% 4%, rgba(213,163,63,.07), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(31,105,77,.10), transparent 27rem),
    var(--paper);
}
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .chipnav{ background:rgba(15,28,26,.86); }
html[data-theme="dark"] .chip,
html[data-theme="dark"] .nextprev a,
html[data-theme="dark"] .soon{ background:rgba(255,255,255,.05); }
html[data-theme="dark"] .card,
html[data-theme="dark"] .ballx{ background:var(--cream); }
html[data-theme="dark"] .blitz-embed{ background:#0a1727; }
html[data-theme="dark"] img{ filter:brightness(.92); }

html[data-reading="easy"]{ font-size:112%; }
html[data-reading="easy"] body{ line-height:1.85; letter-spacing:.008em; }
html[data-reading="easy"] p,
html[data-reading="easy"] li,
html[data-reading="easy"] .lead,
html[data-reading="easy"] .card p{ font-size:1.05em; }

/* Orientierung und persoenliche Randnotizen */
.orientation-box{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin:22px 0 4px;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:var(--line);box-shadow:var(--shadow)}
.orientation-item{padding:18px;background:var(--paper)}
.orientation-item strong{display:block;margin-bottom:6px;color:var(--accent);font-size:.82rem;letter-spacing:.06em;text-transform:uppercase}
.orientation-item p{margin:0;color:var(--muted);font-size:.94rem}
.orientation-item a{font-weight:800;color:var(--accent)}
.practice-note{margin:22px 0;padding:18px 20px;border-left:5px solid var(--accent);border-radius:0 14px 14px 0;background:var(--accent-soft)}
.practice-note strong{display:block;margin-bottom:5px;color:var(--accent)}
@media(max-width:760px){.orientation-box{grid-template-columns:1fr}}

/* Globale Bereichsnavigation */
.global-sections{display:flex;align-items:center;gap:6px;margin-left:auto}
.global-sections a{padding:8px 11px;border-radius:999px;color:var(--muted);font-size:.84rem;font-weight:750;text-decoration:none;white-space:nowrap}
.global-sections a:hover,.global-sections a:focus-visible,.global-sections a[aria-current="page"]{background:var(--accent-soft);color:var(--ink)}
@media(max-width:760px){.global-sections{order:3;width:100%;margin:8px 0 0;overflow:auto}.global-sections a{background:var(--paper);border:1px solid var(--line)}}

/* Mobile Kopfzeile: keine seitliche Ueberbreite durch Suche und Anzeigeoptionen */
@media(max-width:760px){
  html,body{max-width:100%;overflow-x:hidden}
  header .nav{flex-wrap:wrap;gap:8px;min-width:0}
  header .brand{min-width:0;max-width:calc(100% - 144px)}
  header .brand>span:last-child{overflow:hidden;text-overflow:ellipsis}
  header .nav-home{display:none}
  header .ebsearch-open{margin-left:auto!important;flex:0 0 40px;padding:0 11px}
  header .ebux{order:3;margin-left:auto!important;flex:0 0 auto}
  header .global-sections{order:4;max-width:100%;padding-bottom:3px}
  header .nav-links{order:5}
}

/* Ruhige Druckansicht fuer Fachtexte, Materiallisten und Projektseiten */
@media print{
  @page{margin:16mm}
  *{box-shadow:none!important;text-shadow:none!important}
  html,body{background:#fff!important;color:#111!important;font-size:11pt}
  .site-header,.site-footer,.chipnav,.backtop,.skip-link,.global-sections,.hero-actions,.filter-panel,button,iframe,video{display:none!important}
  main,.shell,.section,.page-hero{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  .card,.material,.orientation-box,.practice-note{break-inside:avoid;border-color:#aaa!important;background:#fff!important}
  h1,h2,h3{break-after:avoid;color:#111!important}
  p,li{orphans:3;widows:3}
  a{color:#111!important;text-decoration:underline}
  a[href^="http"]::after{content:" (" attr(href) ")";font-size:8pt;overflow-wrap:anywhere}
  img{max-width:100%!important;height:auto!important;break-inside:avoid}
}

/* Zugaenglichkeit: Screenreader-Text, Kennzeichnung externer Links, Fokus-Offset */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
a.ext-ind::after{content:"\00A0\2197";font-size:.82em;line-height:0;opacity:.75;}
html{scroll-padding-top:90px;}
:target{scroll-margin-top:90px;}
