/* ==========================================================================
   Kivalio — Stylesheet
   Farben und Formen sind direkt aus dem Logo abgeleitet:
   Petrolgrün als Vertrauensfarbe, Orange nur als seltener Akzent,
   großzügige Rundungen wie beim Logo-Quadrat.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marke */
  --brand:        #0F6E56;
  --brand-dark:   #0A4D3C;
  --brand-deep:   #073A2D;
  --brand-tint:   #E8F1EE;
  --brand-tint-2: #D3E4DE;
  --accent:       #EF9F27;
  --accent-dark:  #D4871A;
  --accent-tint:  #FDF1DF;

  /* Neutral */
  --ink:          #2C2C2A;
  --ink-soft:     #4A4A46;
  --ink-muted:    #6B6B66;
  --line:         #E4E2DC;
  --surface:      #FAF9F6;
  --surface-2:    #FFFFFF;

  /* Typografie */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-hero:  clamp(2.25rem, 1.35rem + 3.9vw, 4.25rem);
  --fs-h2:    clamp(1.75rem, 1.25rem + 2.1vw, 2.75rem);
  --fs-h3:    clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-lead:  clamp(1.0625rem, 0.98rem + 0.42vw, 1.3125rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.9375rem;
  --fs-tiny:  0.8125rem;

  /* Maße */
  --radius:    20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --wrap:      1160px;
  --wrap-narrow: 760px;
  --section-y: clamp(4rem, 2.5rem + 6vw, 7.5rem);

  /* Schatten — sehr dezent, die Seite lebt von Flächen, nicht von Tiefe */
  --shadow-sm: 0 1px 2px rgba(44, 44, 42, 0.05), 0 2px 8px rgba(44, 44, 42, 0.04);
  --shadow-md: 0 2px 4px rgba(44, 44, 42, 0.05), 0 12px 28px rgba(44, 44, 42, 0.07);
  --shadow-lg: 0 4px 8px rgba(44, 44, 42, 0.06), 0 24px 48px rgba(44, 44, 42, 0.10);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  /* Sticky Header darf angesprungene Überschriften nicht verdecken */
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

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

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

button { font: inherit; color: inherit; }

/* Sichtbarer Fokus für Tastaturbedienung — nie entfernen */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout-Bausteine
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 0.9rem + 1.6vw, 2.5rem);
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--brand-tint); }
.section--white { background: var(--surface-2); }

.section--dark {
  background: var(--brand-deep);
  color: #EAF3F0;
}
.section--dark h2,
.section--dark h3 { color: #FFFFFF; }
.section--dark .section-head p { color: #A9CCC1; }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 1.8rem + 2.6vw, 4rem);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.section-head p {
  font-size: var(--fs-lead);
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Kleine Auszeichnung über der Überschrift, mit dem Logo-Punkt als Marker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.section--dark .eyebrow { color: var(--accent); }
.section--dark .eyebrow::before { background: var(--accent); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-body);
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Orange ist der Seite vorbehalten für genau eine Sache: den nächsten Schritt. */
.btn--primary {
  background: var(--accent);
  color: #2C2C2A;
  box-shadow: 0 4px 14px rgba(239, 159, 39, 0.32);
}
.btn--primary:hover {
  background: var(--accent-dark);
  color: #2C2C2A;
  box-shadow: 0 8px 22px rgba(239, 159, 39, 0.4);
}

.btn--ghost {
  background: transparent;
  border-color: var(--brand-tint-2);
  color: var(--brand);
}
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-dark); }

.btn--light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--light:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; color: #fff; }

.btn--lg { padding: 1.05rem 2rem; font-size: 1.125rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   5. Header / Navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(44, 44, 42, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 34px; width: auto; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 0.3rem + 1.5vw, 2rem); }
.nav__link {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 550;
  padding-block: 0.5rem;
  white-space: nowrap;
}
.nav__link:hover { color: var(--brand); }
/* Aktive Sektion bekommt den Logo-Punkt als Marker */
.nav__link.is-active { color: var(--brand); font-weight: 650; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.header__cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle__bars { display: block; width: 20px; height: 14px; position: relative; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobiles Ausklappmenü */
.mobile-nav {
  display: block;
  overflow: hidden;
  max-height: 0;
  border-top: 1px solid transparent;
  background: var(--surface);
  transition: max-height 0.32s var(--ease), border-color 0.2s var(--ease);
}
/* Reserve nach oben: die Deckelung dient nur der Animation, nicht der Begrenzung */
.mobile-nav.is-open { max-height: 44rem; border-top-color: var(--line); }
.mobile-nav__list { padding: 0.75rem 0 1.5rem; }
.mobile-nav__list a {
  display: block;
  padding: 0.85rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 550;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__list a:hover { color: var(--brand); }
.mobile-nav .btn { margin-top: 1.25rem; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(2.75rem, 1.5rem + 4vw, 5rem) clamp(2.75rem, 1.5rem + 3.5vw, 4.25rem);
  overflow: hidden;
}
/* Weiche Grünflächen im Hintergrund, angelehnt an die Logo-Form */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 46rem; height: 46rem;
  top: -22rem; right: -16rem;
  background: radial-gradient(circle, rgba(15, 110, 86, 0.10) 0%, rgba(15, 110, 86, 0) 68%);
}
.hero::after {
  width: 30rem; height: 30rem;
  bottom: -16rem; left: -12rem;
  background: radial-gradient(circle, rgba(239, 159, 39, 0.10) 0%, rgba(239, 159, 39, 0) 68%);
}
.hero .wrap { position: relative; z-index: 1; }

/* Einspaltig: Die Kernaussage soll den Einstieg allein tragen. Auf schmalen
   Displays volle Breite, ab Desktop begrenzt (siehe Breakpoints), damit die
   Überschrift nicht über die ganze Seite läuft — rechts bleibt Weißraum. */
.hero__content { min-width: 0; }

.hero__title {
  font-size: var(--fs-hero);
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
/* Unterstrich als Hintergrund-Gradient statt als absolutes ::after:
   So darf der Text umbrechen und der Strich läuft auf jeder Zeile mit.
   Mit nowrap ragte die Zeile auf schmalen Displays über den Rand hinaus. */
.hero__title em {
  font-style: normal;
  color: var(--brand);
  background-image: linear-gradient(to top, rgba(239, 159, 39, 0.45) 0.14em, transparent 0.14em);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__lead {
  font-size: var(--fs-lead);
  color: var(--ink-muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2.25rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--ink-muted);
  font-weight: 550;
}
.hero__trust svg { flex: none; color: var(--brand); }

/* --------------------------------------------------------------------------
   7. Problemkarten
   -------------------------------------------------------------------------- */
.problem-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.problem-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-tint-2);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-left-color 0.22s var(--ease);
}
.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent);
}

.problem-card__quote {
  font-size: var(--fs-h3);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.problem-card__text { font-size: var(--fs-small); color: var(--ink-muted); }

.problem-card__cost {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px dashed var(--line);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-soft);
}
.problem-card__cost svg { flex: none; color: var(--accent-dark); margin-top: 3px; }

.tag {
  align-self: flex-start;
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: var(--fs-tiny);
  font-weight: 650;
}

.problem-note {
  margin-top: 2.5rem;
  text-align: center;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
}
.problem-note strong { color: var(--brand); }

/* --------------------------------------------------------------------------
   8. Reality-Check (dunkle Sektion)
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.stat {
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}
/* Die Werte enthalten geschützte Leerzeichen und können nicht umbrechen —
   die Schriftgröße muss deshalb sicher in die schmalste Spalte passen. */
.stat__value {
  font-size: clamp(2.25rem, 1.7rem + 1.7vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.stat__label { font-weight: 650; color: #fff; margin-bottom: 0.5rem; }
.stat__text { font-size: var(--fs-small); color: #A9CCC1; }

.stats-disclaimer {
  margin-top: 2rem;
  font-size: var(--fs-small);
  color: #8FB8AC;
  max-width: 44rem;
}

/* --------------------------------------------------------------------------
   9. Anwendungsgebiete
   Drei Gruppen à vier kompakte Kacheln. Sortiert nach Motivation, nicht nach
   Branche — Governance, E-Rechnung und Wissen betreffen alle Zielgruppen und
   würden sich in einer Branchengliederung mehrfach wiederholen.
   -------------------------------------------------------------------------- */
.usecase-group + .usecase-group { margin-top: clamp(2.5rem, 1.8rem + 2.6vw, 4rem); }

.usecase-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--brand-tint-2);
}
.usecase-group__head h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  color: var(--brand);
}
.usecase-group__head p {
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

.usecase-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

.usecase {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.usecase:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.usecase h4 {
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.3;
}
.usecase p { font-size: var(--fs-small); color: var(--ink-muted); }

/* Ergebniszeile sitzt immer am Fuß, damit die Kacheln optisch abschließen.
   Doppelte Klasse, um die Farbe aus `.usecase p` zu überschreiben. */
.usecase .usecase__result {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  font-weight: 600;
  color: var(--brand-dark);
}

/* --------------------------------------------------------------------------
   10. Vorgehen
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.step p { font-size: var(--fs-small); color: var(--ink-muted); }
.step__meta {
  display: inline-block;
  margin-top: 1rem;
  font-size: var(--fs-tiny);
  font-weight: 650;
  color: var(--accent-dark);
  background: var(--accent-tint);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   11. Qualifizierung (für wen / für wen nicht)
   -------------------------------------------------------------------------- */
.fit-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.fit {
  border-radius: var(--radius);
  padding: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.fit--yes { border-color: var(--brand-tint-2); background: var(--brand-tint); }
.fit h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-h3);
  margin-bottom: 1.25rem;
}
.fit ul { display: grid; gap: 0.85rem; }
.fit li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: var(--fs-small);
  line-height: 1.55;
}
.fit li svg { margin-top: 3px; flex: none; }
.fit--yes li svg { color: var(--brand); }
.fit--no li svg { color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   11b. Team
   -------------------------------------------------------------------------- */
.team-intro {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 1.8rem + 2.6vw, 4rem);
  text-align: center;
  font-size: var(--fs-lead);
  color: var(--ink-muted);
}
.team-intro strong { color: var(--ink); font-weight: 650; }

.team-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.member {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Fester Rahmen, damit unterschiedlich zugeschnittene Quellen gleich wirken */
.member__photo {
  aspect-ratio: 4 / 5;
  background: var(--brand-tint);
  overflow: hidden;
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.member__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
}

.member__name { font-size: var(--fs-h3); margin-bottom: 0.3rem; }
.member__role {
  font-size: var(--fs-tiny);
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.member__claim {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.member__facts { display: grid; gap: 0.6rem; margin-bottom: 1.25rem; }
.member__facts li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  line-height: 1.5;
}
.member__facts li::before {
  content: "";
  width: 7px; height: 7px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--accent);
}

/* Der Brückensatz holt die Konzern-Vita in die Welt des Kunden zurück */
.member__bridge {
  margin-top: auto;
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  font-size: var(--fs-small);
  color: var(--brand-dark);
  line-height: 1.5;
}

.member__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  /* auto statt fester Abstand: ohne den Brückenkasten muss der Link die Karten
     unten bündig abschließen, sonst wandern die beiden Profile auseinander. */
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}
.member__link:hover { text-decoration: underline; }
.member__link svg { flex: none; }

/* Porträtzeile über dem Kontaktformular */
.faces {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}
.faces__imgs { display: flex; }
.faces__imgs img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--surface-2);
  background: var(--brand-tint);
}
.faces__imgs img + img { margin-left: -12px; }
.faces p { font-size: var(--fs-small); color: var(--ink-muted); }
.faces a { font-weight: 600; }

/* --------------------------------------------------------------------------
   12. Grundsätze
   -------------------------------------------------------------------------- */
.principles {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
.principle { display: flex; gap: 1rem; align-items: flex-start; }
.principle__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  flex: none;
}
.principle h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; }
.principle p { font-size: var(--fs-small); color: #A9CCC1; }

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: var(--wrap-narrow); margin-inline: auto; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  margin-bottom: 0.875rem;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq__item[open] { border-color: var(--brand-tint-2); box-shadow: var(--shadow-sm); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--brand); }

.faq__icon {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-tint);
  transition: background-color 0.2s var(--ease), transform 0.25s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--brand);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s var(--ease);
}
.faq__icon::before { width: 10px; height: 2px; }
.faq__icon::after  { width: 2px; height: 10px; }
.faq__item[open] .faq__icon { background: var(--accent); transform: rotate(180deg); }
.faq__item[open] .faq__icon::before { background: #2C2C2A; }
.faq__item[open] .faq__icon::after { opacity: 0; }

.faq__answer {
  padding: 0 1.35rem 1.35rem;
  font-size: var(--fs-small);
  color: var(--ink-muted);
}
.faq__answer p + p { margin-top: 0.75rem; }

/* --------------------------------------------------------------------------
   14. Kontakt
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}

.contact-aside h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.contact-aside > p { font-size: var(--fs-lead); color: var(--ink-muted); margin-bottom: 2rem; }

.contact-list { display: grid; gap: 1rem; margin-bottom: 2rem; }
.contact-list li { display: flex; gap: 0.85rem; align-items: center; }
.contact-list svg { flex: none; color: var(--brand); }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list small { display: block; font-size: var(--fs-tiny); color: var(--ink-muted); }

.next-steps {
  padding: 1.4rem 1.5rem;
  background: var(--brand-tint);
  border-radius: var(--radius);
}
.next-steps h3 { font-size: 1rem; margin-bottom: 0.9rem; }
.next-steps ol { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.5rem; }
.next-steps li { font-size: var(--fs-small); color: var(--ink-soft); }
.next-steps li::marker { color: var(--brand); font-weight: 700; }

/* Formular */
.form-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.form-row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
.field { display: block; margin-bottom: 1.15rem; }
.field:last-of-type { margin-bottom: 0; }

/* :not(.field__error) ist entscheidend — sonst überschreibt diese Regel das
   display:none der Fehlermeldungen, und alle roten Sätze stehen dauerhaft da. */
.field > span:not(.field__error) {
  display: block;
  font-size: var(--fs-small);
  font-weight: 650;
  margin-bottom: 0.45rem;
}
.field .optional { font-weight: 400; color: var(--ink-muted); }

/* In zweispaltigen Zeilen liegen die Eingabefelder auf einer Linie, auch wenn
   eine Beschriftung zweizeilig umbricht: Das Label wächst mit, das Feld darunter
   bleibt bündig. Sicherheitsnetz für künftige längere Beschriftungen. */
/* margin-bottom zurückholen: .field:last-of-type trifft auch das zweite Feld
   jeder Zweierzeile und macht die Rasterzellen unterschiedlich hoch. */
.form-row .field { display: flex; flex-direction: column; margin-bottom: 1.15rem; }
.form-row .field > span:not(.field__error) { flex: 1 0 auto; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font: inherit;
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236B6B66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface-2);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.14);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }

/* Fehlerzustand wird per JS gesetzt */
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12); }

.field__error {
  display: none;
  margin-top: 0.4rem;
  font-size: var(--fs-tiny);
  font-weight: 600;
  color: #C0392B;
}
.field.has-error .field__error { display: block; }

/* .field.field--check statt .field--check: Sonst gewinnt .field:last-of-type
   (gleiche Spezifität, steht aber früher) und setzt margin-bottom auf 0. */
.field.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  /* Mehr Luft nach unten, damit der Absende-Button nicht klebt. */
  margin-block: 1.35rem 2.25rem;
}
.field--check input {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--brand);
  cursor: pointer;
}
.field--check span {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}
.field--check.has-error input { outline: 2px solid #C0392B; outline-offset: 2px; }
.field--check .field__error { grid-column: 2; }

/* Honeypot — für Menschen unsichtbar, für Bots verlockend */
.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-note {
  margin-top: 1rem;
  font-size: var(--fs-tiny);
  color: var(--ink-muted);
  text-align: center;
}

.form-status {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 600;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--brand-tint); color: var(--brand-dark); border: 1px solid var(--brand-tint-2); }
.form-status.is-error   { background: #FDECEA; color: #A5342A; border: 1px solid #F5C6C1; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--brand-deep);
  color: #A9CCC1;
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 2rem;
}
.footer__top {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__brand img { height: 32px; }
.footer__brand p { margin-top: 1rem; font-size: var(--fs-small); max-width: 26rem; }

.footer__col h4 {
  font-size: var(--fs-tiny);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer__col ul { display: grid; gap: 0.6rem; }
.footer__col a { color: #A9CCC1; text-decoration: none; font-size: var(--fs-small); }
.footer__col a:hover { color: #fff; text-decoration: underline; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: var(--fs-tiny);
}

/* --------------------------------------------------------------------------
   16. Rechtsseiten (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
.legal { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.legal__inner { max-width: var(--wrap-narrow); margin-inline: auto; }
.legal h1 { font-size: var(--fs-h2); margin-bottom: 0.75rem; }
.legal .legal__intro { color: var(--ink-muted); margin-bottom: 3rem; }
.legal h2 {
  font-size: 1.375rem;
  margin-top: 2.75rem;
  margin-bottom: 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.legal h3 { font-size: 1.0625rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.legal p, .legal li { color: var(--ink-soft); font-size: var(--fs-small); }
.legal p + p { margin-top: 0.85rem; }
.legal ul { margin-top: 0.75rem; display: grid; gap: 0.5rem; padding-left: 1.15rem; list-style: disc; }
.legal address { font-style: normal; margin-top: 0.5rem; }

/* Platzhalter, die vor dem Livegang ersetzt werden müssen */
.ph {
  background: var(--accent-tint);
  border-bottom: 2px dotted var(--accent-dark);
  padding: 0 0.25rem;
  border-radius: 3px;
  font-weight: 600;
  color: #8A5A0B;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}
.legal__back:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   17. Scroll-Reveal
   -------------------------------------------------------------------------- */
/* Nur verstecken, wenn JavaScript nachweislich läuft — sonst bliebe bei einem
   Script-Fehler halber Seiteninhalt unsichtbar. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 40em) {
  .problem-grid  { grid-template-columns: repeat(2, 1fr); }
  .steps         { grid-template-columns: repeat(2, 1fr); }
  .fit-grid      { grid-template-columns: repeat(2, 1fr); }
  .form-row      { grid-template-columns: repeat(2, 1fr); }
  .principles    { grid-template-columns: repeat(2, 1fr); }
  .usecase-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer__top   { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 56.25em) {
  .nav          { display: block; }
  .header__cta  { display: inline-flex; }
  .nav-toggle   { display: none; }
  .mobile-nav   { display: none; }

  /* Breit genug, dass die Überschrift in drei statt vier Zeilen passt — sonst
     steht rechts Platz frei und der Einstieg passt trotzdem nicht auf den
     Bildschirm. Der Fließtext darunter bleibt über .hero__lead schmal. */
  .hero__content { max-width: 88%; }
  .contact-grid  { grid-template-columns: 0.85fr 1.15fr; }
  .principles    { grid-template-columns: repeat(4, 1fr); }
  .stats         { grid-template-columns: repeat(3, 1fr); }
}

/* Drei nebeneinanderstehende Team-Kacheln brauchen echte Breite — schmaler
   wären sie rund 260 px breit und über 1000 px hoch. Auf mittleren Displays
   deshalb einspaltig mit begrenzter Breite. Ein Querformat mit Foto links
   wurde verworfen: dabei wird das Bild zu einem schmalen Streifen gedehnt
   und seitlich ins Gesicht beschnitten. */
@media (min-width: 40em) and (max-width: 68.74em) {
  .member { width: 100%; max-width: 30rem; margin-inline: auto; }
}

/* Flache Fenster (typische Laptops, 720–800 px hoch): Der Einstieg soll bis
   zum Button ohne Scrollen sichtbar bleiben. Überschrift und Innenabstände
   werden dafür zurückgenommen — die Breite ist hier nicht das Problem. */
@media (min-width: 56.25em) and (max-height: 820px) {
  .hero {
    --fs-hero: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
    padding-block: 2.5rem 2.5rem;
  }
  .hero__lead { margin-bottom: 1.5rem; }
  .hero__actions { margin-bottom: 1.5rem; }
}

@media (min-width: 68.75em) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
  /* Erst ab hier breit genug — darunter wären die vier Schritte rund 190 px
     schmal und dreimal so hoch. */
  .steps        { grid-template-columns: repeat(4, 1fr); }
  .usecase-grid { grid-template-columns: repeat(4, 1fr); }
  .team-grid    { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   19. Reduzierte Bewegung
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .problem-card:hover, .service:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   20. Druck
   -------------------------------------------------------------------------- */
@media print {
  .header, .mobile-nav, .form-card, .skip-link { display: none !important; }
  body { background: #fff; }
  .section { padding-block: 1.5rem; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   Landing Pages: zentrierter Abschluss-Button unter dem Sektionskopf
   -------------------------------------------------------------------------- */
.lp-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.usecase-group__body {
  font-size: var(--fs-small);
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 52rem;
}

/* Ergebniszeile des Felds, gleiche Optik wie in den Kacheln der Landing Pages. */
.usecase-group__result {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--brand-dark);
  max-width: 52rem;
}

/* Verweise von den Leistungsfeldern auf die Landing Pages. Im Haupttext statt nur
   in der Fußzeile, weil Suchmaschinen Links im Inhalt höher gewichten. */
.lp-links {
  max-width: 52rem;
  margin-top: 2rem;
  font-size: var(--fs-small);
  color: var(--ink-muted);
}
.lp-links a { font-weight: 600; }
.lp-links__hint { color: var(--ink-muted); font-weight: 400; }
/* Video auf der Handwerk-Seite und der Startseite. Selbst gehostet, keine Dienste
   von Dritten. Auf der Startseite ohne video.js: Start nur per Klick. */
.video-block {
  max-width: 60rem;
  margin: 0 auto;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #13291F;
  box-shadow: var(--shadow-lg);
}
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-sound {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(19, 41, 31, 0.86);
  color: #fff;
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.video-sound:hover { background: var(--brand); }
.video-sound:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.video-block figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: var(--fs-tiny);
  color: var(--ink-muted);
}
.video-text {
  max-width: 46rem;
  margin: 1.5rem auto 0;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.video-text summary {
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  color: var(--brand);
}
.video-text p { margin-top: 0.75rem; line-height: 1.6; }
