/* =========================================================================
   steps24.de – Stylesheet

   Gestaltungsidee: eine ruhige Bühne. Die Startseite passt auf einen
   Bildschirm, die Inhalte liegen auf eigenen Bereichsseiten. Wenig Dekor,
   feine Haarlinien statt Schatten, Gold ausschließlich als Akzent.

   Aufbau: 1. Tokens  2. Reset  3. Layout  4. Kopf/Fuß  5. Bühne
           6. Inhaltsbausteine  7. Mobil  8. Druck
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design-Tokens

   Navy ist der Standard – nicht die Systemeinstellung. Bewusste
   Markenentscheidung; wer es hell möchte, schaltet einmal um, die Wahl
   bleibt im localStorage erhalten.
   ------------------------------------------------------------------------- */
:root {
  /* Marke – in beiden Schemata identisch */
  --gold: #f2910d;
  --gold-light: #f5c451;
  --gold-deep: #d97f06;
  --navy: #1c1b2d;

  /* Dunkles Schema mit ruhigem Kontrast (Standard).
     „Ruhig“ heißt: kein reines Weiß, keine sichtbaren Trennlinien – die
     Werte liegen aber alle weiterhin über der WCAG-AA-Schwelle. */
  --bg: #1c1b2d;
  --bg-alt: #232236;
  --surface: rgba(255, 255, 255, 0.045);
  --ink: #e8e7f0;
  --ink-soft: #a9a6b8;
  --accent-ink: #f5c451;
  --line: transparent;
  --line-soft: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.26);

  /* Gold-Schleier auf den Bereichskarten der Startseite.
     Die Werte sind ausgemessen: mehr Deckkraft drückt den Beschreibungstext
     über dem Wellenbild unter die WCAG-Schwelle von 4,5:1. */
  --area-veil: rgba(242, 145, 13, 0.16);
  --area-veil-hover: rgba(242, 145, 13, 0.22);

  /* Typografie */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --fs: 1; /* Faktor der Schriftgrößen-Steuerung */
  --step-0: calc(1rem * var(--fs));
  --step-1: calc(1.0625rem * var(--fs));
  --step-2: calc(1.3125rem * var(--fs));
  --step-3: calc(1.625rem * var(--fs));
  --step-4: calc(clamp(1.625rem, 1.1rem + 2vw, 2.25rem) * var(--fs));
  /* Bühnen-Überschrift: bleibt auch auf niedrigen Fenstern bezahlbar */
  --step-5: calc(clamp(1.75rem, 1rem + 2.4vw, 2.875rem) * var(--fs));

  /* Wellenmotiv der alten Website als Hintergrund. Der Verlauf darüber legt
     einen Schleier auf das Bild, damit die Schrift ruhig darauf liegt.
     Im hellen Schema wird die Variable auf `none` gesetzt. */
  --bg-layers: linear-gradient(
      180deg,
      rgba(28, 27, 45, 0.7) 0%,
      rgba(28, 27, 45, 0.38) 45%,
      rgba(28, 27, 45, 0.6) 100%
    ),
    url("/assets/img/bg-wave.png");

  /* Maße */
  --wrap: 68rem;
  --wrap-narrow: 44rem;
  --radius: 12px;
  --radius-lg: 16px;
  --space-section: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

/* Helles Schema – nur über den Umschalter */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --ink: #24232f;
  --ink-soft: #5c5a67;
  --accent-ink: #8a5100;
  --line: transparent;
  --line-soft: rgba(21, 20, 31, 0.1);
  --line-strong: rgba(21, 20, 31, 0.28);
  --bg-layers: none;
  /* Auf Weiß trägt der Schleier weiter – deshalb schwächer als im Navy */
  --area-veil: rgba(242, 145, 13, 0.13);
  --area-veil-hover: rgba(242, 145, 13, 0.22);
}

/* Verstärkter Kontrast – über das Barrierefreiheits-Menü.
   Erst hier werden die Trennlinien sichtbar. */
:root[data-contrast="high"] {
  --ink: #ffffff;
  --ink-soft: #d6d4e2;
  --accent-ink: #f7cf6d;
  --line: rgba(255, 255, 255, 0.28);
  --line-soft: rgba(255, 255, 255, 0.2);
  --line-strong: rgba(255, 255, 255, 0.55);
  --surface: rgba(255, 255, 255, 0.09);
  /* Bei hohem Kontrast tritt der Schleier zurück: der Untergrund des Textes
     soll dann so gleichmäßig wie möglich sein. */
  --area-veil: rgba(242, 145, 13, 0.08);
  --area-veil-hover: rgba(242, 145, 13, 0.14);
}

:root[data-contrast="high"][data-theme="light"] {
  --ink: #000000;
  --ink-soft: #3a3844;
  --accent-ink: #6d4000;
  --line: rgba(21, 20, 31, 0.3);
  --line-soft: rgba(21, 20, 31, 0.2);
  --line-strong: rgba(21, 20, 31, 0.6);
  --surface: #ffffff;
  --area-veil: rgba(242, 145, 13, 0.07);
  --area-veil-hover: rgba(242, 145, 13, 0.12);
}

/* -------------------------------------------------------------------------
   2. Reset und Grundlagen
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Grundgerüst jeder Seite: Kopf, dehnbarer Inhalt, Fuß am unteren Rand.
   100dvh statt 100vh wegen der ein- und ausfahrenden Adressleiste auf
   Mobilgeräten. */
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background-color: var(--bg);
  background-image: var(--bg-layers);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
}
h2 {
  font-size: var(--step-4);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 1.1em;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--accent-ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  padding-left: 1.25em;
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: #1c1b2d;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
}

/* -------------------------------------------------------------------------
   3. Layout
   ------------------------------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2.5rem, var(--wrap-narrow));
}

.section {
  padding-block: var(--space-section);
}

.eyebrow {
  display: block;
  margin-bottom: 0.85rem;
  font-size: calc(0.78rem * var(--fs));
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.lead {
  font-size: var(--step-1);
  color: var(--ink-soft);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------------------------------------------------------------
   4. Kopf- und Fußbereich

   Beide folgen dem Farbschema – feste Navy-Balken würden im hellen Schema
   die ruhige Fläche zerschneiden.
   ------------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding-block: 0.65rem;
}

.brand {
  flex: none;
  display: inline-flex;
  line-height: 0;
}

/* 3rem bleibt innerhalb der Kopfhöhe von 4.5rem abzüglich der Polsterung –
   das Logo wächst, der Kopf nicht. Wer hier weiter aufdreht, muss das
   Ein-Bildschirm-Maß der Startseite neu prüfen. */
.brand img {
  width: auto;
  height: 3rem;
}

/* Logo-Wechsel: im dunklen Schema die weiße, im hellen die Navy-Fassung.
   Das ausgeblendete Bild wird von Screenreadern nicht vorgelesen. */
.brand .logo-light {
  display: none;
}

:root[data-theme="light"] .brand .logo-dark {
  display: none;
}

:root[data-theme="light"] .brand .logo-light {
  display: inline;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--gold);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
  font-weight: 700;
}

.nav-toggle {
  display: none;
}

/* --- Werkzeuge oben rechts: Barrierefreiheit und Farbschema ---
   Zwei runde Symbolknöpfe, das Barrierefreiheits-Menü klappt darunter auf. */
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.25rem;
}

.toolbar__wrap {
  position: relative;
}

.tool-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
}

.tool-btn:hover {
  border-color: var(--gold);
  color: var(--accent-ink);
}

.tool-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Ausklappbares Menü. Deckende Fläche, weil es über dem Inhalt liegt. */
.a11y-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 1rem;
  width: max-content;
  min-width: 13rem;
  padding: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: calc(0.72rem * var(--fs));
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.a11y-row {
  display: flex;
  gap: 0.35rem;
}

.a11y-row button {
  flex: 1;
  min-width: 2.5rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.6rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: calc(0.85rem * var(--fs));
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.a11y-row button:hover {
  border-color: var(--gold);
  color: var(--accent-ink);
}

/* Aktive Stufe markieren – nicht nur farblich, sondern auch über die
   Rahmenstärke, damit sie ohne Farbwahrnehmung erkennbar bleibt. */
.a11y-row button[aria-pressed="true"] {
  border-color: var(--gold);
  border-width: 2px;
  color: var(--accent-ink);
}

/* Der Umschalter zeigt das Ziel, nicht den Ist-Zustand: im dunklen Schema
   die Sonne, im hellen den Mond. */
.icon-moon {
  display: none;
}

:root[data-theme="light"] .icon-sun {
  display: none;
}

:root[data-theme="light"] .icon-moon {
  display: block;
}

/* --- Fuß: nur Menü --- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.25rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Bewusst zurückhaltend: kleiner, leichter, mit etwas Laufweite.
   Die senkrechte Polsterung bringt die Klickfläche trotz kleiner Schrift auf
   die von WCAG 2.2 geforderten 24 px – reiner Text wäre nur 14 px hoch. */
.footer-nav a {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: calc(0.8rem * var(--fs));
  font-weight: 400;
  letter-spacing: 0.04em;
}

.footer-nav a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   5. Bühne der Startseite

   Füllt den Raum zwischen Kopf und Fuß und zentriert den Inhalt. Die
   senkrechten Abstände rechnen mit vh, damit auch 768 px hohe Fenster
   ohne Scrollen auskommen.
   ------------------------------------------------------------------------- */
.stage {
  display: grid;
  place-items: center;
  padding-block: clamp(1.5rem, 5vh, 3.5rem);
}

.stage__inner {
  text-align: center;
}

/* Begrenzte Zeilenlänge – über die volle Breite gesetzt liest sich eine
   Überschrift schlecht */
.stage h1 {
  max-width: 40rem;
  margin: 0 auto 0.6rem;
}

.stage h1 .accent {
  color: var(--gold-light);
}

:root[data-theme="light"] .stage h1 .accent {
  color: var(--gold-deep);
}

.stage__lead {
  max-width: 36rem;
  margin: 0 auto clamp(2rem, 5vh, 3.25rem);
  color: var(--ink-soft);
  font-size: var(--step-1);
}

.stage__areas {
  display: grid;
  gap: clamp(1rem, 2.5vh, 1.5rem);
  text-align: left;
}

@media (min-width: 52rem) {
  .stage__areas {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Bereichskarte: Haarlinie, Gold nur an Symbol und Verweis.

   Dazu ein Gold-Schleier von oben links nach unten rechts – der Anklang an
   den Weiß-nach-Gold-Verlauf der alten Website. Er bleibt bewusst schwach:
   Gold ist Akzent, keine Fläche. Der Text sitzt auf der ruhigen oberen
   Hälfte, unten rechts steht nur der Verweis. */
.area {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.25rem, 3vh, 1.75rem);
  background: linear-gradient(150deg, transparent 42%, var(--area-veil) 100%),
    var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

/* Beim Überfahren zieht der Verlauf an – die Karte reagiert, ohne dass ein
   Schatten oder eine neue Farbe dazukommt. */
.area:hover {
  --area-veil: var(--area-veil-hover);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.area__icon {
  color: var(--accent-ink);
  line-height: 0;
  margin-bottom: 0.35rem;
}

.area__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.area h2 {
  font-size: var(--step-2);
  margin: 0;
}

.area p {
  margin: 0;
  color: var(--ink-soft);
  font-size: calc(0.95rem * var(--fs));
}

.area__more {
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: calc(0.95rem * var(--fs));
}

.area__more::after {
  content: " →";
}

.area:hover .area__more {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* -------------------------------------------------------------------------
   6. Inhaltsbausteine der Unterseiten
   ------------------------------------------------------------------------- */

/* --- Seitenkopf --- */
.page-head {
  padding-block: clamp(2rem, 1.5rem + 3vw, 3.25rem) 0;
}

.page-head h1 {
  font-size: var(--step-4);
  margin-bottom: 0;
}

.page-head p {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Text auf Gold immer im vollen Navy – abgeschwächt reißt der Kontrast */
.btn--primary {
  background: var(--gold);
  color: #1c1b2d;
}

.btn--primary:hover {
  background: var(--gold-light);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--gold);
}

/* --- Karten --- */
.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.card__icon {
  color: var(--accent-ink);
  line-height: 0;
  margin-bottom: 0.9rem;
}

.card__icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

/* Überschriftenebene richtet sich nach der Seitenstruktur, die Optik bleibt
   gleich – deshalb beide Ebenen ansprechen */
.card :is(h2, h3) {
  font-size: var(--step-2);
  margin-bottom: 0.35rem;
}

.card p {
  color: var(--ink-soft);
}

.card p:last-child {
  margin-bottom: 0;
}

/* --- Leistungen (Kubernetes-Seite) --- */
.feature {
  display: flex;
  gap: 1rem;
}

.feature__icon {
  flex: none;
  color: var(--accent-ink);
  line-height: 0;
  padding-top: 0.15rem;
}

.feature__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature :is(h2, h3) {
  font-size: var(--step-1);
  margin-bottom: 0.2rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
}

/* --- Kontaktdaten --- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-list svg {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.2rem;
  color: var(--accent-ink);
}

.contact-list strong {
  display: block;
  font-size: calc(0.82rem * var(--fs));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

/* --- Rechtstexte --- */
.prose h2 {
  font-size: var(--step-3);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.prose h3 {
  font-size: var(--step-2);
  margin-top: 2rem;
}

.prose h4 {
  font-size: var(--step-1);
  margin-top: 1.5rem;
}

.prose > :first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose li {
  margin-bottom: 0.6rem;
}

.prose .shout {
  color: var(--ink-soft);
  font-size: calc(0.95rem * var(--fs));
}

.prose address {
  font-style: normal;
  padding: 1.1rem 1.4rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* -------------------------------------------------------------------------
   7. Dialog für Rechtstexte und Jobs

   Der Dialog wird von ui.js erzeugt und mit dem Inhalt der jeweiligen Seite
   gefüllt. Ohne JavaScript gibt es ihn nicht – dann führen die Verweise im
   Fuß ganz normal auf die Seite.
   ------------------------------------------------------------------------- */
.doc-dialog {
  width: min(92vw, 46rem);
  max-height: 85dvh;
  padding: 0;
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.doc-dialog::backdrop {
  background: rgba(10, 9, 20, 0.62);
}

.doc-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.doc-dialog__head h2 {
  margin: 0;
  font-size: var(--step-3);
}

.doc-dialog__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  font-size: calc(1rem * var(--fs));
  line-height: 1;
  cursor: pointer;
}

.doc-dialog__close:hover {
  border-color: var(--gold);
  color: var(--accent-ink);
}

.doc-dialog__body {
  max-height: calc(85dvh - 5rem);
  padding: 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Der Titel steht im Kopf – die Überschriften darunter eine Stufe kleiner,
   damit die Gliederung auch im Dialog ablesbar bleibt. */
.doc-dialog__body h2 {
  font-size: var(--step-2);
}

/* Solange der Dialog offen ist, scrollt der Hintergrund nicht mit */
.has-dialog,
.has-dialog body {
  overflow: hidden;
}

/* -------------------------------------------------------------------------
   8. Mobile Navigation
   ------------------------------------------------------------------------- */
@media (max-width: 51.999rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.55rem 0.9rem;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .nav-toggle svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.5rem;
  }

  .site-nav ul.is-open {
    display: flex;
  }

  .site-nav li + li {
    border-top: 1px solid var(--line-soft);
  }

  .site-nav a {
    display: block;
    padding: 0.8rem 0 0.8rem 0.75rem;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    border-bottom: 0;
    border-left-color: var(--gold);
  }

  /* Werkzeuge bleiben oben rechts, das Menü klappt darunter auf */
  .toolbar {
    order: 2;
    margin-left: 0.5rem;
  }

  .a11y-panel {
    right: -0.5rem;
  }
}

/* -------------------------------------------------------------------------
   9. Druckausgabe
   ------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    min-height: 0;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
