/* ============================================================
   Signum.Zone – Design System
   Selbst gehostet, keine externen Abhängigkeiten.
   Dark = tiefer Weltraum, Light = Tagwache / Missionskontrolle.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
	--font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--maxw: 1120px;
	--radius: 18px;
	--ease: .35s cubic-bezier(.22, .61, .21, 1);
}

[data-theme="dark"] {
	--bg1: #04091a;
	--bg2: #0a2149;
	--bg3: #123c73;
	--bg4: #071230;
	--ink: #e8f3ff;
	--ink-soft: #b9d7f2;
	--muted: #8fb4dc;
	--acc: #35d0ff;
	--acc2: #2ce8b5;
	--acc3: #8f7bff;
	--line: rgba(127, 199, 255, .26);
	--card: rgba(9, 24, 52, .62);
	--card-strong: rgba(12, 32, 68, .82);
	--shadow: 0 10px 34px rgba(2, 8, 22, .55);
	--star-op: 1;
	color-scheme: dark;
}

[data-theme="light"] {
	--bg1: #dceefc;
	--bg2: #a8cdee;
	--bg3: #cde6f8;
	--bg4: #e8f4ff;
	--ink: #0d2340;
	--ink-soft: #274a6e;
	--muted: #4c6c8f;
	--acc: #0a84c3;
	--acc2: #0d9d72;
	--acc3: #6a58e0;
	--line: rgba(20, 80, 140, .28);
	--card: rgba(255, 255, 255, .74);
	--card-strong: rgba(255, 255, 255, .9);
	--shadow: 0 10px 30px rgba(30, 70, 120, .18);
	--star-op: 0;
	color-scheme: light;
}

/* ---------- Basis ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--ink);
	background: linear-gradient(-45deg, var(--bg4), var(--bg2), var(--bg1), var(--bg3));
	background-size: 400% 400%;
	background-attachment: fixed;
	animation: drift 36s ease-in-out infinite;
	min-height: 100vh;
}

@keyframes drift {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* Sternenfeld (nur im Dark-Modus sichtbar) */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	opacity: var(--star-op);
	transition: opacity .6s ease;
	pointer-events: none;
	background-image:
		radial-gradient(1.4px 1.4px at 12% 18%, #cfe9ff 50%, transparent 51%),
		radial-gradient(1px 1px at 27% 64%, #9fd4ff 50%, transparent 51%),
		radial-gradient(1.6px 1.6px at 41% 9%, #eaf7ff 50%, transparent 51%),
		radial-gradient(1px 1px at 58% 42%, #9fd4ff 50%, transparent 51%),
		radial-gradient(1.3px 1.3px at 66% 78%, #cfe9ff 50%, transparent 51%),
		radial-gradient(1px 1px at 78% 26%, #eaf7ff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 87% 58%, #9fd4ff 50%, transparent 51%),
		radial-gradient(1px 1px at 93% 12%, #cfe9ff 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 7% 84%, #9fd4ff 50%, transparent 51%),
		radial-gradient(1px 1px at 48% 91%, #cfe9ff 50%, transparent 51%);
}

img { max-width: 100%; height: auto; }

a { color: var(--acc); }
a:hover, a:focus-visible { color: var(--acc2); }

h1, h2, h3 { line-height: 1.22; letter-spacing: .2px; }

.wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 20px 40px;
}

.skip {
	position: absolute;
	left: -9999px;
	background: var(--acc);
	color: #04122a;
	padding: 8px 14px;
	border-radius: 8px;
	z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Sprache: beide Sprachen im Markup, CSS entscheidet ---------- */
html[lang="de"] .en { display: none; }
html:not([lang="de"]) .de { display: none; }

/* ---------- Kopzeile / Navigation ---------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 90;
	backdrop-filter: blur(10px);
	background: var(--card);
	border-bottom: 1px solid var(--line);
}

.topbar .wrap {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 20px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 17px;
	color: var(--ink);
	text-decoration: none;
	letter-spacing: .3px;
	white-space: nowrap;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand b { color: var(--acc); }

.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-left: auto;
	align-items: center;
}

.nav a {
	color: var(--ink-soft);
	text-decoration: none;
	font-weight: 600;
	font-size: 14.5px;
	padding: 7px 12px;
	border-radius: 10px;
	border: 1px solid transparent;
}
.nav a:hover { border-color: var(--line); color: var(--ink); background: var(--card-strong); }
.nav a[aria-current="page"] { color: var(--acc); border-color: var(--line); background: var(--card-strong); }

.theme-toggle {
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--card-strong);
	color: var(--ink);
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: transform .25s ease, border-color .25s ease;
}
.theme-toggle:hover { transform: rotate(18deg) scale(1.06); border-color: var(--acc); }
[data-theme="dark"] .i-sun { display: inline; } [data-theme="dark"] .i-moon { display: none; }
[data-theme="light"] .i-sun { display: none; } [data-theme="light"] .i-moon { display: inline; }

.lang-toggle {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: none;
	border: 1px solid var(--line);
	background: var(--card-strong);
	border-radius: 999px;
	padding: 3px;
}
.lang-toggle button {
	border: 0;
	background: transparent;
	color: var(--ink-soft);
	font: inherit;
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: .5px;
	padding: 6px 10px;
	border-radius: 999px;
	line-height: 1;
	cursor: pointer;
	transition: color .2s ease, background .2s ease;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button[aria-pressed="true"] { color: var(--acc); background: var(--card); }

/* ---------- Hero ---------- */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
	gap: 30px;
	align-items: center;
	padding: clamp(34px, 7vw, 76px) 0 30px;
}

.hero h1 {
	margin: 0 0 14px;
	font-size: clamp(34px, 6vw, 58px);
	font-weight: 900;
	background: linear-gradient(92deg, var(--acc) 10%, var(--acc2) 55%, var(--acc3) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero .tag {
	margin: 0 0 26px;
	font-size: clamp(16px, 2vw, 19px);
	color: var(--ink-soft);
	max-width: 56ch;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
	display: inline-block;
	padding: 13px 22px;
	border-radius: 14px 4px;
	font-weight: 700;
	font-size: 15.5px;
	text-decoration: none;
	border: 1px solid var(--line);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary {
	background: linear-gradient(92deg, var(--acc), var(--acc2));
	border-color: transparent;
	color: #04122a;
}
.btn-primary:hover, .btn-primary:focus-visible { color: #04122a; filter: brightness(1.07); }
[data-theme="light"] .btn-primary { color: #ffffff; }
[data-theme="light"] .btn-primary:hover, [data-theme="light"] .btn-primary:focus-visible { color: #ffffff; }

.btn-ghost { color: var(--ink); background: var(--card); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--acc); }

.hero-art {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 220px;
}
.hero-art .station {
	width: min(330px, 78vw);
	border-radius: 16px;
	border: 1px solid var(--line);
	filter: drop-shadow(0 18px 42px rgba(4, 20, 44, .6));
	animation: float 9s ease-in-out infinite;
}
.hero-art .halo {
	position: absolute;
	width: min(420px, 92vw);
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(53, 208, 255, .28), transparent 70%);
	z-index: -1;
}

@keyframes float {
	0%, 100% { transform: translateY(-7px); }
	50%      { transform: translateY(9px); }
}

/* ---------- Abschnitte & Karten ---------- */
section { margin-top: 44px; }

.sec-head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.sec-head h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); }
.sec-head p { margin: 0; color: var(--muted); font-size: 14.5px; }

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
	backdrop-filter: blur(8px);
	box-shadow: var(--shadow);
}

a.card {
	display: block;
	color: var(--ink);
	text-decoration: none;
	transition: transform .22s ease, border-color .22s ease;
}
a.card:hover { transform: translateY(-4px); border-color: var(--acc); }
a.card h3 { margin: 0 0 8px; }

.card h3 { font-size: 18.5px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--acc); }

.card .thumb {
	display: block;
	width: 100%;
	max-height: 190px;
	object-fit: contain;
	margin-bottom: 14px;
	padding: 8px;
	border-radius: 12px;
	background: radial-gradient(closest-side, rgba(53, 208, 255, .12), transparent 75%);
}

/* Große Projekt-Karte (SSG) */
.card-feature {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
	gap: 26px;
	align-items: center;
	padding: 26px;
}
a.card-feature { display: grid; }
.card-feature .thumb { max-height: 260px; margin: 0; }
.card-feature h3 { font-size: 24px; }
.card-feature p { font-size: 16px; }
.badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: var(--acc2);
	border: 1px solid var(--acc2);
	border-radius: 999px;
	padding: 3px 11px;
	margin-bottom: 10px;
}

/* Link-Chips (Ökosystem) */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.chips a {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 12px 4px;
	border: 1px solid var(--line);
	background: var(--card);
	color: var(--ink-soft);
	font-weight: 600;
	font-size: 14.5px;
	text-decoration: none;
	backdrop-filter: blur(6px);
	transition: transform .18s ease, border-color .18s ease, color .18s ease;
}
.chips a:hover { transform: translateY(-2px); border-color: var(--acc); color: var(--ink); }

/* ---------- Unterseiten ---------- */
.breadcrumb {
	font-size: 13.5px;
	color: var(--muted);
	padding: 18px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--acc); }

.page-head { padding: 10px 0 6px; }
.page-head h1 { font-size: clamp(28px, 5vw, 44px); margin: 10px 0 10px; }
.page-head .sub { color: var(--ink-soft); font-size: 17px; margin: 0; max-width: 70ch; }

.hero-banner { margin: 26px 0 0; }
.hero-banner img {
	display: block;
	width: 100%;
	height: clamp(140px, 20vw, 240px);
	object-fit: cover;
	object-position: 62% 50%;
	border: 1px solid var(--line);
	border-radius: 20px;
}

.prose { max-width: 760px; }
.prose h2 { margin: 34px 0 10px; font-size: 22px; }
.prose h3 { margin: 28px 0 8px; font-size: 18.5px; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }

.split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 22px;
	align-items: center;
	margin: 26px 0;
	padding: 22px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	backdrop-filter: blur(8px);
}
.split .fig { display: grid; place-items: center; }
.split img { width: min(280px, 70vw); filter: drop-shadow(0 14px 30px rgba(4, 20, 44, .5)); }
.split h3 { margin: 0 0 8px; }
.split p { margin: 0 0 10px; color: var(--ink-soft); }

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 14px;
}
.gallery figure { margin: 0; }
.gallery img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 14px;
	border: 1px solid var(--line);
	transition: transform .25s ease, border-color .25s ease;
}
.gallery img:hover { transform: scale(1.03); border-color: var(--acc); }
.gallery figcaption { font-size: 12.5px; color: var(--muted); padding: 6px 2px 0; }

/* Live-Ansicht: breite Bildschirm-Realbilder mit Rand (Kosmos-Karten-Teaser) */
.shot { margin: 0; }
.shot img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--line);
	border-radius: calc(var(--radius) - 6px);
}
.shot figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 2px 0; }

/* Tag-/Nacht-Bilder passend zum Theme */
[data-theme="dark"] .img-day,
[data-theme="light"] .img-night { display: none; }

/* ---------- Footer ---------- */
footer {
	max-width: var(--maxw);
	margin: 60px auto 0;
	padding: 26px 20px 36px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13.5px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	justify-content: space-between;
}
footer a { color: var(--muted); }

/* ---------- Einblend-Effekte ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
	body { animation: none; }
	.hero-art .station { animation: none; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Roadmap & Status ---------- */
.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.stat {
	text-align: center;
	padding: 22px 14px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	backdrop-filter: blur(6px);
}
.stat .num {
	display: block;
	font-size: 34px;
	font-weight: 800;
	color: var(--acc);
	line-height: 1.1;
}
.stat .lbl {
	display: block;
	margin-top: 6px;
	font-size: 13.5px;
	color: var(--ink-soft);
}
.stats-note {
	margin: 12px 2px 0;
	font-size: 13px;
	color: var(--ink-soft);
	text-align: center;
}
.roadmap {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	align-items: stretch;
}
.phase {
	border: 1px solid var(--line);
	border-top: 3px solid var(--acc);
	border-radius: var(--radius);
	background: var(--card);
	padding: 20px 20px 8px;
}
.phase.done { border-top-color: var(--acc2); }
.phase.work { border-top-color: var(--acc); }
.phase.next { border-top-color: var(--acc3); }
.phase h3 { margin: 0 0 12px; font-size: 17px; }
.phase.done h3 { color: var(--acc2); }
.phase.work h3 { color: var(--acc); }
.phase.next h3 { color: var(--acc3); }
.phase ul { list-style: none; margin: 0; padding: 0; }
.phase li {
	position: relative;
	margin: 0 0 14px;
	padding-left: 18px;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--ink-soft);
}
.phase li strong { color: var(--ink); }
.phase li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--acc);
	opacity: .75;
}
.phase.done li::before { background: var(--acc2); }
.phase.next li::before { background: var(--acc3); }

/* ---------- Entwicklung: Phasen, Board, Meilensteine ---------- */
.phases {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	align-items: stretch;
}
.stage {
	border: 1px solid var(--line);
	border-top: 3px solid var(--acc);
	border-radius: var(--radius);
	background: var(--card);
	padding: 20px 20px 10px;
}
.s-alpha { border-top-color: var(--acc2); }
.s-beta { border-top-color: var(--acc); }
.s-release { border-top-color: var(--acc3); }
.stage .step {
	display: inline-block;
	margin-bottom: 10px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-soft);
	border: 1px solid var(--line);
	border-radius: 999px;
}
.stage h3 { margin: 0 0 6px; font-size: 19px; }
.s-alpha h3 { color: var(--acc2); }
.s-beta h3 { color: var(--acc); }
.s-release h3 { color: var(--acc3); }
.stage .net { margin: 0 0 10px; font-size: 13px; color: var(--ink-soft); }
.stage .sstatus { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.sstatus.near { color: var(--acc2); }
.sstatus.next, .sstatus.far { color: var(--ink-soft); }
.stage ul { list-style: none; margin: 0; padding: 0; }
.stage li {
	position: relative;
	margin: 0 0 12px;
	padding-left: 18px;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--ink-soft);
}
.stage li strong { color: var(--ink); }
.stage li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--acc);
	opacity: .75;
}
.s-alpha li::before { background: var(--acc2); }
.s-release li::before { background: var(--acc3); }

.chips.also { margin-top: 18px; }
.chips.also li {
	padding: 8px 14px;
	font-size: 13.5px;
	color: var(--ink-soft);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 999px;
}
.chips.also li strong { color: var(--ink); }
.chips.also > li:first-child { border: none; background: none; padding-left: 0; }

.board-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0 0 14px;
	font-size: 13.5px;
	color: var(--ink-soft);
}
.lg { display: inline-flex; align-items: center; gap: 6px; }
.board {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}
.bcard {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	padding: 16px 18px 6px;
}
.bcard h3 { margin: 0 0 10px; font-size: 15.5px; color: var(--acc); }
.bcard ul { list-style: none; margin: 0; padding: 0; }
.bcard li {
	position: relative;
	padding-left: 26px;
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink-soft);
}
.st { font-weight: 800; }
.bcard .st { position: absolute; left: 0; top: 0; }
.st.done { color: var(--acc2); }
.st.now { color: #ffb45e; }
.st.work { color: var(--acc); }
.st.plan { color: var(--ink-soft); opacity: .7; }
[data-theme="light"] .st.now { color: #9a6b00; }

.timeline {
	list-style: none;
	margin: 0;
	padding: 0 0 0 26px;
	border-left: 2px solid var(--line);
}
.timeline li { position: relative; margin: 0 0 26px; }
.timeline li::before {
	content: "";
	position: absolute;
	left: -32px;
	top: 5px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--acc);
}
.timeline li:last-child { margin-bottom: 6px; }
.tl-date {
	display: inline-block;
	margin-bottom: 2px;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--acc);
}
.timeline h3 { margin: 0 0 4px; font-size: 16.5px; }
.timeline p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); max-width: 70ch; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
	.hero { grid-template-columns: 1fr; text-align: center; }
	.hero .tag { margin-inline: auto; }
	.cta { justify-content: center; }
	.card-feature { grid-template-columns: 1fr; }
	.card-feature .thumb { max-width: 260px; margin-inline: auto; }
	.topbar .wrap { flex-wrap: wrap; }
	.nav { margin-left: 0; width: 100%; order: 3; justify-content: center; }
	.lang-toggle { margin-left: auto; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.roadmap { grid-template-columns: 1fr; }
}

/* ---------- Druck ---------- */
@media print {
	body { background: #fff; color: #000; animation: none; }
	body::before { display: none; }
	.theme-toggle, .lang-toggle, .nav, .cta, .hero-art .halo { display: none !important; }
	.card, .split { box-shadow: none; backdrop-filter: none; background: #fff; border-color: #999; }
	a { color: #000; }
}
