/* Guet gfunde · Impressum und Datenschutz (zu assets/js/seite-recht.js)
   Technisches Inhaltsverzeichnis mit Abschnittsnummern, Lesezeit aus der Wortzahl, Lesefortschritt,
   Tastaturkürzel J und K. Platzhalter in eckigen Klammern werden sichtbar markiert. */
.seite-recht { --r-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --r-haus: cubic-bezier(.2,.7,.2,1); }

.r-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: 1.4rem; font: 500 .78rem/1.5 var(--r-mono); color: var(--fg-muted); }
.r-meta span { white-space: nowrap; }
.r-meta b { color: var(--fg); font-weight: 600; }
.r-meta span + span::before { content: "/"; margin-right: 1.1rem; opacity: .4; }

.r-raster { display: grid; grid-template-columns: minmax(0, 70ch) minmax(14rem, 18rem); justify-content: space-between; gap: 3rem; align-items: start; }
.r-raster > .prose { grid-column: 1; grid-row: 1; }
.r-inhalt { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--nav-h, 76px) + 1.5rem); }
@media (max-width: 1023px) {
  .r-raster { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .r-inhalt { grid-column: 1; position: static; }
  .r-raster > .prose { grid-row: 2; }
}

.r-inhalt { font-family: var(--r-mono); border: 1px solid var(--line); border-radius: 0; padding: 1rem 1rem .9rem; background: var(--paper); }
.r-inhalt__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 .7rem; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
.r-inhalt__kopf b { color: var(--accent-text); font-weight: 600; letter-spacing: 0; }
.r-balken { height: 2px; background: var(--line); margin-bottom: .8rem; overflow: hidden; border-radius: 2px; }
.r-balken i { display: block; height: 100%; background: var(--amber-500); transform-origin: 0 50%; transform: scaleX(var(--r-p, 0)); }
.r-inhalt ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.r-inhalt a { display: flex; gap: .7rem; padding: .32rem .45rem; margin-inline: -.45rem; border-radius: 0; text-decoration: none; font-size: .78rem; line-height: 1.35; color: var(--fg-muted);
  transition: background-color .25s var(--r-haus), color .25s; }
.r-inhalt a span:first-child { flex: none; color: var(--accent-text); opacity: .75; }
.r-inhalt a:hover { color: var(--fg); background: rgba(10, 10, 10,.05); }
.r-inhalt a[aria-current="true"] { color: var(--fg); background: rgba(227, 6, 19,.14); }
.r-inhalt a[aria-current="true"] span:first-child { opacity: 1; }
.r-tasten { display: none; margin: .8rem 0 0; padding-top: .7rem; border-top: 1px dashed var(--line); font-size: .7rem; color: var(--fg-muted); align-items: center; gap: .35rem; flex-wrap: wrap; }
.r-tasten kbd { font: 600 .68rem/1 var(--r-mono); display: inline-flex; align-items: center; justify-content: center; min-width: 1.45rem; height: 1.45rem; border-radius: 4px;
  background: #fff; border: 1px solid rgba(10, 10, 10,.16); box-shadow: 0 2px 0 rgba(10, 10, 10,.14); color: var(--fg); transition: transform .15s var(--r-haus), box-shadow .15s; }
.r-tasten kbd.is-druck { transform: translateY(2px); box-shadow: none; border-color: var(--amber-500); }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) { .r-tasten { display: flex; } }

/* Abschnittsnummern */
.seite-recht .prose h2 { scroll-margin-top: calc(var(--nav-h, 76px) + 1.5rem); display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; }
.r-nr { font: 600 .82rem/1 var(--r-mono); color: var(--accent-text); letter-spacing: .02em; padding: .35rem .5rem; border: 1px solid rgba(227, 6, 19,.35); border-radius: 4px; transform: translateY(-.25em); }
.seite-recht .prose h2.is-ziel .r-nr { background: var(--amber-500); color: var(--navy-950); border-color: var(--amber-500); }

.seite-recht .prose h2:focus { outline: none; }

/* Platzhalter sichtbar markieren, Text bleibt unverändert */
.r-platz { background: repeating-linear-gradient(-45deg, rgba(227, 6, 19,.16) 0 6px, rgba(227, 6, 19,.06) 6px 12px); color: inherit; padding: .05em .25em; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(184, 5, 15,.35); }
@media print { .r-inhalt, .r-meta { display: none; } .r-raster { display: block; } .r-platz { background: none; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .r-inhalt a, .r-tasten kbd { transition: none; } }
@media (max-width: 1023px) { .r-balken, .r-inhalt__kopf b { display: none; } }
@media (max-width: 640px) { .r-meta span + span::before { display: none; } .r-meta { gap: .3rem 1rem; } }

/* AGB in vier Sprachen: Sprachwahl unter dem Stand, Hinweis oben im Text der Übersetzungen */
.r-sprachen { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .9rem; font: 600 .78rem/1.5 var(--r-mono); }
.r-sprachen a { color: var(--fg-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.r-sprachen a:hover { color: var(--fg); border-bottom-color: currentColor; }
.r-sprachen a[aria-current="true"] { color: var(--accent-text); border-bottom-color: currentColor; }
.r-uebersetzung { margin: 0 0 2rem; padding: .9rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--amber-500); background: var(--paper); font-size: .92rem; }
@media print { .r-sprachen { display: none; } }
