/* RideItAll – Website (rideitall.de). Farben wie die Spiel-Oberfläche (UiStyle.cs): dunkles Waldgrün, Moos als Akzent,
   Abendsonnen-Orange für Handlungen, Höhenlinien als Muster. Keine Webfonts (Systemschriften), keine Inline-Stile
   (Content-Security-Policy style-src 'self'). */

:root {
  --bg: #0e1612;
  --bg-2: #111915;
  --panel: #142019;
  --panel-2: #1a2820;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef0e8;
  --text-2: #c9d1c6;
  --text-dim: #a9b4a6;
  --muted: #7d8982;
  --accent: #9ccb5b;
  --accent-deep: #4c7a38;
  --warm: #ea863d;
  --warm-hover: #f29a55;
  --amber: #e2b24e;
  --lake: #8fb9cc;
  --ink: #18201b;
  --danger: #e57a62;
  --radius: 14px;
  --radius-s: 9px;
  --max: 1160px;
  --font: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Roboto, Arial, sans-serif;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Roboto, Arial,
    sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'SF Mono', Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: #b5dc7f;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
}

p {
  margin: 0 0 1em;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.05em 0.35em;
  word-break: break-word;
}

.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: var(--panel-2);
  padding: 8px 14px;
  border-radius: 8px;
}

/* ---------------------------------------------------------------- Kopf */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 22, 18, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 750 1.2rem/1 var(--font-display);
  letter-spacing: -0.01em;
  margin-right: auto;
}

.logo:hover {
  color: var(--text);
}

/* Wortmarke: „It“ in RideItAll farbig (wie im Spiel) */
.wm-it {
  font-style: normal;
  color: var(--accent);
}

.logo-mark {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-mark .logo-topo {
  stroke: var(--accent);
  stroke-width: 1.4;
  opacity: 0.75;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 550;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav a.btn {
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  width: 42px;
  height: 38px;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle .bars::before {
  top: -6px;
}

.nav-toggle .bars::after {
  top: 6px;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 12px;
  }
  .nav a.btn {
    margin: 8px 0 0;
    text-align: center;
  }
  .top-inner {
    padding: 10px 16px;
  }
}

/* ---------------------------------------------------------------- Knöpfe */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font: 650 1rem/1.2 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn.primary,
.nav a.btn.primary {
  background: var(--warm);
  color: #2a1608;
}

.btn.primary:hover,
.nav a.btn.primary:hover {
  background: var(--warm-hover);
  color: #2a1608;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(156, 203, 91, 0.6);
  color: var(--text);
}

.btn.big {
  padding: 14px 24px;
  font-size: 1.06rem;
}

.btn[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------------------------------------------------------------- Muster */

.topo {
  position: relative;
  isolation: isolate;
}

.topo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('topo.svg') center / cover no-repeat;
  opacity: 0.09;
  pointer-events: none;
}

/* ---------------------------------------------------------------- Einstieg */

.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

@media (max-width: 760px) {
  .hero-img img {
    object-position: 62% 50%;
  }
  .hero-credit {
    left: 16px;
    right: 16px;
    text-align: right;
  }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 22, 18, 0.1) 0%, rgba(14, 22, 18, 0.25) 45%, rgba(14, 22, 18, 0.94) 100%),
    linear-gradient(90deg, rgba(14, 22, 18, 0.75) 0%, rgba(14, 22, 18, 0) 65%);
}

.hero-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 120px 20px 56px;
  position: relative;
}

@media (max-width: 760px) {
  .hero-inner {
    padding-bottom: 104px; /* Platz für die mehrzeilige Quellenangabe */
  }
}

.hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('topo.svg') left bottom / 1200px auto no-repeat;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}

.eyebrow {
  color: var(--accent);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 12px;
}

.hero h1 {
  max-width: 15em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero h1 .warm {
  color: var(--amber);
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--text-2);
  max-width: 38em;
}

.hero .lead {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  color: #dfe5db;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chips li {
  font-size: 0.88rem;
  color: var(--text-2);
  background: rgba(17, 25, 21, 0.72);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 12px;
}

.hero-credit {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 0.72rem;
  color: rgba(238, 240, 232, 0.6);
  margin: 0;
}

/* ---------------------------------------------------------------- Abschnitte */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px 20px;
}

.section-head {
  max-width: 46em;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.08rem;
}

.band {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('topo.svg') right top / 700px auto no-repeat;
  opacity: 0.06;
}

.card p {
  color: var(--text-dim);
  margin-bottom: 0.4em;
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(156, 203, 91, 0.12);
  border: 1px solid rgba(156, 203, 91, 0.3);
  margin-bottom: 14px;
}

.card .icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card.warm .icon {
  background: rgba(234, 134, 61, 0.12);
  border-color: rgba(234, 134, 61, 0.35);
}

.card.warm .icon svg {
  stroke: var(--warm);
}

/* Bild + Text nebeneinander */
.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
}

.split.reverse > figure {
  order: 2;
}

.split.top {
  align-items: start;
}

.table-wrap + .note {
  margin-top: 12px;
}

.split ul {
  padding-left: 1.2em;
  color: var(--text-2);
}

.split li + li {
  margin-top: 6px;
}

@media (max-width: 880px) {
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .split.reverse > figure {
    order: 0;
  }
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.shot figcaption {
  padding: 10px 14px 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.shot figcaption strong {
  color: var(--text-dim);
  font-weight: 600;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Sommer/Winter-Vergleich: zwei Bilder derselben Stelle nebeneinander (Handy: untereinander), ohne Skript */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 760px) {
  .compare {
    grid-template-columns: 1fr;
  }
}

.compare .shot {
  position: relative;
}

.compare .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.85rem;
  background: rgba(14, 22, 18, 0.78);
  border: 1px solid var(--line-2);
  color: var(--text);
}

.compare .tag.winter {
  color: var(--lake);
}

.compare .tag.summer {
  color: var(--amber);
}

/* Trick und Abendbild: breites Bild (Trick mit Text darunter, Abendbild unter den Karten) */
.trick-shot {
  margin: 0 0 28px;
}

.wide-shot {
  margin: 28px 0 0;
}

.trick-shot img,
.wide-shot img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

@media (max-width: 760px) {
  .trick-shot img,
  .wide-shot img {
    aspect-ratio: 4 / 3;
  }
}

.trick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.trick-list li {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(234, 134, 61, 0.12);
  border: 1px solid rgba(234, 134, 61, 0.35);
  color: #f3c49c;
  font-size: 0.9rem;
}

/* Schritte (Gemeinsam fahren) */
.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 48px;
  color: var(--text-2);
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ink);
  background: var(--accent);
}

.callout {
  border: 1px solid rgba(156, 203, 91, 0.35);
  background: rgba(156, 203, 91, 0.07);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--text-2);
}

.callout.warn {
  border-color: rgba(226, 178, 78, 0.45);
  background: rgba(226, 178, 78, 0.08);
}

.callout > :last-child {
  margin-bottom: 0;
}

.end-cta {
  text-align: center;
  padding: 72px 20px 84px;
}

.end-cta .cta {
  justify-content: center;
}

.end-cta .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------------- Download */

.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 20px 12px;
}

.page-head p {
  color: var(--text-dim);
  max-width: 44em;
  font-size: 1.08rem;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 820px) {
  .dl-grid {
    grid-template-columns: 1fr;
  }
}

.dl {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl h2 {
  font-size: 1.5rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dl h2 svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dl-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 0;
  font-size: 0.95rem;
}

.dl-meta dt {
  color: var(--muted);
}

.dl-meta dd {
  margin: 0;
  color: var(--text-2);
  min-width: 0;
}

.dl-meta .hash {
  font-family: var(--mono);
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--text-dim);
}

.dl-status {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin: 0;
}

.dl-status.err {
  color: var(--amber);
}

.dl-notes {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.dl-notes h3 {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 6px;
}

.dl-notes p {
  white-space: pre-line;
  margin: 0;
}

.dl .btn {
  align-self: flex-start;
}

.dl.soon {
  border-style: dashed;
  background: rgba(20, 32, 25, 0.5);
}

.dl.soon h2 svg {
  stroke: var(--muted);
}

.dl.soon .dl-status {
  font-size: 1.05rem;
  color: var(--text-2);
}

.reqs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.reqs th,
.reqs td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.reqs thead th {
  color: var(--text);
  background: var(--panel);
}

.reqs tbody th {
  color: var(--text-dim);
  font-weight: 600;
  width: 22%;
}

.reqs td {
  color: var(--text-2);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-wrap .reqs tr:last-child > * {
  border-bottom: 0;
}

/* ---------------------------------------------------------------- Textseiten (Recht, Hilfe, Quellen) */

.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 20px 72px;
  color: var(--text-2);
}

.prose h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text);
}

.prose h2 {
  font-size: 1.32rem;
  color: var(--text);
  margin: 2.2em 0 0.6em;
  padding-top: 0.2em;
}

.prose h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 1.6em 0 0.4em;
}

.prose p,
.prose li {
  line-height: 1.7;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 5px;
}

.prose .stand {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: -0.4em;
}

.toc {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 18px 0 8px;
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 2;
  column-gap: 32px;
}

@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}

.draft {
  border: 2px dashed var(--amber);
  background: rgba(226, 178, 78, 0.08);
  color: var(--text);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 18px 0 24px;
}

.draft strong {
  color: var(--amber);
}

.credits li {
  word-break: break-word;
}

.credits .license {
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
}

details.faq {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-s);
  margin: 10px 0;
}

details.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text);
  list-style-position: outside;
}

details.faq[open] summary {
  border-bottom: 1px solid var(--line);
}

details.faq > :not(summary) {
  margin-left: 16px;
  margin-right: 16px;
}

details.faq > :not(summary):first-of-type {
  margin-top: 12px;
}

details.faq > :last-child {
  margin-bottom: 14px;
}

kbd {
  font-family: var(--mono);
  font-size: 0.85em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 0.4em;
  background: rgba(255, 255, 255, 0.05);
}

/* ---------------------------------------------------------------- Fuß */

.foot {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 40px;
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.foot-brand strong {
  color: var(--text);
  font: 700 1.1rem/1.2 var(--font-display);
}

.foot-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px 28px;
  align-content: start;
}

.foot-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.94rem;
}

.foot-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.foot-note {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .foot-inner {
    grid-template-columns: 1fr;
    padding: 28px 16px 32px;
  }
  .section {
    padding: 60px 16px;
  }
  .hero-inner,
  .page-head,
  .prose {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ---------------------------------------------------------------- 404 */

.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}
