/* ============================================================
   bRain — Design System "Ordnung im Kopf"
   Display: Space Grotesk · Body: Inter · Data: IBM Plex Mono
   ============================================================ */

:root {
  /* App-Kontext (Dashboard/Auth) — helles, ruhiges Tageslicht */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --bg: #eef1fb;
  --bg-soft: #f7f9ff;
  --surface: #ffffff;
  --surface-2: #f3f6fd;
  --ink: #131a2e;
  --ink-soft: #3a4460;
  --muted: #6b768f;
  --line: rgba(19, 26, 46, 0.09);
  --line-strong: rgba(19, 26, 46, 0.16);

  --accent: #5468ff;
  --accent-2: #b48cff;
  --accent-warm: #ff9d5c;
  --accent-mint: #26c39a;
  --grad-accent: linear-gradient(120deg, #5468ff, #8a6bff 55%, #b48cff);
  --grad-warm: linear-gradient(120deg, #ff9d5c, #ff7a9c);

  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(24, 34, 64, 0.10);
  --shadow-lg: 0 34px 90px rgba(24, 34, 64, 0.16);
  --ring: 0 0 0 3px rgba(84, 104, 255, 0.35);

  --maxw: 1200px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
p { margin: 0; }

input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
textarea { resize: vertical; }
::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 14px;
}
.wrap { width: min(var(--maxw), 100% - 2 * clamp(16px, 5vw, 56px)); margin-inline: auto; }

/* ============================================================
   Buttons
   ============================================================ */
.button {
  --btn-bg: var(--grad-accent);
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  box-shadow: 0 14px 30px rgba(84, 104, 255, 0.35);
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease, filter .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(84, 104, 255, 0.45); filter: brightness(1.05); }
.button:active { transform: translateY(0); }
.button.small { padding: 9px 15px; font-size: 0.9rem; box-shadow: 0 8px 20px rgba(84,104,255,.28); }
.button.ghost {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.button.ghost:hover { background: var(--surface); border-color: var(--accent); filter: none; }
.link-button { border: 0; background: transparent; color: var(--accent); padding: 0; cursor: pointer; font-weight: 600; }
.link-button.danger { color: #e5484d; }
.link-button:hover { text-decoration: underline; }

/* ============================================================
   Topbar / Navigation
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px clamp(16px, 5vw, 56px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: var(--grad-accent); color: #fff; font-family: var(--font-display); font-weight: 700;
  box-shadow: 0 8px 22px rgba(84,104,255,.4), inset 0 1px 0 rgba(255,255,255,.4);
}
.topnav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.topnav a:not(.button) {
  font-size: 0.94rem; color: var(--ink-soft); padding: 8px 12px; border-radius: 9px;
  transition: color .16s ease, background .16s ease;
}
.topnav a:not(.button):hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.language-switch { display: flex; gap: 4px; padding-left: 8px; margin-left: 4px; border-left: 1px solid var(--line); }
.language-switch a { font-family: var(--font-mono); font-size: 0.74rem; padding: 6px 8px; border-radius: 8px; color: var(--muted); }
.language-switch a:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ============================================================
   Flash-Nachrichten
   ============================================================ */
.flash {
  position: fixed; right: 22px; top: 84px; z-index: 45;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent-mint) 16%, var(--surface));
  color: #0a5b42; border: 1px solid color-mix(in srgb, var(--accent-mint) 40%, transparent);
  box-shadow: var(--shadow-lg); font-weight: 500;
  animation: flashIn .5s cubic-bezier(.2,.8,.2,1) both;
}
.flash.error { background: #fff1f1; color: #b42318; border-color: #f6c9c9; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }

/* ============================================================
   LANDING PAGE — dunkle, cinematische Welt
   ============================================================ */
body.landing-page {
  --ink: #eaf0ff;
  --ink-soft: #c3ccec;
  --muted: #8b97bd;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  background: #070a16;
}
body.landing-page::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 15% 8%, rgba(124, 140, 255, 0.28), transparent 60%),
    radial-gradient(55% 50% at 88% 12%, rgba(180, 140, 255, 0.22), transparent 60%),
    radial-gradient(70% 60% at 75% 95%, rgba(255, 157, 92, 0.14), transparent 60%),
    #070a16;
}
body.landing-page::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.05;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 75%);
}
body.landing-page .topbar {
  background: color-mix(in srgb, #070a16 55%, transparent);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.landing-page .button.ghost { background: rgba(255,255,255,0.06); color: var(--ink); border-color: rgba(255,255,255,0.16); }
body.landing-page .button.ghost:hover { background: rgba(255,255,255,0.12); }

main { display: block; }

/* --- Hero --- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center; gap: clamp(32px, 5vw, 80px);
  width: min(var(--maxw), 100% - 2 * clamp(16px, 5vw, 56px)); margin-inline: auto;
  padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px);
  min-height: min(88vh, 820px);
}
.hero-copy { max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: var(--ink-soft); margin-bottom: 26px;
}
.hero-badge b { display: inline-grid; place-items: center; padding: 3px 9px; border-radius: 999px; background: var(--grad-accent); color: #fff; font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; }
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.4rem);
  line-height: 0.98; margin-bottom: 22px; letter-spacing: -0.035em;
}
.hero h1 .glow {
  background: linear-gradient(120deg, #9fb0ff, #c7a6ff 50%, #ffc178);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.09); }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.trust-row span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-mint); box-shadow: 0 0 10px var(--accent-mint); }

/* --- Signature: Gedanken-Konstellation --- */
.constellation {
  position: relative; aspect-ratio: 1 / 1.04; width: 100%;
  display: grid; place-items: center;
}
.constellation-glass {
  position: absolute; inset: 6% 4%;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.constellation-glass::before {
  content: "Heute"; position: absolute; top: 18px; left: 22px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.constellation-glass::after {
  content: ""; position: absolute; top: 16px; right: 20px; width: 40px; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, #ff9d5c, #ff7a9c, #7c8cff);
  opacity: .8;
}
.constellation svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.constellation svg line { stroke: rgba(159, 176, 255, 0.35); stroke-width: 1; stroke-dasharray: 3 5; }
.node {
  position: absolute; z-index: 2;
  display: grid; gap: 3px;
  padding: 11px 14px; border-radius: 14px; min-width: 118px;
  background: rgba(20, 26, 52, 0.72);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  animation: floaty 7s ease-in-out infinite;
}
.node small { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.node strong { font-size: 0.9rem; font-weight: 600; color: #eff3ff; letter-spacing: -0.01em; }
.node.done { border-color: rgba(38,195,154,0.5); }
.node.done small { color: var(--accent-mint); }
.node.warm small { color: var(--accent-warm); }
.node.n1 { top: 12%; left: 14%; animation-delay: -0.5s; }
.node.n2 { top: 30%; right: 10%; animation-delay: -2.2s; }
.node.n3 { top: 54%; left: 9%; animation-delay: -3.6s; }
.node.n4 { bottom: 12%; right: 14%; animation-delay: -1.4s; }
.node.n5 { top: 45%; left: 44%; animation-delay: -4.8s; background: rgba(84,104,255,0.28); border-color: rgba(159,176,255,0.5); }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-14px) rotate(0.4deg); }
}

/* --- Logo / Vertrauens-Marquee --- */
.marquee-band { padding: 8px 0 40px; }
.marquee { display: flex; gap: 42px; align-items: center; color: var(--muted); font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; flex-wrap: wrap; justify-content: center; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; }
.marquee span::before { content: "◇"; color: var(--accent); }

/* --- Section-Grundgerüst --- */
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* --- Bento-Feature-Grid --- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento-item {
  position: relative; overflow: hidden;
  padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease;
}
body.landing-page .bento-item { backdrop-filter: blur(12px); }
.bento-item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.bento-item h3 { font-size: 1.4rem; margin: 16px 0 8px; }
.bento-item p { color: var(--ink-soft); font-size: 0.98rem; }
.bento-a { grid-column: span 3; }
.bento-b { grid-column: span 3; }
.bento-c { grid-column: span 2; }
.bento-d { grid-column: span 2; }
.bento-e { grid-column: span 2; }
.bento-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: 1.3rem;
}
.bento-item .glowline { position: absolute; inset: auto -30% -60% -30%; height: 180px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); pointer-events: none; }

/* --- Ablauf (echte Sequenz) --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 30px 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
body.landing-page .step { backdrop-filter: blur(12px); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent);
  display: block; margin-bottom: 18px; letter-spacing: 0.1em;
}
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); }
.step:not(:last-child)::after {
  content: "→"; position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.3rem; z-index: 2;
}

/* --- Pricing --- */
.pricing-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 5vw, 64px); }
.pricing-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.pricing-head p { color: var(--ink-soft); font-size: 1.08rem; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 30px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); position: relative;
}
body.landing-page .price-card { backdrop-filter: blur(12px); }
.price-card .plan-name { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.price-card .price { font-family: var(--font-display); font-size: 2.9rem; font-weight: 600; letter-spacing: -0.03em; margin: 6px 0 2px; }
.price-card .price small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.price-card .plan-note { color: var(--ink-soft); margin-bottom: 18px; }
.price-card ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 0.95rem; }
.price-card li::before { content: "✓"; color: var(--accent-mint); font-weight: 700; }
.price-card .button { margin-top: auto; width: 100%; }
.price-card.featured {
  background: var(--grad-accent);
  border: 0; color: #fff;
  box-shadow: 0 30px 70px rgba(84, 104, 255, 0.4);
  transform: translateY(-8px);
}
.price-card.featured .plan-name,
.price-card.featured .plan-note,
.price-card.featured li { color: rgba(255,255,255,0.86); }
.price-card.featured li::before { color: #fff; }
.price-card.featured .price small { color: rgba(255,255,255,0.8); }
.price-card.featured .button { background: #fff; color: #3a41d8; box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: #fff; color: #3a41d8; padding: 6px 14px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* --- Sicherheit (Split) --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.split > div > p { color: var(--ink-soft); font-size: 1.05rem; }
.promise-list { display: grid; gap: 12px; }
.promise-list span {
  display: flex; align-items: center; gap: 13px;
  padding: 17px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
body.landing-page .promise-list span { backdrop-filter: blur(10px); }
.promise-list span::before {
  content: "🔒"; flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent); font-size: 0.95rem;
}
.promise-list span:nth-child(2)::before { content: "👤"; }
.promise-list span:nth-child(3)::before { content: "📄"; }
.promise-list span:nth-child(4)::before { content: "🍪"; }

/* --- Sprachen-Showcase --- */
.language-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.language-showcase div {
  padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
body.landing-page .language-showcase div { backdrop-filter: blur(10px); }
.language-showcase strong { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 12px; }
.language-showcase span { display: block; color: var(--ink); font-size: 1.12rem; font-family: var(--font-display); letter-spacing: -0.01em; }

/* --- Abschluss-CTA --- */
.final-cta {
  text-align: center; padding: clamp(48px, 7vw, 90px) clamp(24px, 6vw, 80px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(84,104,255,0.18), rgba(180,140,255,0.14));
  border: 1px solid rgba(255,255,255,0.14);
  position: relative; overflow: hidden;
}
.final-cta h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 16px; }
.final-cta p { color: var(--ink-soft); font-size: 1.1rem; max-width: 520px; margin: 0 auto 30px; }

/* --- Legal-Grid --- */
.legal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.legal-grid article {
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
body.landing-page .legal-grid article { backdrop-filter: blur(10px); }
.legal-grid h2 { font-size: 1.3rem; margin-bottom: 10px; }
.legal-grid p { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   Footer (site-weit, premium dunkel)
   ============================================================ */
.footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: 40px clamp(16px, 5vw, 56px);
  background: #0a0e1c; color: #c3ccec;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: center;
  font-size: 0.92rem;
}
.footer a:hover { color: #fff; }
.footer .link-button { color: #9fb0ff; }

/* Cookie-Panel */
.cookie-panel {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  max-width: 720px; margin-inline: auto;
  background: rgba(16, 20, 38, 0.92); color: #e7ecff;
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-lg); backdrop-filter: blur(16px);
}
.cookie-panel strong { font-family: var(--font-display); }
.cookie-panel p { color: #9fabd0; font-size: 0.9rem; margin-top: 4px; }

/* ============================================================
   AUTH (Login / Registrieren) — Split-Bühne
   ============================================================ */
body.auth-page {
  --ink: #eaf0ff; --ink-soft: #c3ccec; --muted: #8b97bd;
  --line: rgba(255,255,255,0.10); --line-strong: rgba(255,255,255,0.18);
  --surface: rgba(255,255,255,0.045); --surface-2: rgba(255,255,255,0.07);
  --bg: #0b1020;
  background: #070a16; color: #eaf0ff;
}
body.auth-page .topbar { background: color-mix(in srgb, #070a16 55%, transparent); border-bottom: 1px solid rgba(255,255,255,0.08); }
body.auth-page .button.ghost { background: rgba(255,255,255,0.06); color: var(--ink); border-color: rgba(255,255,255,0.16); }
body.auth-page::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 12% 10%, rgba(124,140,255,0.28), transparent 60%),
    radial-gradient(55% 50% at 90% 90%, rgba(255,157,92,0.16), transparent 60%),
    #070a16;
}
.auth-shell {
  min-height: calc(100vh - 74px);
  display: grid; place-items: center;
  padding: clamp(28px, 6vw, 60px) clamp(16px, 5vw, 40px);
}
.auth-panel {
  width: min(460px, 100%);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  color: #eaf0ff;
}
.auth-panel .eyebrow { color: #9fb0ff; }
.auth-panel h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 22px; }
.auth-panel p { color: #9fabd0; }
.auth-panel a { color: #9fb0ff; font-weight: 600; }
.auth-panel input, .auth-panel select { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: #eaf0ff; }
.auth-panel label { color: #c3ccec; }
.form-stack { display: grid; gap: 15px; }
.form-stack label, .entry-form label { display: grid; gap: 7px; font-weight: 500; color: var(--ink-soft); font-size: 0.92rem; }
.form-stack.compact { gap: 11px; }

/* ============================================================
   DASHBOARD & ADMIN
   ============================================================ */
.dashboard-shell {
  display: grid; grid-template-columns: 264px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
  --user-bg: none;
  background-image: linear-gradient(rgba(238,241,251,0.90), rgba(238,241,251,0.94)), var(--user-bg);
  background-size: cover; background-attachment: fixed; background-position: center;
}
.sidebar {
  position: sticky; top: 74px; height: calc(100vh - 74px);
  padding: 22px 18px; display: flex; flex-direction: column; gap: 7px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(18px); border-right: 1px solid var(--line);
}
.sidebar a { padding: 12px 14px; border-radius: 11px; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; transition: background .16s ease, transform .16s ease, color .16s ease; }
.sidebar a:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); transform: translateX(3px); }
.profile-chip {
  display: flex; gap: 13px; align-items: center; margin-bottom: 14px; padding: 14px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.profile-chip > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad-accent); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.profile-chip strong { font-family: var(--font-display); }
.profile-chip small { display: block; color: var(--muted); font-size: 0.8rem; text-transform: capitalize; }

.dashboard-main { padding: 26px clamp(16px, 3vw, 38px) 40px; display: grid; gap: 22px; align-content: start; }
.welcome-card {
  display: flex; justify-content: space-between; gap: 22px; align-items: center;
  padding: 28px clamp(22px, 3vw, 34px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--accent) 8%, var(--surface)));
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.welcome-card::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent), transparent 66%); pointer-events: none; }
.welcome-card h1 { font-size: clamp(1.7rem, 3.5vw, 2.9rem); margin: 4px 0; position: relative; }
.welcome-card p { color: var(--ink-soft); }
.date-jump { display: flex; align-items: flex-end; gap: 10px; position: relative; }
.date-jump label { display: grid; gap: 6px; font-size: 0.82rem; color: var(--muted); font-weight: 500; }

/* Visueller Tages-Board */
.visual-day-board { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.date-tile {
  display: grid; place-items: center; text-align: center; gap: 2px;
  border-radius: var(--radius-lg); padding: 22px;
  background: linear-gradient(160deg, #141a34, #2b3a66); color: #fff; box-shadow: var(--shadow-lg);
}
.date-tile span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9fb6ff; }
.date-tile strong { font-family: var(--font-display); font-size: 4rem; line-height: 0.95; }
.date-tile small { color: #ffd9a8; font-weight: 600; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dashboard-stats article { position: relative; overflow: hidden; border-radius: var(--radius); padding: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dashboard-stats article:nth-child(1) { background: linear-gradient(150deg, var(--surface), color-mix(in srgb, var(--accent-mint) 14%, var(--surface))); }
.dashboard-stats article:nth-child(2) { background: linear-gradient(150deg, var(--surface), color-mix(in srgb, var(--accent) 14%, var(--surface))); }
.dashboard-stats article:nth-child(3) { background: linear-gradient(150deg, var(--surface), color-mix(in srgb, var(--accent-warm) 16%, var(--surface))); }
.dashboard-stats article:nth-child(4) { background: linear-gradient(150deg, var(--surface), color-mix(in srgb, var(--accent-2) 16%, var(--surface))); }
.dashboard-stats span { display: block; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; color: var(--muted); }
.dashboard-stats strong { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; margin: 10px 0 4px; }
.dashboard-stats small { color: var(--muted); font-size: 0.82rem; }
.category-ribbon { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; padding: 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); }
.category-ribbon span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); font-weight: 600; font-size: 0.86rem; transition: transform .16s ease; }
.category-ribbon span:hover { transform: translateY(-2px); }
.category-ribbon span b { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--line-strong); color: var(--ink); font-size: 0.74rem; font-family: var(--font-mono); }
.category-ribbon span.is-active { background: var(--grad-accent); color: #fff; box-shadow: 0 8px 20px rgba(84,104,255,.3); }
.category-ribbon span.is-active b { background: rgba(255,255,255,0.24); color: #fff; }

.notice-strip { display: grid; gap: 10px; }
.notice-strip article { display: flex; gap: 13px; align-items: center; padding: 15px 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent-warm) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent-warm) 30%, transparent); }
.notice-strip article::before { content: "📣"; font-size: 1.1rem; }
.notice-strip strong { font-family: var(--font-display); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.panel {
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.35rem; }
.soft-badge { font-family: var(--font-mono); padding: 6px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.creator-panel { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--accent-mint) 7%, var(--surface))); }
.today-list-panel { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--accent-2) 7%, var(--surface))); }
.important-panel { background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--accent-warm) 10%, var(--surface))); }

.entry-form { display: grid; gap: 15px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.switch-row { display: flex; gap: 16px; flex-wrap: wrap; }
.switch-row label { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-weight: 500; cursor: pointer; }
.switch-row input, .widget-choices input, .inline-form input[type="checkbox"] { width: auto; accent-color: var(--accent); }

.entry-list, .timeline, .simple-list, .clip-list { display: grid; gap: 12px; }
.mini-entry {
  padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); box-shadow: var(--shadow);
}
.mini-entry:nth-child(3n+1) { border-left-color: var(--accent-mint); }
.mini-entry:nth-child(3n+2) { border-left-color: var(--accent-warm); }
.mini-entry:nth-child(3n+3) { border-left-color: var(--accent-2); }
.mini-entry strong { display: block; font-family: var(--font-display); }
.mini-entry > div > span { display: block; font-family: var(--font-mono); color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 3px 0 8px; }
.mini-entry p { color: var(--ink-soft); font-size: 0.94rem; }
.mini-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.mini-actions span { font-size: 0.82rem; color: var(--muted); }
.empty { color: var(--muted); margin: 0; padding: 8px 0; }

.timeline article { display: grid; grid-template-columns: 130px 200px minmax(0,1fr); gap: 12px; padding: 15px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent-warm); }
.timeline time { font-family: var(--font-mono); color: var(--muted); font-size: 0.84rem; }
.timeline strong { font-family: var(--font-display); }
.timeline span { color: var(--ink-soft); font-size: 0.92rem; }

.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input:not([type="checkbox"]) { width: 180px; }
.inline-form select { width: 130px; }

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kanban-column { border-radius: var(--radius-lg); padding: 14px; min-height: 220px; border: 1px solid var(--line); }
.kanban-column:nth-child(1) { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.kanban-column:nth-child(2) { background: color-mix(in srgb, var(--accent-warm) 8%, var(--surface)); }
.kanban-column:nth-child(3) { background: color-mix(in srgb, var(--accent-mint) 8%, var(--surface)); }
.kanban-column h3 { font-size: 0.82rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.kanban-column:nth-child(1) h3 { color: var(--accent); }
.kanban-column:nth-child(2) h3 { color: var(--accent-warm); }
.kanban-column:nth-child(3) h3 { color: var(--accent-mint); }
.task-card { margin-bottom: 10px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.task-card strong { font-family: var(--font-display); font-weight: 500; display: block; }
.task-card span { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
.task-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.chip-button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--ink-soft); font-size: 0.82rem; transition: all .16s ease; }
.chip-button:hover { border-color: var(--accent); color: var(--accent); }

.simple-list a, .simple-list > span { display: flex; justify-content: space-between; gap: 12px; padding: 13px 15px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .16s ease, border-color .16s ease; }
.simple-list a:hover { transform: translateX(3px); border-color: var(--accent); }
.simple-list span { color: var(--muted); font-size: 0.88rem; }
.simple-list small { color: var(--muted); font-size: 0.82rem; }
.clip-list article { padding: 15px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.clip-list strong { font-family: var(--font-display); margin-right: 8px; }
.clip-list p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 8px; white-space: pre-wrap; }

.widget-choices { display: flex; gap: 14px; flex-wrap: wrap; padding: 15px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.widget-choices strong { width: 100%; font-family: var(--font-display); }
.widget-choices label { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-weight: 500; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat-card span { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-size: 0.72rem; }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 2.3rem; margin-top: 8px; }

.table-wrap { overflow: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 780px; background: var(--surface); }
th, td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.table-form { display: flex; gap: 8px; align-items: center; }
.table-form select { width: 110px; }

/* ============================================================
   Dashboard-Themes & Dark-Mode
   ============================================================ */
body.dark {
  --bg: #0a0e1c;
  --bg-soft: #0f1428;
  --surface: #141a30;
  --surface-2: #1b2340;
  --ink: #eaf0ff;
  --ink-soft: #c3ccec;
  --muted: #8b97bd;
  --line: rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.18);
}
body.dark .dashboard-shell { background-image: linear-gradient(rgba(10,14,28,0.90), rgba(10,14,28,0.95)), var(--user-bg); }
body.dark .topbar { background: color-mix(in srgb, var(--bg) 82%, transparent); }

/* Theme "paper" — warmes Pergament, erdiges Grün (nur wenn nicht Nacht) */
body.paper:not(.dark) {
  --accent: #2f8f6b; --accent-2: #c58a3a; --accent-mint: #2f8f6b; --accent-warm: #c58a3a;
  --bg: #f4efe4; --bg-soft: #fffdf7; --surface: #fffdf7; --surface-2: #f1ebdd;
  --ink: #2b2618; --ink-soft: #5a5240; --muted: #8a8069;
  --line: rgba(70,58,34,0.12); --line-strong: rgba(70,58,34,0.2);
  --grad-accent: linear-gradient(120deg, #2f8f6b, #56ac7f 55%, #8fae52);
  --ring: 0 0 0 3px rgba(47,143,107,0.32);
}
body.paper:not(.dark) .date-tile { background: linear-gradient(160deg, #2d3a2a, #3f5a44); }
body.paper:not(.dark) .date-tile span { color: #bfe3c9; }
body.paper:not(.dark) .date-tile small { color: #ecd9a8; }

/* Theme "focus" — reduziert, warmes Rot (nur wenn nicht Nacht) */
body.focus:not(.dark) {
  --accent: #db4a3d; --accent-2: #ff7a6b; --accent-warm: #e8863a; --accent-mint: #2f9e7a;
  --bg: #f5f6fa; --bg-soft: #ffffff; --surface: #ffffff; --surface-2: #f2f4f8;
  --grad-accent: linear-gradient(120deg, #db4a3d, #ff7a6b);
  --ring: 0 0 0 3px rgba(219,74,61,0.30);
}
body.focus:not(.dark) .date-tile { background: linear-gradient(160deg, #3a2422, #5e3a38); }
body.focus:not(.dark) .date-tile small { color: #ffd0a8; }

/* ============================================================
   Scroll-Reveal & Utilities
   ============================================================ */
/* Reveal nur verstecken, wenn JS aktiv ist — sonst bleibt alles sichtbar */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
[hidden] { display: none !important; }

.mobile-nav-toggle { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: clamp(36px, 8vw, 70px); }
  .constellation { max-width: 460px; margin-inline: auto; order: -1; }
  .bento-a, .bento-b, .bento-c, .bento-d, .bento-e { grid-column: span 3; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .split { grid-template-columns: 1fr; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-chip { min-width: 200px; margin-bottom: 0; }
}
@media (max-width: 760px) {
  .topnav { display: none; position: fixed; inset: 74px 0 auto; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px clamp(16px, 5vw, 56px) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0,0,0,0.14); }
  .topnav.open { display: flex; }
  .language-switch { border-left: 0; padding-left: 0; margin-left: 0; padding-top: 8px; border-top: 1px solid var(--line); }
  .mobile-nav-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
  .steps, .price-grid, .language-showcase, .legal-grid, .bento, .dashboard-grid, .stats-grid, .two-cols { grid-template-columns: 1fr; }
  .bento-a, .bento-b, .bento-c, .bento-d, .bento-e { grid-column: 1 / -1; }
  .price-card.featured { transform: none; }
  .step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -20px; transform: translateX(50%); }
  .visual-day-board { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .welcome-card { flex-direction: column; align-items: flex-start; }
  .date-jump { width: 100%; }
  .timeline article { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .inline-form input:not([type="checkbox"]), .inline-form select { width: 100%; }
  .flash { left: 16px; right: 16px; max-width: none; }
  .date-tile strong { font-size: 3.2rem; }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
