/* Mühlböck Webdesign — One-Pager
   Underwater / kinematisch / Michroma */

/* Schriften (bis v71 in assets/fonts/fonts.css) — lokal gehostet — keine Verbindung zu Google.
   Subsets: latin + latin-ext (für Deutsch inkl. Umlaute ausreichend). */

/* ---- Michroma 400 ---- */
@font-face {
  font-family: 'Michroma';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/michroma-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: 'Michroma';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/michroma-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;
}

/* ---- Inter 300 / 400 / 500 (gleiche Datei je Subset) ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-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;
}

/* ---- JetBrains Mono 400 ---- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-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;
}

/* ---- Cormorant Garamond 400 normal + italic ---- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-italic-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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-italic-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;
}

:root {
  --bg-deep: #050a0e;
  --bg-1: #0a1419;
  --bg-2: #0f2230;
  --bg-3: #163a4f;
  --ink-0: #f4f8fb;
  --ink-1: #c9d6dd;
  --ink-2: #8499a3;
  --ink-3: #4a606b;
  --line: rgba(180, 210, 225, 0.12);
  --line-strong: rgba(180, 210, 225, 0.28);
  /* Akzent-Rampe — eine Familie, drei Helligkeiten (Hue ~206°).
     --accent ist die Hauptfarbe und sitzt bewusst mittig: gut für Linien,
     Ränder und Flächen, aber zu mittig für kleine Schrift. Dafür gibt es
     --accent-text (siehe Block am Dateiende). */
  --accent: #407aa6;          /* Hauptfarbe */
  --accent-deep: #2c5a7d;     /* dunkles Ende der Rampe, für Verläufe */
  --accent-light: #7fb3d9;    /* helles Ende der Rampe, für Verläufe */
  --accent-text: #5d95c0;     /* kleine Labels — contrastsicher auf dunklem Grund */
  --accent-glow: rgba(64, 122, 166, 0.35);
  --maxw: 1240px;
  --gap: clamp(20px, 3vw, 40px);

  /* CinemaScroll — Tuning (siehe Block am Dateiende) */
  --cinema-zoom: 0.14;     /* Dolly-In: Ziel-Scale = 1 + Wert */
  --cinema-dim: 0.75;      /* Abdunkelung am Ende (0–1) */
  --cinema-lift: 10vh;     /* wie weit der Titel zusätzlich aufsteigt */
  --cinema-length: 0.9;    /* Scrollstrecke des Effekts in Hero-Höhen */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-1);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.michroma {
  font-family: 'Michroma', 'Michroma Fallback', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Selection */
::selection {
  background: var(--accent-deep);
  color: var(--ink-0);
}

/* Scrollbar — passend zur Underwater-Aesthetik */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-deep) var(--bg-deep);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-deep) 0%, #1a4858 100%);
  border: 2px solid var(--bg-deep);
  border-radius: 0;
  transition: background 220ms ease;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
}
::-webkit-scrollbar-corner {
  background: var(--bg-deep);
}

/* ---------- Container ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ---------- Top Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  /* Höhe bleibt beim Scrollen gleich — sonst wandert das Logo mit. */
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  transition: background 560ms ease, backdrop-filter 560ms ease, border-color 560ms ease;
}
.nav.scrolled {
  background: rgba(5, 10, 14, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink-0);
}
.nav-brand img {
  width: 38px;
  height: 38px;
  display: block;
}
.nav-brand-text {
  font-family: 'Michroma', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1.2;
  color: var(--ink-0);
}
.nav-brand-text small {
  display: block;
  color: var(--ink-2);
  font-size: 9px;
  letter-spacing: 0.18em;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-link {
  font-family: 'Michroma', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-1);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 440ms ease;
}
.nav-link:hover { color: var(--ink-0); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 560ms ease;
}
.nav-link:hover::after { width: 100%; }

.nav-cta {
  font-family: 'Michroma', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-0);
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 220ms ease, background 220ms ease;
}
.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(64, 122, 166, 0.08);
}

/* ---------- Mobile-Nav: Burger + Klapp-Panel ---------- */
.nav-burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  position: relative;
}
/* Burger wie auf more10.one: drei feine 1px-Linien, die bei Hover und bei
   offenem Menü zum X werden. Linien absolut im 8px-Raster (12/20/28) — das
   bleibt auch bei 125 % und 150 % Bildschirmskalierung ganzzahlig, sonst
   rendert der Browser die Linien unterschiedlich dick. */
.nav-burger span {
  position: absolute;
  left: 7px;
  width: 26px;
  height: 1px;
  background: var(--ink-0);
  transition: transform 400ms ease, opacity 400ms ease;
}
.nav-burger span:nth-child(1) { top: 12px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger span:nth-child(3) { top: 28px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* Hover nur mit echter Maus — auf Touch bliebe das X nach dem Tippen hängen */
@media (hover: hover) {
  .nav-burger:hover span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-burger:hover span:nth-child(2) { opacity: 0; }
  .nav-burger:hover span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Resize-Guard: Übergänge stilllegen, während die Breite springt — sonst
   blitzt das Mobil-Panel beim Überschreiten der Breakpoint-Breite auf. */
.nav.nav-resizing .nav-links,
.nav.nav-resizing .nav-links .nav-link,
.nav.nav-resizing .nav-burger span { transition: none !important; }

/* 960 statt 820: ab ~900px reicht die Breite nicht mehr für alle Menüpunkte */
@media (max-width: 960px) {
  .nav-burger { display: block; }
  .nav-row { justify-content: flex-start; gap: 12px; }
  .nav-brand { margin-right: auto; }

  .nav.menu-open {
    background: rgba(5, 10, 14, 0.96);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gap) 20px;
    background: rgba(5, 10, 14, 0.96);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 440ms ease, transform 440ms ease, visibility 0s linear 440ms;
  }
  .nav.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 440ms ease, transform 440ms ease, visibility 0s;
  }
  .nav-links .nav-link {
    padding: 16px 0;
    font-size: 11px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-1);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video,
.hero-media img.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, #0d2a3a 0%, var(--bg-1) 55%, var(--bg-deep) 100%);
}
.hero-media video {
  z-index: 2;
  opacity: 0;
  transition: opacity 1200ms ease;
}
.hero-media video.ready {
  opacity: 1;
}

/* depth gradient over the image */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(5,10,14,0.55) 0%, rgba(5,10,14,0.15) 30%, rgba(5,10,14,0.55) 75%, rgba(5,10,14,0.95) 100%),
    radial-gradient(120% 80% at 30% 40%, rgba(5, 30, 45, 0) 0%, rgba(5, 10, 14, 0.35) 70%);
  pointer-events: none;
}

/* caustics shimmer */
.hero-caustics {
  position: absolute;
  inset: -10%;
  z-index: 4;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 600px 200px at 20% 10%, rgba(110, 200, 220, 0.10), transparent 60%),
    radial-gradient(ellipse 500px 180px at 80% 20%, rgba(110, 200, 220, 0.07), transparent 60%),
    radial-gradient(ellipse 700px 240px at 50% -10%, rgba(180, 220, 235, 0.08), transparent 60%);
  filter: blur(2px);
  animation: drift 22s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  50%  { transform: translate3d(2%, 1%, 0) scale(1.05); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1488px;          /* +20% gegenüber globalem --maxw (1240px) */
  padding: 140px var(--gap) 100px;  /* horizontaler Abstand wie .wrap */
}
.hero-eyebrow {
  font-family: 'Michroma', sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 7.5vw, 104px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ink-0);
  margin: 0 0 32px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.hero-title .accent {
  color: var(--accent);
}
.hero-title .line-2 {
  /* zweite Zeile etwas kleiner — Farbe wie Zeile 1, nicht im Akzent-Blau */
  font-size: 0.72em;
  display: inline-block;
  letter-spacing: 0.015em;
}

.hero-sub {
  max-width: 650px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--ink-1);
  margin: 0 0 48px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Michroma', sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 1000ms ease, border-color 1000ms ease, color 1000ms ease;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
}
/* Primär-Button: leichter Verlauf im dunkleren Blau (dunkles Ende der Rampe,
   nach rechts unten noch eine Spur tiefer). Schrift hell. */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-deep) 0%, #1f4462 100%);
  color: var(--ink-0);
  border-color: var(--accent);
  position: relative;
  isolation: isolate;
}
/* Verläufe lassen sich nicht überblenden — daher eine helle Ebene,
   die per opacity einblendet, statt background direkt zu tauschen. */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink-0);
  opacity: 0;
  transition: opacity 1000ms ease;
  z-index: -1;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  color: var(--bg-deep);
  border-color: var(--ink-0);
}
.btn-ghost {
  color: var(--ink-0);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* Pfeil: gefülltes Dreieck als CSS-Maske. Durch die Fläche läuft ein
   heller Lichtstreifen wie bei einer Laufschrift (Verlauf, 3× so breit
   wie das Element, per background-position verschoben).
   Farbe kommt über currentColor vom Button/Link. */
.arr {
  --arr-dim: color-mix(in srgb, currentColor 40%, transparent);
  display: inline-block;
  width: 12px;
  height: 17px;
  flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 20'%3E%3Cpath d='M0 0L14 10L0 20Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 20'%3E%3Cpath d='M0 0L14 10L0 20Z'/%3E%3C/svg%3E") center / contain no-repeat;
  background: linear-gradient(90deg, var(--arr-dim) 42%, currentColor 50%, var(--arr-dim) 58%) 100% 0 / 300% 100%;
  animation: arr-run 3.6s linear infinite;
  transition: transform 1000ms ease;
}
@keyframes arr-run {
  from { background-position: 100% 0; }   /* Streifen läuft links → rechts */
  to   { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .arr { animation: none; background: currentColor; }
}
.btn:hover .arr { transform: translateX(4px); }

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-family: 'Michroma', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-cue .line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  background-size: 100% 200%;
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { background-position: 0 -100%; }
  50%      { background-position: 0 100%; }
}

/* ---------- Section base ---------- */
.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.section-eyebrow {
  font-family: 'Michroma', sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  /* Läuft von der Hauptfarbe ins helle Ende aus — der Strich wirkt dadurch
     gerichtet statt gezeichnet. */
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
}
.section-title {
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.15;
  color: var(--ink-0);
  margin: 0 0 32px;
  letter-spacing: 0.01em;
  max-width: 16ch;
}
.section-lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--ink-1);
  max-width: 60ch;
  margin: 0 0 40px;
}

/* ---------- About ---------- */
.about {
  background:
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-1) 100%);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* Bild rechts in voller Sektionshöhe: 2rem Abstand oben/unten/rechts,
   der Text läuft links in eigener Spalte daneben. So bleibt die komplette
   Hochformat-Komposition (Strand unten, Meer oben) sichtbar. */
.about .wrap {
  position: relative;
  z-index: 2;
}
.about-content {
  max-width: calc(50% - 40px);
  margin-left: auto;   /* Text rechts, Bild links */
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  /* Schmale Viewports: Bild unter den Text, feste Höhe statt absolut.
     .about-Prefix erhöht die Spezifität — die absolute .about-img-Regel
     steht im Quelltext später und würde sonst gewinnen. */
  .about .about-img {
    position: static;
    width: auto;
    height: 56vh;
    margin: 40px var(--gap) 0;
  }
  .about .about-content { max-width: none; }
}
.about-img {
  position: absolute;
  top: 4rem;            /* 2rem mehr als unten — Wunsch: oben extra Luft */
  bottom: 2rem;
  left: 2rem;
  width: min(44vw, 700px);
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-2);
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.85);
  transform: scale(1.08);          /* Spielraum für die Scroll-Parallaxe */
  transform-origin: 50% 50%;
  will-change: transform;
}
.about-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,10,14,0.7) 100%);
  pointer-events: none;
}
.about-meta {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  font-family: 'Michroma', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-0);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.about-meta span { color: var(--ink-2); }

.about-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 48px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: 'Michroma', sans-serif;
  font-size: 28px;
  color: var(--ink-0);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}
.stat-label {
  font-family: 'Michroma', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- Services ---------- */
.services {
  /* oben aus --bg-deep kommend — Auslauf nach dem Partner-Band, fertig bevor
     der Inhalt beginnt (Länge = oberes Padding der .section). */
  background: linear-gradient(180deg, var(--bg-deep) 0, var(--bg-1) clamp(80px, 12vw, 160px));
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  transform: translateX(-50%);
}
.services-head {
  display: grid;
  /* Titel-Spalte breiter als Text-Spalte: „Eine Handschrift." braucht bei
     max. Schriftgröße (52px Michroma) ~640px, sonst bricht sie >1279px um. */
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.services-head .section-title { max-width: none; }
@media (max-width: 820px) {
  .services-head { grid-template-columns: 1fr; gap: 24px; }
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Linien als Rahmen der Karten statt gap + grauer Raster-Hintergrund —
     der schien vor dem Einblenden der Karten grau durch. Raster: oben/links
     am Container, rechts/unten an jeder Karte. */
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.services-grid .svc {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}
.svc {
  background: var(--bg-1);
  padding: 44px 36px 40px;
  position: relative;
  isolation: isolate;
  transition: background 320ms ease;
  cursor: default;
}
/* Hover: Verlauf als eigene Ebene, die per opacity einblendet. Vorher wurde
   background direkt auf einen fast transparenten Verlauf getauscht — das
   sprang hart um, und durch die Transparenz schien die Rasterlinie durch. */
.svc::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(64,122,166,0.14) 0%, rgba(64,122,166,0.04) 55%, rgba(64,122,166,0) 100%);
  opacity: 0;
  transition: opacity 2800ms ease;      /* Verlassen: 4× */
  pointer-events: none;
}
.svc:hover::before { opacity: 1; transition-duration: 1400ms; }   /* Hover: 2× */
.svc-num {
  font-family: 'Michroma', sans-serif;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.22em;
  margin-bottom: 28px;
}
.svc-title {
  font-family: 'Michroma', sans-serif;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink-0);
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.svc-body {
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.svc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.svc-list li {
  font-family: 'Michroma', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.svc-list li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Process ---------- */
.process {
  background:
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-deep) 100%);
}
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Trennlinien als Rahmen der Punkte statt als durchscheinender Listen-
     Hintergrund — der war grau sichtbar, solange die Punkte noch unsichtbar sind. */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proc-item + .proc-item {
  border-top: 1px solid var(--line);
}
.proc-item {
  background: var(--bg-deep);
  padding: 36px 40px 36px 20px;   /* Luft links vor der Nummer, rechts nach dem Text */
  display: grid;
  grid-template-columns: 120px 1fr 2fr;
  gap: 40px;
  align-items: start;             /* Text beginnt oben, nicht auf der Grundlinie der großen Zahl */
  transition: background 1280ms ease;   /* Verlassen: 4× */
}
.proc-item:hover {
  background: rgba(64, 122, 166, 0.04);
  transition-duration: 640ms;           /* Hover: 2× */
}
@media (max-width: 760px) {
  .proc-item { grid-template-columns: 90px 1fr; }
  .proc-body { grid-column: 1 / -1; padding-left: 90px; }
  .proc-item .proc-num { font-size: 33px; }   /* höhere Spezifität: Basisregel steht weiter unten */
}
.proc-num {
  font-family: 'Michroma', sans-serif;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.06em;
  opacity: 0.7;
}
.proc-title {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--ink-0);
  letter-spacing: 0.01em;
}
.proc-body {
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- Quote / divider ---------- */
.divider-quote {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg-deep);
  text-align: center;
  overflow: hidden;
}
.divider-quote::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(64,122,166,0.08), transparent 70%);
  pointer-events: none;
}
.divider-quote blockquote {
  position: relative;
  margin: 0 auto;
  max-width: 24ch;
  font-family: 'Michroma', sans-serif;
  font-size: clamp(20px, 2.6vw, 36px);
  line-height: 1.4;
  color: var(--ink-0);
  letter-spacing: 0.01em;
}
.divider-quote cite {
  display: block;
  margin-top: 28px;
  font-family: 'Michroma', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  font-style: normal;
}

/* ---------- Contact ---------- */
.contact {
  /* Gleiche Farbe wie der Footer — durchgehend, ohne Verlauf. */
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
  isolation: isolate;   /* hält z-index:-1 von .contact-bg innerhalb der Sektion */
}
.contact-bg {
  position: absolute;
  inset: 100px 0 -100px 0;   /* Motiv 100 px tiefer; unten schneidet die Sektion ab */
  /* hinter den Inhalt — so braucht .contact-grid keine eigene Ebene
     (position + z-index), die sich als Rechteck abgezeichnet hat */
  z-index: -1;
  opacity: 0.64;
  /* Nur was heller als der Grund ist, kommt durch — der dunkle Bildhintergrund
     verschwindet, dadurch keine sichtbare Bildkante und keine Stufen. */
  mix-blend-mode: lighten;
  background-image: url('assets/jellyfish_1600px.webp');
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1.2);
  /* Motiv oben und unten weich ausblenden statt hart abschneiden. Die Ebene
     ragt 100 px unter die Sektion — darum ist sie bei 100% - 100px (= Unterkante
     der Sektion) bereits ganz transparent. */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20%, #000 calc(100% - 400px), transparent calc(100% - 100px));
          mask-image: linear-gradient(180deg, transparent 0, #000 20%, #000 calc(100% - 400px), transparent calc(100% - 100px));
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.info-row {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.info-row:last-child { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.info-label {
  font-family: 'Michroma', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.info-value {
  font-family: 'Michroma', sans-serif;
  font-size: 13px;
  color: var(--ink-0);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.info-value:hover { color: var(--accent); }
/* Öffnungszeiten: gleiche Größe wie die anderen Werte, Ziffern etwas gesperrt. */
.info-hours {
  letter-spacing: 0.1em;
  line-height: 1.6;
  /* Tag | Zeiten als zwei Spalten, damit die Zeiten bündig untereinander stehen */
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
}
.info-hours .sep { margin: 0 0.8em; }
/* schmal: Tag über den Zeiten, sonst bricht die Zeile um */
@media (max-width: 560px) {
  .info-hours { grid-template-columns: 1fr; }
}

/* form */
.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  /* dezente Fläche, damit die Felder vor der Qualle lesbar bleiben */
  background: rgba(5, 10, 14, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
@media (max-width: 560px) { .form { padding: 28px 20px; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label {
  font-family: 'Michroma', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-0);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 8px 0 12px;
  outline: none;
  transition: border-color 220ms ease;
  font-weight: 300;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }
.field input:focus,
.field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 100px; }
.field-error {
  font-family: 'Michroma', sans-serif;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e07b7b;
  margin-top: 4px;
  min-height: 12px;
}
.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-note {
  font-size: 12px;
  color: var(--ink-2);
  max-width: 32ch;
  line-height: 1.5;
}
/* Rechtliche Links unter dem Formular */
.form-legal {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-family: 'Michroma', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.form-legal a { color: var(--ink-2); text-decoration: none; }
.form-legal a:hover { color: var(--accent-text); }
.form-success {
  border: 1px solid var(--accent);
  background: rgba(64,122,166,0.06);
  padding: 28px;
  text-align: center;
  font-family: 'Michroma', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-0);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
/* Grid statt space-between: so steht die Link-Gruppe exakt mittig,
   egal wie breit © links und "Nach oben" rechts sind. */
.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-family: 'Michroma', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 24px; justify-content: center; }
.footer-top { justify-self: end; }
.footer-top { display: inline-flex; align-items: center; gap: 12px; }
.arr-up {
  width: 17px;
  height: 12px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M0 14L10 0L20 14Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M0 14L10 0L20 14Z'/%3E%3C/svg%3E");
  background: linear-gradient(0deg, var(--arr-dim) 42%, currentColor 50%, var(--arr-dim) 58%) 0 0 / 100% 300%;
  animation-name: arr-run-up;
}
@keyframes arr-run-up {
  from { background-position: 0 0; }      /* Streifen läuft unten → oben */
  to   { background-position: 0 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .arr-up { animation: none; background: currentColor; }
}
.footer-top:hover .arr-up { transform: translateY(-3px); }
@media (max-width: 640px) {
  .footer-row { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .footer-top { justify-self: center; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 3200ms ease, transform 3200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Richtungs-Varianten: von links bzw. rechts einschweben (Service-Karten). */
.reveal-left  { transform: translateX(-64px); }
.reveal-right { transform: translateX(64px); }

/* Service-Karten behalten zusätzlich ihren Hover-Übergang (Hintergrund). */
.svc.reveal {
  transition: opacity 3200ms ease,
              transform 3200ms cubic-bezier(0.16, 1, 0.3, 1),
              background 320ms ease;
}

/* Prozess-Punkte: einzeln einblenden, gestaffelt nacheinander.
   Der dritte Delay-Wert (0s) gilt für background — Hover bleibt sofort. */
.proc-item.reveal {
  transition: opacity 3200ms ease,
              transform 3200ms cubic-bezier(0.16, 1, 0.3, 1),
              background 1280ms ease;
}
.proc-item.reveal:hover { transition-duration: 3200ms, 3200ms, 640ms; }
.proc-item.reveal:nth-child(2) { transition-delay: 250ms, 250ms, 0s; }
.proc-item.reveal:nth-child(3) { transition-delay: 500ms, 500ms, 0s; }
.proc-item.reveal:nth-child(4) { transition-delay: 750ms, 750ms, 0s; }
.proc-item.reveal:nth-child(5) { transition-delay: 1000ms, 1000ms, 0s; }

/* ---------- Partners / Marquee ---------- */
.partners {
  background: var(--bg-deep);
  padding: clamp(36px, 5vw, 60px) 0 calc(clamp(36px, 5vw, 60px) + 2rem);   /* unten 2rem mehr */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.partners-eyebrow {
  font-family: 'Michroma', sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 32px;
}
.marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
  padding: 8px 0;
}
.marquee + .marquee {
  margin-top: 14px;
  opacity: 0.55;
}
.marquee-track {
  display: inline-flex;
  gap: 72px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 140s linear infinite;
  will-change: transform;
}
.marquee--reverse .marquee-track {
  animation: marquee-rev 186s linear infinite;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes marquee-rev {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
.partners:hover .marquee-track,
.partners:focus-within .marquee-track { animation-play-state: paused; }

.logo {
  font-family: 'Michroma', sans-serif;
  font-size: 18px;
  color: var(--ink-2);
  letter-spacing: 0.18em;
  white-space: nowrap;
  transition: color 320ms ease;
  flex-shrink: 0;
}
.logo:hover { color: var(--ink-0); }
.logo--wide  { letter-spacing: 0.32em; font-size: 16px; }
.logo--serif { font-family: 'Cormorant Garamond', 'Georgia', serif; font-size: 26px; letter-spacing: 0.04em; font-style: italic; }
.logo--mono  { font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 17px; letter-spacing: 0.06em; }
.logo--lower { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 24px; letter-spacing: -0.02em; text-transform: lowercase; }
.logo--mark  { font-family: 'Michroma', sans-serif; font-size: 14px; letter-spacing: 0.24em; }
/* Kundenlogos als Kacheln: gedämpft in Graustufen, Farbe beim Hover. */
.logo-tile {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 18px;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 2000ms ease, opacity 2000ms ease;   /* Verlassen: 4× */
}
.logo-tile:hover { filter: none; opacity: 1; transition-duration: 1000ms; }   /* Hover: 2× */
.logo-link { flex-shrink: 0; line-height: 0; border-radius: 18px; }
.logo-link:focus-visible { outline: 1px solid var(--accent-text); outline-offset: 4px; }
.logo-link:focus-visible .logo-tile { filter: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* simple counter pulse */
.stat-num.counted { animation: countpulse 600ms ease; }
@keyframes countpulse {
  0% { color: var(--accent); }
  100% { color: var(--ink-0); }
}


/* ---------- News / Aktuelles ---------- */
.news {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.news-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
@media (max-width: 820px) {
  .news-head { grid-template-columns: 1fr; gap: 24px; }
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .news-grid { grid-template-columns: 1fr; }
}
.news-card {
  background: var(--bg-1);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
  isolation: isolate;
  transition: border-color 960ms ease;
}
/* Hover-Verlauf als eigene Ebene (Verläufe sind nicht überblendbar), 3× langsamer */
.news-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(64,122,166,0.08) 0%, rgba(64,122,166,0.01) 100%);
  opacity: 0;
  transition: opacity 960ms ease;
  pointer-events: none;
}
.news-card:hover::before { opacity: 1; }
.news-card:hover {
  border-color: var(--line-strong);
}
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.news-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.news-cat {
  font-family: 'Michroma', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  border-radius: 2px;
  white-space: nowrap;
}
.news-title {
  font-family: 'Michroma', sans-serif;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink-0);
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
.news-body {
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}


/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 140px var(--gap) 100px;
}
.legal-back {
  font-family: 'Michroma', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  display: inline-flex;
  gap: 10px;
  margin-bottom: 48px;
  transition: color 220ms ease;
}
.legal-back:hover { color: var(--accent); }
.legal h1 {
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--ink-0);
  margin: 0 0 40px;
  letter-spacing: 0.01em;
}
.legal h2 {
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--ink-0);
  margin: 48px 0 14px;
  letter-spacing: 0.04em;
}
.legal p,
.legal li {
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.8;
}
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal .todo {
  color: #e0b97b;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
}
.legal hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}


/* ---------- Honeypot (Spam-Schutz, unsichtbar) ---------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* ---------- Nav: Scrollspy — aktiver Menüpunkt ---------- */
.nav-links .nav-link.active {
  color: var(--accent);
}


/* ---------- Proof-Strip — Diese Seite als Beweisstück ---------- */
.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  padding: 64px 0;
}
.proof-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 36px;
}
.proof-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.proof-num {
  display: block;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--ink-0);
  margin-bottom: 8px;
}
.proof-label {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.proof-note {
  margin: 36px 0 0;
  max-width: 640px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
@media (max-width: 720px) {
  .proof-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }
}


/* ---------- Formular: Status-Meldung & Sende-Zustand ---------- */
.form-status {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #e0b97b;
}
.form-status:empty {
  display: none;
}
button.is-sending {
  opacity: 0.6;
  cursor: wait;
}


/* ---------- CinemaScroll (Hero) ----------
   Higgsfield-Stil: Der Hero bleibt sticky am Viewport stehen, .page-body
   schiebt sich beim Scrollen wie ein Vorhang darüber. Gleichzeitig fährt
   die Kamera langsam ins Bild (Scale auf .hero-media), das Bild dunkelt
   ab (.hero-dim) und der Titel steigt schneller auf als der Hintergrund
   (Parallaxe). Gesteuert über --cinema-p (0–1), das app.js beim Scrollen
   rAF-gedrosselt auf den Hero schreibt. Nur transform/opacity — keine
   Layout-Eigenschaften, läuft komplett auf dem Compositor. */
.hero {
  position: sticky;
  top: 0;
  min-height: 100svh;   /* exakter als 100vh auf Mobile; Fallback: 100vh aus der Basisregel */
  z-index: 1;
}
.page-body,
.footer {
  position: relative;
  z-index: 2;
}
.hero-media {
  transform: scale(calc(1 + var(--cinema-p, 0) * var(--cinema-zoom)));
  transform-origin: 50% 35%;   /* Zoom Richtung Bildfokus (object-position center 35%) */
  will-change: transform;
}
.hero-dim {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--bg-deep);
  opacity: calc(var(--cinema-p, 0) * var(--cinema-dim));
  pointer-events: none;
}
.hero-content {
  transform: translateY(calc(var(--cinema-p, 0) * var(--cinema-lift) * -1));
  opacity: calc(1 - var(--cinema-p, 0) * 1.3);
  will-change: transform, opacity;
}
.scroll-cue {
  opacity: calc(1 - var(--cinema-p, 0) * 3);  /* Cue verschwindet sofort beim ersten Scroll */
}
/* Hero komplett verdeckt: nicht mehr zeichnen, Caustics pausieren (Video pausiert app.js) */
.hero.asleep { visibility: hidden; }
.hero.asleep .hero-caustics { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  /* Statisches Verhalten: kein Pinning, keine scrollgebundene Bewegung */
  .hero { position: relative; }
  .hero-media, .hero-content { transform: none; }
  .hero-content, .scroll-cue { opacity: 1; }
  .hero-dim { display: none; }
}



/* ========== NEU: Prinzip / Technik / FAQ + Scroll-Animationen ========== */

/* ---------- Prinzip — Werkstatt / Auslieferung / Übergabe ---------- */
/* Nutzt bewusst die bestehenden .svc-Karten weiter (gleiche Optik, gleicher
   Hover) — hier braucht es nur das dreispaltige Raster. */
.prinzip {
  /* unten in --bg-deep auslaufen — Anlauf zum Partner-Band. Der Verlauf
     beginnt erst unter dem KI-Block (Länge = unteres Padding der .section). */
  background: linear-gradient(180deg, var(--bg-1) calc(100% - clamp(80px, 12vw, 160px)), var(--bg-deep) 100%);
  border-top: 1px solid var(--line);
}
.prinzip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: clamp(48px, 6vw, 80px);
}
@media (max-width: 880px) {
  .prinzip-grid { grid-template-columns: 1fr; }
}
/* Karten in der Prinzip-Sektion gestaffelt einblenden */
.prinzip-grid .svc.reveal:nth-child(2) { transition-delay: 180ms, 180ms, 0s; }
.prinzip-grid .svc.reveal:nth-child(3) { transition-delay: 360ms, 360ms, 0s; }

/* Wo KI (nicht) mitredet — zweispaltiger Block */
.ki-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  /* Linien als Rahmen der Spalten statt gap + grauer Hintergrund (wie Leistungen) */
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.ki-split .ki-col {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) {
  .ki-split { grid-template-columns: 1fr; }
}
.ki-col {
  background: var(--bg-1);
  padding: 40px 36px;
}
.ki-col--yes {
  /* „Wo sie hilft“: etwas heller, Verlauf aus dem Blau der Rampe */
  background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg-1) 100%);
}
.ki-head {
  font-family: 'Michroma', sans-serif;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-0);
  letter-spacing: 0.01em;
  margin: 0 0 24px;
}
.ki-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ki-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.ki-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ki-list li:first-child { padding-top: 0; }
.ki-list li::before {
  content: '×';
  position: absolute;
  left: 1px;
  top: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  color: var(--accent);
}
.ki-list li:first-child::before { top: -5px; }
.ki-list strong {
  color: var(--ink-0);
  font-weight: 400;
}
.ki-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-1);
  margin: 0 0 18px;
}
.ki-body--accent {
  color: var(--ink-0);
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 0;
}

/* ---------- Technik — Eigenbau oder WordPress ---------- */
.technik {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-deep) 100%);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .tech-grid { grid-template-columns: 1fr; }
}
.tech {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 40px 36px;
  background: rgba(255, 255, 255, 0.015);
  transition: opacity 3200ms ease,
              transform 3200ms cubic-bezier(0.16, 1, 0.3, 1),
              background 320ms ease,
              border-color 320ms ease;
}
.tech:hover {
  border-color: var(--line-strong);
  background: rgba(64, 122, 166, 0.045);
}
.tech-tag {
  font-family: 'Michroma', sans-serif;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.tech-title {
  font-family: 'Michroma', sans-serif;
  font-size: 22px;
  color: var(--ink-0);
  letter-spacing: 0.01em;
  margin: 0 0 22px;
}
.tech-fit {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-0);
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.tech-fit span {
  font-family: 'Michroma', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-right: 10px;
}
.tech-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-1);
  margin: 0;
}
.tech-note {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* ---------- FAQ ---------- */
.faq {
  /* oben und unten in --bg-deep — unten nahtlos in die Kontakt-Sektion */
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-1) 50%, var(--bg-deep) 100%);
  border-top: 1px solid var(--line);
}
.faq-list {
  border-top: 1px solid var(--line);
  max-width: 900px;
  margin-inline: auto;
}
/* FAQ-Kopf zentriert, passend zur mittigen Liste */
.faq .section-eyebrow { justify-content: center; }
.faq .section-title { text-align: center; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 26px 56px 26px 0;
  font-family: 'Michroma', sans-serif;
  font-size: clamp(13.5px, 1.5vw, 16px);
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--ink-0);
  transition: color 320ms ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--accent); }
.faq-item > summary:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}
/* Plus-Zeichen: waagrechter Balken bleibt, senkrechter dreht beim Öffnen weg */
.faq-item > summary::after,
.faq-item > summary::before {
  content: '';
  position: absolute;
  top: 50%;
  background: var(--accent);
}
.faq-item > summary::after {
  right: 6px;
  width: 14px;
  height: 2px;
  transform: translateY(-50%);
}
.faq-item > summary::before {
  right: 12px;
  width: 2px;
  height: 14px;
  transform: translateY(-50%);
  transition: transform 440ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 320ms ease;
}
.faq-item[open] > summary::before {
  transform: translateY(-50%) rotate(90deg);
  opacity: 0;
}
.faq-answer {
  margin: 0;
  padding: 0 56px 30px 0;
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-1);
}
/* Öffnen/Schließen animiert app.js (erst Höhe, dann Text — und umgekehrt).
   Während des Schließens zeigt das Plus schon den Zielzustand. */
.faq-item.closing > summary::before {
  transform: translateY(-50%);
  opacity: 1;
}
/* Gestaffeltes Einblenden der Fragen beim Scrollen */
.faq-item.reveal:nth-child(2) { transition-delay: 100ms, 100ms; }
.faq-item.reveal:nth-child(3) { transition-delay: 200ms, 200ms; }
.faq-item.reveal:nth-child(4) { transition-delay: 300ms, 300ms; }
.faq-item.reveal:nth-child(5) { transition-delay: 400ms, 400ms; }
.faq-item.reveal:nth-child(6) { transition-delay: 500ms, 500ms; }

/* ---------- News: vier Beiträge statt drei → 2×2 ---------- */
.news-grid { grid-template-columns: repeat(2, 1fr); }
.news-card.reveal:nth-child(2) { transition-delay: 120ms, 120ms, 0s; }
.news-card.reveal:nth-child(3) { transition-delay: 240ms, 240ms, 0s; }
.news-card.reveal:nth-child(4) { transition-delay: 360ms, 360ms, 0s; }
.news-card.reveal {
  transition: opacity 3200ms ease,
              transform 3200ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 960ms ease;
}

/* ---------- Scroll-Fortschritt (Linie am oberen Rand) ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--sp, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-deep) 0%, var(--accent) 55%, var(--accent-light) 100%);
  box-shadow: 0 0 12px var(--accent-glow);
  will-change: transform;
}

/* ---------- Prozess: roter Faden füllt sich beim Scrollen ---------- */
.process-list {
  position: relative;
}
.process-list::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px;
  height: 100%;
  z-index: 3;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 100%);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: scaleY(var(--proc-p, 0));
  transform-origin: 50% 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  /* Keine scrollgebundene Bewegung — Faden einfach ganz da, Rest statisch. */
  .process-list::before { transform: scaleY(1); }
}


/* ========== Akzent-Rampe: Lesbarkeit & Verläufe ==========
   #407aa6 ist als Hauptfarbe gesetzt und bleibt es für alles Flächige —
   Ränder, Linien, Füllungen, Hover-Tints.

   Für kleine Schrift ist sie allerdings zu mittig: auf dem dunklen Grund
   kommt sie auf rund 4,0:1 und liegt damit unter den 4.5:1, die WCAG AA für
   normalen Text verlangt. Die Labels hier sind 9–11 px — also genau der
   Fall, der darunter leidet.

   Darum bekommen NUR die Textstellen --accent-text (#5d95c0): gleicher
   Farbton (Hue 206°), nur heller, dadurch rund 5,8:1. Optisch dieselbe
   Farbe, nur lesbar.

   Soll es überall exakt #407aa6 sein: diesen Block löschen. Dann sieht man
   den Unterschied kaum, aber die kleinen Labels werden spürbar flauer. */
.section-eyebrow,
.partners-eyebrow,
.svc-num,
.news-cat,
.tech-tag,
.divider-quote cite,
.nav-links .nav-link.active,
.ki-list li::before {
  color: var(--accent-text);
}
.info-value:hover,
.btn-ghost:hover,
.faq-item > summary:hover {
  color: var(--accent-text);
}
.btn-ghost:hover { border-color: var(--accent-text); }

/* Die großen Prozess-Nummern (44 px) vertragen einen echten Verlauf.
   color steht zuerst als Fallback — ohne background-clip bleibt die Zahl
   dadurch sichtbar statt transparent. */
.proc-num { color: var(--accent-text); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .proc-num {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}


/* ---------- Schwarm-Canvas (swarm.js) ----------
   Liegt über allem, fängt aber keine Klicks ab. screen-Blend lässt die
   Punkte auf dem dunklen Grund leuchten statt zu kleben. */
.swarm-canvas {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: reduce) {
  .swarm-canvas { display: none; }
}


/* ---------- Logo-Rahmen: umlaufender Lichtstreifen ----------
   Der Rahmen steckt im PNG. Darüber liegt ein SVG-Rechteck genau auf der
   Rahmen-Mittellinie (512er-Raster: Kante 2–11 px, Eckradius ~62). Sichtbar
   ist nur ein kurzes Strichstück, das per stroke-dashoffset rundum läuft —
   dieselbe Laufschrift-Idee wie bei den Pfeilen.
   Verlauf: fünf gleiche Rechtecke mit unterschiedlich langen Strichen und
   je 35 % Deckkraft. Per animation-delay laufen alle Köpfe genau
   übereinander — vorne überlagern sich alle fünf (hell), hinten nur der
   längste (blass). delay = -(21 - L) × Dauer/100.
   Tuning: Tempo = Dauer (24s); bei Änderung die delays mitrechnen. */
.brand-mark {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  flex: none;
}
.brand-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 11;
  stroke-linecap: round;
  pointer-events: none;
}
.brand-frame rect {
  stroke-opacity: 0.35;
  animation: frame-run 24s linear infinite;
}
.brand-frame .bf1 { stroke-dasharray: 21 79; }
.brand-frame .bf2 { stroke-dasharray: 15 85; animation-delay: -1.44s; }
.brand-frame .bf3 { stroke-dasharray: 10 90; animation-delay: -2.64s; }
.brand-frame .bf4 { stroke-dasharray: 6 94;  animation-delay: -3.6s; }
.brand-frame .bf5 { stroke-dasharray: 3 97;  animation-delay: -4.32s; }
@keyframes frame-run {
  to { stroke-dashoffset: -100; }   /* im Uhrzeigersinn */
}

/* µ im Logo: Lichtstreifen wie beim aktiven Menüpunkt. Das Logo-PNG dient
   als Maske, clip-path schneidet den Rahmen weg (Rahmen endet bei 2 %,
   µ beginnt bei ~8 %) — der Streifen läuft also nur über das µ. */
.brand-glint {
  position: absolute;
  inset: 0;
  -webkit-mask: url("assets/logo.png") center / contain no-repeat;
          mask: url("assets/logo.png") center / contain no-repeat;
  clip-path: inset(4% round 10%);
  background: linear-gradient(90deg, transparent 42%, var(--ink-0) 50%, transparent 58%) 100% 0 / 300% 100%;
  animation: arr-run 7.2s linear infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .brand-frame,
  .brand-glint { display: none; }
}

/* ---------- Nav: aktiver Menüpunkt mit Lichtstreifen ----------
   Gleicher Verlauf und gleiche Keyframes wie .arr, nur als Textfüllung.
   Steht nach dem --accent-text-Block, damit es ihn überschreibt. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .nav-links .nav-link.active {
    background: linear-gradient(90deg, var(--accent-text) 42%, var(--ink-0) 50%, var(--accent-text) 58%) 100% 0 / 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: arr-run 7.2s linear infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links .nav-link.active { animation: none; background: none; color: var(--accent-text); }
}
