/* LunaTranscribe – Landingpage im Design „Mondnacht“.
   Tokens gespiegelt aus LunaTranscribe/UI/Theme/Theme.swift (LunaColor, LunaFont, LunaMetrics).
   Hell = Dämmerung (cremiges Mondlicht), dunkel = Mondnacht. Nacht-Abschnitte bleiben in beiden Modi dunkel. */

/* MARK: Schriften (lokal, SIL OFL – kein Aufruf an Google-Server) */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/Figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* MARK: Tokens */

:root {
  color-scheme: light;

  --bg: #fbf6ec;
  --surface: #fffdf8;
  --surface-muted: #f3ecdd;
  --ink: #2b2540;
  --ink-muted: #6e6682;
  --ink-soft: #8a82a0;
  --lavender: #7e6bb8;
  --lavender-wash: #ebe5f6;
  --honey: #d9962a;
  --honey-wash: #f7e7c8;
  --sage: #5e9480;
  --rose: #c0505d;
  --stroke: rgba(43, 37, 64, 0.11);
  --stroke-strong: #2b2540;
  --on-accent: #fffdf8;

  /* Nachthimmel: Overlay, Nacht-Abschnitte, Duotone-Schatten */
  --night-top: #3a2f6b;
  --night-bottom: #15132b;
  --night-ink: #ede6d6;
  --night-muted: #b3abc8;
  --night-stroke: rgba(237, 230, 214, 0.14);
  --night-surface: rgba(255, 253, 248, 0.06);
  --moonlight: #fbf1dc;
  --honey-glow: #e8b04b;
  --lavender-glow: #b9a7f0;

  /* Duotone für Fotos: Schatten → Licht */
  --duo-shadow: #2a2152;
  --duo-light: #f4e4c4;

  --font-display: "Fraunces", "New York", "Iowan Old Style", Georgia, serif;
  --font-text: "Figtree", "SF Pro Rounded", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --radius-xl: 40px;
  --radius-l: 28px;
  --radius-m: 16px;
  --radius-s: 10px;
  --shadow-soft: 0 1px 2px rgba(43, 37, 64, 0.05), 0 12px 32px -12px rgba(43, 37, 64, 0.18);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1a1830;
    --surface: #26223f;
    --surface-muted: #211d38;
    --ink: #ede6d6;
    --ink-muted: #a9a1bd;
    --ink-soft: #7d7699;
    --lavender: #b9a7f0;
    --lavender-wash: #2f2952;
    --honey: #e8b04b;
    --honey-wash: #3a2f35;
    --sage: #8fb9a8;
    --rose: #e68a93;
    --stroke: rgba(237, 230, 214, 0.12);
    --stroke-strong: #ede6d6;
    --on-accent: #1a1830;
    --night-top: #2a2258;
    --night-bottom: #0d0c1c;
    --duo-shadow: #1c1740;
    --duo-light: #e9d6b1;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.25), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1830;
  --surface: #26223f;
  --surface-muted: #211d38;
  --ink: #ede6d6;
  --ink-muted: #a9a1bd;
  --ink-soft: #7d7699;
  --lavender: #b9a7f0;
  --lavender-wash: #2f2952;
  --honey: #e8b04b;
  --honey-wash: #3a2f35;
  --sage: #8fb9a8;
  --rose: #e68a93;
  --stroke: rgba(237, 230, 214, 0.12);
  --stroke-strong: #ede6d6;
  --on-accent: #1a1830;
  --night-top: #2a2258;
  --night-bottom: #0d0c1c;
  --duo-shadow: #1c1740;
  --duo-light: #e9d6b1;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.25), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
}

/* MARK: Grundlagen */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* MARK: Typografie */

.display,
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 420;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 8.4vw, 7.25rem);
  font-weight: 380;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

h2 {
  font-size: clamp(2.3rem, 5.2vw, 4.5rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.45rem, 2.1vw, 1.8rem);
  font-weight: 520;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  line-height: 1.12;
}

.tone {
  color: var(--ink-soft);
}

em.moon-italic {
  font-style: italic;
  font-weight: 360;
}

p {
  margin: 0;
}

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  color: var(--ink-muted);
  max-width: 34em;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--font-text);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender);
}

.small {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

kbd,
.kbd {
  font-family: var(--font-mono);
  font-size: 0.82em;
  padding: 0.1em 0.45em;
  border: 1.5px solid var(--stroke-strong);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  white-space: nowrap;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

/* MARK: Buttons – Kapsel mit 2-px-Kontur */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--stroke-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.7em 1.45em;
  border-radius: 999px;
  border: 2px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 -1px var(--btn-border);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn svg {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}

.btn-primary {
  --btn-bg: var(--lavender);
  --btn-fg: var(--on-accent);
  --btn-border: var(--stroke-strong);
}

.btn-small {
  min-height: 40px;
  padding: 0.45em 1.05em;
  font-size: 0.92rem;
}

.night .btn {
  --btn-fg: var(--night-ink);
  --btn-border: var(--night-ink);
}
.night .btn-primary {
  --btn-bg: var(--moonlight);
  --btn-fg: #1a1830;
  --btn-border: var(--moonlight);
  box-shadow: 0 0 0 0 transparent, 0 0 48px -8px rgba(232, 176, 75, 0.55);
}
.night .btn-primary:hover {
  box-shadow: 0 6px 0 -1px var(--honey-glow), 0 0 56px -6px rgba(232, 176, 75, 0.7);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.meta-line span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--honey);
}

/* MARK: Navigation – schwebende Pille */

.nav-shell {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  z-index: 50;
  padding-inline: var(--gutter);
  margin-top: 12px;
}

.nav {
  max-width: 980px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 560;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand img {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--ink-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

/* MARK: Hero */

.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 28px;
  justify-items: start;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--ink-muted);
}
.chip b {
  white-space: nowrap;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--lavender-wash);
  color: var(--lavender);
  font-weight: 650;
  font-size: 0.8rem;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    max-width: 520px;
    width: 100%;
    justify-self: center;
  }
}

/* MARK: Duotone-Fotos (abstrahiert: Graustufen → Nachtblau/Mondlicht) */

.duo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 70% 20%, var(--duo-light), transparent 70%),
    linear-gradient(160deg, var(--lavender-glow), var(--duo-shadow));
  background-color: var(--duo-light);
}
.duo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(1.06);
  mix-blend-mode: multiply;
  transform: scale(1.04);
}
.duo.has-photo {
  background: var(--duo-light);
}
.duo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--duo-shadow);
  mix-blend-mode: lighten;
  pointer-events: none;
}
/* feines Filmkorn gegen die Stockfoto-Anmutung */
.duo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Honig-Variante: Schatten violett, Licht warm-golden */
.duo.honey {
  --duo-light: #f5c774;
}

/* MARK: Hero-Mond */

.moon-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.moon-halo {
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  background: radial-gradient(circle at 55% 45%, rgba(232, 176, 75, 0.35), rgba(185, 167, 240, 0.18) 45%, transparent 68%);
  filter: blur(8px);
}

.moon-orbit {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--lavender) 45%, transparent);
  animation: orbit 90s linear infinite;
}

.moon-main {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  box-shadow: 0 30px 80px -30px rgba(42, 33, 82, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
/* Terminator: die Schattenseite des Mondes */
.moon-main .terminator {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(circle at 18% 30%, rgba(21, 19, 43, 0.72), rgba(21, 19, 43, 0.28) 38%, transparent 60%);
  pointer-events: none;
}

.phase {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 16px 36px -16px rgba(42, 33, 82, 0.7);
}
.phase-a {
  width: 27%;
  aspect-ratio: 1;
  right: -2%;
  top: 4%;
  -webkit-mask: radial-gradient(ellipse 50% 50% at 22% 42%, transparent 99%, #000 100%);
  mask: radial-gradient(ellipse 50% 50% at 22% 42%, transparent 99%, #000 100%);
}
.phase-b {
  width: 20%;
  aspect-ratio: 1;
  left: -1%;
  bottom: 14%;
  -webkit-mask: radial-gradient(ellipse 50% 50% at 82% 40%, transparent 99%, #000 100%);
  mask: radial-gradient(ellipse 50% 50% at 82% 40%, transparent 99%, #000 100%);
}

.star {
  position: absolute;
  width: 14px;
  height: 14px;
  color: var(--honey);
}
.star svg {
  width: 100%;
  height: 100%;
}

/* Overlay-Pille wie in der App (UI/OverlayController) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a2f6b, #15132b);
  color: var(--moonlight);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 18px 40px -14px rgba(21, 19, 43, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}
.pill .moon-glyph {
  width: 18px;
  height: 18px;
  color: var(--honey-glow);
  flex: none;
}

.hero-pill {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  z-index: 5;
}

.wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.wave i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--lavender-glow), var(--honey-glow));
  transform-origin: center;
  transform: scaleY(var(--h, 0.4));
  animation: wave 1.1s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.13s);
}
.wave.is-quiet i {
  animation: none;
  transform: scaleY(0.18);
}

.hero-note {
  position: absolute;
  z-index: 4;
  top: 58%;
  right: -3%;
  max-width: 62%;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}
.hero-note .small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-note .small::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

@media (max-width: 520px) {
  .hero-note {
    right: 0;
    max-width: 70%;
    font-size: 0.85rem;
  }
  .pill {
    font-size: 0.88rem;
  }
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(calc(var(--h, 0.4) * 0.45));
  }
  50% {
    transform: scaleY(var(--h, 0.4));
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  from {
    transform: translateY(14px);
  }
  to {
    transform: none;
  }
}

.hero-copy > *,
.moon-stage {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 0.06s;
}
.hero-copy > :nth-child(3) {
  animation-delay: 0.12s;
}
.hero-copy > :nth-child(4) {
  animation-delay: 0.18s;
}
.moon-stage {
  animation-delay: 0.1s;
}

/* MARK: Abschnitte */

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section-head {
  display: grid;
  align-content: start;
  gap: 18px;
  max-width: 820px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* Nacht-Abschnitte: in beiden Modi dunkel, mit Sternenfeld */
.night {
  position: relative;
  color: var(--night-ink);
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(251, 241, 220, 0.9), transparent 60%),
    radial-gradient(1px 1px at 28% 72%, rgba(251, 241, 220, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 12%, rgba(251, 241, 220, 0.8), transparent 60%),
    radial-gradient(1px 1px at 63% 44%, rgba(251, 241, 220, 0.6), transparent 60%),
    radial-gradient(2px 2px at 78% 22%, rgba(232, 176, 75, 0.9), transparent 60%),
    radial-gradient(1px 1px at 88% 66%, rgba(251, 241, 220, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 8% 86%, rgba(185, 167, 240, 0.9), transparent 60%),
    radial-gradient(1px 1px at 54% 92%, rgba(251, 241, 220, 0.6), transparent 60%),
    radial-gradient(80% 60% at 85% 0%, rgba(126, 107, 184, 0.35), transparent 70%),
    linear-gradient(180deg, var(--night-top), var(--night-bottom));
  background-size: 520px 520px, 520px 520px, 520px 520px, 520px 520px, 520px 520px, 520px 520px, 520px 520px, 520px 520px, 100% 100%, 100% 100%;
}
.night .tone {
  color: var(--night-muted);
  opacity: 0.8;
}
.night .lede,
.night .small {
  color: var(--night-muted);
}
.night .eyebrow {
  color: var(--honey-glow);
}

.night-card {
  margin-inline: clamp(0px, 1.2vw, 16px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* MARK: Demo */

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 920px) {
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.window {
  position: relative;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--stroke);
  background: var(--surface-muted);
}
.window-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--stroke);
}
.window-bar i:nth-child(1) {
  background: #e8766d;
}
.window-bar i:nth-child(2) {
  background: #e8b04b;
}
.window-bar i:nth-child(3) {
  background: #8fb9a8;
}
.window-bar span {
  margin-left: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.mail {
  padding: 8px 22px 22px;
}
.mail-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--stroke);
  font-size: 0.95rem;
}
.mail-row b {
  width: 64px;
  flex: none;
  font-weight: 550;
  color: var(--ink-muted);
}
.mail-body {
  min-height: 190px;
  padding-top: 18px;
  font-size: 1.06rem;
  line-height: 1.65;
}
.mail-body p + p {
  margin-top: 0.8em;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--lavender);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.demo-pill {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.25s ease;
  pointer-events: none;
}
.demo-pill.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.demo-controls {
  display: grid;
  gap: 22px;
}

.keycap {
  display: grid;
  place-items: center;
  gap: 6px;
  width: 100%;
  padding: 26px 18px 22px;
  border-radius: var(--radius-l);
  border: 2px solid var(--stroke-strong);
  border-bottom-width: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: transform 0.08s ease, border-bottom-width 0.08s ease, background-color 0.2s ease;
}
.keycap .key {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}
.keycap .key-hint {
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.keycap.is-pressed {
  transform: translateY(6px);
  border-bottom-width: 2px;
  background: var(--honey-wash);
}

.switch {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}
.switch input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 50px;
  height: 30px;
  margin: 2px 0 0;
  border-radius: 999px;
  border: 2px solid var(--stroke-strong);
  background: var(--surface-muted);
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.switch input:checked {
  background: var(--lavender);
}
.switch input:checked::after {
  transform: translateX(20px);
  background: var(--on-accent);
}
.switch strong {
  display: block;
  font-weight: 650;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}
.steps svg {
  width: 34px;
  height: 34px;
  color: var(--lavender);
}
.steps strong {
  display: block;
  font-weight: 650;
}
.steps span {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.apps-line {
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* MARK: Kennzahlen */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.stat {
  padding: 8px clamp(12px, 2.4vw, 32px);
  border-left: 1px solid var(--night-stroke);
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.stat .num {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 380;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--moonlight);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat .num small {
  font-size: 0.45em;
  color: var(--honey-glow);
  letter-spacing: 0;
}
.stat p {
  margin-top: 12px;
  color: var(--night-muted);
  font-size: 0.95rem;
  max-width: 17em;
}
.stats-foot {
  margin-top: 36px;
  font-size: 0.8rem;
  color: var(--night-muted);
  opacity: 0.8;
}
@media (max-width: 820px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

/* MARK: Funktionen (Bento) */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.tile {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--stroke);
  overflow: hidden;
}
.tile p {
  color: var(--ink-muted);
}
.tile-refine {
  grid-column: span 4;
}
.tile-vocab {
  grid-column: span 2;
}
.tile-photo {
  grid-column: span 2;
  min-height: 320px;
  padding: 0;
  border: 0;
}
.tile-lang,
.tile-safe {
  grid-column: span 2;
}
.tile-media {
  grid-column: span 3;
}
.tile-private {
  grid-column: span 3;
  background: var(--lavender-wash);
  border-color: transparent;
}
@media (max-width: 980px) {
  .tile-refine,
  .tile-vocab,
  .tile-photo,
  .tile-lang,
  .tile-safe,
  .tile-media,
  .tile-private {
    grid-column: span 3;
  }
  .tile-refine {
    grid-column: span 6;
  }
}
@media (max-width: 640px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile-refine,
  .tile-vocab,
  .tile-photo,
  .tile-lang,
  .tile-safe,
  .tile-media,
  .tile-private {
    grid-column: auto;
  }
}

.tile-photo .duo {
  position: absolute;
  inset: 0;
}
.tile-photo figcaption {
  position: absolute;
  z-index: 3;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: rgba(21, 19, 43, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--moonlight);
  font-size: 0.93rem;
  line-height: 1.45;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  background: var(--surface-muted);
  color: var(--ink-muted);
}

.before-after {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 8px;
}
.before-after > div {
  padding: 16px 18px;
  border-radius: var(--radius-m);
  background: var(--surface-muted);
  font-size: 1rem;
  line-height: 1.5;
}
.before-after > div:last-child {
  background: var(--lavender-wash);
}
.before-after .label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.before-after s {
  text-decoration-color: var(--rose);
  text-decoration-thickness: 2px;
  color: var(--ink-soft);
}
.before-after .arrow {
  align-self: center;
  color: var(--lavender);
  font-size: 1.4rem;
}
@media (max-width: 640px) {
  .before-after {
    grid-template-columns: minmax(0, 1fr);
  }
  .before-after .arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

.model-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.model-list span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 0.86rem;
  font-weight: 550;
}

.vocab-pairs {
  display: grid;
  gap: 10px;
}
.vocab-pairs div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.vocab-pairs s {
  color: var(--ink-soft);
  text-decoration-color: var(--rose);
}
.vocab-pairs b {
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--honey-wash);
  font-weight: 650;
}
.vocab-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vocab-actions span {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1.5px solid var(--stroke-strong);
}
.vocab-actions span:first-child {
  background: var(--lavender);
  border-color: var(--lavender);
  color: var(--on-accent);
}

.lang-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.84rem;
}
.lang-cloud span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink-muted);
}
.lang-cloud span.on {
  background: var(--honey-wash);
  color: var(--ink);
  font-weight: 600;
}

.big-figure {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 3.4rem;
  font-weight: 380;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--lavender);
}

/* MARK: Meetings */

.meet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 920px) {
  .meet-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.meet-visual {
  position: relative;
  min-height: 520px;
}
.meet-photo {
  position: absolute;
  inset: 0 12% 18% 0;
  border-radius: 999px 999px 32px 32px;
  --duo-light: #d9c8f5;
  --duo-shadow: #15132b;
}
.meet-photo-2 {
  position: absolute;
  width: 38%;
  aspect-ratio: 1;
  right: 0;
  top: 6%;
  border-radius: 50%;
  --duo-light: #f5c774;
  --duo-shadow: #231b4a;
  -webkit-mask: radial-gradient(ellipse 50% 50% at 16% 30%, transparent 99%, #000 100%);
  mask: radial-gradient(ellipse 50% 50% at 16% 30%, transparent 99%, #000 100%);
}

.transcript {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  width: min(420px, 88%);
  padding: 18px 20px;
  border-radius: var(--radius-l);
  background: rgba(26, 24, 48, 0.86);
  border: 1px solid var(--night-stroke);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  display: grid;
  gap: 12px;
  font-size: 0.93rem;
  line-height: 1.5;
}
.transcript header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--night-muted);
}
.transcript header b {
  color: var(--moonlight);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 1.05rem;
  font-weight: 520;
}
.turn {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
}
.turn .who {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  align-self: start;
  margin-top: 1px;
}
.turn .t {
  color: var(--night-ink);
}
.turn time {
  grid-column: 2;
  font-size: 0.74rem;
  color: var(--night-muted);
  font-variant-numeric: tabular-nums;
}
.who-1 {
  background: rgba(185, 167, 240, 0.2);
  color: var(--lavender-glow);
}
.who-2 {
  background: rgba(232, 176, 75, 0.18);
  color: var(--honey-glow);
}
.who-3 {
  background: rgba(143, 185, 168, 0.2);
  color: #8fb9a8;
}

.flow {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.flow li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--night-stroke);
}
.flow li:last-child {
  border-bottom: 1px solid var(--night-stroke);
}
.flow svg {
  width: 36px;
  height: 36px;
  color: var(--honey-glow);
}
.flow strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 650;
  color: var(--moonlight);
}
.flow span {
  color: var(--night-muted);
  font-size: 0.97rem;
}
.cloud-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--night-stroke);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--night-muted);
  vertical-align: 2px;
}

/* MARK: Datenschutz */

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 920px) {
  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.privacy-photo {
  margin-top: 32px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
}

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--stroke);
  overflow: hidden;
}
.ledger li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  padding: 20px 24px;
  border-top: 1px solid var(--stroke);
}
.ledger li:first-child {
  border-top: 0;
}
.ledger strong {
  font-weight: 650;
}
.ledger p {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.where {
  align-self: start;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.where-local {
  background: color-mix(in srgb, var(--sage) 18%, transparent);
  color: var(--sage);
}
.where-once {
  background: var(--lavender-wash);
  color: var(--lavender);
}
.where-cloud {
  background: var(--honey-wash);
  color: var(--honey);
}
@media (prefers-color-scheme: light) {
  .where-cloud {
    color: #9a6512;
  }
}
:root[data-theme="light"] .where-cloud {
  color: #9a6512;
}

/* MARK: Vergleich */

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-l);
  border: 1px solid var(--stroke);
  background: var(--surface);
}
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.compare th,
.compare td {
  padding: 16px 22px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--stroke);
}
.compare thead th {
  border-top: 0;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 520;
  font-size: 1.2rem;
  background: var(--surface-muted);
}
.compare thead th.luna {
  background: var(--lavender-wash);
  color: var(--lavender);
}
.compare tbody th {
  font-weight: 600;
  color: var(--ink-muted);
  width: 26%;
}
.compare td.luna {
  background: color-mix(in srgb, var(--lavender-wash) 45%, transparent);
  font-weight: 550;
}
.compare .plus {
  color: var(--sage);
  font-weight: 700;
}
.compare-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  max-width: 60em;
}

/* MARK: Installation */

.install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}
@media (max-width: 900px) {
  .install-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.install-step {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  padding: 26px;
  border-radius: var(--radius-l);
  background: var(--night-surface);
  border: 1px solid var(--night-stroke);
}
.install-step .n {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 2.6rem;
  font-weight: 380;
  line-height: 1;
  color: var(--honey-glow);
}
.install-step h3 {
  color: var(--moonlight);
}
.install-step p {
  color: var(--night-muted);
  font-size: 0.97rem;
}
.install-step a {
  color: var(--lavender-glow);
}

.code {
  position: relative;
  border-radius: var(--radius-m);
  background: rgba(10, 9, 22, 0.55);
  border: 1px solid var(--night-stroke);
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid var(--night-stroke);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night-muted);
}
.code pre {
  margin: 0;
  padding: 14px 16px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--moonlight);
}
.code pre .c {
  color: var(--night-muted);
}
.copy {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--night-stroke);
  background: rgba(255, 253, 248, 0.08);
  color: var(--night-ink);
  font: 600 0.8rem/1 var(--font-text);
  cursor: pointer;
}
.copy:hover {
  background: rgba(255, 253, 248, 0.16);
}

.install-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding: 26px 28px;
  border-radius: var(--radius-l);
  border: 1px dashed var(--night-stroke);
}
.install-cta p {
  max-width: 40em;
  color: var(--night-muted);
}

/* MARK: FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
}
@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.faq {
  border-top: 1px solid var(--stroke);
}
@media (min-width: 901px) {
  .faq-grid .section-head {
    position: sticky;
    top: 110px;
    align-self: start;
  }
}
.safe-pill {
  justify-self: start;
  margin-top: 6px;
}
.safe-pill .pill {
  font-size: 0.86rem;
  white-space: normal;
}
.faq details {
  border-bottom: 1px solid var(--stroke);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 80, "WONK" 1;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.25;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 10px no-repeat;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .answer {
  padding: 0 0 24px;
  color: var(--ink-muted);
  max-width: 44em;
  display: grid;
  gap: 10px;
}
.faq .answer a {
  color: var(--lavender);
}

/* MARK: Schluss-CTA */

.finale {
  text-align: center;
  overflow: hidden;
}
.finale .wrap {
  display: grid;
  justify-items: center;
  gap: 28px;
  position: relative;
  z-index: 2;
}
.finale h2 {
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  max-width: 11em;
}
.finale .lede {
  margin-inline: auto;
}
.finale-moon {
  width: clamp(180px, 26vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 120px -10px rgba(232, 176, 75, 0.5);
  --duo-light: #fbf1dc;
  --duo-shadow: #3a2f6b;
  -webkit-mask: radial-gradient(ellipse 46% 46% at 12% 36%, transparent 99%, #000 100%);
  mask: radial-gradient(ellipse 46% 46% at 12% 36%, transparent 99%, #000 100%);
}
.finale .meta-line {
  justify-content: center;
  color: var(--night-muted);
}
.finale .meta-line span::before {
  background: var(--honey-glow);
}

/* MARK: Footer */

.footer {
  padding-block: 56px 48px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.footer h4 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.footer a {
  color: var(--ink-muted);
  text-decoration-color: var(--stroke);
  text-underline-offset: 3px;
}
.footer a:hover {
  color: var(--ink);
}
.footer .fine {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
  font-size: 0.8rem;
  display: grid;
  gap: 6px;
}

/* MARK: Rechtsseiten (Impressum) */

.legal {
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px);
}
.legal-inner {
  max-width: 760px;
  display: grid;
  gap: 14px;
}
.legal h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin-bottom: clamp(16px, 3vw, 32px);
}
.legal h2 {
  margin-top: 28px;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 520;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  letter-spacing: -0.01em;
}
.legal p {
  color: var(--ink-muted);
  max-width: 62ch;
}
.legal address {
  font-style: normal;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.55;
}
.legal a:not(.btn) {
  color: var(--lavender);
  text-underline-offset: 3px;
}
.legal .contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 18px;
  margin: 0;
}
.legal .contact dt {
  color: var(--ink-muted);
}
.legal .contact dd {
  margin: 0;
}
.legal-card {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--stroke);
}
.legal-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-muted);
  display: grid;
  gap: 4px;
}
.legal-list li::marker {
  color: var(--honey);
}
.legal-back {
  justify-self: start;
  margin-top: 36px;
}

/* MARK: Bewegung reduzieren */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .wave i {
    transform: scaleY(var(--h, 0.4));
  }
}
