/* ============================================================
   Floorball Dashboard – Shared Styles
   Palette & Typo angelehnt an die iOS-App:
   Dunkelgrün, Signalgrün, Gold (Favoriten/Trophäen), Mono-Ziffern
   ============================================================ */

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

:root {
  --green:      #3ddc84;
  --green-dim:  #2a9e5f;
  --gold:       #e8c34a;
  --bg:         #060e09;
  --bg-card:    #0c1a10;
  --bg-card2:   #111f15;
  --border:     rgba(61,220,132,0.10);
  --border-gold:rgba(232,195,74,0.22);
  --text:       #e8f0ea;
  --text-dim:   rgba(232,240,234,0.48);
  --serif:      'DM Serif Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --mono:       'Space Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Körnung wie gehabt */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.35;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(6,14,9,0.78);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.nav-coffee {
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: 99px;
  padding: 0.35rem 0.9rem;
}
.nav-links a.nav-coffee:hover { background: rgba(232,195,74,0.08); }

/* Mobiles Menü (Checkbox-Hack, kein JS nötig) */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 0.5rem;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
@media (max-width: 680px) {
  nav { padding: 0.9rem 1.25rem; flex-wrap: wrap; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.25rem 0 0.75rem;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Wiederkehrende Bausteine ── */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
}
.page-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 0.75rem;
}
.page-title em { color: var(--green); font-style: italic; }
.page-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
  font-weight: 300;
}

.legal-section { display: flex; flex-direction: column; gap: 2rem; }

.legal-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
}
.legal-block h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  display: flex; align-items: baseline; gap: 0.6rem;
}
.legal-block h2 .num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  background: rgba(61,220,132,0.08);
  border: 1px solid rgba(61,220,132,0.15);
  border-radius: 99px;
  padding: 0.2rem 0.6rem;
  flex-shrink: 0;
}
.legal-block p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.8;
}
.legal-block p + p { margin-top: 0.85rem; }
.legal-block strong { color: var(--text); font-weight: 600; }
.legal-block a { color: var(--green); text-decoration: none; }
.legal-block a:hover { text-decoration: underline; }
.legal-block ul {
  list-style: none;
  margin-top: 0.75rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.legal-block ul li {
  font-size: 0.9rem; color: var(--text-dim); line-height: 1.6;
  padding-left: 1.2rem; position: relative;
}
.legal-block ul li::before { content: '–'; position: absolute; left: 0; color: var(--green); }

.contact-block {
  background: rgba(61,220,132,0.04);
  border: 1px solid rgba(61,220,132,0.12);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.9;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none;
  border-radius: 99px;
  padding: 0.8rem 1.6rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--green);
  color: #06140b;
  box-shadow: 0 6px 24px rgba(61,220,132,0.25);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(61,220,132,0.35); }
.btn-coffee {
  background: rgba(232,195,74,0.10);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}
.btn-coffee:hover { background: rgba(232,195,74,0.18); }
.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(232,240,234,0.18);
}
.btn-ghost:hover { border-color: rgba(232,240,234,0.4); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-inner span { font-size: 0.8rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green); }
.footer-links a.coffee { color: var(--gold); }
