/* =====================================================================
   WM 2026 Tippspiel — modern dark "stadium at night" hochglanz
   - Tiefes Navy als Bühne, neongrüner Pitch-Akzent, Trophäen-Gold
   - Glassmorphism für Cards/Nav (backdrop-filter blur + halbtransparent)
   - Glow auf CTAs + Headlines, subtile Animationen
   ===================================================================== */

:root {
  --bg-0:        #060814;     /* tiefster Bühnen-Schwarz */
  --bg-1:        #0d1430;     /* Stadion-Navy */
  --bg-2:        #1b2453;     /* Mid-Tier */
  --fg:          #e8ecf7;     /* helle Schrift */
  --fg-dim:      #9aa3c0;     /* dezent */
  --accent:      #00ff88;     /* Pitch-Grün — primärer CTA + Glow */
  --accent-dim:  #00b85f;
  --gold:        #ffd24a;     /* Trophäen-Gold */
  --danger:      #ff5470;
  --glass:       rgba(255,255,255,0.06);
  --glass-strong: rgba(255,255,255,0.10);
  --border:      rgba(255,255,255,0.14);
  --shadow-glow-accent: 0 0 24px rgba(0,255,136,0.45),
                        0 0 60px rgba(0,255,136,0.25);
  --shadow-glow-gold:   0 0 24px rgba(255,210,74,0.45);
  --radius:      14px;
  --max-w:       1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg-0);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
               Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.55;
  min-height: 100vh;
  /* Stadion-Beleuchtung: zwei dezente radiale Lichter */
  background-image:
    radial-gradient(ellipse 1200px 700px at 15% -10%,
                    rgba(0,255,136,0.10), transparent 60%),
    radial-gradient(ellipse 1000px 600px at 85% 110%,
                    rgba(0,150,255,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 60%, var(--bg-0));
  background-attachment: fixed;
}

/* dezenter Pixelraster wie Stadion-LED — kostet nix, wirkt premium */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000, transparent);
}

/* alles weitere übers Raster heben */
header, main, footer, .container { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-shadow: 0 0 8px rgba(0,255,136,0.6); }

/* --------------------------------------------------------- Top-Bar */

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85em 1.2em; gap: 1em;
  background: rgba(8,12,32,0.65);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}

.brand {
  display: flex; align-items: center; gap: .55em;
  font-size: 1.18em; font-weight: 700;
  color: var(--fg);
  letter-spacing: .02em;
}
.brand:hover { text-shadow: 0 0 8px rgba(0,255,136,0.5); }
.brand .logo-svg { height: 32px; width: 32px; filter: drop-shadow(0 0 8px rgba(0,255,136,0.5)); }
.brand .wm-mark {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 800; font-size: 1.05em;
  letter-spacing: .04em;
}

.mainnav { display: flex; gap: .3em; flex-wrap: wrap; align-items: center; }
.mainnav > a, .mainnav .inline-logout button {
  color: var(--fg-dim);
  padding: .42em .85em; border-radius: 10px;
  font-size: .94em; font-weight: 500;
  transition: color .18s, background .18s, box-shadow .18s;
}
.mainnav > a:hover, .mainnav .inline-logout button:hover {
  color: var(--fg);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--border);
  text-shadow: none;
}
.inline-logout { display: inline; margin: 0; }
.inline-logout button {
  background: transparent; border: none; cursor: pointer;
  font-family: inherit;
}

/* --------------------------------------------------------- Container */

.container {
  max-width: var(--max-w);
  margin: 0 auto; padding: 2.2em 1.4em 3em;
}

/* --------------------------------------------------------- HERO */

.hero {
  display: grid; gap: 1.4em; place-items: center;
  text-align: center;
  padding: 4.2em 1em 3em;
  position: relative;
}
.hero-logo {
  width: 140px; height: 140px;
  filter: drop-shadow(0 0 24px rgba(0,255,136,0.55))
          drop-shadow(0 0 60px rgba(255,210,74,0.18));
  animation: hero-float 6s ease-in-out infinite;
}
/* Fussball-Emoji als Hero — MASSIV, mit doppelt geschichtetem Glow.
   clamp passt sich an Viewport an: min ~256px (mobile), bis ~480px (desktop). */
.hero-ball {
  display: inline-block;
  font-size: clamp(10.9rem, 25.8vw, 20.4rem);
  line-height: 1;
  filter: drop-shadow(0 0 40px rgba(0,255,136,0.65))
          drop-shadow(0 0 90px rgba(255,210,74,0.35))
          drop-shadow(0 0 140px rgba(0,255,136,0.18));
  animation: hero-float 6s ease-in-out infinite;
  user-select: none;
  transition: filter .25s, transform .25s;
  margin: -1em 0 -0.5em;   /* Emoji hat eingebauten Whitespace, kompensieren */
}
.hero-ball:hover {
  transform: scale(1.06) rotate(8deg);
  filter: drop-shadow(0 0 55px rgba(0,255,136,0.9))
          drop-shadow(0 0 120px rgba(255,210,74,0.5))
          drop-shadow(0 0 180px rgba(0,255,136,0.25));
}

/* Fussball in der Nav-Brand: kompakt, gleicher Glow-Look. */
.brand-ball {
  font-size: 1.7em;
  line-height: 1;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(0,255,136,0.7))
          drop-shadow(0 0 20px rgba(255,210,74,0.3));
  transition: transform .25s;
}
.brand:hover .brand-ball { transform: rotate(20deg) scale(1.1); }
@keyframes hero-float {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%     { transform: translateY(-10px) rotate(2deg); }
}

.hero h1 {
  margin: 0; font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.015em;
  background: linear-gradient(120deg, #fff 0%, var(--accent) 45%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 50px rgba(0,255,136,0.18);
}
.hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--fg-dim); margin: 0; max-width: 640px;
}
.hero .tagline strong { color: var(--fg); }

.cta-row { display: flex; gap: .9em; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block; padding: .95em 1.7em;
  border-radius: 12px; font-weight: 700; font-size: 1.02em;
  text-decoration: none; border: 1px solid var(--border);
  background: var(--glass); color: var(--fg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--glass-strong); text-shadow: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #042116; border: none;
  box-shadow: var(--shadow-glow-accent);
  animation: pulse-glow 2.6s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 32px rgba(0,255,136,0.65), 0 0 80px rgba(0,255,136,0.3);
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 20px rgba(0,255,136,0.4), 0 0 50px rgba(0,255,136,0.18); }
  50%     { box-shadow: 0 0 30px rgba(0,255,136,0.65), 0 0 70px rgba(0,255,136,0.3); }
}

.stats-bar {
  display: flex; gap: 1.4em; flex-wrap: wrap; justify-content: center;
  padding: 1em 1.4em;
  border-radius: 14px;
  background: var(--glass); border: 1px solid var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  margin-top: 1em;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: .15em; min-width: 90px; }
.stat .num {
  font-size: 1.7em; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { font-size: .78em; color: var(--fg-dim); text-transform: uppercase; letter-spacing: .08em; }

/* "trust"-Reihe unter Hero */
.trust { display: flex; gap: 1.6em; flex-wrap: wrap; justify-content: center;
         margin-top: 1.4em; color: var(--fg-dim); font-size: .88em; }
.trust span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* --------------------------------------------------------- Sections */

section + section { margin-top: 3em; }

main h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .6em;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800; letter-spacing: -.01em;
}
main h2.section-title { text-align: center; margin-bottom: 1.4em; }

/* --------------------------------------------------------- Glas-Cards */

.glass-card {
  background: var(--glass);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3em;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: transform .2s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.glass-card::before {
  /* dezenter Diagonal-Schimmer */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,255,136,0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 24px rgba(0,255,136,0.18);
}
.glass-card h3 {
  margin: 0 0 .4em; font-size: 1.18em; color: var(--fg);
  display: flex; align-items: center; gap: .55em;
}
.glass-card .icon {
  width: 1.6em; height: 1.6em; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,255,136,0.2), rgba(255,210,74,0.15));
  border: 1px solid var(--border); border-radius: 8px; font-size: 1.05em;
}
.glass-card p {
  margin: 0 0 .8em; color: var(--fg-dim); font-size: .94em;
}
.glass-card .card-cta {
  color: var(--accent); font-weight: 600; font-size: .9em;
}

.feature-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.1em;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.feature-grid > li { display: block; }

/* --------------------------------------------------------- Tables */

table {
  width: 100%; border-collapse: collapse;
  background: var(--glass); border-radius: var(--radius);
  overflow: hidden; backdrop-filter: blur(10px);
}
th, td {
  padding: .65em .9em; text-align: left;
  border-bottom: 1px solid var(--border); font-size: .94em;
}
thead th {
  background: rgba(255,255,255,0.04);
  color: var(--fg-dim); text-transform: uppercase;
  font-size: .78em; letter-spacing: .06em;
}
tbody tr:hover { background: rgba(0,255,136,0.04); }

/* --------------------------------------------------------- Forms */

form label { display: block; margin: .8em 0 .3em; color: var(--fg-dim); font-size: .9em; }
input, select, textarea, button {
  font-family: inherit; font-size: 1em;
}
input[type="email"], input[type="password"], input[type="text"],
input[type="number"], input[type="datetime-local"], select, textarea {
  width: 100%; max-width: 380px; padding: .7em .9em;
  border-radius: 10px; border: 1px solid var(--border);
  background: rgba(0,0,0,0.4); color: var(--fg);
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.15);
}
form button[type="submit"], form > button {
  margin-top: 1em; padding: .8em 1.6em;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #042116; font-weight: 700; border: none; border-radius: 10px;
  cursor: pointer; box-shadow: var(--shadow-glow-accent);
  transition: transform .15s;
}
form button[type="submit"]:hover, form > button:hover { transform: translateY(-1px); }

/* Tipp-Eingabe in der Predictions-Tabelle: kompakt + horizontal.
   Override fuer die generische input-Regel, die fuer Login/Register sinnvoll
   ist (380px breit), in der schmalen Tabellenzelle aber spreng-bricht. */
.tip-form {
  display: inline-flex; align-items: center; gap: .4em;
  flex-wrap: nowrap; margin: 0;
}
.tip-form input[type="number"] {
  width: 3em; max-width: 3em; min-width: 2.8em;
  padding: .35em .3em; text-align: center;
  font-weight: 700; font-size: 1em;
  -moz-appearance: textfield;        /* kein Spinner */
}
.tip-form input[type="number"]::-webkit-outer-spin-button,
.tip-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.tip-form label {
  display: inline-flex; align-items: center; gap: .25em;
  margin: 0; font-size: .82em; color: var(--fg-dim);
  white-space: nowrap;
}
.tip-form label input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--gold); }
.tip-form button[type="submit"] {
  margin: 0; padding: .42em .85em; font-size: .85em;
  box-shadow: 0 0 12px rgba(0,255,136,0.3);
}

/* Predictions-Tabelle: kompakte Spalten + mobile-friendly */
table.predictions { font-size: .92em; }
table.predictions td { vertical-align: middle; padding: .55em .65em; }
table.predictions td:nth-child(4),
table.predictions td:nth-child(5) { font-weight: 600; }
table.predictions td:last-child { white-space: nowrap; }

@media (max-width: 720px) {
  table.predictions { font-size: .82em; }
  table.predictions thead th:nth-child(1),    /* ID */
  table.predictions thead th:nth-child(3),    /* Gruppe */
  table.predictions thead th:nth-child(6),    /* Status */
  table.predictions tbody td:nth-child(1),
  table.predictions tbody td:nth-child(3),
  table.predictions tbody td:nth-child(6) { display: none; }
}

/* --------------------------------------------------------- Footer */

.footer {
  margin-top: 4em; padding: 2em 1.4em;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.4);
  text-align: center; color: var(--fg-dim); font-size: .85em;
}
.footer a { color: var(--fg-dim); }
.footer a:hover { color: var(--accent); }
.footer .host-flags { font-size: 1.2em; letter-spacing: .15em; }

/* --------------------------------------------------------- Tournament-info Strip */

.ground-truth { padding: 1.6em; }
.ground-truth ul { padding-left: 1.2em; color: var(--fg-dim); }
.ground-truth li { margin: .35em 0; }

/* --------------------------------------------------------- Responsive Mini-Tweaks */

@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: .6em; }
  .mainnav { width: 100%; }
  .hero { padding-top: 2.4em; }
  .hero-logo { width: 100px; height: 100px; }
}
