/* =========================================================
   CardLoft — Design-System der Loft-Familie (Vorbild taskloft.de)
   Tokens → Basis → Komponenten → Abschnitte → Unterseiten
   Keine externen Schriften: System-Schrift (SF Pro auf Apple-Geräten).
   ========================================================= */

:root {
  /* Flächen */
  --bg:            #08080b;
  --bg-soft:       #0d0d12;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-2:     rgba(255, 255, 255, 0.07);
  --hairline:      rgba(255, 255, 255, 0.10);
  --hairline-soft: rgba(255, 255, 255, 0.06);

  /* Text */
  --text:   #f5f5f7;
  --text-2: rgba(245, 245, 247, 0.68);
  --text-3: rgba(245, 245, 247, 0.46);

  /* Akzent: Loft-Blau wie taskloft.de, Verlauf endet in der CardLoft-Sonne (Karmin) */
  --blue:        #3B5BDB;
  --blue-hover:  #2F4ACB;
  --blue-bright: #6E8BFF;
  --ice:         #C9D4FF;
  --accent-grad: linear-gradient(120deg, var(--blue), var(--blue-bright) 46%, #F26A5E);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --container: 1180px;
  --gutter: clamp(16px, 5vw, 40px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100dvh;
}

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

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

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 18px;
  border-radius: 0 0 12px 12px; z-index: 200; transition: top 0.2s; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- Hintergrund (Aurora + Korn wie taskloft.de) ---------- */
.bg-field { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.aurora { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; }
.aurora--1 {
  width: 60vw; height: 60vw; top: -22vw; left: -12vw;
  background: radial-gradient(circle, rgba(79, 179, 240, 0.45), transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora--2 {
  width: 52vw; height: 52vw; top: 28vh; right: -16vw;
  background: radial-gradient(circle, rgba(59, 91, 219, 0.42), transparent 65%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.aurora--3 {
  width: 46vw; height: 46vw; bottom: -16vw; left: 24vw;
  background: radial-gradient(circle, rgba(169, 225, 255, 0.18), transparent 65%);
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-7vw, -5vh) scale(1.08); } }
@keyframes drift3 { to { transform: translate(5vw, -7vh) scale(1.15); } }
.grain {
  position: absolute; inset: -50%; opacity: 0.04; 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='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Kopfzeile ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(8, 8, 11, 0.68);
  border-bottom: 1px solid var(--hairline-soft);
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 12px;
}

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 1.1rem; letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }

nav.main { display: flex; gap: 26px; align-items: center; }
nav.main a:not(.btn) {
  color: var(--text-2); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s;
}
nav.main a:not(.btn):hover { color: var(--text); }

@media (max-width: 760px) {
  nav.main a:not(.btn) { display: none; }
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 650; font-size: 0.98rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), border-color 0.2s;
}
.btn--sm { padding: 8px 16px; font-size: 0.9rem; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn--ghost { border-color: var(--hairline); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--soon {
  background: var(--surface-2); color: var(--text); border-color: var(--hairline);
  cursor: default;
}
.btn--soon svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 8vw, 100px); }
.hero__grid {
  display: grid; gap: clamp(40px, 6vw, 72px); align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .cta { justify-content: center; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--surface);
  color: var(--text-2); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

h1 {
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  line-height: 1.04; font-weight: 800; letter-spacing: -0.035em;
}
.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  margin: 0 0 34px; max-width: 54ch;
  color: var(--text-2); font-size: clamp(1.05rem, 1rem + 0.45vw, 1.25rem);
}
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin: 18px 0 0; color: var(--text-3); font-size: 0.86rem; }

/* Wallet-Karte als Hero-Bild */
.pass-stage { display: grid; place-items: center; perspective: 1400px; }
.pass {
  width: min(100%, 340px);
  border-radius: 22px;
  padding: 22px 22px 24px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(79, 179, 240, 0.22), transparent 60%),
    linear-gradient(160deg, #1b1f26, #0f1216 70%);
  border: 1px solid var(--hairline);
  box-shadow: 0 40px 80px -30px rgba(59, 91, 219, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.8s var(--ease);
  text-align: left;
}
.pass:hover { transform: none; }
.pass__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.pass__logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 0.95rem; }
.pass__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent-grad); }
.pass__label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.pass__name { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.pass__fields { display: flex; gap: 28px; margin: 14px 0 22px; }
.pass__fields div { font-size: 0.95rem; }
.pass__qr {
  width: 148px; margin-inline: auto; padding: 12px;
  background: #fff; border-radius: 12px;
}
.pass__qr img { width: 100%; height: auto; image-rendering: pixelated; }
.pass__hint { margin-top: 10px; text-align: center; font-size: 0.75rem; color: var(--text-3); }

/* ---------- Abschnitte ---------- */
section { padding-block: clamp(64px, 10vw, 120px); }
section.alt { background: linear-gradient(180deg, transparent, var(--bg-soft) 30%, var(--bg-soft) 70%, transparent); }

.kicker {
  display: block; color: var(--blue-bright);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 750; letter-spacing: -0.03em; line-height: 1.08;
}
h2 .muted { color: var(--text-3); font-weight: 500; }
.sub { max-width: 62ch; color: var(--text-2); font-size: 1.08rem; margin: 0 0 44px; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* ---------- Karten-Raster ---------- */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--hairline); }
.card .icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 14px; background: rgba(59, 91, 219, 0.16); color: var(--blue-bright);
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.18rem; font-weight: 700; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--text-2); font-size: 0.98rem; }
.tag {
  display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--hairline); color: var(--text-3);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; vertical-align: middle;
}

/* ---------- Schritte ---------- */
.steps { margin-top: 40px; counter-reset: schritt; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step { padding: 26px 24px; border-left: 1px solid var(--hairline); }
.step::before {
  counter-increment: schritt; content: counter(schritt, decimal-leading-zero);
  display: block; font-size: 0.85rem; font-weight: 700; color: var(--blue-bright);
  letter-spacing: 0.08em; margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 1.12rem; }
.step p { margin: 0; color: var(--text-2); font-size: 0.97rem; }

/* ---------- Privatsphäre-Band ---------- */
.privacy-strip {
  border: 1px solid var(--hairline-soft); border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 70% 90% at 50% 120%, rgba(59, 91, 219, 0.20), transparent 70%),
    var(--surface);
  padding: clamp(32px, 6vw, 68px);
}
.checks {
  list-style: none; margin: 0 0 34px; padding: 0;
  display: grid; gap: 4px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.checks li { position: relative; padding: 9px 0 9px 30px; color: var(--text-2); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 9px;
  color: var(--blue-bright); font-weight: 800;
}
.checks strong { color: var(--text); font-weight: 650; }

/* ---------- Preis-Hinweis ---------- */
.price-box {
  max-width: 760px; margin: 36px auto 0;
  border: 1px solid rgba(59, 91, 219, 0.5); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(59, 91, 219, 0.12), var(--surface) 60%);
  padding: clamp(28px, 5vw, 48px);
}
.price-box .price { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 6px 0 14px; }
.price-box p { color: var(--text-2); margin: 0 auto; max-width: 56ch; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--hairline-soft); padding: 2px 0; }
details summary {
  cursor: pointer; padding: 18px 0; font-weight: 650; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--blue-bright); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 20px; color: var(--text-2); }
details a, .sub a { color: var(--blue-bright); }

/* ---------- Fußzeile (vierspaltig wie taskloft.de) ---------- */
.footer { border-top: 1px solid var(--hairline-soft); padding-block: clamp(48px, 7vw, 80px) 36px; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid var(--hairline-soft);
}
.footer__tag { margin: 16px 0 0; color: var(--text-3); max-width: 30ch; font-size: 0.95rem; }
.footer__col h2 {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-3); margin: 0 0 14px;
}
.footer__col a { display: block; padding: 5px 0; color: var(--text-2); font-size: 0.96rem; text-decoration: none; transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  margin-top: 26px; color: var(--text-3); font-size: 0.86rem;
}
.footer__trademark { padding-top: 10px; font-size: 0.74rem; color: var(--text-3); line-height: 1.5; }
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Unterseiten (sites/) ---------- */
.page {
  max-width: 780px; margin-inline: auto;
  padding: clamp(44px, 8vw, 88px) var(--gutter) 80px;
  overflow-wrap: anywhere;
}
.page h1 { font-size: clamp(2rem, 5.4vw, 3rem); margin-bottom: 14px; hyphens: auto; }
.page .stand { color: var(--text-3); font-size: 0.92rem; margin: 0 0 32px; }
.page h2 { font-size: clamp(1.3rem, 3vw, 1.55rem); margin: 44px 0 12px; letter-spacing: -0.02em; }
.page h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.page p, .page li { color: var(--text-2); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 6px; }
.page strong { color: var(--text); font-weight: 650; }
.page a { color: var(--blue-bright); }
.page hr { border: 0; border-top: 1px solid var(--hairline-soft); margin: 40px 0; }
.page dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 20px; margin: 0 0 16px; }
.page dt { color: var(--text-3); }
.page dd { margin: 0; color: var(--text-2); }
@media (max-width: 480px) {
  .page dl { grid-template-columns: 1fr; gap: 0; }
  .page dd { margin-bottom: 8px; }
}
.pruefen { background: rgba(232, 163, 60, 0.18); color: #F4C27A; padding: 0 4px; border-radius: 4px; }
.back { display: inline-block; margin-top: 48px; color: var(--text-2); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .pass { transform: none; }
}
