/* Rheinvorn Design-System – Tokens
   Eine Quelle für alle Seiten unter rheinvorn.de. Dunkel ist der Markenstandard,
   hell folgt der Systemeinstellung (prefers-color-scheme). */

@font-face {
  font-family: "Ubuntu Sans";
  src: url("/assets/fonts/ubuntu-sans-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark light;

  /* Marke: Flächen in vier Stufen, von tief nach hoch */
  --rv-bg-deep: #0a1019;
  --rv-bg: #0f1722;
  --rv-surface: #162130;
  --rv-surface-hi: #1a2738;
  --rv-surface-2: #1b283a;
  --rv-primary: #38bdf8;
  --rv-on-primary: #0f1722;
  --rv-text: #e2e8f0;
  --rv-muted: #94a3b8;
  --rv-border: #334155;
  --rv-line: #243244;
  --rv-logo-accent: #38bdf8;
  --rv-on-systems: #0f1722;

  /* Geschäftsbereiche */
  --rv-technologies: #38bdf8;
  --rv-software: #60a5fa;
  --rv-games: #a78bfa;
  --rv-security: #2dd4bf;
  --rv-systems: #fbbf24;

  /* Akzent der aktuellen Seite bzw. Komponente */
  --rv-accent: var(--rv-technologies);

  /* Schrift */
  --rv-font: "Ubuntu Sans", Ubuntu, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --rv-size-00: 0.8125rem;
  --rv-size-0: 0.875rem;
  --rv-size-1: 1rem;
  --rv-size-2: 1.125rem;
  --rv-size-3: 1.375rem;
  --rv-size-4: clamp(1.6rem, 3vw, 2.25rem);
  --rv-size-5: clamp(2.25rem, 5.6vw, 4rem);

  /* Raum */
  --rv-space-1: 0.5rem;
  --rv-space-2: 1rem;
  --rv-space-3: 1.5rem;
  --rv-space-4: 2.5rem;
  --rv-space-5: clamp(3.5rem, 8vw, 6rem);
  --rv-width: 72rem;
  --rv-gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Form */
  --rv-radius: 14px;
  --rv-radius-small: 8px;
  --rv-ease: 160ms cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --rv-bg-deep: #e9eef4;
    --rv-bg: #f6f8fb;
    --rv-surface: #ffffff;
    --rv-surface-hi: #ffffff;
    --rv-surface-2: #eef2f7;
    --rv-primary: #0369a1;
    --rv-on-primary: #ffffff;
    --rv-text: #0f1722;
    --rv-muted: #475569;
    --rv-border: #cbd5e1;
    --rv-line: #dde4ec;
    --rv-logo-accent: #0ea5e9;
    --rv-on-systems: #ffffff;

    --rv-technologies: #0369a1;
    --rv-software: #1d4ed8;
    --rv-games: #6d28d9;
    --rv-security: #0f766e;
    --rv-systems: #b45309;
  }
}

[data-bereich="technologies"] { --rv-accent: var(--rv-technologies); }
[data-bereich="software"] { --rv-accent: var(--rv-software); }
[data-bereich="games"] { --rv-accent: var(--rv-games); }
[data-bereich="security"] { --rv-accent: var(--rv-security); }
[data-bereich="systems"] { --rv-accent: var(--rv-systems); }

/* Immer dunkel, unabhängig vom Farbschema: die Games-Website und jeder cineastische Einstieg. */
[data-thema="dunkel"], .rv-hero-cinema {
  color-scheme: dark;
  --rv-bg-deep: #070b12;
  --rv-bg: #0b111a;
  --rv-surface: #121b28;
  --rv-surface-hi: #172231;
  --rv-surface-2: #172231;
  --rv-primary: #38bdf8;
  --rv-on-primary: #0f1722;
  --rv-text: #e2e8f0;
  --rv-muted: #94a3b8;
  --rv-border: #2c3a4e;
  --rv-line: #1e2a3b;
  --rv-logo-accent: #38bdf8;
  --rv-on-systems: #0f1722;
  --rv-technologies: #38bdf8;
  --rv-software: #60a5fa;
  --rv-games: #a78bfa;
  --rv-security: #2dd4bf;
  --rv-systems: #fbbf24;
}

/* Abstufungen des Akzents. Müssen dort berechnet werden, wo der Akzent gesetzt wird. */
.rv-hero-cinema { --rv-accent: var(--rv-games); }

:root, [data-bereich], [data-thema], .rv-hero-cinema {
  --rv-accent-soft: color-mix(in srgb, var(--rv-accent) 9%, transparent);
  --rv-accent-tint: color-mix(in srgb, var(--rv-accent) 16%, var(--rv-surface));
  --rv-accent-line: color-mix(in srgb, var(--rv-accent) 42%, var(--rv-line));
  --rv-grid: color-mix(in srgb, var(--rv-border) 26%, transparent);
  --rv-sheen: color-mix(in srgb, var(--rv-text) 5%, transparent);
}

/* Rheinvorn Design-System – Grundlagen */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--rv-bg);
  color: var(--rv-text);
  font-family: var(--rv-font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Hintergrund: feines Raster und ein ruhiger Schein in der Farbe des Bereichs,
   beides läuft nach unten aus. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(64rem 30rem at 82% -8rem, var(--rv-accent-soft), transparent 72%),
    linear-gradient(var(--rv-grid) 1px, transparent 1px) 0 0 / 100% 4.5rem,
    linear-gradient(90deg, var(--rv-grid) 1px, transparent 1px) 50% 0 / 4.5rem 100%;
  -webkit-mask-image: linear-gradient(180deg, black 0, black 18rem, transparent 52rem);
  mask-image: linear-gradient(180deg, black 0, black 18rem, transparent 52rem);
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--rv-size-5); font-weight: 500; letter-spacing: -0.025em; }
h2 { font-size: var(--rv-size-4); }
h3 { font-size: var(--rv-size-3); }

p, ul, ol, dl, dd, dt, address, figure, blockquote { margin: 0; }
address { font-style: normal; }
img, svg { max-width: 100%; }

a {
  color: var(--rv-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--rv-ease);
}

a:hover { color: var(--rv-text); }

:focus-visible {
  outline: 2px solid var(--rv-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--rv-primary); color: var(--rv-on-primary); }

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

.rv-skip {
  position: absolute;
  left: -100rem;
  top: 0.5rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--rv-primary);
  color: var(--rv-on-primary);
  font-weight: 600;
  border-radius: var(--rv-radius-small);
  text-decoration: none;
}

.rv-skip:focus { left: 0.5rem; color: var(--rv-on-primary); }

.rv-muted, .rv-meta { color: var(--rv-muted); }
.rv-meta { font-size: var(--rv-size-0); }

/* Abschnitt: Haarlinie über die volle Breite, davor ein kurzes Stück in der Bereichsfarbe. */
.rv-section { padding-top: var(--rv-space-5); }

.rv-section-head {
  position: relative;
  padding-top: var(--rv-space-3);
  border-top: 1px solid var(--rv-line);
}

.rv-section-head::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3rem;
  height: 1px;
  background: var(--rv-accent);
}

.rv-section-head h2 { margin-bottom: var(--rv-space-1); }

.rv-lead {
  max-width: 40em;
  font-size: var(--rv-size-2);
  color: var(--rv-muted);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body { background: #fff; color: #000; }
  body::before, .rv-lines, .rv-header nav, .rv-skip, .rv-lang, .rv-subnav { display: none; }
}

/* Rheinvorn Design-System – Komponenten
   Jede Komponente beginnt mit rv- und nutzt nur Tokens. */

/* --- Logo und Linienfeld -------------------------------------------------- */

.rv-logo { display: block; color: var(--rv-text); }
.rv-logo .rv-logo-accent { fill: var(--rv-logo-accent); }
.rv-logo .rv-logo-wave { stroke: var(--rv-logo-accent); }

/* Feine Linien, abgeleitet aus der Welle des Logos. Liegen hinter dem Inhalt. */
.rv-lines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(7rem, 16vw, 12rem);
  color: var(--rv-accent);
  opacity: 0.3;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 30%, black 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 30%, black 70%, transparent);
}

/* --- Kopfzeile ----------------------------------------------------------- */

.rv-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--rv-bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rv-line);
}

.rv-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(28rem, 60%);
  height: 1px;
  background: linear-gradient(90deg, var(--rv-accent), transparent);
}

.rv-header .rv-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.rv-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--rv-text);
  text-decoration: none;
}

.rv-brand .rv-logo { width: 2.1rem; height: auto; }

.rv-wordmark, .rv-site-label {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.rv-site-label {
  padding-left: 0.7rem;
  border-left: 1px solid var(--rv-border);
  color: var(--rv-accent);
}

.rv-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0;
  list-style: none;
}

.rv-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--rv-muted);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--rv-ease), border-color var(--rv-ease);
}

.rv-nav a:hover { color: var(--rv-text); }
.rv-nav a[aria-current="page"] { color: var(--rv-text); border-bottom-color: var(--rv-accent); }

.rv-lang {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rv-border);
  border-radius: 999px;
  color: var(--rv-text);
  font-size: var(--rv-size-0);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--rv-ease);
}

.rv-lang:hover { border-color: var(--rv-primary); }

/* Hinweis in der Vorschau: Seite zeigt Musterdaten. */
.rv-sample {
  padding: 0.5rem var(--rv-gutter);
  background: var(--rv-systems);
  color: var(--rv-on-systems);
  font-size: var(--rv-size-0);
  font-weight: 600;
  text-align: center;
}

/* --- Einstieg ------------------------------------------------------------ */

.rv-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3rem, 9vw, 6.5rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

.rv-hero > .rv-wrap { position: relative; }

.rv-hero h1 { max-width: 16em; }

.rv-hero .rv-lead { margin-top: var(--rv-space-3); font-size: var(--rv-size-3); line-height: 1.45; }

.rv-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--rv-space-4);
  align-items: end;
}

@media (max-width: 62rem) {
  .rv-hero-grid { grid-template-columns: minmax(0, 1fr); }
}

.rv-hero-mark {
  width: clamp(5rem, 14vw, 8.5rem);
  height: auto;
  margin-bottom: var(--rv-space-4);
}

.rv-hero-mark .rv-logo-wave {
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  animation: rv-wave 900ms 200ms cubic-bezier(0.2, 0, 0, 1) forwards;
}

@keyframes rv-wave { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .rv-hero-mark .rv-logo-wave { stroke-dashoffset: 0; }
}

.rv-hero-area { border-bottom: 1px solid var(--rv-line); }

.rv-hero-area h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: var(--rv-space-3);
  background: var(--rv-accent);
}

.rv-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: var(--rv-space-3);
}

/* Games: breit, ruhig, immer dunkel, mit Filmformat-Balken (Farben siehe Tokens). */
.rv-hero-cinema {
  color: var(--rv-text);
  padding-top: clamp(5rem, 15vw, 11rem);
  padding-bottom: clamp(5rem, 15vw, 11rem);
  text-align: center;
  background:
    radial-gradient(56rem 20rem at 50% 112%, color-mix(in srgb, var(--rv-accent) 26%, transparent), transparent 70%),
    radial-gradient(40rem 16rem at 50% -20%, color-mix(in srgb, var(--rv-accent) 8%, transparent), transparent 70%),
    linear-gradient(180deg, var(--rv-bg-deep), var(--rv-bg) 45%, var(--rv-bg-deep));
  border-top: 1.25rem solid var(--rv-bg-deep);
  border-bottom: 1.25rem solid var(--rv-bg-deep);
}

.rv-hero-cinema h1 { max-width: 18em; margin-left: auto; margin-right: auto; font-weight: 300; letter-spacing: -0.01em; }
.rv-hero-cinema h1::after { margin-left: auto; margin-right: auto; }
.rv-hero-cinema .rv-lead { margin-left: auto; margin-right: auto; }
.rv-hero-cinema .rv-actions, .rv-hero-cinema .rv-hero-meta { justify-content: center; }
.rv-hero-cinema .rv-lines { height: clamp(9rem, 22vw, 16rem); opacity: 0.38; }

/* Einstieg mit Titelbild: das Bild liegt unter einem dunklen Schleier, damit der Text lesbar bleibt. */
.rv-hero-keyart {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--rv-bg-deep) 66%, transparent), color-mix(in srgb, var(--rv-bg-deep) 50%, transparent) 55%, var(--rv-bg-deep)),
    url("/assets/img/games-keyart.svg") center / cover no-repeat,
    var(--rv-bg-deep);
}

.rv-hero-keyart .rv-lines { display: none; }

.rv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: var(--rv-space-4);
}

/* --- Knopf --------------------------------------------------------------- */

.rv-button {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--rv-primary);
  border-radius: var(--rv-radius-small);
  background: var(--rv-primary);
  color: var(--rv-on-primary);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--rv-ease), background-color var(--rv-ease), border-color var(--rv-ease), color var(--rv-ease);
}

.rv-button:hover { color: var(--rv-on-primary); transform: translateY(-1px); }
.rv-button:active { transform: translateY(0); }

.rv-button-quiet {
  background: color-mix(in srgb, var(--rv-surface) 60%, transparent);
  border-color: var(--rv-border);
  color: var(--rv-text);
}

.rv-button-quiet:hover { color: var(--rv-text); border-color: var(--rv-primary); }

/* --- Bento-Raster -------------------------------------------------------- */

.rv-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-top: var(--rv-space-4);
}

.rv-span-3 { grid-column: span 3; }
.rv-span-4 { grid-column: span 4; }
.rv-span-5 { grid-column: span 5; }
.rv-span-6 { grid-column: span 6; }
.rv-span-7 { grid-column: span 7; }
.rv-span-8 { grid-column: span 8; }
.rv-span-12 { grid-column: span 12; }

@media (max-width: 62rem) {
  .rv-span-3, .rv-span-4 { grid-column: span 6; }
  .rv-span-5, .rv-span-7, .rv-span-8 { grid-column: span 12; }
}

@media (max-width: 40rem) {
  .rv-bento > * { grid-column: span 12; }
}

/* --- Karte --------------------------------------------------------------- */

.rv-card, .rv-panel, .rv-stat, .rv-game {
  position: relative;
  background: linear-gradient(180deg, var(--rv-surface-hi), var(--rv-surface));
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius);
  box-shadow: inset 0 1px 0 var(--rv-sheen);
  overflow: hidden;
}

.rv-card {
  --rv-card-pad: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--rv-card-pad);
}

/* Bild am Kopf einer Karte, randlos */
.rv-card-media {
  display: block;
  width: calc(100% + 2 * var(--rv-card-pad));
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  margin: calc(-1 * var(--rv-card-pad)) calc(-1 * var(--rv-card-pad)) 0.5rem;
  border-bottom: 1px solid var(--rv-line);
}

/* Bild über die Breite eines Abschnitts */
.rv-figure { margin-top: var(--rv-space-4); }

.rv-figure-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius);
}

/* Mehrere Felder mit Angaben nebeneinander */
.rv-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin-top: var(--rv-space-4);
}

/* Karten eines Bereichs: leichter Schein in dessen Farbe und das Dreieck aus dem Logo. */
.rv-card[data-bereich] {
  background:
    radial-gradient(20rem 11rem at 100% 0, var(--rv-accent-soft), transparent 70%),
    linear-gradient(180deg, var(--rv-surface-hi), var(--rv-surface));
}

.rv-card[data-bereich]::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--rv-accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.rv-card h3 { font-size: var(--rv-size-3); }
.rv-card p { color: var(--rv-muted); }
.rv-card .rv-card-foot, .rv-game .rv-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.rv-card-name { color: var(--rv-text); font-weight: 400; }
.rv-card-name strong { display: block; color: var(--rv-accent); font-weight: 700; letter-spacing: 0.02em; }

a.rv-card, a.rv-game {
  color: inherit;
  text-decoration: none;
  transition: border-color var(--rv-ease), transform var(--rv-ease);
}

a.rv-card:hover, a.rv-game:hover { border-color: var(--rv-accent-line); transform: translateY(-2px); }

/* Kachel-in-Karte (gemeinsame Dienste, Stand) */
.rv-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.rv-section > .rv-wrap > .rv-tiles {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-top: var(--rv-space-4);
}

.rv-tile {
  padding: 0.9rem 1rem;
  background: var(--rv-bg);
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius-small);
}

.rv-tile strong { display: block; font-weight: 600; }

@media (max-width: 30rem) {
  .rv-tiles { grid-template-columns: minmax(0, 1fr); }
}

/* --- Status und Marke ---------------------------------------------------- */

.rv-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--rv-muted);
  font-size: var(--rv-size-0);
}

.rv-status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--rv-muted);
}

.rv-status-live::before { background: var(--rv-security); border-color: var(--rv-security); }

.rv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--rv-accent-line);
  border-radius: 999px;
  background: var(--rv-accent-soft);
  color: var(--rv-text);
  font-size: var(--rv-size-00);
  font-weight: 600;
  white-space: nowrap;
}

.rv-badge::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--rv-accent);
}

/* --- Feld mit Angaben (Schlüssel und Wert) -------------------------------- */

.rv-panel { padding: clamp(1.1rem, 2.2vw, 1.5rem); }

.rv-panel h2 {
  margin-bottom: 0.5rem;
  color: var(--rv-muted);
  font-size: var(--rv-size-0);
  font-weight: 600;
  letter-spacing: 0;
}

.rv-kv > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 0.25rem 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rv-line);
}

.rv-kv dt { color: var(--rv-muted); font-size: var(--rv-size-0); }
.rv-kv dd { font-size: var(--rv-size-0); font-weight: 500; overflow-wrap: anywhere; }

/* --- Kennzahlen (nur belegte Zahlen, mit Quelle und Stand) ---------------- */

.rv-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: var(--rv-space-4);
}

.rv-stat { padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.rv-stat dt { color: var(--rv-muted); }
.rv-stat dd strong {
  display: block;
  margin: 0.2rem 0 0.4rem;
  font-size: var(--rv-size-5);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}
.rv-stat dd span { color: var(--rv-muted); font-size: var(--rv-size-0); }

/* --- Schritte (echte Reihenfolge) ---------------------------------------- */

.rv-steps {
  counter-reset: rv-step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem 1rem;
  margin-top: var(--rv-space-4);
  padding: 0;
  list-style: none;
}

.rv-steps li {
  counter-increment: rv-step;
  position: relative;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rv-line);
}

.rv-steps li::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.25rem;
  height: 1px;
  background: var(--rv-accent);
}

.rv-steps li::before {
  content: counter(rv-step);
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--rv-accent-line);
  border-radius: 50%;
  color: var(--rv-accent);
  font-size: var(--rv-size-0);
  font-weight: 600;
}

.rv-steps h3 { font-size: var(--rv-size-2); }
.rv-steps p { margin-top: 0.4rem; color: var(--rv-muted); }

/* --- Aufbau des Unternehmens --------------------------------------------- */

.rv-org {
  display: grid;
  justify-items: center;
  margin-top: var(--rv-space-4);
}

.rv-org-top, .rv-org-row li {
  padding: 0.75rem 1.25rem;
  background: var(--rv-surface);
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius-small);
  text-align: center;
}

.rv-org-top { position: relative; border-color: var(--rv-accent-line); }
.rv-org strong { display: block; color: var(--rv-accent); letter-spacing: 0.02em; }

.rv-org-top::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 1.5rem;
  background: var(--rv-border);
}

.rv-org-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.5rem 0 0;
  list-style: none;
}

.rv-org-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc((100% - 2rem) / 6);
  right: calc((100% - 2rem) / 6);
  height: 1px;
  background: var(--rv-border);
}

.rv-org-row li { position: relative; }

.rv-org-row li::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 1.5rem;
  background: var(--rv-border);
}

.rv-org-base {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  border: 1px dashed var(--rv-border);
  border-radius: var(--rv-radius-small);
  color: var(--rv-muted);
  text-align: center;
}

.rv-org-base strong { color: var(--rv-text); }

@media (max-width: 40rem) {
  .rv-org-row { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .rv-org-row::before, .rv-org-row li::before { display: none; }
}

/* --- Leerzustand --------------------------------------------------------- */

.rv-empty {
  margin-top: var(--rv-space-4);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px dashed var(--rv-border);
  border-radius: var(--rv-radius);
  background: color-mix(in srgb, var(--rv-surface) 45%, transparent);
  color: var(--rv-muted);
  max-width: 46rem;
}

.rv-empty strong { display: block; color: var(--rv-text); font-size: var(--rv-size-2); }

/* --- Fließtext (Rechtstexte) --------------------------------------------- */

.rv-prose { padding-top: clamp(2.5rem, 7vw, 4.5rem); }
.rv-prose .rv-wrap > * { max-width: 44rem; }
.rv-prose h1 { margin-bottom: var(--rv-space-3); hyphens: auto; }
.rv-prose h2 { font-size: var(--rv-size-3); margin-top: var(--rv-space-4); margin-bottom: 0.5rem; }
.rv-prose p + p, .rv-prose p + ul, .rv-prose ul + p, .rv-prose address + p, .rv-prose p + address { margin-top: 0.8rem; }
.rv-prose ul { padding-left: 1.25rem; }
.rv-prose li + li { margin-top: 0.25rem; }
.rv-prose .rv-updated { margin-top: var(--rv-space-4); color: var(--rv-muted); font-size: var(--rv-size-0); }

/* Noch nicht gelieferte Angaben */
.rv-open {
  padding: 0.05em 0.4em;
  border-radius: 4px;
  background: var(--rv-systems);
  color: var(--rv-on-systems);
  font-weight: 600;
}

/* --- Fuß ----------------------------------------------------------------- */

.rv-footer {
  margin-top: var(--rv-space-5);
  border-top: 1px solid var(--rv-line);
  background: linear-gradient(180deg, transparent, var(--rv-bg-deep));
  color: var(--rv-muted);
  font-size: var(--rv-size-0);
}

.rv-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: var(--rv-space-3) var(--rv-space-4);
  padding-top: var(--rv-space-4);
}

@media (max-width: 46rem) {
  .rv-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-footer-brand { grid-column: 1 / -1; }
}

.rv-footer-brand .rv-logo { width: 2.6rem; height: auto; margin-bottom: 0.9rem; }

.rv-footer-col h2 {
  margin-bottom: 0.6rem;
  color: var(--rv-text);
  font-size: var(--rv-size-0);
  font-weight: 600;
  letter-spacing: 0;
}

.rv-footer ul { padding: 0; list-style: none; }
.rv-footer li + li { margin-top: 0.3rem; }
.rv-footer a { color: var(--rv-muted); text-decoration: none; }
.rv-footer a:hover { color: var(--rv-text); text-decoration: underline; }
.rv-tagline { color: var(--rv-text); }

.rv-footer-base {
  margin-top: var(--rv-space-4);
  padding: var(--rv-space-2) 0 var(--rv-space-3);
  border-top: 1px solid var(--rv-line);
}

/* Rheinvorn Design-System – Produkte und Spiele
   Übersichten und Einzelseiten, gespeist aus der Verwaltung. */

/* --- Sprungleiste auf der Einzelseite ------------------------------------- */

.rv-subnav {
  border-bottom: 1px solid var(--rv-line);
  background: color-mix(in srgb, var(--rv-surface) 55%, transparent);
}

.rv-subnav ul {
  display: flex;
  gap: 0.25rem 1.75rem;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}

.rv-subnav a {
  display: inline-block;
  padding: 0.85rem 0;
  color: var(--rv-muted);
  font-size: var(--rv-size-0);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color var(--rv-ease), border-color var(--rv-ease);
}

.rv-subnav a:hover { color: var(--rv-text); border-bottom-color: var(--rv-accent); }

/* --- Überblick: Text und Angaben nebeneinander ---------------------------- */

.rv-split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--rv-space-4);
  align-items: start;
  margin-top: var(--rv-space-4);
}

.rv-split-text { max-width: 42rem; font-size: var(--rv-size-2); }
.rv-split-text p + p { margin-top: 1rem; color: var(--rv-muted); }

@media (max-width: 62rem) {
  .rv-split { grid-template-columns: minmax(0, 1fr); }
}

/* --- Spiel in der Übersicht ----------------------------------------------- */

.rv-game { display: flex; flex-direction: column; }

.rv-game-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.rv-game-body h3 { font-size: var(--rv-size-4); font-weight: 500; }
.rv-game-body p { color: var(--rv-muted); }

@media (min-width: 62rem) {
  .rv-game.rv-span-12 { flex-direction: row; }
  .rv-game.rv-span-12 > .rv-poster, .rv-game.rv-span-12 > .rv-poster-img { flex: 1.5; }
  .rv-game.rv-span-12 > .rv-game-body { flex: 1; justify-content: center; }
}

/* Platz für das Titelbild. Ohne Bild: Fläche mit Linienfeld und dem Namen. */
.rv-poster, .rv-poster-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.rv-poster {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 25% 115%, color-mix(in srgb, var(--rv-accent) 30%, transparent), transparent 70%),
    linear-gradient(160deg, var(--rv-surface-2), var(--rv-bg-deep));
  border-bottom: 1px solid var(--rv-line);
}

.rv-poster .rv-lines { top: 14%; bottom: auto; height: 55%; opacity: 0.4; }

.rv-poster span {
  position: absolute;
  left: clamp(1.25rem, 2.5vw, 1.75rem);
  right: clamp(1.25rem, 2.5vw, 1.75rem);
  bottom: 1rem;
  color: var(--rv-text);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

/* --- Produkte als Zeilen (Software) --------------------------------------- */

.rv-rows {
  margin-top: var(--rv-space-4);
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rv-line);
}

.rv-rows a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding: 1.1rem 0.75rem;
  border-top: 1px solid var(--rv-line);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--rv-ease);
}

.rv-rows a:hover { background: var(--rv-accent-soft); }
.rv-row-name { font-size: var(--rv-size-2); font-weight: 600; }
.rv-row-text { color: var(--rv-muted); }

@media (max-width: 46rem) {
  .rv-rows a { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}

/* --- Testergebnis --------------------------------------------------------- */

.rv-score { display: flex; align-items: baseline; gap: 0.5rem; }

.rv-score strong {
  color: var(--rv-text);
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}

.rv-score span { font-size: var(--rv-size-0); }

.rv-test h3 { font-size: var(--rv-size-2); }

.rv-test blockquote {
  padding-left: 0.9rem;
  border-left: 1px solid var(--rv-accent);
  color: var(--rv-text);
}

/* --- Versionen ------------------------------------------------------------ */

.rv-versions {
  margin-top: var(--rv-space-4);
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rv-line);
}

.rv-versions > li {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rv-line);
}

.rv-versions h3 { font-size: var(--rv-size-2); }
.rv-versions ul { padding-left: 1.1rem; color: var(--rv-muted); }
.rv-versions ul li + li { margin-top: 0.25rem; }

@media (max-width: 46rem) {
  .rv-versions > li { grid-template-columns: minmax(0, 1fr); }
}
