/* ============================================================
   SEBASTIAN WATERS — DESIGNSYSTEM (v2, dunkles Theme)
   ------------------------------------------------------------
   Stil: dunkles Anthrazit, dezente dunkelblaue Flächen,
   klare hellblaue Akzente. Seriöser Tech-Look.
   ------------------------------------------------------------
   Inhalt:
   01  Schriften (selbst gehostet, DSGVO-konform)
   02  Design-Tokens (Farben, Abstände, Radien, Schatten)
   03  Basis & Reset
   04  Typografie
   05  Layout (Container, Sektionen, Raster)
   06  Buttons & Links
   07  Header & Navigation
   08  Footer
   09  Kleine Komponenten (Eyebrow, Chips, Icon-Kacheln, Listen)
   10  Hero
   11  Leistungs-Panels mit Bild (neu)
   12  Sektionen der Startseite
   13  Formulare
   14  Projekt- & Fallstudien-Seiten
   15  Inhaltsseiten (Rechtliches, 404)
   16  Scroll-Animationen
   17  Utilities & Reduced Motion
   ============================================================ */


/* ---- 01 · Schriften ---------------------------------------- */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}


/* ---- 02 · Design-Tokens ------------------------------------ */

:root {
  /* Grundflächen (dunkles Anthrazit) */
  --bg-0: #14161b;            /* Seitenhintergrund */
  --bg-1: #1b1e25;            /* Karten, erhöhte Flächen */
  --bg-2: #171a21;            /* alternierende Flächen */
  --bg-3: #10131a;            /* Eingabefelder, tiefere Flächen */
  --ink-0: #f0f2f6;           /* Überschriften */
  --ink-1: #b9bfca;           /* Fließtext */
  --ink-2: #868d9a;           /* gedämpfter Text */
  --line-0: rgba(240, 242, 246, 0.08);
  --line-1: rgba(240, 242, 246, 0.16);

  /* Dunkelblaue Premium-Bereiche */
  --dark-0: #10151f;
  --dark-1: #151b28;
  --dark-2: #1c2434;
  --dark-ink-0: #f0f2f6;
  --dark-ink-1: #b9bfca;
  --dark-ink-2: #8891a1;
  --dark-line: rgba(240, 242, 246, 0.09);

  /* Akzent: klares Blau */
  --accent: #4d9aff;
  --accent-bright: #7db9ff;         /* Hover / Glow */
  --accent-ink: #0c1322;            /* Text auf Akzentflächen */
  --accent-strong: #6fb1ff;         /* Links, hervorgehobener Text */
  --accent-soft: rgba(77, 154, 255, 0.12);
  --accent-on-dark: #7db9ff;
  --accent-el-dark: #4d9aff;

  /* Status */
  --error: #ff7a6e;
  --error-soft: rgba(255, 122, 110, 0.12);
  --success: #55c98d;
  --success-soft: rgba(85, 201, 141, 0.12);

  /* Hinweis / Platzhalter (Gelbton auf dunkel) */
  --note: #e6c161;
  --note-soft: rgba(230, 193, 97, 0.1);
  --note-line: rgba(230, 193, 97, 0.4);

  /* Semantische Tokens — Komponenten nutzen NUR diese.
     .theme-dark überschreibt sie für dunkelblaue Sektionen. */
  --t-bg: var(--bg-0);
  --t-bg-card: var(--bg-1);
  --t-bg-subtle: var(--bg-2);
  --t-ink: var(--ink-0);
  --t-ink-body: var(--ink-1);
  --t-ink-muted: var(--ink-2);
  --t-line: var(--line-0);
  --t-accent: var(--accent);
  --t-accent-text: var(--accent-strong);

  /* Typografie */
  --font-sans: "Inter Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --text-display: clamp(2.5rem, 1.2rem + 5vw, 4.6rem);
  --text-h1: clamp(2.3rem, 1.4rem + 3.4vw, 3.7rem);
  --text-h2: clamp(1.8rem, 1.3rem + 2vw, 2.7rem);
  --text-h3: clamp(1.28rem, 1.15rem + 0.5vw, 1.5rem);
  --text-h4: 1.125rem;
  --text-lede: clamp(1.08rem, 1rem + 0.35vw, 1.22rem);
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-tiny: 0.8125rem;

  /* Abstände & Layout */
  --space-section: clamp(4rem, 2.8rem + 5.5vw, 7rem);
  --space-section-sm: clamp(2.75rem, 2rem + 3.5vw, 5rem);
  --container: 73rem;
  --container-wide: 82rem;
  --container-narrow: 46rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Radien */
  --radius-lg: 1.5rem;
  --radius-md: 1.125rem;
  --radius-sm: 0.75rem;
  --radius-pill: 100rem;

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25), 0 6px 20px -6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.25), 0 18px 44px -14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.3), 0 32px 72px -20px rgba(0, 0, 0, 0.6);
  --glow-accent: 0 0 0 1px rgba(77, 154, 255, 0.18), 0 10px 40px -10px rgba(77, 154, 255, 0.25);

  /* Bewegung */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.55s;
}

/* Dunkelblaue Sektionen: gleiche Komponenten, andere Tokens */
.theme-dark {
  --t-bg: var(--dark-0);
  --t-bg-card: var(--dark-1);
  --t-bg-subtle: var(--dark-2);
  --t-ink: var(--dark-ink-0);
  --t-ink-body: var(--dark-ink-1);
  --t-ink-muted: var(--dark-ink-2);
  --t-line: var(--dark-line);
  --t-accent: var(--accent-el-dark);
  --t-accent-text: var(--accent-on-dark);
  background-color: var(--t-bg);
  color: var(--t-ink-body);
}


/* ---- 03 · Basis & Reset ------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--t-ink-body);
  background-color: var(--t-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus-visible { top: 1rem; }


/* ---- 04 · Typografie --------------------------------------- */

h1, h2, h3, h4 {
  color: var(--t-ink);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: -0.018em; line-height: 1.25; }
h4 { font-size: var(--text-h4); letter-spacing: -0.01em; line-height: 1.35; }

p { text-wrap: pretty; }

.display {
  font-size: var(--text-display);
  font-weight: 650;
  letter-spacing: -0.034em;
  line-height: 1.03;
}

/* Serifen-Akzent: einzelne kursive Wörter in großen Überschriften */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent-strong);
}

.lede {
  font-size: var(--text-lede);
  line-height: 1.55;
  color: var(--t-ink-body);
  max-width: 38em;
}

.text-muted { color: var(--t-ink-muted); }
.text-small { font-size: var(--text-small); }


/* ---- 05 · Layout ------------------------------------------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container-wide { width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); margin-inline: auto; }

.section { padding-block: var(--space-section); }
.section-sm { padding-block: var(--space-section-sm); }
.section-tint { background: var(--bg-2); border-block: 1px solid var(--line-0); }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 1.6rem + 2.5vw, 3.5rem);
}
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 1rem; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 64rem) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 40rem) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}


/* ---- 06 · Buttons & Links ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 590;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease,
              color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn .arrow { transition: transform 0.25s var(--ease-out); flex: none; }
.btn:hover .arrow { transform: translateX(3px); }

/* Primär: helles Blau mit dunkler Schrift — hoher Kontrast */
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(77, 154, 255, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--t-ink);
  border-color: var(--line-1);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.theme-dark .btn-secondary { border-color: rgba(240, 242, 246, 0.22); }
.theme-dark .btn-secondary:hover { border-color: var(--accent); }

.btn-sm { padding: 0.6rem 1.15rem; font-size: var(--text-small); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.0625rem; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* Textlink mit Pfeil */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--t-accent-text);
  font-weight: 560;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.link-arrow .arrow { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Fließtext-Links */
.prose a, .text-link {
  color: var(--t-accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover, .text-link:hover { text-decoration-thickness: 2px; }


/* ---- 07 · Header & Navigation ------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(20, 22, 27, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-0);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
  transition: height 0.3s ease;
}
.site-header.scrolled .header-inner { height: 3.9rem; }

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
  font-weight: 660;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  color: var(--ink-0);
  text-decoration: none;
  white-space: nowrap;
}
.brand .dot { color: var(--accent); }

/* 5N-Logo als Bild: Die Höhe steuert die Größe, die Breite folgt automatisch */
.brand img { height: 1.6rem; width: auto; display: block; }
.mobile-nav-head .brand img { height: 1.5rem; }
.footer-brand .brand img { height: 1.85rem; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--ink-1);
  font-size: var(--text-small);
  font-weight: 540;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.main-nav a:hover { color: var(--ink-0); background: rgba(240, 242, 246, 0.06); }
.main-nav a[aria-current="page"] { color: var(--ink-0); font-weight: 620; }

.header-cta { flex: none; }

/* Mobile Navigation */
.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-1);
  border-radius: var(--radius-pill);
  background: var(--bg-1);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink-0);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg-0);
  padding: 1.25rem var(--gutter) 2.5rem;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.25rem;
  margin-bottom: 2.5rem;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-nav li { border-bottom: 1px solid var(--line-0); }
.mobile-nav ul a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0.25rem;
  font-size: 1.55rem;
  font-weight: 620;
  letter-spacing: -0.025em;
  color: var(--ink-0);
  text-decoration: none;
}
.mobile-nav ul a .arrow { color: var(--ink-2); }
.mobile-nav ul a[aria-current="page"] { color: var(--accent-strong); }
.mobile-nav .btn { margin-top: 2rem; width: 100%; }
.mobile-nav-note {
  margin-top: 1.25rem;
  font-size: var(--text-small);
  color: var(--ink-2);
  text-align: center;
}

@media (max-width: 56rem) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 56.01rem) {
  .mobile-nav { display: none !important; }
}


/* ---- 08 · Footer ------------------------------------------- */

.site-footer {
  background: var(--dark-0);
  color: var(--dark-ink-1);
  padding: clamp(3.5rem, 3rem + 3vw, 5.5rem) 0 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-0);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -12rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60rem;
  height: 24rem;
  background: radial-gradient(closest-side, rgba(77, 154, 255, 0.1), transparent);
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--dark-line);
  position: relative;
}
.footer-brand .brand { color: var(--dark-ink-0); font-size: 1.3rem; }
.footer-brand p {
  margin-top: 1rem;
  font-size: var(--text-small);
  max-width: 26em;
}
.footer-claim {
  margin-top: 0.85rem !important;
  font-size: var(--text-tiny) !important;
  font-weight: 620;
  letter-spacing: 0.13em;
  color: var(--dark-ink-2);
  white-space: nowrap;
}
.footer-claim b { color: var(--accent-on-dark); font-weight: inherit; }
.footer-col h4 {
  color: var(--dark-ink-0);
  font-size: var(--text-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a {
  color: var(--dark-ink-1);
  text-decoration: none;
  font-size: var(--text-small);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent-bright); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: var(--text-tiny);
  color: var(--dark-ink-2);
  position: relative;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--dark-ink-2); text-decoration: none; }
.footer-legal a:hover { color: var(--dark-ink-0); }

@media (max-width: 56rem) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 36rem) {
  .footer-top { grid-template-columns: 1fr; }
}


/* ---- 09 · Kleine Komponenten ------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-tiny);
  font-weight: 620;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--t-accent-text);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.85;
}

/* Ehrliche Projekt-Kennzeichnung */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--t-line);
  background: var(--t-bg-card);
  color: var(--t-ink-body);
  font-size: var(--text-tiny);
  font-weight: 560;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
}
a.chip:hover { border-color: var(--accent); color: var(--ink-0); }
.chip-accent { border-color: rgba(77, 154, 255, 0.35); background: var(--accent-soft); color: var(--accent-bright); }
.chip-success { border-color: rgba(85, 201, 141, 0.4); background: var(--success-soft); color: var(--success); }
.chip-dot::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Icon-Kachel */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  flex: none;
  border-radius: 0.9rem;
  background: var(--accent-soft);
  color: var(--accent-bright);
  border: 1px solid rgba(77, 154, 255, 0.22);
}
.icon-tile svg { width: 1.4rem; height: 1.4rem; }

/* Karten */
.card {
  background: var(--t-bg-card);
  border: 1px solid var(--t-line);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
}
a.card { display: block; text-decoration: none; color: inherit; }
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(77, 154, 255, 0.35);
}

/* Häkchen-Liste */
.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.list-check li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.list-check svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  margin-top: 0.22em;
  color: var(--t-accent-text);
}

/* Platzhalter-Hinweis (für fehlende Fotos / Angaben) */
.placeholder-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--note-line);
  background: var(--note-soft);
  color: var(--note);
  font-size: var(--text-tiny);
  font-weight: 540;
}

/* Foto-Platzhalter */
.photo-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(240, 242, 246, 0.02) 12px 24px),
    linear-gradient(160deg, #1c2028, #14161b);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--ink-2);
  text-align: center;
  padding: 2rem;
}
.photo-placeholder .ph-initials {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 640;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.photo-placeholder .ph-label { font-size: var(--text-tiny); font-weight: 560; max-width: 16em; }

/* Echte Porträtfotos: identischer Rahmen für beide Team-Mitglieder */
.team-photo {
  width: 100%;
  max-width: 21rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-1);
  background: var(--bg-3);
}
.team-card .team-photo { margin-bottom: 1.4rem; }

/* Zwei versetzte Porträts im Über-uns-Teaser der Startseite */
.about-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  max-width: 27rem;
  padding-bottom: 2.4rem;
}
.about-duo figure { margin: 0; }
.about-duo figure:last-child { transform: translateY(2.2rem); }
.about-duo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-1);
  box-shadow: var(--shadow-md);
  background: var(--bg-3);
}
.about-duo figcaption {
  margin-top: 0.55rem;
  font-size: var(--text-tiny);
  font-weight: 560;
  color: var(--ink-2);
}


/* ---- 10 · Hero --------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(3rem, 2.2rem + 3.5vw, 5.5rem) 0 clamp(3rem, 2.5rem + 3vw, 5rem);
  overflow: clip;
}
/* Feines Raster + blauer Lichtschein */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(240, 242, 246, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(240, 242, 246, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 78%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -14rem;
  right: -8rem;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(closest-side, rgba(77, 154, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-1);
  background: rgba(27, 30, 37, 0.7);
  font-size: var(--text-tiny);
  font-weight: 560;
  color: var(--ink-1);
  margin-bottom: 1.6rem;
}
.hero-badge .pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(77, 154, 255, 0.4);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(77, 154, 255, 0.35); }
  70% { box-shadow: 0 0 0 9px rgba(77, 154, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 154, 255, 0); }
}

.hero h1 { margin-bottom: 1.4rem; }
.hero .lede { margin-bottom: 2.2rem; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-0);
  font-size: var(--text-small);
  color: var(--ink-2);
}
.hero-facts span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-facts svg { width: 1.05rem; height: 1.05rem; color: var(--accent); flex: none; }

/* Hero-Headline: zeilenweises Einblenden */
.reveal-lines .line {
  display: block;
  overflow: hidden;
}
.reveal-lines .line > span {
  display: block;
  transform: translateY(112%);
  animation: line-up 0.9s var(--ease-out) forwards;
}
.reveal-lines .line:nth-child(2) > span { animation-delay: 0.09s; }
.reveal-lines .line:nth-child(3) > span { animation-delay: 0.18s; }
@keyframes line-up { to { transform: translateY(0); } }

.hero-fade {
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 0.8s var(--ease-out) forwards;
}
.hero-fade-1 { animation-delay: 0.3s; }
.hero-fade-2 { animation-delay: 0.42s; }
.hero-fade-3 { animation-delay: 0.54s; }
.hero-fade-4 { animation-delay: 0.4s; }
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero-Bildkarte (neu): ruhiges Bild statt vieler Mockups */
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-1);
  box-shadow: var(--shadow-lg), 0 0 60px -20px rgba(77, 154, 255, 0.2);
}
.hero-media img { width: 100%; height: auto; display: block; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 19, 26, 0.35), transparent 45%);
  pointer-events: none;
}
.hero-media-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
}
/* Marken-Karte im Hero: helles Original-Logo ohne Abdunkelungsverlauf */
.hero-media--brand::after { content: none; }
.hero-media--brand {
  box-shadow: var(--shadow-lg), 0 0 80px -24px rgba(77, 154, 255, 0.35);
}

/* Ältere Hero-Mockup-Komposition (weiterhin unterstützt) */
.hero-visual {
  position: relative;
  min-height: 26rem;
  perspective: 1200px;
}
.hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.35s ease-out;
}
.hero-visual .mock-browser {
  position: absolute;
  top: 0;
  right: 0;
  width: min(30rem, 100%);
  box-shadow: var(--shadow-lg);
  animation: float-a 9s ease-in-out infinite;
}
.hero-visual .mock-phone {
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  width: 11.5rem;
  box-shadow: var(--shadow-lg);
  animation: float-b 9s ease-in-out infinite;
  animation-delay: 0.8s;
  z-index: 2;
}
@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-13px); }
}

.hero-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.95rem;
  background: rgba(27, 30, 37, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-1);
  border-radius: 0.9rem;
  box-shadow: var(--shadow-md);
  font-size: var(--text-tiny);
  font-weight: 580;
  color: var(--ink-0);
  animation: float-b 8s ease-in-out infinite;
}
.hero-chip .icon-tile { width: 2rem; height: 2rem; border-radius: 0.6rem; }
.hero-chip .icon-tile svg { width: 1.05rem; height: 1.05rem; }
.hero-chip small { display: block; font-weight: 480; color: var(--ink-2); }
.hero-chip-1 { top: 46%; right: -0.75rem; animation-delay: 1.6s; }
.hero-chip-2 { bottom: 8%; right: 18%; animation-delay: 2.4s; }

@media (max-width: 64rem) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 38rem; }
  .hero-visual { min-height: 0; margin-top: 2rem; padding-bottom: 2.5rem; }
  .hero-visual .mock-browser {
    position: relative;
    top: auto;
    right: auto;
    width: min(30rem, 94%);
    margin-inline: auto;
  }
  .hero-visual .mock-phone { left: 2%; bottom: -1rem; }
  .hero-chip-1 { right: 2%; top: 34%; }
  .hero-chip-2 { right: 8%; bottom: -1rem; }
}
@media (max-width: 40rem) {
  .hero-visual .mock-phone { width: 9.5rem; bottom: -0.5rem; }
  .hero-chip-2 { display: none; }
}


/* ---- 11 · Leistungs-Panels mit Bild (neu) -------------------- */

/* Trennung über Abstand zwischen den Karten statt über große Flächen */
.service-panels { display: grid; gap: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }

/* Kompakte Zweispalten-Karte: Text + Medienfläche, Höhe folgt dem Inhalt */
.service-panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-0);
  background: var(--bg-1);
  box-shadow: var(--shadow-sm);
}

/* Standard: Text links, Bild rechts — die Variante dreht die Seiten um */
.service-panel-inner { order: 1; }
.service-panel-media { order: 2; }
.service-panel--medienlinks { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.service-panel--medienlinks .service-panel-media { order: 1; }
.service-panel--medienlinks .service-panel-inner { order: 2; }

.service-panel-media {
  position: relative;
  background: var(--bg-2);
}
.service-panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
/* Gespiegelte Bildvariante, damit zwei Panels mit gleichem Motiv nicht identisch wirken */
.service-panel-img--spiegel {
  transform: scaleX(-1);
}

.service-panel-inner {
  padding: clamp(1.15rem, 1rem + 0.8vw, 1.6rem) clamp(1.25rem, 1rem + 1vw, 1.9rem);
}
.service-panel .eyebrow { margin-bottom: 0.45rem; }
.service-panel h3 {
  font-size: clamp(1.25rem, 1.12rem + 0.6vw, 1.55rem);
  margin-bottom: 0.4rem;
}
.service-panel p {
  font-size: var(--text-small);
  line-height: 1.55;
  max-width: 56ch;
}
.service-panel .list-check { margin-top: 0.7rem; gap: 0.3rem; }
.service-panel .list-check li { font-size: var(--text-small); line-height: 1.5; }
.service-panel .list-check svg { color: var(--accent-bright); }
.service-panel .btn { margin-top: 0.9rem; }

@media (max-width: 48rem) {
  .service-panel,
  .service-panel--medienlinks { grid-template-columns: 1fr; }
  /* Auf Mobilgeräten immer: Bild kompakt oben, Text darunter */
  .service-panel-media,
  .service-panel--medienlinks .service-panel-media { order: -1; height: 10.5rem; }
  .service-panel-inner,
  .service-panel--medienlinks .service-panel-inner { order: 1; padding: 1.25rem 1.25rem 1.4rem; }
}

/* Interaktiver Vorher/Nachher-Vergleich in der Medienfläche eines Service-Panels */
.vnv {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  --vnv-pos: 50%;
}
.vnv-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.vnv-img--after { z-index: 1; }
.vnv-img--before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--vnv-pos)) 0 0);
}
.vnv-label {
  position: absolute;
  top: 0.6rem;
  z-index: 3;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(20, 22, 27, 0.6);
  pointer-events: none;
}
.vnv-label--before { left: 0.6rem; }
.vnv-label--after { right: 0.6rem; }
.vnv-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--vnv-pos);
  width: 2px;
  margin-left: -1px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(20, 22, 27, 0.18);
  pointer-events: none;
}
.vnv-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #fff;
  color: #14161b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(20, 22, 27, 0.28);
}
.vnv-handle svg { display: block; }
.vnv-range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: ew-resize;
  touch-action: pan-y;
}
.vnv-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2.4rem;
  height: 40rem;
  background: transparent;
  border: 0;
  cursor: ew-resize;
}
.vnv-range::-moz-range-thumb {
  width: 2.4rem;
  height: 40rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: ew-resize;
}
.vnv-range::-moz-range-track { background: transparent; border: 0; }
.vnv-range:focus { outline: none; }
.vnv-range:focus-visible ~ .vnv-divider .vnv-handle {
  outline: 3px solid var(--accent-bright);
  outline-offset: 2px;
}
/* Ohne JavaScript: sauberer Fallback — nur das Nachher-Bild, ohne Bedienelemente */
.no-js .vnv-img--before { clip-path: inset(0 100% 0 0); }
.no-js .vnv-divider,
.no-js .vnv-range,
.no-js .vnv-label { display: none; }

/* Video in der Medienfläche eines Service-Panels (Klick = Play/Pause) + 5N-Badge */
video.service-panel-img { cursor: pointer; }
.media-badge {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(20, 22, 27, 0.6);
  pointer-events: none;
}
.media-badge img { display: block; height: 1.1rem; width: auto; }

/* Kompakte Zeile für ergänzende Leistungen */
.service-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.4rem;
  background: var(--bg-1);
  border: 1px solid var(--line-0);
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  color: var(--ink-2);
}
.service-more strong { color: var(--ink-0); font-weight: 600; }

/* Bild-Banner für Leistungs- und Projektseiten */
.media-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-0);
  aspect-ratio: 21 / 9;
  background: var(--bg-1);
}
.media-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.media-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 16, 22, 0.55), transparent 55%);
}
.media-banner .chip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
}
@media (max-width: 40rem) {
  .media-banner { aspect-ratio: 16 / 10; }
}


/* ---- 12 · Sektionen der Startseite -------------------------- */

/* Probleme (kompakt: Problem + Lösung in einer Karte) */
.problem-card { position: relative; }
.problem-card .icon-tile { margin-bottom: 1.2rem; }
.problem-card h3 { margin-bottom: 0.6rem; font-size: 1.17rem; }
.problem-card p { font-size: var(--text-small); color: var(--t-ink-muted); }

.ps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.ps-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
  background: var(--t-bg-card);
  border: 1px solid var(--t-line);
  border-radius: var(--radius-md);
}
.ps-card .ps-head { display: flex; align-items: center; gap: 0.85rem; }
.ps-card .icon-tile { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; }
.ps-card .icon-tile svg { width: 1.2rem; height: 1.2rem; }
.ps-card h3 { font-size: 1.1rem; }
.ps-card .ps-problem { font-size: var(--text-small); color: var(--t-ink-muted); }
.ps-card .ps-solution {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line-1);
  font-size: var(--text-small);
  color: var(--t-ink-body);
}
.ps-card .ps-solution strong {
  color: var(--accent-strong);
  font-weight: 620;
}
@media (max-width: 48rem) { .ps-grid { grid-template-columns: 1fr; } }

/* Leistungen-Raster (Unterseiten / ältere Ansicht) */
.service-card { display: flex; flex-direction: column; gap: 0; }
.service-card .icon-tile { margin-bottom: 1.25rem; }
.service-card h3 { margin-bottom: 0.6rem; font-size: 1.2rem; }
.service-card p { font-size: var(--text-small); color: var(--t-ink-muted); flex: 1; }
.service-card .link-arrow { margin-top: 1.4rem; font-size: var(--text-small); }

.service-card.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}
.service-card.wide .icon-tile { margin-bottom: 0; }
.service-card.wide .service-wide-text { flex: 1; }
.service-card.wide .service-wide-text p { margin-top: 0.35rem; max-width: 56ch; }
.service-card.wide .link-arrow { margin-top: 0; white-space: nowrap; }
@media (max-width: 40rem) {
  .service-card.wide { flex-direction: column; align-items: flex-start; gap: 0; }
  .service-card.wide .icon-tile { margin-bottom: 1.25rem; }
  .service-card.wide .link-arrow { margin-top: 1.4rem; }
}

/* Dunkelblaue Feature-Sektion */
.dark-section {
  position: relative;
  border-radius: clamp(1.25rem, 2vw, 2rem);
  margin-inline: auto;
  width: min(100% - 2 * var(--gutter), var(--container-wide));
  overflow: hidden;
  border: 1px solid var(--dark-line);
}
.dark-section::before {
  content: "";
  position: absolute;
  top: -16rem;
  left: 50%;
  transform: translateX(-50%);
  width: 70rem;
  height: 34rem;
  background: radial-gradient(closest-side, rgba(77, 154, 255, 0.12), transparent 72%);
  pointer-events: none;
}
.dark-section-inner {
  position: relative;
  padding: clamp(3rem, 2.5rem + 3vw, 5.5rem) clamp(1.5rem, 4vw, 5rem);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 2rem + 2vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}
.feature-row + .feature-row { border-top: 1px solid var(--dark-line); }
.feature-row h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 1rem; }
.feature-row p { color: var(--dark-ink-1); }
.feature-row .list-check { margin-top: 1.4rem; }
.feature-row .list-check li { color: var(--dark-ink-1); font-size: var(--text-small); }
@media (max-width: 56rem) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .feature-visual { order: -1; }
}

/* Vorher/Nachher-Vergleich */
.ba-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.ba-col { display: grid; gap: 0.6rem; }
.ba-label {
  font-size: var(--text-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-ink-2);
  text-align: center;
}
.ba-col.after .ba-label { color: var(--accent-on-dark); }
@media (max-width: 26rem) { .ba-compare { grid-template-columns: 1fr; } }

/* Grundsätze */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.principle {
  border: 1px solid var(--t-line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(77, 154, 255, 0.05), transparent 60%);
}
.principle strong {
  display: block;
  color: var(--t-ink);
  font-size: 1.15rem;
  font-weight: 620;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
}
.principle span { font-size: var(--text-small); color: var(--t-ink-body); }
@media (max-width: 56rem) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .principles { grid-template-columns: 1fr; } }

/* Projekt-Karten */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--t-bg-card);
  border: 1px solid var(--t-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(77, 154, 255, 0.35);
}
.project-media {
  position: relative;
  background: var(--bg-3);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem) clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem) 0;
  overflow: hidden;
  min-height: 15rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 1px solid var(--line-0);
}
.project-media .mock-browser,
.project-media .mock-app {
  width: 100%;
  max-width: 26rem;
  border-radius: 0.75rem 0.75rem 0 0;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s var(--ease-out);
  margin-bottom: -1px;
}
.project-card:hover .project-media .mock-browser,
.project-card:hover .project-media .mock-app { transform: translateY(-7px); }
.project-media .chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}
/* Projektkarte mit echtem Screenshot statt Mockup */
.project-media.media-photo { padding: 0; min-height: 0; aspect-ratio: 16 / 10; }
.project-media.media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}
.project-card:hover .project-media.media-photo img { transform: scale(1.03); }
.project-body { padding: 1.5rem clamp(1.25rem, 1rem + 1vw, 1.75rem) 1.75rem; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.project-body p { font-size: var(--text-small); color: var(--t-ink-muted); flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.1rem; }
.project-tags .chip { font-size: 0.75rem; padding: 0.2rem 0.6rem; }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2vw, 2rem); }
@media (max-width: 56rem) { .projects-grid { grid-template-columns: 1fr; } }

/* Arbeitsprozess: klassische Schritt-Karten (Unterseiten) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.process-step {
  position: relative;
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--t-bg-card);
  border: 1px solid var(--t-line);
  border-radius: var(--radius-md);
}
.process-num {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(77, 154, 255, 0.35);
  background: var(--accent-soft);
  font-weight: 640;
  font-size: 0.95rem;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.process-step p { font-size: var(--text-small); color: var(--t-ink-muted); }
@media (max-width: 56rem) { .process-grid { grid-template-columns: 1fr; } }

/* Arbeitsprozess kompakt: 4 Hauptphasen (Startseite, neu) */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.phase-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
  background: var(--t-bg-card);
  border: 1px solid var(--t-line);
  border-radius: var(--radius-md);
}
.phase-num {
  font-size: 2.1rem;
  font-weight: 660;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 0.9rem;
}
.phase-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.phase-card > p { font-size: var(--text-small); color: var(--t-ink-muted); margin-bottom: 0.9rem; }
.phase-steps {
  list-style: none;
  margin: auto 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line-0);
  display: grid;
  gap: 0.45rem;
  font-size: var(--text-tiny);
  color: var(--ink-2);
}
.phase-steps li { display: flex; gap: 0.5rem; align-items: baseline; }
.phase-steps li::before {
  content: "";
  flex: none;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-0.1rem);
}
@media (max-width: 64rem) { .phase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .phase-grid { grid-template-columns: 1fr; } }

/* Über-mich-Teaser */
.about-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 2rem + 2vw, 4.5rem);
  align-items: center;
}
.about-photo { aspect-ratio: 4 / 5; max-width: 24rem; }
.about-quote {
  margin: 1.75rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink-0);
}
@media (max-width: 56rem) {
  .about-teaser { grid-template-columns: 1fr; }
  .about-photo { max-width: 20rem; }
}

/* Website-Check-Band */
.check-band {
  position: relative;
  overflow: hidden;
}
.check-band .dark-section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: center;
}
@media (max-width: 56rem) {
  .check-band .dark-section-inner { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; max-width: 50rem; margin-inline: auto; }
.faq-item {
  background: var(--t-bg-card);
  border: 1px solid var(--t-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] { border-color: rgba(77, 154, 255, 0.35); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 590;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--t-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-bright); }
.faq-icon {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-1);
  color: var(--ink-1);
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease, color 0.25s ease;
}
.faq-icon svg { width: 0.95rem; height: 0.95rem; }
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.faq-body {
  padding: 0 1.5rem 1.4rem;
  color: var(--t-ink-muted);
  font-size: var(--text-small);
  line-height: 1.7;
  max-width: 60ch;
}

/* Kontakt-Sektion */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact-card { display: flex; align-items: flex-start; gap: 1rem; }
.contact-card .meta { font-size: var(--text-tiny); color: var(--t-ink-muted); display: block; margin-top: 0.15rem; }
.contact-card strong { font-size: 1rem; font-weight: 600; color: var(--t-ink); letter-spacing: -0.01em; }
@media (max-width: 56rem) { .contact-cards { grid-template-columns: 1fr; } }

/* Kompakte Kontaktzeile (Abschluss-CTA) */
.contact-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin-top: 1.6rem;
  font-size: var(--text-small);
  color: var(--t-ink-muted);
}
.contact-inline span { display: inline-flex; align-items: center; gap: 0.5rem; }
.contact-inline svg { width: 1.05rem; height: 1.05rem; color: var(--t-accent-text); flex: none; }

/* CTA-Schlussband */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 20em; margin-inline: auto; }
.final-cta .lede { margin: 1.25rem auto 2.25rem; }
.final-cta .btn-group { justify-content: center; }


/* Leistungs-Detailblöcke (leistungen.html) */
.service-block {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.75rem);
  border-top: 1px solid var(--line-0);
}
.service-block .icon-tile { margin-bottom: 1.4rem; }
.service-block h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-bottom: 1rem; }
.service-block .prose { max-width: 56ch; }
.service-block .btn-group { margin-top: 1.8rem; }
.service-block .media-banner { grid-column: 1 / -1; margin-bottom: 0.5rem; aspect-ratio: 24 / 7; }
.service-aside { display: grid; gap: 1.25rem; }
.service-aside .card h3 {
  font-size: var(--text-tiny);
  font-weight: 620;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  margin-bottom: 1rem;
}
@media (max-width: 56rem) {
  .service-block { grid-template-columns: 1fr; }
  .service-block .media-banner { aspect-ratio: 16 / 8; }
}


/* ---- 13 · Formulare ----------------------------------------- */

/* Zweispaltiges Layout: Infos links, Formular rechts */
.split-form {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 56rem) {
  .split-form { grid-template-columns: 1fr; }
}

.form-card {
  background: var(--bg-1);
  border: 1px solid var(--line-0);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1.4rem + 2vw, 3rem);
  box-shadow: var(--shadow-sm);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-grid .form-field.full { grid-column: 1 / -1; }
@media (max-width: 40rem) { .form-grid { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field label {
  font-size: var(--text-small);
  font-weight: 580;
  color: var(--ink-0);
  letter-spacing: -0.005em;
}
.form-field .optional { color: var(--ink-2); font-weight: 460; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-1);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  color: var(--ink-0);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 8.5rem; }
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23b9bfca' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #6a7180; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-1);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--error); }
.field-error {
  display: none;
  font-size: var(--text-tiny);
  color: var(--error);
  font-weight: 540;
}
.form-field.has-error .field-error { display: block; }

/* Checkbox (Datenschutz) */
.form-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--text-small);
  color: var(--ink-1);
}
.form-consent input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  flex: none;
  accent-color: var(--accent);
}
.form-consent.has-error label { color: var(--error); }

/* Honeypot gegen Spam — für Menschen unsichtbar */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-small);
  line-height: 1.55;
}
.form-status.visible { display: flex; }
.form-status.success { background: var(--success-soft); color: var(--success); border: 1px solid rgba(85, 201, 141, 0.35); }
.form-status.error { background: var(--error-soft); color: var(--error); border: 1px solid rgba(255, 122, 110, 0.35); }
.form-status svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: 0.15rem; }

.form-footnote { font-size: var(--text-tiny); color: var(--ink-2); }


/* ---- 14 · Projekt- & Fallstudien-Seiten ---------------------- */

.page-hero {
  position: relative;
  padding: clamp(3rem, 2.5rem + 3vw, 5.5rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem);
  overflow: clip;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(240, 242, 246, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(240, 242, 246, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 20%, transparent 75%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 17em; margin-bottom: 1.25rem; }
.page-hero .lede { max-width: 36em; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  font-size: var(--text-tiny);
  color: var(--ink-2);
}
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-bright); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line-1); }

/* Fallstudie: Meta-Leiste */
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-0);
  border-bottom: 1px solid var(--line-0);
  margin-top: 2.5rem;
}
.case-meta dt {
  font-size: var(--text-tiny);
  font-weight: 620;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  margin-bottom: 0.3rem;
}
.case-meta dd { margin: 0; font-size: var(--text-small); color: var(--ink-0); font-weight: 540; }
@media (max-width: 56rem) { .case-meta { grid-template-columns: repeat(2, 1fr); } }

/* Große Projektbild-/Mockup-Bühne */
.case-stage {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-0);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.case-stage.stage-dark { background: var(--dark-1); border-color: var(--dark-2); }
.case-stage .mock-browser { width: min(52rem, 100%); box-shadow: var(--shadow-lg); }

/* Fallstudien-Abschnitte */
.case-section { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 2rem; padding: 2.5rem 0; border-top: 1px solid var(--line-0); }
.case-section:first-of-type { border-top: 0; }
.case-section > h2 { font-size: 1.35rem; letter-spacing: -0.015em; }
.case-section .prose { max-width: 60ch; }
.case-section .prose p + p { margin-top: 1em; }
.case-section .prose ul { padding-left: 1.2rem; }
.case-section .prose li + li { margin-top: 0.4em; }
@media (max-width: 56rem) {
  .case-section { grid-template-columns: 1fr; gap: 0.75rem; padding: 2rem 0; }
}

/* Pagination zwischen Projekten */
.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-0);
}
.case-nav a { max-width: 48%; }

/* Prose-Bereiche (Rechtstexte, Über mich) */
.prose h2 { margin: 2.2em 0 0.6em; font-size: 1.5rem; }
.prose h3 { margin: 1.8em 0 0.5em; font-size: 1.15rem; }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 1em 0; }
.prose li + li { margin-top: 0.4em; }

/* Platzhalter-Markierung in Rechtstexten */
.ph {
  background: var(--note-soft);
  border: 1px dashed var(--note-line);
  border-radius: 0.35rem;
  padding: 0.05rem 0.45rem;
  color: var(--note);
  font-weight: 560;
  font-size: 0.95em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.legal-warning {
  display: flex;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  background: var(--note-soft);
  border: 1px solid var(--note-line);
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  color: var(--note);
  margin: 2rem 0;
}
.legal-warning svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: 0.15rem; }


/* ---- 15 · Inhaltsseiten (404) -------------------------------- */

.error-page {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--space-section);
}
.error-code {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  color: var(--accent);
}


/* ---- 16 · Scroll-Animationen --------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: ohne JavaScript ist alles sichtbar */
.no-js [data-reveal] { opacity: 1; transform: none; }


/* ---- 17 · Utilities & Reduced Motion -------------------------- */

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-lines .line > span { transform: none; animation: none; }
  .hero-fade { opacity: 1; transform: none; animation: none; }
  .hero-stage { transform: none !important; }
}


/* ---- 18 · Neupositionierung: Vision, Systemablauf, Anspruch --- */

/* Hero-Überschrift: etwas kompakter, damit die drei Zeilen
   („Digitale Systeme, / die einfach / funktionieren.") auf
   Desktop-Breite ohne internen Umbruch stehen */
.hero h1.display {
  font-size: clamp(2.4rem, 1.1rem + 4.3vw, 4rem);
}

/* Vision: ruhige, zentrierte Textsektion — Typografie statt Karten */
.vision-section { text-align: center; }
.vision-section .eyebrow { justify-content: center; }
.vision-section h2 {
  max-width: 17em;
  margin-inline: auto;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
}
.vision-text {
  margin-top: 1.6rem;
  display: grid;
  gap: 1.15rem;
  font-size: var(--text-lede);
  line-height: 1.62;
  color: var(--t-ink-body);
}
.vision-text p { margin-inline: auto; max-width: 34em; }
.vision-closer {
  margin-top: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--t-ink);
}

/* Verbund-Hinweis unter den Leistungs-Panels */
.system-note {
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem) clamp(1.4rem, 1.1rem + 1.5vw, 2.25rem);
  border: 1px solid rgba(77, 154, 255, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 180% at 50% -40%, rgba(77, 154, 255, 0.13), transparent 60%)
    , var(--bg-1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.system-note p { max-width: 44em; color: var(--t-ink-body); }
.system-note strong { color: var(--t-ink); font-weight: 620; }
.system-note .link-arrow { white-space: nowrap; }

/* Systemablauf: verbundene Schritte als ruhige Linie (mobil identisch) */
.sysflow {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 44rem;
}
.sysflow li {
  position: relative;
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  column-gap: 1.15rem;
  padding-bottom: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
}
.sysflow li:last-child { padding-bottom: 0; }
.sysflow li::before {
  content: "";
  position: absolute;
  left: calc(1.35rem - 1px);
  top: 3rem;
  bottom: 0.35rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(77, 154, 255, 0.45), rgba(77, 154, 255, 0.12));
}
.sysflow li:last-child::before { content: none; }
.sysflow-num {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(77, 154, 255, 0.35);
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-weight: 640;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}
.sysflow h3 { font-size: 1.08rem; margin: 0.3rem 0 0.3rem; }
.sysflow li > div > p {
  font-size: var(--text-small);
  color: var(--t-ink-muted);
  max-width: 52ch;
}
.sysflow-result {
  max-width: 44rem;
  margin: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem) auto 0;
  padding: 1.15rem 1.4rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid rgba(77, 154, 255, 0.22);
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  color: var(--t-ink-body);
}
.sysflow-result svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.15rem; color: var(--accent-bright); }
.sysflow-result strong { color: var(--t-ink); font-weight: 620; }

/* Anspruch: Schlusssatz unter den sechs Punkten */
.claim-closer {
  margin: clamp(2rem, 1.5rem + 2vw, 3rem) auto 0;
  max-width: 26em;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.8rem);
  line-height: 1.4;
  color: var(--t-ink);
}
