/* ============================================================
   AutomaNext – Leistungsseite Website-Relaunch
   (seitenspezifisch, ergänzt style.css; nur .rl-*-Klassen)
   ============================================================ */

.rl-page {
  position: relative;
  overflow: clip;
  background: var(--bg);
  color: var(--ink);
}
.rl-page h1,
.rl-page h2,
.rl-page h3 { color: inherit; }

/* ---------- Gemeinsame Bausteine ---------- */

.rl-eyebrow {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rl-eyebrow--light { color: var(--brand-light); }

.rl-h2 {
  max-width: 20ch;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--ink);
}
.rl-h2 .accent { color: var(--brand); }

.rl-lead {
  max-width: 37rem;
  margin-top: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.rl-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--brand);
  padding-bottom: 0.15rem;
  transition: color 170ms var(--ease-out), gap 170ms var(--ease-out);
}
.rl-text-link span { color: var(--brand); }
.rl-text-link:hover { color: var(--brand-deep); gap: 0.6rem; }
.rl-text-link--light { color: var(--on-dark); border-bottom-color: rgb(255 255 255 / 0.5); }
.rl-text-link--light span { color: var(--on-dark); }
.rl-text-link--light:hover { color: #fff; }

.rl-inline-link {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: oklch(72% 0.16 276 / 0.5);
  text-underline-offset: 2px;
}
.rl-inline-link:hover { text-decoration-color: currentColor; }

.rl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Sektionsrhythmus */
.rl-page > section,
.rl-page > header { padding-block: clamp(4rem, 10vw, 7.5rem); }
.rl-page > section:nth-of-type(odd) { background: var(--surface); }
.rl-hero { padding-top: clamp(2.5rem, 5vw, 4.25rem); padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }

/* ---------- Browser-Mockup-Baukasten ---------- */

.rl-browser {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 30px 60px -30px oklch(25% 0.05 276 / 0.35);
}
.rl-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: oklch(97% 0.006 280);
  border-bottom: 1px solid oklch(90% 0.008 280);
}
.rl-browser-bar > span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: oklch(82% 0.01 280); }
.rl-browser-bar > i {
  margin-left: 0.5rem;
  padding: 0.25rem 0.75rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  background: #fff;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px oklch(90% 0.008 280);
}

.rl-transform-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--brand-light);
  font-size: 1.3rem;
}

/* ---------- Old / New Mockup-Innenleben ---------- */

.rl-old-page { min-height: calc(100% - 2.35rem); padding: 1.1rem; background: oklch(95% 0.004 280); }
.rl-old-nav { display: flex; align-items: center; gap: 0.4rem; height: 1.6rem; padding: 0 0.4rem; background: oklch(88% 0.008 280); border-radius: 0.3rem; }
.rl-old-nav b {
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  color: oklch(55% 0.01 280);
  font-size: 0.5rem;
  font-weight: 800;
  background: oklch(78% 0.01 280);
  border-radius: 0.3rem;
}
.rl-old-nav span { width: 1.1rem; height: 0.25rem; background: oklch(78% 0.008 280); border-radius: 1rem; }
.rl-old-layout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 1rem; }
.rl-old-layout span { height: 3.5rem; background: oklch(90% 0.006 280); border: 1px solid oklch(84% 0.008 280); }
.rl-old-lines { display: grid; gap: 0.35rem; margin-top: 0.75rem; }
.rl-old-lines span { display: block; height: 0.3rem; background: oklch(88% 0.006 280); border-radius: 1rem; }
.rl-old-lines span:last-child { width: 60%; }

.rl-new-page { min-height: calc(100% - 2.35rem); padding: 1.1rem 1.25rem; background: linear-gradient(155deg, #fff 30%, oklch(97% 0.01 276) 100%); }
.rl-new-nav { display: flex; align-items: center; gap: 0.5rem; }
.rl-new-nav b {
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  background: var(--brand);
  border-radius: 0.35rem;
}
.rl-new-nav span { width: 1.4rem; height: 0.25rem; margin-left: 0.35rem; background: oklch(88% 0.01 280); border-radius: 1rem; }
.rl-new-hero { padding-top: 1.25rem; }
.rl-new-hero small { display: block; width: 55%; height: 0.4rem; background: var(--brand-soft); border-radius: 1rem; }
.rl-new-hero strong { display: block; width: 80%; height: 0.65rem; margin-top: 0.6rem; background: oklch(85% 0.01 280); border-radius: 1rem; }
.rl-new-hero button {
  display: inline-flex;
  margin-top: 0.9rem;
  padding: 0.4rem 0.85rem;
  color: #fff;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--brand);
  border: 0;
  border-radius: var(--radius-btn);
  cursor: default;
}

/* ---------- S1 Hero ---------- */

.rl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(24rem, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 4.5vw, 4.5rem);
}
.rl-hero-copy { max-width: 46rem; }
.rl-hero-copy .corporate-breadcrumb { margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.rl-hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.rl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.rl-hero-visual {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1rem);
}
.rl-hero-visual .rl-browser { flex: 1 1 0; min-width: 0; aspect-ratio: 1.05; }

@media (hover: hover) and (pointer: fine) {
  html.js .rl-hero-visual .rl-browser { transition: transform 700ms var(--ease-out), opacity 700ms var(--ease-out); }
}
html.js .rl-hero-visual .rl-browser { opacity: 0; transform: translateY(10px); animation: rl-hero-in 620ms var(--ease-out) 120ms forwards; }
html.js .rl-hero-visual .rl-browser--new { animation-delay: 260ms; }
@keyframes rl-hero-in { to { opacity: 1; transform: none; } }

.rl-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  border-top: 1px solid oklch(90% 0.008 280);
}
.rl-flow i { width: 1.4rem; height: 1px; background: oklch(85% 0.01 280); }
.rl-flow strong { color: var(--brand-deep); }

/* ---------- S2 Problem ---------- */

.rl-problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.rl-problem-visual { position: relative; }
.rl-problem-visual .rl-browser { aspect-ratio: 1.05; filter: saturate(0.8); }
.rl-flaw {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem 0.3rem 0.4rem;
  color: var(--brand-deep);
  font-size: 0.62rem;
  font-weight: 700;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 22px -14px oklch(30% 0.05 276 / 0.5);
}
.rl-flaw i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--brand); }
.rl-flaw--1 { top: 18%; left: -0.5rem; }
.rl-flaw--2 { top: 42%; right: -0.75rem; }
.rl-flaw--3 { bottom: 22%; left: -0.5rem; }
.rl-flaw--4 { bottom: 6%; right: -0.5rem; }
.rl-problem-copy p.reveal { max-width: 40rem; margin-top: 1.25rem; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.rl-problem-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 1.5rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}
.rl-problem-list li { position: relative; padding-left: 1.2rem; }
.rl-problem-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--brand); }
.rl-problem-list h3 { font-size: 0.95rem; font-weight: 750; }
.rl-problem-list p { margin-top: 0.3rem; color: var(--muted); font-size: 0.88rem; }
.rl-problem-list li:nth-child(1) { transition-delay: 0ms; }
.rl-problem-list li:nth-child(2) { transition-delay: 60ms; }
.rl-problem-list li:nth-child(3) { transition-delay: 120ms; }
.rl-problem-list li:nth-child(4) { transition-delay: 180ms; }
.rl-problem-list li:nth-child(5) { transition-delay: 240ms; }
.rl-problem-list li:nth-child(6) { transition-delay: 300ms; }
.rl-problem-list li:nth-child(7) { transition-delay: 360ms; }
.rl-problem-list li:nth-child(8) { transition-delay: 420ms; }

/* ---------- S3 Signature: Website-Check ---------- */

.rl-check-head { max-width: 46rem; }
.rl-check-head p:last-child { margin-top: 1.25rem; color: var(--muted); font-size: 1.05rem; }
.rl-check-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.rl-check-sticky { position: sticky; top: 6.5rem; }
.rl-check-mockup { min-height: 26rem; }
.rl-check-screens { position: relative; min-height: 22.7rem; overflow: hidden; }

/* Robuster Panel-Umschalter: Sichtbarkeit hängt an .is-active, nicht am Ancestor-Attribut. */
.rl-screen {
  position: absolute;
  inset: 0;
  padding: 1.25rem 1.4rem 1.5rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  pointer-events: none;
}
.rl-screen.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.rl-screen-inner { position: relative; height: 100%; }
.rl-screen-inner--result { display: flex; flex-direction: column; justify-content: center; }
.rl-screen-nav { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.rl-screen-nav b {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  background: var(--brand);
  border-radius: 0.35rem;
}
.rl-screen-nav span { width: 1.5rem; height: 0.25rem; background: oklch(88% 0.01 280); border-radius: 1rem; }
.rl-screen-block { height: 2.4rem; background: oklch(94% 0.008 280); border-radius: 0.5rem; margin-bottom: 0.65rem; }
.rl-screen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.rl-screen-grid span { height: 3.4rem; background: oklch(94% 0.008 280); border-radius: 0.5rem; }
.rl-screen-rows { display: grid; gap: 0.6rem; }
.rl-screen-rows span { display: block; height: 1.9rem; background: oklch(94% 0.008 280); border-radius: 0.5rem; }

.rl-check-marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  color: #fff;
  background: var(--brand);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 22px -12px oklch(30% 0.05 276 / 0.55);
}
.rl-check-marker i { width: 0.5rem; height: 0.5rem; background: #fff; border-radius: 50%; }
.rl-check-marker--design { top: 0.4rem; right: 0.6rem; }
.rl-check-marker--struktur { bottom: 0.5rem; left: 0.6rem; }
.rl-check-marker--mobile { top: 45%; right: -0.6rem; }
.rl-check-marker--conversion { bottom: 0.6rem; right: 0.6rem; }
.rl-check-marker--performance { top: 0.4rem; left: 0.6rem; }
.rl-check-marker--seo { bottom: 45%; right: 0.6rem; }

.rl-check-kicker { margin-top: 1rem; color: var(--muted); font-size: 0.85rem; text-align: center; }

.rl-check-tabs { display: grid; gap: 0.5rem; }
.rl-check-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-height: 2.75rem;
  padding: 0.85rem 1.1rem;
  color: var(--ink-soft);
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 170ms var(--ease-out), border-color 170ms var(--ease-out), color 170ms var(--ease-out);
}
.rl-check-tab span { font-weight: 750; font-size: 1rem; color: var(--ink); }
.rl-check-tab small { color: var(--muted); font-size: 0.85rem; }
.rl-check-tab:hover { background: oklch(97% 0.006 280); }
.rl-check-tab[aria-selected="true"] { background: var(--brand-soft); border-left-color: var(--brand); }
.rl-check-tab[aria-selected="true"] span { color: var(--brand-deep); }

/* ---------- S4 Behalten / Verbessern / Ergänzen ---------- */

.rl-keep-head { max-width: 46rem; }
.rl-keep-head p:last-child { margin-top: 1.25rem; color: var(--muted); font-size: 1.05rem; }
.rl-keep-grid {
  display: flex;
  align-items: stretch;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.rl-keep-col {
  flex: 1 1 0;
  min-width: 0;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 1px oklch(91% 0.008 280);
}
.rl-keep-label { display: block; margin-bottom: 1rem; color: var(--brand); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.rl-keep-col ul { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.rl-keep-col li { position: relative; padding-left: 1.15rem; color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; }
.rl-keep-col li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--brand); }
.rl-keep-arrow { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--brand-light); font-size: 1.2rem; }
.rl-keep-col:nth-child(1) { transition-delay: 0ms; }
.rl-keep-col:nth-child(3) { transition-delay: 90ms; }
.rl-keep-col:nth-child(5) { transition-delay: 180ms; }

/* ---------- S5 Vorher / Nachher ---------- */

.rl-beforeafter-head { max-width: 44rem; }
.rl-beforeafter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.rl-beforeafter-label { display: block; margin-bottom: 1rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rl-beforeafter-col:last-child .rl-beforeafter-label { color: var(--brand); }
.rl-beforeafter-col .rl-browser { aspect-ratio: 1.35; margin-bottom: 1.5rem; }
.rl-beforeafter-list { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.rl-beforeafter-list li { position: relative; padding-left: 1.2rem; color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; }
.rl-beforeafter-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: oklch(78% 0.02 280); }
.rl-beforeafter-col:last-child .rl-beforeafter-list li::before { background: var(--brand); }

/* ---------- S6 Ebenen (Matrix) ---------- */

.rl-layers-head { max-width: 42rem; }
.rl-layers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.rl-layer { padding-top: 1.4rem; border-top: 2px solid oklch(90% 0.008 280); }
.rl-layer h3 { font-size: 1.15rem; font-weight: 750; }
.rl-layer p { margin-top: 0.75rem; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.rl-layer:nth-child(1) { transition-delay: 0ms; }
.rl-layer:nth-child(2) { transition-delay: 60ms; }
.rl-layer:nth-child(3) { transition-delay: 120ms; }
.rl-layer:nth-child(4) { transition-delay: 180ms; }
.rl-layer:nth-child(5) { transition-delay: 240ms; }
.rl-layer:nth-child(6) { transition-delay: 300ms; }

/* ---------- S7 Inhalte analysieren ---------- */

.rl-content-head { max-width: 46rem; }
.rl-content-head p:last-child { margin-top: 1.25rem; color: var(--muted); font-size: 1.05rem; }
.rl-content-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.rl-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 1rem;
}
.rl-badge--keep { color: var(--brand-deep); background: var(--brand-soft); }
.rl-badge--revise { color: #fff; background: var(--brand-light); }
.rl-badge--merge { color: #fff; background: var(--brand); }
.rl-badge--new { color: #fff; background: var(--brand-deep); }
.rl-content-map { margin-top: clamp(2rem, 4vw, 3rem); }
.rl-content-node {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  background: var(--surface);
  border-radius: 0.75rem;
  box-shadow: inset 0 0 0 1px oklch(91% 0.008 280);
}
.rl-content-node strong { font-size: 0.92rem; font-weight: 750; }
.rl-content-node--root { display: flex; margin: 0 auto; background: var(--ink-bg); box-shadow: none; }
.rl-content-node--root strong { color: #fff; }
.rl-content-children {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
}
.rl-content-children::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16.6%;
  right: 16.6%;
  height: 1px;
  background: oklch(88% 0.008 280);
}
.rl-content-children .rl-content-node::before {
  content: "";
  position: absolute;
  top: -2rem;
  left: 50%;
  width: 1px;
  height: 2rem;
  background: oklch(88% 0.008 280);
}

/* ---------- S8 Struktur neu denken ---------- */

.rl-structure-head { max-width: 44rem; }
.rl-structure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.rl-structure-label { display: block; margin-bottom: 1.25rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rl-structure-col:last-child .rl-structure-label { color: var(--brand); }
.rl-structure-node {
  display: inline-flex;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 750;
  background: var(--surface);
  border-radius: 0.6rem;
  box-shadow: inset 0 0 0 1px oklch(91% 0.008 280);
}
.rl-structure-node--root { display: flex; margin: 0 auto 1.5rem; background: var(--ink-bg); color: #fff; box-shadow: none; }
.rl-structure-children { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.rl-structure-children span {
  padding: 0.5rem 0.85rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface);
  border-radius: 0.5rem;
  box-shadow: inset 0 0 0 1px oklch(91% 0.008 280);
}
.rl-structure-tree--old .rl-structure-children span:nth-child(2),
.rl-structure-tree--old .rl-structure-children span:nth-child(5) { opacity: 0.7; }
.rl-structure-tree--new .rl-structure-children span { color: var(--brand-deep); background: var(--brand-soft); box-shadow: none; }
.rl-structure-note { max-width: 40rem; margin-top: clamp(2rem, 4vw, 3rem); color: var(--muted); font-size: 0.92rem; }

/* ---------- S9 Corporate Design ---------- */

.rl-brand-head { max-width: 46rem; }
.rl-brand-head p:last-child { margin-top: 1.25rem; color: var(--muted); font-size: 1.05rem; }
.rl-brand-stages {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.rl-brand-stage { flex: 1 1 0; min-width: 0; text-align: center; }
.rl-brand-stage-label { display: block; margin-bottom: 1rem; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rl-brand-stage:last-child .rl-brand-stage-label { color: var(--brand-deep); }
.rl-brand-arrow { flex: 0 0 auto; color: var(--brand-light); font-size: 1.2rem; }
.rl-brand-tokens, .rl-brand-system {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 1px oklch(91% 0.008 280);
}
.rl-brand-token, .rl-brand-system i {
  display: grid;
  place-items: center;
  height: 2.6rem;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  background: oklch(96% 0.006 280);
  border-radius: 0.4rem;
}
.rl-brand-token--color { background: var(--brand-soft); }
.rl-brand-token--logo { color: #fff; background: var(--brand); }
.rl-brand-token--image { background: linear-gradient(135deg, var(--brand-soft), var(--brand-light)); }
.rl-browser--brand { aspect-ratio: 1.3; }

/* ---------- S10 Mobile ---------- */

.rl-mobile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.rl-mobile-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem 1.25rem; margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; padding: 0; list-style: none; }
.rl-mobile-list li { position: relative; padding-left: 1.2rem; color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; }
.rl-mobile-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--brand); }
.rl-mobile-visual { display: flex; align-items: flex-end; justify-content: center; gap: clamp(0.75rem, 2vw, 1.5rem); }
.rl-phone {
  width: 9.5rem;
  aspect-ratio: 9/17.5;
  overflow: hidden;
  background: #fff;
  border-radius: 1.4rem;
  box-shadow: 0 30px 60px -30px oklch(25% 0.05 276 / 0.35);
}
.rl-phone-nav { display: flex; align-items: center; gap: 0.35rem; padding: 0.6rem; background: oklch(95% 0.006 280); border-bottom: 1px solid oklch(90% 0.008 280); }
.rl-phone-nav b { display: grid; place-items: center; width: 1rem; height: 1rem; color: #fff; font-size: 0.45rem; font-weight: 800; background: var(--brand); border-radius: 0.3rem; }
.rl-phone-nav i { margin-left: auto; width: 1rem; height: 0.7rem; background: oklch(85% 0.01 280); border-radius: 0.2rem; }
.rl-phone--old .rl-phone-nav { background: oklch(90% 0.006 280); }
.rl-phone-body { display: grid; gap: 0.4rem; padding: 0.6rem; }
.rl-phone-body span { display: block; height: 1.6rem; background: oklch(93% 0.008 280); border-radius: 0.3rem; }
.rl-phone--old .rl-phone-body span { height: 1rem; }
.rl-phone-cta { margin: 0 0.6rem 0.6rem; padding: 0.5rem; color: #fff; font-size: 0.6rem; font-weight: 700; text-align: center; background: var(--brand); border-radius: 0.4rem; }

/* ---------- S11 Performance ---------- */

.rl-performance-head { max-width: 42rem; }
.rl-performance-head p:last-child { margin-top: 1.25rem; color: var(--muted); font-size: 1.05rem; }
.rl-performance-grid {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.rl-performance-col { flex: 1 1 0; min-width: 0; padding: clamp(1.5rem, 2.6vw, 2rem); background: var(--surface); border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px oklch(91% 0.008 280); }
.rl-performance-label { display: block; margin-bottom: 1rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rl-performance-col:last-child .rl-performance-label { color: var(--brand-deep); }
.rl-performance-col ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.rl-performance-col li { position: relative; padding-left: 1.15rem; color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.rl-performance-col li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: currentColor; opacity: 0.55; }
.rl-performance-arrow { flex: 0 0 auto; color: var(--brand-light); font-size: 1.3rem; }

/* ---------- S12 SEO ---------- */

.rl-seo-head { max-width: 48rem; }
.rl-seo-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1.5rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}
.rl-seo-list li { position: relative; padding-left: 1.2rem; color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; }
.rl-seo-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--brand); }
.rl-seo-note { margin-top: clamp(1.75rem, 3vw, 2.5rem); color: var(--muted); font-size: 0.92rem; }

/* ---------- S13 GEO ---------- */

.rl-geo-head { max-width: 48rem; }
.rl-geo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}
.rl-geo-list li {
  padding: 0.55rem 1.1rem;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--surface);
  border-radius: 1.5rem;
  box-shadow: inset 0 0 0 1px oklch(91% 0.008 280);
}

/* ---------- S14 Conversion ---------- */

.rl-conversion-head { max-width: 46rem; }
.rl-path-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.rl-path { padding: clamp(1.25rem, 2.5vw, 1.75rem); background: var(--surface); border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px oklch(91% 0.008 280); }
.rl-path-label { display: block; margin-bottom: 0.85rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rl-path:last-child .rl-path-label { color: var(--brand-deep); }
.rl-path-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.rl-path-steps span { padding: 0.4rem 0.8rem; color: var(--ink-soft); font-weight: 700; font-size: 0.88rem; background: #fff; border-radius: 0.5rem; box-shadow: inset 0 0 0 1px oklch(90% 0.008 280); }
.rl-path:last-child .rl-path-steps span { color: var(--brand-deep); box-shadow: inset 0 0 0 1px var(--brand-light); }
.rl-path-steps i { color: var(--muted); font-style: normal; }
.rl-conversion-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem 1.25rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}
.rl-conversion-list li { position: relative; padding-left: 1.15rem; color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.rl-conversion-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--brand); }

/* ---------- S15 Prozess ---------- */

.rl-process-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 7rem);
}
.rl-process-intro { position: sticky; top: 8rem; }
.rl-process-list {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 0 0 2rem;
  list-style: none;
}
.rl-process-list::before {
  content: "";
  position: absolute;
  left: 0.18rem;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 1px;
  background: linear-gradient(oklch(88% 0.008 280), var(--brand-light));
}
.rl-process-list li { position: relative; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; padding: 0 0 2.5rem; }
.rl-process-list li:last-child { padding-bottom: 0; }
.rl-process-list li::before {
  content: "";
  position: absolute;
  left: -2.18rem;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  background: #fff;
  border: 1px solid var(--brand);
  border-radius: 50%;
}
.rl-process-list span { color: var(--brand); font-size: 0.7rem; font-weight: 760; }
.rl-process-list h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 750; letter-spacing: -0.01em; }
.rl-process-list p { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }
.rl-process-list li:nth-child(1) { transition-delay: 0ms; }
.rl-process-list li:nth-child(2) { transition-delay: 45ms; }
.rl-process-list li:nth-child(3) { transition-delay: 90ms; }
.rl-process-list li:nth-child(4) { transition-delay: 135ms; }
.rl-process-list li:nth-child(5) { transition-delay: 180ms; }
.rl-process-list li:nth-child(6) { transition-delay: 225ms; }
.rl-process-list li:nth-child(7) { transition-delay: 270ms; }
.rl-process-list li:nth-child(8) { transition-delay: 315ms; }
.rl-process-list li:nth-child(9) { transition-delay: 360ms; }

/* ---------- S16 Migration ---------- */

.rl-migration-head { max-width: 46rem; }
.rl-migration-head p:last-child { margin-top: 1.25rem; color: var(--muted); font-size: 1.05rem; }
.rl-migration-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem 1.25rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}
.rl-migration-list li { position: relative; padding-left: 1.15rem; color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.rl-migration-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--brand); }
.rl-migration-domain { max-width: 44rem; margin-top: clamp(2rem, 4vw, 3rem); color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ---------- S17 Erweiterbarkeit ---------- */

.rl-extend-head { max-width: 44rem; }
.rl-extend-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.rl-extend-core {
  display: inline-flex;
  padding: 1rem 2rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--ink-bg);
  border-radius: 2rem;
}
.rl-extend-modules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 52rem;
}
.rl-module {
  display: inline-flex;
  padding: 0.55rem 1.1rem;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  background: var(--surface);
  border-radius: 1.5rem;
  box-shadow: inset 0 0 0 1px oklch(91% 0.008 280);
}
a.rl-module--link { color: var(--brand-deep); box-shadow: inset 0 0 0 1px var(--brand-light); }
a.rl-module--link:hover { background: var(--brand-soft); }
.rl-extend-modules .rl-module:nth-child(1) { transition-delay: 0ms; }
.rl-extend-modules .rl-module:nth-child(2) { transition-delay: 45ms; }
.rl-extend-modules .rl-module:nth-child(3) { transition-delay: 90ms; }
.rl-extend-modules .rl-module:nth-child(4) { transition-delay: 135ms; }
.rl-extend-modules .rl-module:nth-child(5) { transition-delay: 180ms; }
.rl-extend-modules .rl-module:nth-child(6) { transition-delay: 225ms; }
.rl-extend-modules .rl-module:nth-child(7) { transition-delay: 270ms; }
.rl-extend-modules .rl-module:nth-child(8) { transition-delay: 315ms; }
.rl-extend-modules .rl-module:nth-child(9) { transition-delay: 360ms; }
.rl-extend-modules .rl-module:nth-child(10) { transition-delay: 405ms; }
.rl-extend-note { max-width: 34rem; margin: clamp(2rem, 4vw, 2.75rem) auto 0; color: var(--ink-soft); font-weight: 600; text-align: center; }

/* ---------- S18 Relaunch oder Optimierung ---------- */

.rl-decision-head { max-width: 44rem; }
.rl-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.rl-decision-card { padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--radius-card); background: var(--surface); box-shadow: inset 0 0 0 1px oklch(91% 0.008 280); }
.rl-decision-card > span { font-size: 1rem; font-weight: 750; color: var(--ink); }
.rl-decision-card ul { display: grid; gap: 0.6rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.rl-decision-card li { position: relative; padding-left: 1.15rem; color: var(--muted); font-size: 0.92rem; }
.rl-decision-card li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.3rem; height: 0.3rem; border-radius: 50%; background: currentColor; opacity: 0.5; }
.rl-decision-card--primary { color: #fff; background: var(--ink-bg); }
.rl-decision-card--primary > span { color: var(--brand-light); }
.rl-decision-card--primary li { color: var(--on-dark-muted); }
.rl-decision-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid oklch(90% 0.008 280);
}
.rl-decision-cta p { max-width: 34rem; color: var(--muted); }
.rl-decision-cta strong { color: var(--ink); }

/* ---------- S19 Leistungsumfang ---------- */

.rl-scope-head { max-width: 42rem; }
.rl-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.rl-scope-card { padding-top: 1.4rem; border-top: 2px solid oklch(90% 0.008 280); }
.rl-scope-card > span { color: var(--brand); font-size: 0.7rem; font-weight: 760; }
.rl-scope-card h3 { margin-top: 1rem; font-size: 1.2rem; font-weight: 750; letter-spacing: -0.01em; }
.rl-scope-card ul { display: grid; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; color: var(--muted); font-size: 0.9rem; list-style: none; }
.rl-scope-card:nth-child(1) { transition-delay: 0ms; }
.rl-scope-card:nth-child(2) { transition-delay: 60ms; }
.rl-scope-card:nth-child(3) { transition-delay: 120ms; }
.rl-scope-card:nth-child(4) { transition-delay: 180ms; }
.rl-scope-card:nth-child(5) { transition-delay: 240ms; }
.rl-scope-card:nth-child(6) { transition-delay: 300ms; }

/* ---------- S20 Verwandte Leistungen ---------- */

.rl-related-head { max-width: 44rem; }
.rl-related-list {
  display: grid;
  gap: 0.85rem;
  max-width: 52rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}
.rl-related-list li {
  padding: 1rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
  background: var(--surface);
  border-radius: 0.75rem;
  box-shadow: inset 0 0 0 1px oklch(91% 0.008 280);
}
.rl-related-list a { color: var(--brand-deep); font-weight: 600; text-decoration: underline; text-decoration-color: oklch(72% 0.16 276 / 0.5); text-underline-offset: 2px; }
.rl-related-list a:hover { text-decoration-color: currentColor; }

/* ---------- S21 Projekte ---------- */

.rl-projects-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.rl-projects-layout > div:first-child > p:not(.rl-eyebrow) { max-width: 34rem; margin-top: 1.1rem; color: var(--muted); }
.rl-projects-layout .rl-text-link { margin-top: 1.5rem; }
.rl-project-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 20rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius-card);
}
.rl-project-slot::before {
  content: "";
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 14rem;
  height: 14rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 50%;
}
.rl-project-slot span { position: relative; font-size: 0.7rem; font-weight: 760; letter-spacing: 0.12em; text-transform: uppercase; }
.rl-project-slot strong { position: relative; margin-top: 0.75rem; max-width: 15ch; font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -0.02em; }
.rl-project-slot i { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.4rem; font-style: normal; }

/* ---------- S22 CMS ---------- */

.rl-cms-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.rl-cms-inner > div p { margin-top: 1.1rem; color: var(--muted); }
.rl-cms-list { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.rl-cms-list li { position: relative; padding-left: 1.2rem; color: var(--ink-soft); font-weight: 600; }
.rl-cms-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--brand); }

/* ---------- S23 FAQ ---------- */

.rl-faq-head { max-width: 40rem; }

/* ---------- S24 Abschluss ---------- */

.rl-closing { padding-block: clamp(1.25rem, 3vw, 2.5rem); background: var(--bg); }
.rl-closing-inner {
  position: relative;
  min-height: min(34rem, 70svh);
  padding: clamp(3rem, 7vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden;
  color: var(--on-dark);
  background: var(--ink-bg);
  border-radius: var(--radius-card);
}
.rl-closing-inner::after {
  content: "";
  position: absolute;
  right: -9rem;
  bottom: -12rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 50%;
}
.rl-closing h2 { max-width: 16ch; color: var(--on-dark); position: relative; }
.rl-closing-inner > div:first-child > p:last-child { max-width: 36rem; margin-top: 1.25rem; color: var(--on-dark-muted); font-size: 1.1rem; position: relative; }
.rl-closing-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html.js .rl-hero-visual .rl-browser { opacity: 1; transform: none; animation: none; }
  .rl-screen { transition: none; }
}

/* ---------- Mobil (< 900px) ---------- */

@media (max-width: 900px) {
  .rl-hero-grid { grid-template-columns: 1fr; }
  .rl-hero-visual { order: -1; max-width: 30rem; margin: 0 auto; }
  .rl-problem-grid { grid-template-columns: 1fr; }
  .rl-check-layout { grid-template-columns: 1fr; }
  .rl-check-sticky { position: static; }
  .rl-check-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
  }
  .rl-check-tab { flex: 0 0 auto; min-width: 12rem; border-left: 0; border-bottom: 3px solid transparent; }
  .rl-check-tab[aria-selected="true"] { border-bottom-color: var(--brand); }
  .rl-check-mockup { order: -1; margin-bottom: 1.5rem; }
  .rl-keep-grid { flex-direction: column; }
  .rl-keep-arrow { transform: rotate(90deg); }
  .rl-beforeafter-grid { grid-template-columns: 1fr; }
  .rl-layers-grid { grid-template-columns: repeat(2, 1fr); }
  .rl-content-children { grid-template-columns: repeat(2, 1fr); }
  .rl-structure-grid { grid-template-columns: 1fr; }
  .rl-brand-stages { flex-direction: column; }
  .rl-brand-arrow { transform: rotate(90deg); }
  .rl-mobile-grid { grid-template-columns: 1fr; }
  .rl-mobile-visual { order: -1; }
  .rl-performance-grid { flex-direction: column; }
  .rl-performance-arrow { transform: rotate(90deg); }
  .rl-seo-list { grid-template-columns: repeat(2, 1fr); }
  .rl-conversion-list { grid-template-columns: repeat(2, 1fr); }
  .rl-migration-list { grid-template-columns: repeat(2, 1fr); }
  .rl-process-layout { grid-template-columns: 1fr; }
  .rl-process-intro { position: static; }
  .rl-decision-grid { grid-template-columns: 1fr; }
  .rl-scope-grid { grid-template-columns: repeat(2, 1fr); }
  .rl-projects-layout { grid-template-columns: 1fr; }
  .rl-project-slot { order: -1; }
  .rl-cms-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .rl-problem-list { grid-template-columns: 1fr; }
  .rl-mobile-list { grid-template-columns: 1fr; }
  .rl-layers-grid { grid-template-columns: 1fr; }
  .rl-content-children { grid-template-columns: 1fr; }
  .rl-content-children::before { display: none; }
  .rl-content-children .rl-content-node::before { left: 1.4rem; }
  .rl-seo-list { grid-template-columns: 1fr; }
  .rl-conversion-list { grid-template-columns: 1fr; }
  .rl-migration-list { grid-template-columns: 1fr; }
  .rl-scope-grid { grid-template-columns: 1fr; }
  .rl-decision-cta { flex-direction: column; align-items: flex-start; }
  .rl-closing-actions { flex-direction: column; align-items: flex-start; }
}
