/* news.towet.dev
   Farben und Bausteine nach DESIGN-towet.md (Olibo-Grün, dunkle Slate-Flächen),
   Seitenaufbau nach DESIGN.md und dem Entwurf in entwurf/. */

:root {
  --bg: #0E1822;
  --bg-deep: #0A131B;
  --surface: #1C2934;
  --surface-raised: #24333F;
  --border: #344652;

  --text: #E8EDF2;
  --text-muted: #A8B6BF;
  --text-subtle: #81919D;

  --accent: #5C6437;
  --accent-hover: #737F48;
  --accent-bright: #909A62;
  --accent-soft: #283324;
  --on-accent: #FFFFFF;

  /* Olibo-Metallic nur für Akzente (DESIGN-towet.md, Abschnitt 3.3) */
  --metall-flaeche: linear-gradient(100deg, #56612E 0%, #646F37 50%, #8A9655 76%, #6F7B40 90%, #5F6A34 100%);

  --font-body: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  --radius-card: 12px;
  --radius-control: 9px;
  --lesebreite: 860px;
  --fokus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-bright);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-bright); text-underline-offset: 3px; }
a:hover { color: #A9B37A; }
a:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--fokus); border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
p { margin: 0 0 0.6em; }

/* Für Tastatur und Vorleseprogramme: direkt zum Inhalt */
.springen { position: absolute; left: -9999px; }
.springen:focus { left: 16px; top: 8px; padding: 8px 12px; background: var(--surface); z-index: 10; }

/* --- Kopfzeile ------------------------------------------------------------ */

.kopf {
  max-width: var(--lesebreite);
  margin: 0 auto;
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.marke { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.marke:hover { color: var(--text); }
.marke img { width: 40px; height: 40px; }
.marke-name { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

.marke-zusatz {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.menue { margin-left: auto; display: flex; gap: 28px; }
.menue a, .menue-handy nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.menue a:hover { color: var(--text); }
.menue a[aria-current="page"] { color: var(--text); font-weight: 650; }
/* Aktiver Menüpunkt: schmaler Metallbalken darunter */
.menue a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--metall-flaeche);
}

.menue-handy { display: none; margin-left: auto; }
.menue-handy summary { list-style: none; cursor: pointer; padding: 10px 4px; }
.menue-handy summary::-webkit-details-marker { display: none; }
.striche, .striche::before, .striche::after {
  display: block; width: 24px; height: 2px; background: var(--text); border-radius: 1px; content: "";
}
.striche { position: relative; }
.striche::before { position: absolute; top: -7px; }
.striche::after { position: absolute; top: 7px; }
.menue-handy nav {
  position: absolute;
  right: 16px; top: 100%;
  z-index: 5;
  display: flex; flex-direction: column;
  min-width: 220px;
  padding: 8px 16px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.menue-handy nav a { padding: 10px 0; }
.menue-handy nav a[aria-current="page"] { color: var(--text); font-weight: 650; }

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

main { max-width: var(--lesebreite); margin: 0 auto; padding: 24px 24px 48px; }

.zurueck { display: inline-block; font-size: 14px; color: var(--text); text-decoration: none; margin-bottom: 28px; }
.zurueck:hover { color: var(--accent-bright); }

.dachzeile {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.ausgabe-kopf h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.untertitel { font-size: 17px; color: var(--text); }
.meta { font-size: 14px; color: var(--text-subtle); }

.ki-hinweis {
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}

/* Karte "Das Wichtigste auf einen Blick" */
.karte {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
}
.blick { margin: 28px 0 36px; }
.blick h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.blick ul { list-style: none; margin: 0; padding: 0; }
.blick li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.blick li:last-child { border-bottom: 0; padding-bottom: 4px; }
.einstufung { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent-bright); padding-top: 2px; }
.blick li div { border-left: 1px solid var(--border); padding-left: 18px; }
.blick strong { font-size: 17px; font-weight: 650; }
.blick li p { margin: 2px 0 0; font-size: 14px; color: var(--text-muted); }

/* Inhaltsverzeichnis */
.verzeichnis h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.verzeichnis ol {
  list-style: none; margin: 0; padding: 0 0 0 8px;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px;
}
.verzeichnis li a {
  display: flex; gap: 18px;
  padding: 9px 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.verzeichnis li a:hover { color: var(--accent-bright); }
.nr { color: var(--accent-bright); font-weight: 700; }

/* Abschnitte */
.abschnitt { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); scroll-margin-top: 16px; }
.abschnitt h2 { font-size: 26px; font-weight: 700; display: flex; align-items: baseline; margin-bottom: 18px; }
.abschnitt h2 .nr { padding-right: 18px; margin-right: 18px; border-right: 2px solid var(--border); }
.beitrag { margin-bottom: 24px; }
.beitrag h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.quelle, .hinweis { font-size: 13px; font-style: italic; color: var(--text-muted); }
.hinweis { margin-top: -8px; }

/* Kasten "Bedeutung für den Markt" */
.bedeutung {
  margin-top: 12px;
  padding: 14px 18px 12px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-bright);
  border-radius: var(--radius-control);
}
.bedeutung h4 { font-size: 15px; font-weight: 650; color: var(--accent-bright); margin-bottom: 4px; }
.bedeutung p { font-size: 15px; }
.bedeutung p:last-child { margin-bottom: 0; }

.punkte { margin: 8px 0 0; padding-left: 20px; }
.punkte li { margin-bottom: 6px; }
.punkte li::marker { color: var(--accent-bright); }

.quellen ul { margin: 0; padding-left: 20px; font-size: 15px; }

/* --- Archiv und Textseiten ------------------------------------------------ */

.archiv h1, .textseite h1 { font-size: 34px; font-weight: 700; margin: 8px 0 24px; }
.archiv h2 { font-size: 15px; color: var(--text-subtle); font-weight: 650; margin: 24px 0 8px; }
.archiv-liste { list-style: none; margin: 0; padding: 0; }
.archiv-liste a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.archiv-liste a:hover strong { color: var(--accent-bright); }
.archiv-liste strong { font-size: 19px; }
.archiv-liste .untertitel { font-size: 15px; color: var(--text-muted); }

.textseite h2 { font-size: 19px; font-weight: 700; margin: 24px 0 8px; }
.leer { color: var(--text-muted); }

/* --- Fußzeile ------------------------------------------------------------- */

.fuss {
  max-width: var(--lesebreite);
  margin: 0 auto;
  padding: 16px 24px 28px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-subtle);
}
.fuss span { font-weight: 700; color: var(--text); }
.fuss a { color: var(--text-muted); text-decoration: none; }
.fuss a:hover { color: var(--text); }

/* --- Handy ---------------------------------------------------------------- */

@media (max-width: 720px) {
  body { font-size: 15px; }
  .kopf { flex-wrap: wrap; padding: 16px 16px 12px; row-gap: 0; }
  .marke-name { font-size: 20px; }
  /* "Wochenbriefing Einzelhandel" rutscht unter den Namen */
  .marke-zusatz { order: 3; flex-basis: 100%; border-left: 0; padding-left: 50px; margin-top: -8px; font-size: 13px; }
  .menue { display: none; }
  .menue-handy { display: block; }
  main { padding: 16px 16px 40px; }
  .ausgabe-kopf h1, .archiv h1, .textseite h1 { font-size: 26px; }
  .karte { padding: 16px; }
  .blick li { grid-template-columns: 1fr; gap: 2px; }
  .blick li div { border-left: 0; padding-left: 0; }
  .verzeichnis ol { grid-template-columns: 1fr; }
  .abschnitt h2 { font-size: 21px; }
  .abschnitt h2 .nr { padding-right: 12px; margin-right: 12px; }
  .fuss { flex-direction: column; gap: 8px; }
}
