/* Megaphy Landingpage, dunkles Tech-Theme. Schrift selbst gehostet, keine externen Ressourcen. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #05070F; --bg-2: #0A0F24; --panel: rgba(43, 89, 255, 0.07); --line: rgba(138, 162, 255, 0.18);
  --text: #EEF1FF; --muted: #9AA3C7; --signal: #2B59FF; --signal-light: #8AA2FF; --cyan: #5CE1FF;
  --font: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; --wrap: 1080px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-wrap: anywhere; background: radial-gradient(1200px 600px at 80% -10%, rgba(43,89,255,.22), transparent 60%), var(--bg); color: var(--text); font-family: var(--font); font-weight: 500; line-height: 1.6; font-size: 17px; }
main { flex: 1; }
a { color: var(--signal-light); text-underline-offset: 3px; }
a:hover { color: var(--cyan); }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
p, li { max-width: 72ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; position: relative; }

/* Entwurfs-Hinweis: vor Livegang entfernen */
.draft { background: #3A2F00; color: #FFE58A; border-bottom: 1px solid #6B5800; font-size: 0.85rem; padding: 6px 0; }
.ph { background: #FFE58A; color: #15161C; padding: 0 4px; border-radius: 3px; font-weight: 700; }

header.site { position: relative; z-index: 2; border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
header.site img { height: 30px; width: auto; display: block; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s ease-in-out infinite; }

/* Startseite */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 12vh, 140px) 0 80px; min-height: calc(100vh - 150px); }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: .35; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); }
.glow { position: absolute; width: 640px; height: 640px; left: 50%; top: 40%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(43,89,255,.45), rgba(92,225,255,.12) 40%, transparent 70%); filter: blur(30px); animation: drift 12s ease-in-out infinite alternate; }
.hero .wrap { text-align: center; }
.eyebrow { display: inline-block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--cyan); border: 1px solid rgba(92,225,255,.35); background: rgba(92,225,255,.06); border-radius: 99px; padding: 6px 14px; margin-bottom: 28px; }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 5.6rem); margin: 0 auto 36px; max-width: 16ch; }
.nw { white-space: nowrap; }
.grad { background: linear-gradient(90deg, var(--signal-light), var(--cyan) 50%, var(--signal)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
.waves { display: flex; justify-content: center; align-items: center; gap: 6px; height: 64px; margin: 0 auto 36px; }
.waves span { width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(var(--cyan), var(--signal)); box-shadow: 0 0 12px rgba(43,89,255,.6); animation: wave 1.4s ease-in-out infinite; transform-origin: center; }
.waves span:nth-child(2n) { animation-delay: -.2s } .waves span:nth-child(3n) { animation-delay: -.5s } .waves span:nth-child(4n) { animation-delay: -.8s } .waves span:nth-child(5n) { animation-delay: -1.1s }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 28px; }
.chips span { font-size: .9rem; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
.launch { color: var(--muted); margin: 0 auto 48px; }
.hero .en { font-size: .85rem; color: var(--muted); margin: 0 auto; max-width: 60ch; }
@keyframes wave { 0%, 100% { transform: scaleY(.25) } 50% { transform: scaleY(1) } }
@keyframes pulse { 50% { opacity: .35 } }
@keyframes shine { to { background-position: 200% center } }
@keyframes drift { to { transform: translate(-45%, -55%) scale(1.1) } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } .waves span { transform: scaleY(.6); } }

/* Rechtstexte */
.legal { padding: 48px 0 64px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal .meta { color: var(--muted); font-size: 0.95rem; }
.legal address { font-style: normal; }
.legal .table-scroll { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; max-width: 820px; margin: 12px 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal p, .legal li, .legal td { color: #D4D9F0; }
.note { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--signal); padding: 14px 18px; border-radius: 8px; margin: 16px 0; max-width: 820px; }
.toc { columns: 2; column-gap: 32px; font-size: 0.95rem; }
.btn { display: inline-block; background: var(--signal); color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 10px; font-weight: 700; box-shadow: 0 0 24px rgba(43,89,255,.45); }
.btn:hover { background: var(--signal-light); color: var(--bg); }
@media (max-width: 640px) { .toc { columns: 1; } .status { font-size: .7rem; padding: 4px 10px; } header.site img { height: 26px; } }

footer.site { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 0.88rem; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { color: var(--muted); text-decoration: none; margin-right: 18px; }
footer.site a:hover { color: var(--cyan); }
