/* Ratgeber — gemeinsames Stylesheet für alle Seiten unter /ratgeber/
   Designsprache übernommen aus index.html / hilfe.html */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.7;
}

/* ---------- Navigationsleiste (identisch zur Startseite) ---------- */

/* Nur die Hauptnavigation ansprechen — die Brotkruemelnavigation
   ist ebenfalls ein <nav> und darf nicht mit fixiert werden. */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  transition: box-shadow 0.3s;
}
#nav.scrolled {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.04);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 800;
  font-size: 20px;
  color: #1a3a5c;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}
.nav-logo small {
  font-weight: 500;
  font-size: 13px;
  color: #64748b;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
  margin: 0;
}
.nav-links li {
  margin: 0;
}
.nav-links a {
  text-decoration: none;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #1a3a5c;
}
.nav-links a.active {
  color: #1a3a5c;
  font-weight: 700;
}
.nav-cta {
  background: #1a3a5c;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: #2d5f8b;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1e293b;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Kopfbereich ---------- */

.rg-header {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5f8b 100%);
  color: #fff;
  /* 64px Navigationshoehe + 20px Abstand */
  padding: 84px 24px 32px;
}
.rg-header .inner {
  max-width: 800px;
  margin: 0 auto;
}
.rg-header .logo-link {
  display: inline-block;
  transition: transform 0.2s;
}
.rg-header .logo-link:hover {
  transform: scale(1.05);
}
.rg-header .logo-link img {
  width: 48px;
  height: 48px;
  display: block;
}

.breadcrumb {
  font-size: 13px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.65);
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}
.breadcrumb span {
  margin: 0 6px;
}

.rg-header h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  margin: 14px 0 10px;
}
.rg-header .lead {
  font-size: 16px;
  opacity: 0.88;
  max-width: 680px;
}
.rg-header .meta {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 14px;
}

/* ---------- Inhalt ---------- */

.rg-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}

.rg-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1a3a5c;
  margin: 40px 0 14px;
  line-height: 1.35;
  scroll-margin-top: 16px;
}
.rg-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #334155;
  margin: 26px 0 8px;
}
.rg-content p {
  margin-bottom: 14px;
}
.rg-content a {
  color: #2d5f8b;
}
.rg-content ul,
.rg-content ol {
  margin: 0 0 16px 22px;
}
.rg-content li {
  margin-bottom: 7px;
}
.rg-content strong {
  color: #1a3a5c;
}

/* Inhaltsverzeichnis */
.toc {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 8px;
}
.toc h2 {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}
.toc ol {
  list-style: none;
  margin: 0;
  counter-reset: toc;
}
.toc li {
  margin-bottom: 6px;
  counter-increment: toc;
}
.toc li::before {
  content: counter(toc) ".";
  color: #94a3b8;
  font-weight: 600;
  margin-right: 8px;
}
.toc a {
  color: #1a3a5c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.toc a:hover {
  text-decoration: underline;
}

/* Tabelle */
.rg-table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  font-size: 14.5px;
}
thead {
  background: #f1f5f9;
}
th {
  text-align: left;
  padding: 11px 14px;
  font-weight: 700;
  color: #1a3a5c;
  font-size: 13.5px;
  border-bottom: 1px solid #e2e8f0;
}
td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: none;
}
td.num {
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Hinweiskästen */
.box {
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14.5px;
  border: 1px solid;
}
.box p:last-child {
  margin-bottom: 0;
}
.box .box-title {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.box-info {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}
.box-info .box-title {
  color: #1a3a5c;
}
.box-warn {
  background: #fef6e7;
  border-color: #f5d9a0;
  color: #6b4e16;
}
.box-warn .box-title {
  color: #8a5a00;
}
.box-legal {
  background: #fff;
  border-color: #e2e8f0;
  color: #64748b;
  font-size: 13px;
}
.box-legal .box-title {
  color: #64748b;
}

/* Frage-Antwort-Block */
.faq {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px 22px;
  margin-bottom: 18px;
}
.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
}
.faq-item p {
  font-size: 14.5px;
  color: #475569;
  margin-bottom: 0;
}

/* Call-to-Action */
.cta-block {
  margin: 44px 0 0;
  padding: 32px 24px;
  text-align: center;
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5f8b 100%);
  color: #fff;
  border-radius: 16px;
}
.cta-block h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}
.cta-block p {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 20px;
}
.cta-block .btn {
  display: inline-block;
  background: #fff;
  color: #1a3a5c;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.cta-block .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.cta-block .sub {
  display: block;
  font-size: 13px;
  opacity: 0.7;
  margin-top: 12px;
}

/* Weiterführende Links */
.related {
  margin-top: 44px;
}
.related h2 {
  font-size: 18px;
  margin-bottom: 14px;
}
.related ul {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 10px;
}
.related li {
  margin: 0;
}
.related a {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: #1a3a5c;
  font-weight: 600;
  font-size: 15px;
  transition: box-shadow 0.2s;
}
.related a:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.related a .desc {
  display: block;
  font-weight: 400;
  font-size: 13.5px;
  color: #64748b;
  margin-top: 3px;
}

/* Übersichtsseite */
.rg-index-list {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 12px;
}
.rg-index-list li {
  margin: 0;
}
.rg-index-list a {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 22px;
  text-decoration: none;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.rg-index-list a:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}
.rg-index-list .t {
  display: block;
  font-weight: 700;
  color: #1a3a5c;
  font-size: 16px;
  margin-bottom: 4px;
}
.rg-index-list .d {
  display: block;
  color: #64748b;
  font-size: 14px;
}

/* ---------- Fußbereich ---------- */

.rg-footer {
  background: #0f1d2f;
  color: rgba(255, 255, 255, 0.5);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
}
.rg-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin: 0 8px;
}
.rg-footer a:hover {
  color: #fff;
}
.rg-footer .legal {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.7;
}

/* ---------- Mobil ---------- */

/* Gleicher Umbruchpunkt wie auf der Startseite */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.06),
      0 4px 12px rgba(0, 0, 0, 0.04);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .nav-cta {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .rg-header h1 {
    font-size: 24px;
  }
  .rg-header .lead {
    font-size: 15px;
  }
  .rg-content {
    padding: 24px 18px 56px;
  }
  .rg-content h2 {
    font-size: 19px;
    margin-top: 32px;
  }
  table {
    font-size: 13.5px;
  }
  th,
  td {
    padding: 9px 11px;
  }
}
