/*
 * Reuthal Consulting – Legal Pages Stylesheet
 * Passend zu Sydney Child Theme
 * Verwendung: Als page-impressum.php / page-datenschutz.php etc.
 * Einbinden: Im <head> der jeweiligen PHP-Template-Datei
 * oder über WP-Admin → Design → Customizer → Zusätzliches CSS
 * ================================================================
 */

/* ── RESET & BASIS ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #314F6F;
  --dark:     #1e3248;
  --darker:   #162535;
  --card:     #253d56;
  --inp:      #1a2d3f;
  --gold:     #FFBF00;
  --gold2:    rgba(255,191,0,.55);
  --gold3:    rgba(255,191,0,.12);
  --gold4:    rgba(255,191,0,.07);
  --white:    #ffffff;
  --text:     rgba(255,255,255,.75);
  --text-dim: rgba(255,255,255,.45);
  --border:   rgba(255,191,0,.22);
  --font:     'Calibri', 'Lato', sans-serif;
  --radius:   14px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--gold);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
.rc-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(26,45,63,.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gold);
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.rc-logo {
  font-size: 1.4rem; font-weight: 900;
  color: var(--gold); text-decoration: none; letter-spacing: .5px;
}
.rc-logo span { color: var(--white); font-weight: 300; }
.rc-nav-links a {
  color: var(--gold); text-decoration: none;
  margin-left: 2rem; font-size: .92rem;
  transition: color .2s;
}
.rc-nav-links a:hover { color: var(--white); }
.rc-nav-links a.active {
  color: var(--white);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
}
.rc-nav-burger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer;
}
.rc-nav-burger span {
  display: block; width: 26px; height: 2px;
  background: var(--gold); border-radius: 2px;
}

/* ── PAGE HERO ──────────────────────────────────────────────── */
.rc-legal-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--bg) 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.rc-legal-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 50px,
    rgba(255,191,0,.018) 50px, rgba(255,191,0,.018) 51px
  );
  pointer-events: none;
}
.rc-legal-hero-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 1rem;
  position: relative;
}
.rc-legal-hero-label {
  font-size: .75rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold2);
  margin-bottom: .5rem; position: relative;
}
.rc-legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; color: var(--gold);
  margin-bottom: .8rem; position: relative;
  line-height: 1.2;
}
.rc-legal-hero p {
  color: var(--text-dim);
  max-width: 520px; margin: 0 auto;
  font-size: .97rem; position: relative;
}

/* ── HAUPT-LAYOUT ───────────────────────────────────────────── */
.rc-legal-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}
.rc-legal-wrap.rc-no-sidebar {
  grid-template-columns: 1fr;
  max-width: 780px;
}

/* ── INHALTSBEREICH ─────────────────────────────────────────── */
.rc-legal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.28);
}

/* Überschriften */
.rc-legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin: 2.5rem 0 .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,191,0,.18);
  display: flex; align-items: center; gap: .6rem;
}
.rc-legal-content h2:first-of-type { margin-top: 0; }

.rc-legal-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,191,0,.85);
  margin: 1.8rem 0 .6rem;
}

/* Fließtext */
.rc-legal-content p {
  color: var(--text);
  font-size: .97rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.rc-legal-content p:last-child { margin-bottom: 0; }

/* Links */
.rc-legal-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.rc-legal-content a:hover { color: var(--white); }

/* Listen */
.rc-legal-content ul,
.rc-legal-content ol {
  color: var(--text);
  font-size: .97rem;
  line-height: 1.8;
  margin: .8rem 0 1rem 1.5rem;
}
.rc-legal-content li { margin-bottom: .4rem; }
.rc-legal-content li::marker { color: var(--gold); }

/* Hervorhebungen */
.rc-legal-content strong { color: var(--gold); font-weight: 700; }
.rc-legal-content em     { color: rgba(255,255,255,.65); font-style: italic; }

/* Trennlinie */
.rc-legal-content hr {
  border: none;
  border-top: 1px solid rgba(255,191,0,.15);
  margin: 2rem 0;
}

/* Info-Box (Hinweise, Warnungen) */
.rc-info-box {
  background: var(--gold4);
  border: 1px solid rgba(255,191,0,.28);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.rc-info-box-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.rc-info-box p    { color: var(--text); font-size: .93rem; margin: 0; }

/* Kontakt-Block (z. B. im Impressum) */
.rc-contact-block {
  background: var(--inp);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0;
}
.rc-contact-block .rc-cb-row {
  display: flex; align-items: flex-start;
  gap: .9rem; margin-bottom: .9rem;
  font-size: .95rem; color: var(--text);
}
.rc-contact-block .rc-cb-row:last-child { margin-bottom: 0; }
.rc-contact-block .rc-cb-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .15rem; }
.rc-contact-block .rc-cb-label {
  font-size: .72rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold2);
  margin-bottom: .1rem; display: block;
}
.rc-contact-block a { color: var(--gold); text-decoration: none; }
.rc-contact-block a:hover { text-decoration: underline; }

/* Stand-Hinweis */
.rc-legal-date {
  font-size: .78rem;
  color: var(--text-dim);
  text-align: right;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,191,0,.1);
}

/* Abschnitts-Nummerierung */
.rc-section-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: var(--gold);
  color: #1a2d3f;
  border-radius: 50%;
  font-size: .8rem; font-weight: 900;
  flex-shrink: 0;
}

/* ── INHALTSVERZEICHNIS (Sidebar) ───────────────────────────── */
.rc-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: sticky;
  top: 88px;
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.rc-toc-title {
  font-size: .76rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold2);
  margin-bottom: 1rem; font-weight: 700;
}
.rc-toc ol {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: toc-counter;
}
.rc-toc li {
  counter-increment: toc-counter;
  margin-bottom: .5rem;
}
.rc-toc li::before {
  content: counter(toc-counter) ". ";
  color: var(--gold2);
  font-size: .8rem;
}
.rc-toc a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
  line-height: 1.4;
}
.rc-toc a:hover { color: var(--gold); }
.rc-toc li.active a { color: var(--gold); font-weight: 700; }
.rc-toc-divider {
  border: none;
  border-top: 1px solid rgba(255,191,0,.12);
  margin: 1rem 0;
}
.rc-toc-back {
  display: block;
  text-align: center;
  color: var(--gold2);
  font-size: .82rem;
  text-decoration: none;
  margin-top: 1.2rem;
  padding: .5rem;
  border: 1px solid rgba(255,191,0,.18);
  border-radius: 8px;
  transition: all .2s;
}
.rc-toc-back:hover {
  background: var(--gold3);
  color: var(--gold);
}

/* ── LEERE SEITE PLATZHALTER ────────────────────────────────── */
.rc-placeholder {
  min-height: 280px;
  border: 2px dashed rgba(255,191,0,.22);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1rem;
}
.rc-placeholder-icon { font-size: 3rem; opacity: .4; }
.rc-placeholder-title {
  font-size: 1.05rem;
  color: rgba(255,191,0,.45);
  font-weight: 700;
}
.rc-placeholder-text {
  font-size: .88rem;
  color: var(--text-dim);
  max-width: 380px;
  line-height: 1.6;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.rc-footer {
  background: var(--darker);
  border-top: 2px solid rgba(255,191,0,.18);
  padding: 2.5rem 2rem;
  text-align: center;
}
.rc-footer-links { margin-bottom: .9rem; }
.rc-footer-links a {
  color: var(--gold); text-decoration: none;
  margin: 0 1rem; font-size: .9rem;
  transition: color .2s;
}
.rc-footer-links a:hover { color: var(--white); }
.rc-footer p { color: rgba(255,191,0,.45); font-size: .85rem; line-height: 1.8; }
.rc-footer a { color: var(--gold); text-decoration: none; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 820px) {
  .rc-legal-wrap {
    grid-template-columns: 1fr;
  }
  .rc-toc {
    position: static;
    order: -1;
  }
}
@media (max-width: 600px) {
  .rc-legal-content { padding: 1.8rem 1.4rem; }
  .rc-legal-hero     { padding: 3rem 1.5rem 2.5rem; }
  .rc-nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(26,45,63,.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
  }
  .rc-nav-links.open { display: flex; }
  .rc-nav-links a    { margin: 0 0 1rem; }
  .rc-nav-burger     { display: flex; }
}
