/* =========================================================
   Kanzlei Stapf — Rechtsgebiete-Detailseiten.

   Ersetzt die frühere Bauweise dieser sechs Seiten: rund 60 Inline-Style-
   Attribute pro Seite, ein eigener <style>-Block mit !important-Media-Queries
   und hart kodierte Farben (#A5392A, #141414, #F7F4F1). Die Seiten hingen
   damit an keinem gemeinsamen System: eine Designänderung in style.css kam
   dort nie an, und Farben liefen langsam auseinander.

   Jetzt: style.css liefert Basis, Header, Footer und Buttons, diese Datei
   ergänzt nur das, was es auf den Detailseiten zusätzlich gibt. Alle Farben,
   Schriften und Abstände kommen aus tokens.css.
   ========================================================= */

/* ─── HEADER (Logo links, Navigation rechts) ────────────────
   Die Startseite hat ein zentriertes Logo, weil dort das Hero-Overlay
   hineinschrumpft. Auf Unterseiten gibt es das Overlay nicht, deshalb die
   ruhigere Aufteilung mit `.brand` wie in Impressum und Datenschutz. */
.rg-header {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
}
.rg-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.4rem);
}
.rg-nav .nav-link { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .rg-nav .nav-link:hover { color: var(--ink); }
}
@media (max-width: 900px) {
  .rg-nav .nav__tel--desktop { display: none; }
}
@media (max-width: 900px) {
  .rg-nav { display: none; }
  /* Menüknopf an den rechten Rand, nicht direkt neben das Logo */
  .rg-header .nav__toggle { display: flex; margin-left: auto; }
}

/* ─── HERO ──────────────────────────────────────────────────
   Volle Breite, das Bild trägt. Höhe wächst mit dem Viewport statt in drei
   festen Stufen zu springen. */
.rg-hero {
  position: relative;
  height: clamp(15.5rem, 34vw, 27.5rem);
  overflow: hidden;
  background: var(--hell);
  margin-top: var(--header-h);
}
.rg-hero__bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rg-hero__schleier {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0.14 0.015 30 / 0.82) 0%,
    oklch(0.14 0.015 30 / 0.25) 45%,
    oklch(0.14 0.015 30 / 0.05) 100%
  );
}
.rg-hero__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: clamp(1.75rem, 4vw, 2.9rem);
}
.rg-hero__nr {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 0.85rem;
}
.rg-hero__titel {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--weiss);
  margin: 0;
}

/* ─── LAYOUT: Fließtext + Kontakt-Aside ─────────────────── */
.rg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 1024px) {
  .rg-layout { grid-template-columns: minmax(0, 1fr); }
  .rg-aside { position: static; max-width: 32.5rem; }
}

.rg-lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 1.75rem;
  text-wrap: pretty;
}
.rg-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: oklch(0.34 0.01 40);
  margin: 0 0 1.25rem;
  text-wrap: pretty;
}
.rg-body:last-of-type { margin-bottom: 3rem; }

.rg-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.rg-strich {
  width: 2.75rem;
  height: 2px;
  background: var(--rot);
  margin: 0 0 1.9rem;
}

.rg-gruppen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3.5rem;
}
@media (max-width: 640px) {
  .rg-gruppen { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}
.rg-gruppe__titel {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rot);
  font-weight: 500;
  margin: 0 0 0.75rem;
}
.rg-liste { list-style: none; margin: 0; padding: 0; }
.rg-liste li {
  border-top: 1px solid var(--linie);
  padding: 0.7rem 0;
  font-size: 1rem;
  line-height: 1.45;
  color: oklch(0.34 0.01 40);
}

/* ─── Kontakt-Aside ─────────────────────────────────────── */
.rg-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--hell);
  border-radius: var(--radius);
  padding: 1.9rem 1.75rem;
}
.rg-aside__titel {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.rg-aside__text {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 1.4rem;
}
.rg-aside__tel {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  font-feature-settings: "tnum";
}
.rg-aside__mail {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.94rem;
  color: var(--rot);
  margin-bottom: 0.6rem;
}
.rg-aside .btn { width: 100%; justify-content: center; margin-bottom: 1.1rem; }
.rg-aside__adresse {
  border-top: 1px solid var(--linie);
  padding-top: 1rem;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--muted);
  font-style: normal;
}

.rg-bildhinweis {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ─── Abschluss-Band ────────────────────────────────────── */
.rg-band {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--ink);
  color: var(--weiss);
}
.rg-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.rg-band__text { max-width: 35rem; }
.rg-band__titel {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 0.6rem;
  text-wrap: pretty;
}
.rg-band__sub {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}
.rg-band__aktionen { display: flex; flex-wrap: wrap; gap: 0.75rem; }
