/* ===========================================================
   STARTELF — Landing
   Aesthetic: matchday at night. Slate pitch, grass-green light,
   jersey-number display type. Signature: animated starting eleven.
   =========================================================== */

:root {
  --bg:        #0b0f1a;
  --bg-2:      #111827;
  --surface:   #1f2937;
  --surface-2: #243244;
  --line:      #2c3a4f;
  --line-soft: #1e2a3c;

  --green:      #16a34a;
  --green-bright:#22c55e;
  --green-glow: rgba(34, 197, 94, 0.45);
  --green-tint: rgba(34, 197, 94, 0.12);

  --text:      #f9fafb;
  --muted:     #9aa7b8;
  --faint:     #64748b;

  --display: "Anton", "Arial Narrow", sans-serif;
  --body:    "Manrope", system-ui, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(.16, .84, .44, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* faint pitch-grass radial wash from the top */
  background-image:
    radial-gradient(1200px 600px at 75% -5%, rgba(22,163,74,.16), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(34,197,94,.07), transparent 55%);
}

/* film grain overlay for atmosphere */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: .96;
  letter-spacing: .01em;
  text-transform: uppercase;
}

::selection { background: var(--green-bright); color: #04130a; }

/* ----------------------- shared bits ----------------------- */

.kicker {
  font-family: var(--body);
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--green-bright);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--green-bright);
}

.hl {
  color: var(--green-bright);
  position: relative;
  text-shadow: 0 0 38px var(--green-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--body);
  font-weight: 800;
  font-size: .98rem;
  letter-spacing: .01em;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: 0 8px 30px -8px var(--green-glow);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--green-bright); box-shadow: 0 14px 40px -8px var(--green-glow); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(255,255,255,.04); border-color: var(--green); transform: translateY(-2px); }
.btn--small { padding: .6rem 1.25rem; font-size: .85rem; }

.section-head { max-width: 640px; margin: 0 auto 3.2rem; text-align: center; }
.section-head h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 1rem 0 .8rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

section { padding: 6.5rem 1.5rem; }

/* ----------------------- nav ----------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(1.2rem, 4vw, 2.6rem);
  background: rgba(11, 15, 26, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; }
.brand__logo {
  height: 44px; width: auto;
  border-radius: 50%;
  /*filter: drop-shadow(0 0 1px var(--green-glow));*/
  transition: transform .25s var(--ease), filter .25s var(--ease);
  @media screen and (min-width: 768px) {
    height: 60px;
  }
}
.brand:hover .brand__logo { transform: scale(1.05) rotate(-4deg); filter: drop-shadow(0 0 22px var(--green-glow)); }
.brand__logo--lg { height: 72px; }
.nav__links { margin-left: auto; display: flex; gap: 2rem; }
.nav__links a {
  font-weight: 600; font-size: .94rem; color: var(--muted);
  transition: color .2s; position: relative;
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--green-bright); transition: width .25s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

/* language switch (DE | EN) — stays visible on mobile, unlike .nav__links */
.lang-switch {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .82rem; letter-spacing: .02em;
}
.nav__links + .lang-switch { margin-left: 1.5rem; }
.lang-switch a { color: var(--muted); transition: color .2s; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active { color: var(--green-bright); cursor: default; }
.lang-switch .sep { color: var(--line-soft); }
.footer__links + .lang-switch { margin-top: .4rem; }

/* ----------------------- hero ----------------------- */

.hero { position: relative; padding-top: 4.5rem; padding-bottom: 5rem; overflow: hidden; }
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 { font-size: clamp(3.2rem, 8.5vw, 6.6rem); margin: 1.2rem 0; }
.lede { color: var(--muted); font-size: 1.18rem; max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero__stats {
  display: flex; gap: 2.5rem; list-style: none; margin-top: 3rem;
  border-top: 1px solid var(--line-soft); padding-top: 1.6rem;
}
.hero__stats strong { font-family: var(--display); font-size: 2.1rem; color: var(--text); display: block; line-height: 1; }
.hero__stats span { font-size: .82rem; color: var(--faint); }

/* pitch line decoration */
.pitch-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(transparent 0 calc(100% - 1px), var(--line) 100%),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(44,58,79,.35) 78px 79px);
  -webkit-mask-image: radial-gradient(120% 90% at 80% 10%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 80% 10%, #000 30%, transparent 75%);
}

/* --------- the signature: starting eleven --------- */
.formation {
  position: relative;
  aspect-ratio: 300 / 420;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  border-radius: 16px;
  background:
    repeating-linear-gradient(0deg, rgba(22,163,74,.10) 0 28px, rgba(22,163,74,.04) 28px 56px),
    linear-gradient(180deg, #0f2419, #0a1812);
  border: 1px solid rgba(34,197,94,.25);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 60px rgba(0,0,0,.4);
}
.formation__label {
  position: absolute; top: 12px; left: 14px; z-index: 3;
  font-size: .68rem; font-weight: 800; letter-spacing: .14em;
  color: var(--green-bright); text-transform: uppercase;
}
.formation__pitch { position: absolute; inset: 0; width: 100%; height: 100%; }
.formation__pitch rect, .formation__pitch line, .formation__pitch circle {
  fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1.5;
}
.formation__pitch .dot-c { fill: rgba(255,255,255,.16); }

.players { position: absolute; inset: 0; }
.player {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%) scale(0);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--display); font-size: 1.05rem; color: #04130a;
  background: var(--green-bright);
  border: 2px solid #062b14;
  box-shadow: 0 6px 16px -4px rgba(0,0,0,.7), 0 0 18px -2px var(--green-glow);
  animation: pop .5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * .09s + .4s);
}
.player.is-captain { background: #fff; color: #062b14; box-shadow: 0 6px 18px -3px rgba(0,0,0,.8), 0 0 26px var(--green-glow); }
.player::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1.5px solid rgba(34,197,94,.35); opacity: 0;
  animation: ring 2.6s ease-out infinite; animation-delay: 1.4s;
}
.player.is-captain::after { animation: none; opacity: 0; }
.players .player:nth-child(1){--i:0}.players .player:nth-child(2){--i:1}
.players .player:nth-child(3){--i:2}.players .player:nth-child(4){--i:3}
.players .player:nth-child(5){--i:4}.players .player:nth-child(6){--i:5}
.players .player:nth-child(7){--i:6}.players .player:nth-child(8){--i:7}
.players .player:nth-child(9){--i:8}.players .player:nth-child(10){--i:9}
.players .player:nth-child(11){--i:10}

@keyframes pop { 0%{transform:translate(-50%,-50%) scale(0)} 70%{transform:translate(-50%,-50%) scale(1.15)} 100%{transform:translate(-50%,-50%) scale(1)} }
@keyframes ring { 0%{transform:scale(.8);opacity:.7} 100%{transform:scale(1.8);opacity:0} }

/* ----------------------- strip ----------------------- */

.strip {
  padding: 0;
  border-block: 1px solid var(--line-soft);
  background: var(--bg-2);
  overflow: hidden;
}
.strip__track {
  display: flex; align-items: center; gap: 1.5rem;
  white-space: nowrap; padding: 1.1rem 0;
  font-family: var(--display); font-size: 1.05rem; letter-spacing: .05em;
  color: var(--muted);
  width: max-content;
  animation: marquee 28s linear infinite;
}
.strip__track .d { color: var(--green-bright); }
.strip:hover .strip__track { animation-play-state: paused; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ----------------------- features ----------------------- */

.features { max-width: var(--maxw); margin: 0 auto; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 180px at 100% 0%, var(--green-tint), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(34,197,94,.45); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.card:hover::before { opacity: 1; }
.card--wide { grid-column: span 2; grid-row: span 2; }
.card--accent { background: linear-gradient(165deg, rgba(22,163,74,.22), var(--bg-2)); border-color: rgba(34,197,94,.35); }
.card__icon {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border-radius: 12px; background: var(--green-tint); border: 1px solid rgba(34,197,94,.3);
  margin-bottom: 1.2rem; color: var(--green-bright);
}
.card__icon svg { width: 26px; height: 26px; }
.card--wide .card__icon { width: 3.4rem; height: 3.4rem; }
.card--wide .card__icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.6rem; margin-bottom: .7rem; letter-spacing: .02em; }
.card--wide h3 { font-size: 2.4rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card em { color: var(--green-bright); font-style: normal; font-weight: 700; }
.ticks { list-style: none; margin-top: 1.4rem; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--text); font-size: .96rem; font-weight: 500; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green-bright); font-weight: 900;
}

/* ----------------------- steps ----------------------- */

.steps { max-width: var(--maxw); margin: 0 auto; }
.steps__list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step {
  position: relative; padding: 2.4rem 1.8rem 2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.step::after {
  content: ""; position: absolute; left: 1.8rem; right: 1.8rem; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), transparent);
}
.step__no {
  font-family: var(--display); font-size: 3.4rem; color: transparent;
  -webkit-text-stroke: 1.5px rgba(34,197,94,.55); line-height: 1; display: block; margin-bottom: 1rem;
}
.step h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.step p { color: var(--muted); }

/* ----------------------- cta ----------------------- */

.cta { max-width: var(--maxw); margin: 0 auto; }
.cta__card {
  position: relative; overflow: hidden;
  border-radius: 26px;
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  background:
    radial-gradient(700px 400px at 50% -10%, rgba(34,197,94,.30), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid rgba(34,197,94,.35);
}
.cta__content { position: relative; z-index: 2; display: grid; justify-items: center; gap: 1rem; }
.cta__card h2 { font-size: clamp(2.6rem, 7vw, 5rem); }
.cta__content .lede { max-width: none; }
.cta__content .hero__cta { justify-content: center; margin-top: 1rem; }
.pitch-lines--soft { opacity: .25; }

.cta__badges {
  display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.2rem;
}
.store-badge {
  display: inline-flex; border-radius: 11px;
  transition: transform .25s var(--ease), filter .25s var(--ease);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.45));
}
.store-badge:hover { transform: translateY(-3px); filter: drop-shadow(0 14px 26px rgba(0,0,0,.6)); }
.store-badge img { height: 52px; width: auto; display: block; }
/* Google's web badge ships with ~23% transparent vertical padding (29px top/bottom
   of 250px). Scale to 68px so the visible artwork is ~52px — matching the tighter
   App Store badge — and pull in the vertical padding so the two align. */
.store-badge--play img { height: 68px; margin: -8px 0; }

/* Desktop-Alternative: QR-Code mit Link auf /app (per JS eingeblendet). */
.cta__qr {
  display: inline-flex; flex-direction: column; align-items: center; gap: .6rem;
  margin-top: 1.4rem; text-decoration: none; color: inherit;
  transition: transform .25s var(--ease);
}
.cta__qr:hover { transform: translateY(-3px); }
.cta__qr img {
  width: 150px; height: 150px; border-radius: 12px;
  padding: 10px; background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.45);
}
.cta__qr span { font-size: .95rem; font-weight: 600; opacity: .85; }
.cta__qr[hidden] { display: none; }

/* ----------------------- faq ----------------------- */

.faq { max-width: 800px; margin: 0 auto; }
.faq__list { display: grid; gap: .8rem; }
.faq details {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2);
  padding: 0 1.4rem; transition: border-color .25s, background .25s;
}
.faq details[open] { border-color: rgba(34,197,94,.45); background: var(--surface); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem;
  padding: 1.25rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--display); font-size: 1.6rem; color: var(--green-bright);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding: 0 0 1.3rem; max-width: 65ch; }

/* ----------------------- footer ----------------------- */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  display: grid; justify-items: center; gap: 1rem;
  background: var(--bg-2);
}
.footer__brand { display: inline-flex; align-items: center; gap: .6rem; }
.footer__tag { color: var(--muted); }
.footer__links { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: var(--muted); font-weight: 600; font-size: .9rem; transition: color .2s; }
.footer__links a:hover { color: var(--green-bright); }
.footer__copy { color: var(--faint); font-size: .82rem; margin-top: .5rem; }

/* ----------------------- legal pages ----------------------- */
/* Shared layout for footer-linked text pages (Datenschutz, Impressum, AGB).
   Headings drop the Anton display face for readability — legal prose needs
   sentence case, not jersey-number caps. */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 1.5rem 5rem;
}
.legal__head { margin-bottom: 2.6rem; }
.legal__head h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  margin: .8rem 0 .6rem;
}
.legal__updated { color: var(--faint); font-size: .9rem; }

.legal__body h2 {
  font-family: var(--body);
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
  font-size: 1.4rem;
  color: var(--text);
  margin: 2.6rem 0 .8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}
.legal__body h3 {
  font-family: var(--body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  font-size: 1.08rem;
  color: var(--text);
  margin: 1.6rem 0 .5rem;
}
.legal__body p,
.legal__body li { color: var(--muted); font-size: 1rem; }
.legal__body p { margin: .7rem 0; }
.legal__body a { color: var(--green-bright); text-decoration: underline; text-underline-offset: 2px; }
.legal__body a:hover { color: var(--green); }
.legal__body ul { margin: .6rem 0 .6rem 1.3rem; display: grid; gap: .4rem; }
.legal__body strong { color: var(--text); }
.legal__body .lead { color: var(--text); font-size: 1.08rem; }

/* Highlights placeholders the operator must still fill in. */
.legal__todo {
  display: block;
  border: 1px dashed rgba(34,197,94,.5);
  background: var(--green-tint);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  color: var(--text);
  font-size: .95rem;
}

/* ----------------------- reveal anim ----------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{transition-delay:.08s}.reveal[data-delay="2"]{transition-delay:.16s}
.reveal[data-delay="3"]{transition-delay:.24s}.reveal[data-delay="4"]{transition-delay:.32s}

/* ----------------------- responsive ----------------------- */

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .formation { margin: 1rem auto 0; max-width: 320px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; grid-row: auto; }
  .steps__list { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav { justify-content: space-between; }
}
@media (max-width: 560px) {
  section { padding: 4.5rem 1.2rem; }
  .grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .hero__stats { gap: 1.4rem; }
  .hero__stats strong { font-size: 1.6rem; }
  .brand__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .player { transform: translate(-50%, -50%) scale(1); }
}
