/* Minimal-CSS — Mobile-First. Wird in Tag 6 polished. */
* { box-sizing: border-box; }
:root {
  --bg: #0f1115;
  --fg: #e9ecef;
  --muted: #9aa1ab;
  --accent: #ff3a3a;
  --card: #1c2129;
  --border: #2a313c;
  --error: #ff6b6b;
}
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; background: var(--card); border-bottom: 1px solid var(--border); }
.topbar nav { display: flex; gap: 0.8rem; align-items: center; }
.topbar nav a { color: var(--fg); }
.topbar .brand { font-weight: 700; font-size: 1.1rem; color: var(--fg); }
.cta { background: var(--accent); color: white; padding: 0.5rem 0.9rem;
  border-radius: 6px; font-weight: 600; }
.cta:hover { text-decoration: none; opacity: 0.92; }
.link-button { background: none; border: none; color: var(--fg); cursor: pointer;
  font: inherit; padding: 0; }

main.content { padding: 1.2rem 1rem; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: 1.8rem; margin-top: 0.5rem; }
.lead { color: var(--muted); font-size: 1.05rem; }
.features { display: grid; gap: 1rem; margin-top: 1.5rem; }
.features article { background: var(--card); padding: 1rem; border-radius: 8px;
  border: 1px solid var(--border); }
.features h2 { font-size: 1.1rem; margin: 0 0 0.3rem 0; }

.auth { max-width: 420px; margin: 0 auto; }
.form { display: flex; flex-direction: column; gap: 0.9rem; }
.form label { display: flex; flex-direction: column; gap: 0.3rem; }
.form input[type="text"], .form input[type="email"] {
  background: var(--card); color: var(--fg); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.6rem 0.8rem; font-size: 1rem;
}
.form .check { flex-direction: row; align-items: flex-start; gap: 0.5rem; }
.form button { padding: 0.7rem; background: var(--accent); color: white;
  border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }
.form small { color: var(--muted); }
.error { background: rgba(255, 107, 107, 0.15); color: var(--error);
  padding: 0.6rem 0.8rem; border-radius: 6px; margin-bottom: 0.8rem; }
.warning { background: rgba(255, 200, 0, 0.12); padding: 0.6rem 0.8rem;
  border-radius: 6px; border: 1px solid rgba(255, 200, 0, 0.3); }

footer { text-align: center; padding: 1.5rem 1rem; color: var(--muted);
  border-top: 1px solid var(--border); margin-top: 2rem; }
footer a { color: var(--muted); }
.muted { color: var(--muted); }

.legal-text h2 { margin-top: 1.6rem; }
.legal-text table { width: 100%; border-collapse: collapse; margin: 0.8rem 0; }
.legal-text th, .legal-text td { padding: 0.4rem 0.6rem; border: 1px solid var(--border);
  text-align: left; }
.legal-text pre { background: var(--card); padding: 0.8rem; border-radius: 6px;
  overflow-x: auto; }

/* ----- Spielplan ----- */
.spielplan h1 { margin-top: 0.5rem; }
.group-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 1.5rem 0; }
.group-tab { padding: 0.45rem 0.8rem; background: var(--card);
  border: 1px solid var(--border); border-radius: 6px; color: var(--fg); font-size: 0.92rem; }
.group-tab:hover { text-decoration: none; border-color: var(--accent); }
.group-tab.active { background: var(--accent); color: white; border-color: var(--accent); font-weight: 600; }

.table-standings { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.5rem 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; font-size: 0.92rem; }
.table-standings th, .table-standings td { padding: 0.5rem 0.6rem; text-align: left;
  border-bottom: 1px solid var(--border); }
.table-standings th { background: rgba(255,255,255,0.04); font-weight: 600; color: var(--muted); }
.table-standings tr:last-child td { border-bottom: none; }
.table-standings td:first-child { color: var(--muted); width: 1.5rem; }

.day-heading { margin-top: 1.4rem; color: var(--muted); font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.04em; }
.match-list { list-style: none; padding: 0; margin: 0.4rem 0; }
.match-row { display: grid; grid-template-columns: 4rem 1fr auto 1fr;
  align-items: center; gap: 0.5rem; padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--border); }
.match-row .kickoff { color: var(--muted); font-size: 0.88rem; }
.match-row .team.home { text-align: right; }
.match-row .team.away { text-align: left; }
.match-row .score { font-weight: 700; padding: 0.15rem 0.5rem;
  background: rgba(255,255,255,0.06); border-radius: 4px; min-width: 3rem; text-align: center; }
.match-row.status-finished .score { color: var(--accent); }
.match-row.status-live_1h .score,
.match-row.status-live_halftime .score,
.match-row.status-live_2h .score,
.match-row.status-live_et .score,
.match-row.status-live_penalties .score {
  background: var(--accent); color: white; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.7 } }

/* ============================================================
   Landingpage (Story 23)
   ============================================================ */

.page-landing main.content { max-width: 960px; padding: 0; }

/* ---------- Hero ---------- */
.hero-wm {
  position: relative;
  min-height: calc(100svh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.2rem 3rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-wm-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(15,17,21,0.65) 0%,
      rgba(15,17,21,0.85) 60%,
      rgba(15,17,21,1) 100%),
    url('/static/social/social-story-1080x1920.png') center/cover no-repeat;
}
@media (min-width: 720px) {
  .hero-wm-bg {
    background:
      linear-gradient(180deg,
        rgba(15,17,21,0.7) 0%,
        rgba(15,17,21,0.85) 70%,
        rgba(15,17,21,1) 100%),
      url('/static/social/social-square-1080.png') center/cover no-repeat;
  }
}

.hero-wm-inner { max-width: 38rem; }
.hero-stars {
  letter-spacing: 0.4em;
  color: #FFC52E;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}
.hero-title {
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  line-height: 1;
  margin: 0 0 1rem 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-title-l1 { display: block; font-weight: 400; opacity: 0.95; font-size: 0.45em; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-title-l2 { display: block; color: #ffffff; text-shadow: 0 2px 18px rgba(0,0,0,0.45); }

.hero-tagline {
  font-size: clamp(1rem, 3.6vw, 1.25rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  margin: 0 0 2rem 0;
}
.hero-tagline strong { color: #FFC52E; font-weight: 800; }

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: clamp(1rem, 3.8vw, 1.15rem);
  font-weight: 700;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(255,58,58,0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(255,58,58,0.55); text-decoration: none; }
.hero-cta:focus-visible { outline: 3px solid #FFC52E; outline-offset: 3px; }

.hero-sub {
  margin: 1.2rem 0 0 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}
.hero-sub a { color: #FFC52E; text-decoration: underline; }
.hero-meta {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ---------- Sections gemeinsam ---------- */
.section { padding: 3.2rem 1.2rem; max-width: 960px; margin: 0 auto; }
.section-title { text-align: center; font-size: clamp(1.5rem, 5vw, 2.1rem); margin: 0 0 0.6rem 0; }
.section-lead { text-align: center; color: var(--muted); max-width: 38rem; margin: 0 auto 2rem; line-height: 1.55; }

/* ---------- Features ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
@media (min-width: 720px) { .feature-list { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.feature-item {
  display: flex;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.feature-item h3 { margin: 0 0 0.25rem 0; font-size: 1.05rem; color: #fff; }
.feature-item p { margin: 0; color: rgba(255,255,255,0.78); font-size: 0.92rem; line-height: 1.45; }
.feature-icon {
  flex-shrink: 0;
  width: 2.2rem; height: 2.2rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,58,58,0.12);
  border-radius: 8px;
  font-size: 1.2rem;
}

/* ---------- Guest block ---------- */
.section-guest { background: linear-gradient(180deg, rgba(255,197,46,0.04), transparent); border-radius: 12px; }
.section-guest .section-lead { color: rgba(255,255,255,0.85); }

/* ---------- Trust ---------- */
.trust-grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 0.9rem;
  text-align: center;
}
.trust-card h3 { margin: 0.4rem 0 0.3rem 0; font-size: 0.95rem; }
.trust-card p { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.trust-emoji { font-size: 1.6rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: stepc; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.2rem; }
.step-num {
  flex-shrink: 0;
  width: 2.4rem; height: 2.4rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  font-weight: 800; font-size: 1.15rem;
}
.steps h3 { margin: 0 0 0.2rem 0; }
.steps p { margin: 0; color: rgba(255,255,255,0.78); font-size: 0.95rem; }

/* ---------- Final-CTA ---------- */
.section-cta-final { text-align: center; padding-bottom: 5rem; }
.muted-sub { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }
.muted-sub a { color: #FFC52E; }

/* ---------- Sticky-CTA (Mobile, scroll > 45%) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 0.65rem 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
}
.sticky-cta a {
  flex: 1; text-align: center;
  background: var(--accent); color: #fff;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700; font-size: 0.95rem;
}
.sticky-cta a:hover { text-decoration: none; }
.sticky-cta-close {
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  width: 2rem; height: 2rem; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; line-height: 1;
}
@media (min-width: 720px) { .sticky-cta { display: none; } }

/* ---------- Topbar mit Icon ---------- */
.topbar .brand { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar .brand img { display: block; }
