/* ==========================================================================
   Bergrettung Trieben – Stylesheet
   Mobile-first, Breakpoints: 480px / 768px / 1100px
   ========================================================================== */

/* ==========================================================================
   Schriften – lokal gehostet (kein externer Request, DSGVO)
   Beide Variable Fonts, SIL OFL 1.1 (Lizenztexte in fonts/).
   Subsets latin + latin-ext, direkt von Google Fonts bezogen.
   ========================================================================== */

/* Archivo – Displayschrift für Überschriften (wght 400–800) */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter – Lesetext und UI (wght 400–700) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ----- Design-Tokens ----- */
:root {
  /* Farben (Markenwelt Bergrettung Steiermark) */
  --color-primary: #009964;        /* Bergrettungs-Grün */
  --color-primary-dark: #007a50;
  --color-primary-deep: #00583a;
  --color-primary-tint: #e3efe9;   /* Grünton für Badges, Avatare, Flächen */
  --color-emergency: #d32f2f;      /* Alpin-Signalrot, nur für Notruf */
  --color-emergency-dark: #b02525;
  --color-ink: #1d2b25;            /* Anthrazit für Text/Footer */
  --color-ink-soft: #47554f;
  --color-bg: #ffffff;
  --color-bg-alt: #eef4f1;         /* grün getönt – Sektionswechsel sichtbar */
  --color-line: #dbe6e0;

  /* Typografie */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo", "Inter", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Type-Scale (fluid) */
  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-lg: clamp(1.05rem, 0.99rem + 0.28vw, 1.19rem);
  --text-xl: clamp(1.2rem, 1.11rem + 0.42vw, 1.42rem);
  --text-2xl: clamp(1.5rem, 1.31rem + 0.9vw, 2rem);
  --text-3xl: clamp(1.85rem, 1.45rem + 1.9vw, 2.85rem);
  --text-hero: clamp(2.4rem, 1.6rem + 3.9vw, 4.2rem);

  /* Layout */
  --container-max: 1100px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(29, 43, 37, 0.05);
  --shadow: 0 6px 18px rgba(29, 43, 37, 0.07);
  --shadow-lift: 0 14px 34px rgba(29, 43, 37, 0.13);
  --header-height: 4.25rem;
}

/* ----- Reset / Basis ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 0.5rem);
}

body {
  margin: 0;
  padding-top: calc(var(--header-height) + 1px);   /* Platz für die fixe Kopfzeile
                                                      (+1px = ihre untere Kante) */
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75em;
  text-wrap: balance;
}

h3, h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-primary-dark);
}

a:hover {
  color: var(--color-primary-deep);
}

/* Sichtbarer Fokus-Zustand (WCAG) */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--color-ink);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container.narrow {                 /* nur Rechtstexte (Impressum, Datenschutz):
                                       auf index.html teilen sich alle Sektionen
                                       dieselbe Kante, Lesebreite regelt .prose p */
  max-width: 800px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  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);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-emergency {
  background: var(--color-emergency);
  color: #fff;
}

.btn-emergency:hover {
  background: var(--color-emergency-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ----- Header / Navigation ----- */
/* Deckend, nicht transparent: durch eine halbtransparente Leiste scheint beim
   Scrollen der Hero (Grün + weiße Gratlinien) bzw. Fotos durch — die Kopfzeile
   wirkt dann, als löse sie sich auf. Den Scroll-Zustand zeigen Kante + Schatten. */
/* `fixed`, nicht `sticky`: Bei sticky blieb die Leiste in Safari beim Anscrollen
   halb im Bild hängen (der Compositor schiebt die Sticky-Ebene mit, statt sie
   oben festzuhalten). Eine fixe Leiste kann gar nicht mitscrollen. Den Platz,
   den sie im Fluss nicht mehr einnimmt, hält `body { padding-top }` frei. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--color-line);
  box-shadow: 0 2px 12px rgba(29, 43, 37, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;                     /* darf nicht unter die Textbreite schrumpfen */
  text-decoration: none;
  color: var(--color-ink);
}

.brand picture {
  flex: 0 0 auto;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.brand-text {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-text strong {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

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

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
}

/* Burger-Button (nur mobil sichtbar) */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2.5px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-bar {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-bar::before {
  left: 0;
  top: -8px;
}

.nav-toggle-bar::after {
  left: 0;
  top: 8px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;                 /* begrenzt die mix-blend-mode-Gruppe von
                                         .hero::after auf den Hero — sonst zieht
                                         sie die ganze Seite in eine Compositing-
                                         Ebene, inkl. Kopfzeile */
  background:
    radial-gradient(120% 85% at 50% 8%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 55%, var(--color-primary-deep) 100%);
  color: #fff;
  text-align: center;
}

/* Dezente topografische Höhenlinien über dem Verlauf */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/topo-lines.svg") center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

/* Feines Korn gegen Banding/„Plastik-Look" des Verlaufs */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Kontur + Verbandslogo bilden einen Block; das Logo sitzt absolut darin,
   die Prozentwerte beziehen sich also auf den Berg und skalieren mit ihm. */
.hero-peak-wrap {
  position: relative;
  width: min(660px, 88vw);            /* Breite des Bergs – hier justieren */
  margin: 0 auto 1.4rem;
}

/* Reichenstein-Kontur (Inline-SVG, vektorisiert) */
.hero-peak {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* ÖBRD-Logo rechts neben dem Grat (img/brd-logo.svg, aus BRD_Logo.jpg
   vektorisiert). Die Werte sind aus dem viewBox der Kontur (912×342)
   gerechnet: Mitte bei x≈760, y≈95, Durchmesser 150 – dort ist das Feld
   zwischen Gipfel und rechtem Grat frei. */
.hero-mark {
  position: absolute;
  left: 75.1%;
  top: 5.8%;
  width: 16.4%;
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.hero-peak path {
  stroke: rgba(255, 255, 255, 0.96);
  /* Linienstärke je Pfad (--w im Inline-SVG, aus der Strichstärke der
     Silhouette abgeleitet: Grat kräftig, Rinnen dünn). Skaliert mit dem Berg,
     der Stroke ist also auf dem Handy entsprechend feiner. */
  stroke-width: var(--w, 4px);
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Line-Draw: Kontur zeichnet sich von links nach rechts selbst
   (nur bei erlaubter Bewegung; sonst sofort sichtbar).
   Bewusst gemächlich: jeder Strich 1.3s, Versatz 110ms pro Pfad — der
   Berg ist damit nach rund 4.3s fertig gezeichnet. Zum Beschleunigen
   beide Werte gemeinsam verkleinern. */
@media (prefers-reduced-motion: no-preference) {
  .hero-peak path {
    opacity: 0;                       /* bis zum eigenen Start unsichtbar: sonst zeigt
                                         die runde Kappe des 0 langen Strichs einen Punkt */
    stroke-dasharray: 1;
    stroke-dashoffset: 1;             /* pathLength="1" im SVG normalisiert die Länge */
    animation: hero-draw 1.3s cubic-bezier(0.45, 0, 0.3, 1) forwards;
    animation-delay: calc(0.4s + var(--i, 0) * 110ms);
  }
}

/* Das Logo blendet sich ein, sobald der Grat in seiner Ecke angekommen ist */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark {
    opacity: 0;
    animation: hero-mark-in 0.8s ease forwards;
    animation-delay: 3.8s;
  }
}

@keyframes hero-mark-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Während des Zeichnens flache Enden (butt): Ein wachsender Strich beginnt
   so als hauchdünner Schnitt statt als Punkt in voller Stärke. Erst ganz am
   Ende springt die Kappe auf rund (stroke-linecap ist nur diskret animierbar). */
@keyframes hero-draw {
  from {
    opacity: 1;
    stroke-dashoffset: 1;
    stroke-linecap: butt;
  }

  99% {
    stroke-linecap: butt;
  }

  to {
    opacity: 1;
    stroke-dashoffset: 0;
    stroke-linecap: round;
  }
}

/* Eyebrow: kleines Logo + Organisationszeile über der Überschrift */
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.92;
}

.hero-content {
  position: relative;
  z-index: 1;                         /* über den ::before/::after-Texturen */
  padding-block: 3.5rem 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.35em;
}

.hero-claim {
  font-size: var(--text-xl);
  font-weight: 400;
  max-width: 34em;
  margin-inline: auto;
  opacity: 0.94;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-actions .btn-primary {
  background: #fff;
  color: var(--color-primary-deep);
}

.hero-actions .btn-primary:hover {
  background: var(--color-bg-alt);
}

/* ----- Notruf-Band ----- */
.emergency-band {
  background: var(--color-ink);
  color: #fff;
  padding-block: 1.75rem;
  border-top: 4px solid var(--color-emergency);
}

.emergency-band-title {
  font-size: var(--text-xl);
  margin-bottom: 0.6em;
}

.emergency-band-title a {
  color: #ff8a80;
  text-decoration-thickness: 2px;
}

.emergency-band-title a:hover {
  color: #ffb3ab;
}

.emergency-questions {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.5rem 1.5rem;
  grid-template-columns: 1fr;
}

.emergency-questions li {
  padding-left: 1.4rem;
  position: relative;
}

.emergency-questions li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.emergency-note {
  margin: 0;
  font-weight: 600;
  opacity: 0.9;
}

/* ----- Sektionen ----- */
.section {
  padding-block: 4rem;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: var(--text-3xl);
  letter-spacing: -0.03em;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 0.4rem;
  border-radius: 2px;
  background: var(--color-primary);
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
  max-width: 40em;
  text-wrap: pretty;
}

.prose {
  font-size: var(--text-lg);
}

.prose p {
  max-width: 68ch;
  text-wrap: pretty;
}

/* ----- Karten -----
   Kante statt Schlagschatten: 1px Linie + minimaler Schatten. Der große
   Schatten (--shadow-lift) bleibt interaktiven Elementen vorbehalten. */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

/* ----- Team ----- */
.team-subtitle {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Anklickbare Bilder (öffnen die Lightbox); ohne JS führt der Link
   direkt zur großen Bilddatei. */
.photo-zoom {
  display: block;
  cursor: zoom-in;
}

.photo-zoom img {
  transition: box-shadow 0.15s ease;
}

.team-avatar-link {
  flex: 0 0 auto;
  width: fit-content;
  border-radius: 50%;
}

.team-avatar-link:hover img,
.team-avatar-link:focus-visible img {
  box-shadow: 0 0 0 3px var(--color-primary);
}

.team-avatar-link:focus-visible {
  outline: none;                      /* der Ring am Bild übernimmt */
}

/* Mannschaftsfoto über der Team-Liste (2:1-Zuschnitt) */
.team-group-photo {
  margin: 1.75rem 0 0;
}

.team-group-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.team-group-photo a:hover img {
  box-shadow: var(--shadow-lift);
}

.team-group-photo figcaption {
  margin-top: 0.6rem;
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
}

.team-lead-grid,
.team-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Avatar: Portraitfoto (img.team-avatar) oder – wo noch keines vorliegt –
   die Initialen (span.team-avatar). Beide gleich groß, damit das Raster
   ruhig bleibt. Rein dekorativ (alt="" bzw. aria-hidden): der Name steht
   unmittelbar daneben. */
.team-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary-deep);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
}

img.team-avatar {
  display: block;
  object-fit: cover;                  /* quadratischer Zuschnitt, siehe tools/gen-portraits.py */
}

.team-avatar-lg {
  width: 6rem;
  height: 6rem;
  margin-bottom: 0.9rem;
  font-size: var(--text-xl);
}

.team-body {
  min-width: 0;                       /* erlaubt Umbruch langer Namen im Grid */
}

.team-card h4 {
  margin-bottom: 0.15em;
  font-size: var(--text-lg);
}

.team-card-lead {
  border-top: 4px solid var(--color-primary);
}

.team-card .team-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.team-card .team-role {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  line-height: 1.4;
}

/* Grundrolle + Funktions-Badges in einer Zeile */
.team-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.45rem;
  margin-top: 0.1rem;
}

.team-tag {
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--color-primary-tint);
  color: var(--color-primary-deep);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.team-contact {
  margin: 0.6rem 0 0;
  font-size: var(--text-sm);
}

.team-grid .team-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
}

/* ----- Karte / Einsatzgebiet ----- */
.map-embed {
  max-width: 800px;                   /* Karte bleibt lesbar, Kante bündig mit Text */
  margin-top: 1.5rem;
}

.map-alt-link {
  margin: 1rem 0 0;
  font-size: var(--text-sm);
}

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ----- Mitmachen / Unterstützen ----- */
.support-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.support-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.support-card h3 {
  font-size: var(--text-2xl);
  color: var(--color-primary-deep);
}

.support-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* ----- Galerie ----- */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.gallery-grid:empty {
  display: none;
}

.gallery-item {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery-empty {
  color: var(--color-ink-soft);
}

/* ----- Kontakt ----- */
.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.contact-card address {
  font-style: normal;
  margin-bottom: 1em;
}

.contact-card-emergency {
  border-top: 4px solid var(--color-emergency);
}

.contact-euro-note {
  margin: 1em 0 0;
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--color-ink);
  color: #d7ded9;
  padding-block: 3rem 0;
  margin-top: 0;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: #9fe0c6;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
}

.footer-brand img {
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9fb0a8;
  margin-bottom: 0.75em;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.25rem;
  font-size: var(--text-sm);
}

.footer-bottom p {
  margin: 0;
}

/* ----- Lightbox ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 43, 37, 0.94);
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  text-align: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius);
}

.lightbox-figure figcaption {
  color: #fff;
  margin-top: 0.75rem;
  font-size: var(--text-sm);
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ----- Scroll-Reveal (IntersectionObserver setzt .is-visible) ----- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Ohne JS bzw. bei reduzierter Bewegung: alles sofort sichtbar */
.no-js .reveal,
.reduced-motion .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* ----- bis 1023px: Burger-Menü (darunter passt die volle Navigation
   nicht neben das Logo) ----- */
@media (max-width: 1023px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-lift);
    padding: 0.5rem 1rem 1rem;
    display: none;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.85rem 0.8rem;
    font-size: var(--text-lg);
  }

  .site-nav {
    position: static;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
  }
}

/* ----- ab 480px ----- */
@media (min-width: 480px) {
  .emergency-questions {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- ab 768px ----- */
@media (min-width: 768px) {
  .section {
    padding-block: 5.5rem;
  }

  .team-lead-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .support-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 3fr 2fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .emergency-questions {
    grid-template-columns: repeat(4, auto);
    justify-content: start;
  }
}

/* ----- ab 1100px ----- */
@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-content {
    padding-block: 5.5rem 6.5rem;
  }
}
