/* AxisReel – gemeinsames Design im Dreamaxis-Stil */
.mobile-only { display: none; }
@media (max-width: 860px) { .nav-links .mobile-only { display: block; } }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #0e0c1d;
  --bg-2: #120f26;
  --panel: #171430;
  --panel-2: #201c3d;
  --line: #2f2a52;
  --line-2: #3d3768;
  --fg: #eef0f8;
  --muted: #a6aac6;
  --dim: #7b7fa0;
  --violet: #9d94f2;
  --violet-2: #a08ad8;
  --blue: #6fc3df;
  --pink: #c58ad6;
  --ok: #6fc3df;
  --warn: #e7b86a;
  --danger: #f2789a;
  --on-accent: #0e0c1d;
  --grad: linear-gradient(120deg, #9d94f2, #6fc3df);
  --grad-soft: linear-gradient(120deg, rgba(157,148,242,.18), rgba(111,195,223,.12));
  --radius: 20px;
  --radius-sm: 12px;
  --cut: 12px;
  --wrap: 1180px;
  --f-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --shadow: 0 30px 80px -30px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--fg); font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(157,148,242,.16), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(111,195,223,.08), transparent 60%),
    url('/img/facets.svg') center / cover no-repeat;
}
::selection { background: rgba(157,148,242,.4); }
a { color: inherit; }
img, video { max-width: 100%; }
.hidden { display: none !important; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--f-mono); }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* ---------- Kopfzeile ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(14,12,29,.72); border-bottom: 1px solid rgba(47,42,82,.7); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.brand .r { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: rgba(157,148,242,.08); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.credit-pill { font-family: var(--f-mono); font-size: .82rem; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.credit-pill b { color: var(--blue); font-weight: 500; }
.nav-burger { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 10px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-burger { display: inline-block; margin-left: auto; }
  .nav-cta .hide-sm { display: none; }
}

/* ---------- Buttons ---------- */
.btn { --c: var(--cut); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .95rem; padding: 12px 20px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: transform .15s, filter .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--panel-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: #29244c; }
.btn-danger { background: rgba(242,120,154,.12); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(242,120,154,.35); }
.btn-sm { padding: 8px 14px; font-size: .85rem; --c: 8px; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Flächen ---------- */
.panel { background: linear-gradient(180deg, rgba(32,28,61,.72), rgba(23,20,48,.82)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-pad { padding: 24px; }
.card { background: rgba(23,20,48,.8); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .72rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); background: rgba(14,12,29,.6); }
.badge.accent { color: var(--on-accent); background: var(--grad); border: 0; font-weight: 500; }
.badge.ok { color: var(--ok); border-color: rgba(111,195,223,.4); }
.badge.warn { color: var(--warn); border-color: rgba(231,184,106,.4); }
.badge.danger { color: var(--danger); border-color: rgba(242,120,154,.4); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; display: inline-block; }

/* ---------- Formulare ---------- */
label.lbl { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: .01em; }
.input, select.input, textarea.input { width: 100%; background: rgba(14,12,29,.7); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(157,148,242,.18); }
textarea.input { resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a6aac6' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field { margin-bottom: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--violet); flex: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .92rem; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--fg); transition: transform .2s; }
.switch input:checked { background: var(--violet); }
.switch input:checked::after { transform: translateX(18px); }
.alert { padding: 12px 14px; border-radius: 12px; font-size: .9rem; border: 1px solid; }
.alert.error { color: var(--danger); background: rgba(242,120,154,.08); border-color: rgba(242,120,154,.3); }
.alert.ok { color: var(--ok); background: rgba(111,195,223,.08); border-color: rgba(111,195,223,.3); }
.alert.info { color: var(--muted); background: rgba(157,148,242,.07); border-color: var(--line-2); }

/* ---------- Segmente / Tabs ---------- */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(14,12,29,.7); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 14px; border-radius: 10px; cursor: pointer; transition: all .15s; }
.seg button.active { background: var(--panel-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- Toast ---------- */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; transition: all .25s; z-index: 200; padding: 12px 18px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: .92rem; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.error { border-color: rgba(242,120,154,.5); color: var(--danger); }

/* ---------- Dialog ---------- */
dialog.modal { border: 0; padding: 0; background: transparent; color: var(--fg); width: min(560px, calc(100% - 32px)); }
dialog.modal::backdrop { background: rgba(8,6,18,.75); backdrop-filter: blur(4px); }
dialog.modal .panel { padding: 28px; }

/* ---------- Fußzeile ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px 0 48px; color: var(--muted); font-size: .9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--fg); }
.footer .by { display: flex; align-items: center; gap: 10px; }

/* ---------- Animationen ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
