/* Ranking-Vorlage (DESIGN.md 21.10.2026). Nur Variablen aus main.css, alles mit Praefix rk-.
   Regler: VARIANZ 6, BEWEGUNG 8, DICHTE 4. */

.rk-seite { overflow-x: clip; }

/* ---------- Hero ---------- */
.rk-hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-950); overflow: hidden; padding: calc(var(--header-h) + 34px) 0 64px; min-height: min(86vh, 760px); display: flex; align-items: flex-end; }
.rk-hero-bild { position: absolute; inset: 0; z-index: -2; }
.rk-hero-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; transform-origin: 62% 55%; animation: rk-kenburns 22s ease-out both; }
.rk-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 18, 48, 0.35) 0%, rgba(10, 18, 48, 0.55) 45%, rgba(10, 18, 48, 0.94) 100%), linear-gradient(90deg, rgba(10, 18, 48, 0.85) 0%, rgba(10, 18, 48, 0.2) 70%); }
@keyframes rk-kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.rk-hero-linien { position: absolute; left: 0; right: 0; bottom: 38%; z-index: -1; pointer-events: none; }
.rk-hero-linien span { display: block; height: 2px; margin: 14px 0; background: linear-gradient(90deg, transparent, var(--gold-500), transparent); opacity: 0.55; transform: translateX(-100%); animation: rk-linie 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.rk-hero-linien span:nth-child(2) { width: 70%; animation-delay: 0.18s; opacity: 0.35; }
.rk-hero-linien span:nth-child(3) { width: 45%; animation-delay: 0.36s; opacity: 0.25; }
@keyframes rk-linie { to { transform: translateX(0); } }
.rk-hero-inhalt { position: relative; max-width: 860px; }
.rk-brotkrumen, .rk-brotkrumen a { color: rgba(255, 255, 255, 0.78); }
.rk-h1 { color: #fff; font-size: clamp(2.5rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; margin: 14px 0 18px; }
.rk-h1 .rk-akzent { display: block; color: var(--gold-500); font-size: 0.46em; font-weight: 700; letter-spacing: 0; line-height: 1.2; margin-top: 10px; }
.rk-wort { display: inline-block; }
.js-reveal .rk-wort { opacity: 0; transform: translateY(0.4em); animation: rk-wort 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.js-reveal .rk-wort + .rk-wort { animation-delay: 0.22s; }
@keyframes rk-wort { to { opacity: 1; transform: none; } }
.rk-hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, 0.9); max-width: 640px; }
.rk-hero-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.rk-btn-hell { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.rk-btn-hell:hover { background: rgba(255, 255, 255, 0.1); }
.rk-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.rk-chips li { padding: 7px 14px; border-radius: 999px; font-size: 0.9rem; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
.rk-hero-vertrauen { margin: 18px 0 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.rk-sterne { color: var(--gold-500); letter-spacing: 2px; }

/* ---------- Laufband ---------- */
.rk-laufband { background: var(--gold-500); color: var(--navy-950); overflow: hidden; padding: 12px 0; }
.rk-laufband-spur { display: flex; width: max-content; animation: rk-band 55s linear infinite; }
.rk-laufband:hover .rk-laufband-spur { animation-play-state: paused; }
.rk-laufband ul { display: flex; list-style: none; margin: 0; padding: 0; }
.rk-laufband li { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; white-space: nowrap; padding: 0 22px; position: relative; }
.rk-laufband li::after { content: "•"; position: absolute; right: -4px; opacity: 0.5; }
@keyframes rk-band { to { transform: translateX(-50%); } }

/* ---------- Raster mit Inhaltsverzeichnis ---------- */
.rk-raster { display: grid; gap: 28px; padding-top: 40px; }
.rk-raster-unten { padding-top: 0; }
.rk-artikel { min-width: 0; }
.rk-artikel > section, .rk-text { margin-bottom: 64px; scroll-margin-top: calc(var(--header-h) + 20px); }
.rk-text p, .rk-artikel section > p, .rk-artikel h3 + p { font-size: 1.125rem; line-height: 1.65; max-width: 68ch; }
.rk-einstieg { font-size: 1.25rem !important; color: var(--navy-900); }
.rk-artikel h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); letter-spacing: -0.01em; margin-bottom: 0.55em; }
.rk-artikel h3 { font-size: 1.3rem; margin-top: 1.5em; }
.rk-lead { color: var(--muted); }
.rk-fn { font-size: 0.68em; line-height: 0; margin-left: 1px; }
.rk-fn a { color: var(--gold-600); font-weight: 700; text-decoration: none; padding: 0 2px; }
.rk-fn a:hover { text-decoration: underline; }
.rk-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-soft); }
.rk-toc summary { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); cursor: pointer; }
.rk-toc ol { margin: 10px 0 0; padding-left: 1.2em; font-size: 0.95rem; line-height: 1.5; }
.rk-toc li { margin: 4px 0; }
.rk-toc a { color: var(--muted); text-decoration: none; }
.rk-toc a:hover, .rk-toc a.is-aktiv { color: var(--navy-900); font-weight: 500; }
.rk-toc a.is-aktiv { box-shadow: inset 3px 0 0 var(--gold-500); padding-left: 8px; margin-left: -8px; }

/* Dunkle Sektionen: Hintergrund laeuft bis zum Bildrand, Layout bleibt im Raster */
.rk-dunkel { position: relative; color: rgba(255, 255, 255, 0.9); background: var(--navy-950); box-shadow: 0 0 0 100vmax var(--navy-950); clip-path: polygon(-100vmax 3vw, 100vmax 0, 100vmax 100%, -100vmax calc(100% - 3vw)); padding: calc(56px + 3vw) 0; }
.rk-dunkel h2, .rk-dunkel h3 { color: #fff; }
.rk-dunkel a { color: var(--gold-500); }
.rk-dunkel p { color: rgba(255, 255, 255, 0.85); }

/* ---------- Zahlen ---------- */
.rk-zahlen-liste { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rk-zahlen-liste li { border-top: 2px solid var(--gold-500); padding-top: 14px; }
.rk-zahl { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 6vw, 3rem); color: var(--gold-500); line-height: 1.1; font-variant-numeric: tabular-nums; }
.rk-zahl-label { display: block; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); margin-top: 6px; }

/* ---------- Ablauf ---------- */
.rk-schritte { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; counter-reset: none; }
.rk-schritte li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px 18px 78px; box-shadow: var(--shadow-soft); }
.rk-schritt-nr { position: absolute; left: 20px; top: 20px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; background: var(--navy-900); color: var(--gold-500); }
.rk-schritte h3 { margin: 0 0 6px; font-size: 1.15rem; }
.rk-schritte p { margin: 0; color: var(--muted); }
.js-reveal .rk-schritte li:nth-child(2) { transition-delay: 0.08s; }
.js-reveal .rk-schritte li:nth-child(3) { transition-delay: 0.16s; }
.js-reveal .rk-schritte li:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Bilder ---------- */
.rk-bild { margin: 28px 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.rk-bild img { display: block; width: 100%; height: auto; }
.rk-bild figcaption { font-size: 0.88rem; color: var(--muted); padding: 10px 14px; background: var(--surface); }
.rk-parallax img { transform: translate3d(0, var(--rk-py, 0px), 0) scale(1.08); will-change: transform; }

/* ---------- Karten Fahrzeuge ---------- */
.rk-karten { display: grid; gap: 16px; margin-top: 22px; }
.rk-karte { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; box-shadow: var(--shadow-soft); transition: box-shadow 0.4s ease, transform 0.4s ease; }
.rk-karte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.rk-karte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 48, 0) 35%, rgba(10, 18, 48, 0.96) 100%); }
.rk-karte-text { position: relative; z-index: 1; padding: 20px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }
.rk-karte-text h3 { color: #fff; margin: 0 0 6px; font-size: 1.15rem; }
.rk-karte-text p { margin: 0; font-size: 0.98rem; color: rgba(255, 255, 255, 0.9); }
.rk-karte:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.rk-karte:hover img { transform: scale(1.06); }

/* ---------- Vergleich ---------- */
.rk-vergleich { margin: 24px 0; }
.rk-vergleich table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.98rem; }
.rk-vergleich th, .rk-vergleich td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rk-vergleich thead th { font-family: var(--font-head); color: var(--navy-900); border-bottom: 2px solid var(--navy-900); }
.rk-vergleich tbody th { font-family: var(--font-head); color: var(--navy-900); font-weight: 700; width: 18%; }
.rk-vergleich .rk-wir { background: var(--gold-100); font-weight: 500; }
.rk-vergleich thead .rk-wir { background: var(--navy-900); color: var(--gold-500); border-radius: 10px 10px 0 0; }
.rk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Pruefliste, Hinweise ---------- */
.rk-pruefliste { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.rk-pruefliste li { position: relative; padding: 16px 18px 16px 52px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 1.05rem; line-height: 1.6; }
.rk-pruefliste li::before { content: "✓"; position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); color: var(--navy-950); font-weight: 800; font-size: 0.9rem; }
.rk-hinweis { padding: 14px 18px; border-left: 4px solid var(--gold-500); background: var(--gold-100); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1rem !important; }
.rk-klein { font-size: 0.85rem; color: var(--muted); }
.rk-dunkel .rk-klein { color: rgba(255, 255, 255, 0.6); }

/* ---------- Standort ---------- */
.rk-standort-raster { display: grid; gap: 20px; align-items: start; }
.rk-adresse h3 { margin-top: 0; }
.rk-links { margin-bottom: 0; }

/* ---------- Einzugsgebiet ---------- */
.rk-karte-svg { margin: 24px 0 10px; }
.rk-karte-svg svg { width: 100%; height: auto; max-width: 640px; display: block; }
.rk-linie { stroke: var(--gold-500); stroke-width: 1.4; opacity: 0.6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js-reveal .rk-karte-svg:not(.is-visible) .rk-linie { stroke-dashoffset: 1; }
.js-reveal .rk-karte-svg .rk-linie { transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; }
.rk-bezirk circle { fill: var(--navy-700); stroke: var(--gold-500); stroke-width: 1.5; }
.rk-bezirk text { fill: rgba(255, 255, 255, 0.86); font-family: var(--font-body); font-size: 11px; }
.rk-hub { fill: var(--gold-500); }
.rk-hub-text { fill: var(--gold-500); font-family: var(--font-head); font-weight: 700; font-size: 12px; }
.rk-puls { fill: var(--gold-500); opacity: 0.5; transform-origin: 210px 150px; animation: rk-puls 2.4s ease-out infinite; }
@keyframes rk-puls { from { transform: scale(1); opacity: 0.5; } to { transform: scale(3.2); opacity: 0; } }
.rk-chips-dunkel li { background: rgba(255, 255, 255, 0.06); }

/* ---------- Bewertungen ---------- */
.rk-profile { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rk-profile a { display: block; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 0.95rem; }
.rk-profile a:hover { border-color: var(--gold-500); }
.rk-profile strong { color: var(--navy-900); }
.rk-profile span { display: block; color: var(--muted); font-size: 0.85rem; }
.rk-bewertungen { margin-bottom: 18px !important; }
.band { position: relative; overflow: hidden; padding: 10px 0 34px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%); }
.band.zieht { cursor: grabbing; }
.band-spur { display: flex; gap: 18px; width: max-content; will-change: transform; padding-left: 18px; }
.bewertung { flex: 0 0 min(400px, 82vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow-soft); transition: transform 0.5s ease, box-shadow 0.5s ease; }
.band:not(.zieht) .bewertung:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.bewertung blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--text); }
.bewertung footer { display: flex; align-items: center; gap: 12px; }
.bewertung .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-500); font-family: var(--font-head); font-weight: 800; }
.bewertung cite { font-style: normal; font-weight: 500; color: var(--navy-900); display: grid; }
.bewertung cite small { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.rk-band-hinweis { margin-top: -18px; margin-bottom: 48px; }

/* ---------- FAQ, Anfrage, Quellen ---------- */
.rk-faq summary h3 { margin: 0; font: inherit; color: inherit; }
.rk-anfrage-raster { display: grid; gap: 28px; align-items: start; }
.rk-anfrage .lead-card { color: var(--text); }
.rk-anfrage .lead-card p { color: var(--muted); }
.rk-quellen details { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 18px 22px; }
.rk-quellen summary { cursor: pointer; list-style: none; }
.rk-quellen summary::-webkit-details-marker { display: none; }
.rk-quellen summary h2 { display: inline; font-size: 1.25rem; margin: 0; }
.rk-quellen summary::after { content: "+"; float: right; font-size: 1.5rem; line-height: 1; color: var(--gold-600); }
.rk-quellen details[open] summary::after { content: "−"; }
.rk-quellen p { font-size: 0.95rem !important; color: var(--muted); margin-top: 14px; }
.rk-quellen li { margin-bottom: 0.8em; overflow-wrap: anywhere; font-size: 0.95rem; }
.rk-quellen li:target { background: var(--gold-100); border-radius: 6px; }
.quellen-nachweis { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* ---------- Breiten ---------- */
@media (max-width: 799px) {
  .rk-vergleich thead { display: none; }
  .rk-vergleich table, .rk-vergleich tbody, .rk-vergleich tr, .rk-vergleich th, .rk-vergleich td { display: block; width: 100%; }
  .rk-vergleich tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: var(--surface); }
  .rk-vergleich tbody th { width: 100%; background: var(--navy-900); color: #fff; border: 0; }
  .rk-vergleich td::before { content: attr(data-spalte) ": "; font-weight: 700; color: var(--navy-900); }
  .rk-toc:not([open]) { box-shadow: none; }
}
@media (min-width: 800px) {
  .rk-zahlen-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rk-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rk-karte:first-child { grid-column: span 2; min-height: 300px; }
  .rk-standort-raster { grid-template-columns: 1.15fr 0.85fr; }
  .rk-schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rk-profile { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .rk-raster { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
  .rk-inhalt-nav { position: relative; z-index: 2; }
  .rk-toc { position: sticky; top: calc(var(--header-h) + 20px); }
  .rk-anfrage-raster { grid-template-columns: 0.9fr 1.1fr; }
  .rk-artikel { max-width: 860px; }
}
@media (prefers-reduced-motion: reduce) {
  .rk-hero-bild img, .rk-hero-linien span, .rk-laufband-spur, .rk-puls { animation: none !important; }
  .rk-hero-linien span { transform: none; }
  .js-reveal .rk-wort { animation: none; opacity: 1; transform: none; }
  .rk-parallax img { transform: none; }
}

/* Korrekturen nach Sichtpruefung 21.10.2026 */
.rk-dunkel .btn-gold, .rk-dunkel a.btn-gold { color: var(--navy-950); }
.rk-dunkel .lead-card h2, .rk-dunkel .lead-card h3, .rk-dunkel .lead-card .lead-card-title { color: var(--navy-900); }
.rk-dunkel .lead-card a { color: var(--navy-700); }
@media (min-width: 800px) { .rk-karte:first-child { grid-column: auto; min-height: 260px; } .rk-karte { min-height: 260px; } }

/* Formular im Hero (Reza 21.10.2026: Anfrage muss ganz oben sein) */
.rk-hero { display: block; min-height: 0; padding: calc(var(--header-h) + 28px) 0 48px; }
.rk-hero-raster { display: grid; gap: 28px; align-items: center; }
.rk-hero-form { position: relative; z-index: 1; width: 100%; max-width: 520px; scroll-margin-top: calc(var(--header-h) + 12px); }
.rk-hero .lead-card { color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.rk-hero .lead-card h2, .rk-hero .lead-card .lead-card-title { color: var(--navy-900); }
.rk-hero .lead-card a { color: var(--navy-700); }
#bewertung { scroll-margin-top: calc(var(--header-h) + 12px); }
.rk-anfrage-karte { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius-lg); padding: 24px; }
.rk-anfrage-karte .btn-gold { margin-top: 6px; }
@media (min-width: 1100px) {
  .rk-hero { padding: calc(var(--header-h) + 40px) 0 64px; min-height: min(92vh, 860px); }
  .rk-hero-raster { grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; }
  .rk-hero-inhalt { max-width: none; }
  .rk-h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); }
  .rk-nur-schmal { display: none; }
}
@media (max-width: 799px) {
  .rk-hero { padding-top: calc(var(--header-h) + 14px); }
  .rk-hero .rk-btn-hell, .rk-hero .rk-nur-schmal { display: none; }
  .rk-hero-knoepfe { margin: 14px 0 10px; }
  .rk-hero-lead { font-size: 1rem; margin-bottom: 12px; }
  .rk-chips li { font-size: 0.78rem; padding: 5px 10px; }
  .rk-hero-vertrauen { margin-top: 10px; font-size: 0.85rem; }
  .rk-hero-raster { gap: 18px; }
}
.rk-fn a { color: #8A6100; }
.rk-dunkel .rk-fn a { color: var(--gold-500); }
