/* ============================================================
   Rosenberg & Kollegen – Design System
   Basiert auf wordpress-pages.css
   ============================================================ */

/* ── CSS VARIABLEN ── */
:root {
  --navy: #1b4f8a;
  --navy-dark: #0d1f3c;
  --navy-darker: #080f1e;
  --gold: #b8860b;
  --gold-light: #d4a017;
  --blue-light: #eef3fa;
  --blue-lighter: #f5f8fd;
  --border: #dde4ee;
  --text: #1a1a1a;
  --text-light: #666;
  --text-muted: #999;
  --white: #fff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', Arial, sans-serif;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

/* ── BASE ── */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: var(--navy);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
}

/* ── BUTTONS ── */
.btn-primary,
.cta-btn-primary {
  background: var(--gold);
  color: var(--white) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 4px;
  display: inline-block;
  transition: opacity 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover,
.cta-btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary,
.cta-btn-secondary {
  background: transparent;
  color: var(--navy);
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 4px;
  border: 1px solid var(--navy);
  display: inline-block;
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: var(--blue-light);
}

.cta-btn-secondary {
  color: #a0b8d4;
  border-color: #2d4f72;
}

/* ── LABELS ── */
.section-label,
.sidebar-label,
.mini-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}

/* ── PAGE HERO ── */
.page-hero,
.page-hero-topics {
  background: var(--blue-light);
  padding: 64px 40px 56px;
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--navy);
}

.breadcrumb span {
  margin: 0 6px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.22;
  color: var(--navy-dark);
  font-weight: 400;
  margin-bottom: 16px;
}

.page-intro {
  max-width: 700px;
  font-size: 16px;
  color: #4a5568;
  line-height: 1.7;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ── PAGE SHELL (Content + Sidebar) ── */
.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  padding: 48px 40px 68px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

/* Ohne Sidebar: volle Breite */
.page-shell.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 760px;
}

/* ── PAGE CONTENT (Artikeltext) ── */
.page-content {
  background: var(--white);
}

.page-content > :first-child {
  margin-top: 0;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  font-family: var(--font-display);
  color: var(--navy-dark);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 12px;
}

.page-content h2 {
  font-size: 26px;
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.page-content h3 {
  font-size: 20px;
  margin-top: 28px;
}

.page-content h4 {
  font-size: 16px;
  margin-top: 22px;
}

.page-content p,
.page-content ul,
.page-content ol,
.page-content blockquote,
.page-content figure,
.page-content table {
  margin-bottom: 16px;
}

.page-content p,
.page-content li,
.page-content td,
.page-content th {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.75;
}

.page-content strong,
.page-content b {
  color: var(--navy-dark);
  font-weight: 500;
}

.page-content ul,
.page-content ol {
  padding-left: 22px;
}

.page-content li + li {
  margin-top: 6px;
}

.page-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content a:hover {
  color: var(--gold);
}

.page-content img {
  margin: 14px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.page-content blockquote {
  background: var(--blue-light);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--navy-dark);
}

/* ── TABELLEN ── */
.page-content table {
  width: 100%;
  border-collapse: collapse;
}

.page-content th {
  background: var(--blue-light);
  color: var(--navy-dark);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.page-content th,
.page-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.page-content tr:nth-child(even) td {
  background: var(--blue-lighter);
}

/* ── SIDEBAR ── */
.page-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 88px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.sidebar-card h3 {
  font-family: var(--font-display);
  color: var(--navy-dark);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 14px;
}

/* Kontakt-Sidebar-Karte */
.sidebar-card.contact-card {
  background: var(--blue-light);
  border-color: var(--navy);
}

.sidebar-phone,
.sidebar-mail {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--navy-dark);
  font-weight: 500;
}

.sidebar-address {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* TOC / Nav-Links in Sidebar */
.toc-links,
.sidebar-links {
  list-style: none;
  padding: 0;
}

.toc-links li + li,
.sidebar-links li + li {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.toc-links a,
.sidebar-links a {
  font-size: 14px;
  color: #444;
  text-decoration: none;
}

.toc-links a:hover,
.sidebar-links a:hover {
  color: var(--navy);
}

/* ── FEATURE / LEISTUNGS-KARTEN ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--navy);
  overflow: hidden;
  transition: border-top-color 0.15s, box-shadow 0.15s;
}

.feature-card:hover {
  border-top-color: var(--gold);
  box-shadow: 0 4px 20px rgba(27, 79, 138, 0.08);
}

.feature-card-body {
  padding: 24px;
}

.feature-card h3 {
  font-family: var(--font-display);
  color: var(--navy-dark);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.feature-card-body a.card-link {
  margin-top: 14px;
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
}

/* ── TESTIMONIALS ── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 3px solid var(--gold);
}

.testi-stars {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testi-quote {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  font-style: italic;
  margin-bottom: 16px;
}

.testi-name {
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
  display: block;
}

.testi-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

/* ── CTA SECTION ── */
.cta-section {
  background: var(--navy-dark);
  padding: 68px 40px;
  text-align: center;
}

.cta-section .section-label {
  color: var(--gold);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.25;
}

.cta-section h2 em {
  font-style: italic;
}

.cta-sub {
  font-size: 15px;
  color: #7a9bbf;
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  justify-content: center;
}

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: var(--blue-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.highlight-box p {
  font-size: 15px;
  color: var(--navy-dark);
  margin: 0;
}

/* ── INFO KARTEN (3er-Reihe) ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.info-card {
  background: var(--blue-lighter);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.info-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--navy-dark);
  font-weight: 400;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}

/* ── FAQ / DETAILS ── */
.faq-list {
  margin: 24px 0;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--blue-lighter);
  overflow: hidden;
  margin-bottom: 10px;
}

.faq-list details[open] {
  background: var(--white);
  border-color: var(--navy);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  color: var(--navy-dark);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-display);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::after {
  content: '+';
  font-size: 20px;
  color: var(--gold);
  font-family: var(--font-body);
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list details p,
.faq-list details ul {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.75;
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    position: static;
  }

  .feature-grid,
  .info-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero,
  .page-hero-topics {
    padding: 48px 20px 40px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .page-shell {
    padding: 32px 20px 48px;
  }

  .cta-section {
    padding: 48px 20px;
  }

  .cta-section h2 {
    font-size: 26px;
  }
}
