/* ---------- Fonts (lokal gehostet, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrumentserif-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrumentserif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0b1a17;
  --ink-2: #12281f;
  --moss: #24524a;
  --teal: #2f7d6d;
  --paper: #f4f1ea;
  --white: #fffdf8;
  --lime: #d4ef6a;
  --muted: #5a6a65;
  --line: rgba(11, 26, 23, 0.1);
  --line-light: rgba(244, 241, 234, 0.12);
  --glass: rgba(244, 241, 234, 0.06);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 24px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .line > span, .fade-up, .msg { transform: none !important; opacity: 1 !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--lime); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 12px;
  background: var(--lime); color: var(--ink);
  padding: 10px 16px; border-radius: 8px; z-index: 200;
}
.skip:focus { left: 12px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .hero :focus-visible, .site-header :focus-visible { outline-color: var(--lime); }

/* Scroll-Fortschritt */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  transform-origin: left; transform: scaleX(var(--scroll, 0));
}

/* ---------- Typo ---------- */
h1, h2, h3 { margin: 0; font-weight: 400; }
.display {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8.4vw, 7.6rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
em { font-style: italic; }
.nowrap { white-space: nowrap; }
.h2 em { color: var(--teal); }
.dark .h2 em { color: var(--lime); }

.grad {
  background: linear-gradient(100deg, var(--lime) 10%, #8fe3c4 50%, var(--lime) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
  padding-right: .08em;
}
@keyframes shine { to { background-position: -200% 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 4px rgba(212, 239, 106, 0.28);
}
.dark .eyebrow, .hero .eyebrow { color: var(--lime); }
.pill-eyebrow {
  padding: 8px 14px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-light); background: var(--glass);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--paper) !important; letter-spacing: 0.1em;
}

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 36ch; }
.dark .lead { color: rgba(244, 241, 234, 0.72); }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font: 700 0.98rem/1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--moss); }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(212, 239, 106, 0.6); }
.btn-lime:hover { background: #e2f78e; box-shadow: 0 16px 40px -12px rgba(212, 239, 106, 0.8); }
.btn-lime::after, .btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%); }
.btn-lime:hover::after, .btn-primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.dark .btn-ghost, .hero .btn-ghost { border-color: var(--line-light); color: var(--paper); background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dark .btn-ghost:hover, .hero .btn-ghost:hover { border-color: rgba(244, 241, 234, 0.5); }

/* ---------- Header (schwebende Pille) ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; pointer-events: none; }
.header-shell { padding: 0 var(--gutter); }
.nav {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 66px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 10px 0 14px;
  background: rgba(11, 26, 23, 0.72);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  backdrop-filter: saturate(1.5) blur(18px);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  color: var(--paper);
  box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.5);
  transition: max-width .5s var(--ease), height .4s var(--ease), box-shadow .3s ease, background-color .3s ease;
}
.site-header.scrolled .nav { max-width: 1060px; height: 60px; background: rgba(11, 26, 23, 0.85); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6); }

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; font-weight: 700; letter-spacing: -0.01em;
  font-size: 1rem; line-height: 1.2;
}
.brand-mark { width: 36px; height: 36px; flex: none; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand small { display: block; font-weight: 500; font-size: 0.7rem; opacity: .6; letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; text-decoration: none; font-size: 0.92rem; font-weight: 500;
  padding: 9px 14px; border-radius: 999px; color: rgba(244, 241, 234, 0.78);
  transition: background-color .2s ease, color .2s ease;
}
.nav-links a:hover, .nav-links a.active { background: rgba(244, 241, 234, 0.1); color: var(--paper); }
.nav .btn { padding: 13px 20px; font-size: 0.9rem; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-light); background: transparent; color: var(--paper);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 940px) {
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav { padding-right: 9px; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(11, 26, 23, 0.95);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line-light); border-radius: 24px;
    padding: 10px;
    opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden;
    transition: opacity .25s ease, transform .3s var(--ease), visibility .3s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links li a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-links li.mobile-cta { padding: 8px 4px 4px; }
  .nav-links li.mobile-cta a { display: flex; justify-content: center; background: var(--lime); color: var(--ink); font-weight: 700; }
}
@media (min-width: 941px) { .mobile-cta { display: none; } }

/* ---------- Aurora-Hintergrund ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; min-width: 380px; min-height: 380px; left: -10%; top: -20%; background: #2f7d6d; opacity: .55; animation: drift1 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 36vw; height: 36vw; min-width: 300px; min-height: 300px; right: -8%; top: 10%; background: #a8d64a; opacity: .3; animation: drift2 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; min-width: 260px; min-height: 260px; left: 35%; bottom: -25%; background: #1f5f7a; opacity: .45; animation: drift3 20s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, 20vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-12vw, -18vh) scale(1.2); } }

.grid-lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(244, 241, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.noise {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: clamp(150px, 18vw, 200px) 0 clamp(110px, 12vw, 150px);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(48px, 6vw, 80px); align-items: center; }
.hero h1 { margin: 26px 0 28px; }
.hero .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; }
.hero .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes lineUp { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, .3s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero .lead { margin: 0 0 38px; color: rgba(244, 241, 234, 0.74); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 26px; font-size: 0.9rem; color: rgba(244, 241, 234, 0.6); display: flex; align-items: center; gap: 10px; }
.hero-note svg { width: 18px; height: 18px; color: var(--lime); flex: none; }

/* Hero-Visual: Aufgaben-Board */
.board-wrap { position: relative; perspective: 1200px; }
.board {
  position: relative;
  background: linear-gradient(160deg, rgba(244, 241, 234, 0.1), rgba(244, 241, 234, 0.03));
  border: 1px solid rgba(244, 241, 234, 0.14);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 4deg));
  transition: transform .6s var(--ease);
}
.board-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem;
  padding-bottom: 16px; border-bottom: 1px solid var(--line-light); margin-bottom: 6px;
}
.board-head strong { color: var(--paper); font-size: 0.95rem; font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(212, 239, 106, 0.1); color: var(--lime); font-weight: 600; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 239, 106, .6); } 50% { box-shadow: 0 0 0 6px rgba(212, 239, 106, 0); } }

.task {
  display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px dashed var(--line-light);
  font-size: 0.93rem;
}
.task:last-of-type { border-bottom: 0; }
.task-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(244, 241, 234, 0.08); }
.task-icon svg { width: 18px; height: 18px; }
.task small { display: block; color: rgba(244, 241, 234, 0.5); font-size: 0.78rem; }
.bar { display: block; height: 3px; border-radius: 3px; background: rgba(244, 241, 234, 0.1); margin-top: 8px; overflow: hidden; }
.bar::after {
  content: ""; display: block; height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  transform: scaleX(0); transform-origin: left;
  animation: fill 6s var(--ease) infinite; animation-delay: var(--d, 0s);
}
@keyframes fill { 0% { transform: scaleX(0); opacity: 1; } 50%, 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.chip { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.chip-ai { background: var(--lime); color: var(--ink); }
.chip-team { background: rgba(244, 241, 234, 0.12); color: var(--paper); }

.board-foot {
  margin-top: 12px; padding: 16px 18px;
  border-radius: 18px; background: linear-gradient(120deg, var(--moss), var(--teal));
  display: flex; align-items: center; gap: 14px;
  font-size: 0.9rem;
}
.board-foot svg { width: 24px; height: 24px; color: var(--lime); flex: none; }
.board-foot strong { display: block; font-size: 1rem; }
.board-foot span { color: rgba(244, 241, 234, 0.8); }

.float {
  position: absolute; z-index: 2;
  background: var(--white); color: var(--ink);
  border-radius: 16px; padding: 12px 16px;
  font-size: 0.82rem; font-weight: 600;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; gap: 10px;
  animation: bob 6s ease-in-out infinite;
}
.float b { font: 400 1.7rem/1 var(--serif); color: var(--teal); }
.float-1 { left: -34px; bottom: -28px; }
.float-2 { right: -18px; top: -24px; background: var(--lime); animation-delay: -3s; }
.float-2 svg { width: 18px; height: 18px; }
@keyframes bob { 50% { transform: translateY(-10px); } }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .board { transform: none; }
  .float-1 { left: 12px; }
  .float-2 { right: 12px; }
}

/* ---------- Laufband ---------- */
.marquee {
  position: relative; z-index: 2;
  margin: -34px -20px 0; padding: 22px 0;
  background: var(--lime); color: var(--ink);
  transform: rotate(-1.6deg);
  overflow: hidden; white-space: nowrap;
  box-shadow: 0 20px 40px -24px rgba(11, 26, 23, 0.5);
}
.marquee-track { display: inline-flex; animation: scroll 36s linear infinite; }
.marquee span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font: 400 clamp(1.5rem, 2.6vw, 2.2rem)/1 var(--serif);
}
.marquee span::after { content: "✦"; font-size: .65em; color: var(--teal); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; margin-bottom: clamp(44px, 6vw, 76px); }
.section-head p { color: var(--muted); margin: 0; max-width: 44ch; justify-self: end; font-size: 1.05rem; }
.section-head .h2 { margin-top: 18px; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head p { justify-self: start; }
}
.dark { background: var(--ink); color: var(--paper); }

/* ---------- Bento: Leistungen ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .9s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(47, 125, 109, 0.13), transparent 60%);
  transition: opacity .3s ease;
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(11, 26, 23, 0.45); }
.card.dark { background: var(--ink); border-color: var(--line-light); }
.card.dark::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(212, 239, 106, 0.15), transparent 60%); }
.card-a { grid-column: span 5; }
.card-b { grid-column: span 7; }
.card-c { grid-column: span 12; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.card-num { font: 400 1.1rem/1 var(--serif); opacity: .5; }
.card-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--paper); display: grid; place-items: center; color: var(--teal);
  transition: transform .5s var(--ease);
}
.card:hover .card-icon { transform: rotate(-10deg) scale(1.08); }
.card.dark .card-icon { background: rgba(244, 241, 234, 0.08); color: var(--lime); }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 12px; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card.dark p { color: rgba(244, 241, 234, 0.7); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 26px; }
.tag { font-size: 0.78rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--teal); }
.card.dark .tag { border-color: var(--line-light); color: var(--lime); }

/* Mini-Visual: Prozess-Flow */
.flow { display: flex; align-items: center; margin: 0 0 28px; }
.flow .node {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  display: grid; place-items: center; background: var(--paper); color: var(--muted);
  animation: nodeOn 4.5s ease-in-out infinite; animation-delay: var(--d);
}
.flow .node svg { width: 19px; height: 19px; }
.flow .wire { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.flow .wire::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  transform: translateX(-100%);
  animation: wire 4.5s linear infinite; animation-delay: var(--d);
}
@keyframes wire { 0% { transform: translateX(-100%); } 30%, 100% { transform: translateX(260%); } }
@keyframes nodeOn { 0%, 100% { background: var(--paper); color: var(--muted); } 12%, 30% { background: var(--lime); color: var(--ink); } }

/* Mini-Visual: Chat */
.chat { display: flex; flex-direction: column; gap: 10px; margin: 0 0 28px; min-height: 190px; justify-content: flex-start; }
.msg {
  max-width: 84%; padding: 11px 15px; border-radius: 18px; font-size: 0.9rem; line-height: 1.45;
  opacity: 0; transform: translateY(8px);
  animation: msg 11s var(--ease) infinite; animation-delay: var(--d);
}
.msg.user { align-self: flex-end; background: rgba(244, 241, 234, 0.1); border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--lime); color: var(--ink); border-bottom-left-radius: 6px; font-weight: 500; }
@keyframes msg { 0% { opacity: 0; transform: translateY(8px); } 5%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
.chat-meta { font-size: 0.74rem; color: rgba(244, 241, 234, 0.45); display: flex; align-items: center; gap: 8px; margin-top: auto; }
.typing { display: inline-flex; gap: 3px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); animation: dot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-3px); opacity: .4; } }

/* Mini-Visual: Suche */
.search { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; font-size: 0.95rem; min-height: 54px;
}
.search-bar svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--teal); vertical-align: -3px; margin-left: 1px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.results { display: grid; gap: 8px; margin-top: 12px; }
.result {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  font-size: 0.88rem; line-height: 1.4;
  opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.result.show { opacity: 1; transform: none; }
.result:nth-child(2) { transition-delay: .12s; }
.result-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; color: var(--teal); }
.result-ico svg { width: 17px; height: 17px; }
.result small { display: block; color: var(--muted); font-size: 0.78rem; }
.result mark { background: rgba(212, 239, 106, 0.7); color: inherit; padding: 0 3px; border-radius: 4px; }
.match { font-size: 0.72rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: var(--lime); }
.no-js .result { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .card-a, .card-b, .card-c { grid-column: span 12; }
  .card-c { grid-template-columns: 1fr; }
}

/* ---------- Vision ---------- */
.vision { overflow: hidden; border-radius: clamp(28px, 4vw, 48px); margin: 0 clamp(8px, 1.4vw, 20px); }
.vision .wrap { position: relative; z-index: 1; }
.vision blockquote {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  line-height: 1; letter-spacing: -0.02em;
  max-width: 17ch;
}
.vision blockquote .w { opacity: .18; transition: opacity .4s ease, color .4s ease; }
.vision blockquote .w.on { opacity: 1; }
.vision blockquote em .w.on { color: var(--lime); }
.no-js .vision blockquote .w { opacity: 1; }
.vision-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); margin-top: clamp(56px, 7vw, 96px); align-items: start; }
.vision-text p { color: rgba(244, 241, 234, 0.76); font-size: 1.08rem; margin: 0 0 20px; }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pillars li {
  display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: center;
  padding: 16px 18px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--line-light);
  transition: transform .4s var(--ease), background-color .3s ease, border-color .3s ease, opacity .9s var(--ease);
}
.pillars li:hover { transform: translateX(6px); background: rgba(212, 239, 106, 0.08); border-color: rgba(212, 239, 106, 0.3); }
.pillars .pill-ico { width: 50px; height: 50px; border-radius: 14px; background: rgba(212, 239, 106, 0.1); display: grid; place-items: center; color: var(--lime); }
.pillars svg { width: 22px; height: 22px; }
.pillars strong { display: block; font-weight: 600; }
.pillars span { font-size: 0.9rem; color: rgba(244, 241, 234, 0.6); }
@media (max-width: 900px) { .vision-bottom { grid-template-columns: 1fr; } }

/* ---------- Ablauf ---------- */
.steps { --p: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.steps::before, .steps::after {
  content: ""; position: absolute; top: 35px; left: 36px; right: calc(33.33% - 36px); height: 2px; border-radius: 2px;
}
.steps::before { background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--teal), var(--lime)); transform-origin: left; transform: scaleX(var(--p)); }
.step { position: relative; z-index: 1; }
.step-num {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  font: 400 1.9rem/1 var(--serif);
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--line);
  transition: background-color .4s ease, border-color .4s ease, transform .5s var(--ease);
}
.step.on .step-num { background: var(--ink); color: var(--lime); border-color: var(--ink); transform: scale(1.06); }
.no-js .step .step-num { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.step-body {
  margin-top: 26px; padding: 28px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.step:hover .step-body { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(11, 26, 23, 0.45); }
.step .pill {
  display: inline-block; margin-bottom: 16px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; background: var(--paper); color: var(--teal);
}
.step:first-child .pill, .step:nth-child(2) .pill { background: var(--lime); color: var(--ink); }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps::before, .steps::after { top: 36px; bottom: 36px; left: 35px; right: auto; width: 2px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--p)); }
  .step { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; }
  .step-body { margin-top: 0; padding: 22px; }
}
@media (max-width: 480px) {
  .step { grid-template-columns: 56px 1fr; gap: 12px; }
  .step-num { width: 56px; height: 56px; font-size: 1.5rem; }
  .steps::before, .steps::after { left: 27px; top: 28px; bottom: 28px; }
}

/* ---------- CTA-Band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--lime);
  border-radius: 36px;
  padding: clamp(40px, 7vw, 88px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band .h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin-top: 16px; }
.cta-band .h2 em { color: var(--ink); }
.cta-band .eyebrow { color: var(--ink); }
.cta-band .eyebrow::before { background: var(--ink); box-shadow: none; }
.rings { position: absolute; right: -140px; top: 50%; width: 560px; height: 560px; margin-top: -280px; z-index: -1; }
.rings i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(11, 26, 23, 0.16); animation: ring 6s ease-out infinite; }
.rings i:nth-child(2) { animation-delay: -2s; }
.rings i:nth-child(3) { animation-delay: -4s; }
@keyframes ring { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.cta-band .btn-primary { padding: 20px 30px; font-size: 1.02rem; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Referenz ---------- */
.testimonial { max-width: 1040px; margin: 0 auto; text-align: center; }
.testimonial blockquote {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  line-height: 1.12; letter-spacing: -0.015em;
}
.testimonial .thanks { display: block; margin-bottom: 18px; font-style: italic; color: var(--teal); }
.person { display: inline-flex; align-items: center; gap: 16px; margin-top: 40px; text-align: left; padding: 10px 24px 10px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.person img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.person strong { display: block; font-size: 1rem; }
.person span { font-size: 0.88rem; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact { overflow: hidden; border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0; }
.contact .wrap { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.contact .h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.contact .lead { margin-top: 24px; max-width: 42ch; }
.contact-card {
  background: linear-gradient(160deg, rgba(244, 241, 234, 0.09), rgba(244, 241, 234, 0.03));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-light);
  border-radius: 28px;
  padding: 10px 28px;
}
.contact-row {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line-light);
  text-decoration: none;
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(212, 239, 106, 0.1); display: grid; place-items: center; color: var(--lime); transition: background-color .3s ease, color .3s ease; }
a.contact-row:hover .ico { background: var(--lime); color: var(--ink); }
.contact-row .ico svg { width: 20px; height: 20px; }
.contact-row small { display: block; font-size: 0.74rem; color: rgba(244, 241, 234, 0.55); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.contact-row span { font-weight: 600; word-break: break-word; }
.contact-row .arrow { width: 18px; height: 18px; color: rgba(244, 241, 234, 0.45); transition: transform .3s var(--ease), color .3s ease; }
a.contact-row:hover .arrow { transform: translate(4px, -4px); color: var(--lime); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact-card { padding: 4px 18px; } .contact-row { grid-template-columns: 44px 1fr auto; gap: 12px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(244, 241, 234, 0.65); padding: 0 0 36px; font-size: 0.9rem; position: relative; overflow: hidden; }
.footer-word {
  font: 400 clamp(2.6rem, 11.5vw, 11rem)/0.9 var(--serif);
  letter-spacing: -0.03em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(244, 241, 234, 0.18);
  padding: clamp(48px, 6vw, 80px) 0 clamp(28px, 3vw, 44px);
  text-align: center; user-select: none;
}
.footer-word em { -webkit-text-stroke: 1px rgba(212, 239, 106, 0.5); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line-light); }
.footer-inner .brand { color: var(--paper); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; transition: color .2s ease; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--lime); }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease), translate .9s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; translate: 0 0; }
.no-js .reveal { opacity: 1; translate: 0 0; }

/* ---------- Rechtstexte ---------- */
.legal-hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: clamp(140px, 16vw, 190px) 0 clamp(48px, 6vw, 80px);
  border-radius: 0 0 clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px);
}
.legal-hero::before {
  content: ""; position: absolute; width: 560px; height: 560px; right: -140px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 125, 109, .6), transparent 65%);
  animation: drift2 18s ease-in-out infinite alternate;
}
.legal-hero .wrap { position: relative; }
.legal-hero .eyebrow { color: var(--lime); }
.legal-hero .display { font-size: clamp(2.6rem, 7vw, 6rem); margin-top: 18px; overflow-wrap: anywhere; }
.legal-hero p { color: rgba(244, 241, 234, 0.65); margin: 20px 0 0; }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px, 6vw, 80px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(72px, 9vw, 120px); }
.legal-nav { position: sticky; top: 110px; align-self: start; max-height: calc(100vh - 130px); overflow: auto; }
.legal-nav p { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal-nav a { overflow-wrap: anywhere; display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; font-size: 0.92rem; color: var(--muted); transition: color .2s ease, border-color .2s ease; }
.legal-nav a:hover, .legal-nav a.active { color: var(--ink); border-left-color: var(--teal); }
.prose { max-width: 74ch; font-size: 1rem; overflow-wrap: anywhere; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.8rem, 2.8vw, 2.3rem); line-height: 1.12; margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; margin: 1.8em 0 0.5em; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--teal); text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose strong { font-weight: 700; }
.prose .address { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; font-weight: 600; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; max-height: none; }
  .legal-nav ul { columns: 1; }
}
