/* ============================================================
   deutsch-vorbereitung.com  —  Artikel-Stylesheet
   Marke: Onest (Text) + Source Serif 4 (Zahlen)
   Farben:
     Gruen     #27AE60   hell #D5F5E3
     Gelb      #F1C40F   hell #FFF5CC
     Violett   #8E44AD   hell #E8DAF6
     Blau      #2852B6   hell #D6E4FF
     Orange    #F85628   hell #FEDDD4
     Gold      #F7801E   hell #FEE9D9
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&family=Source+Serif+4:wght@600;700&display=swap');

:root {
  --gruen: #27AE60;        --gruen-hell: #D5F5E3;
  --gelb: #F1C40F;         --gelb-hell: #FFF5CC;
  --violett: #8E44AD;      --violett-hell: #E8DAF6;
  --blau: #2852B6;         --blau-hell: #D6E4FF;
  --orange: #F85628;       --orange-hell: #FEDDD4;
  --gold: #F7801E;         --gold-hell: #FEE9D9;

  --text: #243044;
  --text-weich: #51607a;
  --linie: #e3e8f0;
  --bg-weich: #f7f9fc;

  --font-text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-zahl: 'Source Serif 4', Georgia, serif;
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0 0 1.1em; }
em { font-style: italic; }
strong { font-weight: 700; color: var(--text); }

/* Zahlen-Hilfsklasse: bei Bedarf inline um Zahlen legen,
   z. B. <span class="num">300</span> Punkte */
.num {
  font-family: var(--font-zahl);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  color: #ffffff;
  padding: 64px 24px 72px;
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.exam-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.18;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  display: inline-block;
  font-weight: 600;
  opacity: 0.95;
}
.hero-desc {
  font-size: 19px;
  line-height: 1.55;
  margin: 0;
  max-width: 680px;
  opacity: 0.97;
}

/* ---------- Layout ---------- */
.page-wrap {
  /*max-width: 820px; */
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ---------- Inhaltsverzeichnis ---------- */
.toc {
  background: var(--blau-hell);
  border: 1px solid #c5d4f5;
  border-left: 5px solid var(--blau);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 48px;
}
.toc-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--blau);
  margin-bottom: 12px;
}
.toc ol {
  margin: 0;
  padding-left: 22px;
  counter-reset: toc;
  list-style: none;
}
.toc ol li {
  counter-increment: toc;
  position: relative;
  margin: 8px 0;
  padding-left: 6px;
}
.toc ol li::before {
  content: counter(toc);
  font-family: var(--font-zahl);
  font-weight: 700;
  color: var(--blau);
  position: absolute;
  left: -22px;
}
.toc a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.toc a:hover {
  color: var(--blau);
  border-bottom-color: var(--blau);
}

/* ---------- Sektionen ---------- */
.article-section {
  margin-bottom: 56px;
  scroll-margin-top: 24px;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--linie);
}
.section-num {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blau) 0%, #1d3f93 100%);
  color: #ffffff;
  font-family: var(--font-zahl);
  font-weight: 700;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-header h2 {
  font-size: 27px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.article-h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--orange);
  margin: 32px 0 12px;
}

/* ---------- Listen ---------- */
.article-list {
  margin: 0 0 1.2em;
  padding-left: 24px;
}
.article-list li {
  margin: 8px 0;
  padding-left: 4px;
}
ol.article-list li::marker {
  font-family: var(--font-zahl);
  font-weight: 700;
  color: var(--blau);
}
ul.article-list li::marker { color: var(--orange); }

/* ---------- CTA-Link ---------- */
.cta-link {
  display: inline-block;
  margin: 14px 0 8px;
  background: var(--orange);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 10px;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(248, 86, 40, 0.28);
}
.cta-link:hover { background: #e0431a; transform: translateY(-1px); }

/* ---------- Tabellen ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 28px;
  font-size: 15.5px;
  border: 1px solid var(--linie);
  border-radius: 12px;
  overflow: hidden;
}
.data-table thead th {
  background: var(--blau);
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 13px 16px;
}
.data-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--linie);
  vertical-align: top;
}
.data-table tbody tr:nth-child(even) td { background: var(--bg-weich); }
/* Zahlenspalten erscheinen serifenbetont */
.data-table td:last-child { font-family: var(--font-zahl); font-weight: 600; }

/* ---------- Tipp-Box (gruen) ---------- */
.tip-box {
  background: var(--gruen-hell);
  border: 1px solid #a8e6c1;
  border-left: 5px solid var(--gruen);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 24px 0;
}
.tip-label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gruen);
  margin-bottom: 6px;
}
.tip-box p { margin: 0; }

/* ---------- Regel-Box (gold) ---------- */
.rule-box {
  background: var(--gold-hell);
  border: 1px solid #f6c79a;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 24px 0;
}
.rule-label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
}
.rule-box p { margin: 0; }

/* ---------- FAQ (violett, aufklappbar) ---------- */
.faq-block {
  border: 1px solid var(--linie);
  border-radius: 10px;
  margin: 12px 0;
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-block:hover { border-color: var(--violett); }
.faq-question {
  position: relative;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  background: var(--bg-weich);
  padding: 16px 52px 16px 20px;
  cursor: pointer;
  user-select: none;
}
.faq-question::after {
  content: '+';
  font-family: var(--font-zahl);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  color: var(--violett);
  transition: transform 0.2s;
}
.faq-block.open .faq-question { background: var(--violett-hell); color: var(--violett); }
.faq-block.open .faq-question::after { content: '\2212'; }
.faq-answer {
  display: none;
  padding: 16px 20px 18px;
  color: var(--text-weich);
}
.faq-block.open .faq-answer { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 44px 18px 50px; }
  .hero h1 { font-size: 29px; }
  .hero-desc { font-size: 17px; }
  .page-wrap { padding: 32px 18px 56px; }
  .toc { padding: 20px 20px; }
  .section-header { gap: 14px; }
  .section-num { width: 44px; height: 44px; font-size: 22px; }
  .section-header h2 { font-size: 22px; }
  .article-h3 { font-size: 18px; }
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

.pagetitle h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--orange);
    margin: 32px 0 12px;