/* ── Nordic Awareness — Gemeinsames CSS ─────────────────────────── */

:root {
  --bg:           #0d1520;
  --bg-card:      #162030;
  --border:       rgba(79,195,161,0.12);
  --aurora:       #4fc3a1;
  --aurora-dk:    rgba(79,195,161,0.10);
  --teal:         #3ddbd9;
  --white:        #ffffff;
  --heading:      #e8f0f8;
  --text:         #9ab0c4;
  --muted:        #5e7a90;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection { background: rgba(79,195,161,0.25); color: var(--heading); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(79,195,161,0.3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--aurora); }

/* ── Typografie ─────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--heading);
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

a { color: var(--aurora); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────────── */
.container    { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 1.5rem; }
section + section { border-top: 1px solid var(--border); }

/* ── Navigation ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

nav.scrolled {
  background: rgba(13,21,32,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(79,195,161,0.12);
  box-shadow: 0 1px 16px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s;
}
nav.scrolled .nav-logo { color: rgba(232,240,248,0.9); }
.nav-logo:hover { color: var(--aurora); text-decoration: none; }

/* Logo: weißer Nordstern, schlicht ohne Hintergrundkreis */
.logo-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-wrap img { width: 24px; height: 24px; object-fit: contain; opacity: 0.9; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.3s;
}
nav.scrolled .nav-links a { color: rgba(154,176,196,0.8); }
.nav-links a:hover { color: var(--aurora); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  padding: 0.25rem;
}
nav.scrolled .nav-toggle { color: rgba(154,176,196,0.8); }

.nav-mobile {
  display: none;
  background: rgba(13,21,32,0.99);
  border-top: 1px solid rgba(79,195,161,0.1);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.nav-mobile a {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(154,176,196,0.8);
  text-decoration: none;
}
.nav-mobile a:hover { color: var(--aurora); }
.nav-mobile.open { display: flex; }

@media (max-width: 680px) {
  .nav-links  { display: none; }
  .nav-toggle { display: block; }
}

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.card-hover {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.card-hover:hover {
  border-color: rgba(79,195,161,0.4);
  box-shadow: 0 6px 28px rgba(0,0,0,0.3);
  transform: translateY(-2px);
  text-decoration: none;
}

@media (max-width: 680px) { .card { padding: 1.5rem; } }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  background: var(--aurora);
  color: #ffffff;
  border: 1px solid var(--aurora);
  cursor: pointer;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.3s, border-color 0.3s;
}
.btn:hover { background: #3aab8e; border-color: #3aab8e; text-decoration: none; }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border-color: var(--aurora);
  color: var(--aurora);
}
.btn-outline:hover { background: var(--aurora); color: #fff; }

/* ── Forms ──────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
textarea {
  display: block;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(79,195,161,0.18);
  color: var(--heading);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder { color: var(--muted); }
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--aurora);
  background: rgba(79,195,161,0.04);
}

/* ── Hilfeklassen ───────────────────────────────────────────────── */
.label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--aurora);
  display: block;
  margin-bottom: 1rem;
}

.aurora-text {
  background: linear-gradient(135deg, var(--aurora) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center  { text-align: center; }
.text-muted   { color: var(--muted); }
.text-white   { color: #ffffff; }
.text-heading { color: var(--heading); }
.italic       { font-style: italic; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--heading);
  line-height: 1.4;
  border-left: 3px solid var(--aurora);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.border-left {
  border-left: 2px solid rgba(79,195,161,0.3);
  padding-left: 1.5rem;
}

/* ── Grid ───────────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 820px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── Badge ──────────────────────────────────────────────────────── */
.badge {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aurora);
  border: 1px solid rgba(79,195,161,0.3);
  background: rgba(79,195,161,0.07);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

/* ── Sublabel / Arrow ───────────────────────────────────────────── */
.card-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aurora);
  display: block;
  margin-bottom: 0.5rem;
}
.card-arrow {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(79,195,161,0.4);
  margin-top: 1rem;
  display: block;
  transition: color 0.3s;
}
.card-hover:hover .card-arrow { color: var(--aurora); }

/* ── Hero Sternenhimmel ─────────────────────────────────────────── */
.stars-bg {
  background: #0d1b2e;
  position: relative;
  overflow: hidden;
}
.stars-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 40%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 85%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 80%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 45%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 83% 12%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at  5% 55%, rgba(255,255,255,0.25) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.stars-bg > * { position: relative; z-index: 1; }

/* Überschriften im dunklen Hero müssen weiß sein */
.stars-bg h1, .stars-bg h2, .stars-bg h3 { color: #ffffff; }

.stars-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(79,195,161,0.08) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ── Footer ─────────────────────────────────────────────────────── */
footer {
  background: #080f1a;
  border-top: 1px solid rgba(79,195,161,0.1);
  padding: 3rem 1.5rem;
  text-align: center;
}
.footer-inner { max-width: 960px; margin: 0 auto; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(94,122,144,0.8);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--aurora); }
.footer-copy { font-size: 0.75rem; color: rgba(94,122,144,0.5); }
.footer-legal {
  font-size: 0.68rem;
  color: rgba(94,122,144,0.35);
  margin-top: 0.4rem;
}

/* ── Page-Hero (Unterseiten) ────────────────────────────────────── */
.page-hero {
  background: #0d1b2e;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(79,195,161,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero h1 { color: #ffffff; position: relative; }
.page-hero .label { color: var(--aurora); }

/* ── Mythologie-Karte ───────────────────────────────────────────── */
.myth-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aurora);
  display: block;
  margin-bottom: 0.4rem;
}
.myth-label.system { color: var(--muted); }
.myth-item + .myth-item { margin-top: 1rem; }

/* ── Utility ────────────────────────────────────────────────────── */
.mb-xs  { margin-bottom: 0.5rem; }
.mb-sm  { margin-bottom: 1rem; }
.mb-md  { margin-bottom: 2rem; }
.mb-lg  { margin-bottom: 3rem; }
.mt-md  { margin-top: 2rem; }
.mt-lg  { margin-top: 3rem; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-sm      { gap: 1rem; }
.flex-wrap   { flex-wrap: wrap; }
.opacity-60  { opacity: 0.5; }
