*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: #070B18;
  color: #E8ECF5;
  font-family: Inter, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: #9FE8EC; }
a:hover { color: #FFFFFF; }
a:focus-visible,
button:focus-visible { outline: 3px solid #FFB547; outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, .brand span, .card-value, .seconds-value, .btn-primary {
  font-family: 'Space Grotesk', sans-serif;
}

/* Kopf */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 28px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #E8ECF5; }
.brand span { font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.site-header nav a { text-decoration: none; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 48px 0 72px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-visual { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.eyebrow { margin: 0; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: #FFB547; }
h1 {
  margin: 0; font-weight: 700; font-size: clamp(38px, 7vw, 64px);
  line-height: 1.02; letter-spacing: -0.02em;
}
.lead { margin: 0; font-size: 19px; line-height: 1.6; color: #A9B3C9; max-width: 520px; }

.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-primary,
.btn-secondary { min-height: 48px; border-radius: 999px; cursor: pointer; }
.btn-primary {
  padding: 0 28px; border: 0; background: #FFB547; color: #1A1206;
  font-weight: 700; font-size: 17px;
}
.btn-primary:disabled { cursor: default; opacity: 0.75; }
.btn-secondary {
  padding: 0 22px; border: 1px solid #2A3550; background: transparent; color: #E8ECF5;
  font-family: inherit; font-size: 16px;
}
.btn-secondary:hover { border-color: #5CE1E6; }

/* Globus mit Ring */
.globe-wrap { position: relative; width: 440px; max-width: 100%; aspect-ratio: 1 / 1; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe {
  position: absolute; inset: 10%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 30%, #2C6E9E 0%, #123A63 45%, #071A33 100%);
  box-shadow: 0 0 80px rgba(92, 225, 230, 0.18);
}
.meridians {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35;
  animation: l60spin 60s linear infinite; transform-origin: 50% 50%;
}
.dots { position: absolute; inset: 0; }
.dot { position: absolute; border-radius: 50%; }
.dot-birth { animation: l60pulse 1.6s ease-out forwards; }
.dot-flash { animation: l60flash 1.2s ease-out infinite; }

.seconds {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none;
}
.seconds-value {
  font-weight: 700; font-size: clamp(64px, 20vw, 96px); line-height: 1; color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); font-variant-numeric: tabular-nums;
}
.seconds-label { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: #CFE9F0; }

/* Zähler */
.numbers { padding: 24px 0 72px; display: flex; flex-direction: column; gap: 28px; }
.numbers h2 { margin: 0; font-weight: 700; font-size: clamp(28px, 5vw, 36px); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: #0E1528; border: 1px solid #1C2744; border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.card-label {
  margin: 0; font-family: Inter, system-ui, sans-serif; font-weight: 400;
  font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
}
.card-value {
  margin: 0; font-weight: 700; font-size: clamp(36px, 9vw, 48px); line-height: 1.05;
  color: #FFFFFF; font-variant-numeric: tabular-nums;
}
.card-text { margin: 0; font-size: 15px; line-height: 1.5; color: #A9B3C9; }
.c-births { color: #FFB547; }
.c-deaths { color: #B9C2D6; }
.c-lightning { color: #9FE8EC; }
.c-orbit { color: #5CE1E6; }
.c-spin { color: #8FB8FF; }
.c-co2 { color: #FF8A65; }

/* Über und Quellen */
.about { padding: 48px 0; border-top: 1px solid #1C2744; display: flex; flex-wrap: wrap; gap: 48px; }
.about > div { flex: 1 1 360px; min-width: 0; }
.about h2 { margin: 0 0 16px; font-weight: 700; font-size: 28px; }
.about p { margin: 0; font-size: 17px; line-height: 1.7; color: #A9B3C9; }
.about p.small { font-size: 15px; }

.site-footer {
  padding: 32px 0 48px; font-size: 14px; color: #7C88A3;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}
.site-footer a { text-decoration: none; }

@keyframes l60spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes l60pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes l60flash { 0%, 100% { opacity: 0; } 8% { opacity: 1; } 20% { opacity: .2; } }

@media (max-width: 480px) {
  .page { padding: 0 16px; }
  .hero { padding: 24px 0 48px; gap: 36px; }
  .card { padding: 22px; }
}

/* Weniger Bewegung: keine Animationen, die Zähler laufen trotzdem. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .meridians, .dot-birth, .dot-flash { animation: none; }
  .dots { display: none; }
}
