/* ============================================================
   SwissFlow AI – Landingpage Styles (Premium / Runway-Stil)
   Schwarz-weisse Basis, dunkle Panels mit animiertem Hintergrund,
   grosse enge Typografie, Logo-Marquee, Scroll-Texteffekt.
   ============================================================ */

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben */
  --black: #0a0a0a;        /* Header, Panels, Footer */
  --panel: #0d1410;        /* dunkles Hero-Panel (grünstichig wie Vorlage) */
  --ink: #111111;          /* Haupttext auf hell */
  --ink-soft: #6b6b6b;     /* Sekundärtext */
  --ink-faint: #c9c9c9;    /* "ungefüllter" Statement-Text */
  --bg: #f5f5f3;           /* heller Grund (warmes Off-White) */
  --white: #ffffff;
  --line: #e4e4e0;         /* Hairlines */
  --line-dark: rgba(255, 255, 255, 0.14);
  --green: #19c37d;        /* einziger Farbakzent: Status/Erfolg */
  --amber: #e8a13a;        /* Priorität hoch (nur in der Demo) */

  /* Typografie: neutraler Grotesk-Stack, ladezeitfrei */
  --font-sans: "Helvetica Neue", Helvetica, "Segoe UI", Arial, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: 28px;
  --radius: 18px;
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.55); }

.section-intro {
  color: var(--ink-soft);
  max-width: 42em;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: #ebebeb; }

.btn-ghost {
  color: var(--white);
  border-color: var(--line-dark);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }

.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* Pfeil im Button rutscht beim Hover leicht nach rechts */
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 72px;
  padding-inline: var(--gutter);
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.logo strong { font-weight: 700; }

/* Logo-Marke: weisses Quadrat mit "Fluss"-Linie (ruhig, geometrisch) */
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--white);
  position: relative;
  flex: none;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 12px 5px;
  border-radius: 2px;
  background: var(--black);
  clip-path: polygon(0 60%, 35% 20%, 65% 80%, 100% 40%, 100% 100%, 0 100%);
}

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Mobile-Menü-Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 10px; background: var(--black); }

.hero-panel {
  position: relative;
  min-height: min(78vh, 720px);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 7vw, 96px);
}

/* Animierter Hintergrund: langsam treibende Farbflächen + Korn
   (simuliert ein ruhiges Hintergrundvideo, ganz ohne Videodatei) */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* Video füllt das Panel komplett aus */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dunkle Abdunkelung über dem Video, damit Headline & Texte
   links gut lesbar bleiben (links stärker, rechts weicher) */
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 14, 11, 0.88) 0%, rgba(8, 14, 11, 0.62) 45%, rgba(8, 14, 11, 0.35) 100%),
    linear-gradient(0deg, rgba(8, 14, 11, 0.55), transparent 40%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 {
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, #15402c, transparent 70%);
  top: -20%; left: -12%;
  animation: drift1 26s ease-in-out infinite alternate;
}
.blob-2 {
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, #0f2b3a, transparent 70%);
  bottom: -25%; right: -8%;
  animation: drift2 32s ease-in-out infinite alternate;
}
.blob-3 {
  width: 30vw; height: 30vw;
  background: radial-gradient(circle, #1d5a3c, transparent 70%);
  top: 30%; left: 45%;
  opacity: 0.3;
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(10vw, 8vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-8vw, -10vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-12vw, 6vh) scale(0.9); } }

/* Feines Filmkorn als SVG-Noise-Overlay */
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 0.6em;
}

/* Headline-Zeilen schieben sich beim Laden von unten herein */
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: block;
  transform: translateY(110%);
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes riseIn { to { transform: translateY(0); } }

.hero-cta { margin-top: 6px; }

/* Subline unter der Headline */
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36em;
  margin: 0 0 28px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 30em;
}

/* Use-Case-Liste rechts (Uppercase, wie Runway) */
.hero-usecases {
  list-style: none;
  margin: 0;
  padding: 0;
  justify-self: end;
}
.hero-usecases li {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.65);
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.hero-usecases li:hover { color: var(--white); padding-left: 8px; }

.hero-trust {
  position: relative;
  margin: 48px 0 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Logo-Marquee (Kundenleiste) ---------- */
.logos {
  padding: 72px 0 64px;
  background: var(--bg);
  overflow: hidden;
}

.logos-intro {
  text-align: center;
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 40px;
  padding-inline: var(--gutter);
}

.marquee {
  position: relative;
  /* weiche Kanten links/rechts */
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Platzhalter-Wortmarken in unterschiedlichen Schriftstilen
   (vor Livegang durch echte Kundenlogos ersetzen) */
.wordmark {
  color: var(--ink);
  opacity: 0.75;
  white-space: nowrap;
  font-size: 1.15rem;
  transition: opacity 0.2s ease;
}
.wordmark:hover { opacity: 1; }
.wm-1 { font-weight: 800; letter-spacing: 0.06em; }
.wm-2 { font-style: italic; font-weight: 500; font-size: 1.25rem; }
.wm-3 { font-family: var(--font-mono); font-size: 0.92rem; letter-spacing: 0.1em; }
.wm-4 { font-weight: 700; letter-spacing: -0.05em; font-size: 1.35rem; }
.wm-5 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.16em; }
.wm-6 { font-weight: 400; font-size: 1.25rem; letter-spacing: -0.02em; }

/* ---------- Statement (Scroll-Texteffekt) ---------- */
.statement { padding: 110px 0 130px; }

.statement-text {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  font-size: clamp(1.7rem, 4.2vw, 3.3rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink-faint);
  margin-block: 0;
}
/* Wörter werden per JS in Spans zerlegt und beim Scrollen "gefüllt" */
.statement-text .w { transition: color 0.35s ease; }
.statement-text .w.on { color: var(--ink); }

/* ---------- Bildleiste Zürich (Medien-Kacheln wie bei Runway) ---------- */
.media-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: 30px;
}

.media-tile {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #ddd;
}
.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.media-tile:hover img { transform: scale(1.04); }

/* ---------- Sektionen ---------- */
.section { padding: 100px 0; }
.section-head { margin-bottom: 56px; max-width: 50em; }

/* ---------- Demo ---------- */
.demo-panel {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Szene: Demo-Fenster + iPhone daneben */
.device-scene { position: relative; }

.demo-frame {
  margin-right: 118px; /* Platz für das iPhone-Mockup rechts daneben */
  background: #101010;
  border: 1px solid #222;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18);
  color: #e8e8e8;
}

/* Fenster-Top-Bar */
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid #222;
}
.window-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #333; }

.url-pill {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #888;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 4px 12px;
}

/* Status-Label – wechselt per JS */
.status-pill {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: #cfcfcf;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-radius: 999px;
  padding: 4px 13px;
  white-space: nowrap;
}
.status-pill.is-final {
  color: var(--green);
  border-color: rgba(25, 195, 125, 0.4);
  background: rgba(25, 195, 125, 0.08);
}

/* Dashboard-Raster */
.dash {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.15fr;
  min-height: 380px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.dash-inbox { border-right: 1px solid #222; padding: 16px; }
.dash-main  { padding: 16px; }
.dash-ai    { border-left: 1px solid #222; padding: 16px; background: #0c0c0c; }

.dash-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #777;
  margin: 0 0 10px;
}
.dash-main .dash-label:not(:first-child),
.dash-ai .dash-label:not(:first-child) { margin-top: 18px; }

/* Inbox */
.dash-inbox ul { list-style: none; margin: 0; padding: 0; }
.inbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #9a9a9a;
  margin-bottom: 2px;
  transition: background 0.3s ease, color 0.3s ease;
}
.inbox-item.is-active { background: #1d1d1d; color: #fff; font-weight: 600; }

.prio { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.prio-high { background: var(--amber); }
.prio-mid  { background: #c8c14a; }
.prio-low  { background: #4a5a52; }

/* Anfrage-Karte */
.mail-card {
  border: 1px solid #262626;
  border-radius: 10px;
  padding: 12px 14px;
  background: #141414;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.mail-card.is-visible { opacity: 1; transform: none; }
.mail-subject { font-weight: 700; margin-bottom: 5px; color: #fff; }
.mail-body { color: #a8a8a8; margin: 0; }

/* Antwortvorschlag */
.reply-card {
  border: 1px solid #262626;
  border-left: 3px solid var(--green);
  border-radius: 10px;
  padding: 12px 14px;
  background: #141414;
  min-height: 120px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reply-card.is-visible { opacity: 1; transform: none; }
.reply-text { color: #d6d6d6; margin: 0 0 10px; min-height: 70px; }

.reply-text.is-typing::after {
  content: "▍";
  color: var(--green);
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Freigabe-Button (dekorativ) */
.approve-btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.74rem;
  color: #06251a;
  background: var(--green);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: default;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.approve-btn.is-visible {
  opacity: 1;
  transform: none;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(25, 195, 125, 0.35); }
  55%      { box-shadow: 0 0 0 9px rgba(25, 195, 125, 0); }
}

/* KI-Analyse */
.ai-rows { list-style: none; margin: 0; padding: 0; }
.ai-rows li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #262626;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.ai-rows li.is-visible { opacity: 1; transform: none; }
.ai-rows span { color: #888; }
.ai-rows strong { color: #e8e8e8; font-weight: 600; }

.t-high { color: var(--amber) !important; }
.t-ok   { color: var(--green) !important; }

/* Ticket */
.ticket {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 10px;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.ticket.is-visible { opacity: 1; transform: none; }
.ticket-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--green);
  margin: 0 0 8px;
}
.ticket ul { list-style: none; margin: 0; padding: 0; }
.ticket li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.ticket span { color: #888; }
.ticket strong { color: #e8e8e8; font-weight: 600; text-align: right; }

/* ---------- iPhone-Mockup ---------- */
.phone {
  position: absolute;
  right: -16px;
  bottom: -26px;
  width: 168px;
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 30px;
  padding: 9px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* Notch / Dynamic Island */
.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 14px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  background: linear-gradient(165deg, #1a3a2c, #0c1f2b 70%);
  border-radius: 22px;
  min-height: 290px;
  padding: 38px 10px 14px;
  color: var(--white);
  overflow: hidden;
}

.phone-time {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 8px 0 20px;
  opacity: 0.95;
}

/* Push-Benachrichtigung (erscheint beim Ticket-Schritt) */
.phone-notif {
  background: rgba(245, 245, 245, 0.96);
  color: var(--ink);
  border-radius: 14px;
  padding: 9px 10px;
  font-size: 0.6rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.phone-notif.is-visible { opacity: 1; transform: none; }

.notif-head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}
.notif-appicon {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: var(--black);
  flex: none;
}
.notif-app {
  font-weight: 600;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
}
.notif-when {
  margin-left: auto;
  font-size: 0.55rem;
  color: #888;
}
.notif-title { font-weight: 700; margin: 0 0 1px; }
.notif-body { color: #555; margin: 0; }

.phone-homebar {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

/* Prozess-Schritte unter dem Demo-Fenster */
.process {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  counter-reset: step;
}
.process li {
  counter-increment: step;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  border-top: 2px solid var(--line);
  padding-top: 12px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.process li::before {
  content: counter(step, decimal-leading-zero) " ";
  color: inherit;
  opacity: 0.5;
}
.process li.is-current { color: var(--ink); border-color: var(--ink); }

/* ---------- Kacheln (Problem / Lösung) ---------- */
.tile-grid { display: grid; gap: 14px; }
.tile-grid-3 { grid-template-columns: repeat(3, 1fr); }

.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}
.tile p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }

/* dunkle Variante für die Problem-Kacheln */
.tile-dark { background: var(--black); border-color: #222; color: var(--white); }
.tile-dark p { color: #9a9a9a; }

/* Nummer steht gut sichtbar neben dem Titel */
.tile-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}
.tile-head h3 { margin: 0; }

.tile-index {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green);
  flex: none;
}

/* ---------- Stepper (Lösung) – Clean, premium, kein animierter Punkt ---------- */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 40px;
}

.step {
  position: relative;
  padding: 32px 28px;
  border-left: 1px solid var(--line);
}
.step:first-child { border-left: none; }

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

/* Hinweis "Team bleibt in Kontrolle" */
.assurance {
  margin: 40px 0 0;
  padding: 24px 28px;
  border-left: 3px solid var(--green);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46em;
}
.assurance strong { color: var(--ink); }

/* ---------- Nutzen-Liste ---------- */
.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: benefit;
}
.benefit-list li {
  counter-increment: benefit;
  display: flex;
  align-items: baseline;
  gap: 26px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.benefit-list li:last-child { border-bottom: 1px solid var(--line); }
.benefit-list li::before {
  content: counter(benefit, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  flex: none;
}

/* ---------- Statistik-Leiste (Problem-Sektion) ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.stat {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.stat-num {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 10px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
.stats-source {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9a9a96;
}

/* ---------- ERP-Hinweis (Lösung) ---------- */
.erp-strip {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 52em;
}

/* ---------- Angebot: Pilot-Banner + Preis-Stufen ---------- */
.pilot-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 42px);
  margin-bottom: 16px;
}
.pilot-banner h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pilot-banner p { color: #b5b5b5; margin: 0; max-width: 46em; }
.pilot-banner p strong { color: var(--white); }
.pilot-banner .btn { flex: none; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

/* hervorgehobene mittlere Stufe */
.price-featured {
  background: var(--black);
  border-color: #333;
  color: var(--white);
}
.price-featured .plan-for { color: #b0b0b0; }
.price-featured ul li { color: #e0e0e0; border-color: #2e2e2e; }
.price-featured ul li::before { background-color: rgba(25, 195, 125, 0.18); }

.plan-badge {
  position: absolute;
  top: -11px;
  left: 28px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--green);
  color: #06251a;
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0;
  font-weight: 700;
}

.plan-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: inherit;
  opacity: 0.6;
  margin: 0 0 10px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.plan-price span {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.55;
  letter-spacing: 0;
}

.plan-for {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 22px;
  min-height: 2.7em;
}

.price-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.price-card ul li {
  position: relative;
  padding: 10px 0 10px 30px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.price-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(25, 195, 125, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319c37d' stroke-width='3'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.price-note {
  margin: 26px 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 46em;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }

.faq-item {
  border-top: 1px solid var(--ink);
  padding: 4px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--ink); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink-soft);
  flex: none;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  max-width: 46em;
  line-height: 1.65;
}

/* ---------- Warum-Sektion ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 36px;
}
.why-item { border-top: 1px solid var(--ink); padding-top: 20px; }
.why-item h3 { font-size: 1.02rem; }
.why-item p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* ---------- Team (kompakt) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 860px;
}
.team-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 680px;
}

.team-card { margin: 0; }

.team-photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1; /* quadratisch statt hochformatig */
  background: #ddd;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.15);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.team-card:hover .team-photo img { transform: scale(1.04); filter: grayscale(0); }

.team-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 10px 0 1px;
  letter-spacing: -0.01em;
}
.team-role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- CTA-Panel ---------- */
.cta-section { padding: 10px; background: var(--bg); }

.cta-panel {
  position: relative;
  background: var(--panel);
  color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding: clamp(80px, 12vw, 150px) var(--gutter);
}

.cta-content { position: relative; }
.cta-content h2 { color: var(--white); }
.cta-content p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 36em;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 0;
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.footer-brand strong { font-weight: 700; }
.footer-tagline, .footer-contact p { color: #9a9a9a; margin: 0 0 4px; }
.footer-contact { text-align: right; }
.footer-contact a { color: var(--white); border-bottom: 1px solid #444; }
.footer-contact a:hover { border-color: var(--white); }

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title .line > span { transform: none; animation: none; }
  .blob, .marquee-track { animation: none !important; }
  .approve-btn.is-visible { animation: none; }
  .reply-text.is-typing::after { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-usecases { justify-self: start; width: 100%; max-width: 420px; }
  .tile-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .btn-ghost { display: none; }
  .media-band { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 560px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .phone { width: 140px; right: -10px; bottom: -18px; }
  .phone-screen { min-height: 240px; }
  .demo-frame { margin-right: 90px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 70px 0; }

  /* Mobile-Navigation */
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid #222;
    padding: 8px 24px 16px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid #1e1e1e; }
  .main-nav a:last-child { border-bottom: none; }
  .header-actions .btn-white { padding: 9px 16px; font-size: 0.85rem; }

  .hero-panel { min-height: 0; padding: 56px 26px 40px; }
  .hero-trust { margin-top: 40px; }

  /* Dashboard einspaltig, Inbox ausblenden – Fokus auf Kern-Demo */
  .dash { grid-template-columns: 1fr; min-height: 0; }
  .dash-inbox { display: none; }
  .dash-ai { border-left: none; border-top: 1px solid #222; }

  /* iPhone-Mockup auf Mobile weglassen, Frame nutzt volle Breite */
  .phone { display: none; }
  .demo-frame { margin-right: 0; }

  /* Stepper vertikal stapeln */
  .stepper { grid-template-columns: 1fr; }
  .step { border-left: none; border-top: 1px solid var(--line); padding: 20px 0; }
  .step:first-child { border-top: none; }

  .media-band { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .process { grid-template-columns: repeat(2, 1fr); }
  .tile-grid-3 { grid-template-columns: 1fr; }
  .offer-box { grid-template-columns: 1fr; }
  .offer-list { columns: 1; }
  .offer-price { border-left: none; border-top: 1px solid #242424; }
  .price-grid { grid-template-columns: 1fr; }
  .pilot-banner { flex-direction: column; align-items: flex-start; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
}
