/* Kartendesign (Vorlage: Magazin-Theme von Pinterest, gemeinsame Vorlage seit 19.11.2026).
   Original: entwuerfe/magazin-designs/_kartendesign/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.kd-seite (Startseite) und body.kd-unterseite. */
.kd-seite {
  /* Grundwerte; jedes Magazin überschreibt sie am Dateiende */
  --kd-dunkel: #2c3e50; --kd-dunkel-2: #22303e; --kd-akzent: #2c7be5; --kd-akzent-text: #1f62bd;
  --kd-grau: #5f6670; --kd-linie: #e4e7eb; --kd-flaeche: #f4f5f7; --kd-tinte: #1b1f24; --kd-tinte-2: #353b43;
  --kd-titel-schrift: var(--anzeige); --kd-titel-gewicht: 700; --kd-ui: var(--lauf); --kd-logo-hoehe: 58px;
  --gedaempft: var(--kd-grau); --akzent: var(--kd-akzent); --akzent-tief: var(--kd-akzent-text);
  background: #fff; color: var(--kd-tinte);
}
.kd-bahn { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* Kleinteile */
.kd-rubrik { display: inline-block; font-family: var(--kd-ui); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--kd-akzent-text); }
.kd-rubrik--anzeige { color: var(--kd-grau); }
.kd-datum, .kd-meta { font-family: var(--kd-ui); font-size: 12.5px; font-weight: 600; color: var(--kd-grau); }
.kd-plakette-datum { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; align-items: center; min-width: 52px;
  background: var(--kd-dunkel); color: #fff; font-family: var(--kd-ui); font-size: 12px; font-weight: 800; line-height: 1.2; padding: 6px 8px 7px; text-align: center; }
.kd-plakette-datum span { font-size: 11px; font-weight: 700; opacity: .85; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 3px; margin-bottom: 3px; width: 100%; }
.kd-knopf { display: inline-flex; align-items: center; justify-content: center; background: var(--kd-dunkel); color: #fff !important; font-family: var(--kd-ui);
  font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 11px 20px; border-radius: 3px; text-decoration: none; transition: background .2s; }
.kd-knopf:hover { background: var(--kd-akzent); }
.kd-knopf--mitte { display: table; margin: 30px auto 0; }
.kd-reiter { background: var(--kd-flaeche); border: 1px solid var(--kd-linie); margin-bottom: 20px; display: flex; }
.kd-reiter__titel { background: #fff; margin: -1px 0 -1px -1px; border: 1px solid var(--kd-linie); border-top: 3px solid var(--kd-akzent); border-bottom-color: #fff;
  font-family: var(--kd-ui); font-size: 14px; font-weight: 700; color: var(--kd-tinte); padding: 10px 18px; line-height: 1.3; }

/* Leiste oben */
.kd-topbar { background: var(--kd-flaeche); border-bottom: 1px solid var(--kd-linie); font-family: var(--kd-ui); font-size: 12.5px; }
.kd-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.kd-topbar__text { color: var(--kd-tinte-2); font-weight: 600; }
.kd-topbar__links { display: flex; gap: 22px; }
.kd-topbar__links a { color: var(--kd-tinte-2); text-decoration: none; font-weight: 600; }
.kd-topbar__links a:hover, .kd-topbar__links a[aria-current="page"] { color: var(--kd-akzent-text); }

/* Kopf */
.kd-kopf { background: #fff; position: relative; z-index: 60; border-bottom: 1px solid var(--kd-linie); }
.kd-kopf__in { display: flex; align-items: center; gap: 28px; padding-top: 18px; padding-bottom: 18px; }
.kd-kopf__marke { display: flex; flex-direction: column; gap: 6px; flex: none; margin-right: auto; }
.kd-kopf__logo img { display: block; height: var(--kd-logo-hoehe); width: auto; }
.kd-kopf__zeile { font-family: var(--kd-ui); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--kd-grau); margin: 0; line-height: 1.4; }
.kd-kopf__aktion { flex: none; background: var(--kd-dunkel); color: #fff; font-family: var(--kd-ui); font-size: 13px; font-weight: 700; padding: 11px 16px; border-radius: 3px; text-decoration: none; }
.kd-kopf__aktion:hover { background: var(--kd-akzent); color: #fff; }
.kd-kopf__knopf { display: none; width: 48px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; margin-right: -8px; }
.kd-kopf__knopf span { display: block; width: 24px; height: 2px; background: var(--kd-tinte); margin: 5px auto; transition: transform .25s, opacity .2s; }
.kd-kopf__knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kd-kopf__knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kd-kopf__knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.kd-mobil { display: none; }

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

/* Bühne: großer Aufmacher + drei gestapelte Kacheln */
.kd-buehne { padding-top: 22px; }
.kd-buehne__raster { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
.kd-buehne__raster--allein { grid-template-columns: minmax(0, 1fr); }
.kd-aufmacher { position: relative; margin: 0; overflow: hidden; background: var(--kd-dunkel); aspect-ratio: 16 / 9; }
.kd-aufmacher__bild { display: block; width: 100%; height: 100%; object-fit: cover; }
.kd-aufmacher__kasten { position: absolute; left: 22px; bottom: 22px; max-width: min(560px, calc(100% - 44px)); background: rgba(20, 24, 30, .86);
  padding: 18px 22px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.kd-aufmacher__kasten .kd-rubrik { color: #fff; opacity: .85; }
.kd-aufmacher__titel { font-family: var(--kd-titel-schrift); font-weight: var(--kd-titel-gewicht); font-size: clamp(20px, 2vw, 28px); line-height: 1.2; margin: 0; }
.kd-aufmacher__titel a { color: #fff; text-decoration: none; }
.kd-aufmacher__titel a:hover { text-decoration: underline; }
.kd-aufmacher .kd-datum { color: rgba(255,255,255,.82); }
.kd-aufmacher .kd-knopf { margin-top: 6px; background: var(--kd-akzent); }
.kd-aufmacher .kd-knopf:hover { background: #fff; color: var(--kd-tinte) !important; }
.kd-stapel { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 0; }
.kd-kachel { position: relative; margin: 0; overflow: hidden; background: var(--kd-dunkel); min-height: 0; }
.kd-kachel__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kd-kachel:hover .kd-kachel__bild { transform: scale(1.05); }
.kd-kachel__text { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; justify-content: center; padding: 12px 16px; text-align: center;
  background: rgba(15, 18, 22, .66); box-sizing: border-box; }
.kd-kachel__titel { font-family: var(--kd-titel-schrift); font-weight: var(--kd-titel-gewicht); font-size: 16px; line-height: 1.25; margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,.85);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kd-kachel__titel a { color: #fff; text-decoration: none; }
.kd-kachel__titel a::after { content: ""; position: absolute; inset: 0; }

/* Spalten und Blöcke */
.kd-spalten { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; padding-top: 30px; }
.kd-hauptspalte { min-width: 0; }
.kd-seitenleiste { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.kd-block { margin-bottom: 34px; }
.kd-karten { display: grid; gap: 24px; }
.kd-karten--zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kd-karten--drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kd-seite .kd-karte { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; background: none; border-radius: 0;
  overflow: visible; transform: none; box-shadow: none; grid-template-columns: none; }
.kd-karte__bildlink { position: relative; display: block; }
.kd-seite .kd-karte img.kd-karte__bild { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.kd-karte__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kd-seite .kd-karte h3 { font-family: var(--kd-titel-schrift); font-weight: var(--kd-titel-gewicht); font-size: 17px; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.kd-seite .kd-karte h3 a { color: var(--kd-tinte); text-decoration: none; }
.kd-seite .kd-karte h3 a:hover { color: var(--kd-akzent-text); }
.kd-karte__anriss { font-family: var(--lauf); font-size: 14px; line-height: 1.55; color: var(--kd-tinte-2); margin: 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kd-zeilen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 22px; }
.kd-zeilen--eins { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.kd-zeile { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; }
.kd-zeile img { display: block; width: 104px; aspect-ratio: 16 / 10; object-fit: cover; }
.kd-zeile__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kd-zeile h3 { font-family: var(--kd-titel-schrift); font-weight: var(--kd-titel-gewicht); font-size: 14.5px; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.kd-zeile h3 a { color: var(--kd-tinte); text-decoration: none; }
.kd-zeile h3 a:hover { color: var(--kd-akzent-text); }
.kd-fokus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }

/* Seitenkästen */
.kd-kasten { border: 1px solid var(--kd-linie); padding: 0 18px 18px; min-width: 0; }
.kd-kasten .kd-reiter { margin: 0 -18px 16px; border-left: 0; border-right: 0; border-top: 0; }
.kd-kasten p { font-family: var(--lauf); font-size: 14.5px; line-height: 1.6; color: var(--kd-tinte-2); margin: 0 0 12px; }
.kd-kasten--aufruf { background: var(--kd-flaeche); border-top: 3px solid var(--kd-akzent); padding-top: 18px; }
.kd-kasten__label { display: block; font-family: var(--kd-ui); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--kd-akzent-text); margin-bottom: 6px; }
.kd-kasten__titel { font-family: var(--kd-titel-schrift); font-weight: var(--kd-titel-gewicht); font-size: 20px; line-height: 1.25; color: var(--kd-tinte); margin: 0 0 10px; }
.kd-kasten__karte { display: block; text-decoration: none; margin-bottom: 14px; }
.kd-kasten__karte img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 8px; }
.kd-kasten__karte span { font-family: var(--kd-titel-schrift); font-weight: var(--kd-titel-gewicht); font-size: 15.5px; line-height: 1.3; color: var(--kd-tinte); }
.kd-kasten__karte:hover span { color: var(--kd-akzent-text); }
.kd-kasten__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.kd-kasten__liste a { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; text-decoration: none; }
.kd-kasten__liste .kd-plakette-datum { position: static; min-width: 0; font-size: 11px; padding: 5px 4px 6px; }
.kd-kasten__liste span { font-family: var(--kd-titel-schrift); font-weight: var(--kd-titel-gewicht); font-size: 14px; line-height: 1.3; color: var(--kd-tinte); }
.kd-kasten__liste .kd-plakette-datum span { font-family: var(--kd-ui); font-size: 10px; color: #fff; }
.kd-kasten__liste a:hover > span { color: var(--kd-akzent-text); }
.kd-kasten__mehr { font-family: var(--kd-ui); font-size: 12.5px; font-weight: 800; color: var(--kd-akzent-text); text-decoration: none; }
.kd-kasten__mehr::after { content: " →"; }

/* Vorteile-Reihe */
.kd-vorteile { border-top: 1px solid var(--kd-linie); border-bottom: 1px solid var(--kd-linie); padding: 40px 0 44px; margin-top: 10px; background: #fff; }
.kd-vorteile__titel { font-family: var(--kd-titel-schrift); font-weight: var(--kd-titel-gewicht); font-size: clamp(22px, 2.2vw, 28px); text-align: center; margin: 0 0 28px; }
.kd-vorteile__raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.kd-vorteil { text-align: center; }
.kd-vorteil__symbol { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--kd-dunkel); color: #fff; margin-bottom: 12px; }
.kd-vorteil h3 { font-family: var(--kd-titel-schrift); font-weight: var(--kd-titel-gewicht); font-size: 18px; margin: 0 0 6px; }
.kd-vorteil p { font-family: var(--lauf); font-size: 14px; line-height: 1.55; color: var(--kd-tinte-2); margin: 0; }

/* Newsletter-Leiste, alte Regeln aufheben, Fuß */
.kd-seite .eintrag:first-child { border-top: 0; }
.kd-seite .brief { background: var(--kd-flaeche); border-top: 1px solid var(--kd-linie); }
.kd-seite .brief .marke { color: var(--kd-akzent-text); }
.kd-seite .brief .knopf { background: var(--kd-dunkel); border-color: var(--kd-dunkel); color: #fff; }
.kd-seite .brief .knopf:hover { background: var(--kd-akzent); border-color: var(--kd-akzent); color: #fff; }
.kd-seite .text a.lp-taste { color: #fff; }
.kd-seite .fuss { background: #fafbfc; border-top: 1px solid var(--kd-linie); }

/* Unterseiten */
.kd-unterseite main#inhalt { box-sizing: border-box; }
.kd-unterseite .beitragskopf { max-width: none; }
.kd-unterseite .beitragskopf .marke { display: inline-block; background: var(--kd-dunkel); color: #fff; padding: 4px 10px 3px; font-family: var(--kd-ui);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; margin-bottom: 14px; }
.kd-unterseite .beitragskopf__meta { font-family: var(--kd-ui); font-size: 16px; font-weight: 700; letter-spacing: .01em; text-transform: none; color: var(--kd-tinte-2); gap: 6px 22px; }
.kd-unterseite .beitragskopf__meta > * + *::before { content: "·"; margin-right: 22px; color: var(--kd-akzent); font-weight: 800; font-size: 22px; line-height: 1; align-self: center; }
.kd-unterseite .beitragskopf__meta > * { display: inline-flex; }
.kd-unterseite .grossbild { border-radius: 0; }
.kd-unterseite .spalte { position: static; display: flex; flex-direction: column; gap: 24px; }
.kd-unterseite .kd-unten { margin: 36px 0 10px; }
@media (min-width: 941px) { .kd-unterseite .koerper { grid-template-columns: minmax(0, 1fr) 300px; } }

/* Breiten */
@media (max-width: 1099px) {
  .kd-spalten { grid-template-columns: minmax(0, 1fr); }
  .kd-seitenleiste { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: start; }
  .kd-werbung--kopf { display: none; }
}
@media (max-width: 899px) {
  .kd-topbar__links, .kd-kopf__aktion { display: none; }
  .kd-kopf { position: sticky; top: 0; border-bottom: 3px solid var(--kd-akzent); }
  .kd-kopf__in { padding-top: 10px; padding-bottom: 10px; gap: 16px; }
  .kd-kopf__zeile { display: none; }
  .kd-kopf h1.kd-kopf__zeile { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .kd-kopf__logo img { height: calc(var(--kd-logo-hoehe) * .76); }
  .kd-kopf__knopf { display: block; }
  .kd-mobil.offen { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 3px solid var(--kd-akzent); box-shadow: 0 12px 24px -12px rgba(0,0,0,.25); padding: 6px 24px 14px; }
  .kd-mobil a { padding: 13px 0; border-bottom: 1px solid var(--kd-linie); font-family: var(--kd-ui); font-size: 15px; font-weight: 700; color: var(--kd-tinte); text-decoration: none; }
  .kd-mobil a:last-child { border-bottom: 0; color: var(--kd-akzent-text); }
  .kd-mobil a[aria-current="page"] { color: var(--kd-akzent-text); }
  .kd-buehne__raster { grid-template-columns: minmax(0, 1fr); }
  .kd-stapel { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kd-kachel { aspect-ratio: 4 / 3; }
  .kd-vorteile__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kd-werbung--im-text .kd-werbung__link { width: 100%; }
}
@media (max-width: 759px) {
  .kd-karten--drei, .kd-fokus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kd-zeilen { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .kd-bahn { padding: 0 16px; }
  .kd-mobil.offen { padding: 6px 16px 14px; }
  .kd-topbar__text { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .kd-buehne { padding-top: 12px; }
  .kd-aufmacher { aspect-ratio: auto; display: flex; flex-direction: column; }
  .kd-aufmacher__bild { aspect-ratio: 16 / 9; height: auto; }
  .kd-aufmacher__kasten { position: static; max-width: none; background: var(--kd-dunkel); padding: 14px 16px 18px; }
  .kd-stapel { grid-template-columns: minmax(0, 1fr); }
  .kd-kachel { aspect-ratio: 16 / 7; }
  .kd-karten--zwei, .kd-karten--drei, .kd-fokus { grid-template-columns: minmax(0, 1fr); }
  .kd-seitenleiste { grid-template-columns: minmax(0, 1fr); }
  .kd-werbung--quadrat, .kd-werbung--hoch { justify-self: center; }
  .kd-vorteile__raster { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .kd-unterseite .beitragskopf__meta { font-size: 14px; gap: 4px 8px; }
  .kd-unterseite .beitragskopf__meta > * + *::before { margin-right: 8px; }
}


/* Farben und Schrift dieses Magazins (aus scripts/design.json) */
.kd-seite {
  --kd-dunkel: #2a2326;
  --kd-dunkel-2: #1d181a;
  --kd-akzent: #8c2f39;
  --kd-akzent-text: #8c2f39;
  --kd-grau: #615b57;
  --kd-linie: #e7e2dc;
  --kd-flaeche: #f6f3f0;
  --kd-tinte: #1a1a1a;
  --kd-tinte-2: #3d3a37;
  --kd-titel-schrift: var(--anzeige);
  --kd-titel-gewicht: 700;
  --kd-logo-hoehe: 54px;
}
/* Aufruf-Knopf ist hier weiß im bordeauxroten Kasten, Schrift bordeaux (Original) */
.kd-seite .text a.lp-taste { background: #fff; color: #69232b; }
