/* ==========================================================================
   ERSTE HILFE GLÜCKAUF – Stylesheet
   --------------------------------------------------------------------------
   Mobile First: Die Grundregeln gelten für Smartphones. Größere Bildschirme
   werden über @media (min-width: …) ergänzt.
   Farben, Schrift und Abstände lassen sich zentral unter :root anpassen.
   ========================================================================== */


/* ---------- Schrift: Poppins, lokal eingebunden (keine Verbindung zu Google) */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-400.woff") format("woff");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/poppins-500.woff") format("woff");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/poppins-700.woff") format("woff");
}


/* ---------- Gestaltungs-Variablen ---------------------------------------- */

:root {
  /* Markenfarben */
  --rot: #c40b10;            /* Markenrot aus dem Logo */
  --rot-dunkel: #9f080c;     /* Hover-Zustand */
  --rot-hell: #f04a4f;       /* Rot für kleine Elemente auf dunklem Grund (Kontrast) */
  --schwarz: #000;
  --anthrazit: #1c1d20;
  --linie-dunkel: #36383d;
  --grau-hell: #f3f3f3;
  --grau-linie: #dcdcdc;
  --grau-text: #55585d;
  --grau-gedaempft: #75787d;
  --grau-auf-dunkel: #b9bbbf;
  --weiss: #fff;
  --text: #161616;

  /* Schrift */
  --schrift: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --breite: 80rem;           /* max. 1280 px inkl. Seitenrand */
  --rand: 1.25rem;
  --radius: 10px;
  --radius-klein: 6px;
  --header-hoehe: 4.5rem;
  --ekg-hoehe: 4rem;
}

@media (min-width: 48em) {
  :root { --rand: 2rem; --ekg-hoehe: 5rem; }
}
@media (min-width: 64em) {
  :root { --ekg-hoehe: 6rem; }
}
@media (min-width: 73.75em) {
  :root { --rand: 2.5rem; --header-hoehe: 6rem; }
}


/* ---------- Grundlagen ---------------------------------------------------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--weiss);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 64em) {
  body { font-size: 1.0625rem; }
}

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

h1, h2, h3, p, ul, figure { margin: 0; }

ul { padding: 0; list-style: none; }

a { color: inherit; }

strong { font-weight: 700; }

::selection { background: var(--rot); color: var(--weiss); }

:focus-visible {
  outline: 3px solid var(--rot);
  outline-offset: 3px;
}

.dunkel :focus-visible { outline-color: var(--weiss); }

main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  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: -10rem;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--rot);
  color: var(--weiss);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-klein);
}

.skip-link:focus { top: 1rem; }

.sprite { display: none; }

.nowrap { white-space: nowrap; }

.container {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-left: max(var(--rand), env(safe-area-inset-left, 0px));
  padding-right: max(var(--rand), env(safe-area-inset-right, 0px));
}

.icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--rot);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dunkel .icon { color: var(--rot-hell); }


/* ---------- Buttons ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-klein);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.btn:active { transform: translateY(1px); }

.btn--rot { background: var(--rot); color: var(--weiss); }
.btn--rot:hover { background: var(--rot-dunkel); }

.btn--gross {
  min-height: 3.75rem;
  padding-inline: 1.25rem;
  font-size: 1rem;
}

@media (min-width: 30em) {
  .btn--gross {
    padding-inline: 2rem;
    font-size: 1.0625rem;
  }
}

.btn--kontur { border-color: var(--text); color: var(--text); }
.btn--kontur:hover { background: var(--text); color: var(--weiss); }

.btn--kontur-hell { border-color: rgba(255, 255, 255, .4); color: var(--weiss); }
.btn--kontur-hell:hover { border-color: var(--weiss); background: rgba(255, 255, 255, .06); }

.btn--breit { width: 100%; }


/* ---------- Header & Navigation ------------------------------------------- */

/* Ohne JavaScript bleibt der Kopfbereich normal im Fluss (Menü ist dann aufgeklappt). */
.site-header {
  position: relative;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--weiss);
  border-bottom: 1px solid var(--grau-linie);
}

.js .site-header {
  position: sticky;
  top: 0;
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.5rem;
  min-height: var(--header-hoehe);
}

.header__logo {
  display: block;
  flex-shrink: 0;
  padding-block: .375rem;
}

.header__logo img {
  width: auto;
  height: 3.75rem;
}

/* Hamburger-Schaltfläche (nur mit JavaScript sichtbar) */
.nav-toggle { display: none; }

.js .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-right: -.625rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-klein);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__balken,
.nav-toggle__balken::before,
.nav-toggle__balken::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle__balken {
  position: relative;
  transition: background-color .15s ease;
}

.nav-toggle__balken::before,
.nav-toggle__balken::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform .2s ease;
}

.nav-toggle__balken::before { top: -7px; }
.nav-toggle__balken::after { top: 7px; }

.nav-offen .nav-toggle__balken { background-color: transparent; }
.nav-offen .nav-toggle__balken::before { transform: translateY(7px) rotate(45deg); }
.nav-offen .nav-toggle__balken::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobiles Menü */
.site-nav {
  flex-basis: 100%;
  padding-bottom: 1.25rem;
}

.js .site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: .25rem max(var(--rand), env(safe-area-inset-right, 0px)) 1.5rem max(var(--rand), env(safe-area-inset-left, 0px));
  background: var(--weiss);
  border-bottom: 1px solid var(--grau-linie);
  box-shadow: 0 28px 40px -28px rgba(0, 0, 0, .35);
  max-height: calc(100vh - var(--header-hoehe));
  max-height: calc(100dvh - var(--header-hoehe));
  overflow-y: auto;
}

.js .site-header.nav-offen .site-nav { display: block; }

.nav__liste a {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--grau-linie);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
}

.nav__liste a:hover { color: var(--rot); }

.nav__cta {
  width: 100%;
  margin-top: 1.25rem;
}

/* Desktop-Navigation */
@media (min-width: 73.75em) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header__inner { flex-wrap: nowrap; }

  .header__logo img { height: 5.25rem; }

  .js .nav-toggle { display: none; }

  .site-nav,
  .js .site-nav,
  .js .site-header.nav-offen .site-nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    position: static;
    flex-basis: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }

  .nav__liste {
    display: flex;
    gap: 1.75rem;
  }

  .nav__liste a {
    position: relative;
    min-height: 2.75rem;
    border: 0;
    font-size: .9375rem;
  }

  .nav__liste a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .375rem;
    height: 2px;
    background: var(--rot);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
  }

  .nav__liste a:hover { color: var(--text); }
  .nav__liste a:hover::after { transform: scaleX(1); }

  .nav__cta {
    width: auto;
    margin-top: 0;
  }
}


/* ---------- Abschnitte allgemein ------------------------------------------ */

.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem); }

.section--grau { background: var(--grau-hell); }

.section--dunkel {
  background: var(--anthrazit);
  color: var(--weiss);
}

main [id] { scroll-margin-top: var(--header-hoehe); }

.kennzeichnung {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.125rem;
  color: var(--rot);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kennzeichnung::before {
  content: "";
  width: 1.5rem;
  height: 3px;
  background: currentColor;
}

.dunkel .kennzeichnung { color: var(--rot-hell); }

.h2 {
  font-size: clamp(1.875rem, 1.2rem + 3vw, 3.375rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.h2 .gedaempft {
  display: block;
  color: var(--grau-gedaempft);
}

.einleitung {
  max-width: 38rem;
  margin-top: 1.5rem;
  color: var(--grau-text);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.7;
}

.dunkel .einleitung { color: var(--grau-auf-dunkel); }

.kopf {
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4rem);
}


/* ---------- Startbereich (Hero) ------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.75rem, 1.5rem + 4vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  background: var(--schwarz);
  color: var(--weiss);
}

.hero__ort {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: clamp(1rem, .5rem + 1.5vw, 1.75rem);
  color: var(--grau-auf-dunkel);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.hero__ort .icon { width: 1.25rem; height: 1.25rem; }

.hero__titel {
  font-size: clamp(2.5rem, 15.25vw, 9.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

@media (min-width: 64em) {
  .hero__titel { font-size: clamp(4.5rem, min(15.25vw, 18vh), 9.5rem); }
}

.hero__zeile { display: block; }
.hero__zeile--rot { color: var(--rot); }

/* EKG-Linie – greift die Herzlinie aus dem Logo auf */
.hero__ekg {
  display: flex;
  align-items: center;
  height: var(--ekg-hoehe);
  margin-block: clamp(1.25rem, .75rem + 2vw, 2.25rem);
  color: var(--rot);
}

.ekg__linie {
  height: calc(var(--ekg-hoehe) * .03125);
  background: currentColor;
}

.ekg__linie--links {
  flex: 1 1 auto;
  transform-origin: left center;
}

.ekg__linie--rechts {
  flex: 0 0 clamp(1.5rem, 18vw, 20rem);
  transform-origin: left center;
}

.ekg__zacke {
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  overflow: visible;
}

.ekg__zacke path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.125;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .ekg__linie--links { animation: ekg-linie .9s cubic-bezier(.5, 0, .9, .6) .2s backwards; }
  .ekg__zacke path { animation: ekg-zacke .55s linear 1.1s backwards; }
  .ekg__linie--rechts { animation: ekg-linie .45s cubic-bezier(.1, .5, .3, 1) 1.65s backwards; }
}

@keyframes ekg-linie {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes ekg-zacke {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.hero__unten {
  display: grid;
  gap: 1.25rem;
}

.hero__slogan {
  font-size: clamp(1.375rem, 1.05rem + 1.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.hero__text {
  max-width: 36rem;
  color: var(--grau-auf-dunkel);
  font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
  line-height: 1.7;
}

.hero__aktionen {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.75rem;
}

/* Optionales Foto im Startbereich (siehe Kommentar in index.html) */
.hero__bild {
  margin-top: 1rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--anthrazit);
}

.hero__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 30em) {
  .hero__aktionen {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 64em) {
  .hero__unten {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
    align-items: start;
  }

  .hero__unten:has(.hero__bild) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "slogan bild" "inhalt bild";
    row-gap: 1.5rem;
  }

  .hero__unten:has(.hero__bild) .hero__slogan { grid-area: slogan; }
  .hero__unten:has(.hero__bild) .hero__inhalt { grid-area: inhalt; }
  .hero__unten:has(.hero__bild) .hero__bild { grid-area: bild; margin-top: 0; }
}


/* ---------- Unser Ansatz --------------------------------------------------- */

.ansatz__kopf { max-width: 72rem; }

.ansatz {
  display: grid;
  gap: 2.5rem;
  margin-top: 1.75rem;
}

.ansatz .einleitung { margin-top: 0; }

.vorteile { border-top: 1px solid var(--grau-linie); }

.vorteile li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.375rem;
  border-bottom: 1px solid var(--grau-linie);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.vorteile .icon { width: 2rem; height: 2rem; }

@media (min-width: 64em) {
  .ansatz {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 5rem;
    margin-top: 3rem;
    align-items: start;
  }
}


/* ---------- Unsere Schulungen --------------------------------------------- */

.karten {
  display: grid;
  gap: 1.25rem;
}

.karte {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 1.25rem;
  background: var(--weiss);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.karte::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  width: 2.5rem;
  height: 4px;
  background: var(--rot);
}

.karte:hover {
  transform: translateY(-4px);
  border-color: var(--grau-linie);
  box-shadow: 0 22px 40px -28px rgba(0, 0, 0, .4);
}

.karte__icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.25rem;
}

.karte__titel {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.karte__text {
  margin-top: .75rem;
  color: var(--grau-text);
}

.karte__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 2.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--rot);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}

.karte__link:hover { color: var(--rot-dunkel); }

/* Platz für spätere Anerkennungen / Kennziffern (siehe index.html) */
.anerkennung {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--weiss);
  border-left: 4px solid var(--rot);
  border-radius: 0 var(--radius-klein) var(--radius-klein) 0;
  font-weight: 500;
}

@media (min-width: 40em) {
  .karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .karte { padding: 2.25rem 1.75rem 1.5rem; }
  .karte::before { left: 1.75rem; }
  .karte__icon { width: 2.5rem; height: 2.5rem; margin-bottom: 1.75rem; }
}

@media (min-width: 68.75em) {
  .karten {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}


/* ---------- Inhouse-Schulungen -------------------------------------------- */

.inhouse {
  display: grid;
  gap: 2.5rem;
  padding: clamp(1.75rem, 1rem + 4vw, 4.5rem);
  background: var(--grau-hell);
  border-top: 6px solid var(--rot);
  border-radius: var(--radius);
}

.inhouse .btn { margin-top: 2rem; }

.aufteilung {
  display: grid;
  gap: .75rem;
}

.aufteilung__punkt {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  padding: 1.25rem 1.375rem;
  background: var(--weiss);
  border-radius: var(--radius-klein);
}

.aufteilung__wer {
  color: var(--grau-text);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.aufteilung__was {
  margin-top: .25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 29.99em) {
  .inhouse .btn { width: 100%; }
}

@media (max-width: 47.99em) {
  .inhouse {
    margin-inline: calc(-1 * var(--rand));
    padding: 2.75rem var(--rand) 2.5rem;
    border-radius: 0;
  }
}

@media (min-width: 64em) {
  .inhouse {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 4.5rem;
    align-items: center;
  }
}


/* ---------- Warum Erste Hilfe Glückauf? ----------------------------------- */

.warum__kopf {
  display: grid;
  gap: .75rem;
  margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.warum__claim {
  color: var(--grau-auf-dunkel);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.warum__claim .punkt { color: var(--rot-hell); }

.gruende { border-top: 1px solid var(--linie-dunkel); }

.grund {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.25rem;
  row-gap: .375rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--linie-dunkel);
}

.grund .icon {
  grid-row: 1 / span 2;
  width: 2rem;
  height: 2rem;
}

.grund__titel {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.grund__text { color: var(--grau-auf-dunkel); }

@media (min-width: 40em) and (max-width: 68.74em) {
  .gruende {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}

@media (min-width: 68.75em) {
  .gruende {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 0;
  }

  .grund {
    display: block;
    padding: .25rem 1.5rem 0;
    border-bottom: 0;
    border-left: 1px solid var(--linie-dunkel);
  }

  .grund:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .grund .icon {
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 1.5rem;
  }

  .grund__titel { margin-bottom: .625rem; }
}


/* ---------- Region & Standort --------------------------------------------- */

.standort {
  display: grid;
  gap: 3rem;
}

.standort__zusatz {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--grau-text);
}

.adresse {
  margin-top: 2.25rem;
  padding: 1.5rem;
  background: var(--grau-hell);
  border-left: 4px solid var(--rot);
  border-radius: 0 var(--radius-klein) var(--radius-klein) 0;
}

.adresse__label {
  color: var(--grau-text);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.adresse__anschrift {
  margin-top: .5rem;
  font-size: 1.125rem;
  line-height: 1.55;
}

.adresse .btn { margin-top: 1.25rem; }

.standort__medium {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--grau-hell);
  border-radius: var(--radius);
}

.standort__medium img,
.standort__medium svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.standort__bild figcaption {
  margin-top: .75rem;
  color: var(--grau-text);
  font-size: .875rem;
  line-height: 1.5;
}

.regionskarte text { font-family: var(--schrift); }

@media (min-width: 64em) {
  .standort {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
    align-items: center;
  }
}


/* ---------- Kontakt ------------------------------------------------------- */

.kontakt {
  display: grid;
  gap: 2.5rem;
}

.kontaktwege {
  display: grid;
  gap: .75rem;
}

.kontaktweg {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: 1.125rem;
  background: var(--weiss);
  border: 1px solid var(--grau-linie);
  border-radius: var(--radius-klein);
  text-decoration: none;
  transition: border-color .2s ease;
}

.kontaktweg:hover { border-color: var(--rot); }

@media (min-width: 30em) {
  .kontaktweg {
    gap: 1.125rem;
    padding: 1.25rem 1.375rem;
  }
}

.kontaktweg__label {
  display: block;
  color: var(--grau-text);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.kontaktweg__wert {
  display: block;
  font-size: clamp(1rem, 4.4vw, 1.375rem);
  font-weight: 700;
  line-height: 1.35;
}

.kontaktwege .btn { margin-top: .75rem; }

@media (min-width: 64em) {
  .kontakt {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 5rem;
    align-items: center;
  }
}


/* ---------- Footer -------------------------------------------------------- */

.site-footer {
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--schwarz);
  color: var(--grau-auf-dunkel);
  font-size: .9375rem;
  line-height: 1.6;
}

.footer__raster {
  display: grid;
  gap: 2.5rem;
}

.footer__logo {
  display: inline-block;
  padding: .625rem .875rem;
  background: var(--weiss);
  border-radius: var(--radius-klein);
}

.footer__logo img {
  width: auto;
  height: 6.5rem;
}

.footer__slogan {
  margin-top: 1.5rem;
  color: var(--weiss);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.footer__text {
  max-width: 22rem;
  margin-top: .5rem;
}

.footer__titel {
  margin-bottom: .875rem;
  color: var(--weiss);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer__liste li + li { margin-top: .25rem; }

.footer__liste a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: var(--grau-auf-dunkel);
  text-decoration: none;
}

.footer__liste a:hover {
  color: var(--weiss);
  text-decoration: underline;
  text-underline-offset: .25em;
}

.footer__unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid #2b2c2f;
  color: #8d9095;
  font-size: .875rem;
}

@media (min-width: 40em) {
  .footer__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__marke { grid-column: 1 / -1; }
}

@media (min-width: 64em) {
  .footer__raster {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }

  .footer__marke { grid-column: auto; }
}


/* ---------- Impressum & Datenschutz --------------------------------------- */

.rechtliches {
  padding-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding-bottom: clamp(4rem, 3rem + 4vw, 7rem);
}

.rechtliches__inhalt { max-width: 46rem; }

.rechtliches h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.rechtliches h2 {
  margin: 2.75rem 0 .75rem;
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.rechtliches h3 {
  margin: 1.75rem 0 .5rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.rechtliches p,
.rechtliches ul { margin-bottom: 1rem; }

.rechtliches ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.rechtliches li + li { margin-top: .375rem; }

.rechtliches li::marker { color: var(--rot); }

.rechtliches a {
  color: var(--rot);
  text-underline-offset: .2em;
}

.rechtliches a:hover { color: var(--rot-dunkel); }

.rechtliches .stand {
  margin-top: 3rem;
  color: var(--grau-text);
  font-size: .9375rem;
}


/* ---------- Anfrageformular (Dialog) ------------------------------------- */

[hidden] { display: none !important; }

html.dialog-offen { overflow: hidden; }

.anfrage {
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--weiss);
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.anfrage::backdrop { background: rgba(0, 0, 0, .65); }

@media (prefers-reduced-motion: no-preference) {
  .anfrage[open] { animation: dialog-ein .2s ease-out; }
  .anfrage[open]::backdrop { animation: hintergrund-ein .2s ease-out; }
}

@keyframes dialog-ein {
  from { opacity: 0; transform: translateY(.75rem); }
  to { opacity: 1; transform: none; }
}

@keyframes hintergrund-ein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.anfrage__kopf {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(.5rem + env(safe-area-inset-top, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)) .5rem max(1.25rem, env(safe-area-inset-left, 0px));
  background: var(--schwarz);
  color: var(--weiss);
}

.anfrage__titel {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.anfrage__schliessen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-right: -.625rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-klein);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.anfrage__schliessen:hover { background: rgba(255, 255, 255, .1); }

.anfrage__schliessen svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.anfrage__direkt {
  padding: 1.25rem max(1.25rem, env(safe-area-inset-right, 0px)) 1.5rem max(1.25rem, env(safe-area-inset-left, 0px));
  background: var(--schwarz);
  color: var(--weiss);
  border-top: 1px solid #2b2c2f;
}

.anfrage__direkt-text {
  color: var(--grau-auf-dunkel);
  font-size: .9375rem;
  line-height: 1.5;
}

.anfrage__telefon {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 2.75rem;
  margin-top: .25rem;
  color: var(--weiss);
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.anfrage__telefon:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.anfrage__telefon .icon { width: 1.5rem; height: 1.5rem; }

.anfrage__region {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-top: .75rem;
  color: var(--grau-auf-dunkel);
  font-size: .9375rem;
  line-height: 1.5;
}

.anfrage__region .icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .1rem;
}

.anfrage__formular,
.anfrage__erfolg {
  padding: 1.5rem max(1.25rem, env(safe-area-inset-right, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
}

/* Formularfelder */
.formular {
  display: grid;
  gap: 1.125rem;
}

.formular__pflicht {
  color: var(--grau-text);
  font-size: .875rem;
}

.pflicht { color: var(--rot); }

.feld {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.feld__label {
  display: block;
  margin: 0;
  padding: 0 0 .375rem;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.eingabe {
  display: block;
  width: 100%;
  min-height: 3.125rem;
  padding: .75rem .875rem;
  border: 1px solid #8a8d92;
  border-radius: var(--radius-klein);
  background: var(--weiss);
  color: var(--text);
  font: inherit;
  font-size: 1rem;   /* mind. 16 px: verhindert automatisches Zoomen auf dem iPhone */
  line-height: 1.4;
  transition: border-color .15s ease;
}

.eingabe::placeholder {
  color: #6f7276;
  opacity: 1;
}

.eingabe:hover { border-color: var(--grau-text); }

.eingabe:focus {
  outline: 2px solid var(--rot);
  outline-offset: 1px;
  border-color: var(--rot);
}

textarea.eingabe {
  min-height: 7rem;
  resize: vertical;
}

select.eingabe {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right .875rem center;
  background-repeat: no-repeat;
  background-size: 1.125rem;
}

.ortwahl {
  display: grid;
  gap: .625rem;
}

.ortwahl__option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1rem;
  border: 1px solid #8a8d92;
  border-radius: var(--radius-klein);
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.ortwahl__option:hover { border-color: var(--text); }

.ortwahl__option:has(input:checked) {
  border-color: var(--rot);
  background: #fdf3f3;
  box-shadow: inset 0 0 0 1px var(--rot);
}

.ortwahl__option input {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin: .125rem 0 0;
  accent-color: var(--rot);
}

.ortwahl__titel {
  display: block;
  font-weight: 700;
}

.ortwahl__info {
  display: block;
  margin-top: .125rem;
  color: var(--grau-text);
  font-size: .875rem;
}

.formular__fuss {
  display: grid;
  gap: .875rem;
  margin-top: .375rem;
}

.formular__fuss .btn { width: 100%; }

.formular__hinweis {
  color: var(--grau-text);
  font-size: .8125rem;
  line-height: 1.55;
}

.formular__hinweis a {
  color: inherit;
  text-underline-offset: .2em;
}

/* Ansicht nach dem Absenden */
.anfrage__erfolg-titel {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.anfrage__erfolg-titel:focus { outline: none; }

.anfrage__erfolg p {
  max-width: 36rem;
  margin-top: .75rem;
  color: var(--grau-text);
}

.anfrage__erfolg a {
  color: var(--rot);
  font-weight: 500;
}

.anfrage__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.anfrage__aktionen .btn { flex: 1 1 13rem; }

.anfrage__erfolg .anfrage__status {
  min-height: 1.5em;
  margin-top: 1rem;
  color: var(--text);
  font-weight: 500;
}

.anfrage__details { margin-top: .5rem; }

.anfrage__details summary {
  display: list-item;
  padding-block: .625rem;
  font-weight: 700;
  cursor: pointer;
}

.anfrage__details summary::marker { color: var(--rot); }

.anfrage__vorschau {
  max-height: 15rem;
  margin: .5rem 0 0;
  padding: 1rem;
  overflow: auto;
  background: var(--grau-hell);
  border-radius: var(--radius-klein);
  font: inherit;
  font-size: .875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: .5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rot);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
  cursor: pointer;
}

@media (min-width: 40em) {
  .anfrage {
    width: min(calc(100% - 3rem), 46rem);
    height: auto;
    height: fit-content;
    max-height: calc(100vh - 3rem);
    max-height: calc(100dvh - 3rem);
    margin: auto;
    border-radius: var(--radius);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
  }

  .anfrage__kopf { padding: .75rem 1.25rem .75rem 2rem; }
  .anfrage__direkt { padding: 1.25rem 2rem 1.5rem; }

  .anfrage__formular,
  .anfrage__erfolg { padding: 1.75rem 2rem 2rem; }

  .formular {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

  .formular__pflicht,
  .feld--breit,
  .formular__fuss { grid-column: 1 / -1; }

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

  .formular__fuss .btn {
    justify-self: start;
    width: auto;
  }
}


/* ---------- Reduzierte Bewegung ------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation: none !important;
  }
}
