/* VertragsGO Landingpage – Farben wie die App (src/app/globals.css), Systemschrift. */
:root {
  color-scheme: light dark;
  --bg: oklch(0.978 0.006 255.5);
  --fg: oklch(0.233 0.07 265);
  --muted: oklch(0.51 0.053 269.8);
  --card: oklch(1 0 0);
  --border: oklch(0.927 0.01 261.8);
  --primary: oklch(0.512 0.118 156.8);
  --primary-hover: oklch(0.46 0.118 156.8);
  --primary-fg: oklch(0.99 0 0);
  --accent: oklch(0.6 0.165 149.5);
  --mark-up: #0f7a4a;
  --mark-lo: #22c55e;
  --frame: oklch(0.233 0.07 265);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.183 0.031 263.4);
    --fg: oklch(0.934 0.02 267.3);
    --muted: oklch(0.705 0.045 266.2);
    --card: oklch(0.218 0.036 262.5);
    --border: oklch(0.31 0.051 262.2);
    --primary: oklch(0.723 0.192 149.6);
    --primary-hover: oklch(0.68 0.18 149.6);
    --primary-fg: oklch(0.233 0.07 265);
    --accent: oklch(0.723 0.192 149.6);
    --mark-up: #1f9059;
    --frame: oklch(0.32 0.04 262);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    17px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 9vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.375rem;
  font-weight: 700;
}

p {
  margin: 0;
}

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

/* Kopfzeile */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right)) 12px
    max(20px, env(safe-area-inset-left));
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo svg {
  height: 1.3em;
}

.mark-up {
  fill: var(--mark-up);
}

.mark-lo {
  fill: var(--mark-lo);
}

/* Schaltflächen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.btn.primary {
  min-height: 50px;
  background: var(--primary);
  color: var(--primary-fg);
}

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

.btn.ghost {
  padding: 0 14px;
  color: var(--primary);
}

.btn:focus-visible,
.logo:focus-visible,
.foot a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Abschnitte */
main > section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px max(20px, env(safe-area-inset-right)) 56px
    max(20px, env(safe-area-inset-left));
}

.hero {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
  padding-top: 32px !important;
}

.eyebrow,
.tag {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Kleine Schrift: Primärgrün (Kontrast ≥ 4,5:1); --accent nur für große Schrift */
.tag {
  color: var(--primary);
}

.lead {
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.1875rem;
}

.hero .phone {
  margin-top: 20px;
}

/* Handy-Rahmen für die Clips */
.phone {
  position: relative;
  width: min(280px, 72vw);
  margin: 0;
  aspect-ratio: 1 / 2;
  border: 7px solid var(--frame);
  border-radius: 38px;
  overflow: hidden;
  background: var(--card);
}

.phone video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Anhalten/Abspielen je Clip (44 px Touch-Ziel) */
.clip-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: oklch(0.233 0.07 265 / 0.72);
  color: oklch(0.99 0 0);
  cursor: pointer;
}

.clip-toggle[hidden] {
  display: none;
}

.clip-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.clip-toggle[aria-pressed="true"] .i-pause,
.clip-toggle[aria-pressed="false"] .i-play {
  display: none;
}

.clip-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Warum VertragsGO? */
.why {
  display: grid;
  gap: 72px;
}

.why h2 {
  text-align: center;
}

.feature {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.feature .text {
  display: grid;
  gap: 8px;
  max-width: 30ch;
}

.feature .text p:not(.tag) {
  color: var(--muted);
}

@media (min-width: 860px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: left;
  }

  .feature .text {
    justify-self: end;
  }

  .feature:nth-of-type(even) .text {
    order: 2;
    justify-self: start;
  }
}

/* Wer wir sind / Vision */
.story {
  display: grid;
  gap: 12px;
  max-width: 640px !important;
}

.story h2 {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0;
}

.story h2:not(:first-child) {
  margin-top: 40px;
}

.story .big {
  font-size: clamp(1.625rem, 6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.story p:not(.big) {
  color: var(--muted);
}

/* Preise */
.prices {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

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

.plans {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 920px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .plans {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plan {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.plan h3 {
  font-size: 1.0625rem;
}

.price b {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.price,
.term {
  color: var(--muted);
}

.price b {
  color: var(--fg);
}

/* Empfohlenes Paket: nur Rahmen und Hinweis in Markengrün. */
.plan.recommended {
  border-color: var(--primary);
}

.badge {
  justify-self: center;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
}

.plus {
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.features {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 0.9375rem;
}

.plus + .features {
  margin-top: 6px;
}

.features li {
  position: relative;
  padding-left: 22px;
}

/* Haken als reine CSS-Form, ohne Bild. */
.features li::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 4px;
  width: 5px;
  height: 10px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Noch nicht verfügbar (#437): leise, ohne eigene Farbe. */
.soon {
  margin-left: 4px;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.prices .note {
  max-width: 34em;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Fußzeile */
.foot {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 32px max(20px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Aktuelle Sprache: nur dunkler, kein weiterer Akzent. */
.foot [aria-current="page"] {
  color: var(--fg);
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  text-decoration: none;
}

/* Rechtstexte */
.legal {
  max-width: 680px !important;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 28px 0 8px;
}

.legal p {
  margin-bottom: 12px;
}

.placeholder {
  padding: 2px 6px;
  border-radius: 6px;
  background: color-mix(in oklch, var(--accent) 18%, transparent);
}

/* Beim Scrollen einblenden – nur mit JS und ohne reduzierte Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 200ms ease-out,
      transform 200ms ease-out;
  }

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

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