/* Web-Fonts: Bunny Fonts (DSGVO-freundliches, API-kompatibles Mirror).
   Wer Google Fonts direkt einbinden möchte, ersetzt 'fonts.bunny.net' durch
   'fonts.googleapis.com'. */
@import url('https://fonts.bunny.net/css?family=lora:400,400i,600|source-sans-3:400,600&display=swap');

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

/* ─── Seite ─── */
html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', Georgia, serif;
  background-color: #f7f5f0;
  color: #2c2a26;
  line-height: 1.8;
  padding: 4rem 1.5rem 8rem;
}

article {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Absätze ─── */
p {
  margin-top: 1.4em;
  hyphens: auto;
  -webkit-hyphens: auto;
}

p:first-child {
  margin-top: 0;
}

/* ─── Strong als Überschrift ─── */
p > strong:only-child,
strong.titel {
  display: block;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1a1816;
  margin-top: 2.8em;
  margin-bottom: 0.3em;
  line-height: 1.3;
}

/* Erste Überschrift braucht keinen Abstand nach oben */
p:first-child > strong:only-child {
  margin-top: 0;
}

/* ─── Listen ─── */
ul, ol {
  margin: 1.4em 0;
  padding-left: 2.2em;
}

ul {
  list-style-type: '– ';
}

ol {
  list-style-type: decimal;
}

li {
  margin-bottom: 0.45em;
  padding-left: 0.3em;
}

li:last-child {
  margin-bottom: 0;
}

li::marker {
  color: #b5a98e;
  font-family: 'Source Sans 3', system-ui, sans-serif;
}

/* ─── Bilder ─── */
img {
  display: block;
  width: 100%;
  height: auto;
  margin: 2em 0;
  border-radius: 3px;
}

p > img:only-child {
  margin: 2em 0;
}

/* ─── Blockquotes ─── */
blockquote {
  margin: 2.2em 0;
  padding: 1em 1.6em;
  border-left: 3px solid #b5a98e;
  background-color: #f0ede6;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: #4a4640;
}

blockquote p {
  margin-top: 0.8em;
}

blockquote p:first-child {
  margin-top: 0;
}

blockquote cite {
  display: block;
  margin-top: 0.8em;
  font-size: 0.88rem;
  font-style: normal;
  color: #7a7368;
  letter-spacing: 0.02em;
}

/* ─── Links ─── */
a {
  color: #6b5c3e;
  text-decoration: underline;
  text-decoration-color: #c4b89a;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
  color: #3d3020;
  text-decoration-color: #6b5c3e;
}

/* ─── Horizontal Rule / Trenner ─── */
hr {
  border: none;
  border-top: 1px solid #d4ceC4;
  margin: 3.5em auto;
  width: 40%;
}

/* ─── Em / Kursiv ─── */
em {
  font-style: italic;
  color: inherit;
}

/* ─── Disclaimer / Editier-Hinweis am Anfang eines Explainers ─── */
.disclaimer {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #7a7368;
  background-color: #f0ede6;
  border-left: 3px solid #c4b89a;
  padding: 0.7em 1.1em;
  margin: 0 0 2.4em;
  border-radius: 0 4px 4px 0;
}

.disclaimer em {
  font-style: italic;
}

/* ─── Stilisierte Fragesammlung (z. B. in „Politischer Journalismus“) ─── */
blockquote.fragen {
  font-style: normal;
  background-color: #efe9d9;
  border-left-color: #a89668;
}

blockquote.fragen p {
  margin-top: 0.6em;
}

/* ─── Seitentitel (h1 falls vorhanden) ─── */
h1 {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  color: #1a1816;
  margin-bottom: 0.5em;
  letter-spacing: -0.01em;
}

h2, h3 {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1816;
  margin-top: 2.5em;
  margin-bottom: 0.4em;
}

h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; letter-spacing: 0.02em; }

/* ─── Kleiner Untertitel / Datum etc. ─── */
.meta, time, .untertitel {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.85rem;
  color: #8a8278;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2.5em;
}

/* ─── Erste Initiale (optional, schöner Effekt) ─── */
.dropcap::first-letter {
  float: left;
  font-size: 3.8em;
  line-height: 0.78;
  margin-right: 0.08em;
  margin-top: 0.06em;
  font-family: 'Lora', Georgia, serif;
  color: #6b5c3e;
}

/* ─── Scrollbar (dezent) ─── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f0ede6;
}
::-webkit-scrollbar-thumb {
  background: #c4b89a;
  border-radius: 3px;
}

/* ─── Seitennavigation ─── */
#nav-toggle {
  position: fixed;
  top: 1.8rem;
  left: 1.2rem;
  z-index: 100;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0.4;
  transition: opacity 0.2s;
}

#nav-toggle:hover {
  opacity: 0.9;
}

#nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #2c2a26;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

/* Hamburger → X wenn offen */
#side-nav.open #nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#side-nav.open #nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#side-nav.open #nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 220px;
  background-color: #f0ede6;
  border-right: 1px solid #d4cec4;
  padding: 5rem 1.6rem 2rem;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

#side-nav.open #nav-panel {
  transform: translateX(0);
}

#nav-panel .nav-label {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a09890;
  margin-bottom: 0.6em;
}

#nav-panel a {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.92rem;
  color: #4a4640;
  text-decoration: none;
  padding: 0.35em 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
}

#nav-panel a:hover {
  color: #1a1816;
  border-bottom-color: #b5a98e;
}

#nav-panel a[aria-current="page"] {
  color: #1a1816;
  font-weight: 600;
  border-bottom-color: #b5a98e;
}

/* Overlay zum Schließen */
#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
}

#side-nav.open #nav-overlay {
  display: block;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  html { font-size: 16px; }
  body { padding: 2rem 1.2rem 5rem; }
  h1 { font-size: 1.6rem; }

  #nav-toggle {
    top: 1rem;
    left: 0.8rem;
  }
}