/* Gemeinsames Styling für Startseite, Impressum und Datenschutz.
   Farben aus dem moSYS-Designsystem (moSYS/src/app/globals.css) */
:root {
  --bg: #f4f4f2;
  --line: #dcdcd8;
  --brand: #ff6600; /* Logo-Orange – für Flächen, Linien und den Lichtschein */
  --accent: #b54800; /* dunkleres Orange für Text, auf Hell gut lesbar (5,4 : 1) */
  --text: #1d1f21;
  --muted: #5b6066;
  --body-text: #3a3d40;
  --card: rgba(255, 255, 255, .9);
  --card-border: rgba(29, 31, 33, .08);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--accent); }

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Hintergrund: Waben mit wanderndem Licht ---------- */

/* Ebene 1: Grundfarbe der Fugen und die Lichtpunkte */
.glow {
  position: fixed;
  inset: 0;
  background: var(--line);
  overflow: hidden;
}

.spot {
  position: absolute;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 102, 0, .95) 0%, rgba(255, 102, 0, .45) 30%, rgba(255, 102, 0, 0) 68%);
  will-change: transform, opacity;
  transition: opacity .6s ease;
}

.spot--pointer { opacity: 0; }
.spot--pointer.is-active { opacity: 1; }
.spot--wander { opacity: .75; }

/* Ebene 2: dunkle Waben, durch die Fugen scheint das Licht */
.hexes {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Seitenaufbau ---------- */

main {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 560px;
  padding: 40px 32px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(29, 31, 33, .12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Buttons unter der Karte (Impressum, Datenschutz, Zurück) */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.button {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(29, 31, 33, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--muted);
  font-size: .875rem;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}

.button:hover {
  color: var(--text);
  border-color: var(--brand);
}

/* ---------- Startseite ---------- */

/* Logo und Hinweis ohne Kasten – ein weicher heller Schleier dahinter hält die
   Wabenfugen vom Logo fern, damit es ruhig und gut lesbar bleibt */
.hero {
  position: relative;
  width: 100%;
  max-width: 640px;
  padding: 48px 16px;
  text-align: center;
  isolation: isolate; /* Schleier bleibt vor den Waben */
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40px -80px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(244, 244, 242, .96) 55%, rgba(244, 244, 242, 0));
}

.hero h1 { margin: 0 0 32px; }

.hero .logo { max-width: 460px; margin-bottom: 0; }

.hero .badge {
  margin: 0;
  padding: 10px 20px;
  background: rgba(255, 255, 255, .92);
  font-size: .95rem;
  letter-spacing: .02em;
  text-transform: none;
}

.logo {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 102, 0, .5);
  border-radius: 999px;
  background: rgba(255, 102, 0, .06);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* Schleier hinter dem Logo darf nicht seitlich überstehen (sonst Scrollbalken) */
.home main { overflow: hidden; }

/* Impressum und Datenschutz am unteren Bildschirmrand */
.home .links {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 24px;
}

/* ---------- Impressum und Datenschutz ---------- */

.legal main { justify-content: flex-start; padding-top: 40px; padding-bottom: 40px; }

.legal .card { max-width: 760px; }

.legal .logo-link { display: inline-block; margin-bottom: 24px; }

.legal .logo { max-width: 180px; margin: 0; }

.legal h2 {
  margin: 32px 0 8px;
  font-size: 1.125rem;
  line-height: 1.35;
}

.legal p, .legal ul { margin: 0 0 12px; color: var(--body-text); }

.legal ul { padding-left: 1.25em; }

.legal .note { font-size: .875rem; color: var(--muted); }

@media (max-width: 480px) {
  .card { padding: 32px 20px; }
  .logo { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .badge::before { animation: none; }
  .spot, .button { transition: none; }
}
