/* Zeitungsdesign (Vorlage: Nachrichten-Theme mit blauer Menüleiste und drei Spalten, gemeinsame Vorlage seit 19.11.2026).
   Original: entwuerfe/magazin-designs/_zeitungsdesign/startseite.css. Nicht im Magazin bearbeiten:
   einrichten.py baut die Datei aus dieser Vorlage plus den Farben aus scripts/design.json neu.
   Gilt für body.zd-seite (Startseite) und body.zd-unterseite; .zd-build = Seite eines Build-Magazins. */
.zd-seite {
  /* Grundwerte; jedes Magazin überschreibt sie am Dateiende */
  --zd-blau: #0f3a5f; --zd-blau-tief: #0a2944; --zd-akzent: #c5312a; --zd-akzent-text: #b02a24; --zd-auf-akzent: #fff;
  --zd-tinte: #141414; --zd-tinte-2: #3a3a3a; --zd-grau: #5f6268; --zd-linie: #e2e4e8; --zd-flaeche: #f3f5f8;
  --zd-titel-schrift: var(--sans, var(--lauf, system-ui)); --zd-ui: var(--sans, var(--lauf, system-ui)); --zd-text-schrift: var(--sans, var(--lauf, system-ui));
  --zd-logo-hoehe: 52px;
  background: #fff; color: var(--zd-tinte);
}
.zd-seite .nur-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.zd-seite .nur-sr:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 999; background: #fff; color: #000; padding: 8px 12px; }
/* Build-Magazine haben keine Grundregel für Bilder: ohne height:auto gilt height=900 aus dem HTML */
.zd-seite img { height: auto; max-width: 100%; }
.zd-bahn { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* Kleinteile */
.zd-rubrik { display: inline-block; font-family: var(--zd-ui); font-size: 12px; font-weight: 700; color: var(--zd-akzent-text); line-height: 1.3; text-transform: none; }
.zd-datum { display: inline-flex; align-items: center; gap: 5px; font-family: var(--zd-ui); font-size: 12.5px; color: var(--zd-grau); line-height: 1.4; }
.zd-datum::before { content: ""; width: 11px; height: 11px; border: 1.6px solid currentColor; border-radius: 50%; box-sizing: border-box; flex: none; opacity: .8; }
.zd-fahne { position: absolute; top: 0; left: 0; z-index: 1; background: var(--zd-akzent); color: var(--zd-auf-akzent); font-family: var(--zd-ui); font-size: 10.5px;
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; line-height: 1.4; }
.zd-knopf { display: inline-flex; align-items: center; justify-content: center; background: var(--zd-akzent); color: var(--zd-auf-akzent) !important; font-family: var(--zd-ui);
  font-size: 13.5px; font-weight: 800; line-height: 1.2; padding: 10px 16px; border-radius: 3px; text-decoration: none; white-space: nowrap; }
.zd-knopf:hover { filter: brightness(1.08); }
.zd-knopf--gross { font-size: 15px; padding: 14px 24px; }
/* Überschrift mit blauem Balken links */
.zd-kopfzeile, .zd-seite .zd-gross, .zd-kasten__kopf { position: relative; font-family: var(--zd-ui); font-size: 17px; font-weight: 800; color: var(--zd-blau);
  margin: 0 0 16px; padding: 0 0 0 13px; line-height: 1.3; text-transform: none; letter-spacing: 0; scroll-margin-top: 20px; background: none; }
.zd-kopfzeile::before, .zd-seite .zd-gross::before, .zd-kasten__kopf::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; background: var(--zd-blau); }

/* Kopf: blaue Menüleiste, darunter Logo und Banner */
.zd-kopf { background: #fff; position: relative; z-index: 60; box-shadow: 0 6px 14px -12px rgba(0,0,0,.35); }
.zd-navleiste { background: var(--zd-blau); }
.zd-navleiste__in { display: flex; align-items: center; gap: 10px; min-height: 46px; }
.zd-nav { display: flex; flex-wrap: wrap; flex: 1 1 auto; }
.zd-nav__link { display: flex; align-items: center; min-height: 46px; padding: 0 13px; font-family: var(--zd-ui); font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; }
.zd-nav__link:first-child { padding-left: 0; }
.zd-nav__link:hover, .zd-nav__link[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.zd-nav__aktion { margin-left: auto; color: #fff; }
.zd-navleiste__suche { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #fff; }
.zd-menueknopf { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.zd-menueknopf span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; transition: transform .25s, opacity .2s; }
.zd-menueknopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.zd-menueknopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.zd-menueknopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.zd-mobil { display: none; }
.zd-kopf__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.zd-logo { margin: 0; line-height: 0; flex: none; }
.zd-logo a { display: inline-block; }
.zd-logo img { display: block; height: var(--zd-logo-hoehe); width: auto; max-width: 100%; }

/* Werbeflächen */
.zd-werbung { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.zd-werbung__hinweis { font-family: var(--zd-ui); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--zd-grau); line-height: 1.4; }
.zd-werbung__link { display: block; max-width: 100%; transition: opacity .2s; }
.zd-werbung__link:hover { opacity: .92; }
.zd-werbung img { display: block; width: 100%; height: auto; }
.zd-werbung--kopf { flex: 0 1 728px; align-items: flex-end; }
.zd-werbung--kopf .zd-werbung__link { width: 728px; }
.zd-werbung--breit { margin: 10px 0 44px; }
.zd-werbung--breit .zd-werbung__link { width: 728px; }
.zd-werbung--quadrat .zd-werbung__link { width: 300px; }
.zd-spalte .zd-werbung--quadrat { margin-top: 22px; }
.zd-werbung--im-text { margin: 28px 0 32px; }
.zd-werbung--im-text .zd-werbung__link { width: 100%; }

/* Drei Spalten */
.zd-drei { display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px; gap: 30px; padding-top: 26px; padding-bottom: 34px; align-items: start; }
.zd-spalte, .zd-mitte { min-width: 0; }
.zd-spalte .zd-werbung--quadrat .zd-werbung__link { width: 250px; }
.zd-aufmacher { position: relative; margin: 0 0 26px; background: #111; }
.zd-aufmacher__bildlink { position: relative; display: block; }
.zd-aufmacher img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.zd-aufmacher__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 16px; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72) 40%, rgba(0,0,0,.88)); }
.zd-aufmacher__titel { font-family: var(--zd-titel-schrift); font-weight: 800; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.22; color: #fff; margin: 0; text-transform: none;
  overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 13 5 5; }
.zd-aufmacher__titel a { color: #fff; text-decoration: none; }
.zd-aufmacher__titel a::after { content: ""; position: absolute; inset: 0; }
.zd-aufmacher .zd-datum { color: rgba(255,255,255,.9); }
.zd-querliste { display: flex; flex-direction: column; gap: 22px; margin-bottom: 30px; }
.zd-quer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.zd-quer--ohne-bild { grid-template-columns: minmax(0, 1fr); }
.zd-quer__bildlink { position: relative; display: block; }
.zd-quer img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.zd-quer__text { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.zd-quer h3 { font-family: var(--zd-titel-schrift); font-weight: 800; font-size: 16.5px; line-height: 1.3; margin: 0; text-transform: none; overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 13 5 5; }
.zd-quer h3 a { color: var(--zd-tinte); text-decoration: none; }
.zd-quer h3 a:hover { color: var(--zd-blau); }
.zd-quer p { font-family: var(--zd-text-schrift); font-size: 14px; line-height: 1.55; color: var(--zd-tinte-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.zd-dreier { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.zd-dreier .zd-karte h3 { font-size: 14.5px; }

/* Listen in den Seitenspalten */
.zd-zeilen { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--zd-linie); }
.zd-zeile { border-bottom: 1px solid var(--zd-linie); }
.zd-zeile a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 0; text-decoration: none; }
.zd-zeile--ohne-bild a { grid-template-columns: minmax(0, 1fr); }
.zd-zeile img { display: block; width: 76px; aspect-ratio: 16 / 11; object-fit: cover; }
.zd-zeile__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.zd-zeile__titel { font-family: var(--zd-titel-schrift); font-weight: 700; font-size: 13.5px; line-height: 1.3; color: var(--zd-tinte);
  overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 13 5 5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.zd-zeile a:hover .zd-zeile__titel { color: var(--zd-blau); }

/* Karten */
.zd-karte { display: flex; flex-direction: column; min-width: 0; }
.zd-seite .zd-karte { padding: 0; border: 0; margin: 0; background: none; border-radius: 0; box-shadow: none; transform: none; }
.zd-seite .zd-karte.eintrag { display: flex; flex-direction: column; text-align: left; gap: 0; grid-template-columns: none; align-items: stretch; }
.zd-seite .zd-karte.eintrag + .zd-karte.eintrag, .zd-seite .zd-karte.eintrag:first-child { border-top: 0; padding-top: 0; }
.zd-seite .zd-karte.eintrag > a { order: 0; display: block; padding: 0; background: none; border-radius: 0; grid-template-columns: none; transform: none; transition: none; }
.zd-seite .zd-karte img { margin: 0; }
.zd-karte__bildlink { position: relative; display: block; margin-bottom: 10px; overflow: hidden; }
.zd-karte__bildlink img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.zd-karte:hover .zd-karte__bildlink img { transform: scale(1.03); }
.zd-karte__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.zd-seite .zd-karte h3 { font-family: var(--zd-titel-schrift); font-weight: 800; font-size: 16px; line-height: 1.3; margin: 0; letter-spacing: 0;
  overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 13 5 5; text-transform: none; }
.zd-seite .zd-karte h3 a { color: var(--zd-tinte); text-decoration: none; }
.zd-seite .zd-karte h3 a:hover { color: var(--zd-blau); }
.zd-karte__anriss { font-family: var(--zd-text-schrift); font-size: 14px; line-height: 1.55; color: var(--zd-tinte-2); margin: 2px 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.zd-karte--ohne-bild { border-top: 3px solid var(--zd-blau) !important; padding-top: 12px !important; }

/* Alle Beiträge */
.zd-abschnitt { padding-bottom: 44px; }
.zd-abschnitt__kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.zd-abschnitt__kopf .zd-kopfzeile { margin: 0; }
.zd-raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
.zd-suche { margin: 0; }
.zd-suche input { width: 240px; max-width: 100%; box-sizing: border-box; font-family: var(--zd-ui); font-size: 14px; color: var(--zd-tinte); background: #fff;
  border: 1px solid #c4c8ce; border-radius: 3px; padding: 8px 12px; }
.zd-suche input::placeholder { color: var(--zd-grau); }
.zd-suche input:focus { outline: 2px solid var(--zd-blau); outline-offset: 1px; }
.zd-raster [hidden] { display: none !important; }

/* Seitenkästen (Beitragsseiten) */
.zd-kasten { min-width: 0; }
.zd-neu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--zd-linie); }
.zd-neu li { border-bottom: 1px solid var(--zd-linie); }
.zd-neu a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 0; text-decoration: none; }
.zd-neu a:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.zd-neu img { display: block; width: 76px; aspect-ratio: 16 / 11; object-fit: cover; }
.zd-neu__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.zd-neu__titel { font-family: var(--zd-titel-schrift); font-weight: 700; font-size: 13.5px; line-height: 1.3; color: var(--zd-tinte);
  overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 13 5 5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.zd-neu a:hover .zd-neu__titel { color: var(--zd-blau); }
.zd-kasten--aufruf { background: var(--zd-flaeche); border-top: 3px solid var(--zd-blau); padding: 20px; }
.zd-kasten--aufruf .zd-rubrik { text-transform: none; }
.zd-kasten__titel { font-family: var(--zd-titel-schrift); font-weight: 800; font-size: 19px; line-height: 1.25; color: var(--zd-tinte); margin: 8px 0 10px; text-transform: none; }
.zd-kasten--aufruf p { font-family: var(--zd-text-schrift); font-size: 14.5px; line-height: 1.55; color: var(--zd-tinte-2); margin: 0 0 14px; }

/* Aufruf */
.zd-aufruf { background: var(--zd-blau); color: #fff; }
.zd-aufruf__in { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 36px; padding-bottom: 36px; }
.zd-aufruf__label { display: block; font-family: var(--zd-ui); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.zd-aufruf__titel { font-family: var(--zd-titel-schrift); font-weight: 800; font-size: clamp(22px, 2.4vw, 29px); line-height: 1.2; color: #fff; margin: 6px 0 8px; text-transform: none; }
.zd-aufruf p { font-family: var(--zd-text-schrift); font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.9); margin: 0; max-width: 62ch; }

/* Alte Teile der Magazine angleichen */
.zd-seite .eintrag:first-child { border-top: 0; }
.zd-seite .footer, .zd-seite .fuss { border-top: 4px solid var(--zd-blau); }
.zd-seite .newsletter button, .zd-seite .brief .knopf { background: var(--zd-akzent); border-color: var(--zd-akzent); color: var(--zd-auf-akzent); }

/* Unterseiten (Build-Magazine: article-hero, article-body, article-aside) */
.zd-unterseite .article-aside.zd-seitenleiste { display: flex; flex-direction: column; gap: 26px; position: static; }
.zd-unterseite .zd-unten { margin: 10px auto 40px; }
.zd-unterseite .zd-unten .zd-abschnitt { padding-bottom: 0; }
.zd-unterseite .zd-raster--weiter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zd-unterseite .cat-tag { background: var(--zd-akzent); color: var(--zd-auf-akzent); }
.zd-unterseite .beitragskopf__meta, .zd-unterseite .beitragskopf__meta *, .zd-unterseite .article-hero__meta, .zd-unterseite .article-hero__meta * { color: var(--zd-grau); }
.zd-unterseite figure figcaption { color: var(--zd-grau); }

/* Breiten */
@media (max-width: 1099px) {
  .zd-drei { grid-template-columns: minmax(0, 1fr) 250px; }
  .zd-spalte--links { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 250px; gap: 0 26px; align-items: start; }
  .zd-spalte--links .zd-kopfzeile { grid-column: 1 / -1; }
  .zd-spalte--links .zd-zeilen { margin-top: 0; }
  .zd-spalte--links .zd-werbung--quadrat { margin-top: 0; }
  .zd-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 979px) {
  .zd-werbung--kopf { display: none; }
}
@media (max-width: 899px) {
  .zd-nav, .zd-navleiste__suche { display: none; }
  .zd-menueknopf { display: block; margin-left: -10px; }
  .zd-kopf { position: sticky; top: 0; }
  .zd-navleiste__in { min-height: 0; }
  .zd-kopf__in { padding-top: 10px; padding-bottom: 10px; }
  .zd-logo img { height: calc(var(--zd-logo-hoehe) * .75); }
  .zd-mobil.offen { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 3px solid var(--zd-blau);
    box-shadow: 0 12px 24px -12px rgba(0,0,0,.25); padding: 6px 24px 14px; z-index: 80; }
  .zd-mobil a { padding: 13px 0; border-bottom: 1px solid var(--zd-linie); font-family: var(--zd-ui); font-size: 15px; font-weight: 700; color: var(--zd-tinte); text-decoration: none; }
  .zd-mobil a:last-child { border-bottom: 0; color: var(--zd-akzent-text); }
  .zd-drei { grid-template-columns: minmax(0, 1fr); }
  .zd-spalte--links { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .zd-spalte--links .zd-werbung--quadrat { grid-column: 1 / -1; margin-top: 20px; }
  .zd-spalte--rechts { grid-row: 3; }
  .zd-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zd-aufruf__in { flex-direction: column; align-items: flex-start; gap: 18px; }
  .zd-unterseite .zd-raster--weiter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .zd-bahn { padding-left: 16px; padding-right: 16px; }
  .zd-mobil.offen { padding: 6px 16px 14px; }
  .zd-spalte--links { grid-template-columns: minmax(0, 1fr); }
  .zd-quer { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
  .zd-quer p { display: none; }
  .zd-dreier { grid-template-columns: minmax(0, 1fr); }
  .zd-raster, .zd-unterseite .zd-raster--weiter { grid-template-columns: minmax(0, 1fr); }
  .zd-abschnitt__kopf { align-items: stretch; flex-direction: column; }
  .zd-suche input { width: 100%; }
  .zd-werbung--breit .zd-werbung__link { width: 300px; }
  .zd-spalte .zd-werbung--quadrat .zd-werbung__link { width: 300px; }
}

/* Alte Farben der Build-Magazine mit zu wenig Kontrast angleichen (19.11.2026) */
.zd-unterseite .article-body__inner a:not([class]), .zd-unterseite .page-body__inner a:not([class]) { color: var(--zd-akzent-text); }


/* Farben und Schrift dieses Magazins (aus scripts/design.json) */
.zd-seite {
  --zd-blau: #1f1f1f;
  --zd-blau-tief: #131313;
  --zd-akzent: #8f5820;
  --zd-akzent-text: #8f5820;
  --zd-auf-akzent: #ffffff;
  --zd-tinte: #131313;
  --zd-tinte-2: #3a3a3a;
  --zd-grau: #5e5e5e;
  --zd-linie: #e4dfd2;
  --zd-flaeche: #f4f0e8;
  --zd-logo-hoehe: 56px;
}
/* Kupfer-Kicker auf Weiß zu hell (Fehler schon vor dem Umbau) */
.zd-unterseite .article-hero .kicker, .zd-unterseite .page-hero .kicker { color: #8f5820; }
