/* ==========================================================================
   LENDOLINO – style.css
   Basis, Layout und Komponenten (mobile first).
   Animationen:   animations.css
   Breakpoints:   responsive.css

   Inhalt
   01 Schriften        05 Header & Navigation   09 Leistungen
   02 Design-Tokens    06 Buttons & Links       10 Unterseiten
   03 Basis            07 Hero & 3D-Bühne       11 Formular
   04 Layout           08 Startseite            12 Footer & Rechtstexte
   ========================================================================== */

/* 01 Schriften – lokal gehostet, keine Anfrage an Dritte ------------------ */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Display";
  src: url("../fonts/inter-display-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Ergänzung für Zeichen wie ş, ğ, ı, č, ž, ł oder ő – etwa in Namen, die jemand
   ins Kontaktformular schreibt. Der Browser lädt diese Dateien nur, wenn solche
   Zeichen tatsächlich vorkommen. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-017F, U+0218-021B, U+1E9E;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-017F, U+0218-021B, U+1E9E;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600-ext.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-017F, U+0218-021B, U+1E9E;
}

@font-face {
  font-family: "Inter Display";
  src: url("../fonts/inter-display-600-ext.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-017F, U+0218-021B, U+1E9E;
}

/* Metrisch angeglichene Ersatzschrift: verhindert Layout-Sprünge beim Nachladen. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Roboto");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

/* 02 Design-Tokens --------------------------------------------------------- */

:root {
  /* Farben laut Markenvorgabe */
  --bg: #080d18;
  --surface: #101827;
  --blue: #2878ff;
  --cyan: #35d9ff;
  --text: #ffffff;
  --muted: #a7b1c3;

  /* Abgeleitete Töne */
  --blue-strong: #1f6ceb;                      /* Button-Fläche, AA-Kontrast zu Weiß */
  --line: rgba(167, 177, 195, 0.14);
  --line-strong: rgba(167, 177, 195, 0.28);
  --glass: rgba(16, 24, 39, 0.62);
  --glass-light: rgba(255, 255, 255, 0.05);
  --glow: rgba(40, 120, 255, 0.5);
  --danger: #ff8a9a;
  --success: #6ee7a8;
  --notice: #ffc46b;

  /* Typografie */
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-h1: clamp(2.55rem, 1.35rem + 5.6vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.25rem + 3.3vw, 3.5rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.45vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Raum */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(88px, 11vw, 168px);
  --header-h: 68px;

  /* Form */
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-pill: 999px;

  /* Bewegung */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Position und Größe des 3D-Kerns (wird von three-scene.js ausgemessen) */
  --core-x: 50%;
  --core-size: min(90vw, 420px);
  --core-y: calc(var(--header-h) + var(--core-size) * 0.46);
}

/* 03 Basis ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "calt", "ss03", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.07;
  letter-spacing: -0.03em;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

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

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

address {
  font-style: normal;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(40, 120, 255, 0.5);
  color: #fff;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--r-s);
  background: #fff;
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 04 Layout ---------------------------------------------------------------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section);
}

/* Lichtkante: jede Sektion beginnt mit einer Haarlinie, auf der links ein Reflex sitzt. */
.section--edge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100% - 2 * var(--gutter), var(--container));
  height: 1px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, var(--cyan), rgba(40, 120, 255, 0.55) 9%, rgba(40, 120, 255, 0) 30%),
    var(--line);
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.section-head p {
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.lead {
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.text-link {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(90deg, var(--cyan), var(--blue)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.45s var(--ease-out), color 0.25s;
}

.text-link:hover {
  color: var(--cyan);
  background-size: 0% 1px;
  background-position: 100% 100%;
}

.dot-list {
  display: grid;
  gap: 12px;
}

.dot-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(53, 217, 255, 0.7);
  transform: rotate(45deg);
}

/* 05 Header & Navigation --------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
}

/* Die Glasfläche liegt in einem Pseudo-Element: Ein backdrop-filter direkt am
   Header würde das fixierte Vollbild-Menü auf die Höhe der Kopfzeile begrenzen. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 24, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  opacity: 0;
  transition: opacity 0.4s;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.logo__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.logo__word {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

/* Mobil ist die Navigation ein Vollbild-Menü; ohne JavaScript springt der
   Menü-Schalter zur Navigation im Footer. */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 36px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(40, 120, 255, 0.22), transparent 60%),
    rgba(8, 13, 24, 0.975);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s;
}

.nav-open .site-nav {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.site-nav__list {
  display: grid;
}

.site-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), color 0.25s;
}

.nav-open .site-nav__list a {
  opacity: 1;
  transform: none;
}

.nav-open .site-nav__list li:nth-child(1) a { transition-delay: 0.06s; }
.nav-open .site-nav__list li:nth-child(2) a { transition-delay: 0.12s; }
.nav-open .site-nav__list li:nth-child(3) a { transition-delay: 0.18s; }
.nav-open .site-nav__list li:nth-child(4) a { transition-delay: 0.24s; }

.site-nav__list a[aria-current="page"] {
  color: var(--cyan);
}

.site-nav__extra {
  display: grid;
  gap: 18px;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out) 0.28s;
}

.nav-open .site-nav__extra {
  opacity: 1;
}

.site-nav__extra p {
  color: var(--muted);
  font-size: var(--fs-small);
}

.site-nav__extra .btn {
  width: 100%;
}

.site-header .site-header__cta {
  display: none;
}

.nav-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-right: -10px;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  position: absolute;
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.45s var(--ease-out);
}

.nav-toggle span:nth-child(1) { transform: translateY(-4px); }
.nav-toggle span:nth-child(2) { transform: translateY(4px); }

.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: rotate(-45deg); }

.nav-open body {
  overflow: hidden;
}

/* 06 Buttons & Links ------------------------------------------------------- */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.3s, border-color 0.3s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--blue-strong);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 32px -12px var(--glow);
}

/* Lichtreflex, der beim Hover einmal über die Fläche zieht */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.34) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 48px -12px rgba(40, 120, 255, 0.85);
}

.btn--primary:hover::before {
  transform: translateX(120%);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-strong);
  color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(53, 217, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(53, 217, 255, 0.08);
}

.btn--small {
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.9375rem;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.75;
}

.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
}

.is-sending .btn__spinner {
  display: block;
}

/* 07 Hero & 3D-Bühne ------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + var(--core-size) * 0.84) 0 56px;
  overflow: hidden;
}

.hero__visual,
.page-head__visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Weiches Licht hinter dem Kern – bleibt auch unter der 3D-Szene sichtbar */
.hero__visual::before,
.page-head__visual::before {
  content: "";
  position: absolute;
  left: var(--core-x);
  top: var(--core-y);
  width: calc(var(--core-size) * 1.9);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(40, 120, 255, 0.3), rgba(40, 120, 255, 0.09) 52%, transparent 74%);
}

/* Übergang in die nächste Sektion */
.hero__visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(8, 13, 24, 0), rgba(8, 13, 24, 0.82) 62%, var(--bg));
}

.scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}

.is-scene-ready > .scene-canvas {
  opacity: 1;
}

/* Der Kern als reine CSS-Form: Platzhalter bis die 3D-Szene steht und
   Ersatz für Geräte ohne WebGL. */
.core {
  position: absolute;
  left: var(--core-x);
  top: var(--core-y);
  width: var(--core-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.core-poster {
  position: absolute;
  inset: 0;
  transition: opacity 1.2s var(--ease-out);
}

.is-scene-ready .core-poster {
  opacity: 0;
}

.core-poster__orb {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #e6eeff 0%, #86abff 10%, #2f5fd6 32%, #0f1f4d 60%, #070c1a 100%);
  box-shadow:
    0 0 70px rgba(40, 120, 255, 0.5),
    inset -14px -20px 44px rgba(0, 0, 0, 0.62),
    inset 8px 10px 26px rgba(53, 217, 255, 0.22);
}

.core-poster__ring {
  position: absolute;
  border: 1px solid rgba(170, 198, 255, 0.4);
  border-radius: 50%;
}

.core-poster__ring--a {
  inset: 17%;
  transform: rotate(-16deg) scaleY(0.3);
}

.core-poster__ring--b {
  inset: 8%;
  border-color: rgba(53, 217, 255, 0.34);
  border-width: 6px;
  opacity: 0.35;
  transform: rotate(22deg) scaleY(0.42);
}

.core-poster__ring--c {
  inset: 0;
  border-color: rgba(170, 198, 255, 0.22);
  transform: rotate(-50deg) scaleY(0.58);
}

/* Schwebende Code-Fragmente rund um den Kern */
.core-chips {
  position: absolute;
  inset: 0;
  display: none;
}

.code-chip {
  position: absolute;
  display: block;
  transform: translate3d(calc(var(--px, 0) * var(--depth, 14) * 1px), calc(var(--py, 0) * var(--depth, 14) * 0.7px), 0);
  transition: transform 0.9s var(--ease-out);
  will-change: transform;
}

.code-chip > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)), rgba(12, 19, 34, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  color: #d5deee;
  line-height: 1;
  white-space: nowrap;
}

.code-chip code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.code-chip > span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chip, var(--cyan));
  box-shadow: 0 0 10px var(--chip, var(--cyan));
}

.code-chip--a { left: 12%; top: 5%; --depth: 22; --chip: #ffffff; }
.code-chip--b { right: -3%; top: 23%; --depth: 12; --chip: var(--blue); }
.code-chip--c { right: 6%; bottom: 9%; --depth: 30; --chip: var(--cyan); }

.tok-k { color: var(--cyan); }
.tok-s { color: #b9c9ff; }
.tok-n { color: var(--success); }

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  max-width: 11.5em;
  /* Lichtreflex, der beim Laden einmal über die Schrift wandert */
  background: linear-gradient(100deg, #fff 0%, #fff 42%, #9fe9ff 50%, #fff 58%, #fff 100%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
}

.hero__lead {
  max-width: 34em;
  margin-top: clamp(20px, 2.6vw, 32px);
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 3.4vw, 44px);
}

.hero__actions .btn {
  flex: 1 1 auto;
}

.hero__place {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 34em;
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.hero__place .icon {
  margin-top: 1px;
  color: var(--cyan);
}

/* 08 Startseite ------------------------------------------------------------ */

/* Leistungen: Karten, die sich in der Tiefe aufblättern */
.svc-grid {
  display: grid;
  gap: 20px;
}

.svc-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 100%;
  border-radius: var(--r-l);
  transform: perspective(1200px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
  transition: transform 0.7s var(--ease-out);
}

.svc-card.is-tilting {
  transition-duration: 0.12s;
}

/* Glasfläche der Karte – liegt hinter Text und Szene */
.svc-card__surface {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: inherit;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.012) 42%, rgba(40, 120, 255, 0.05) 100%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 80px -48px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transition: border-color 0.4s;
}

/* Lichtfleck, der dem Zeiger folgt */
.svc-card__surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at calc(var(--mx, 50) * 1%) calc(var(--my, 0) * 1%), rgba(53, 217, 255, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s;
}

.svc-card:hover .svc-card__surface,
.svc-card.is-tilting .svc-card__surface {
  border-color: rgba(53, 217, 255, 0.34);
}

.svc-card:hover .svc-card__surface::after,
.svc-card.is-tilting .svc-card__surface::after {
  opacity: 1;
}

.svc-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 0 28px 30px;
}

.svc-card__body p {
  color: var(--muted);
}

.svc-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 6px;
}

.svc-card__tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: #cdd6e6;
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Der Link spannt sich über die ganze Karte */
.svc-card__link {
  margin-top: auto;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--blue)) 0 100% / 100% 1px no-repeat;
}

.svc-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.svc-card:hover .svc-card__link {
  color: var(--cyan);
}

/* Miniatur-Szenen der Karten: flache Ebenen mit echtem Tiefenversatz.
   Die Szene hat eine eigene Perspektive und dreht sich stärker als die Karte –
   so verschieben sich die Ebenen sichtbar gegeneinander. */
.svc-scene {
  position: relative;
  height: 220px;
  order: -1;
  perspective: 900px;
  pointer-events: none;
}

.svc-scene__stage {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 250px;
  height: 170px;
  margin: -85px 0 0 -125px;
  transform: rotateX(calc(14deg + var(--rx, 0) * 1.5deg)) rotateY(calc(-22deg + var(--ry, 0) * 2.2deg));
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out);
}

.is-tilting .svc-scene__stage {
  transition-duration: 0.12s;
}

.svc-scene__stage > * {
  position: absolute;
  transition: transform 0.7s var(--ease-out);
}

.z1 { transform: translateZ(16px); }
.z2 { transform: translateZ(34px); }
.z3 { transform: translateZ(54px); }
.zb { transform: translateZ(-26px); }

.svc-card:hover .z1,
.svc-card.is-tilting .z1 { transform: translateZ(26px); }
.svc-card:hover .z2,
.svc-card.is-tilting .z2 { transform: translateZ(56px); }
.svc-card:hover .z3,
.svc-card.is-tilting .z3 { transform: translateZ(90px); }
.svc-card:hover .zb,
.svc-card.is-tilting .zb { transform: translateZ(-44px); }

.pane {
  border: 1px solid rgba(200, 216, 245, 0.36);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)), #17233f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 40px -22px rgba(0, 0, 0, 0.85);
}

.bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(190, 208, 240, 0.32);
}

.blob {
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 30px -10px rgba(40, 120, 255, 0.8);
}

/* App: zwei Geräte, davor schwebende Bedienelemente */
.svc-scene--app .dev-a { left: 86px; top: -12px; width: 98px; height: 194px; border-radius: 24px; }
.svc-scene--app .dev-b { left: 22px; top: 14px; width: 86px; height: 168px; border-radius: 20px; opacity: 0.55; }
.svc-scene--app .a-head { left: 100px; top: 10px; width: 44px; }
.svc-scene--app .a-card { left: 98px; top: 30px; width: 74px; height: 56px; border-radius: 12px; }
.svc-scene--app .a-row1 { left: 100px; top: 100px; width: 70px; }
.svc-scene--app .a-row2 { left: 100px; top: 116px; width: 48px; }
.svc-scene--app .a-tab { left: 96px; top: 146px; width: 78px; height: 24px; border-radius: 12px; }
.svc-scene--app .a-fab { left: 158px; top: 104px; width: 38px; height: 38px; border-radius: 50%; }

/* Web App: Dashboard mit Diagramm und Kennzahl-Kachel */
.svc-scene--webapp .w-win { left: 4px; top: 6px; width: 238px; height: 156px; }
.svc-scene--webapp .w-side { left: 16px; top: 20px; width: 34px; height: 128px; border-radius: 9px; background: rgba(190, 208, 240, 0.09); }
.svc-scene--webapp .w-title { left: 64px; top: 24px; width: 64px; }
.svc-scene--webapp .w-chart { left: 64px; top: 46px; display: flex; align-items: flex-end; gap: 9px; width: 118px; height: 92px; }
.svc-scene--webapp .w-chart i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.svc-scene--webapp .w-chart i:nth-child(1) { height: 38%; opacity: 0.55; }
.svc-scene--webapp .w-chart i:nth-child(2) { height: 62%; opacity: 0.7; }
.svc-scene--webapp .w-chart i:nth-child(3) { height: 48%; opacity: 0.6; }
.svc-scene--webapp .w-chart i:nth-child(4) { height: 84%; }
.svc-scene--webapp .w-chart i:nth-child(5) { height: 70%; opacity: 0.8; }
.svc-scene--webapp .w-tile { left: 168px; top: -8px; width: 82px; height: 82px; border-radius: 18px; display: grid; place-items: center; }
.svc-scene--webapp .w-tile i { width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(var(--cyan) 0 68%, rgba(190, 208, 240, 0.18) 0); -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); }

/* Webseite: Browserfenster, Inhalt und ein mitwanderndes Smartphone */
.svc-scene--web .b-win { left: 0; top: 4px; width: 232px; height: 160px; }
.svc-scene--web .b-dots { left: 14px; top: 16px; width: 30px; height: 6px; background: radial-gradient(circle, rgba(190, 208, 240, 0.55) 2.5px, transparent 3px) 0 0 / 10px 6px repeat-x; }
.svc-scene--web .b-url { left: 56px; top: 14px; width: 120px; height: 10px; border-radius: 5px; background: rgba(190, 208, 240, 0.14); }
.svc-scene--web .b-hero { left: 14px; top: 38px; width: 204px; height: 62px; border-radius: 10px; opacity: 0.92; }
.svc-scene--web .b-h { left: 28px; top: 56px; width: 86px; height: 8px; background: #fff; }
.svc-scene--web .b-btn { left: 28px; top: 74px; width: 44px; height: 13px; border-radius: 7px; background: #fff; opacity: 0.85; }
.svc-scene--web .b-col1 { left: 14px; top: 112px; width: 60px; height: 36px; border-radius: 8px; }
.svc-scene--web .b-col2 { left: 86px; top: 112px; width: 60px; height: 36px; border-radius: 8px; }
.svc-scene--web .b-phone { left: 174px; top: 60px; width: 66px; height: 122px; border-radius: 16px; }
.svc-scene--web .b-phone::before { content: ""; position: absolute; inset: 12px 9px auto; height: 34px; border-radius: 7px; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.svc-scene--web .b-phone::after { content: ""; position: absolute; inset: 56px 9px auto; height: 6px; border-radius: 3px; background: rgba(190, 208, 240, 0.32); box-shadow: 0 14px 0 rgba(190, 208, 240, 0.2); }

/* Online-Shop: Produktkarte, Zahlungskarte und Warenkorb */
.svc-scene--shop .s-pay { left: 112px; top: 8px; width: 132px; height: 82px; border-radius: 14px; }
.svc-scene--shop .s-pay::before { content: ""; position: absolute; left: 14px; top: 16px; width: 24px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, #ffe2a8, #d9a544); opacity: 0.9; }
.svc-scene--shop .s-pay::after { content: ""; position: absolute; left: 14px; bottom: 14px; width: 84px; height: 6px; border-radius: 3px; background: rgba(190, 208, 240, 0.32); }
.svc-scene--shop .s-prod { left: 14px; top: 0; width: 128px; height: 172px; border-radius: 18px; }
.svc-scene--shop .s-img { left: 26px; top: 12px; width: 104px; height: 84px; border-radius: 12px; }
.svc-scene--shop .s-t1 { left: 28px; top: 110px; width: 78px; }
.svc-scene--shop .s-t2 { left: 28px; top: 126px; width: 46px; }
.svc-scene--shop .s-price { left: 28px; top: 144px; width: 52px; height: 16px; border-radius: 8px; background: #fff; }
.svc-scene--shop .s-cart { left: 118px; top: 108px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.svc-scene--shop .s-cart .icon { width: 24px; height: 24px; }

/* Warum Lendolino? */
.why {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}

.why__intro {
  display: grid;
  gap: 20px;
  align-content: start;
}

.why__list {
  border-top: 1px solid var(--line);
}

.why__item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

/* Lichtkante, die beim Hover über die Trennlinie läuft */
.why__item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 40%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}

.why__item:hover::after {
  transform: scaleX(1);
}

.why__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--glass-light);
  color: var(--cyan);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.why__icon .icon {
  width: 22px;
  height: 22px;
}

.why__item:hover .why__icon {
  border-color: rgba(53, 217, 255, 0.6);
  box-shadow: 0 0 24px -4px rgba(53, 217, 255, 0.55);
}

.why__item h3 {
  align-self: center;
}

.why__item p {
  grid-column: 2;
  max-width: 52ch;
  color: var(--muted);
}

/* Technologien & Systemansicht */
.system__stage {
  position: relative;
  aspect-ratio: 2 / 1;
  max-height: 520px;
  width: 100%;
  margin-bottom: 8px;
}

.system__stage .scene-canvas {
  cursor: pointer;
}

.system__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1s var(--ease-out);
}

.is-scene-ready > .system__fallback {
  opacity: 0;
}

.system__fallback .flow {
  fill: none;
  stroke: url(#flow-gradient);
  stroke-width: 1.5;
  stroke-dasharray: 5 9;
  stroke-linecap: round;
}

.system__fallback .node {
  fill: rgba(16, 24, 39, 0.9);
  stroke: rgba(190, 208, 240, 0.38);
  stroke-width: 1.2;
}

.system__fallback .node-accent {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.system__tab {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 56px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.35s, background-color 0.35s, color 0.35s, box-shadow 0.35s;
  -webkit-tap-highlight-color: transparent;
}

.system__tab:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.system__tab[aria-selected="true"] {
  border-color: rgba(53, 217, 255, 0.6);
  background: linear-gradient(180deg, rgba(53, 217, 255, 0.12), rgba(40, 120, 255, 0.05));
  box-shadow: 0 0 34px -10px rgba(53, 217, 255, 0.6);
  color: var(--text);
}

.system__panels {
  margin-top: 28px;
}

.system__panel {
  max-width: 62ch;
  margin-inline: auto;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
  text-align: center;
}

.system__panel strong {
  color: var(--text);
  font-weight: 500;
}

.system__panel + .system__panel {
  margin-top: 16px;
}

/* Der Stack als Tabelle: jede Zeile ist eine Schicht */
.stack {
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

.stack__row {
  display: grid;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.45s;
}

.stack.has-focus .stack__row:not(.is-active) {
  opacity: 0.42;
}

.stack__layer {
  display: grid;
  gap: 4px;
  align-content: start;
}

.stack__layer p {
  color: var(--muted);
  font-size: var(--fs-small);
}

.stack__techs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tech {
  display: grid;
  gap: 2px;
  align-content: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  transition: border-color 0.4s, transform 0.5s var(--ease-out), box-shadow 0.4s;
}

.tech:hover {
  border-color: rgba(53, 217, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(40, 120, 255, 0.7);
}

.tech__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.tech__role {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Entwicklungsprozess: eine echte Abfolge, deshalb nummeriert */
.process {
  position: relative;
  display: grid;
  gap: 0;
  counter-reset: step;
}

/* Leitlinie: ::before ist die Spur, ::after füllt sich mit dem Scrollen
   (animations.js setzt --progress von 0 bis 1). */
.process::before,
.process::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 1px;
}

.process::before {
  background: var(--line);
}

.process::after {
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 14px rgba(53, 217, 255, 0.8);
  transform: scaleY(var(--progress, 0));
  transform-origin: top;
}

.process__step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px 22px;
  padding-bottom: 40px;
  counter-increment: step;
}

.process__step:last-child {
  padding-bottom: 0;
}

.process__num {
  grid-row: span 2;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  font-feature-settings: "tnum";
  transition: border-color 0.5s, color 0.5s, box-shadow 0.5s;
}

.process__num::before {
  content: counter(step, decimal-leading-zero);
}

.process__step.is-reached .process__num {
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(53, 217, 255, 0.1), 0 0 26px -2px rgba(53, 217, 255, 0.65);
}

.process__step h3 {
  align-self: center;
}

.process__step p {
  grid-column: 2;
  max-width: 44ch;
  color: var(--muted);
}

/* Region: Sindelfingen im Zentrum, die Nachbarstädte auf Umlaufbahnen */
.region {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.region__text {
  display: grid;
  gap: 22px;
}

.region__text p {
  max-width: 56ch;
  color: var(--muted);
}

.region__map {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  overflow: visible;
}

.region__map .orbit {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.region__map .orbit--far {
  stroke-dasharray: 2 7;
}

.region__map .home {
  fill: var(--cyan);
}

.region__map .home-glow {
  fill: rgba(53, 217, 255, 0.16);
}

.region__map .town {
  fill: #fff;
}

.region__map text {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
}

.region__map .label-home {
  fill: #fff;
  font-weight: 600;
}

/* Projekt-CTA */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 13vw, 200px);
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -62%;
  width: min(1500px, 190vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 120, 255, 0.34), rgba(40, 120, 255, 0.1) 46%, transparent 70%);
  pointer-events: none;
}

.cta__rings {
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: min(1180px, 150vw);
  aspect-ratio: 2.4;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta__rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(170, 198, 255, 0.22);
  border-radius: 50%;
}

.cta__rings span:nth-child(2) {
  inset: 14% 12% -14%;
  border-color: rgba(53, 217, 255, 0.24);
}

.cta__rings span:nth-child(3) {
  inset: 30% 25% -30%;
  border-color: rgba(170, 198, 255, 0.16);
}

.cta__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(22px, 3vw, 34px);
}

.cta h2 {
  max-width: 15em;
}

.cta p {
  max-width: 42ch;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.cta .cta__mail {
  color: var(--muted);
  font-size: var(--fs-small);
}

/* 09 Leistungen-Seite ------------------------------------------------------ */

.page-head {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 9vw, 120px)) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
  --core-x: 88%;
  --core-y: 18%;
  --core-size: min(60vw, 300px);
}

.page-head__visual {
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}

/* Rechtstexte: Seitenkopf ohne Grafik, engerer Anschluss an den Text */
.page-head--plain {
  padding-bottom: clamp(28px, 4vw, 48px);
}

.section--legal {
  padding-top: clamp(40px, 6vw, 72px);
}

.page-head + .section {
  padding-top: clamp(48px, 7vw, 96px);
}

.page-head__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}

.page-head h1 {
  max-width: 13em;
  font-size: clamp(2.3rem, 1.3rem + 4.6vw, 4.2rem);
}

/* Begriffe, die nicht am Bindestrich getrennt werden sollen */
.nowrap {
  white-space: nowrap;
}

.page-head .lead {
  max-width: 38em;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: var(--fs-small);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

.breadcrumb a {
  text-decoration: none;
  transition: color 0.25s;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* Sprungmarken zu den vier Leistungen */
.jump {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  border-block: 1px solid var(--line);
  background: rgba(8, 13, 24, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.jump ul {
  display: flex;
  gap: 6px;
  padding-block: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.jump ul::-webkit-scrollbar {
  display: none;
}

.jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}

.jump a:hover {
  color: var(--text);
}

.jump a.is-active {
  border-color: rgba(53, 217, 255, 0.5);
  background: rgba(53, 217, 255, 0.08);
  color: var(--text);
}

.service {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  scroll-margin-top: calc(var(--header-h) + 76px);
}

.service-section {
  /* Platz für Kopfzeile und Sprungmarken-Leiste */
  scroll-margin-top: 58px;
}

.service__intro {
  display: grid;
  gap: 22px;
  align-content: start;
}

.service__detail {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  min-width: 0;
}

.service__intro p {
  max-width: 58ch;
  color: var(--muted);
}

.service__intro .btn {
  justify-self: start;
  margin-top: 10px;
}

.service__visual {
  position: relative;
  height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background:
    radial-gradient(80% 90% at 70% 10%, rgba(40, 120, 255, 0.2), transparent 70%),
    var(--surface);
  transform: perspective(1200px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
  transition: transform 0.7s var(--ease-out);
}

.service__visual.is-tilting {
  transition-duration: 0.12s;
}

.service__visual .svc-scene {
  height: 100%;
}

.service__visual:hover .z1,
.service__visual.is-tilting .z1 { transform: translateZ(26px); }
.service__visual:hover .z2,
.service__visual.is-tilting .z2 { transform: translateZ(56px); }
.service__visual:hover .z3,
.service__visual.is-tilting .z3 { transform: translateZ(90px); }
.service__visual:hover .zb,
.service__visual.is-tilting .zb { transform: translateZ(-44px); }

.service__facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.fact {
  display: grid;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.fact h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

/* Häufige Fragen */
.faq {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: block;
  padding: 24px 48px 24px 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--cyan);
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out);
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq details p {
  max-width: 62ch;
  padding: 0 0 26px;
  color: var(--muted);
}

/* 10 Über mich & Kontakt --------------------------------------------------- */

.about {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
}

.about__text {
  display: grid;
  gap: 22px;
  align-content: start;
}

.about__text p {
  max-width: 60ch;
  color: var(--muted);
}

.about__text p.lead {
  color: #dbe3f1;
}

/* Visitenkarte aus Glas */
.id-card {
  position: relative;
  display: grid;
  gap: 26px;
  align-content: space-between;
  min-height: 320px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(40, 120, 255, 0.3), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 50px 90px -50px rgba(0, 0, 0, 0.95);
  transform: perspective(1200px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
  transition: transform 0.7s var(--ease-out);
}

.id-card.is-tilting {
  transition-duration: 0.12s;
}

.id-card__mark {
  width: 54px;
  height: 54px;
}

.id-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.id-card__role {
  margin-top: 8px;
  color: var(--muted);
}

.id-card__meta {
  display: grid;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.id-card__meta li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d5deee;
}

.id-card__meta .icon {
  color: var(--cyan);
}

.id-card__meta a {
  text-decoration: none;
}

.id-card__meta a:hover {
  color: var(--cyan);
}

.principles {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.principle {
  display: grid;
  gap: 10px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.principle p {
  max-width: 54ch;
  color: var(--muted);
}

.contact {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}

.contact__aside {
  display: grid;
  gap: 0;
  align-content: start;
  border-top: 1px solid var(--line);
}

.contact__block {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.contact__block .why__icon {
  grid-row: span 2;
}

.contact__block h2 {
  align-self: end;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--muted);
}

.contact__block p,
.contact__block address {
  grid-column: 2;
  color: var(--text);
  line-height: 1.55;
}

.contact__block a {
  text-decoration: none;
}

.contact__block a:hover {
  color: var(--cyan);
}

.next-steps {
  display: grid;
  gap: 14px;
  padding-top: 28px;
  counter-reset: next;
}

.next-steps h2 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.next-steps ol {
  display: grid;
  gap: 12px;
}

.next-steps li {
  position: relative;
  padding-left: 40px;
  color: var(--muted);
  counter-increment: next;
}

.next-steps li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* 11 Formular -------------------------------------------------------------- */

.form-card {
  position: relative;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012) 46%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 50px 90px -56px rgba(0, 0, 0, 0.95);
}

.form {
  display: grid;
  gap: 22px;
}

.form__row {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field__label {
  font-size: 0.9375rem;
  font-weight: 500;
}

.field__hint {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(8, 13, 24, 0.55);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 168px;
  resize: vertical;
}

.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a7b1c3' stroke-width='1.6' 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 16px center;
}

.field select option {
  background: var(--surface);
  color: var(--text);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(167, 177, 195, 0.6);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(190, 208, 240, 0.5);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(8, 13, 24, 0.8);
  box-shadow: 0 0 0 4px rgba(53, 217, 255, 0.14);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(255, 138, 154, 0.16);
}

.field__error {
  display: none;
  align-items: flex-start;
  gap: 8px;
  color: var(--danger);
  font-size: var(--fs-small);
  line-height: 1.45;
}

.field__error.is-visible {
  display: flex;
}

.field__error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
}

.field__count {
  justify-self: end;
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-feature-settings: "tnum";
}

.check {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.check input {
  width: 26px;
  height: 26px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(8, 13, 24, 0.55) center / 16px no-repeat;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.check input:checked {
  border-color: var(--blue);
  background-color: var(--blue-strong);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E");
}

.check input:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(53, 217, 255, 0.18);
}

.check input[aria-invalid="true"] {
  border-color: var(--danger);
}

.check a {
  color: var(--text);
}

.check a:hover {
  color: var(--cyan);
}

/* Honeypot: für Menschen unsichtbar, für Bots ein gewöhnliches Feld */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions {
  display: grid;
  gap: 16px;
  align-items: center;
}

.form__note {
  color: var(--muted);
  font-size: var(--fs-small);
}

.form__status {
  display: none;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid rgba(255, 138, 154, 0.5);
  border-radius: var(--r-m);
  background: rgba(255, 138, 154, 0.08);
  color: #ffd3d9;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form__status.is-visible {
  display: flex;
}

.form__status .icon {
  margin-top: 2px;
  color: var(--danger);
}

.form__status a {
  color: #fff;
}

.form-success {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: clamp(12px, 2vw, 24px) 0;
}

.form-success__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(110, 231, 168, 0.5);
  border-radius: 50%;
  background: rgba(110, 231, 168, 0.1);
  color: var(--success);
  box-shadow: 0 0 40px -8px rgba(110, 231, 168, 0.6);
}

.form-success__icon .icon {
  width: 28px;
  height: 28px;
}

.form-success:focus {
  outline: none;
}

.form-success h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem);
}

.form-success p {
  max-width: 48ch;
  color: var(--muted);
}

.noscript-note {
  padding: 16px 18px;
  border: 1px solid rgba(255, 196, 107, 0.5);
  border-radius: var(--r-m);
  background: rgba(255, 196, 107, 0.08);
  color: #ffe2b3;
  font-size: 0.9375rem;
}

.noscript-note a {
  color: #fff;
}

/* 12 Footer & Rechtstexte -------------------------------------------------- */

.site-footer {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.5), rgba(8, 13, 24, 0));
}

.site-footer__grid {
  display: grid;
  gap: 40px;
}

.site-footer__brand {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.site-footer__brand p {
  max-width: 34ch;
  color: var(--muted);
}

.site-footer h2 {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--muted);
}

.site-footer nav li + li {
  margin-top: 2px;
}

.site-footer nav a,
.site-footer address a {
  display: inline-block;
  padding: 5px 0;
  text-decoration: none;
  transition: color 0.25s;
}

.site-footer nav a:hover,
.site-footer address a:hover {
  color: var(--cyan);
}

.site-footer address {
  line-height: 1.7;
}

.site-footer__area {
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--fs-small);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-small);
}

.site-footer__bottom ul {
  display: flex;
  gap: 24px;
}

.site-footer__bottom a {
  text-decoration: none;
  transition: color 0.25s;
}

.site-footer__bottom a:hover {
  color: var(--text);
}

.prose {
  display: grid;
  gap: 18px;
  max-width: 70ch;
}

.prose h2 {
  margin-top: clamp(28px, 4vw, 48px);
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h3 {
  margin-top: 12px;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.prose p,
.prose li,
.prose address {
  color: #c6cfdf;
}

.prose a {
  color: var(--cyan);
}

.prose a:hover {
  color: #fff;
}

.prose ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  list-style: disc;
}

.prose ul li::marker {
  color: var(--blue);
}

.prose address {
  line-height: 1.7;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose__toc {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--glass-light);
}

.prose__toc ol {
  display: grid;
  gap: 6px;
  padding-left: 22px;
  list-style: decimal;
  color: var(--muted);
}

.prose__toc a {
  color: #c6cfdf;
  text-decoration: none;
}

.prose__toc a:hover {
  color: var(--cyan);
}

/* Deutlich markierte Platzhalter in den Rechtstexten */
.placeholder {
  display: block;
  padding: 14px 18px;
  border: 1px dashed var(--notice);
  border-radius: var(--r-s);
  background: rgba(255, 196, 107, 0.09);
  color: #ffe2b3;
}

.placeholder strong {
  display: block;
  color: var(--notice);
  font-size: 0.8125rem;
}

/* Fehlerseite */
.notfound {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
  --core-x: 84%;
  --core-y: 30%;
  --core-size: min(86vw, 460px);
}

.notfound__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
  justify-items: start;
}

.notfound__code {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}

.notfound p {
  max-width: 44ch;
  color: var(--muted);
  font-size: var(--fs-lead);
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Seitenwechsel: weiches Überblenden, wo der Browser es unterstützt */
@view-transition {
  navigation: auto;
}

@media (forced-colors: active) {
  .hero__title {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}
