/* =========================================================
   dyskalkulie-bern.ch – gemeinsames Stylesheet für Website & Blog
   Farben und Grundwerte zentral hier anpassen
   ========================================================= */
:root {
  --beere: #B24A7B;      /* Akzent: Links, Zwischentitel */
  --gruen: #95B761;      /* Zweitfarbe: Aufzählungspunkte, Linien (nicht für Text) */
  --text: #2b2b2b;
  --text-leise: #6b6b6b;
  --hintergrund: #ffffff;
  --flaeche: #f6f8f1;    /* sehr helles Grün für Hinweiskästen */
  --linie: #e8e8e8;
  --breite: 700px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
}

.wrap {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Kopf ===== */
.kopf {
  border-top: 4px solid var(--beere);
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--linie);
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}
.marke:hover { text-decoration: none; }
.marke img { height: 52px; width: auto; display: block; }
.marke span {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.kopf nav {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.kopf nav a { color: var(--text-leise); }
.kopf nav a:hover { color: var(--beere); }
.kopf nav a[aria-current="page"] {
  color: var(--beere);
  text-decoration: underline;
  text-decoration-color: var(--gruen);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ===== Links ===== */
a { color: var(--beere); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Inhalt ===== */
main { padding: 40px 0 56px; }

h1 {
  font-size: 2.1rem;
  color: var(--beere);
  line-height: 1.2;
  margin: 0 0 28px;
 }
h2 {
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--text);
  margin: 2.2em 0 0.6em;
 }
h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 1.8em 0 0.4em;
}
p { margin: 0 0 1em; }

.lead { font-size: 1.25rem; }

/* Aufzählungen mit grünen Punkten */
ul { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.5em; padding-left: 0.2em; }
li::marker { color: var(--gruen); font-size: 1.2em; }

img { max-width: 100%; height: auto; }
figure { margin: 2em 0; }

blockquote {
  margin: 2em 0;
  padding-left: 20px;
  border-left: 3px solid var(--gruen);
  color: var(--text-leise);
  font-style: italic;
}

hr {
  border: none;
  width: 48px;
  height: 3px;
  background: var(--gruen);
  margin: 3em 0;
}

/* Hinweiskasten, z. B. Kontaktaufforderung */
.kasten {
  background: var(--flaeche);
  border-left: 4px solid var(--gruen);
  padding: 20px 24px;
  margin: 2.5em 0 0;
}
.kasten p:last-child { margin-bottom: 0; }

.klein, .datum {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-leise);
}

/* ===== Blog ===== */
.beitragsliste { list-style: none; padding: 0; margin: 0; }
.beitragsliste li {
  padding: 24px 0;
  margin: 0;
  border-bottom: 1px solid var(--linie);
}
.beitragsliste li::marker { content: none; }
.beitragsliste h2 { margin: 2px 0 6px; font-size: 1.35rem; }
.beitragsliste h2 a { color: var(--text); }
.beitragsliste h2 a:hover { color: var(--beere); text-decoration: none; }
.beitragsliste p { margin: 6px 0 0; }
article .datum { display: block; margin-bottom: 6px; }

/* ===== Fuss ===== */
.fuss {
  border-top: 1px solid var(--linie);
  padding: 24px 0 48px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-leise);
}
.fuss a { color: var(--text-leise); }
.fuss a:hover { color: var(--beere); }

/* ===== Handy ===== */
@media (max-width: 600px) {
  body { font-size: 1.05rem; }
  .kopf { padding-top: 20px; }
  .marke img { height: 44px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  main { padding-top: 28px; }
}
