@import url('../fonts/fonts.css');

/* =========================================================
   Verbund Impuls – Basis-Stylesheet
   Farbwelt und Typografie abgeleitet aus den bestehenden
   Seiten alltagshilfe / ergotherapie-impuls.de
   ========================================================= */

:root {
  --bordeaux: #820a21;
  --bordeaux-dark: #6a0819;
  --bordeaux-soft: #f7ecee;
  --lime: #a9c23f;
  --lime-light: #bbd152;
  --lime-soft: #f2f6e4;
  /* Abgedunkelte Limette für Text auf hellem Grund – erfüllt WCAG AA (4.5:1) */
  --lime-text: #5e6c22;
  --ink: #2f2f2f;
  --grey: #505050;
  --grey-light: #6e6e6e;
  --sand: #ece7e2;
  --cream: #fcfbfa;
  --white: #ffffff;
  --line: #e2ddd8;

  --font-head: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --shadow: 0 2px 8px rgba(47, 47, 47, .06);
  --shadow-lift: 0 14px 34px rgba(130, 10, 33, .13);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--grey);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--bordeaux); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--bordeaux-dark); text-decoration: underline; }

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

strong { color: var(--ink); font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--bordeaux);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

/* Schmale Variante für Textseiten – hält Hero und Fließtext bündig */
.wrap-narrow { max-width: 900px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bordeaux);
  color: var(--white);
  padding: .8rem 1.4rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Kopfbereich ---------- */

.site-header .wrap { max-width: 1340px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 96px;
  padding-block: .8rem;
}

/* Wortmarke als Platzhalter – wird gegen die Logodatei getauscht,
   sobald sie vorliegt (siehe .brand-logo img) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

/* Bereichslogo im Kopfbereich – das Logo trägt zwei Zeilen plus Namenszusatz,
   deshalb etwas mehr Höhe als eine reine Wortmarke */
.brand-logo {
  height: clamp(50px, 5.4vw, 70px);
  width: auto;
  max-width: 100%;
}

.brand-mark {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.05;
  white-space: nowrap;
}
.brand-mark small {
  display: block;
  font-size: .58em;
  font-weight: 400;
  letter-spacing: .26em;
  margin-bottom: .12em;
}
.brand-mark b { font-weight: 600; color: var(--bordeaux); letter-spacing: .1em; }
.brand-mark i { font-style: normal; font-weight: 600; color: var(--lime); letter-spacing: .1em; }

.brand-pulse { flex: 0 0 auto; }
.brand-pulse svg { display: block; width: 40px; height: 36px; }

/* Logo und Bereichsname nebeneinander */
.brand-block {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 1.6vw, 1.1rem);
  min-width: 0;
}

.bereich-name {
  position: relative;
  padding-left: clamp(.7rem, 1.6vw, 1.1rem);
  font-family: var(--font-head);
  font-size: clamp(.95rem, 1.5vw, 1.08rem);
  font-weight: 600;
  color: var(--bordeaux);
  white-space: nowrap;
}
.bereich-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1.9em;
  background: var(--line);
}

/* Der Bereichsname ist Zusatzinformation – er weicht als Erstes,
   wenn die Menüleiste eng wird. Danach die Telefonnummer, die als
   Schaltfläche ohnehin auf jeder Seite mehrfach vorhanden ist. */
@media (max-width: 1240px) {
  .bereich-name { display: none; }
}
@media (max-width: 1060px) and (min-width: 881px) {
  .main-nav .nav-phone-item { display: none; }
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.55rem, 1.5vw, 1.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--grey);
  padding-block: .3rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--bordeaux);
  border-bottom-color: var(--lime);
  text-decoration: none;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  color: var(--bordeaux);
  white-space: nowrap;
}
.nav-phone svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* ---------- Zurück zur Bereichsauswahl ---------- */

.nav-zurueck {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--grey);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1rem;
  white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.nav-zurueck:hover {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: var(--white);
  text-decoration: none;
}
.nav-zurueck svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* ---------- Untermenü ---------- */

.has-sub { position: relative; }

.sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  color: var(--grey);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: .3rem 0;
  cursor: pointer;
}
.sub-toggle:hover,
.has-sub[data-open="true"] .sub-toggle,
.sub-toggle[aria-current="page"] {
  color: var(--bordeaux);
  border-bottom-color: var(--lime);
}
.sub-toggle svg {
  width: 13px;
  height: 13px;
  transition: transform .25s var(--ease);
}
.has-sub[data-open="true"] .sub-toggle svg { transform: rotate(180deg); }

/* .main-nav davor, sonst schlägt „.main-nav ul { display:flex }“ die Regel
   und die Einträge stehen nebeneinander statt untereinander */
.main-nav .sub-menu {
  display: block;
  position: absolute;
  top: calc(100% + .5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 14rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(47, 47, 47, .14);
  padding: .5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 20;
}
.has-sub[data-open="true"] .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.sub-menu li { margin: 0; }
.sub-menu a {
  display: block;
  padding: .6rem .9rem;
  border-radius: 8px;
  font-size: .95rem;
  border-bottom: 0;
  white-space: nowrap;
}
.sub-menu a:hover,
.sub-menu a[aria-current="page"] {
  background: var(--lime-soft);
  color: var(--bordeaux);
  border-bottom: 0;
}

/* Telefon-Schaltfläche und Menü-Button – nur auf schmalen Bildschirmen */
.header-actions {
  display: none;
  align-items: center;
  gap: .6rem;
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
  background: var(--bordeaux);
  border-radius: 999px;
  padding: .6rem 1.1rem;
  white-space: nowrap;
}
.header-call:hover { background: var(--bordeaux-dark); color: var(--white); text-decoration: none; }
.header-call svg { width: 17px; height: 17px; flex: 0 0 auto; }

.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .5rem .6rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  padding: .95rem 1.9rem;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--bordeaux); color: var(--white); }
.btn-primary:hover { background: var(--bordeaux-dark); color: var(--white); box-shadow: var(--shadow-lift); }

.btn-outline { border-color: var(--bordeaux); color: var(--bordeaux); background: transparent; }
.btn-outline:hover { background: var(--bordeaux); color: var(--white); }

.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-light); color: var(--ink); box-shadow: 0 14px 34px rgba(169, 194, 63, .3); }

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

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.section-sand { background: var(--cream); }
.section-band { background: var(--sand); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime-text);
  margin-bottom: .9rem;
}

.lead { font-size: clamp(1.08rem, 1.7vw, 1.25rem); color: var(--grey); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: rgba(255, 255, 255, .9);
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(7rem, 12vw, 11rem);
}

/* Foto liegt hinter einem kräftigen Farbverlauf, damit der Text sicher lesbar bleibt */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../img/hero-team.jpg');
  background-size: cover;
  background-position: 56% 26%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* Abdunklung nach unten, damit die Karten sauber aufliegen */
    linear-gradient(180deg, rgba(74, 5, 19, .3) 0%, rgba(74, 5, 19, 0) 34%, rgba(74, 5, 19, .55) 100%),
    /* Grundton von links nach rechts */
    linear-gradient(100deg, rgba(88, 6, 22, .97) 0%, rgba(122, 9, 31, .94) 46%, rgba(130, 10, 33, .84) 78%, rgba(110, 8, 27, .8) 100%);
}

.hero-pulse {
  position: absolute;
  inset-inline: 0;
  bottom: -10px;
  z-index: -1;
  width: 100%;
  height: clamp(90px, 14vw, 170px);
  opacity: .12;
  pointer-events: none;
}
.hero-pulse svg { width: 100%; height: 100%; }
.hero-pulse path { stroke: var(--lime-light); stroke-width: 2; }

.hero-inner { position: relative; z-index: 1; }

.hero-text { max-width: 44rem; }
.hero-text h1 { margin-bottom: .45em; color: var(--white); text-wrap: balance; }
.hero-text .lead { font-size: clamp(1.1rem, 1.9vw, 1.32rem); color: rgba(255, 255, 255, .88); }
.hero .eyebrow { color: var(--lime-light); }

/* ---------- Bereichskarten (Startseite) ---------- */

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(1.25rem, 2.4vw, 1.9rem);
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}

/* Die Bereichskarten ragen in den Hero hinein */
.area-section {
  position: relative;
  z-index: 3;
  margin-top: clamp(-7rem, -9vw, -5rem);
  padding-top: 0;
}
.area-section .area-grid { margin-top: 0; }

.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

.area-section .area-card { box-shadow: 0 18px 44px rgba(47, 47, 47, .16); border-color: transparent; }

.area-card:hover,
.area-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}

/* Bildkopf */
.area-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--sand);
}
.area-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.area-card:hover .area-media img { transform: scale(1.05); }

.area-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(47, 47, 47, 0) 42%, rgba(47, 47, 47, .62) 100%);
}

.area-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
}

.area-card .sgb {
  position: absolute;
  z-index: 1;
  left: clamp(1rem, 2vw, 1.3rem);
  bottom: clamp(1rem, 2vw, 1.3rem);
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(130, 10, 33, .93);
  border-radius: 999px;
  padding: .4rem 1rem;
}

/* Karten ohne Bild (Abschnitt „Warum ein Verbund“) */
.area-card.plain-card .area-body { padding-top: clamp(1.8rem, 3vw, 2.3rem); }

.area-card h3 { margin-bottom: .55em; }
.area-card h3 span { display: block; font-weight: 300; color: var(--grey-light); font-size: .95em; }

.area-card p { color: var(--grey); font-size: 1rem; }

.area-card ul {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  font-size: .97rem;
}
.area-card ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .5rem;
}
.area-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
}

.area-card .card-foot { margin-top: auto; padding-top: .5rem; }

/* Ganze Karte klickbar, Link bleibt aber tastaturbedienbar */
.area-card .stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.area-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: var(--bordeaux);
}
.area-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.area-card:hover .area-link svg { transform: translateX(5px); }

.ext-hint {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--grey-light);
  margin-top: .7rem;
}
.ext-hint svg { width: 13px; height: 13px; }

/* ---------- Inhaltsseiten ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: rgba(255, 255, 255, .9);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
}
.page-hero .lead { max-width: 42rem; color: rgba(255, 255, 255, .88); }
.page-hero h1 { color: var(--white); text-wrap: balance; }
.page-hero .eyebrow { color: var(--lime-light); }

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center 22%;
}
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(74, 5, 19, .28) 0%, rgba(74, 5, 19, 0) 40%, rgba(74, 5, 19, .5) 100%),
    linear-gradient(100deg, rgba(88, 6, 22, .97) 0%, rgba(122, 9, 31, .93) 48%, rgba(130, 10, 33, .82) 100%);
}

.breadcrumb {
  font-size: .88rem;
  color: rgba(255, 255, 255, .68);
  margin-bottom: 1.1rem;
}
.breadcrumb a { color: rgba(255, 255, 255, .88); }
.breadcrumb a:hover { color: var(--lime-light); }
.breadcrumb span { margin-inline: .45rem; }

/* ---------- Leistungen als Kacheln ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
/* Sechs Kacheln sollen als zwei Reihen à drei stehen, nicht als 4 + 2 */
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  /* Vier Kacheln nebeneinander statt 3 + 1 */
  .feature-grid.vierer { grid-template-columns: repeat(4, 1fr); }
  /* Zwei Kacheln über die volle Breite statt 2 + Leerraum */
  .feature-grid.zweier { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 600px) and (max-width: 899px) {
  .feature-grid.vierer { grid-template-columns: repeat(2, 1fr); }
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 1.9rem);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--lime-soft);
  color: var(--bordeaux);
  margin-bottom: 1.1rem;
}
.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: .4em;
  color: var(--ink);
}
.feature-card p { font-size: .97rem; margin: 0; }

/* ---------- Text neben Bild ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.split.reverse .split-media { order: -1; }

/* ---------- Ablauf in Schritten ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  counter-reset: schritt;
}

.step {
  position: relative;
  counter-increment: schritt;
  padding-top: 3.6rem;
}
.step::before {
  content: counter(schritt);
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bordeaux);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
}
/* Verbindungslinie zwischen den Schritten */
.step::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 62px;
  right: -1.4rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 15px);
}
.step:last-child::after { display: none; }

.step h3 { font-size: 1.12rem; margin-bottom: .45em; }
.step p { font-size: .97rem; margin: 0; }

@media (max-width: 900px) {
  .step::after { display: none; }
}

/* ---------- Liste außerhalb von .prose ---------- */

.prose-liste {
  list-style: none;
  margin: 1.4em 0 0;
  padding: 0;
}
.prose-liste li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .7rem;
}
.prose-liste li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .52em;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--lime);
  border-bottom: 2.5px solid var(--lime);
  transform: rotate(-45deg);
}

/* ---------- Formular ---------- */

.formular {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}

/* Falle für automatisierte Eintragungen – für Menschen unsichtbar */
.honig {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feld-reihe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0 1.2rem;
}

/* In Zweierreihen bekommen die Beschriftungen Platz für zwei Zeilen.
   So stehen die Eingabefelder immer auf einer Linie, egal ob eine
   Beschriftung umbricht oder nicht. */
.feld-reihe .feld label {
  display: flex;
  align-items: flex-end;
  min-height: 3.45em;
}

.feld { margin: 0 0 1.2rem; }

.feld label {
  display: block;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}
.feld label span[aria-hidden] { color: var(--bordeaux); }

.feld input[type="text"],
.feld input[type="tel"],
.feld input[type="email"],
.feld select,
.feld textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem 1rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.feld textarea { resize: vertical; min-height: 6rem; }

.feld input:focus,
.feld select:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--bordeaux);
  background: var(--white);
}

.feld-zustimmung label {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-weight: 400;
  font-size: .93rem;
  color: var(--grey);
  line-height: 1.6;
}
.feld-zustimmung input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: .15rem;
  accent-color: var(--bordeaux);
}

.feld-hinweis {
  font-size: .86rem;
  color: var(--grey-light);
  margin-bottom: 1.4rem;
}

/* Rückmeldung nach dem Absenden */
.formular-hinweis {
  border-left: 5px solid var(--lime);
  background: var(--lime-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
  margin-bottom: 1.6rem;
}
.formular-hinweis.fehler {
  border-left-color: var(--bordeaux);
  background: var(--bordeaux-soft);
}
.formular-hinweis p:last-child { margin-bottom: 0; }

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.team-karte {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.team-karte:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}

.team-bild {
  aspect-ratio: 1 / 1;
  background: var(--sand);
  overflow: hidden;
}
.team-bild img { width: 100%; height: 100%; object-fit: cover; }

.team-karte .text { padding: clamp(1.2rem, 2.2vw, 1.6rem); }
.team-karte h3 { font-size: 1.15rem; margin-bottom: .2em; }

.team-rolle {
  display: block;
  font-size: .9rem;
  color: var(--lime-text);
  font-weight: 600;
  margin-bottom: .9rem;
}

.team-karte ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .93rem;
}
.team-karte ul li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: .35rem;
}
.team-karte ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

/* ---------- Sprungliste ---------- */

.sprungliste {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sprungliste a {
  display: inline-block;
  padding: .55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: .93rem;
  font-weight: 500;
  color: var(--grey);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.sprungliste a:hover {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: var(--white);
  text-decoration: none;
}

/* ---------- Aufklappbare Bereiche ---------- */

.akkordeon { margin-top: clamp(2rem, 4vw, 3rem); }

.akkordeon details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .9rem;
  overflow: hidden;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.akkordeon details[open] {
  border-color: transparent;
  box-shadow: var(--shadow-lift);
}

.akkordeon summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.1rem, 2.2vw, 1.5rem) clamp(1.2rem, 2.4vw, 1.8rem);
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.akkordeon summary::-webkit-details-marker { display: none; }
.akkordeon summary:hover { color: var(--bordeaux); }

/* Eigenes Plus-/Minus-Zeichen */
.akkordeon summary::after {
  content: "";
  flex: 0 0 auto;
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime-soft);
  background-image:
    linear-gradient(var(--bordeaux), var(--bordeaux)),
    linear-gradient(var(--bordeaux), var(--bordeaux));
  background-size: 12px 2.5px, 2.5px 12px;
  background-position: center, center;
  background-repeat: no-repeat;
  transition: transform .3s var(--ease);
}
.akkordeon details[open] summary::after {
  transform: rotate(135deg);
  background-size: 12px 2.5px, 0 0;
}

.akkordeon .inhalt {
  padding: 0 clamp(1.2rem, 2.4vw, 1.8rem) clamp(1.4rem, 2.6vw, 2rem);
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.akkordeon .inhalt > *:first-child { margin-top: 0; }
.akkordeon .inhalt h4 {
  font-size: 1rem;
  color: var(--bordeaux);
  margin: 1.8em 0 .7em;
}
.akkordeon .inhalt ul {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
}
.akkordeon .inhalt ul li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: .45rem;
  font-size: .97rem;
  break-inside: avoid;
}
.akkordeon .inhalt ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

@media (max-width: 720px) {
  .akkordeon .inhalt ul { columns: 1; }
}

/* ---------- Statusmeldung ---------- */

.status-box {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, .84);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3.4vw, 2.6rem);
  overflow: hidden;
}
/* Spezifisch genug, um die Farbregel von .prose h3 zu schlagen */
.status-box h3,
.prose .status-box h3 { color: var(--white); margin-top: 0; }
.status-box strong { color: var(--white); }
.status-box::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 5px;
  background: var(--lime);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime-light);
  margin-bottom: 1rem;
}
.status-tag::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(169, 194, 63, .22);
}

.prose { max-width: 46rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 2.6em; }
.prose h3 { margin-top: 2em; color: var(--bordeaux); }

.prose ul {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
}
.prose ul li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .7rem;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .52em;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--lime);
  border-bottom: 2.5px solid var(--lime);
  transform: rotate(-45deg);
}

.prose ul.plain li::before {
  border: 0;
  top: .62em;
  left: .25rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  transform: none;
}

/* Hervorgehobene Kästen */
.callout {
  border-left: 5px solid var(--lime);
  background: var(--lime-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.2rem);
  margin-block: 2.2em;
}
.callout h3 { margin-top: 0; color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }

.callout-note {
  border-left-color: var(--bordeaux);
  background: var(--bordeaux-soft);
}

.callout-quiet {
  border-left-color: var(--line);
  background: var(--cream);
  font-style: italic;
}

.contact-box {
  border: 1px solid var(--line);
  border-left: 5px solid var(--bordeaux);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  margin-block: 2.4em;
  box-shadow: var(--shadow);
}
.contact-box h3 { margin-top: 0; color: var(--ink); }

.contact-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: .8rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-left: 0;
  margin: 0;
}
.contact-list li::before { display: none; }
.contact-list svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--bordeaux); }
.contact-list a { font-weight: 700; }

/* ---------- Kontaktband ---------- */

.cta-band {
  background: var(--bordeaux);
  color: rgba(255, 255, 255, .88);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.cta-band h2 { color: var(--white); }
.cta-band .lead { color: rgba(255, 255, 255, .88); }
.cta-band a { color: var(--white); }
/* Der helle Button braucht dunkle Schrift – sonst nur 2:1 auf der Limette.
   Muss nach „.cta-band a“ stehen und mindestens gleich spezifisch sein. */
.cta-band .btn-lime,
.cta-band .btn-lime:hover { color: var(--ink); }

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-inner > div { max-width: 34rem; }

.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Fußbereich ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  padding-block: clamp(3rem, 5vw, 4rem) 2rem;
  font-size: .95rem;
}
.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: var(--lime-light); text-decoration: none; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .55rem; }

.footer-brand .brand-mark { color: rgba(255, 255, 255, .82); }
.footer-brand p { margin-top: 1.1rem; max-width: 24rem; }

.footer-social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.footer-social a:hover { background: var(--bordeaux); border-color: var(--bordeaux); }
.footer-social svg { width: 19px; height: 19px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .88rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Mobile ---------- */

@media (max-width: 880px) {
  .header-actions { display: flex; }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav[data-open="true"] { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .6rem clamp(1.15rem, 4vw, 2.5rem) 1.4rem;
  }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a {
    display: block;
    padding: .95rem 0;
    border-bottom: 0;
  }
  .main-nav a[aria-current="page"] { border-bottom: 0; }

  .header-inner { position: relative; }

  /* Telefonnummer steckt mobil schon in der Kopfleiste */
  .main-nav .nav-phone-item { display: none; }

  /* Untermenü klappt mobil in der Liste auf statt zu überlagern */
  .sub-toggle {
    width: 100%;
    justify-content: space-between;
    padding: .95rem 0;
    font-size: 1rem;
  }
  .main-nav .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: var(--cream);
    border-radius: 8px;
    margin-bottom: .8rem;
    padding: .3rem;
  }
  .main-nav .has-sub[data-open="true"] .sub-menu { display: block; transform: none; }
  .sub-menu a { padding: .75rem .9rem; }
}

@media (max-width: 600px) {
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
}

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

@media print {
  .site-header, .cta-band, .site-footer, .hero-pulse { display: none; }
  body { color: #000; font-size: 11pt; }
}
