/* Ratgeber – serverseitige Seiten unter /ratgeber (server/ratgeber.ts). Kein JavaScript.
   Markenlook wie die Startseite (src/styles.css :root + src/styles/w4-landing.css): Papierweiß, Tinte, Ultraviolett,
   Lime; Überschriften in Bricolage Grotesque, Text in Inter (beide selbst gehostet unter /fonts, font-src 'self').
   Bei Änderungen an den Farben dort hier nachziehen. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter.woff2') format('woff2');
}

:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --surface-2: #efece5;
  --text: #16151a;
  --muted: #67636d;
  --border: #e8e4db;
  --border-strong: #d4cfc4;
  --line: rgb(22 21 26 / 0.09);
  --accent: #5b3cf5;
  --accent-hover: #4a2be0;
  --accent-soft: #eeeafe;
  --accent-text: #ffffff;
  --lime: #d7ff5c;
  --lime-ink: #1b2104;
  --violet-deep: #2b1a8f;
  --ink: #16151a; /* Fußzeile, aktiver Filter */
  --ink-text: #f6f4ef;
  --ink-muted: rgb(246 244 239 / 0.68);
  --glass: rgb(246 244 239 / 0.82);
  --grad-violet: linear-gradient(140deg, #7b5cff 0%, #5b3cf5 42%, #2b1a8f 100%);
  --ring: 0 0 0 3px rgb(91 60 245 / 0.3);
  --shadow-card: 0 30px 60px -28px rgb(43 26 143 / 0.35), 0 2px 6px rgb(22 21 26 / 0.05);
  --font-display: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 26px;
  --r-lg: 36px;
  --max: 1240px;
  --measure: 40rem;
  --gutter: 16px;
  --top-h: 64px;
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --icon-bulb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.6.5 1.1 1.3 1.1 2.2h5c0-.9.5-1.7 1.1-2.2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");
  accent-color: var(--accent);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d12;
    --card: #17161d;
    --surface-2: #201e27;
    --text: #f3f1ec;
    --muted: #a5a1ad;
    --border: #2a2832;
    --border-strong: #3a3744;
    --line: rgb(255 255 255 / 0.09);
    --accent: #9a86ff;
    --accent-hover: #b3a4ff;
    --accent-soft: #241d45;
    --accent-text: #120d26;
    --ink: #08070b;
    --glass: rgb(14 13 18 / 0.78);
    --ring: 0 0 0 3px rgb(154 134 255 / 0.4);
    --shadow-card: 0 30px 60px -28px rgb(0 0 0 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.04);
    color-scheme: dark;
  }
}

@media (min-width: 641px) {
  :root {
    --gutter: 28px;
  }
}
@media (min-width: 768px) {
  :root {
    --top-h: 76px;
  }
}
@media (min-width: 1100px) {
  :root {
    --gutter: 40px;
  }
}

/* ---------- Basis ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + 20px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(520px 380px at 88% -60px, rgb(123 92 255 / 0.16), transparent 70%),
    radial-gradient(420px 300px at -40px 0, rgb(215 255 92 / 0.18), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 1rem / 1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--accent);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  overflow-wrap: break-word;
}
p {
  text-wrap: pretty;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--lime);
  color: var(--lime-ink);
}
.rg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.rg-skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.rg-skip:focus {
  top: 12px;
}
.rg-ico {
  width: 16px;
  height: 16px;
  flex: none;
}
.rg-nobr {
  white-space: nowrap;
}

/* Inhaltsspalte wie auf der Startseite */
.rg-wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- Kopfzeile (wie die Startseite: Glas, Logo-Kachel, Tinten-Knopf) ---------- */

.rg-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.rg-top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--top-h);
  padding-top: env(safe-area-inset-top);
}
.rg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font: 800 1.1875rem / 1 var(--font-display);
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.rg-logo {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #7b5cff 0%, #5b3cf5 50%, #3a20c9 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25);
  color: #fff;
}
.rg-logo svg {
  width: 20px;
  height: 20px;
}
.rg-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.rg-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.rg-nav-link:hover {
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
.rg-nav-link.is-active {
  box-shadow: inset 0 -2px 0 var(--lime);
  border-radius: 0;
}
@media (max-width: 480px) {
  .rg-top-in {
    gap: 8px;
  }
  .rg-brand {
    font-size: 1.0625rem;
  }
  .rg-nav {
    gap: 2px;
  }
  .rg-nav-link {
    padding: 0 9px;
    font-size: 0.875rem;
  }
  .rg-top .rg-btn-sm {
    padding: 0 14px;
  }
}
@media (max-width: 374px) {
  .rg-brand-name {
    display: none;
  }
}

/* ---------- Knöpfe ---------- */

.rg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6a4dff 0%, #5b3cf5 45%, #4422d8 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 18px 34px -16px rgb(91 60 245 / 0.75),
    inset 0 1px 0 rgb(255 255 255 / 0.28);
  transition:
    transform 0.12s var(--ease),
    filter 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.rg-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.rg-btn:active {
  transform: scale(0.98);
}
.rg-btn-sm {
  min-height: 40px;
  padding: 0 16px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.875rem;
  box-shadow: none;
}
.rg-btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
}
.rg-btn-ghost:hover {
  filter: none;
  box-shadow: inset 0 0 0 1.5px var(--text);
}
.rg-btn-light {
  background: #fff;
  color: var(--violet-deep);
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.55);
}
.rg-btn .rg-arrow {
  width: 18px;
  height: 18px;
}

/* ---------- Übersicht ---------- */

.rg-main {
  padding-bottom: 8px;
}
.rg-intro {
  padding: 40px 0 8px;
}
@media (min-width: 768px) {
  .rg-intro {
    padding-top: 72px;
  }
}
.rg-intro h1 {
  max-width: 14ch;
  margin: 0 0 22px;
  font-size: clamp(2.75rem, 1.2rem + 6.4vw, 6.25rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
/* Textmarker in Lime (wie auf der Startseite) */
.rg-grad {
  padding: 0 0.06em;
  border-radius: 0.06em;
  background: linear-gradient(transparent 0 16%, var(--lime) 16% 92%, transparent 92%);
  color: var(--lime-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.rg-sub {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
}
.rg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rg-kicker::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 2px var(--text);
}

/* Kategorien als Filter-Links */
.rg-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
}
.rg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    color 0.2s var(--ease);
}
.rg-chip span {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rg-chip:hover {
  box-shadow: inset 0 0 0 1.5px var(--text);
}
.rg-chip[aria-current] {
  background: var(--text);
  color: var(--bg);
  box-shadow: none;
}
.rg-chip[aria-current] span {
  color: inherit;
  opacity: 0.7;
}
.rg-empty {
  margin: 40px 0;
  color: var(--muted);
}

/* ---------- Karten: Computer 3 Spalten, Tablet 2, Handy 1 ---------- */

.rg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .rg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}
@media (min-width: 1024px) {
  .rg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.rg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  transition:
    transform 0.32s var(--ease-out),
    box-shadow 0.32s var(--ease-out);
}
.rg-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--shadow-card);
}
.rg-card:focus-within {
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--ring);
}
.rg-card:focus-within :focus-visible {
  outline: none;
}
.rg-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.rg-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
/* Hochformat-Bilder: oberen Teil zeigen */
.rg-card-media img.is-portrait {
  object-position: 50% 0;
}
.rg-card:hover .rg-card-media img {
  transform: scale(1.04);
}
.rg-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.rg-card-media .rg-pill {
  position: absolute;
  top: 12px;
  left: 12px;
}
.rg-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 16px;
}
@media (min-width: 768px) {
  .rg-card-body {
    padding: 20px 22px 18px;
  }
}
.rg-card-title {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.rg-card-title a {
  color: var(--text);
  text-decoration: none;
}
/* Link über die ganze Karte spannen: alles ist klickbar, vorgelesen wird nur der Titel */
.rg-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.rg-card-desc {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.rg-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}
.rg-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}
.rg-card-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.rg-arrow {
  transition: transform 0.2s var(--ease);
}
.rg-card:hover .rg-arrow,
.rg-btn:hover .rg-arrow,
.rg-more-all a:hover .rg-arrow {
  transform: translateX(3px);
}

/* ---------- Artikel ---------- */

.rg-crumbs {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  .rg-crumbs {
    margin-top: 36px;
  }
}
.rg-crumbs ol {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rg-crumbs li {
  display: inline-flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
}
.rg-crumbs li + li::before {
  content: '›';
  margin: 0 8px;
  color: var(--border-strong);
}
/* Artikeltitel in den Brotkrümeln: kürzen statt umbrechen */
.rg-crumbs li:last-child {
  flex: 0 1 auto;
  min-width: 0;
}
.rg-crumbs li:last-child span {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.rg-crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.rg-crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

.rg-head {
  max-width: 980px;
  padding: 22px 0 28px;
}
@media (min-width: 768px) {
  .rg-head {
    padding: 32px 0 40px;
  }
}
.rg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.875rem;
}
.rg-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rg-meta .rg-pill:hover {
  filter: brightness(0.96);
}
.rg-head h1 {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  /* nur sehr lange Wörter trennen (deutsche Komposita auf dem Handy) */
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 14 6 6;
}
.rg-lead {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
}

/* Titelbild im Querformat über die volle Breite. Hochformat-Fotos: ganz zeigen, als Foto-Karte auf einem ruhigen Verlauf */
.rg-hero {
  position: relative;
  width: 100%;
  margin: 0 0 36px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--r);
  background: var(--surface-2);
}
@media (min-width: 640px) {
  .rg-hero {
    aspect-ratio: 2 / 1;
    max-height: 520px;
    margin-bottom: 56px;
    border-radius: var(--r-lg);
  }
}
.rg-hero-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rg-hero.is-portrait {
  background:
    radial-gradient(60% 90% at 12% 8%, rgb(123 92 255 / 0.2), transparent 70%),
    radial-gradient(55% 80% at 92% 100%, rgb(215 255 92 / 0.35), transparent 70%),
    var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.rg-hero.is-portrait .rg-hero-img {
  position: absolute;
  top: 16px;
  left: 50%;
  width: auto;
  height: calc(100% - 32px);
  max-width: calc(100% - 32px);
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 20px 44px -16px rgb(22 21 26 / 0.45);
  transform: translateX(-50%);
}
@media (min-width: 640px) {
  .rg-hero.is-portrait .rg-hero-img {
    top: 28px;
    height: calc(100% - 56px);
    border-radius: 18px;
  }
}
@media (prefers-color-scheme: dark) {
  .rg-hero.is-portrait {
    background:
      radial-gradient(60% 90% at 12% 8%, rgb(154 134 255 / 0.16), transparent 70%),
      radial-gradient(55% 80% at 92% 100%, rgb(215 255 92 / 0.1), transparent 70%),
      var(--card);
  }
  .rg-hero.is-portrait .rg-hero-img {
    box-shadow: 0 20px 44px -16px rgb(0 0 0 / 0.8);
  }
}

/* Text links, Inhaltsverzeichnis rechts (Computer); Handy: Inhaltsverzeichnis über dem Text */
.rg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
@media (min-width: 1080px) {
  .rg-layout {
    grid-template-columns: minmax(0, var(--measure)) 320px;
    justify-content: space-between;
    align-items: start;
    gap: 64px;
  }
  .rg-col {
    grid-column: 1;
    grid-row: 1;
  }
  .rg-side {
    position: sticky;
    top: calc(var(--top-h) + 24px);
    grid-column: 2;
    grid-row: 1;
    display: grid;
    gap: 16px;
  }
}
.rg-col {
  min-width: 0;
}

.rg-toc {
  padding: 20px 22px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.rg-toc-title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rg-toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.rg-toc li {
  counter-increment: toc;
}
.rg-toc a {
  display: flex;
  gap: 12px;
  margin: 0 -10px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.rg-toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  min-width: 1.4em;
  padding-top: 1px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.rg-toc a:hover {
  background: var(--surface-2);
}

.rg-side-cta {
  display: none;
}
@media (min-width: 1080px) {
  .rg-side-cta {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 24px;
    border-radius: var(--r);
    background: var(--grad-violet);
    color: #fff;
  }
  .rg-side-cta::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(215 255 92 / 0.4), transparent 66%);
    pointer-events: none;
  }
  .rg-side-cta p {
    position: relative;
    margin: 0 0 16px;
    font-size: 0.9375rem;
    line-height: 1.5;
    opacity: 0.9;
  }
  .rg-side-cta .rg-side-cta-title {
    margin-bottom: 8px;
    font: 800 1.375rem / 1.1 var(--font-display);
    letter-spacing: -0.02em;
    opacity: 1;
  }
  .rg-side-cta .rg-btn {
    position: relative;
    width: 100%;
    min-height: 46px;
    background: #fff;
    color: var(--violet-deep);
    box-shadow: none;
  }
  .rg-side-cta .rg-side-cta-note {
    margin: 12px 0 0;
    font-size: 0.8125rem;
    text-align: center;
    opacity: 0.8;
  }
}

/* Lesetext: höchstens ~70 Zeichen pro Zeile */
.rg-col {
  max-width: var(--measure);
}
.rg-prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .rg-prose {
    font-size: 1.125rem;
  }
}
.rg-prose > :first-child {
  margin-top: 0;
}
.rg-prose p {
  margin: 0 0 1.15em;
}
.rg-prose h2,
.rg-faq h2 {
  margin: 2em 0 0.55em;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.rg-prose h3 {
  margin: 1.6em 0 0.45em;
  font-size: 1.3125rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.rg-prose ul,
.rg-prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}
.rg-prose li {
  margin: 0.4em 0;
  padding-left: 0.3em;
}
.rg-prose li::marker {
  color: var(--accent);
}
.rg-prose ol li::marker {
  font-weight: 800;
}
.rg-prose strong {
  font-weight: 700;
}
.rg-prose a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.rg-prose a:hover {
  background: var(--lime);
  color: var(--lime-ink);
  text-decoration-color: transparent;
}
/* Tipp-Kasten aus „> **Tipp:** …“ */
.rg-tip {
  position: relative;
  margin: 1.75em 0;
  padding: 20px 22px 20px 60px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--lime) 34%, var(--card));
  color: var(--text);
  font-size: 0.97em;
  line-height: 1.65;
}
@media (prefers-color-scheme: dark) {
  .rg-tip {
    background: color-mix(in srgb, var(--lime) 10%, var(--card));
    box-shadow: inset 0 0 0 1px rgb(215 255 92 / 0.18);
  }
}
.rg-tip::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
  -webkit-mask: none;
  mask: none;
}
.rg-tip::after {
  content: '';
  position: absolute;
  top: 25px;
  left: 23px;
  width: 18px;
  height: 18px;
  background: var(--lime);
  -webkit-mask: var(--icon-bulb) center / contain no-repeat;
  mask: var(--icon-bulb) center / contain no-repeat;
}
.rg-tip p {
  margin: 0 0 0.6em;
}
.rg-tip p:last-child {
  margin-bottom: 0;
}

/* Häufige Fragen */
.rg-faq h2 {
  margin-top: 2.25em;
}
.rg-faq-list {
  border-top: 1px solid var(--line);
}
.rg-faq-item {
  border-bottom: 1px solid var(--line);
}
.rg-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 0;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
.rg-faq-item summary::-webkit-details-marker {
  display: none;
}
.rg-faq-item summary::after {
  content: '';
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2) var(--icon-plus) center / 15px no-repeat;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
@media (prefers-color-scheme: dark) {
  .rg-faq-item summary::after {
    background-color: #f3f1ec;
  }
}
.rg-faq-item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--lime);
}
.rg-faq-a p {
  margin: -4px 0 20px;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- Abschluss-Box „Gratis starten“ (Violett mit Lime, in beiden Modi) ---------- */

.rg-cta {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 64px 0;
  padding: 36px 24px 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--grad-violet);
  color: #fff;
}
.rg-cta::before {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(215 255 92 / 0.42), transparent 66%);
  pointer-events: none;
}
.rg-cta-text {
  position: relative;
}
.rg-cta-badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rg-cta h2 {
  max-width: 16ch;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.rg-cta p {
  max-width: 46ch;
  margin: 0 0 24px;
  font-size: 1.0625rem;
  line-height: 1.55;
  opacity: 0.9;
}
.rg-cta .rg-cta-note {
  margin: 14px 0 0;
  font-size: 0.875rem;
  opacity: 0.78;
}
.rg-cta-pics {
  position: relative;
  height: 236px;
  margin-top: 8px;
}
.rg-cta-pics img {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 116px;
  height: 174px;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.5);
}
.rg-cta-pics img:nth-child(1) {
  transform: translateX(-118%) rotate(-8deg);
}
.rg-cta-pics img:nth-child(2) {
  z-index: 1;
  top: 22px;
  transform: translateX(-50%);
}
.rg-cta-pics img:nth-child(3) {
  transform: translateX(18%) rotate(8deg);
}
@media (min-width: 768px) {
  .rg-cta {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    margin: 96px 0;
    padding: clamp(40px, 5vw, 72px);
  }
  .rg-cta-pics {
    height: 290px;
    margin: 0;
  }
  .rg-cta-pics img {
    top: 50%;
    width: 156px;
    height: 234px;
  }
  .rg-cta-pics img:nth-child(1) {
    transform: translate(-115%, -50%) rotate(-9deg);
  }
  .rg-cta-pics img:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -54%);
  }
  .rg-cta-pics img:nth-child(3) {
    transform: translate(15%, -50%) rotate(9deg);
  }
}

/* ---------- Weitere Artikel, 404 ---------- */

.rg-more {
  margin: 56px 0 32px;
}
@media (min-width: 768px) {
  .rg-more {
    margin-top: 88px;
  }
}
.rg-section-head h2 {
  max-width: 16ch;
  margin: 0 0 10px;
  font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.rg-section-head p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}
.rg-more-all {
  margin: 28px 0 0;
}
.rg-more-all a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
}
.rg-404 {
  padding-bottom: 16px;
}
.rg-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

/* ---------- Fußzeile (wie die Startseite: Tinte, Lime-Überschriften) ---------- */

.rg-foot {
  margin-top: 24px;
  padding: 56px 0 calc(32px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--ink-muted);
  font-size: 0.875rem;
}
@media (prefers-color-scheme: dark) {
  .rg-foot {
    box-shadow: inset 0 1px 0 var(--line);
  }
}
.rg-foot .rg-brand {
  color: var(--ink-text);
  font-size: 1.375rem;
}
.rg-foot-top {
  display: grid;
  gap: 32px;
  margin-bottom: 36px;
}
@media (min-width: 760px) {
  .rg-foot-top {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}
.rg-foot-claim {
  max-width: 30em;
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.rg-foot-title {
  margin: 0 0 12px;
  color: var(--lime);
  font: 700 0.8125rem / 1 var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rg-foot-nav,
.rg-legal {
  display: grid;
  justify-items: start;
  gap: 2px;
}
.rg-foot-nav a,
.rg-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink-text);
  font-size: 0.9375rem;
  text-decoration: none;
  opacity: 0.86;
}
.rg-foot a:hover {
  opacity: 1;
  color: var(--ink-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 759px) {
  .rg-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
  }
}
.rg-foot-bottom {
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.rg-note,
.rg-copy {
  max-width: 75ch;
  margin: 0 0 6px;
  font-size: 0.8125rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  .rg-card:hover,
  .rg-card:hover .rg-card-media img {
    transform: none;
  }
}
