/* ============ Big H Universe – Design System ============ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Flächen */
  --bg: #0a0a0c;
  --bg2: #111114;
  --card: #141418;
  --card-2: #1b1b21;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  /* Text */
  --text: #ececef;
  --muted: #9b9ba7;
  /* Akzente (gedämpft) – Namen bleiben für ältere Seiten gleich */
  --accent: #f43f5e;
  --pink: #f43f5e;
  --cyan: #22d3ee;
  --yellow: #fbbf24;
  --purple: #a78bfa;
  --green: #34d399;
  /* Form */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  /* Schriften */
  --title: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --pixel: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; position: relative; z-index: 2; }

.title-font { font-family: var(--title); }
.pixel { font-family: var(--pixel); }
.muted { color: var(--muted); }

/* ---------- Icons ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; stroke-width: 2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font: 600 .95rem var(--body); color: #0a0a0c; background: var(--text);
  text-decoration: none; transition: transform .15s, background .15s, border-color .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .9; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.pink { background: var(--accent); color: #fff; }
.btn.cyan { background: var(--card-2); color: var(--text); border-color: var(--line-2); }
.btn.cyan:hover { border-color: rgba(255, 255, 255, .28); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .05); }

/* ---------- Zurück-Link (wird per JS eingefügt) ---------- */
.bigh-back {
  position: fixed; top: 14px; left: 14px; z-index: 50;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px 7px 10px; border-radius: 999px; text-decoration: none;
  background: rgba(10, 10, 12, .72); color: var(--text); border: 1px solid var(--line-2);
  font: 600 .85rem var(--body); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .15s;
}
.bigh-back:hover { background: rgba(30, 30, 36, .9); }

/* ---------- Karten ---------- */
.card {
  background: var(--card); border-radius: var(--radius); padding: 22px;
  border: 1px solid var(--line);
}

/* ---------- Seitenkopf (für modernisierte Seiten) ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kicker .icon { color: var(--accent); }
.page-head { padding: 84px 0 28px; }
.page-head h1 { font: 700 clamp(2.2rem, 6vw, 3.6rem)/1.05 var(--title); letter-spacing: -.02em; margin: 12px 0 10px; }
.page-head p { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 0; }
.page-head.center { text-align: center; }
.page-head.center p { margin-inline: auto; }
.section-title { font: 600 1.35rem/1.2 var(--title); letter-spacing: -.01em; margin: 48px 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .8rem; font-weight: 600; color: var(--muted); }

/* ---------- Alte Deko-Elemente (still gelegt) ---------- */
.ticker { display: none; }
.bg-emoji { display: none; }
.glitch::before, .glitch::after { content: none; }

/* ---------- Konfetti ---------- */
.particle { position: fixed; z-index: 9998; pointer-events: none; will-change: transform, opacity; }

/* ---------- Toasts ---------- */
.toast-box {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  max-width: calc(100vw - 40px);
}
.toast {
  background: rgba(24, 24, 29, .96); border: 1px solid var(--line-2); color: var(--text);
  padding: 11px 16px; border-radius: 12px; font-weight: 500; font-size: .92rem;
  box-shadow: var(--shadow); backdrop-filter: blur(8px);
  animation: toast-in .25s ease-out, toast-out .3s ease-in 3.2s forwards;
}
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(8px); opacity: 0; } }

/* ---------- Big H Mode (Konami-Code, bewusst verrückt) ---------- */
body.bigh-mode { animation: rainbow 4s linear infinite; }
@keyframes rainbow { to { filter: hue-rotate(360deg); } }
.gallop {
  position: fixed; bottom: 10%; left: -150px; z-index: 9997; font-size: 4rem;
  pointer-events: none; animation: gallop 3s linear forwards;
}
@keyframes gallop {
  0% { transform: translateX(0) scaleX(-1); }
  100% { transform: translateX(calc(100vw + 300px)) scaleX(-1); }
}

/* ---------- Geburtstags-Takeover (4. Oktober) ---------- */
.bday-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 42px;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px;
  background: linear-gradient(90deg, #f43f5e, #f59e0b); color: #fff; text-decoration: none;
  font: 500 .9rem var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bday-bar span { overflow: hidden; text-overflow: ellipsis; }
.bday-bar:hover b { text-decoration: underline; }
body.has-bday-bar { padding-top: 42px; }
body.has-bday-bar .bigh-back { top: 56px; }

footer.bigh-footer {
  position: relative; z-index: 2; text-align: center; color: var(--muted);
  padding: 48px 16px 64px; font-size: .85rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
