/* Momente – gemeinsames Design */
:root {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4efe8;
  --muted: rgba(244, 239, 232, 0.58);
  --faint: rgba(244, 239, 232, 0.36);
  --accent: #e9c79f;
  --accent-2: #c98f5a;
  --accent-ink: #1a1208;
  --ok: #9fd6b0;
  --err: #f2a093;
  --radius: 22px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Atmosphäre: weiche Lichtflecken + Filmkorn ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 60vmax; height: 60vmax; left: -20vmax; top: -25vmax; background: radial-gradient(circle, #8a5a32 0%, transparent 65%); }
.aurora i:nth-child(2) { width: 50vmax; height: 50vmax; right: -22vmax; top: 10vh; background: radial-gradient(circle, #3b2a4a 0%, transparent 65%); animation-duration: 32s; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 55vmax; height: 55vmax; left: 10vw; bottom: -35vmax; background: radial-gradient(circle, #5b3a22 0%, transparent 62%); animation-duration: 38s; animation-delay: -14s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(6vw, 4vh, 0) scale(1.15); }
}
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); }
}
@media (prefers-reduced-motion: reduce) { .aurora i, .grain { animation: none; } }

.page { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 520px; margin: 0 auto; padding: 0 22px; }
.wrap.wide { max-width: 1280px; }

/* ---------- Typografie ---------- */
.eyebrow {
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: .98;
  font-size: clamp(46px, 13vw, 84px); margin: 18px 0 14px;
}
.display em { font-style: italic; color: var(--accent); }
.lede { color: var(--muted); font-size: 17px; margin: 0; max-width: 34ch; }
h2.title { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -.01em; margin: 0; line-height: 1.1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Karten & Formulare ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
}

.field { position: relative; margin-bottom: 14px; }
.field input {
  width: 100%; height: 62px; padding: 24px 18px 8px; font: inherit; font-size: 17px; color: var(--text);
  background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 16px; outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field label {
  position: absolute; left: 19px; top: 20px; color: var(--faint); font-size: 16px; pointer-events: none;
  transition: all .18s ease;
}
.field input:focus { border-color: rgba(233,199,159,.55); background: rgba(0,0,0,.35); box-shadow: 0 0 0 4px rgba(233,199,159,.08); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 9px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

.toggle { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px 6px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .sw {
  flex: none; width: 44px; height: 26px; border-radius: 99px; background: rgba(255,255,255,.12);
  border: 1px solid var(--line); position: relative; transition: background .25s; margin-top: 1px;
}
.toggle .sw::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .25s cubic-bezier(.3,1.4,.5,1); box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.toggle input:checked + .sw { background: var(--accent-2); border-color: transparent; }
.toggle input:checked + .sw::after { transform: translateX(18px); }
.toggle input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle .txt strong { display: block; font-weight: 600; font-size: 15px; }
.toggle .txt span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }

.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease, opacity .3s; opacity: 0; }
.collapse > div { overflow: hidden; }
.collapse.open { grid-template-rows: 1fr; opacity: 1; }
.collapse.open > div { padding-top: 10px; }

.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px;
  height: 58px; padding: 0 26px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--accent-ink); background: linear-gradient(135deg, #f3dcc0 0%, var(--accent) 45%, var(--accent-2) 100%);
  box-shadow: 0 12px 30px -10px rgba(201,143,90,.65), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .15s ease, box-shadow .2s, opacity .2s; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }

.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 6px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.linkbtn:hover { color: var(--text); }

.error { color: var(--err); font-size: 14px; min-height: 20px; margin: 8px 2px 0; }

/* ---------- Einblend-Animationen ---------- */
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .3s; } .d4 { animation-delay: .42s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.view { display: none; }
.view.active { display: block; }

.foot { margin-top: auto; padding: 36px 0 28px; text-align: center; color: var(--faint); font-size: 12px; letter-spacing: .04em; }
.foot a { color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; z-index: 50;
  background: rgba(20,20,22,.92); border: 1px solid var(--line); padding: 12px 18px; border-radius: 99px; font-size: 14px;
  backdrop-filter: blur(12px); transition: all .35s cubic-bezier(.2,.8,.2,1); pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
