/* RL Tracker – Webseite. Gleiche Farben wie die App: Arena bei Nacht, Teamfarben, Boost-Gelb. */
:root {
  --rail: #070b16;
  --bg: #0c1322;
  --panel: #131c31;
  --raised: #1a2540;
  --line: #26344f;
  --text: #eaf0ff;
  --text-2: #a3b2d1;
  --muted: #7d8db0;
  --blue: #2f8cff;
  --blue-dark: #123a75;
  --orange: #ff7a1a;
  --orange-dark: #6e3205;
  --boost: #ffc93c;
  --display: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: #6aaeff; }
:focus-visible { outline: 2px solid var(--boost); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------ Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--rail) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #141d33;
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font: italic 700 22px/1 var(--display); }
.brand svg { width: 30px; height: 30px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--text-2); text-decoration: none; font: 500 16px var(--display); }
.top nav a:hover { color: var(--text); }

/* ------------------------------------------------------------ Knöpfe */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 4px; text-decoration: none;
  font: 600 17px/1.2 var(--display); color: var(--text);
  background: var(--panel); border: 1px solid var(--line);
}
.btn:hover { background: var(--raised); color: var(--text); }
.btn-primary {
  color: #fff; border: none;
  background: linear-gradient(90deg, #2f8cff, #1f6be0);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  padding-right: 34px;
}
.btn-primary:hover { background: linear-gradient(90deg, #4a9cff, #2f7cf0); color: #fff; }
.btn-big { font-size: 21px; padding: 17px 44px 17px 28px; }
.btn small { font: 400 14px var(--body); opacity: .85; }
.top .btn { padding: 8px 26px 8px 16px; font-size: 15px; }

/* ------------------------------------------------------------ Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero h1 {
  font: italic 700 clamp(40px, 6.2vw, 72px)/1.02 var(--display);
  letter-spacing: -0.01em;
  margin: 28px 0 18px;
  max-width: 16ch;
}
.hero p.lead { font-size: 20px; color: var(--text-2); max-width: 38em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta .meta { color: var(--muted); font-size: 15px; line-height: 1.45; }
.cta .meta strong { color: var(--text-2); font-weight: 600; }

/* Anzeigetafel wie im Spiel – das eine auffällige Element der Seite */
.bug { display: flex; align-items: stretch; height: 74px; width: min(100%, 640px); filter: drop-shadow(0 10px 30px rgba(0,0,0,.45)); }
.bug .name, .bug .score, .bug .clock { display: flex; align-items: center; justify-content: center; }
.bug .name { flex: 1; margin-top: 12px; font: 700 20px var(--display); padding: 0 26px; }
.bug .name.blue { background: var(--blue-dark); clip-path: polygon(0 0, calc(100% - 3px) 0, calc(100% + 16px) 100%, 18px 100%); justify-content: flex-end; }
.bug .name.orange { background: var(--orange-dark); clip-path: polygon(3px 0, 100% 0, calc(100% - 18px) 100%, -16px 100%); justify-content: flex-start; }
.bug .score { width: 96px; font: italic 700 40px var(--display); color: #fff; position: relative; overflow: hidden; }
.bug .score.blue { background: linear-gradient(180deg, #4a9dff, #1d5fb8); clip-path: polygon(0 0, 100% 0, calc(100% + 20px) 100%, 20px 100%); margin-right: -20px; }
.bug .score.orange { background: linear-gradient(180deg, #ff8f3d, #b04f0b); clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, -20px 100%); margin-left: -20px; }
.bug .clock { width: 150px; background: #060a14; border-top: 1px solid #2a3b60;
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 20px 100%); font: 700 30px var(--display); z-index: 1; }
.bug .score span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .bug .score.goal span { animation: tick .55s cubic-bezier(.2,.9,.3,1.2) both; }
  .bug .score.goal::after {
    content: ""; position: absolute; inset: 0; background: #fff; opacity: 0;
    animation: flash .9s ease-out both;
  }
}
@keyframes tick { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes flash { 0% { opacity: .75; } 100% { opacity: 0; } }

.shot {
  margin-top: 46px; border: 1px solid var(--line); background: var(--panel);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

/* ------------------------------------------------------------ Abschnitte */
section { padding: 72px 0; }
section + section { border-top: 1px solid #141d33; }
h2 { font: italic 700 clamp(30px, 4vw, 44px)/1.1 var(--display); margin: 0 0 14px; }
h3 { font: 700 24px/1.2 var(--display); margin: 0 0 10px; }
.intro { color: var(--text-2); max-width: 40em; margin: 0 0 40px; }

.feature { display: grid; grid-template-columns: 1fr 1.35fr; gap: 44px; align-items: center; margin-bottom: 64px; }
.feature:nth-child(even) { grid-template-columns: 1.35fr 1fr; }
.feature:nth-child(even) .text { order: 2; }
.feature .text p { color: var(--text-2); margin: 0 0 12px; }
.feature ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.feature li { margin: 4px 0; }
.feature figure { margin: 0; border: 1px solid var(--line); background: var(--bg);
  border-left: 3px solid var(--edge, var(--blue)); }
.feature.or figure { --edge: var(--orange); }
.feature.bo figure { --edge: var(--boost); }

/* Schritte (echte Reihenfolge) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); padding: 22px 22px 20px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.steps li::before { content: counter(s); display: block; font: italic 700 44px/1 var(--display); color: var(--blue); margin-bottom: 10px; }
.steps p { color: var(--text-2); margin: 6px 0 0; font-size: 16px; }

/* Updates */
.release { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--boost); padding: 22px 26px; }
.release header { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-bottom: 8px; }
.release header h3 { margin: 0; }
.release header span { color: var(--muted); font-size: 15px; }
.release .notes { color: var(--text-2); }
.release .notes ul { padding-left: 20px; margin: 6px 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; padding: 16px 0; font: 600 19px var(--display); display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p, details ol { color: var(--text-2); margin: 0 0 16px; max-width: 46em; }
code { font-size: .92em; background: #0a1020; border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; }

/* ------------------------------------------------------------ Fußzeile */
footer { background: var(--rail); border-top: 1px solid #141d33; padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }
.legal { max-width: 52em; }

/* Rechtstexte */
.doc { max-width: 760px; padding: 56px 24px 80px; margin: 0 auto; }
.doc h1 { font: italic 700 44px/1.1 var(--display); margin: 0 0 24px; }
.doc h2 { font-size: 26px; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.todo { background: rgba(255, 201, 60, .12); border: 1px dashed var(--boost); color: var(--boost); padding: 1px 6px; }

/* ------------------------------------------------------------ Schmal */
@media (max-width: 860px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 20px; }
  .feature:nth-child(even) .text { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .bug { height: 58px; }
  .bug .name { font-size: 15px; padding: 0 14px; }
  .bug .score { width: 70px; font-size: 30px; }
  .bug .clock { width: 104px; font-size: 22px; }
}
@media (max-width: 480px) {
  .bug .name { display: none; }
  .bug { width: auto; }
  .btn-big { width: 100%; justify-content: center; text-align: center; padding-right: 34px; }
}
