/* ==========================================================================
   KIMU GmbH – Designsystem
   Einzige Stelle für Gestaltungsänderungen (Spezifikation Abschnitt 7).
   Farbwelt, Logo und Schrift sind aus dem WordPress-Theme übernommen.
   ========================================================================== */

/* ---------- Schrift: selbst gehostet, kein Drittanbieter-CDN ---------- */
@font-face {
  font-family: "Abel";
  src: url("/assets/fonts/abel-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Gestaltungswerte ---------- */
:root {
  /* Marke.
     Auf dunklem Grund trägt --teal (Kontrast 8,2:1). Auf hellen Flächen reicht er
     nicht: --teal-strong für große Schrift (ab 3:1), --teal-text für Kleintext
     (ab 4,5:1). Der Farbeindruck bleibt derselbe. */
  --teal:       #0ABAB5;
  --teal-light: #0ADAD4;
  --teal-strong:#0A8F8B;
  --teal-text:  #07736F;
  --teal-deep:  #065C59;
  --teal-tint:  #E7F8F7;

  /* Flächen */
  --ink:       #0A0A0F;   /* dunkle Abschnitte, Fußzeile */
  --ink-2:     #12121A;   /* Karten auf Dunkel */
  --ink-line:  #1E1E2A;
  --bg:        #FAFBFC;   /* helle Abschnitte */
  --bg-alt:    #F4F9F9;   /* helle Wechselfläche */
  --surface:   #FFFFFF;
  --line:      #E4EAEA;

  /* Text */
  --text:      #101418;
  --text-soft: #4A5A5C;
  --text-invert:      #E8EBF0;
  --text-invert-soft: #9AA6AD;

  /* Verläufe und Schatten */
  --gradient:      linear-gradient(135deg, #0ABAB5 0%, #06918D 100%);
  --gradient-text: linear-gradient(135deg, #0ABAB5, #0ADAD4);
  --shadow-sm: 0 1px 2px rgba(10,20,24,.05);
  --shadow-md: 0 4px 16px rgba(10,20,24,.08);
  --shadow-lg: 0 12px 40px rgba(10,20,24,.12);

  /* Maße */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --nav-height: 74px;
  --measure: 68ch;           /* 62–72 Zeichen je Zeile */
  --font: "Abel", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Zurücksetzen ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 18.5px;
  line-height: 1.68;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

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

/* Sprungmarke für Tastaturbedienung */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--teal);
  color: #031816;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Raster ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }
/* Begrenzt die Zeilenlänge, ohne den Block aus der Kantenlinie zu nehmen. */
.schmal { max-width: 820px; }

.section { padding: 120px 0; position: relative; }
.section-tight { padding: 80px 0; }

.section-dark {
  background: var(--ink);
  color: var(--text-invert);
}
.section-light { background: var(--bg); color: var(--text); }
.section-alt   { background: var(--bg-alt); color: var(--text); }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -.022em;
}

h1, .h1 { font-size: clamp(2.35rem, 1.5rem + 3.4vw, 4.05rem); }
h2, .h2 { font-size: clamp(1.95rem, 1.35rem + 2.2vw, 3.05rem); }
h3, .h3 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); line-height: 1.28; }
h4, .h4 { font-size: 1.22rem; line-height: 1.35; }

p, li { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }

.lead {
  font-size: clamp(1.13rem, 1.02rem + .45vw, 1.35rem);
  color: var(--text-soft);
  line-height: 1.6;
}
.section-dark .lead,
.hero .lead,
.page-head .lead,
.band .lead { color: var(--text-invert-soft); }

/* Zweite Überschriftenzeile: auf Hell abgedunkelt, auf Dunkel die volle Markenfarbe. */
.teal { color: var(--teal-strong); }
.section-dark .teal,
.hero .teal,
.page-head .teal,
.band .teal,
.tech-box .teal { color: var(--teal); }
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Eyebrow-Label über zweizeiliger Überschrift */
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 14px;
}
.section-dark .eyebrow,
.hero .eyebrow,
.page-head .eyebrow,
.band .eyebrow { color: var(--teal); }

.section-head { margin-bottom: 56px; max-width: 780px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 18px; }

/* Startseite mittig – wie auf kimu.gmbh: Hero und alle Abschnitts-Köpfe zentriert.
   Über die Wrapper-Klasse .startseite bzw. .hero auf die Startseite begrenzt;
   Unterseiten bleiben linksbündig. */
.hero { text-align: center; }
.hero h1,
.hero .lead,
.hero .hero-note,
.hero-founders { margin-left: auto; margin-right: auto; }
.hero .head-actions { justify-content: center; }
.startseite .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.startseite .section-head p { margin-left: auto; margin-right: auto; }

/* ---------- Knöpfe ----------
   Maße wie im WordPress-Theme: abgerundetes Rechteck, keine Pillenform.
   Die Schriftgröße steht fest in rem – sie darf nicht aus dem Fließtext geerbt
   werden, sonst wäre der Standardknopf größer als der große. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  line-height: 1.25;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
              border-color var(--transition), color var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(10,186,181,.3);
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(10,186,181,.4); }

/* Der Umriss-Knopf muss auch ohne Überfahren als Knopf erkennbar sein:
   sichtbarer Rand (mindestens 3:1) und eine leichte Fläche. */
.btn-outline {
  border-color: var(--teal-strong);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--teal-strong);
  background: var(--teal-tint);
  color: var(--teal-deep);
}

/* Umriss-Knopf auf allen dunklen Flächen: Kopfbereiche, dunkle Abschnitte, Abschlussband */
.section-dark .btn-outline,
.band .btn-outline,
.hero .btn-outline,
.page-head .btn-outline {
  border-color: rgba(232,235,240,.45);
  background: rgba(255,255,255,.04);
  color: var(--text-invert);
}
.section-dark .btn-outline:hover,
.band .btn-outline:hover,
.hero .btn-outline:hover,
.page-head .btn-outline:hover {
  border-color: var(--teal);
  background: rgba(10,186,181,.12);
  color: var(--teal);
}

.btn-lg {
  font-size: 1.06rem;
  padding: 16px 36px;
  border-radius: var(--radius-md);
}
.btn-phone { letter-spacing: .01em; }

/* ---------- Scroll-Fortschrittsleiste ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 101;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  width: 0;
  background: var(--gradient);
  box-shadow: 0 0 8px rgba(10,186,181,.5);
  border-radius: 0 2px 2px 0;
  transition: width .05s linear;
}

/* ---------- Kopfzeile ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  z-index: 100;
  /* Deckend genug, dass die Beschriftung auch über hellem Inhalt trägt. */
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: height var(--transition), background var(--transition),
              border-color var(--transition);
}
.nav.is-condensed {
  height: 62px;
  background: rgba(10,10,15,.94);
  border-bottom-color: var(--ink-line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 34px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-menu a {
  display: block;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  color: var(--text-invert);
  font-size: 1rem;
}
.nav-menu a:hover { color: var(--teal); }
.nav-menu a[aria-current="page"] { color: var(--teal); }
.nav-menu .nav-cta {
  background: var(--gradient);
  color: #031816;
  padding: 10px 22px;
  margin-left: 8px;
  box-shadow: 0 4px 16px rgba(10,186,181,.3);
}
.nav-menu .nav-cta:hover,
.nav-menu .nav-cta[aria-current="page"] { color: #031816; }
.nav-menu .nav-cta:hover { transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--text-invert);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Kopfbereich Startseite ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 84px) 0 104px;
  background: var(--ink);
  color: var(--text-invert);
  overflow: clip;
}
/* Hero-Hintergrund identisch zu kimu.gmbh: pulsierendes Leuchten + Raster. */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(10,186,181,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 20%, transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero h1 { max-width: 30ch; line-height: 1.12; letter-spacing: -.005em; }   /* zwei Zeilen, nicht vier */
.hero .lead { margin-top: 22px; max-width: 56ch; font-size: 1.14rem; line-height: 1.62; }

.hero-actions,
.head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero-note {
  margin-top: 18px;
  font-size: 1rem;
  max-width: 54ch;
  color: var(--text-invert-soft);
}

/* Badge im kimu.gmbh-Stil (.hero-badge), etwas größer/prominenter. */
.badge {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid rgba(10,186,181,0.28);
  border-radius: 100px;
  background: rgba(10,186,181,0.1);
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 30px;
}

.hero-founders {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--ink-line);
  color: var(--text-invert-soft);
  max-width: 60ch;
  font-size: .98rem;
}

/* ---------- Karten ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
/* Gleich große Kacheln: alle Zeilen gleich hoch. */
.grid-kacheln { grid-auto-rows: 1fr; }

/* Icon-Kachel oben in einer Karte – dezente Teal-Fläche mit Linien-Symbol. */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: var(--teal-tint);
  color: var(--teal-text);
}
.section-dark .card-icon { background: rgba(10,186,181,.14); color: var(--teal); }
.card:hover .card-icon { background: var(--teal); color: #fff; transition: background var(--transition), color var(--transition); }
.section-dark .card:hover .card-icon { background: var(--teal); color: #04211F; }
@media (max-width: 1180px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .grid-5 { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #CDE3E2; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 1.02rem; }
.card .card-more {
  margin-top: auto;
  padding-top: 20px;
  font-size: 1rem;              /* gleiche Stufe wie die Knopfbeschriftung */
  color: var(--teal-text);
}
.card:hover .card-more { color: var(--teal-deep); }
.card-num {
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--teal-text);
  margin-bottom: 12px;
}

.section-dark .card {
  background: var(--ink-2);
  border-color: var(--ink-line);
}
.section-dark .card:hover { border-color: rgba(10,186,181,.45); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.section-dark .card p { color: var(--text-invert-soft); }
.section-dark .card .card-more,
.section-dark .card .card-num { color: var(--teal); }

/* Branchenkarte mit Vertraulichkeitszeile */
.card-branche .card-hint {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--text-soft);
}
.section-dark .card-branche .card-hint { border-top-color: var(--ink-line); color: var(--text-invert-soft); }

/* ---------- Vorher/Nachher-Zeilen ---------- */
.ba-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.ba-row + .ba-row { margin-top: 16px; }
.ba-side { padding: 26px 28px; }
.ba-side .ba-label {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
  display: block;
}
.ba-before { background: var(--bg-alt); }
.ba-after  { background: var(--surface); }
.ba-after .ba-label { color: var(--teal-text); }
.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: var(--bg-alt);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--teal);
}
.ba-side p { max-width: 46ch; }

/* Vorher/Nachher auf dunklen Abschnitten – damit die Hell/Dunkel-Alternation
   der Startseite auch diese Sektion einschließt (wie kimu.gmbh). */
.section-dark .ba-row { background: var(--ink-2); border-color: var(--ink-line); }
.section-dark .ba-before { background: rgba(255,255,255,.03); }
.section-dark .ba-after  { background: rgba(10,186,181,.08); }
.section-dark .ba-arrow  {
  background: rgba(255,255,255,.03);
  border-left-color: var(--ink-line);
  border-right-color: var(--ink-line);
  color: var(--teal);
}
.section-dark .ba-side .ba-label { color: var(--text-invert-soft); }
.section-dark .ba-after .ba-label { color: var(--teal); }
.section-dark .ba-side p { color: var(--text-invert-soft); }

/* ---------- Nummerierter Ablauf ---------- */
.steps { counter-reset: schritt; display: grid; gap: 18px; }
.step {
  counter-increment: schritt;
  max-width: none;          /* hebt die Zeilenbreite für li auf – der Kasten läuft voll */
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.step::before {
  content: counter(schritt, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-deep);
  font-size: 1.15rem;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-soft); }
.section-dark .step { background: var(--ink-2); border-color: var(--ink-line); }
.section-dark .step::before { background: rgba(10,186,181,.14); color: var(--teal); }
.section-dark .step p { color: var(--text-invert-soft); }

/* ---------- Technischer Kasten auf dunklem Grund ---------- */
.tech-box {
  background: var(--ink);
  color: var(--text-invert);
  border: 1px solid var(--ink-line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  margin: 36px 0;
}
.tech-box .eyebrow { color: var(--teal); }
.tech-box h3 { margin-bottom: 14px; }
.tech-box p, .tech-box li { color: var(--text-invert-soft); }
.tech-box ul { margin-top: 14px; display: grid; gap: 9px 34px; }
/* In voller Breite zweispaltig, damit die Zeilen lesbar kurz bleiben. */
@media (min-width: 900px) {
  .container > .tech-box ul { grid-template-columns: 1fr 1fr; }
}
.tech-box li { padding-left: 22px; position: relative; max-width: 56ch; }
.tech-box li::before {
  content: "";
  position: absolute; left: 0; top: .68em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.tech-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  color: var(--teal-light);
}

/* ---------- Hervorgehobener Einschränkungs-Kasten ---------- */
.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  background: var(--teal-tint);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  margin: 32px 0;
}
.note .note-title {
  display: block;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 10px;
}
.note p { color: #1C3A38; }
.note p + p { margin-top: .9em; }

/* ---------- Aufklappbare Fragen ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 26px;
  position: relative;
  font-size: 1.1rem;
  transition: color var(--transition);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-text); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 26px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq .faq-body { padding: 0 26px 22px; }
.faq .faq-body p { color: var(--text-soft); }
.faq .faq-body p + p { margin-top: .9em; }

.section-dark .faq details { background: var(--ink-2); border-color: var(--ink-line); }
.section-dark .faq .faq-body p { color: var(--text-invert-soft); }

/* ---------- Abschlussband ---------- */
.band {
  background: var(--ink);
  color: var(--text-invert);
  padding: 78px 0;
  position: relative;
  overflow: clip;
}
.band::before {
  content: "";
  position: absolute;
  inset: auto 0 -60% 0;
  height: 120%;
  background: radial-gradient(ellipse at 50% 100%, rgba(10,186,181,.18) 0%, transparent 65%);
  pointer-events: none;
}
.band > .container { position: relative; z-index: 1; text-align: center; }
.band h2 { max-width: 22ch; margin: 0 auto; }
.band p { margin: 18px auto 0; color: var(--text-invert-soft); }
.band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- Brotkrumen ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  color: var(--text-invert-soft);
  margin-bottom: 26px;
}
.breadcrumb li { max-width: none; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { opacity: .45; }
.breadcrumb [aria-current="page"] { color: var(--text-invert); }

/* ---------- Seitenkopf Unterseiten ---------- */
.page-head {
  background: var(--ink);
  color: var(--text-invert);
  padding: calc(var(--nav-height) + 64px) 0 72px;
  position: relative;
  overflow: clip;
}
.page-head::before {
  content: "";
  position: absolute;
  top: -40%; left: 50%;
  width: min(900px, 120%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(10,186,181,.13) 0%, transparent 62%);
  pointer-events: none;
}
.page-head > .container { position: relative; z-index: 1; }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-top: 22px; }
.page-head .head-actions { margin-top: 32px; }

/* ---------- Fließtext ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2.1em;
  margin-bottom: .5em;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}
.prose h3 { margin-top: 1.7em; margin-bottom: .4em; }
.prose ul, .prose ol { display: grid; gap: .55em; padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: "";
  position: absolute; left: 4px; top: .68em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.prose ol { counter-reset: pos; }
.prose ol li { position: relative; padding-left: 34px; counter-increment: pos; }
.prose ol li::before {
  content: counter(pos) ".";
  position: absolute; left: 0; top: 0;
  color: var(--teal-text);
}
.prose a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--teal); }
.prose strong { color: var(--text); }
.prose blockquote {
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 22px;
  color: var(--text-soft);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.prose table th, .prose table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose table th { color: var(--teal-deep); }
.table-wrap { overflow-x: auto; }

/* Fließtext dunkel */
.section-dark .prose { color: var(--text-invert); }
.section-dark .prose p, .section-dark .prose li { color: var(--text-invert-soft); }
.section-dark .prose a { color: var(--teal); }
.section-dark .prose strong { color: var(--text-invert); }

/* ---------- Beitrags-Metazeile und Inhaltsverzeichnis ---------- */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--ink-line);
  font-size: .97rem;
  color: var(--text-invert-soft);
}
.meta-row li { max-width: none; }
.meta-row .meta-author { color: var(--text-invert); }
.meta-row a { color: var(--teal); }

.toc {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 44px;
}
.toc .eyebrow { margin-bottom: 12px; }
.toc ol { display: grid; gap: 8px; counter-reset: toc; }
.toc li { counter-increment: toc; position: relative; padding-left: 30px; max-width: none; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-size: .85rem;
  color: var(--teal-text);
}
.toc a:hover { color: var(--teal-text); text-decoration: underline; }

/* ---------- Beitragsliste ---------- */
.post-list { display: grid; gap: 16px; }
.post-item {
  display: block;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.post-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #CDE3E2; }
.post-item .post-kicker {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 8px;
  display: block;
}
.post-item h3 { margin-bottom: 8px; }
.post-item p { color: var(--text-soft); font-size: 1.02rem; }
.post-item .post-meta {
  margin-top: 14px;
  font-size: .93rem;
  color: var(--text-soft);
}
.post-item .draft-flag {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 10px;
  border-radius: 999px;
  background: #FFE9B8;
  color: #6A4A00;
  font-size: .8rem;
}

/* ---------- Ablaufdiagramm ----------
   Auf schmalen Bildschirmen scrollt das Diagramm in seinem eigenen Rahmen,
   damit die Beschriftung lesbar bleibt und die Seite nicht überläuft. */
.diagramm-rahmen {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 6px;
}
.diagramm {
  display: block;
  width: 100%;
  min-width: 780px;
  height: auto;
  font-family: var(--font);
}
.diagramm-hinweis {
  margin-top: 14px;
  font-size: .95rem;
  color: var(--text-invert-soft);
}

.dg-knoten rect {
  fill: var(--ink-2);
  stroke: var(--ink-line);
  stroke-width: 1;
}
.dg-mitte rect {
  fill: #10161B;
  stroke: var(--teal);
  stroke-width: 1.5;
}
.dg-extern rect { fill: transparent; stroke: #39414A; stroke-dasharray: 5 5; }

.dg-knoten text { text-anchor: middle; fill: var(--text-invert); }
.dg-titel      { font-size: 17px; }
.dg-titel-gross { font-size: 23px; }
.dg-zeile      { font-size: 13.5px; fill: var(--text-invert-soft); }
.dg-zeile-hell { fill: var(--text-invert); font-size: 14.5px; }
.dg-zeile-leise { font-size: 12px; fill: #7C8A91; }
.dg-marke {
  font-size: 10.5px;
  letter-spacing: .16em;
  fill: #6C7A80;
}
.dg-marke-teal { fill: var(--teal); }
.dg-trenner { stroke: var(--ink-line); stroke-width: 1; }

.dg-linie {
  fill: none;
  stroke: #39414A;
  stroke-width: 2;
}
.dg-linie-zurueck { stroke-dasharray: 5 4; }
.dg-pfeilspitze { fill: #39414A; }

.dg-kantentext text {
  font-size: 12px;
  fill: var(--text-invert-soft);
  text-anchor: start;
}

/* Wandernde Markierung: ein kurzer Strich läuft die Verbindung entlang. */
.dg-puls {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 14 400;
  stroke-dashoffset: 414;
  animation: dg-fluss 5.6s linear infinite;
}
.dg-puls-2 { animation-delay: .5s; }
.dg-puls-3 { animation-delay: 1.4s; }
.dg-puls-4 { animation-delay: 1.9s; }
.dg-puls-5 { animation-delay: 2.4s; }
.dg-puls-6 { animation-delay: 3.2s; }
.dg-puls-7 { animation-delay: 3.7s; }

@keyframes dg-fluss {
  0%        { stroke-dashoffset: 414; opacity: 0; }
  6%        { opacity: 1; }
  22%       { stroke-dashoffset: 386; opacity: 1; }
  26%, 100% { stroke-dashoffset: 386; opacity: 0; }
}

/* ---------- Abbildungen ---------- */
.bild + .bild { margin-top: 44px; }
.bild img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.bild figcaption {
  margin-top: 14px;
  font-size: .97rem;
  color: var(--text-soft);
  max-width: var(--measure);
}
.section-dark .bild img { border-color: var(--ink-line); box-shadow: 0 16px 50px rgba(0,0,0,.55); }
.section-dark .bild figcaption { color: var(--text-invert-soft); }

/* Hochformat (ausgeschnittene Seitenbereiche) nicht auf volle Breite ziehen. */
.bild-schmal img { max-width: 520px; }

/* Antippen öffnet die volle Auflösung – dort greift die Zoom-Geste des Browsers. */
.bild-lupe {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
}
.bild-lupe-marke {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10,10,15,.82);
  color: #E8EBF0;
  font-size: .88rem;
  line-height: 1;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.bild-lupe:hover .bild-lupe-marke,
.bild-lupe:focus-visible .bild-lupe-marke { opacity: 1; transform: none; }
.bild-lupe:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

/* Auf Zeigegeräten ohne Überfahren – also auf dem Telefon – steht der Hinweis dauerhaft,
   weil man dort sonst nicht auf die Idee kommt, dass sich etwas öffnen lässt. */
@media (hover: none) {
  .bild-lupe-marke { opacity: 1; transform: none; }
}

/* Auf schmalen Bildschirmen ist das Bild klein – der Hinweis muss es entsprechend sein. */
@media (max-width: 700px) {
  .bild-lupe-marke {
    right: 10px;
    bottom: 10px;
    gap: 5px;
    padding: 6px 11px;
    font-size: .74rem;
  }
  .bild-lupe-marke svg { width: 12px; height: 12px; }
}

/* ---------- Team ---------- */
.team-card { align-items: flex-start; }
.team-card .avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-tint);
  color: var(--teal-deep);
  font-size: 1.9rem;
  letter-spacing: .04em;
  margin-bottom: 20px;
  border: 1px solid #C9E7E5;
  overflow: hidden;
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Team-Portrait: großes 4:5-Bild statt Initialen-Kreis */
.team-card .avatar-foto {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
/* Leichter Schutz der Portraits: kein Rechtsklick-Speichern, kein Ziehen,
   kein Langdruck-Menü am Handy. (Kein echter Kopierschutz – das Bild bleibt
   technisch abrufbar; nur der bequeme Weg ist versperrt.) */
.team-card .avatar-foto img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.team-card .rolle {
  color: var(--teal-text);
  font-size: .95rem;
  margin-bottom: 12px;
}
.section-dark .team-card .avatar { background: rgba(10,186,181,.14); color: var(--teal); border-color: rgba(10,186,181,.3); }
.section-dark .team-card .rolle { color: var(--teal); }
.platzhalter-hinweis {
  margin-top: 26px;
  font-size: .95rem;
  color: var(--text-soft);
}

/* ---------- Querverweis-Kasten ---------- */
.crosslink {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px 32px;
  margin-top: 44px;
  box-shadow: var(--shadow-sm);
}
.crosslink .eyebrow { margin-bottom: 8px; }
.crosslink h3 { margin-bottom: 8px; }
.crosslink p { color: var(--text-soft); }
.crosslink .btn { margin-top: 18px; }

/* ==========================================================================
   Fachbeitrag – Sonderelemente im Fließtext (rohes HTML im Markdown-Körper)
   ========================================================================== */

/* Kleiner Rubrik-Kicker über einer Abschnitts-Überschrift */
.prose .beitrag-kicker {
  margin-top: 2.8em;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-text);
}
.prose .beitrag-kicker + h2 { margin-top: .3em; }

/* Herausgehobenes Zitat, mittig zwischen zwei Linien */
.beitrag-zitat {
  margin: 2.6em 0;
  text-align: center;
  border-top: 1px solid var(--teal);
  border-bottom: 1px solid var(--teal);
  padding: 28px 0;
}
.beitrag-zitat blockquote { border: 0; padding: 0; color: inherit; }
.beitrag-zitat p {
  font-size: clamp(1.2rem, 1rem + .8vw, 1.42rem);
  line-height: 1.5;
  color: var(--teal-deep);
  max-width: 36ch;
  margin: 0 auto;
}

/* Tönkasten für Praxisbeispiel und Checkliste */
.beitrag-kasten {
  margin: 2.6em 0;
  padding: 28px 32px;
  background: var(--teal-tint);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-md);
}
.beitrag-kasten-label {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 10px;
}
.beitrag-kasten h3 { margin: 0 0 12px; }
.beitrag-kasten p, .beitrag-kasten li { color: #1C3A38; }
.beitrag-kasten p + p { margin-top: .9em; }
.prose .checkliste ol { counter-reset: none; gap: 12px; margin-top: 4px; }
.prose .checkliste ol li { padding-left: 30px; }
.prose .checkliste ol li::before {
  content: "→";
  left: 0; top: 0;
  color: var(--teal-text);
}

/* Abb. 1 – Drei-Stufen-Modell */
.stufen-modell { margin: 2.6em 0; }
.stufen-abb {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 14px;
}
.stufen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stufe {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 0 20px 20px;
  overflow: hidden;
}
.stufe-bar { display: block; height: 6px; margin: 0 -20px 18px; }
.stufe:nth-child(1) .stufe-bar { background: #86DAD7; }
.stufe:nth-child(2) .stufe-bar { background: var(--teal); }
.stufe:nth-child(3) .stufe-bar { background: var(--teal-deep); }
.stufe-nr {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.stufe-titel { color: var(--text); font-size: 1.08rem; line-height: 1.3; margin-bottom: 12px; }
.stufe-bsp {
  font-size: .92rem;
  color: var(--teal-text);
  background: var(--teal-tint);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  margin-bottom: 12px;
}
.stufe p + p { margin-top: 0; }
.stufe > p:last-child { color: var(--text-soft); font-size: .96rem; }
.stufen-skala {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: .82rem;
  color: var(--text-soft);
}
.stufen-pfeil { color: var(--teal-text); }

/* Werkstattbericht – Lehren als beschriftete Zeilen */
.lehren { margin: 2.2em 0; border-top: 1px solid var(--line); }
.lehre {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.lehre-label {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-text);
  padding-top: 3px;
}
.lehre-titel { color: var(--text); font-size: 1.06rem; margin-bottom: 6px; }
.lehre-text p { color: var(--text-soft); }
.lehre-text p + p { margin-top: 0; }

/* Abb. – Pipeline aus Knoten (Regeln / Modell / Prüfung) */
.beitrag-pipe-fig { margin: 2.6em 0; }
.beitrag-pipe {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.pipe-label {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.pipe-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pipe-node {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  font-size: .95rem;
  line-height: 1.3;
}
.pipe-tag {
  display: block;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 5px;
}
.pipe-name { display: block; color: var(--text); }
.pipe-sub { display: block; color: var(--text-soft); font-size: .82rem; margin-top: 4px; }
.pipe-node.ki { background: var(--teal-tint); border-color: #86DAD7; }
.pipe-node.ki .pipe-tag { color: var(--teal-text); }
.pipe-node.mensch { border-style: dashed; border-color: var(--teal-strong); }
.pipe-legende {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: .8rem;
  color: var(--text-soft);
}
.pipe-legende i {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 2px;
  vertical-align: -1px;
  margin-right: 6px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.pipe-legende i.ki { background: var(--teal-tint); border-color: #86DAD7; }
.pipe-legende i.mensch { border-style: dashed; border-color: var(--teal-strong); }
.beitrag-pipe-fig figcaption { font-size: .82rem; color: var(--text-soft); margin-top: 12px; }

/* Autorenzeile am Beitragsende */
.autor-box { margin: 2.8em 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.autor-box .beitrag-kasten-label { color: var(--teal-text); }
.autor-box p { color: var(--text-soft); }

@media (max-width: 720px) {
  .stufen-grid { grid-template-columns: 1fr; }
  .stufen-skala { flex-direction: column; align-items: flex-start; gap: 4px; }
  .lehre { grid-template-columns: 1fr; gap: 6px; }
  .lehre-label { padding-top: 0; }
  .beitrag-kasten { padding: 24px; }
  .pipe-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- Kontakt ---------- */
.phone-big {
  display: inline-block;
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.5rem);
  letter-spacing: -.02em;
  color: var(--teal-strong);
  line-height: 1.1;
}
.section-dark .phone-big { color: var(--teal); }
.phone-big:hover { color: var(--teal-deep); }
.section-dark .phone-big:hover { color: var(--teal-light); }

.form {
  display: grid;
  gap: 18px;
  max-width: 680px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 1rem; color: var(--text-soft); }
.field .req { color: var(--teal-text); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10,186,181,.3);
}
/* Bei Tastaturbedienung zusätzlich der deutliche Rahmen. */
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--teal-strong);
  outline-offset: 2px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}
.field-check input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--teal); }
.field-check label { font-size: .97rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.ok  { display: block; background: var(--teal-tint); color: var(--teal-deep); border: 1px solid #B6E5E2; }
.form-status.err { display: block; background: #FDECEC; color: #8A2020; border: 1px solid #F4C7C7; }

/* ---------- Kontaktformular via Contact Form 7 (im KIMU-Design) ---------- */
.kimu-formular { max-width: 680px; }
.kimu-formular .wpcf7-form { display: grid; gap: 18px; }
.kimu-formular .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kimu-formular .form-group { display: grid; gap: 7px; align-content: start; }
.kimu-formular .form-group > label { font-size: 1rem; color: var(--text-soft); }
.kimu-formular .wpcf7-form-control-wrap { display: block; }
.kimu-formular input[type=text],
.kimu-formular input[type=email],
.kimu-formular input[type=tel],
.kimu-formular textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.kimu-formular input:focus,
.kimu-formular textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10,186,181,.3);
}
.kimu-formular textarea { min-height: 150px; resize: vertical; }

/* Datenschutz-Zeile */
.kimu-formular .form-privacy .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .97rem;
  color: var(--text-soft);
}
.kimu-formular .wpcf7-acceptance .wpcf7-list-item { display: inline; margin: 0; }
.kimu-formular .wpcf7-acceptance input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); }

/* Submit + Meldungen */
.kimu-formular .btn-full { width: 100%; }
.kimu-formular .wpcf7-submit { cursor: pointer; }
.kimu-formular .wpcf7-response-output {
  margin: 4px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .97rem;
}
.kimu-formular form.sent .wpcf7-response-output { background: var(--teal-tint); color: var(--teal-deep); border: 1px solid #B6E5E2; }
.kimu-formular form.invalid .wpcf7-response-output,
.kimu-formular form.unaccepted .wpcf7-response-output,
.kimu-formular form.failed .wpcf7-response-output { background: #FDECEC; color: #8A2020; border: 1px solid #F4C7C7; }
.kimu-formular .wpcf7-not-valid-tip { color: #8A2020; font-size: .9rem; margin-top: 4px; }
.kimu-formular input.wpcf7-not-valid,
.kimu-formular textarea.wpcf7-not-valid { border-color: #D98A8A; }
.kimu-formular .wpcf7-spinner { margin: 0 0 0 12px; }

/* ---------- Fußzeile ---------- */
.footer {
  background: var(--ink);
  color: var(--text-invert-soft);
  padding: 48px 0 26px;
  border-top: 1px solid var(--ink-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 32px 48px;
}
.footer h2 {
  color: var(--text-invert);
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer ul { display: grid; gap: 8px; }
.footer a:hover { color: var(--teal); }
.footer-logo img { height: 32px; margin-bottom: 12px; }
.footer-brand p { font-size: .96rem; max-width: 32ch; }
.footer-contact { display: grid; gap: 6px; margin-top: 12px; font-size: .96rem; }
.footer-contact a { color: var(--teal); }
/* Mitgliedschaft KI Bundesverband – gerahmtes Badge mit weißer Logo-Fassung. */
.footer-member {
  display: inline-flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.02);
  transition: border-color var(--transition), transform var(--transition);
}
.footer-member:hover { border-color: rgba(10,186,181,.5); transform: translateY(-2px); }
.footer-member-label {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-invert-soft);
}
.footer-member img { display: block; height: 32px; width: auto; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: .93rem;
}
.footer-bottom p { max-width: none; }

/* ---------- Bewegung ---------- */
/* Einblenden beim Scrollen – Werte wie im WordPress-Theme. */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Seiten mit .ohne-anim (Impressum, Datenschutz) starten ohne Einblendung –
   der Inhalt steht sofort, ohne Bewegung beim Scrollen. */
.ohne-anim .reveal { opacity: 1; transform: none; transition: none; }

/* Ohne JavaScript gibt es niemanden, der "is-visible" setzt – dann sofort zeigen.
   Rein über CSS gelöst, weil die Sicherheitsrichtlinie Inline-Angaben verbietet. */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}

/* prefers-reduced-motion schaltet jede Bewegung ab – verbindlich */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card:hover, .post-item:hover { transform: none; }
  /* Diagramm ohne Laufanimation: die Verbindungen bleiben durchgehend sichtbar. */
  .dg-puls { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: .55; }
  /* Die Fortschrittsleiste zeigt die Position, sie bewegt sich nicht von selbst –
     sie bleibt, nur ohne weichen Übergang. */
  .scroll-progress-bar { transition: none; }
}

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  body { font-size: 17.5px; }
  .section { padding: 76px 0; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 24px 26px;
    background: var(--ink);          /* deckend – darunterliegender Text darf nicht durchscheinen */
    border-bottom: 1px solid var(--ink-line);
    box-shadow: 0 18px 40px rgba(0,0,0,.55);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .nav-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu a { padding: 13px 8px; }
  .nav-menu .nav-cta { margin: 10px 0 0; text-align: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .ba-row { grid-template-columns: 1fr; }
  .ba-arrow {
    padding: 12px 0;
    border-left: 0; border-right: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .ba-arrow svg { transform: rotate(90deg); }

  .step { grid-template-columns: 46px 1fr; gap: 16px; padding: 22px; }
  .step::before { width: 46px; height: 46px; font-size: 1rem; }

  .field-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tech-box, .note { padding: 24px; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .hero { padding: calc(var(--nav-height) + 64px) 0 76px; }
  .hero-actions .btn, .band-actions .btn { width: 100%; }
}

/* ---------- Druck ---------- */
@media print {
  .nav, .band, .footer, .hero-actions, .head-actions { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .page-head, .section-dark { background: #fff !important; color: #000 !important; }
}
