/* BONTRIVO — Ratgeber-Seiten (z. B. /quandoo-alternative). Baut auf brand.css auf. */

/* ── Kompakter Hero ─────────────────────────────────────── */

.hero.rg-hero {
  height: auto;
  min-height: 0;
  padding: var(--space-8) 0 calc(var(--space-8) + var(--space-5));
}
@media (min-width: 768px) {
  .hero.rg-hero { padding: var(--space-9) 0 calc(var(--space-9) + var(--space-4)); }
}
.rg-hero .display-xl {
  font-size: clamp(26px, 4.6vw, 50px);
  max-width: 18em;
  hyphens: auto;
  overflow-wrap: break-word;
}
/* Ab Tablet passen auch lange Wörter in eine Zeile — nur am Bindestrich trennen */
@media (min-width: 640px) {
  .rg-hero .display-xl { hyphens: manual; }
}
.rg-hero .hero-overlay {
  background: linear-gradient(180deg, rgba(32,32,30,0.55) 0%, rgba(32,32,30,0.72) 100%);
}

/* ── Brotkrumen ─────────────────────────────────────────── */

.rg-crumbs ol {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  font-size: 13px;
  color: rgba(255,244,231,0.8);
}
.rg-crumbs li + li::before {
  content: "›";
  margin-right: var(--space-2);
  opacity: 0.7;
}
.rg-crumbs a { color: var(--on-dark); text-decoration: none; }
.rg-crumbs a:hover { text-decoration: underline; }

/* ── Status-Hinweis (Countdown) ─────────────────────────── */

.rg-status {
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * var(--space-7));
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-raised);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.rg-status strong { font-size: 17px; color: var(--ink); }
.rg-status span { font-size: 15px; color: var(--ink-muted); }
.rg-status-closed { border-left-color: var(--ink-subtle); }

/* ── Layout mit Inhaltsverzeichnis ──────────────────────── */

section.rg-body { padding-top: var(--space-7); }
.rg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}
@media (min-width: 1020px) {
  .rg-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
  }
  .rg-toc {
    position: sticky;
    top: 104px;
  }
}

.rg-toc {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}
.rg-toc-title {
  margin: 0 0 var(--space-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.rg-toc ol {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.45;
}
.rg-toc li { margin: var(--space-2) 0; color: var(--ink-subtle); }
.rg-toc a { color: var(--ink-muted); text-decoration: none; }
.rg-toc a:hover { color: var(--brand-ink); text-decoration: underline; }

/* ── Fließtext ──────────────────────────────────────────── */

.rg-prose { max-width: 760px; }
.rg-section { scroll-margin-top: 96px; }
.rg-section + .rg-section { margin-top: var(--space-7); }
#faq { scroll-margin-top: 72px; }

.rg-prose h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 var(--space-4);
  hyphens: auto;
  overflow-wrap: break-word;
}
.rg-prose h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--space-2);
}
.rg-prose p,
.rg-prose li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-muted);
}
.rg-prose p { margin: 0 0 var(--space-4); }
.rg-prose strong { color: var(--ink); }
.rg-prose ul,
.rg-prose ol { margin: 0 0 var(--space-4); padding-left: 1.3em; }
.rg-prose li + li { margin-top: var(--space-2); }

/* Häkchen-Liste */
.rg-prose ul.rg-check { list-style: none; padding-left: 0; }
.rg-check li {
  position: relative;
  padding-left: 32px;
}
.rg-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.rg-check li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(0.3em + 4px);
  width: 5px;
  height: 9px;
  border: solid var(--accent-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Nummerierte Schritte */
.rg-prose ol.rg-steps { list-style: none; padding-left: 0; counter-reset: rg-step; }
.rg-steps li {
  position: relative;
  counter-increment: rg-step;
  padding-left: 48px;
  min-height: 34px;
}
.rg-steps li + li { margin-top: var(--space-3); }
.rg-steps li::before {
  content: counter(rg-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--surface-dark);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
}

/* Kacheln im Fließtext */
.rg-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  margin: 0 0 var(--space-5);
}
@media (min-width: 640px) {
  .rg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rg-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.rg-prose .rg-card p { font-size: 15px; line-height: 1.6; margin: 0; }

/* Hinweis-Box */
.rg-note {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: 0 0 var(--space-4);
}
.rg-prose .rg-note p { font-size: 15.5px; margin: 0; }

/* ── Zeitstrahl ─────────────────────────────────────────── */

.rg-prose ol.rg-timeline {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 var(--space-5);
  position: relative;
}
.rg-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.rg-prose .rg-timeline li {
  position: relative;
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
.rg-prose .rg-timeline li + li { margin-top: var(--space-4); }
.rg-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--brand);
}
.rg-timeline li.is-past::before { background: var(--ink-subtle); border-color: var(--ink-subtle); }
.rg-timeline-date {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.rg-timeline li.is-past .rg-timeline-date { color: var(--ink-subtle); }
.rg-timeline strong { font-size: 17px; }
.rg-timeline li > span:last-child { font-size: 15.5px; }

/* ── Tabellen ───────────────────────────────────────────── */

.rg-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}
.rg-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.rg-table caption {
  caption-side: bottom;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: 13px;
  color: var(--ink-subtle);
  border-top: 1px solid var(--border);
}
.rg-table th,
.rg-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
}
.rg-table tbody tr:last-child th,
.rg-table tbody tr:last-child td { border-bottom: 0; }
.rg-table thead th {
  background: var(--surface-sunken);
  color: var(--ink);
  font-weight: 700;
}
.rg-table tbody th { color: var(--ink); font-weight: 700; }
.rg-compare tbody th { width: 26%; }
.rg-compare td:last-child,
.rg-compare thead th:last-child { background: rgba(251, 220, 209, 0.45); color: var(--ink); }
.rg-compare thead th:last-child { background: var(--brand-soft); }

/* Smartphone: Zeilen als Karten statt seitlich scrollender Tabelle */
@media (max-width: 639px) {
  .rg-table-wrap { overflow: visible; }
  .rg-table {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .rg-table caption { order: 1; display: block; }
  .rg-table thead {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .rg-table tbody,
  .rg-table tr,
  .rg-table tbody th,
  .rg-table td { display: block; }
  .rg-table tbody tr {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border);
  }
  .rg-table tbody tr:last-child { border-bottom: 0; }
  .rg-table tbody th,
  .rg-table td {
    width: auto;
    padding: 0;
    border: 0;
  }
  .rg-compare tbody th { width: auto; }
  .rg-table tbody th { margin-bottom: var(--space-3); }
  .rg-table td + td { margin-top: var(--space-2); }
  .rg-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-subtle);
  }
  .rg-compare td:last-child {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    background: var(--brand-soft);
  }
}

/* ── Gäste-Hinweis, Meta, Disclaimer ────────────────────── */

.rg-guest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding: var(--space-5);
  background: var(--surface-sunken);
  border-radius: var(--radius-lg);
}
.rg-prose .rg-guest p { margin: 0; flex: 1 1 280px; font-size: 15.5px; }
.rg-guest .btn { flex-shrink: 0; }

.rg-prose p.rg-meta {
  margin: var(--space-7) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink-subtle);
}

section.rg-faq { background: var(--surface-sunken); }
section.rg-related { padding-top: 0; }
/* brand.css setzt „main .card“ für App-Formulare auf 64px Außenabstand */
.rg-related .card-grid > .card { margin: 0; max-width: none; }
.rg-disclaimer {
  margin: var(--space-7) 0 0;
  font-size: 12.5px;
  color: var(--ink-subtle);
}
