/* ============================================================
   Kuti Kommunikation
   Design-System: hell mit automatischem Dark-Mode.
   Marken-Blau #1F478A und Marken-Schwarz #252525 sind aus dem
   Original-Logo (assets/logo-original.png) gemessen.
   ============================================================ */

/* ---------- Archivo (Display + Text) und IBM Plex Mono (Kennwerte,
     Protokoll-Zähler), lokal eingebunden (DSGVO, keine Google-Anfrage). ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f7f8fb;
  --brand-blue: #1f478a;
  --mist: color-mix(in srgb, var(--brand-blue) 7%, var(--paper));
  --ink: #1a2230;
  --muted: #5b6472;
  --accent: #1f478a;
  --accent-hover: #1a3c75;
  --signal: #1c9c6b;
  --line: rgba(15, 35, 60, 0.11);
  --card: #ffffff;
  --header-bg: rgba(247, 248, 251, 0.75);
  --shadow: 0 18px 40px -24px rgba(10, 20, 40, 0.35);
  --on-accent: #ffffff;
  --hero-scrim: rgba(247, 248, 251, 0.26);

  --error: #c0392b;
  --wrap: 1080px;
  --radius: 4px;
  --radius-sm: 2px;
  --header-h: 52px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas,
    monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #05070c;
    --mist: #0c1119;
    --ink: #eceff4;
    --muted: #8893a3;
    --accent: #5c8de8;
    --accent-hover: #7aa4ef;
    --brand-blue: #5c8de8;
    --signal: #3ed28f;
    --line: rgba(150, 180, 220, 0.15);
    --card: #10141d;
    --header-bg: rgba(5, 7, 12, 0.72);
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
    --on-accent: #08111f;
    --hero-scrim: rgba(5, 7, 12, 0.32);
    --error: #ff8b80;
  }
}

/* Manueller Schalter (js/main.js) schlaegt die Systemeinstellung. */
:root[data-theme="dark"] {
  --paper: #05070c;
  --mist: #0c1119;
  --ink: #eceff4;
  --muted: #8893a3;
  --accent: #5c8de8;
  --accent-hover: #7aa4ef;
  --brand-blue: #5c8de8;
  --signal: #3ed28f;
  --line: rgba(150, 180, 220, 0.15);
  --card: #10141d;
  --header-bg: rgba(5, 7, 12, 0.72);
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --on-accent: #08111f;
  --hero-scrim: rgba(5, 7, 12, 0.32);
  --error: #ff8b80;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 18%, transparent);
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

/* Zwei feste Farbflecken (Marken-Blau, Marken-Grau aus --ink) hinter den
   Sections, damit die Seite nicht komplett weiss/schwarz wirkt. Fixed statt
   scroll-gebunden, damit der Farbton auf der ganzen Laenge gleich bleibt. */
body {
  margin: 0;
  background:
    radial-gradient(60% 55% at 88% -8%, color-mix(in srgb, var(--brand-blue) 20%, transparent), transparent 70%),
    radial-gradient(55% 45% at -5% 105%, color-mix(in srgb, var(--ink) 14%, transparent), transparent 70%),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

/* Tracking ist größenabhängig: große Displaygrößen wirken ohne negatives
   Tracking auseinandergezogen, kleine Überschriften brauchen fast keins.
   Ein Wert für alle wäre zwangsläufig irgendwo falsch. */
h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h3 { letter-spacing: -0.008em; }
.mono { font-family: var(--font-mono); }
p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

/* Kein 300ms-Wartefenster auf Doppeltipp — der Tap kommt sofort an. */
a,
button,
label,
summary { touch-action: manipulation; }

/* Lange Wörter (Normbezeichnungen, URLs) sprengen keine Karte mehr. */
body { overflow-wrap: break-word; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typo-Rollen ---------- */
.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lead {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.text-accent { color: var(--accent); }

.ph {
  color: var(--accent);
  text-decoration: underline dashed 1px;
  text-underline-offset: 4px;
}

/* ---------- Buttons und Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  /* Press-Feedback kommt sofort, nicht über eine viertel Sekunde eingeblendet */
  transition: background 0.25s var(--ease), transform 0.1s ease-out;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); }
.btn--sm { padding: 8px 17px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 16px;
  text-decoration: none;
}
.link-arrow::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover::after { transform: translate(3px, -1px); }
.link-arrow--light { color: var(--on-accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
/* Wo der Inhalt unter die schwebende Leiste läuft, steht kein 1px-Strich,
   sondern eine weiche Kante — die Leiste liegt sichtbar darüber. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 22px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--paper) 62%, transparent),
    transparent
  );
  transition: opacity 0.3s var(--ease);
}
.site-header.is-scrolled::after { opacity: 1; }

/* Header ist volle Breite statt in der 1080px-Content-Spalte gefangen, damit
   Nav und Buttons wirklich oben rechts in der Ecke sitzen. */
.site-header .wrap { max-width: none; }

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark { width: 22px; height: 22px; flex: none; }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand__sub {
  margin-top: 3px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.nav {
  display: none;
  margin-left: auto;
  gap: 28px;
}
.nav a {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}
.nav a:hover { opacity: 1; }

.header__cta { display: none; }

/* Auto-Margin wandert vom Burger hierher: auf Mobile (Nav ausgeblendet) ist
   der Theme-Switch das erste Element, das nach rechts drueckt. Klassischer
   An/Aus-Schalter: Sonne und Mond stehen beide fest da, nur der Thumb faehrt
   rueber und die aktive Seite wird betont — kein Icon verschwindet. */
.theme-toggle {
  position: relative;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 54px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mist);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle__icon {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.theme-toggle__icon--sun { color: var(--accent); }
.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease);
}
:root[data-theme="dark"] .theme-toggle__thumb { transform: translateX(26px); }
:root[data-theme="dark"] .theme-toggle__icon--sun { color: var(--muted); }
:root[data-theme="dark"] .theme-toggle__icon--moon { color: var(--accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__thumb { transform: translateX(26px); }
  :root:not([data-theme="light"]) .theme-toggle__icon--sun { color: var(--muted); }
  :root:not([data-theme="light"]) .theme-toggle__icon--moon { color: var(--accent); }
}

.burger {
  display: grid;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  place-content: center;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 19px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  border-top: 1px solid transparent;
  transition: grid-template-rows 0.32s var(--ease), opacity 0.24s var(--ease),
    border-color 0.32s var(--ease);
  opacity: 0;
}
.mobile-nav.is-open { grid-template-rows: 1fr; opacity: 1; border-top-color: var(--line); }
/* Der innere Wrapper trägt das overflow, damit 0fr sauber zusammenfährt. */
.mobile-nav__inner {
  display: grid;
  overflow: hidden;
  padding: 0 24px;
}
.mobile-nav.is-open .mobile-nav__inner { padding: 8px 24px 20px; }
.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: 0; }

@media (min-width: 860px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(84px, 12vw, 148px) 0; }
.section--mist { background: var(--mist); }

.section__head { max-width: 620px; margin-bottom: clamp(48px, 6vw, 72px); }
.section__title { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.025em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 13vw, 132px) 0 0;
  overflow: hidden;
}
/* Hintergrundfoto: Serverschraenke (dieselbe Aufnahme wie die Leistungskarte
   "Serverraum"), entsaettigt damit es zur Grau/Blau-Palette der Seite passt.
   Komplett sichtbar von links bis rechts, nur unten laeuft es in die
   Seitenfarbe. Scrim + der Text-Shadow an .hero__title/.hero__lead halten den
   Text lesbar, egal ob er auf einem hellen oder dunklen Bildbereich landet. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: grayscale(0.6);
  background:
    linear-gradient(
      to bottom,
      transparent 45%,
      color-mix(in srgb, var(--paper) 22%, transparent) 78%,
      color-mix(in srgb, var(--paper) 50%, transparent) 92%,
      var(--paper) 100%),
    linear-gradient(var(--hero-scrim), var(--hero-scrim)),
    url("../assets/cards/card3-serverraum.jpg") center / cover no-repeat;
}
/* Schmale Viewports: der gerichtete Fade von links traegt nicht mehr, weil der
   Text die volle Breite braucht. Dort deckt stattdessen eine Flaeche von oben. */
@media (max-width: 700px) {
  .hero::before {
    background:
      linear-gradient(
        to bottom,
        color-mix(in srgb, var(--paper) 90%, transparent) 0%,
        color-mix(in srgb, var(--paper) 74%, transparent) 48%,
        color-mix(in srgb, var(--paper) 30%, transparent) 78%,
        color-mix(in srgb, var(--paper) 55%, transparent) 92%,
        var(--paper) 100%),
      linear-gradient(var(--hero-scrim), var(--hero-scrim)),
      url("../assets/cards/card3-serverraum.jpg") center / cover no-repeat;
  }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 640px;
  text-align: left;
}
/* Weicher Halo in Seitenfarbe statt hartem Schlagschatten: haelt den Text
   lesbar, egal ob er gerade auf einem hellen oder dunklen Bildbereich sitzt,
   ohne das Foto darunter zusaetzlich abzudunkeln. */
.hero__title,
.hero__lead {
  text-shadow:
    0 2px 18px color-mix(in srgb, var(--paper) 85%, transparent),
    0 1px 3px color-mix(in srgb, var(--paper) 65%, transparent);
}
.hero__title {
  font-size: clamp(40px, 7.4vw, 76px);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero__lead {
  margin-top: 22px;
  max-width: 42ch;
  /* --muted ist auf dem Foto zu schwach; hier zaehlt Lesbarkeit mehr als die
     sonst gedaempfte Lead-Farbe. */
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.015em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 34px;
}

/* Signature: die Faser aus dem Logo läuft in die Seite und führt einen Puls */
.fiber-drop {
  position: relative;
  width: 1px;
  height: clamp(90px, 14vw, 150px);
  margin-top: clamp(56px, 8vw, 96px);
}
.fiber-drop__line {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--line) 12%, var(--line));
  transform-origin: top;
  animation: fiber-grow 1.1s var(--ease) 0.3s both;
}
.fiber-drop__pulse {
  position: absolute;
  left: -1px;
  width: 3px;
  height: 42px;
  border-radius: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  filter: blur(0.4px);
  /* Begrenzte Zyklen statt Dauerschleife: eine endlose Bewegung in diesem
     Frequenzbereich ist auf Dauer unruhig. */
  animation: fiber-pulse 3.6s cubic-bezier(0.5, 0, 0.5, 1) 1.3s 3 both;
}
@keyframes fiber-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes fiber-pulse {
  0% { top: -42px; opacity: 0; }
  18% { opacity: 1; }
  70% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ---------- Leistungen: horizontale Snap-Rail ----------
   Die Physik macht der Browser: 1:1-Tracking beim Wischen, Momentum,
   Rubber-Band am Ende. JS steuert nur die Pfeile. */
.rail { margin-top: clamp(40px, 5vw, 56px); }

.rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(300px, 76vw);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  /* Platz, damit Kartenrand und Fokusring nicht abgeschnitten werden */
  padding: 3px;
  margin: -3px;
}
.rail__track::-webkit-scrollbar { display: none; }
/* Rechts steht immer eine angeschnittene Karte — dort laeuft die Kante weich
   aus statt hart abgeschnitten zu sein. Links nicht: dort steht die Karte
   buendig am Rand, ein Fade wuerde sie faelschlich ausblenden.
   JS setzt .is-endlos, sobald die Kopien haengen. */
.rail.is-endlos .rail__track {
  mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
}
.rail__track:focus-visible { outline-offset: -1px; }

.ccard {
  display: flex;
  flex-direction: column;
  margin: 0;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.ccard__media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ccard__body { padding: 20px 22px 24px; }
.ccard__spec {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.ccard__body h3 { font-size: 19px; }
.ccard__body p:last-child { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Pfeile brauchen JS zum Scrollen — ohne JS bleibt die Rail per Wisch bedienbar. */
.rail__nav { display: none; }
.js-reveal .rail__nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.rail__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.rail__arrow svg { width: 18px; height: 18px; }
.rail__arrow:hover { border-color: var(--accent); color: var(--accent); }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 16px; }

.card--accent {
  max-width: 560px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
  align-items: center;
}
.card--accent p { color: var(--on-accent); opacity: 0.82; }
.card--accent .link-arrow { margin-top: 4px; }

/* ---------- Ablauf: Faser-Schiene ---------- */
.path { position: relative; display: grid; padding-left: 30px; }
.path::before,
.path::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 1px;
}
.path::before { background: var(--line); }
.path::after {
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.8s var(--ease);
}
.path.is-lit::after { transform: scaleY(1); }

.path__step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 26px 0;
}
.path__step + .path__step { border-top: 1px solid var(--line); }
/* Knoten auf der Faser */
.path__step::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 38px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--paper);
}
.path__num {
  padding-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.path__step h3 { font-size: 22px; }
.path__body p { margin-top: 8px; max-width: 54ch; color: var(--muted); font-size: 16px; }

@media (min-width: 720px) {
  .path__step { grid-template-columns: 62px 1fr; gap: 32px; padding: 32px 0; }
  .path__step::before { top: 44px; }
}

/* ---------- Haltung ---------- */
.creed { display: grid; gap: clamp(40px, 6vw, 72px); }
.creed__intro .lead { color: var(--muted); }
.creed__list { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.creed__item h3 { font-size: 19px; }
.creed__item p { margin-top: 8px; color: var(--muted); font-size: 16px; }

@media (min-width: 900px) {
  .creed { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: clamp(44px, 6vw, 72px); }
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1fr; align-items: start; }
}

.contact__direct { margin-top: 36px; display: grid; gap: 14px; }
.contact__direct li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.contact__direct svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.contact__direct a { text-decoration: none; }
.contact__direct a:hover { text-decoration: underline; }

.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.form__row { display: grid; gap: 18px; }
@media (min-width: 520px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 500; }
.field__hint { color: var(--muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  /* Eigene Kante statt --line: Eingabefelder müssen sich klar vom Karten-
     hintergrund abheben, eine 11%-Linie tut das nicht. */
  border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.75; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field input:user-invalid,
.field textarea:user-invalid,
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); }

.field__error {
  color: var(--error);
  font-size: 13px;
  line-height: 1.45;
}
.field__error:empty { display: none; }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.consent input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
.consent a { color: var(--accent); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { min-height: 1.2em; font-size: 14px; }
.form__status[data-state="error"] { color: var(--error); }
.form__status[data-state="ok"] { color: var(--accent); }

.form.is-sent { text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 14px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__nav a { color: var(--muted); text-decoration: none; }
.footer__nav a:hover { color: var(--ink); }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 720px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 32px; }
.legal h2 { margin: 40px 0 10px; font-size: 20px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal ul { margin: 10px 0; padding-left: 20px; list-style: disc; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--accent); }
.legal .note {
  margin-top: 44px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--mist);
  color: var(--muted);
  font-size: 14px;
}
.back-link { display: inline-block; margin-bottom: 26px; color: var(--accent); font-size: 15px; text-decoration: none; }

/* ---------- Reveal (nur wenn JS läuft) ---------- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html,
  .rail__track { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .fiber-drop__pulse { display: none; }
  .path::after { transform: scaleY(1); }
}

/* Durchsichtige Flächen frostiger machen, statt sie durchscheinen zu lassen. */
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header::after { background: none; border-bottom: 1px solid var(--line); }
}

/* Höherer Kontrast: kräftigere Kanten, dunklerer Fließtext, keine Transparenz. */
@media (prefers-contrast: more) {
  :root {
    --line: rgba(15, 35, 60, 0.42);
    --muted: #39424f;
    --hero-scrim: rgba(247, 248, 251, 0.74);
  }
  .site-header {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .field input,
  .field textarea { border-color: var(--ink); }
  .rail.is-endlos .rail__track { mask-image: none; -webkit-mask-image: none; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --line: rgba(178, 202, 236, 0.48);
    --muted: #bcc6d4;
    --hero-scrim: rgba(5, 7, 12, 0.8);
  }
}
