/* =========================================================
   Inkavio – Webseite
   Ruhige Systemschrift, viel Luft, sanftes Leuchten.
   Hell & Dunkel über Variablen, keine externen Dateien.
   ========================================================= */

:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #f0f3fa;
  --text: #0d1530;
  --muted: #5d6886;
  --line: #e2e7f1;
  --accent: #2f6fed;
  --accent-2: #8ab0ff;
  --accent-soft: rgba(47, 111, 237, 0.1);
  --on-accent: #ffffff;
  --paper: #fffdf8;
  --paper-line: rgba(60, 90, 150, 0.22);
  --grid-line: rgba(60, 90, 150, 0.15);
  --ink: #14213d;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 1px 2px rgba(13, 21, 48, 0.04), 0 12px 32px rgba(13, 21, 48, 0.07);
  --shadow-lg: 0 2px 6px rgba(13, 21, 48, 0.05), 0 40px 80px -20px rgba(13, 21, 48, 0.18);
  --glow: none;
  --glow-1: rgba(112, 160, 255, 0.5);
  --glow-2: rgba(170, 135, 255, 0.32);
  --glow-3: rgba(80, 210, 200, 0.26);
  --nav-bg: rgba(247, 248, 252, 0.78);
  --radius: 24px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI Variable Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Bradley Hand', 'Noteworthy', 'Segoe Print', 'Ink Free', 'Segoe Script', cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #060b1a;
    --surface: #0e182f;
    --surface-2: #142040;
    --text: #eef2ff;
    --muted: #97a4c4;
    --line: #1f2b48;
    --accent: #4f8bff;
    --accent-2: #9cc0ff;
    --accent-soft: rgba(79, 139, 255, 0.14);
    --on-accent: #06102a;
    --glass: rgba(14, 24, 47, 0.68);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 40px 80px -20px rgba(0, 0, 0, 0.6);
    --glow: drop-shadow(0 0 6px rgba(79, 139, 255, 0.55));
    --glow-1: rgba(55, 105, 255, 0.34);
    --glow-2: rgba(125, 80, 255, 0.22);
    --glow-3: rgba(30, 185, 200, 0.14);
    --nav-bg: rgba(6, 11, 26, 0.72);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #060b1a;
  --surface: #0e182f;
  --surface-2: #142040;
  --text: #eef2ff;
  --muted: #97a4c4;
  --line: #1f2b48;
  --accent: #4f8bff;
  --accent-2: #9cc0ff;
  --accent-soft: rgba(79, 139, 255, 0.14);
  --on-accent: #06102a;
  --glass: rgba(14, 24, 47, 0.68);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  --glow: drop-shadow(0 0 6px rgba(79, 139, 255, 0.55));
  --glow-1: rgba(55, 105, 255, 0.34);
  --glow-2: rgba(125, 80, 255, 0.22);
  --glow-3: rgba(30, 185, 200, 0.14);
  --nav-bg: rgba(6, 11, 26, 0.72);
  color-scheme: dark;
}

/* Logo-Bilder je nach Modus */
.only-dark {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .only-dark {
    display: block !important;
  }
  :root:not([data-theme='light']) .only-light {
    display: none !important;
  }
}
:root[data-theme='dark'] .only-dark {
  display: block !important;
}
:root[data-theme='dark'] .only-light {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Handy: nur hoch/runter scrollen, nichts ragt seitlich raus */
html {
  overflow-x: hidden;
}

main,
footer {
  overflow-x: clip;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

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

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
}

.skip-link:focus {
  top: 12px;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.g-a {
  stop-color: var(--accent);
}

.g-b {
  stop-color: var(--accent-2);
}

/* ---------- Hintergrund: sanftes Leuchten ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow span {
  position: absolute;
  width: 48vmax;
  height: 48vmax;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.bg-glow .b1 {
  background: var(--glow-1);
  left: -14vmax;
  top: -16vmax;
  animation: drift1 28s ease-in-out infinite alternate;
}

.bg-glow .b2 {
  background: var(--glow-2);
  right: -18vmax;
  top: 22vh;
  animation: drift2 34s ease-in-out infinite alternate;
}

.bg-glow .b3 {
  background: var(--glow-3);
  left: 20vw;
  bottom: -26vmax;
  animation: drift3 40s ease-in-out infinite alternate;
}

@keyframes drift1 {
  to {
    transform: translate(16vw, 12vh) scale(1.1);
  }
}
@keyframes drift2 {
  to {
    transform: translate(-14vw, 20vh) scale(0.9);
  }
}
@keyframes drift3 {
  to {
    transform: translate(-10vw, -16vh) scale(1.12);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-2)));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--accent);
}

.btn.primary:hover {
  box-shadow: 0 14px 36px -10px var(--accent);
}

.btn.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

/* ---------- Marke ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  text-decoration: none !important;
}

.mark {
  width: 32px;
  height: 32px;
  color: var(--text);
}

.mark .m-accent {
  fill: var(--accent);
  opacity: 0.35;
}

.mark .m-sheet {
  fill: var(--surface);
  stroke: currentColor;
}

.mark .m-lines {
  stroke: var(--muted);
  opacity: 0.6;
}

.mark .m-ink {
  stroke: var(--accent);
  filter: var(--glow);
}

.mark .m-pen {
  fill: #ffffff;
  stroke: currentColor;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.35s, box-shadow 0.35s;
}

.nav.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-btn {
  display: none;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: calc(100% - 4px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .menu-btn {
    display: inline-grid;
  }

  .nav-actions .btn {
    display: none;
  }
}

/* ---------- Abschnitte ---------- */
section {
  padding: clamp(80px, 11vw, 140px) 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.12rem;
}

/* Einblenden beim Scrollen – nur wenn JavaScript läuft (sonst immer sichtbar) */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay='1'] {
  transition-delay: 0.08s;
}
.reveal[data-delay='2'] {
  transition-delay: 0.16s;
}
.reveal[data-delay='3'] {
  transition-delay: 0.24s;
}

/* Tintenschwung */
.swoosh-word {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.swoosh-word svg {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.36em;
  overflow: visible;
}

.swoosh-word path,
.intro-swoosh path {
  fill: none;
  stroke: url(#ink-grad);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: var(--glow);
}

.swoosh-word path {
  stroke-width: 6;
}

.swoosh-word.drawn path {
  animation: draw 0.9s var(--ease) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(140px + env(safe-area-inset-top));
  padding-bottom: clamp(60px, 8vw, 100px);
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.7rem, 1.2rem + 6vw, 5.2rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero .lead {
  max-width: 560px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.facts li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8' fill='none' stroke='%232f6fed' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

/* ---------- Geräte-Rahmen (iPad) ---------- */
.ipad {
  position: relative;
  padding: 12px;
  border-radius: 30px;
  background: linear-gradient(160deg, #1f2638, #0b1020);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ipad::after {
  content: '';
  position: absolute;
  inset: -50px -40px -70px;
  z-index: -1;
  border-radius: 80px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
}

.screen-surface {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
}

.app-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.app-tab {
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--muted);
}

.app-tab.on {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.app-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.typed {
  padding: 11px 14px;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.95rem;
  text-align: left;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.paper {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 26px -14px rgba(0, 0, 0, 0.3);
}

.hand-text {
  font-family: var(--hand);
  fill: var(--ink);
}

.hero-device {
  max-width: 820px;
  margin: clamp(56px, 8vw, 88px) auto 0;
}

/* ---------- So geht's: Scroll-Geschichte ---------- */
.story {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.story-step {
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  opacity: 0.32;
  transition: opacity 0.5s var(--ease);
}

.story-step.active {
  opacity: 1;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 10px 24px -10px var(--accent);
}

.story-step h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  letter-spacing: -0.03em;
}

.story-step p {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 420px;
}

.story-stage {
  position: sticky;
  top: 14vh;
  height: 72vh;
  display: grid;
  align-items: center;
}

.screens {
  position: relative;
  aspect-ratio: 4 / 3;
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  display: flex;
  flex-direction: column;
}

.screen.active {
  opacity: 1;
  transform: none;
}

.screen .app-body {
  flex: 1;
}

.story-inline {
  display: none;
}

/* Inhalte der Bildschirme */
.cap-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cap-letter {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.3rem;
}

.cap-sub {
  color: var(--muted);
  font-size: 0.82rem;
}

.pad {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--surface-2);
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
}

.ui-btn.ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
}

.ui-muted {
  color: var(--muted);
  font-size: 0.82rem;
}

.screen.active .ui-btn.pulse {
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
  }
  50% {
    box-shadow: 0 0 0 10px transparent;
  }
}

.pages {
  position: relative;
  flex: 1;
  min-height: 150px;
}

.pages .paper {
  position: absolute;
  top: 6px;
  height: calc(100% - 12px);
  width: auto;
}

.pages .p1 {
  left: 16%;
  z-index: 2;
}

.pages .p2 {
  left: 44%;
  transform: rotate(4deg);
  opacity: 0.85;
}

.toast {
  align-self: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.screen.active .toast,
.story-step.active .toast {
  opacity: 1;
  transform: none;
  transition-delay: 1.1s;
}

/* ---------- Ausprobieren ---------- */
.demo {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.demo-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-controls label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.demo-controls textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  font: inherit;
  resize: vertical;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-controls textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.seg {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
}

.seg button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.seg button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.swatches {
  display: inline-flex;
  gap: 10px;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.swatch[aria-pressed='true'] {
  box-shadow: 0 0 0 2px var(--accent);
  transform: scale(1.08);
}

.paper-frame {
  padding: clamp(10px, 2vw, 16px);
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.count {
  margin-top: 6px;
  text-align: right;
}

/* ---------- Vergleich ---------- */
.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.vs-card {
  padding: clamp(24px, 4vw, 36px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.vs-card h3 {
  margin-bottom: 20px;
}

.vs-card ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vs-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.vs-card li::before {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.vs-other {
  color: var(--muted);
}

.vs-other li::before {
  content: '–';
  background: var(--surface-2);
  color: var(--muted);
}

.vs-ink {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 30px 60px -30px var(--accent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--glass)), var(--glass) 60%);
}

.vs-ink h3 {
  color: var(--accent);
}

.vs-ink li::before {
  content: '✓';
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

/* ---------- Testen ---------- */
.cta {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: 36px;
  text-align: center;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 14%, var(--glass)), var(--glass) 55%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: 0 40px 90px -40px var(--accent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.cta .app-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 26px;
  border-radius: 24%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta .app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.19);
}

.cta p {
  max-width: 460px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.12rem;
}

/* ---------- Fragen ---------- */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 2px;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq .answer {
  padding: 0 2px 22px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
footer {
  padding: 44px 0 calc(44px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.footer-links a {
  color: var(--muted);
}

.footer-claim {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Intro ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.intro.done {
  opacity: 0;
  visibility: hidden;
}

.intro-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.7s var(--ease);
}

.intro.done .intro-stage {
  transform: scale(1.05) translateY(-10px);
}

.intro .mark {
  width: clamp(104px, 20vw, 140px);
  height: auto;
  opacity: 0;
  transform: scale(0.92);
  animation: intro-in 0.6s var(--ease) 0.05s forwards;
}

@keyframes intro-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.intro .mark .m-ink {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.85s var(--ease) 0.45s forwards;
}

.intro .mark .m-pen-g {
  animation: pen-write 0.85s var(--ease) 0.45s both;
}

@keyframes pen-write {
  from {
    transform: translate(-22px, 4px);
  }
  to {
    transform: none;
  }
}

.intro-word {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 4vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  clip-path: inset(0 100% 0 0);
  animation: reveal-word 0.9s var(--ease) 1.15s forwards;
}

@keyframes reveal-word {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.intro-swoosh {
  width: clamp(150px, 28vw, 220px);
  height: 22px;
  margin-top: -10px;
  overflow: visible;
}

.intro-swoosh path {
  stroke-width: 5;
  animation: draw 0.7s var(--ease) 1.85s forwards;
}

.intro-skip {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
}

/* ---------- Rechtstexte ---------- */
.legal {
  padding-top: calc(120px + env(safe-area-inset-top));
}

.legal-inner {
  max-width: 740px;
  margin-inline: auto;
}

.legal h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  margin-bottom: 26px;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 34px 0 10px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal p + p {
  margin-top: 10px;
}

.legal address {
  font-style: normal;
  color: var(--muted);
}

.legal-stand {
  margin-top: 30px;
}

.notice {
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: var(--text) !important;
  margin-bottom: 22px;
}

.ph {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 190, 60, 0.22);
  color: var(--text);
}

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .story {
    grid-template-columns: 1fr;
  }

  .story-stage {
    display: none;
  }

  .story-step {
    min-height: 0;
    opacity: 1;
    margin-bottom: 56px;
  }

  .story-inline {
    display: block;
    margin-top: 10px;
  }

  .story-inline .screen {
    position: relative;
    opacity: 1;
    transform: none;
  }

  .story-inline .screens {
    aspect-ratio: auto;
  }

  .story-inline .pages {
    min-height: 190px;
  }

  .demo {
    grid-template-columns: 1fr;
  }

  .vs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hero-actions .btn {
    flex: 1 1 220px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .intro {
    display: none;
  }
}

/* Bildschirme im iPad: Inhalte passen sich dem Platz an (nichts wird abgeschnitten) */
.screen .app-body {
  min-height: 0;
}

.screen .pad,
.screen .js-page {
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
  width: 100%;
}

@media (max-width: 900px) {
  .story-inline .pad,
  .story-inline .js-page {
    flex: none;
    height: auto;
  }
}
