/* ══════════════════════════════════════════════════════════
   PillenKompass — Ratgeber
   Gemeinsames Stylesheet für /ratgeber/ (DE) und später
   /{lang}/{ratgeber-pendant}/.

   Alle Tokens und Komponenten (nav, footer, wrap, card, note,
   disclaimer, btn-primary, cta-section) sind unverändert aus
   index.html bzw. legal/faq.html übernommen. Neu sind nur die
   artikeltypischen Bausteine: breadcrumb, article, toc, key-facts.
   ══════════════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --surface: #fdf7fc;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #ffffff;
  --brand: #7D5070;
  --brand-light: #D4A7C7;
  --brand-surface: #fdf0f9;
  --brand-blue: #0E92CF;
  --cta: #0E92CF;
  --cta-hover: #0A7AB0;
  --link: #0f766e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo:hover { text-decoration: none; }

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #0A6FA0 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 16px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.current { color: var(--text); font-weight: bold; }

/* ── Layout ── */
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0 18px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}

.breadcrumb li::after {
  content: "›";
  margin-left: 6px;
  color: var(--border);
}

.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

/* ── Ratgeber-Kopf ── */
.page-head {
  background: linear-gradient(160deg, #ffffff 0%, var(--brand-surface) 100%);
  padding: 8px 20px 40px;
}

.page-head .inner {
  max-width: 760px;
  margin: 0 auto;
}

.page-label {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.page-head h1 {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 14px;
}

.page-head .lead {
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--muted);
  line-height: 1.6;
}

.page-meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Artikeltext ── */
.article {
  padding: 40px 20px 56px;
}

.article h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: bold;
  margin: 40px 0 12px;
  scroll-margin-top: 70px;
}

.article h2:first-child { margin-top: 0; }

.article h3 {
  font-size: 17px;
  font-weight: bold;
  margin: 26px 0 8px;
}

.article p {
  font-size: 16px;
  margin-bottom: 14px;
}

.article ul, .article ol {
  margin: 0 0 16px 20px;
}

.article li {
  font-size: 16px;
  margin-bottom: 8px;
}

.article strong { font-weight: bold; }

/* ── Hinweisboxen ── */
.disclaimer {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 24px 0;
}

.disclaimer strong { color: var(--text); }
.disclaimer p + p { margin-top: 10px; }

.disclaimer-top {
  background: var(--brand-surface);
  border-color: var(--brand-light);
}

.note {
  border: 1px solid var(--border);
  background: #fafafa;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 15px;
  color: var(--muted);
}

.note strong { color: var(--text); }

/* ── Kernaussagen ── */
.key-facts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 24px 0 32px;
}

.key-facts h2 {
  font-size: 16px;
  margin: 0 0 12px;
}

.key-facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.key-facts li {
  font-size: 15px;
  color: var(--text);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
}

.key-facts li::before {
  content: "·";
  color: var(--brand-light);
  font-size: 22px;
  line-height: 1.1;
  flex-shrink: 0;
}

/* ── Inhaltsverzeichnis ── */
.toc {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 32px;
}

.toc h2 {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.toc ol {
  margin: 0 0 0 18px;
}

.toc li {
  font-size: 15px;
  margin-bottom: 4px;
}

/* ── Artikelkarten (Hub) ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: 8px;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.15s;
}

.article-card:hover { border-color: var(--brand-light); }

.article-card .kicker {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--brand); text-decoration: none; }

.article-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.article-card .more {
  font-size: 14px;
  font-weight: bold;
}

/* ── CTA ── */
.cta-section {
  background: var(--brand-surface);
  border-top: 1px solid var(--brand-light);
  padding: 56px 20px;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: bold;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cta);
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--cta-hover); text-decoration: none; }

.platform-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

/* ── Quellen ── */
.sources {
  font-size: 14px;
  color: var(--muted);
}

.sources ul { margin-left: 20px; }
.sources li { font-size: 14px; margin-bottom: 6px; }

/* ── Footer ── */
footer {
  background: #1f2937;
  color: rgba(255, 255, 255, 0.65);
  padding: 48px 20px 24px;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-logo-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #0A6FA0 100%);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  flex-shrink: 0;
}

.footer-logo-text {
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
}

.footer-brand-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 240px;
  line-height: 1.5;
}

.footer-links-group {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.15s;
}

.footer-col a:hover { color: #ffffff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .page-head { padding: 8px 20px 32px; }
  .article { padding: 32px 20px 44px; }
  .cta-section { padding: 44px 20px; }
  footer { padding: 40px 20px 20px; }
}
