/* ==========================================================================
   ILE Fränkisches Seenland-Hahnenkamm — Custom Stylesheet
   Bootstrap 5 Ergänzung · WCAG 2.1 AA/AAA · Stand: 2026
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Hauptfarben */
  --ink:        #142630;   /* Primärtext */
  --ink-soft:   #3f5360;   /* Sekundärtext – Kontrastverhältnis ≈ 7.4:1 zu Weiß (AAA) */
  --line:       #e6e9e6;   /* Trennlinien / Rahmen */
  --blue:       #0e7ab5;   /* Seenland-Blau (Primärfarbe) */
  --blue-dark:  #0a5c8c;   /* Seenland-Blau (dunkel) */
  --green:      #5c8a2c;   /* Landschaftsgrün */
  --green-dark: #456a20;   /* Landschaftsgrün (dunkel) */
  --sand:       #f3f0e7;   /* Hintergrund Sand */
  --mist:       #edf2f1;   /* Hintergrund Nebel */
  --paper:      #ffffff;

  /* Schriften – über die Theme-Einstellungen („Darstellung“) überschreibbar */
  --font-heading: "Archivo", sans-serif;
  --font-body:    "Public Sans", system-ui, -apple-system, sans-serif;

  /* Handlungsfeld-Akzentfarben */
  --hf-o: #f2a900;  /* O – Orts- & Innenentwicklung */
  --hf-l: #4f7a28;  /* L – Landwirtschaft */
  --hf-w: #1e88c7;  /* W – Wirtschaft */
  --hf-g: #c8961a;  /* G – Grundversorgung */
  --hf-z: #e07b2e;  /* Z – Zusammenarbeit */
  --hf-s: #c42127;  /* S – Soziales */
  --hf-f: #8dbe3f;  /* F – Freizeit */

  /* Bootstrap-Überschreibungen */
  --bs-primary:     #0e7ab5;
  --bs-primary-rgb: 14, 122, 181;
  --bs-body-color:  #142630;
  --bs-link-color:  #0e7ab5;

  /* Fokus-Ring */
  --focus-ring: 0 0 0 3px rgba(14, 122, 181, 0.45);
}

/* --------------------------------------------------------------------------
   Globale Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body, "Public Sans", system-ui, -apple-system, sans-serif);
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.65;
}

section {
  scroll-margin-top: 84px;
}

h1, h2, h3, h4, h5, h6,
.display-font {
  font-family: var(--font-heading, "Archivo", sans-serif);
  letter-spacing: -0.02em;
}

h1 { font-weight: 900; color: var(--ink); }
h2 { font-weight: 800; color: var(--ink); }
h3 { font-weight: 800; color: var(--ink); }
h4 { font-family: var(--font-heading, "Archivo", sans-serif); font-weight: 800; color: var(--ink); }

p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

.lead-ink {
  color: var(--ink);
}

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

/* --------------------------------------------------------------------------
   Barrierefreiheit – Skip-Link & Fokus
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  color: #fff;
}

/* Fokus-Stile für alle interaktiven Elemente */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Bootstrap-Fokus überschreiben */
.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

/* --------------------------------------------------------------------------
   Reduzierte Bewegung
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration:       0.01ms !important;
    animation-iteration-count: 1     !important;
    transition-duration:      0.01ms !important;
    scroll-behavior:          auto   !important;
  }
}

/* --------------------------------------------------------------------------
   Eyebrow-Label
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading, "Archivo", sans-serif);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--green);
  flex-shrink: 0;
  display: block;
}

.eyebrow.on-dark {
  color: #cfe9c9;
}

.eyebrow.on-dark::before {
  background: #bfe3b3;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.fsh-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
  transition: box-shadow 0.3s ease;
}

.fsh-nav.is-scrolled {
  box-shadow: 0 4px 24px rgba(20, 38, 48, 0.09);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: auto;
  flex: 0 0 auto;
}

.brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-line1 {
  font-family: var(--font-heading, "Archivo", sans-serif);
  font-weight: 800;
  font-size: 1.06rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-line2 {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}

.fsh-nav .nav-link {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.fsh-nav .nav-link:hover,
.fsh-nav .nav-link[aria-current="page"] {
  color: var(--blue);
  background: rgba(14, 122, 181, 0.07);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-brand {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.btn-brand:hover,
.btn-brand:focus-visible {
  background: var(--blue-dark);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  border: 1.5px solid var(--line);
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  transition: border-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  background: #fff;
}

.btn-green {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.btn-green:hover,
.btn-green:focus-visible {
  background: var(--green-dark);
  color: #fff;
}

.btn-sm-pill {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}

.link-arrow {
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
  text-decoration: none;
}

.link-arrow:hover {
  gap: 0.7rem;
  color: var(--blue-dark);
}

/* --------------------------------------------------------------------------
   Hero-Sektion
   -------------------------------------------------------------------------- */
.hero {
  padding: 64px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fb 100%);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 0.96;
  color: var(--ink);
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
}

.stat-chip .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 60px -34px rgba(14, 122, 181, 0.4);
  overflow: hidden;
}

/* Bild-Platzhalter */
.ph {
  background: repeating-linear-gradient(
    135deg,
    #f3f5f6,
    #f3f5f6 16px,
    #eef1f2 16px,
    #eef1f2 32px
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #7a8d96;
}

.ph .bi {
  font-size: 2rem;
}

.ph small {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.64rem;
}

/* --------------------------------------------------------------------------
   Illustrationsband
   -------------------------------------------------------------------------- */
.illu-band {
  line-height: 0;
  background: #f5f9fb;
  overflow: hidden;
}

.illu-band svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Allgemeine Sektionen
   -------------------------------------------------------------------------- */
.sec {
  padding: 84px 0;
}

.sec-mist {
  background: var(--mist);
}

.sec-sand {
  background: var(--sand);
}

.sec h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.03;
}

/* --------------------------------------------------------------------------
   Gutenberg-Inhalte (Seiten/Beiträge ohne LiveCanvas-HTML)

   Mit dem Block-Editor erstellte Inhalte werden in einen zentrierten
   Lese-Container gelegt; ein gesetztes Beitragsbild erscheint als vollbreites
   Kopfbild (max. 30 % der Bildschirmhöhe, zentriert, cover-füllend).
   -------------------------------------------------------------------------- */
.pt-entry-hero {
  width: 100%;
  height: 30vh;
  max-height: 30vh;
  overflow: hidden;
  line-height: 0;
  background: var(--mist);
}

.pt-entry-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pt-entry-wrap {
  background: var(--paper);
}

.pt-entry {
  max-width: 52rem;
  margin-inline: auto;
}

.pt-entry-title {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.06;
  margin-bottom: 1.25rem;
}

/* Angenehme Lesetypografie im Fließtext-Container. */
.pt-entry .entry-content > * {
  margin-bottom: 1.15rem;
}

.pt-entry .entry-content > :last-child {
  margin-bottom: 0;
}

.pt-entry .entry-content img {
  max-width: 100%;
  height: auto;
}

.pt-entry .entry-content h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  margin-top: 2.25rem;
}

.pt-entry .entry-content h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.15;
  margin-top: 1.75rem;
}

.pt-entry .page-links {
  margin-top: 1.5rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Kennzahlen-Boxen
   -------------------------------------------------------------------------- */
.statbox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
}

.statbox .num {
  font-family: var(--font-heading, "Archivo", sans-serif);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--blue);
}

.statbox .lbl {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 8px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   See-Karten (Seen / Projekte)
   -------------------------------------------------------------------------- */
.see-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.see-card:hover {
  box-shadow: 0 16px 40px -20px rgba(20, 38, 48, 0.3);
  transform: translateY(-3px);
}

.see-card .ph {
  height: 150px;
}

.see-card .card-body-inner {
  padding: 22px;
}

.see-card h3 {
  font-size: 1.16rem;
  font-weight: 800;
}

.see-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   Handlungsfelder
   -------------------------------------------------------------------------- */
.hf {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hf .badge-hf {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading, "Archivo", sans-serif);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1;
}

.hf h3 {
  font-size: 1.04rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--ink);
}

.hf p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Gemeinde-Pills
   -------------------------------------------------------------------------- */
.pill {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.pill:hover,
.pill:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(14, 122, 181, 0.04);
}

/* --------------------------------------------------------------------------
   Prozess-Schritte (Regionalbudget)
   -------------------------------------------------------------------------- */
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  height: 100%;
}

.step .step-n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-heading, "Archivo", sans-serif);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.step h4 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  margin: 0;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(92, 138, 44, 0.12), rgba(14, 122, 181, 0.1));
  border: 1px solid rgba(92, 138, 44, 0.25);
  border-radius: 14px;
  padding: 20px 22px;
}

/* --------------------------------------------------------------------------
   Kontakt-Band (CTA)
   -------------------------------------------------------------------------- */
.cta-band {
  border-radius: 26px;
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 48%, var(--green) 130%);
  color: #fff;
  padding: 54px;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 767.98px) {
  .cta-band {
    padding: 36px 28px;
  }
}

/* --------------------------------------------------------------------------
   Fußzeile
   -------------------------------------------------------------------------- */
.foot {
  background: #102029;
  color: #cdd6dc;
  padding: 64px 0 28px;
}

.foot a {
  color: #cdd6dc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot a:hover,
.foot a:focus-visible {
  color: #fff;
}

.foot-heading {
  font-family: var(--font-heading, "Archivo", sans-serif);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  font-size: 0.84rem;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.foot .brand-line1 {
  color: #fff;
}

.foot .brand-line2 {
  color: #8ea0aa;
}

.foot-link {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.94rem;
  color: #cdd6dc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot-link:hover {
  color: #fff;
}

.foot-secondary {
  color: #9eb0ba;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 44px;
  padding-top: 22px;
  font-size: 0.84rem;
  color: #8ea0aa;
}

.foot-bottom a {
  color: #8ea0aa;
}

.foot-bottom a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Hilfsmittel
   -------------------------------------------------------------------------- */
/* Visuell versteckt, aber für Screenreader zugänglich */
.sr-only-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Barrierefreiheit – Auslöser, Panel & Nutzereinstellungen
   -------------------------------------------------------------------------- */

/* Runder Auslöser in der Navigation */
.a11y-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.a11y-toggle:hover,
.a11y-toggle:focus-visible {
  background: var(--blue-dark);
  color: #fff;
}

.a11y-toggle[aria-expanded="true"] {
  background: var(--blue-dark);
}

/* Panel */
.a11y-panel {
  position: fixed;
  top: 76px;
  right: 16px;
  z-index: 1080;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(20, 38, 48, 0.18);
}

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

.a11y-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.a11y-panel-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.a11y-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.a11y-close:hover,
.a11y-close:focus-visible {
  background: var(--line);
}

.a11y-section {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.a11y-section:first-of-type {
  border-top: none;
  padding-top: 0.25rem;
}

.a11y-section-title {
  font-family: var(--font-heading, "Archivo", sans-serif);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}

/* Textgröße */
.a11y-fontsize {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sand);
  border-radius: 12px;
  padding: 0.35rem;
}

.a11y-fs-btn {
  flex: 0 0 auto;
  min-width: 56px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-heading, "Archivo", sans-serif);
  font-weight: 800;
  font-size: 1.05rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.a11y-fs-btn span {
  font-size: 0.85em;
}

.a11y-fs-btn:hover:not(:disabled),
.a11y-fs-btn:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.a11y-fs-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.a11y-fs-value {
  flex: 1 1 auto;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
}

/* Umschalter-Zeilen */
.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.a11y-row:last-child {
  margin-bottom: 0;
}

.a11y-row:hover,
.a11y-row:focus-within {
  border-color: var(--blue);
}

.a11y-row-label {
  font-weight: 700;
  color: var(--ink);
}

/* Nativer Checkbox-Input visuell verstecken, aber bedienbar/fokussierbar lassen */
.a11y-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}

.a11y-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cdd5d3;
  transition: background-color 0.2s ease;
}

.a11y-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 38, 48, 0.3);
  transition: transform 0.2s ease;
}

.a11y-switch-input:checked ~ .a11y-switch-track {
  background: var(--green);
}

.a11y-switch-input:checked ~ .a11y-switch-track::after {
  transform: translateX(20px);
}

.a11y-switch-input:focus-visible ~ .a11y-switch-track {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* Vorlesefunktion */
.a11y-tts-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.a11y-tts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  font-size: 1.25rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.a11y-tts-btn:hover:not(:disabled),
.a11y-tts-btn:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.a11y-tts-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.a11y-tts-status {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-left: 0.25rem;
}

/* Leichte Sprache */
.a11y-leichte {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(92, 138, 44, 0.12);
  color: var(--ink);
}

.a11y-leichte:hover,
.a11y-leichte:focus-visible {
  background: rgba(92, 138, 44, 0.2);
  color: var(--ink);
}

.a11y-leichte i {
  font-size: 1.4rem;
  color: var(--green-dark);
  flex: 0 0 auto;
}

.a11y-leichte-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.a11y-leichte-txt strong {
  font-weight: 800;
}

.a11y-leichte-txt small {
  color: var(--ink-soft);
}

/* Zurücksetzen */
.a11y-reset {
  display: block;
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.6rem;
  border: none;
  background: none;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.a11y-reset:hover,
.a11y-reset:focus-visible {
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   Barrierefreiheit – vom Nutzer aktivierte Darstellungsmodi
   -------------------------------------------------------------------------- */

/* Hoher Kontrast */
body.a11y-contrast {
  --ink: #000000;
  --ink-soft: #1c2b33;
  --line: #4a4a4a;
  --blue: #084d75;
  --blue-dark: #063a58;
  --bs-link-color: #084d75;
  background: #ffffff;
}

body.a11y-contrast p,
body.a11y-contrast li,
body.a11y-contrast .foot-secondary {
  color: #1c2b33;
}

body.a11y-contrast a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.a11y-contrast .fsh-nav {
  background: #ffffff;
  border-bottom: 2px solid #000;
}

/* Links unterstreichen */
body.a11y-underline a:not(.btn):not(.navbar-brand) {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* Gut lesbare Schrift */
body.a11y-readable-font {
  --font-heading: "Atkinson Hyperlegible", "Verdana", "Tahoma", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Verdana", "Tahoma", system-ui, sans-serif;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
}

/* Mehr Zeilenabstand */
body.a11y-spacing {
  line-height: 1.9;
}

body.a11y-spacing p,
body.a11y-spacing li,
body.a11y-spacing dd,
body.a11y-spacing dt {
  line-height: 2;
  margin-bottom: 1.15rem;
}

/* Bewegung reduzieren (nutzergesteuert, ergänzend zu prefers-reduced-motion) */
body.a11y-reduce-motion,
body.a11y-reduce-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Panel-Position an gescrollte, kompaktere Navigation anpassen */
@media (max-width: 991.98px) {
  .a11y-panel {
    top: 70px;
  }
}

/* --------------------------------------------------------------------------
   Druckstile
   -------------------------------------------------------------------------- */
@media print {
  @page {
    margin: 1.5cm;
  }

  .fsh-nav,
  .skip-link,
  .btn,
  .a11y-toggle,
  .a11y-panel,
  .illu-band {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  section, article {
    page-break-inside: avoid;
  }

  .cta-band {
    background: var(--blue) !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  a[href^="http"]::after,
  a[href^="mailto"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }
}
