/* Fynanto – Websites für Betriebe aus Darmstadt und Umgebung */
:root {
  --night: #0a0c18;
  --night-2: #12152a;
  --night-line: #262a45;
  --paper: #f6f7fb;
  --surface: #ffffff;
  --ink: #11142a;
  --ink-soft: #4a4f69;
  --on-night: #f4f5ff;
  --on-night-soft: #b6bbd6;
  --line: #e1e3ee;
  --signal: #2f5bff;
  --signal-hover: #1f47e6;
  --signal-soft: #e9edff;
  --cyan: #0bbcff;
  --violet: #9a52ff;
  --ok: #1f9d64;
  --brand-grad: linear-gradient(120deg, var(--cyan) 0%, var(--signal) 48%, var(--violet) 100%);

  --display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 20, 42, .05), 0 10px 30px rgba(17, 20, 42, .07);
  --max: 1160px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--signal); }
a:hover { color: var(--signal-hover); }
button { font: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 12px; background: #fff; color: var(--ink); padding: 8px 12px; z-index: 200; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0 0 .5em; letter-spacing: -.03em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -.045em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0 0 1em; }
.grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.label {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--signal);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.label::before { content: ""; width: 18px; height: 2px; background: var(--brand-grad); border-radius: 2px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 34em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px;
  padding: .8em 1.5em; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; touch-action: manipulation;
  transition: background .2s, color .2s, border-color .2s, box-shadow .25s, transform .2s var(--ease-out);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--signal); color: #fff; box-shadow: 0 8px 24px rgba(47, 91, 255, .28); }
.btn-primary:hover { background: var(--signal-hover); color: #fff; box-shadow: 0 10px 32px rgba(47, 91, 255, .4); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: var(--on-night); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn svg { flex: none; }

/* ===== Button-Animationen ===== */
.btn { position: relative; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: translateY(0) scale(.97); }

/* Lichtreflex, der über blaue Buttons läuft */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .8s var(--ease-out);
}
.btn-primary:hover::after, .btn-primary:focus-visible::after { transform: translateX(130%); }
.btn-shimmer::after { animation: shimmer 5.5s ease-in-out 2.2s infinite; }
@keyframes shimmer { 0%, 72% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

/* Pfeil schiebt nach rechts */
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(5px); }

/* Telefon klingelt */
.btn:hover .ring, .direct a:hover .ring { animation: ring .7s ease-in-out; transform-origin: 50% 60%; }
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-16deg); } 30% { transform: rotate(14deg); }
  45% { transform: rotate(-10deg); } 60% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); }
}

/* Welle beim Antippen (vom Finger bzw. Klickpunkt aus) */
.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .65s ease-out forwards;
}
.btn-outline .ripple, .umbau-toggle .ripple { background: rgba(47, 91, 255, .22); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Magnet-Buttons: folgen am Desktop leicht der Maus (Werte setzt main.js) */
.btn-magnetic { transition: background .2s, color .2s, border-color .2s, box-shadow .25s, translate .35s var(--ease-out), transform .2s var(--ease-out); translate: var(--mx-b, 0) var(--my-b, 0); }

/* Ladeanzeige beim Absenden */
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Logo */
/* Proportionen wie im Original: F ca. 2x Schrifthöhe, "ynanto" sitzt unter dem oberen F-Balken */
.logo {
  display: inline-flex; align-items: flex-end; text-decoration: none; color: inherit;
  font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.035em; line-height: 1;
}
.logo:hover { color: inherit; }
.logo img { height: 1.8em; width: auto; flex: none; }
.logo span { margin-left: -.46em; padding-bottom: .36em; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; color: var(--on-night);
  transition: background .3s, color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.site-header.solid {
  background: rgba(246, 247, 251, .88); color: var(--ink); border-color: var(--line);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.site-header.dark {
  background: rgba(10, 12, 24, .82); color: var(--on-night); border-color: var(--night-line);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: inherit; text-decoration: none; font-size: .95rem; opacity: .85; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav .btn { opacity: 1; min-height: 42px; padding: .5em 1.15em; font-size: .92rem; color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden; background: var(--night); color: var(--on-night);
  min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; padding: 120px 0 90px; isolation: isolate;
}
.hero-grid, .hero-grid-lit {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-size: 48px 48px; background-position: center center;
}
.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 60% 45%, #000 20%, transparent 78%);
}
.hero-grid-lit {
  background-image:
    linear-gradient(rgba(110, 140, 255, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 140, 255, .55) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(240px circle at var(--mx, 70%) var(--my, 40%), #000, transparent 72%);
  mask-image: radial-gradient(240px circle at var(--mx, 70%) var(--my, 40%), #000, transparent 72%);
  opacity: .9;
}
.hero-light {
  position: absolute; z-index: -2; pointer-events: none; border-radius: 50%; filter: blur(90px);
}
.hero-light.a { width: 620px; height: 620px; right: -160px; top: -120px; background: rgba(47, 91, 255, .42); animation: drift 18s ease-in-out infinite alternate; }
.hero-light.b { width: 520px; height: 520px; right: 12%; bottom: -260px; background: rgba(154, 82, 255, .34); animation: drift 22s ease-in-out infinite alternate-reverse; }
.hero-light.c { width: 360px; height: 360px; left: -140px; top: 30%; background: rgba(11, 188, 255, .16); }
@keyframes drift { to { transform: translate3d(-60px, 50px, 0) scale(1.08); } }

.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; width: 100%; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { color: var(--on-night-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 26px; }
.hero-note { display: flex; align-items: center; gap: 10px; font-size: .93rem; color: var(--on-night-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; flex: none; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }

.hero-mark { position: relative; perspective: 900px; display: grid; place-items: center; }
.hero-mark::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 91, 255, .55), rgba(154, 82, 255, .2) 50%, transparent 70%);
  filter: blur(30px);
}
.hero-mark img {
  width: min(400px, 100%); position: relative;
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform .6s var(--ease-out);
  filter: drop-shadow(0 30px 50px rgba(47, 91, 255, .35));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -14px; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-family: var(--mono); font-size: .75rem; color: var(--on-night-soft); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .8;
}
.scroll-cue:hover { color: #fff; }
.scroll-cue span { width: 1.5px; height: 34px; background: linear-gradient(var(--on-night-soft), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Hero load sequence */
.hero [data-load] { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 110ms + 100ms); }
.hero-mark[data-load] { transform: scale(.94); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ===== Hero-Stapel (nach 21st "hero-scroll-animation") =====
   --k läuft 0→1, während der Video-Abschnitt über den Hero fährt.
   Hero: scale 1→.8, rotate 0→-5deg. Video: scale .8→1, rotate 5→0deg. */
/* Unten hell statt schwarz: Unter dem Video-Abschnitt soll nie ein schwarzer Streifen aufblitzen */
.stack {
  --k: 0; position: relative; overflow-x: hidden; overflow-x: clip;
  background: linear-gradient(#000 0, #000 calc(100% - 160px), var(--paper) calc(100% - 160px));
}
.stack .hero {
  position: sticky; top: 0;
  transform: scale(calc(1 - var(--k) * .2)) rotate(calc(var(--k) * -5deg));
  border-radius: calc(var(--k) * 32px);
  will-change: transform;
}
.video-sec {
  position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; padding: 110px 0 90px; background: var(--paper);
  transform: scale(calc(.8 + var(--k) * .2)) rotate(calc((1 - var(--k)) * 5deg));
  border-radius: calc((1 - var(--k)) * 32px) calc((1 - var(--k)) * 32px) 0 0;
  /* Von unten skalieren: Die Unterkante bleibt bündig mit dem nächsten Abschnitt */
  transform-origin: center bottom; will-change: transform;
}
.video-sec .wrap { width: 100%; }
.video-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.video-head .label { justify-content: center; }
.video-frame {
  position: relative; max-width: 1040px; margin: 0 auto; border-radius: 22px; overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--night);
  box-shadow: 0 50px 100px -30px rgba(17, 20, 42, .45), 0 0 0 1px rgba(17, 20, 42, .06);
}
.video-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--brand-grad); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .7;
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; border: 0; cursor: pointer; color: #fff;
  display: flex; align-items: flex-end; justify-content: flex-start; gap: 14px; padding: 0 0 4.5% 4.5%;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 12, 24, .6));
  transition: opacity .3s;
}
.video-play-btn {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px; flex: none;
  background: var(--brand-grad); box-shadow: 0 0 0 10px rgba(255, 255, 255, .12), 0 20px 50px rgba(47, 91, 255, .5);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.video-play:hover .video-play-btn, .video-play:focus-visible .video-play-btn { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(255, 255, 255, .16), 0 24px 60px rgba(47, 91, 255, .6); }
/* Pulsierender Ring lädt zum Abspielen ein */
.video-play-btn { position: relative; }
.video-play-btn::before, .video-play-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(255, 255, 255, .7); animation: pulse-ring 2.4s ease-out infinite;
}
.video-play-btn::after { animation-delay: 1.2s; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.video-play:hover .video-play-btn svg { transform: scale(1.1); }
.video-play-btn svg { transition: transform .3s var(--ease-out); }
.video-play-text { font-weight: 600; font-size: 1.05rem; text-align: left; line-height: 1.3; padding-bottom: 10px; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.video-play-text small { display: block; font-family: var(--mono); font-weight: 400; font-size: .78rem; opacity: .8; }
@media (max-width: 720px) {
  .video-play { padding: 0 0 3% 3%; background: none; }
  .video-play-btn { width: 44px; height: 44px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .14), 0 10px 30px rgba(47, 91, 255, .5); }
  .video-play-btn svg { width: 20px; height: 20px; }
  .video-play-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .video-frame { border-radius: 14px; }
  .video-sec { min-height: 0; padding: 96px 0 72px; }
}
.video-frame.playing .video-play { opacity: 0; pointer-events: none; }

/* ===== Der Umbau (Signatur) ===== */
.umbau { position: relative; height: 340vh; background: var(--paper); }
.umbau-stage {
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; align-items: center; overflow: hidden;
}
.umbau-stage .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; width: 100%; padding-top: 50px; }
.umbau-copy { position: relative; min-height: 290px; }
.umbau-copy h2 { margin-bottom: .6em; }
.state { position: absolute; left: 0; right: 0; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s var(--ease-out); }
.state.on { opacity: 1; transform: none; }
.state b { display: block; font-family: var(--mono); font-weight: 500; font-size: .8rem; letter-spacing: .04em; margin-bottom: 8px; color: var(--ink-soft); }
.state p { font-size: 1.12rem; color: var(--ink-soft); max-width: 26em; }
.state-slot { position: relative; height: 150px; }
.progress { display: flex; gap: 6px; margin-top: 12px; }
.progress i { height: 3px; flex: 1; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.progress i::after { content: ""; position: absolute; inset: 0; background: var(--brand-grad); transform: scaleX(var(--f, 0)); transform-origin: left; }
.umbau-toggle { display: none; gap: 8px; margin-top: 20px; }
.umbau-toggle button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .5em 1em; cursor: pointer; font-weight: 600; min-height: 44px; }
.umbau-toggle button[aria-pressed="true"] { border-color: var(--signal); color: var(--signal); }

.browser {
  --p: 0;
  position: relative; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 40px 80px -20px rgba(17, 20, 42, .28), 0 0 0 1px rgba(17, 20, 42, .02);
  overflow: hidden;
}
.browser-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; background: #eef0f6; border-bottom: 1px solid var(--line); }
.browser-bar .lights { display: flex; gap: 6px; }
.browser-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: #d3d6e2; }
.browser-bar .url { flex: 1; font-family: var(--mono); font-size: .74rem; color: var(--ink-soft); background: #fff; border-radius: 6px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-view { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; }
.site { position: absolute; inset: 0; }
.site-new { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.scanline {
  position: absolute; top: 0; bottom: 0; width: 3px; left: calc(var(--p) * 100%); margin-left: -1.5px;
  background: linear-gradient(180deg, var(--cyan), var(--signal), var(--violet));
  box-shadow: 0 0 18px 4px rgba(47, 91, 255, .55), 0 0 60px 12px rgba(154, 82, 255, .25);
  opacity: calc(min(var(--p) * 20, 1) * min((1 - var(--p)) * 20, 1));
  pointer-events: none;
}
.chip {
  position: absolute; bottom: 12px; z-index: 3; font-family: var(--mono); font-size: .7rem; padding: 4px 9px; border-radius: 999px;
  background: rgba(17, 20, 42, .82); color: #fff; transition: opacity .3s;
}
.chip.before { left: 12px; opacity: calc(1 - var(--p) * 2); }
.chip.after { right: 12px; opacity: calc(var(--p) * 2 - 1); background: var(--signal); }

/* Alte Seite (bewusst veraltet) */
.site-old {
  background: #e9e4cc; font-family: "Times New Roman", Times, serif; color: #222; font-size: 11px; line-height: 1.3;
  padding: 10px; display: flex; flex-direction: column; gap: 6px;
}
.old-head { background: linear-gradient(#3b5ba5, #1f3a7a); color: #ff0; text-align: center; padding: 8px; border: 3px ridge #8aa0d0; }
.old-head strong { font-size: 19px; font-family: "Comic Sans MS", "Comic Sans", cursive; text-shadow: 2px 2px 0 #000; display: block; }
.old-nav { text-align: center; font-size: 11px; background: #d8d2b0; padding: 4px; border: 1px solid #b0a880; }
.old-nav a { color: #00e; }
.old-body { display: grid; grid-template-columns: 1fr 2.2fr; gap: 6px; flex: 1; min-height: 0; }
.old-side { background: #f5f0d8; border: 1px solid #b0a880; padding: 6px; }
.old-side p { margin: 0 0 6px; }
.old-main { background: #fff; border: 1px solid #b0a880; padding: 8px; overflow: hidden; }
.old-main h4 { margin: 0 0 4px; color: #c00; font-size: 14px; text-decoration: underline; }
.old-construct { height: 22px; margin: 6px 0; background: repeating-linear-gradient(45deg, #fc0 0 10px, #111 10px 20px); color: #fff; font-weight: bold; text-align: center; line-height: 22px; text-shadow: 1px 1px 0 #000; font-family: Arial, sans-serif; font-size: 10px; }
.old-photo { width: 64px; height: 48px; background: linear-gradient(135deg, #9c9c9c, #6e6e6e); float: right; margin: 0 0 4px 6px; border: 2px outset #ccc; }
.old-counter { font-family: "Courier New", monospace; background: #000; color: #0f0; padding: 1px 4px; display: inline-block; }
.old-foot { text-align: center; font-size: 9px; color: #555; }

/* Neue Seite */
.site-new { background: #fff; font-family: var(--body); color: #1d2433; display: flex; flex-direction: column; }
.new-nav { display: flex; justify-content: space-between; align-items: center; padding: 3.2% 5%; font-size: clamp(9px, 1.25vw, 12px); }
.new-nav b { font-family: var(--display); font-size: 1.15em; letter-spacing: -.02em; }
.new-nav span { display: flex; gap: 1.4em; color: #5a6275; }
.new-hero {
  flex: 1; position: relative; margin: 0 3.5%; border-radius: 10px; overflow: hidden; color: #fff;
  padding: 6% 6%; display: flex; flex-direction: column; justify-content: center;
  background:
    linear-gradient(90deg, rgba(20, 28, 40, .82) 0%, rgba(20, 28, 40, .45) 60%, rgba(20, 28, 40, .1)),
    linear-gradient(105deg, #d9c6a5 0 22%, #c7a77a 22% 23%, #e8dcc5 23% 52%, #bfa27a 52% 53%, #a8c3c7 53% 100%);
}
.new-hero small { font-size: clamp(8px, 1vw, 11px); opacity: .85; letter-spacing: .06em; text-transform: uppercase; }
.new-hero strong { font-family: var(--display); font-size: clamp(16px, 3vw, 32px); line-height: 1.05; letter-spacing: -.03em; margin: .3em 0 .5em; max-width: 12em; }
.new-btns { display: flex; gap: .6em; flex-wrap: wrap; }
.new-btns span { font-size: clamp(8px, 1vw, 11px); font-weight: 700; padding: .7em 1.2em; border-radius: 999px; background: #f2a541; color: #1d2433; }
.new-btns span + span { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.new-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5%; padding: 3% 3.5% 3.5%; font-size: clamp(8px, 1vw, 11px); }
.new-info div { background: #f3f4f7; border-radius: 8px; padding: .9em 1em; }
.new-info b { display: block; font-size: 1.1em; color: #1d2433; }
.new-info .open { color: var(--ok); }

/* Sections */
section[id] { scroll-margin-top: 80px; }
.section { padding: clamp(80px, 11vw, 130px) 0; }
.section-white { background: var(--surface); border-block: 1px solid var(--line); }
.head { max-width: 680px; margin-bottom: 56px; }

/* Leistungen */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--surface); padding: 32px 30px; transition: background .25s; }
.feature:hover { background: #fbfbfe; }
.feature svg { color: var(--signal); margin-bottom: 18px; }
.feature p { color: var(--ink-soft); margin: 0; }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { position: relative; padding-top: 64px; }
.steps li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; color: var(--signal); background: var(--signal-soft);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 58px; right: -14px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.steps p { color: var(--ink-soft); margin: 0; }

/* Branchen */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s; }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-top { aspect-ratio: 16 / 10; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; position: relative; }
.case-top::before {
  content: ""; position: absolute; top: 16px; left: 20px; width: 30px; height: 7px; border-radius: 4px;
  background: rgba(255, 255, 255, .6); box-shadow: 40px 0 0 rgba(255, 255, 255, .3), 80px 0 0 rgba(255, 255, 255, .3);
}
.case-top small { font-size: .78rem; opacity: .85; }
.case-top b { font-family: var(--display); font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.15; }
.case-top .pill { align-self: flex-start; margin-top: 12px; font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #fff; color: #1d2433; }
.c1 { background: linear-gradient(140deg, #3c4f66, #1b2533); }
.c2 { background: linear-gradient(140deg, #3f8f8b, #22575a); }
.c3 { background: linear-gradient(140deg, #c0703c, #7b4021); }
.case-body { padding: 22px 24px 26px; }
.case-body .k { font-family: var(--mono); font-size: .75rem; color: var(--signal); }
.case-body h3 { margin: 6px 0 8px; }
.case-body p { color: var(--ink-soft); margin: 0; }
.note { font-size: .92rem; color: var(--ink-soft); margin-top: 26px; }

/* Preis */
.pricing { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; position: relative; }
.price-card.main { border: 0; }
.price-card.main::before {
  content: ""; position: absolute; inset: 0; padding: 2px; border-radius: var(--radius); background: var(--brand-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none;
}
.price { font-family: var(--display); font-size: clamp(2.8rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--body); font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.checks { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--signal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.price-card .checks.two { grid-template-columns: 1fr 1fr; }

/* Über mich */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
.portrait {
  width: 100%; aspect-ratio: 4 / 5; border-radius: 22px; position: relative; overflow: hidden;
  background: var(--night); display: grid; place-items: center;
}
.portrait::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(circle at 30% 30%, rgba(11, 188, 255, .5), transparent 45%), radial-gradient(circle at 70% 75%, rgba(154, 82, 255, .5), transparent 50%); }
.portrait span { position: relative; font-family: var(--display); font-weight: 700; font-size: 5rem; color: #fff; letter-spacing: -.05em; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.places { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.places li { font-size: .88rem; padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.places li.core { border-color: var(--signal); color: var(--signal); font-weight: 600; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.08rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(45deg); transition: transform .25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-soft); padding-right: 44px; }

/* Kontakt (dunkel, Klammer zum Hero) */
.contact { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; isolation: isolate; }
.contact .hero-light.a { top: auto; bottom: -300px; right: -200px; }
.contact .label { color: #8fa6ff; }
.contact .lead { color: var(--on-night-soft); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.direct { display: grid; gap: 12px; margin-top: 34px; }
.direct a {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; text-decoration: none;
  color: var(--on-night); border: 1px solid var(--night-line); background: rgba(255, 255, 255, .02); transition: border-color .2s, background .2s;
}
.direct a:hover { border-color: #5a72ff; background: rgba(47, 91, 255, .08); }
.direct .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(47, 91, 255, .16); color: #8fa6ff; flex: none; }
.direct small { display: block; color: var(--on-night-soft); font-size: .82rem; }

.form { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 20px; padding: 34px; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-size: .9rem; font-weight: 600; color: var(--on-night); }
.form label em { font-style: normal; color: var(--on-night-soft); font-weight: 400; }
.form input, .form textarea, .form select {
  font: inherit; font-size: 1rem; width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 11px;
  background: #0d1022; color: var(--on-night); border: 1.5px solid var(--night-line); transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(47, 91, 255, .25); }
.form .hint { font-size: .84rem; color: var(--on-night-soft); margin: 2px 0 20px; }
.form .hint a { color: #a9b8ff; }
.form .btn { width: 100%; }
.hp { position: absolute; left: -5000px; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-night-soft); border-top: 1px solid var(--night-line); padding: 40px 0 34px; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; }
.site-footer .logo { color: #fff; font-size: 1.2rem; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copy { width: 100%; color: #7d84a3; font-size: .84rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

/* Legal pages */
.legal-page .site-header { position: sticky; }
.legal { padding: 70px 0 100px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: .8em; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink-soft); }
.back { display: inline-block; margin-bottom: 28px; text-decoration: none; font-weight: 600; }

/* Responsive */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .umbau-stage .wrap { grid-template-columns: 1fr; gap: 22px; padding-top: 74px; }
  .umbau-copy { min-height: 0; }
  .umbau-copy h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: .4em; }
  .state-slot { height: 104px; }
  .state p { font-size: 1rem; }
  .features, .cases { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .steps li::after { display: none; }
  .pricing, .contact-grid, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .about { grid-template-columns: 220px 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .site-header .wrap { height: 64px; }
  .hero { padding: 100px 0 90px; }
  /* Handy: weniger Blau. Kein Mauslicht im Raster, Lichtschein klein und gedämpft in den Ecken */
  .hero-grid-lit, .hero-light.c { display: none; }
  .hero-grid { opacity: .6; }
  .hero-light { filter: blur(70px); }
  .hero-light.a { width: 260px; height: 260px; right: -120px; top: -90px; background: rgba(47, 91, 255, .28); }
  .hero-light.b { width: 240px; height: 240px; right: auto; left: -110px; bottom: -120px; background: rgba(154, 82, 255, .2); }
  .hero-actions .btn { flex: 1 1 100%; }
  .features, .cases, .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
  .row { grid-template-columns: 1fr; }
  .price-card, .form { padding: 26px 22px; }
  .price-card .checks.two { grid-template-columns: 1fr; }
  .umbau-stage .wrap { padding-top: 70px; }
  .state-slot { height: 120px; }
  .browser-view { aspect-ratio: 4 / 3.6; }
  .old-body { grid-template-columns: 1fr; }
  .old-side { display: none; }
  .new-info { grid-template-columns: 1fr 1fr; }
  .new-info div:last-child { display: none; }
  .new-nav span { display: none; }
}
@media (max-height: 640px) and (max-width: 1020px) {
  .umbau-copy h2 { display: none; }
}

/* Weniger Bewegung */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero [data-load], .reveal { opacity: 1; transform: none; }
  .stack .hero, .video-sec { transform: none; border-radius: 0; }
  .stack .hero { position: relative; }
  .umbau { height: auto; }
  .umbau-stage { position: relative; height: auto; padding: 100px 0; }
  .umbau-toggle { display: flex; }
  .progress { display: none; }
}
