/* =========================================================
   RESPIRARE — Design System
   Farben: Schwarz, Weiß, #00BF63
   Prinzip: fachlich-vertrauenswürdig zuerst, warm-menschlich zweitens
   ========================================================= */

:root {
  /* Farben */
  --c-black: #14181a;
  --c-white: #ffffff;
  --c-green: #00bf63;
  --c-green-dark: #00934c;
  --c-green-tint: #e8f7ee;
  --c-bg: #fbfbfa;
  --c-text: #1c2321;
  --c-text-muted: #56635e;
  --c-line: #dfe4e1;

  /* Typografie */
  --f-display: "Baloo 2", "Arial Rounded MT Bold", sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", sans-serif;

  /* Skala */
  --step-0: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 2rem + 3vw, 4.4rem);

  --radius: 6px;
  --content-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-green-dark); text-decoration-thickness: 1.5px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--c-green);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--c-black);
  margin: 0 0 0.5em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; max-width: 68ch; }
.lead { font-size: var(--step-1); color: var(--c-text-muted); max-width: 56ch; }

ul.check-list { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 0.6em; }
ul.check-list li { display: flex; gap: 0.65em; align-items: flex-start; }
ul.check-list svg { flex: none; margin-top: 0.2em; }

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

.section { padding-block: clamp(3rem, 3vw + 2rem, 6rem); }
.section--soft { background: var(--c-white); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.section--dark { background: var(--c-black); color: #f2f4f3; }
.section--dark h2, .section--dark h3 { color: var(--c-white); }
.section--dark .lead { color: #b9c2be; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--c-green-dark);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 2px;
  background: var(--c-green);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--c-green); color: var(--c-black); }
.btn--primary:hover { background: var(--c-green-dark); color: var(--c-white); }
.btn--outline { border-color: var(--c-black); color: var(--c-black); }
.btn--outline:hover { background: var(--c-black); color: var(--c-white); }
.btn--outline-light { border-color: var(--c-white); color: var(--c-white); }
.btn--outline-light:hover { background: var(--c-white); color: var(--c-black); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.55rem;
}
.brand { display: flex; align-items: center; gap: 0.7em; text-decoration: none; }
.brand img { height: 84px; width: auto; }
.brand__name { font-family: var(--f-display); font-size: 1.6rem; color: var(--c-black); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a {
  color: var(--c-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.nav a:hover { color: var(--c-green-dark); }
.nav__cta { margin-left: 0.4rem; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav { position: fixed; inset: 64px 0 0 0; background: var(--c-white); flex-direction: column; padding: 2rem 1.5rem; gap: 1.4rem; transform: translateX(100%); transition: transform .2s ease; }
  .nav.is-open { transform: translateX(0); }
  .nav-toggle { display: inline-flex; background: none; border: none; cursor: pointer; padding: 0.4rem; }
}

/* Hero */
.hero {
  padding-block: clamp(3rem, 5vw, 6rem) clamp(3rem, 4vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero__graphic { justify-self: end; width: 100%; }
.hero-photo {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.hero-photo__badge {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  background: rgba(20, 24, 26, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.35em 0.7em;
  border-radius: 999px;
  line-height: 1.2;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--c-green-tint);
  color: var(--c-green-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.2em;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 1.6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__graphic { justify-self: center; order: -1; max-width: 100%; }
}

/* Trust bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.trust-bar__item {
  background: var(--c-white);
  padding: 1.6rem 1.4rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.trust-bar__item svg { flex: none; color: var(--c-green); }
.trust-bar__item h4 { font-size: 1rem; margin-bottom: 0.3em; }
.trust-bar__item p { font-size: 0.92rem; color: var(--c-text-muted); margin: 0; }

/* Angebote — asymmetrisches Split-Layout statt Karten-Kachel-Klischee */
.offers { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.offer {
  background: var(--c-white);
  padding: clamp(2rem, 3vw, 3.2rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}
.offer__index { font-family: var(--f-display); font-size: 2.4rem; color: var(--c-green); line-height: 1; }
.offer__title { font-size: var(--step-2); margin-bottom: 0.25em; }
.offer__body p { margin-bottom: 0.8em; }
.offer__action { justify-self: end; }

@media (max-width: 760px) {
  .offer { grid-template-columns: 1fr; text-align: left; }
  .offer__action { justify-self: start; }
}

/* Übergangs-/Anschlussperspektive Grafik */
.transition {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.6rem;
  background: var(--c-green-tint);
  border-radius: var(--radius);
  margin-block: 2.4rem;
}
.transition svg { flex: none; }
.transition p { margin: 0; font-size: 0.96rem; color: var(--c-text); }

/* Zwei-Spalten-Content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Formular */
.form-grid { display: grid; gap: 1.1rem; max-width: 560px; }
label { display: block; font-weight: 600; margin-bottom: 0.4em; font-size: 0.95rem; }
input, textarea, select {
  width: 100%;
  font-family: var(--f-body);
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-text);
}
input:focus, textarea:focus { border-color: var(--c-green); }
.form-note { font-size: 0.88rem; color: var(--c-text-muted); }
.mail-cta {
  margin-top: 1.4rem;
  padding: 1.3rem 1.5rem;
  border: 1.5px solid var(--c-black);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--c-black);
  color: #cfd6d2;
  padding-block: 3.5rem 2rem;
}
.site-footer a { color: #e7ece9; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid #2a3230;
}
.footer-grid h4 { color: var(--c-white); font-size: 0.95rem; margin-bottom: 0.9em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55em; }
.footer-grid ul a { text-decoration: none; font-size: 0.94rem; }
.footer-grid ul a:hover { color: var(--c-green); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.85rem;
  color: #8a9490;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

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

/* Fallback für sehr alte Browser ohne Unterstützung von flex gap */
@supports not (gap: 1rem) {
  .nav > * + * { margin-left: 1.6rem; }
  .hero__actions > * + * { margin-left: 0.9rem; }
  .footer-bottom > * + * { margin-left: 1rem; }
}

/* Icon-Badges — rund, dezent getönt, ersetzt nackte Inline-Icons */
.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  flex-shrink: 0;
}
.icon-badge svg { color: var(--c-green-dark); }
.icon-badge--dark { background: rgba(255,255,255,0.09); }
.icon-badge--dark svg { color: var(--c-green); }
.icon-badge--sm { width: 40px; height: 40px; }

/* Statistik-Leiste */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: #26302c;
}
.stat-strip__item { background: var(--c-black); padding: 2.4rem 1.8rem; }
.stat-strip__num {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem);
  color: var(--c-green);
  line-height: 1;
  margin-bottom: 0.35em;
}
.stat-strip__label { font-size: 0.94rem; color: #c7cfcb; max-width: 22ch; }

/* Wellen-Divider zwischen Sektionen */
.divider { display: block; width: 100%; line-height: 0; }
.divider svg { width: 100%; height: auto; display: block; }

/* Prozess-Timeline (echte Sequenz: Phasenmodell) */
.timeline { position: relative; padding-left: 3.6rem; margin-top: 2.2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 2px;
  background: var(--c-line);
}
.timeline-step { position: relative; padding-bottom: 2.8rem; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step__node {
  position: absolute;
  left: -3.6rem;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--c-green);
  color: var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  z-index: 1;
}
.timeline-step h3 { margin-bottom: 0.35em; }
.timeline-step p { margin-bottom: 0; }

/* Hero-Hintergrundform für mehr Tiefe */
.hero { position: relative; }
.hero__blob {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--c-green-tint) 0%, rgba(232,247,238,0) 70%);
  z-index: 0;
  pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; }

/* Pill-Label für Angebots-Tags */
.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-green-dark);
  background: var(--c-green-tint);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  margin-bottom: 0.8em;
}

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