/* Advantly – Website. Tokens aus docs/04-ux-design.md §5. Keine externen Ressourcen (DSGVO). */
:root {
  --bg: #0b0c0f;
  --surface: #15171c;
  --surface-2: #1e2128;
  --text: #f5f6f7;
  --text-2: #9aa1ad;
  --brand: #ff6a1a;
  --brand-deep: #ea580c;
  --them: #5b9bff;
  --tennis: #c8e62e;
  --padel: #22c3e6;
  --pickle: #ff5fa2;
  --badminton: #a78bfa;
  --tabletennis: #34d399;
  --hint: #ffb020;
  --radius: 14px;
  --radius-lg: 24px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", ui-sans-serif, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: #ff8a4a; }
:focus-visible { outline: 3px solid var(--hint); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; display: block; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 10; background: rgb(11 12 15 / .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--surface-2); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.logo img { width: 32px; height: 32px; }
.lang { display: flex; gap: 4px; }
.lang a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.lang a[aria-current="true"] { background: var(--surface-2); color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgb(255 106 26 / .22), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--hint); background: rgb(255 176 32 / .1); border: 1px solid rgb(255 176 32 / .35); padding: 4px 12px; border-radius: 999px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hint); }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.03em; margin: 20px 0 16px; }
h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 34em; margin: 0 0 28px; }
.sports { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--surface-2); font-weight: 600; font-size: 14px; }
.chip i { width: 10px; height: 10px; border-radius: 50%; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--brand); color: #0b0c0f; }
.btn-primary:hover { background: #ff8a4a; color: #0b0c0f; }
.btn-ghost { border: 1px solid var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }

/* Geräte-Illustration */
.devices { position: relative; height: 440px; }
.phone {
  position: absolute; right: 8%; top: 0; width: 230px; height: 440px; border-radius: 40px;
  background: #000; border: 8px solid #262a33; box-shadow: 0 30px 80px rgb(0 0 0 / .6);
  display: grid; grid-template-rows: auto 1fr 1fr auto; overflow: hidden;
}
.phone .bar { display: flex; justify-content: space-between; padding: 18px 16px 8px; font-size: 11px; color: var(--text-2); font-weight: 600; }
.phone .bar b { color: var(--tennis); }
.panel { display: flex; flex-direction: column; justify-content: center; padding: 0 18px; }
.panel.us { background: linear-gradient(180deg, rgb(255 106 26 / .22), rgb(255 106 26 / .06)); }
.panel.them { background: linear-gradient(0deg, rgb(91 155 255 / .22), rgb(91 155 255 / .06)); }
.panel small { font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.panel.us small { color: var(--brand); }
.panel.them small { color: var(--them); }
.panel .pts { font: 700 84px/1 var(--font-num); font-variant-numeric: tabular-nums; }
.panel .games { font-size: 12px; color: var(--text-2); }
.phone .foot { text-align: center; padding: 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #0b0c0f; background: var(--hint); }
.watch {
  position: absolute; left: 4%; bottom: 10px; width: 190px; height: 190px; border-radius: 50%;
  background: #000; border: 10px solid #2b2f38; box-shadow: 0 0 0 4px #15171c, 0 24px 60px rgb(0 0 0 / .6);
  display: grid; grid-template-rows: 1fr 1fr; overflow: hidden;
}
.watch div { display: flex; align-items: center; justify-content: center; gap: 10px; font: 700 52px/1 var(--font-num); }
.watch .us { background: rgb(255 106 26 / .2); color: var(--text); }
.watch .them { background: rgb(91 155 255 / .2); }
.watch span { font: 700 11px/1 var(--font); letter-spacing: .08em; }
.watch .us span { color: var(--brand); }
.watch .them span { color: var(--them); }
.sync { position: absolute; left: 33%; top: 46%; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--surface-2); padding: 6px 12px; border-radius: 999px; display: flex; gap: 8px; align-items: center; }
.sync::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }

/* Abschnitte */
section { padding: 56px 0; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 12px; }
.sub { color: var(--text-2); margin: 0 0 32px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--surface-2); border-radius: var(--radius-lg); padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; background: var(--surface-2); }
.icon svg { width: 24px; height: 24px; }

.platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.platform { background: var(--surface); border: 1px solid var(--surface-2); border-radius: var(--radius); padding: 16px; text-align: center; font-weight: 600; font-size: 15px; }
.platform small { display: block; color: var(--text-2); font-weight: 500; font-size: 12px; margin-top: 2px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 20px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.step::before { counter-increment: s; content: counter(s); font: 700 32px/1 var(--font-num); color: var(--brand); }
.step h3 { margin: 6px 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--text-2); font-size: 14px; }

.status { background: linear-gradient(135deg, rgb(255 106 26 / .14), rgb(91 155 255 / .08)); border: 1px solid var(--surface-2); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.status p { margin: 0; color: var(--text-2); max-width: 44em; }

/* Fuß */
footer { border-top: 1px solid var(--surface-2); padding: 32px 0 48px; color: var(--text-2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }

/* Rechtstexte */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 24px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal h3 { font-size: 17px; margin: 20px 0 6px; }
.legal p, .legal li { color: #c9ced6; }
.legal .note { background: var(--surface); border-left: 3px solid var(--hint); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .devices { height: 400px; max-width: 420px; margin-inline: auto; width: 100%; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .platforms { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .phone { width: 200px; height: 390px; right: 0; }
  .panel .pts { font-size: 70px; }
  .watch { width: 160px; height: 160px; left: 0; }
  .watch div { font-size: 44px; }
  .sync { left: 22%; }
}
@media (prefers-reduced-motion: no-preference) {
  .watch, .phone { animation: float 6s ease-in-out infinite; }
  .phone { animation-delay: -3s; }
  @keyframes float { 50% { transform: translateY(-8px); } }
}
