/* ==========================================================================
   PERSPEKTIVBLICK – style.css
   Mobile First · Hell/Dunkel-Modus · Keine externen Abhängigkeiten
   --------------------------------------------------------------------------
   Farbwelt (im :root anpassbar):
     Dunkelblau  #073B5E   Akzentblau  #2C8BC3
     Anthrazit   #1D2731   Hellgrau    #F7F7F7
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN-TOKENS (Farbschema Hell = Standard)
   -------------------------------------------------------------------------- */
:root {
  /* Markenfarben */
  --navy:   #073B5E;
  --blue:   #2C8BC3;
  --ink:    #1D2731;
  --paper:  #F7F7F7;

  /* Semantische Farben – HELL */
  --color-bg:         var(--paper);
  --color-bg-alt:     #FFFFFF;
  --color-surface:    #FFFFFF;
  --color-text:       var(--ink);
  --color-text-soft:  #46535E;
  --color-heading:    var(--navy);
  --color-link:       #0E5E93;            /* dunkler als Akzentblau → WCAG-Kontrast auf Weiß */
  --color-accent:     var(--blue);
  --color-border:     #E1E6EA;
  --color-placeholder-bg:   #E7EDF1;
  --color-placeholder-text: #5B6B77;

  /* Schatten & Radien */
  --shadow-sm: 0 1px 3px rgba(29, 39, 49, 0.08);
  --shadow-md: 0 6px 20px rgba(29, 39, 49, 0.10);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* Typografie – Systemschriften, keine externen Fonts */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1160px;
  --nav-height: 64px;

  color-scheme: light;
}

/* Dunkles Schema per Systemeinstellung (greift nur, solange der Nutzer
   nicht manuell umgeschaltet hat – dann setzt JS data-theme) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg:         var(--ink);
    --color-bg-alt:     #232F3B;
    --color-surface:    #26333F;
    --color-text:       var(--paper);
    --color-text-soft:  #B9C4CD;
    --color-heading:    #DDEBF5;
    --color-link:       #7FC0E8;
    --color-accent:     var(--blue);
    --color-border:     #37454F;
    --color-placeholder-bg:   #2E3B47;
    --color-placeholder-text: #93A3AF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

/* Dunkles Schema per Button-Auswahl (hat Vorrang vor Systemeinstellung) */
:root[data-theme="dark"] {
  --color-bg:         var(--ink);
  --color-bg-alt:     #232F3B;
  --color-surface:    #26333F;
  --color-text:       var(--paper);
  --color-text-soft:  #B9C4CD;
  --color-heading:    #DDEBF5;
  --color-link:       #7FC0E8;
  --color-accent:     var(--blue);
  --color-border:     #37454F;
  --color-placeholder-bg:   #2E3B47;
  --color-placeholder-text: #93A3AF;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. BASIS
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;            /* Sanftes Scrollen zu Ankern */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;               /* 17px – angenehme Lesbarkeit */
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  color: var(--color-heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-soft); }

p { margin: 0 0 1em; }

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }

address { font-style: normal; margin: 0 0 0.75em; color: var(--color-text-soft); }

ul { padding-left: 1.2em; }

/* Sichtbarer Fokus für Tastaturbedienung */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Nur für Screenreader sichtbar */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Sprunglink – erscheint bei Tastaturfokus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 0.5rem; }

/* --------------------------------------------------------------------------
   3. LAYOUT-HELFER
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.narrow { max-width: 760px; }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background-color: var(--color-bg-alt); transition: background-color 0.3s ease; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-lead { font-size: 1.15rem; color: var(--color-text-soft); }

/* Eyebrow: kleine Zeile über Überschriften – Wiedererkennungsmerkmal */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}
.eyebrow--light { color: #9FD1EF; }
.eyebrow--light::before { background: #9FD1EF; }

/* Kartenraster – Mobile: 1 Spalte, größere Screens s. Media Queries unten */
.grid { display: grid; gap: 1.5rem; }

/* --------------------------------------------------------------------------
   4. NAVIGATION (sticky, mobil als Hamburger)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg-alt) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--nav-height);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}
/* Logo: helle Variante (dunkle Schrift) im hellen Design,
   weiße Variante im dunklen Design – Umschaltung wie beim Theme-Icon */
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
}
.brand-logo--dark { display: none; }
:root[data-theme="dark"] .brand-logo--light { display: none; }
:root[data-theme="dark"] .brand-logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo--light { display: none; }
  :root:not([data-theme="light"]) .brand-logo--dark { display: block; }
}

/* Hamburger-Button */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;          /* großzügige Touch-Fläche */
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar {
  height: 2px;
  width: 100%;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
/* Hamburger → X, wenn Menü offen */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menü – Mobil: ausklappbares Panel unter der Leiste */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1.25rem;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: none;
}
.nav-menu.is-open { display: block; }

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
  padding: 0.85rem 0.25rem;
  font: inherit;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  text-align: left;
}
.nav-link:hover { color: var(--color-accent); }

.chevron { transition: transform 0.25s ease; flex-shrink: 0; }
.submenu-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Untermenü – Mobil: Accordion */
.submenu {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.25rem 1rem;
  display: none;
}
.has-submenu.is-open > .submenu { display: block; }
.submenu a {
  display: block;
  padding: 0.6rem 0.25rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}
.submenu a:hover { color: var(--color-accent); }

/* Hell/Dunkel-Umschalter */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-heading);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: var(--color-accent); transform: scale(1.05); }
/* Icon je nach aktivem Schema anzeigen */
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}

/* --------------------------------------------------------------------------
   5. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(ellipse 90% 70% at 85% 10%, rgba(44, 139, 195, 0.45), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #052A44 70%, var(--ink) 100%);
  /* Leicht schräge Unterkante = "Perspektive"-Motiv */
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  padding-block: clamp(5rem, 12vw, 9rem) clamp(6rem, 13vw, 10rem);
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.hero h1 { color: #FFFFFF; margin-bottom: 0.5em; }

.hero-lead {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: #D3E4F0;
  max-width: 40ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #7FC0E8;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); color: #FFFFFF; }
.btn--primary:hover { background: #2478AA; }

.btn--secondary {
  background: transparent;
  color: var(--color-link);
  border-color: currentColor;
}
.btn--secondary:hover { background: rgba(44, 139, 195, 0.1); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.2); }

/* --------------------------------------------------------------------------
   7. KARTEN (Hilfsangebote, Standorte, Team, Jobs)
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem;
  flex-grow: 1;
}
.card-body .btn { margin-top: auto; align-self: flex-start; }

/* Bild-Platzhalter – später durch <img> ersetzen */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(44, 139, 195, 0.07) 12px 24px),
    var(--color-placeholder-bg);
  color: var(--color-placeholder-text);
  font-size: 0.9rem;
  font-weight: 600;
}
.card-media { aspect-ratio: 16 / 9; }

/* Häkchen-Listen */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { padding-left: 1.6em; position: relative; margin-bottom: 0.35em; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 800;
}

/* Standort-Karten */
.hours { font-size: 0.95rem; color: var(--color-text-soft); }
.map-placeholder {
  /* Hier später OpenStreetMap oder Google Maps einfügen. */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  margin-bottom: 1rem;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-placeholder-text);
  font-size: 0.9rem;
}

/* Team-Karten */
.card--person { text-align: center; }
.card--person .card-body { align-items: center; }
.avatar {
  width: 120px;
  height: 120px;
  margin: 1.5rem auto 0;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
}
.person-role {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5em;
}

/* Job-Karten */
.card--job { border-top: 4px solid var(--color-accent); }
.job-tag {
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(44, 139, 195, 0.14);
  color: var(--color-link);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.jobs-note { margin-top: 2rem; color: var(--color-text-soft); }

/* --------------------------------------------------------------------------
   8. FAQ (natives <details>)
   -------------------------------------------------------------------------- */
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--color-text-soft); }

/* --------------------------------------------------------------------------
   9. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #C9DAE6;
  padding-block: 3.5rem 1.5rem;
}
.site-footer a { color: #AFD6EE; }
.site-footer a:hover { color: #FFFFFF; }

.footer-grid { display: grid; gap: 2rem; }

.footer-brand { margin-bottom: 0.75rem; }
.footer-logo { display: block; height: 52px; width: auto; }

.footer-heading {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7FC0E8;
  margin-bottom: 0.8rem;
}

.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.5rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   10. SCROLL-REVEAL-ANIMATION
       Wird von script.js per IntersectionObserver ausgelöst.
       Ohne JavaScript bleiben alle Inhalte sichtbar (Progressive Enhancement).
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Anker nicht unter der Sticky-Navigation "verstecken" */
section[id],
article[id] { scroll-margin-top: calc(var(--nav-height) + 16px); }

/* --------------------------------------------------------------------------
   11. RESPONSIVE: TABLET (ab 640px)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE: DESKTOP (ab 992px)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  /* Hamburger ausblenden, Menü horizontal */
  .nav-toggle { display: none; }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: static;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .nav-link {
    width: auto;
    padding: 0.5rem 0.9rem;
    border-bottom: none;
    border-radius: var(--radius-sm);
  }
  .nav-link:hover { background: rgba(44, 139, 195, 0.1); }

  /* Untermenü – Desktop: Dropdown */
  .has-submenu { position: relative; }

  .submenu {
    position: absolute;
    top: 100%;                          /* KEINE Lücke: Menü bleibt beim Runterfahren mit der Maus offen */
    left: 0;
    min-width: 220px;
    padding: 0.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  /* Öffnen NUR per Klick auf den Pfeil (JS setzt .is-open).
     Die Überschrift selbst ist ein normaler Link zur Übersichtsseite. */
  .has-submenu.is-open > .submenu { display: block; }

  .submenu a {
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
  }
  .submenu a:hover { background: rgba(44, 139, 195, 0.1); }
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE: GROSSE BILDSCHIRME (ab 1400px)
   -------------------------------------------------------------------------- */
@media (min-width: 1400px) {
  :root { --container: 1280px; }
  body { font-size: 1.125rem; }
}

/* Footer-Raster auf größeren Screens */
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ==========================================================================
   14. ERGÄNZUNGEN FÜR DIE MEHRSEITIGE VERSION
   ========================================================================== */

/* Aktive Seite in der Navigation hervorheben */
.nav-link[aria-current="page"],
.submenu a[aria-current="page"] {
  color: var(--color-accent);
}
@media (min-width: 992px) {
  .nav-link[aria-current="page"] {
    background: rgba(44, 139, 195, 0.12);
  }
}

/* Unterseiten-Kopf (kleinerer Hero) */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(ellipse 90% 80% at 90% 0%, rgba(44, 139, 195, 0.4), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #052A44 100%);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(4rem, 9vw, 6rem);
}
.page-hero h1 { color: #FFFFFF; margin-bottom: 0.3em; }
.page-hero .page-lead { color: #D3E4F0; max-width: 60ch; font-size: 1.15rem; margin: 0; }

/* Brotkrumen-Navigation */
.breadcrumb {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: #9FD1EF;
}
.breadcrumb a { color: #AFD6EE; }
.breadcrumb [aria-current="page"] { color: #FFFFFF; }

/* Teaser-Karten auf der Startseite (Link-Karten) */
.card--teaser { text-decoration: none; color: inherit; }
.card--teaser:focus-visible { outline-offset: 5px; }
.card--teaser .teaser-more {
  margin-top: auto;
  font-weight: 700;
  color: var(--color-link);
}
.card--teaser:hover .teaser-more { text-decoration: underline; }

/* Nummerierte Ablauf-Schritte (z. B. "So kommen wir zusammen") */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #FFFFFF;
  font-weight: 800;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 0.25em; }
.steps p { margin: 0; color: var(--color-text-soft); }
@media (min-width: 992px) {
  .steps--row { grid-template-columns: repeat(3, 1fr); }
}

/* Breite Standort-Karten: Bild links, Inhalt rechts (Desktop) */
@media (min-width: 768px) {
  .card--wide { flex-direction: row; }
  .card--wide .card-media {
    width: 38%;
    flex-shrink: 0;
    aspect-ratio: auto;
    min-height: 100%;
  }
}

/* Info-Zeilen in Standort-Karten (Icon-ähnliche Beschriftungen) */
.info-list {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.97rem;
}
.info-list strong { color: var(--color-heading); }

/* Call-to-Action-Band am Seitenende */
.cta-band {
  background:
    radial-gradient(ellipse 80% 100% at 15% 0%, rgba(44, 139, 195, 0.35), transparent 60%),
    var(--navy);
  color: #FFFFFF;
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.cta-band h2 { color: #FFFFFF; }
.cta-band p { color: #D3E4F0; max-width: 60ch; margin-inline: auto; }
.cta-band .btn--primary { margin-top: 1rem; }

/* Kennzahlen / Benefits-Kacheln */
.tile-grid { display: grid; gap: 1rem; }
.tile {
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.tile h3 { font-size: 1.02rem; margin-bottom: 0.25em; }
.tile p { margin: 0; font-size: 0.95rem; color: var(--color-text-soft); }
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }

/* Textseiten (Impressum, Datenschutz) */
.legal h2 { font-size: 1.3rem; margin-top: 2em; }

/* ==========================================================================
   15. SPLIT-NAVIGATION (Überschrift = Link, Pfeil = Untermenü)
   ========================================================================== */

/* Mobil: Link und Pfeil-Button nebeneinander, Untermenü darunter */
.has-submenu {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.has-submenu > .nav-link {
  flex: 1 1 auto;
  width: auto;
}
.has-submenu > .submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;                          /* großzügige Touch-Fläche */
  padding: 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-heading);
  cursor: pointer;
}
.has-submenu > .submenu-toggle:hover { color: var(--color-accent); }
.submenu { flex-basis: 100%; }

/* Desktop: Pfeil kompakt neben dem Link, Öffnen per Hover/Fokus/Klick */
@media (min-width: 992px) {
  .has-submenu {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.1rem;
  }
  .has-submenu > .submenu-toggle {
    width: 30px;
    height: 30px;
    border-bottom: none;
    border-radius: var(--radius-sm);
  }
  .has-submenu > .submenu-toggle:hover { background: rgba(44, 139, 195, 0.1); }
}

/* ==========================================================================
   16. FLOATING PLATZANZEIGE + KONTAKT-DIALOG
   Die freien Plätze werden zentral in script.js gepflegt
   (Konstante VACANCIES ganz oben in der Datei).
   ========================================================================== */

/* Schwebender Button unten rechts */
.vacancy-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #FFFFFF;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(7, 59, 94, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vacancy-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 59, 94, 0.55);
}
/* Zahl der freien Plätze mit dezentem Puls */
.vacancy-fab .vacancy-count {
  display: grid;
  place-items: center;
  min-width: 1.7rem;
  height: 1.7rem;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--navy);
  font-weight: 800;
  animation: vacancy-pulse 2.4s ease-in-out infinite;
}
@keyframes vacancy-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
}

/* Dialog (natives <dialog>-Element) */
.vacancy-dialog {
  width: min(92vw, 480px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
}
.vacancy-dialog::backdrop {
  background: rgba(7, 24, 38, 0.55);
  backdrop-filter: blur(2px);
}
.vacancy-dialog h2 { font-size: 1.35rem; }

.vacancy-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.vacancy-close:hover { background: rgba(44, 139, 195, 0.12); color: var(--color-heading); }

/* Liste der freien Plätze im Dialog */
.vacancy-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.vacancy-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.85rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.97rem;
}
.vacancy-list .count { font-weight: 800; color: var(--color-link); white-space: nowrap; }

/* Formular */
.vacancy-form { display: grid; gap: 0.9rem; }
.vacancy-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-heading);
}
.vacancy-form input,
.vacancy-form select,
.vacancy-form textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
}
.vacancy-form textarea { resize: vertical; min-height: 90px; }
.vacancy-form input:focus-visible,
.vacancy-form select:focus-visible,
.vacancy-form textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 1px;
}
.vacancy-hint { font-size: 0.85rem; color: var(--color-text-soft); margin: 0; }

/* ==========================================================================
   17. BILDER-SLIDESHOW (Standorte)
   Bringt Bilder unterschiedlicher Größe auf ein einheitliches Format:
   4:3, formatfüllend zugeschnitten (object-fit: cover, keine Verzerrung).
   ========================================================================== */
.slideshow {
  position: relative;
  overflow: hidden;
  background: var(--color-placeholder-bg);
}

/* Auf breiten Karten (Desktop) füllt die Slideshow die linke Spalte */
@media (min-width: 768px) {
  .card--wide .slideshow {
    width: 38%;
    flex-shrink: 0;
    align-self: stretch;
  }
}

.slideshow .slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.slideshow .slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 3 / 2;          /* einheitliches Format, passend zu den zugeschnittenen Bildern */
  object-fit: cover;            /* füllt den Rahmen randlos (Bilder sind bereits 3:2) */
  display: block;
}
/* Auf Desktop festes 3:2-Format (die Bilder sind bereits auf 3:2 zugeschnitten,
   daher randlos und ohne Verzerrung) */
@media (min-width: 768px) {
  .card--wide .slideshow .slide {
    aspect-ratio: 3 / 2;
    height: auto;
  }
}

/* Vor/Zurück-Buttons */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(7, 24, 38, 0.55);
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.slide-btn:hover { background: rgba(7, 24, 38, 0.8); }
.slide-prev { left: 0.6rem; }
.slide-next { right: 0.6rem; }

/* Punkte-Navigation */
.slide-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.slide-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.slide-dot[aria-selected="true"] {
  background: #FFFFFF;
  transform: scale(1.25);
}

/* Ein einzelnes Bild braucht keine Steuerung → JS blendet sie aus.
   Fallback ohne JS: Steuerung ausblenden, erstes Bild zeigen. */
.no-js .slide-btn,
.no-js .slide-dots { display: none; }

/* ==========================================================================
   18. GOOGLE-MAPS MIT EINWILLIGUNG (Klick zum Laden)
   Die Karte lädt erst nach aktivem Klick -> DSGVO-konform, kein Cookie
   ohne Zustimmung. Zustimmung wird optional im LocalStorage gemerkt.
   ========================================================================== */
.map-consent {
  position: relative;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-placeholder-bg);
}

/* Klickflächen-Button (füllt den ganzen Platzhalter) */
.map-consent-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 200px;
  padding: 1.5rem 1.25rem;
  border: none;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(44, 139, 195, 0.06) 12px 24px),
    var(--color-placeholder-bg);
  color: var(--color-heading);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.map-consent-btn:hover { background: rgba(44, 139, 195, 0.12); }
.map-consent-btn svg { color: var(--color-accent); }

.map-consent-title { font-weight: 700; font-size: 1.05rem; }
.map-consent-hint {
  max-width: 34ch;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-soft);
  line-height: 1.45;
}
/* Der Datenschutz-Link im Hinweis soll klickbar bleiben, ohne den Button auszulösen */
.map-consent-hint a { position: relative; z-index: 1; }

/* Eingebettete Karte nach Zustimmung */
.map-embed {
  width: 100%;
  height: 240px;
  border: none;                 /* Rahmen kommt vom Container */
  border-radius: var(--radius-sm);
  margin-bottom: 0;             /* kein grauer Streifen unter der Karte */
  display: block;
}
