/* Wir Helfen 24 – Stylesheet
   Farben aus dem Logo (design/logo/final/LOGO.md). Kontraste geprüft (WCAG AA):
   Text #1E2A2B auf Weiß 14,8:1 · Petrol auf Weiß 7,4:1 · Terrakotta-dunkel auf Weiß 5,4:1.
   Terrakotta #C8643B (3,9:1) nur für große Schrift und Schmuckelemente. */

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --petrol: #1F5E63;
  --petrol-dunkel: #173F43;
  --petrol-hell: #EAF1F1;
  --terra: #C8643B;
  --terra-text: #A9502C;
  --terra-hell: #F0A07A;
  --text: #1E2A2B;
  --text-leise: #4A5A5B;
  --hintergrund: #FFFFFF;
  --hintergrund-warm: #F8F5F0;
  --linie: #E3DDD3;

  --schrift: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --breite: 72rem;
  --rand: clamp(1rem, 4vw, 2rem);
  --abstand: clamp(3.5rem, 8vw, 6rem);
  --radius: 0.75rem;
  --schatten: 0 1px 2px rgba(23, 63, 67, 0.06), 0 6px 20px rgba(23, 63, 67, 0.08);
}

/* --- Grundlagen ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--hintergrund);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-underline-offset: 0.18em; }
a:hover { color: var(--petrol-dunkel); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { line-height: 1.2; color: var(--petrol-dunkel); margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--petrol); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.section { padding: var(--abstand) 0; }
.section--warm { background: var(--hintergrund-warm); }
.section--petrol { background: var(--petrol-hell); }
.section__intro { max-width: 42rem; margin-bottom: 2.5rem; }
.section__intro--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: clamp(1.15rem, 2vw, 1.3rem); color: var(--text-leise); }
.eyebrow {
  display: inline-block; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--terra-text); margin-bottom: 0.75rem;
}

/* --- Schaltflächen ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--petrol); color: #fff; }
.btn--primary:hover { background: var(--petrol-dunkel); color: #fff; }
.btn--akzent { background: var(--terra-text); color: #fff; }
.btn--akzent:hover { background: #8E4224; color: #fff; }
.btn--rahmen { border-color: var(--petrol); color: var(--petrol); background: transparent; }
.btn--rahmen:hover { background: var(--petrol); color: #fff; }
.btn-gruppe { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-pfeil { font-weight: 600; text-decoration: none; color: var(--terra-text); }
.link-pfeil::after { content: " →"; }
.link-pfeil:hover { text-decoration: underline; color: #8E4224; }

/* --- Kopfbereich --------------------------------------------------------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--linie);
}
.kopf__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }
.kopf__logo { flex: 0 0 auto; display: block; }
.kopf__logo img { width: 13.5rem; height: auto; }
.kopf__tel {
  display: none; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--petrol);
}
.kopf__tel svg { width: 1.1em; height: 1.1em; vertical-align: -0.15em; margin-right: 0.3em; }

.nav { margin-left: auto; }
.nav__liste { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__link {
  display: block; padding: 0.5rem 0.6rem; border-radius: 0.5rem; white-space: nowrap;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.02rem;
}
.nav__link:hover { background: var(--petrol-hell); color: var(--petrol-dunkel); }
.nav__link[aria-current="page"] { color: var(--petrol); box-shadow: inset 0 -3px 0 var(--terra); border-radius: 0; }
.nav__cta { margin-left: 0.5rem; }
.nav__cta .btn { min-height: 2.6rem; padding: 0.5rem 1.2rem; }
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 0.5rem;
  background: none; border: 2px solid var(--petrol); color: var(--petrol); border-radius: 999px;
  font: inherit; font-weight: 600; padding: 0.45rem 0.9rem; cursor: pointer;
}
.nav-toggle svg { width: 1.2rem; height: 1.2rem; }

@media (min-width: 1360px) {
  .kopf__tel { display: inline-block; order: 3; }
}
@media (max-width: 1099px) {
  .js .nav-toggle { display: inline-flex; }
  .kopf__inner { flex-wrap: wrap; }
  .js .nav { display: none; width: 100%; margin: 0 0 1rem; }
  .js .nav.is-open { display: block; }
  .nav { width: 100%; }
  .nav__liste { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--linie); border-radius: 0; }
  .nav__link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--terra); padding-left: 1rem; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; min-height: 3rem; }
}
@media (max-width: 420px) {
  .kopf__logo img { width: 11rem; }
}

/* Telefonleiste mobil */
.tel-leiste {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--petrol); padding: 0.6rem var(--rand) calc(0.6rem + env(safe-area-inset-bottom));
}
.tel-leiste a { display: flex; justify-content: center; align-items: center; gap: 0.5rem; color: #fff; font-weight: 600; text-decoration: none; }
.tel-leiste svg { width: 1.2rem; height: 1.2rem; }
@media (max-width: 700px) {
  .tel-leiste { display: block; }
  body { padding-bottom: 3.5rem; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero { background: var(--hintergrund-warm); padding: clamp(2.5rem, 6vw, 5rem) 0; overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { margin-bottom: 0.5em; }
.hero .lead { margin-bottom: 2rem; max-width: 34rem; }
.hero__bild { position: relative; }
.hero__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.25rem; box-shadow: var(--schatten); }
.hero__bild::before {
  content: ""; position: absolute; inset: auto -1rem -1rem auto; width: 45%; height: 45%;
  border: 3px solid var(--terra); border-radius: 1.25rem; z-index: -1;
}
.hero__bild { z-index: 0; }
@media (max-width: 899px) { .hero__bild::before { inset: auto -0.5rem -0.5rem auto; } }
.hero__punkte { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--text-leise); font-size: 1rem; }
.hero__punkte li { display: flex; align-items: center; gap: 0.4rem; }
.hero__punkte svg { width: 1.1rem; height: 1.1rem; color: var(--petrol); flex: 0 0 auto; }

/* --- Karten -------------------------------------------------------------- */
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.karte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.karte__bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.karte__inhalt { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.karte__inhalt p { color: var(--text-leise); }
.karte__inhalt .link-pfeil, .karte__inhalt .btn { margin-top: auto; align-self: flex-start; }
.karte--zielgruppe h3 { font-size: 1.5rem; }

.merkmal { padding: 1.75rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--linie); }
.merkmal__icon {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--petrol-hell); color: var(--petrol); margin-bottom: 1rem;
}
.merkmal__icon svg { width: 1.5rem; height: 1.5rem; }
.merkmal h3 { margin-bottom: 0.4em; }
.merkmal p { color: var(--text-leise); margin: 0; font-size: 1.05rem; }

/* --- Schritte ------------------------------------------------------------ */
.schritte { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: schritt; }
@media (min-width: 640px) { .schritte { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .schritte { grid-template-columns: repeat(4, 1fr); } }
.schritte li { counter-increment: schritt; position: relative; padding-top: 3.75rem; }
.schritte li::before {
  content: counter(schritt); position: absolute; top: 0; left: 0;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--petrol); color: #fff; font-weight: 700; font-size: 1.2rem;
}
.schritte li::after {
  content: ""; position: absolute; top: 1.375rem; left: 3.5rem; right: 0.5rem; height: 2px; background: var(--linie);
}
.schritte li:last-child::after { display: none; }
@media (max-width: 999px) { .schritte li::after { display: none; } }
.schritte h3 { margin-bottom: 0.35em; }
.schritte p { color: var(--text-leise); margin: 0; font-size: 1.05rem; }

/* --- Text mit Seitenelement ---------------------------------------------- */
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.kasten {
  background: #fff; border-radius: var(--radius); padding: 1.75rem; border-left: 4px solid var(--terra);
  box-shadow: var(--schatten);
}
.kasten h3 { margin-bottom: 0.75rem; }
.kasten p:last-child { margin-bottom: 0; }
.kontaktliste { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.kontaktliste li { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.35rem 0; }
.kontaktliste svg { width: 1.2rem; height: 1.2rem; color: var(--petrol); flex: 0 0 auto; margin-top: 0.3rem; }

/* --- Referenzen ---------------------------------------------------------- */
.zitate { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .zitate { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .zitate { grid-template-columns: repeat(3, 1fr); } }
.zitat {
  margin: 0; background: #fff; border-radius: var(--radius); padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid var(--linie); display: flex; flex-direction: column;
}
.zitat::before {
  content: "\201C"; display: block; font-size: 3.5rem; line-height: 1; height: 2.25rem;
  color: var(--terra); font-weight: 700; font-family: Georgia, "Times New Roman", serif;
}
.zitat blockquote { margin: 0 0 1.25rem; font-size: 1.05rem; }
.zitat blockquote p { margin: 0; }
.zitat figcaption { margin-top: auto; font-size: 0.95rem; color: var(--text-leise); }
.zitat figcaption strong { color: var(--petrol-dunkel); }
.hinweis-klein { font-size: 0.9rem; color: var(--text-leise); margin-top: 1.5rem; }

/* --- Abschluss (CTA) ----------------------------------------------------- */
.abschluss { background: var(--petrol); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; }
.abschluss h2 { color: #fff; }
.abschluss p { color: #E6EFEF; font-size: 1.2rem; max-width: 36rem; margin: 0 auto 2rem; }
.abschluss .btn-gruppe { justify-content: center; }
.abschluss .btn--primary { background: #fff; color: var(--petrol-dunkel); }
.abschluss .btn--primary:hover { background: var(--petrol-hell); }
.abschluss .btn--rahmen { border-color: #fff; color: #fff; }
.abschluss .btn--rahmen:hover { background: #fff; color: var(--petrol-dunkel); }

/* --- Fußbereich ---------------------------------------------------------- */
.fuss { background: var(--petrol-dunkel); color: #D5E2E2; padding: 3.5rem 0 2rem; font-size: 1rem; }
.fuss a { color: #fff; }
.fuss a:hover { color: var(--terra-hell); }
.fuss__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .fuss__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.fuss__logo img { width: 13rem; margin-bottom: 1.25rem; }
.fuss h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--terra-hell); margin-bottom: 1rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { padding: 0.2rem 0; }
.fuss__anbieter { font-size: 0.95rem; line-height: 1.55; }
.fuss__anbieter p { margin: 0 0 0.75rem; }
.fuss__unten {
  border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.9rem;
}
.btn svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }

/* --- Innenseiten --------------------------------------------------------- */
.seitenkopf { background: var(--hintergrund-warm); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.seitenkopf h1 { margin-bottom: 0.4em; max-width: 46rem; }
.seitenkopf .lead { max-width: 44rem; margin: 0; }
.seitenkopf .btn-gruppe { margin-top: 1.75rem; }
.seitenkopf--bild .container { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .seitenkopf--bild .container { grid-template-columns: 1.2fr 1fr; gap: 3.5rem; } }
.seitenkopf--bild img { border-radius: 1.25rem; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--schatten); }

.text { max-width: 46rem; }
.text h2 { margin-top: 2.5rem; }
.text h2:first-child { margin-top: 0; }
.text h3 { margin-top: 1.75rem; }
.text li { margin-bottom: 0.35rem; }
.text li::marker { color: var(--terra); }
.text--weit { max-width: none; }

.liste-haken { list-style: none; padding: 0; }
.liste-haken li { position: relative; padding-left: 1.9rem; margin-bottom: 0.55rem; }
.liste-haken li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 1.15rem; height: 1.15rem;
  background: var(--petrol); border-radius: 50%;
}
.liste-haken li::after {
  content: ""; position: absolute; left: 0.38rem; top: calc(0.35em + 0.25rem); width: 0.35rem; height: 0.6rem;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.liste-nicht li::before { background: var(--terra-text); }
.liste-nicht li::after {
  border: none; width: 0.6rem; height: 2px; background: #fff; transform: none;
  left: 0.28rem; top: calc(0.35em + 0.53rem);
}

.leistungs-grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .leistungs-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .leistungs-grid { grid-template-columns: repeat(3, 1fr); } }
.leistungs-grid .merkmal ul { margin: 0; padding-left: 1.1em; color: var(--text-leise); font-size: 1.05rem; }
.leistungs-grid .merkmal li { margin-bottom: 0.3rem; }
.leistungs-grid .merkmal li::marker { color: var(--terra); }

.schritte--vertikal { grid-template-columns: 1fr !important; max-width: 46rem; gap: 1.75rem; }
.schritte--vertikal li { padding: 0 0 0 4rem; min-height: 2.75rem; }
.schritte--vertikal li::after { display: none; }
@media (min-width: 1000px) { .schritte--5 { grid-template-columns: repeat(5, 1fr); } }

.hinweis {
  background: var(--petrol-hell); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0;
  border-left: 4px solid var(--petrol);
}
.hinweis p:last-child { margin-bottom: 0; }
.hinweis--warn { background: #FFF6E5; border-left-color: #B7791F; }

/* Tabellen */
.tabelle-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: 1.05rem; background: #fff; }
caption { text-align: left; font-weight: 600; padding-bottom: 0.5rem; color: var(--petrol-dunkel); }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { background: var(--petrol); color: #fff; font-weight: 600; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stand { display: inline-block; background: var(--petrol); color: #fff; font-weight: 600; font-size: 0.95rem; padding: 0.2rem 0.75rem; border-radius: 999px; }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--linie); }
.faq details:first-of-type { border-top: 1px solid var(--linie); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 600; font-size: 1.15rem; color: var(--petrol-dunkel);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--terra-text); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.25rem; color: var(--text-leise); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Formular */
.formular { display: grid; gap: 1.25rem; }
.feld label, .feld legend { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--petrol-dunkel); }
.feld .optional { font-weight: 400; color: var(--text-leise); }
.feld input[type="text"], .feld input[type="email"], .feld input[type="tel"], .feld textarea {
  width: 100%; font: inherit; color: var(--text); padding: 0.75rem 0.9rem; min-height: 3rem;
  border: 1.5px solid #B9C4C4; border-radius: 0.5rem; background: #fff;
}
.feld textarea { min-height: 9rem; resize: vertical; }
.feld input:focus, .feld textarea:focus { border-color: var(--petrol); outline: 3px solid rgba(31, 94, 99, 0.25); outline-offset: 0; }
.feld fieldset { border: 0; padding: 0; margin: 0; }
.auswahl { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.auswahl label {
  display: flex; align-items: center; gap: 0.6rem; font-weight: 600; margin: 0; cursor: pointer;
  border: 1.5px solid #B9C4C4; border-radius: 0.5rem; padding: 0.7rem 1rem; background: #fff;
}
.auswahl input { width: 1.2rem; height: 1.2rem; accent-color: var(--petrol); }
.auswahl label:has(input:checked) { border-color: var(--petrol); background: var(--petrol-hell); }
.zustimmung { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1rem; }
.zustimmung input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; flex: 0 0 auto; accent-color: var(--petrol); }
.formular .hinweis-klein { margin: 0; }
.formular .btn { justify-self: start; }
.feld-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.js .nur-agentur[hidden] { display: none; }
.meldung { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 600; }
.meldung--fehler { background: #FDECEA; color: #8A1C12; border-left: 4px solid #B3261E; }

.kontakt-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .kontakt-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.anbieter-block { font-size: 1rem; line-height: 1.6; }
.anbieter-block p { margin-bottom: 0.9rem; }
.container.text { max-width: var(--breite); }
.container.text > * { max-width: 46rem; }
