/*
 * Pflichtblick – Vorab-Seite
 * Stilrichtung „Tiefsee“, Werte aus der App (app/globals.css).
 * Handy zuerst: Grundwerte gelten für kleine Bildschirme, @media (min-width) erweitert.
 */

/* ---------- Schriften (vom eigenen Server, Lizenz: assets/fonts/OFL-*.txt) ---------- */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
}

/* ---------- Design-Tokens ---------- */

:root {
  color-scheme: dark;

  --bg: #061a1f;
  --surface: #0b252c;
  --line: #17404a;
  --line-strong: #2e6a72;
  --field-line: #357a82;

  --fg: #eaf6f4;
  --muted: #9fbdba;
  --subtle: #7fa3a0;

  --accent: #5eead4;
  --accent-hover: #a7f3e8;
  --accent-soft: #0f3a3a;
  --on-accent: #061a1f;

  --caution: #fcd34d;
  --caution-soft: #241f0c;
  --caution-line: #8a6d1c;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-input: 12px;
  --radius-button: 14px;
  --radius-tile: 18px;
  --radius-card: 22px;
  --radius-panel: 28px;

  --gutter: 16px;
  --max: 1120px;
  --ease-out-deep: cubic-bezier(0.16, 0.8, 0.24, 1);
}

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }
}

/* ---------- Grundlagen ---------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Dezenter Mint-Schimmer oben, wie im Entwurf (rein dekorativ) */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 720px;
  background: radial-gradient(
    60% 55% at 70% 0%,
    rgb(94 234 212 / 0.13),
    rgb(94 234 212 / 0) 70%
  );
  pointer-events: none;
  z-index: -1;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent-hover);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-button);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--on-accent);
}

.mono {
  font-family: var(--font-mono);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Kopf ---------- */

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--fg);
  text-decoration: none;
}

.logo:hover {
  color: var(--fg);
}

.logo svg {
  flex-shrink: 0;
  color: var(--accent);
}

.logo span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Markierung „In Entwicklung“ */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- Einstieg ---------- */

.hero {
  padding-top: 40px;
  padding-bottom: 64px;
}

.hero .eyebrow {
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 11.5vw, 92px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 12em;
}

.hero h1 .accent {
  color: var(--accent);
}

.lead {
  max-width: 31em;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
}

.soon-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 28px;
  color: var(--fg);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 72px;
    padding-bottom: 104px;
  }

  .lead {
    font-size: 19px;
  }
}

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-secondary {
  border-color: var(--line-strong);
  color: var(--fg);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.btn:disabled {
  cursor: not-allowed;
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--muted);
}

/* ---------- Abschnitte ---------- */

.section {
  padding-top: 56px;
  padding-bottom: 56px;
  scroll-margin-top: 8px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 7.5vw, 54px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 16em;
  margin-bottom: 14px;
}

.section-intro {
  max-width: 36em;
  color: var(--muted);
  margin-bottom: 36px;
}

@media (min-width: 640px) {
  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .section-intro {
    margin-bottom: 48px;
  }
}

/* Karten (Ablauf und Bereiche) */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

/* Zwischentitel der Bereiche (Betrieb / Zuhause) */
.group-title {
  margin: 36px 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 + .group-title {
  margin-top: 28px;
}

/* Markierung „Geplant“, wie „Bald“ in der App */
.badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
  color: var(--muted);
}

/* Bereiche: fünf Karten passen am Desktop in eine Reihe */
.grid-areas {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 24px;
}

.card .code {
  display: block;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.card h3,
.card h4 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}

.card p {
  font-size: 15px;
  color: var(--muted);
}

/* Ziele zum Datenschutz */
.goals {
  display: grid;
  gap: 12px;
  max-width: 44em;
}

.goals li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
}

.goals svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

.goals strong {
  display: block;
  font-weight: 600;
}

.goals span {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Warteliste ---------- */

.waitlist {
  border: 1px solid #1f5a5f;
  border-radius: var(--radius-panel);
  padding: 40px 20px;
  background: radial-gradient(
    120% 140% at 50% 0%,
    #0f4a48 0%,
    var(--surface) 55%,
    var(--bg) 100%
  );
}

.waitlist h2 {
  margin-bottom: 12px;
}

.waitlist .section-intro {
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .waitlist {
    padding: 64px 48px;
  }
}

.notice {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  max-width: 34em;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px dashed var(--caution-line);
  border-radius: var(--radius-input);
  background: var(--caution-soft);
  color: var(--fg);
  font-size: 15px;
}

.notice .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--caution);
}

.form {
  max-width: 34em;
}

.form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

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

.field {
  margin-bottom: 18px;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.form input[type="email"],
.form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-input);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 16px; /* verhindert Zoom auf dem iPhone */
}

.form input[type="email"]::placeholder {
  color: var(--subtle);
}

/* Auswahlfeld mit eigenem Pfeil (als data-URI, kein fremder Server) */
.form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5l4 4 4-4' stroke='%239FBDBA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form select option {
  background: var(--surface);
  color: var(--fg);
}

.form input[type="email"]:disabled,
.form select:disabled {
  cursor: not-allowed;
  background-color: var(--surface);
}

.form input[type="email"]:focus-visible,
.form select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* Fangfeld gegen Spam: für Menschen unsichtbar */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.form-status {
  margin-top: 14px;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status[data-state="ok"] {
  color: var(--accent);
}

.form-status[data-state="error"] {
  color: var(--caution);
}

/* ---------- Fuß ---------- */

.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 14px;
  color: var(--subtle);
}

.site-footer ul {
  display: flex;
  gap: 20px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--subtle);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
  text-decoration: underline;
}

/* ---------- Textseiten (Impressum, Datenschutz, Bestätigt, 404) ---------- */

.page {
  padding-top: 40px;
  padding-bottom: 64px;
}

.page .eyebrow {
  margin-bottom: 16px;
}

.page h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 9vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.prose {
  max-width: 42em;
  color: var(--muted);
}

.prose > * + * {
  margin-top: 16px;
}

.prose h2 {
  margin-top: 44px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.prose h3 {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.prose ul {
  padding-left: 1.2em;
  list-style: disc;
}

.prose li + li {
  margin-top: 6px;
}

.prose address {
  font-style: normal;
}

/* Platzhalter für Ihre Angaben: gut sichtbar, bis sie ersetzt sind */
.ph {
  padding: 1px 6px;
  border: 1px dashed var(--caution-line);
  border-radius: 6px;
  background: var(--caution-soft);
  color: var(--caution);
  font-family: var(--font-mono);
  font-size: 0.86em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Prüfpunkt: vor Veröffentlichung klären und dann entfernen */
.check {
  padding: 12px 16px;
  border-left: 3px solid var(--caution);
  border-radius: 0 var(--radius-input) var(--radius-input) 0;
  background: var(--caution-soft);
  color: var(--fg);
  font-size: 15px;
}

.check strong {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--caution);
}

.draft-box {
  max-width: 42em;
  margin-bottom: 36px;
  padding: 16px 18px;
  border: 1px solid var(--caution-line);
  border-radius: var(--radius-tile);
  background: var(--caution-soft);
  color: var(--fg);
  font-size: 15px;
}

.draft-box p + p {
  margin-top: 8px;
}

.back-link {
  margin-top: 32px;
}

/* ---------- Bewegung ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.9s var(--ease-out-deep) both;
  }

  .rise-2 {
    animation-delay: 0.08s;
  }

  .rise-3 {
    animation-delay: 0.16s;
  }

  .rise-4 {
    animation-delay: 0.24s;
  }

  .status::before {
    animation: pulse 2.4s ease-in-out infinite;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ======================================================================
 * Effekte (v4): 3D-Bühne im Einstieg, Einblenden beim Scrollen, Übergänge
 * Werte wie in der App (app/globals.css: hero-scene, data-reveal, lift).
 * Bei prefers-reduced-motion greift die Regel weiter oben (keine Animationen
 * und Übergänge); assets/js/effekte.js setzt dann nichts.
 * ====================================================================== */

:root {
  --urgent: #ff8a6b;
}

/* 3D-Karten erzeugen kein seitliches Scrollen */
main {
  overflow-x: clip;
}

/* ---------- Einstieg: Text links, Bühne rechts (Handy: darunter) ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 40px;
}

.hero-text {
  flex: 1 1 480px;
  min-width: 0;
}

.hero-scene {
  flex: 1 1 420px;
  min-width: 0;
}

@media (min-width: 960px) {
  .hero h1 {
    font-size: clamp(56px, 6.2vw, 88px);
  }
}

/* ---------- 3D-Bühne mit schwebenden Beispielkarten ---------- */
.hero-scene {
  position: relative;
  height: 540px;
  perspective: 1500px;
}

.hero-glow {
  position: absolute;
  inset: 8% 4% 0 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(94 234 212 / 0.22), rgb(94 234 212 / 0));
  filter: blur(10px);
}

.hero-float {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: hero-float 8s ease-in-out infinite;
  /* Karten sind Dekoration: nie Klicks auf Knöpfe darunter abfangen.
     Die Neigung zur Maus hört auf .hero-scene und funktioniert weiter. */
  pointer-events: none;
}

.hero-stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.25s ease-out;
}

.hero-doc {
  position: absolute;
  width: min(320px, 74%);
  padding: 20px;
  border: 1px solid rgb(94 234 212 / 0.3);
  border-radius: var(--radius-tile);
  background: rgb(11 37 44 / 0.92);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.45);
  animation: hero-fly-in 1.5s var(--ease-out-deep) both;
}

.hero-doc-a {
  left: 2%;
  top: 20px;
  border-color: rgb(94 234 212 / 0.45);
  transform: rotateY(-26deg) rotateX(16deg) translateZ(90px) rotate(-7deg);
  animation-delay: 0.1s;
}

.hero-doc-b {
  left: 26%;
  top: 170px;
  transform: rotateY(-26deg) rotateX(16deg) translateZ(10px) rotate(4deg);
  animation-delay: 0.35s;
}

.hero-doc-c {
  left: 8%;
  top: 320px;
  transform: rotateY(-26deg) rotateX(16deg) translateZ(-70px) rotate(-3deg);
  animation-delay: 0.6s;
}

.doc-label {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.doc-title {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
}

.doc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.doc-date {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--fg);
}

.doc-date-urgent {
  color: var(--urgent);
}

@media (max-width: 639px) {
  .hero-scene {
    height: 450px;
    margin-top: 56px; /* Abstand, damit die geneigte vordere Karte nicht über die Knöpfe ragt */
  }

  .hero-doc-a {
    left: 7%;
    top: 10px;
  }

  .hero-doc-b {
    top: 150px;
  }

  .hero-doc-c {
    top: 290px;
  }
}

@keyframes hero-fly-in {
  from {
    opacity: 0;
    transform: rotateY(-70deg) rotateX(40deg) translateZ(-700px) rotate(-25deg);
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* ---------- Karten: anheben und leicht zum Mauszeiger neigen ---------- */
.tilt-card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translateY(var(--lift, 0px));
  transition:
    transform 0.35s var(--ease-out-deep),
    border-color 0.35s ease;
}

.tilt-card:hover {
  --lift: -6px;
  border-color: var(--line-strong);
}

/* ---------- Knöpfe und Felder ---------- */
.btn {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.25s var(--ease-out-deep);
}

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

.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}

.btn:disabled {
  transform: none;
}

.form input[type="email"],
.form select {
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease;
}

.form input[type="email"]:focus-visible,
.form select:focus-visible {
  box-shadow: 0 0 0 4px rgb(94 234 212 / 0.18);
}

.form-status:not(:empty) {
  animation: status-in 0.45s var(--ease-out-deep) both;
}

@keyframes status-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ---------- Einblenden beim Hereinscrollen (assets/js/effekte.js) ----------
 * Versteckt wird nur, was das Skript auf data-reveal-state="hidden" setzt.
 * Ohne JavaScript bleibt alles sichtbar. Steht nach .tilt-card, damit diese
 * Regeln während des Einblendens gewinnen. */
[data-reveal-state="hidden"] {
  opacity: 0;
  transition: none;
}

[data-reveal-state="hidden"][data-reveal="tilt"] {
  transform: perspective(1100px) rotateX(46deg) translateY(120px) scale(0.9);
}

[data-reveal-state="hidden"][data-reveal="deep"] {
  transform: perspective(900px) translateZ(-560px) rotateX(26deg);
}

[data-reveal-state="hidden"][data-reveal="left"] {
  transform: perspective(1200px) rotateY(48deg) translateX(-110px);
}

[data-reveal-state="hidden"][data-reveal="flip"] {
  transform: perspective(1600px) rotateX(-62deg) translateY(140px) scale(0.92);
  transform-origin: 50% 0%;
}

[data-reveal-state="shown"] {
  transition:
    opacity 0.9s ease,
    transform 1.2s var(--ease-out-deep);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal-state="shown"][data-reveal="flip"] {
  transform-origin: 50% 0%;
}

[data-reveal-step="1"] {
  --reveal-delay: 0.12s;
}

[data-reveal-step="2"] {
  --reveal-delay: 0.24s;
}

[data-reveal-step="3"] {
  --reveal-delay: 0.36s;
}

[data-reveal-step="4"] {
  --reveal-delay: 0.48s;
}

/* ======================================================================
 * v5: Preise, Gründerangebot, Tabelle, Fuß mit vier Links
 * ====================================================================== */

/* Fuß: Links dürfen am Handy umbrechen */
.site-footer ul {
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 0;
}

/* ---------- Preise ---------- */
.price-group {
  margin: 36px 0 16px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
}

.section-intro + .price-groups .price-group:first-child {
  margin-top: 8px;
}

.grid-prices {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card h4 {
  margin: 0 0 10px;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.price-card .price-alt {
  display: block;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.price-card .price-gross {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.price-features {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.price-features li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--muted);
}

/* Haken als reine Dekoration (kein Text) */
.price-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.price-card .price-extra {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

.price-note {
  max-width: 44em;
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Gründerangebot über dem Formular ---------- */
.offer {
  max-width: 34em;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid rgb(94 234 212 / 0.45);
  border-radius: var(--radius-tile);
  background: rgb(6 26 31 / 0.55);
  font-size: 15px;
  color: var(--fg);
}

.offer strong {
  color: var(--accent);
  font-weight: 600;
}

.offer a {
  white-space: nowrap;
  font-weight: 600;
}

/* ---------- Tabelle (Gründerangebot) ---------- */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
}

.table-wrap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose thead th {
  color: var(--fg);
  font-weight: 600;
  background: var(--surface);
}

.prose tbody th {
  color: var(--fg);
  font-weight: 600;
}

.prose td {
  font-family: var(--font-mono);
  font-size: 14px;
  white-space: nowrap;
  color: var(--fg);
}

.prose tbody tr:last-child th,
.prose tbody tr:last-child td {
  border-bottom: 0;
}

/* Tabelle: Schatten am Rand zeigen an, dass sich seitlich wischen lässt (verschwindet am Ende) */
.table-wrap {
  background:
    linear-gradient(to left, var(--bg) 30%, rgb(6 26 31 / 0)) right center / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 100% 50%, rgb(94 234 212 / 0.5), rgb(94 234 212 / 0)) right center / 18px 100% no-repeat scroll;
  background-color: var(--bg);
}

.prose thead th {
  background: transparent;
}

/* Erste Spalte (Tarif) bleibt beim seitlichen Wischen stehen */
.prose thead th:first-child,
.prose tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg);
  box-shadow: inset -1px 0 0 var(--line);
}

/* ======================================================================
 * v6: Gründerangebot im Einstieg, Leiste unten am Handy
 * ====================================================================== */

/* Sichere Zonen am iPhone (viewport-fit=cover auf der Startseite) */
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ---------- Hinweis zum Gründerangebot im Einstieg ---------- */
.hero-offer {
  max-width: 31em;
  margin: -8px 0 24px;
  padding: 14px 16px 4px;
  border: 1px solid rgb(94 234 212 / 0.45);
  border-radius: var(--radius-tile);
  background: rgb(6 26 31 / 0.55);
}

.hero-offer-text {
  font-size: 16px;
  color: var(--fg);
}

.hero-offer-text strong {
  color: var(--accent);
  font-weight: 600;
}

.hero-offer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ---------- Leiste unten (nur Handy, nur mit JavaScript) ---------- */
.cta-bar {
  display: none;
}

@media (max-width: 767px) {
  .cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px max(8px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
    border-top: 1px solid var(--line-strong);
    background: rgb(11 37 44 / 0.97);
    box-shadow: 0 -12px 30px rgb(0 0 0 / 0.35);
    transform: translateY(110%);
    transition: transform 0.3s var(--ease-out-deep);
  }

  .cta-bar[hidden] {
    display: none;
  }

  .cta-bar.is-visible {
    transform: translateY(0);
  }

  .cta-bar-text {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    color: var(--fg);
  }

  .cta-bar-btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 16px;
  }

  .cta-bar-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius-input);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }

  .cta-bar-close:hover {
    color: var(--fg);
    background: var(--accent-soft);
  }

  /* Abstand unten, solange die Leiste aktiv ist: der Fuß lässt sich immer darüber schieben */
  html.cta-aktiv body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }
}

/* ======================================================================
 * v7: App-Fotos, Geschichte, Häufige Fragen, Satz unter den Grundsätzen
 * ====================================================================== */

/* ---------- Ein Blick in die App ---------- */
.app-shots {
  margin: 28px 0 0;
}

.app-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.app-shot {
  width: 100%;
  max-width: 320px; /* Handy: 390er-Fassung, nicht breiter als 320 px */
  margin: 0;
}

.app-shot h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}

.app-shot picture,
.app-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.app-shot img {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-tile);
  background: var(--surface);
  box-shadow: 0 24px 50px rgb(0 0 0 / 0.35);
}

.app-caption {
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}

@media (min-width: 768px) {
  /* Desktop: 1280er-Fassung, oben groß, darunter zwei halb so breite */
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }

  .app-shot {
    max-width: none;
  }

  .app-shot-main {
    grid-column: 1 / -1;
  }
}

/* ---------- Satz unter den Grundsätzen ---------- */
.goals-note {
  max-width: 44em;
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-input) var(--radius-input) 0;
  background: var(--surface);
  color: var(--fg);
  font-weight: 500;
}

/* ---------- Warum ich Pflichtblick baue ---------- */
.story {
  max-width: 42em;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.story p + p {
  margin-top: 14px;
}

.story p:first-child {
  color: var(--fg);
}

/* ---------- Häufige Fragen ---------- */
.faq {
  display: grid;
  gap: 10px;
  max-width: 46em;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  background: var(--surface);
  transition: border-color 0.25s ease;
}

.faq-item[open] {
  border-color: var(--line-strong);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 14px 52px 14px 18px;
  border-radius: var(--radius-tile);
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
}

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

/* Pfeil als reine Dekoration */
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease-out-deep);
}

.faq-item[open] summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.faq-item summary:hover {
  background: rgb(94 234 212 / 0.05);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq-item p {
  padding: 0 18px 16px;
  color: var(--muted);
}
