/* Next Horizon – gemeinsames Branding „Horizon Light“ für alle Unterseiten.
   Schriften liegen lokal (OFL), es werden keine externen Dienste geladen. */
@import url(fonts.css);


:root {
  --void: #02040a;          /* Weltraum-Schwarz */
  --deep: #06101f;          /* Nachtblau */
  --surface: rgba(12, 22, 42, .62);
  --surface-solid: #0b1426;
  --horizon: #3d8bff;       /* Horizont-Blau (Primär) */
  --horizon-soft: #8fbcff;  /* Atmosphäre */
  --ice: #e6f0ff;           /* Text hell */
  --text: #c9d4e8;          /* Fließtext */
  --mist: #9aa8c0;          /* Text sekundär */
  --ember: #ffb54d;         /* Städtelicht-Gold (Akzent) */
  --good: #5eead4;
  --warn: #fbbf24;
  --danger: #f87171;
  --line: rgba(143, 188, 255, .16);
  --line-strong: rgba(143, 188, 255, .32);
  --font-display: 'Exo 2', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
  --gutter: clamp(16px, 5vw, 72px);
  --wrap: 1140px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--void); color: var(--text); font: 400 16.5px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--horizon-soft); text-underline-offset: 3px; }
a:hover { color: var(--ice); }
:focus-visible { outline: 2px solid var(--horizon-soft); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ice); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font: 500 12px var(--font-display); letter-spacing: .32em; text-transform: uppercase; color: var(--horizon-soft); display: inline-flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--horizon); }
em.hl { font-style: normal; background: linear-gradient(90deg, var(--horizon), var(--horizon-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Sternenhimmel (Canvas aus nh-sky.js) */
#nh-sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; background: radial-gradient(ellipse at 80% 0%, #0a1630, var(--void) 60%); }

/* Kopfzeile */
.nh-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--gutter); /* Maße wie Kopfzeile der Startseite, sonst springt das Logo beim Seitenwechsel */
  background: rgba(2, 4, 10, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font: 500 19px var(--font-display); color: var(--ice); letter-spacing: .01em; text-decoration: none; flex: none; }
.brand svg { width: 58px; height: 36px; overflow: visible; }
.nh-header nav { display: flex; gap: 30px; font-size: 14px; }
.nh-header nav a { color: var(--mist); text-decoration: none; }
.nh-header nav a:hover, .nh-header nav a[aria-current] { color: var(--ice); }
.menu-toggle { display: none; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 999px; font: 500 14px var(--font-body); color: var(--ice); text-decoration: none; cursor: pointer;
  border: 1px solid rgba(61, 139, 255, .7); background: rgba(61, 139, 255, .08); box-shadow: inset 0 0 18px rgba(61, 139, 255, .12); white-space: nowrap;
  transition: background .3s, box-shadow .3s, transform .3s; }
.btn:hover { color: var(--ice); background: rgba(61, 139, 255, .2); box-shadow: 0 0 28px rgba(61, 139, 255, .35), inset 0 0 18px rgba(61, 139, 255, .2); transform: translateY(-1px); }
.btn .arr { transition: transform .3s; } .btn:hover .arr { transform: translateX(4px); }
.btn.ghost { border-color: var(--line-strong); background: transparent; box-shadow: none; }
@media (max-width: 900px) {
  .nh-header { flex-wrap: wrap; gap: 10px; }
  .menu-toggle { order: 2; display: grid; place-content: center; gap: 5px; width: 42px; height: 42px; flex: none; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--ice); cursor: pointer; }
  .menu-toggle span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
  .nh-header nav { order: 3; width: 100%; display: none; flex-direction: column; gap: 0; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(6, 16, 31, .95); }
  .nh-header nav.open { display: flex; }
  .nh-header nav a { padding: 10px 12px; color: var(--ice); }
  .nh-header > .btn { order: 1; margin-left: auto; padding: 9px 14px; font-size: 13px; }
}
@media (max-width: 480px) { .nh-header { padding-inline: 14px; gap: 8px; } .brand { font-size: 16px; gap: 7px; } .brand svg { width: 36px; } .nh-header > .btn { padding: 8px 12px; } .nh-header > .btn .long, .nh-header > .btn .arr { display: none; } }

/* Logo-Symbol: Orbit-Punkt läuft auf der Bahn – nur im großen Logo der Danke-Seite.
   Im fixierten Kopfzeilen-Logo ruht er: animiertes SVG wird in jedem Bild neu gezeichnet und bremst das Scrollen. */
/* Ruhendes Logo: Punkt steht fest auf etwa 13:30 Uhr (85 % der Bahn) */
.danke svg { --orbit-anim: nh-orbit 9s cubic-bezier(.45,.05,.55,.95) infinite alternate; --sun-anim: nh-breathe 5s ease-in-out infinite; }
.orbit-dot { offset-path: path('M 22 96.5 A 100 100 0 0 1 216 66'); offset-rotate: 0deg; offset-distance: 85%; animation: var(--orbit-anim, none); }
@keyframes nh-orbit { from { offset-distance: 58%; } to { offset-distance: 90%; } }
.sun-core { animation: var(--sun-anim, none); transform-origin: 120px 100px; }
@keyframes nh-breathe { 50% { opacity: .75; transform: scale(.92); } }
@media (prefers-reduced-motion: reduce) { .orbit-dot, .sun-core { animation: none; } }

/* Seitenkopf der Unterseiten: NASA-Horizont als Band am unteren Rand */
.sub-hero { position: relative; overflow: hidden; }
.sub-hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(2, 4, 10, .92) 0%, rgba(2, 4, 10, .5) 50%, rgba(2, 4, 10, .3) 76%, var(--void) 100%), url(earth-hero.jpg) center 78% / cover no-repeat; }
.sub-hero .wrap { padding-block: clamp(56px, 9vw, 110px) clamp(64px, 10vw, 130px); display: grid; gap: 16px; }
.sub-hero h1 { font-size: clamp(34px, 5vw, 60px); margin: 6px 0 0; max-width: 20ch; }
.sub-hero .lead { color: var(--text); font-size: 18px; max-width: 60ch; margin: 0; }
.sub-hero .note { color: var(--mist); font-size: 14px; max-width: 64ch; border-left: 2px solid var(--horizon); padding-left: 14px; margin: 6px 0 0; }
.crumb { font-size: 14px; color: var(--mist); margin: 0; } .crumb a { color: var(--ice); }
@media (max-width: 700px) { .sub-hero::before { background-image: linear-gradient(180deg, rgba(2, 4, 10, .92) 0%, rgba(2, 4, 10, .5) 60%, rgba(2, 4, 10, .35) 82%, var(--void) 100%), url(earth-hero-mobile.jpg); background-position: center 85%; } }

/* Glas-Karten */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; position: relative; } /* ohne backdrop-filter: flüssigeres Scrollen */
.card::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; border-radius: 18px 18px 0 0; background: linear-gradient(90deg, transparent, var(--horizon-soft), transparent); opacity: .45; pointer-events: none; }

/* Rechtstexte (Impressum, Datenschutz) */
.legal { max-width: 860px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--gutter) 80px; }
.legal .content { padding: clamp(22px, 4vw, 44px); }
.legal h2 { font-size: 21px; margin: 2.4rem 0 .7rem; } .legal h2:first-child, .legal section:first-child h2 { margin-top: 0; }
.legal h3 { font-size: 16.5px; margin: 1.6rem 0 .45rem; }
.legal p { margin: .7rem 0; } .legal ul { padding-left: 1.4rem; } .legal li { margin: .4rem 0; }
.legal strong { color: var(--ice); font-weight: 600; }
.legal address { font-style: normal; line-height: 1.85; margin: 1rem 0; }
.callout { margin: 1.4rem 0; padding: 1.1rem 1.3rem; border-left: 3px solid var(--horizon); border-radius: 12px; background: rgba(61, 139, 255, .08); }
.callout h3 { margin-top: 0; }

/* Fußzeile */
.nh-footer { border-top: 1px solid var(--line); background: rgba(2, 4, 10, .85); color: var(--mist); font-size: 13.5px; }
.nh-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 28px; }
.nh-footer nav { display: flex; gap: 22px; } .nh-footer a { color: var(--ice); }
.nh-footer .brand { font-size: 15px; } .nh-footer .brand svg { width: 40px; height: 26px; }

/* Weiche Einblendungen */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } * { transition: none !important; } }
