/* Themendesign (Vorlage: helles Nachrichtenportal mit Themen-Knöpfen, Pinterest, 19.11.2026).
   Gemeinsame Vorlage, Original in entwuerfe/magazin-designs/_themendesign/startseite.css.
   Farben je Magazin stehen unten in .tm-seite { … } (aus scripts/design.json). */

.tm-seite {
  --tm-akzent: #d92923;        /* Linien unter Überschriften, aktiver Menüpunkt */
  --tm-akzent-text: #b71f1a;   /* farbige Schrift auf Weiß (mind. 4.5:1) */
  --tm-marke-grund: #c4221c;   /* Rubrik-Plakette */
  --tm-marke-text: #ffffff;
  --tm-dunkel: #14213d;        /* aktiver Themen-Knopf, Knöpfe */
  --tm-dunkel-text: #ffffff;
  --tm-tinte: #161a22;
  --tm-tinte-2: #545b68;
  --tm-linie: #e4e7ec;
  --tm-flaeche: #f5f6f8;
  --tm-hauch: #fdf1f0;         /* Aufruf-Kasten */
  --tm-titel-schrift: inherit;
  --tm-ui: inherit;
  --tm-logo-hoehe: 52px;
  --tm-rund: 12px;
  background: #fff;
  color: var(--tm-tinte);
}

.tm-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; }
.tm-seite a.nur-sr:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; clip: auto; margin: 0; padding: 10px 14px; z-index: 100; background: var(--tm-dunkel); color: var(--tm-dunkel-text); border-radius: 8px; }
.tm-bahn { width: min(1240px, 100% - 40px); margin-inline: auto; }

/* ---------- Kopf ---------- */
.tm-kopf { background: #fff; border-bottom: 1px solid var(--tm-linie); position: relative; z-index: 20; }
.tm-kopf__in { display: flex; align-items: center; gap: 28px; min-height: 84px; padding: 10px 0; }
.tm-kopf__marke { display: flex; flex-direction: column; gap: 4px; flex: none; }
.tm-kopf__logo { display: block; line-height: 0; }
.tm-kopf__logo img { height: var(--tm-logo-hoehe); width: auto; max-width: 260px; object-fit: contain; }
.tm-kopf__zeile { margin: 0; font: 600 12px/1.3 var(--tm-ui); letter-spacing: .02em; color: var(--tm-tinte-2); }
.tm-menue { display: flex; gap: 26px; margin-inline: auto; font: 600 15px/1 var(--tm-ui); }
.tm-menue a { color: var(--tm-tinte); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.tm-menue a:hover, .tm-menue a:focus-visible { color: var(--tm-akzent-text); }
.tm-menue a[aria-current="page"] { color: var(--tm-akzent-text); border-bottom-color: var(--tm-akzent); }
.tm-kopf__aktion { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: var(--tm-dunkel); color: var(--tm-dunkel-text); font: 700 14px/1 var(--tm-ui); text-decoration: none; }
.tm-kopf__aktion:hover, .tm-kopf__aktion:focus-visible { filter: brightness(1.15); }
.tm-kopf__knopf { display: none; margin-left: auto; width: 48px; height: 44px; border: 1px solid var(--tm-linie); border-radius: 10px; background: #fff; cursor: pointer; position: relative; padding: 0; }
.tm-kopf__knopf span { position: absolute; left: 13px; width: 20px; height: 2px; background: var(--tm-tinte); border-radius: 2px; transition: transform .2s, opacity .2s; }
.tm-kopf__knopf span:nth-child(1) { top: 14px; } .tm-kopf__knopf span:nth-child(2) { top: 20px; } .tm-kopf__knopf span:nth-child(3) { top: 26px; }
.tm-kopf__knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tm-kopf__knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tm-kopf__knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.tm-mobil { display: none; }
.tm-mobil.offen { display: flex; flex-direction: column; padding: 6px 20px 16px; border-top: 1px solid var(--tm-linie); background: #fff; }
.tm-mobil a { padding: 13px 0; border-bottom: 1px solid var(--tm-linie); color: var(--tm-tinte); text-decoration: none; font: 600 16px/1.2 var(--tm-ui); }
.tm-mobil a:last-child { border-bottom: 0; color: var(--tm-akzent-text); }

/* ---------- Themen-Leiste ---------- */
.tm-themen { background: #fff; border-bottom: 1px solid var(--tm-linie); }
.tm-themen__liste { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.tm-themen__liste::-webkit-scrollbar { display: none; }
.tm-thema { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border: 1px solid var(--tm-linie); border-radius: 9px; background: #fff; color: var(--tm-tinte); font: 600 14px/1 var(--tm-ui); text-decoration: none; white-space: nowrap; }
.tm-thema:hover, .tm-thema:focus-visible { border-color: var(--tm-dunkel); }
.tm-thema:first-child, .tm-thema[aria-current="page"] { background: var(--tm-dunkel); border-color: var(--tm-dunkel); color: var(--tm-dunkel-text); }
.tm-unterseite .tm-thema:first-child:not([aria-current="page"]) { background: #fff; border-color: var(--tm-linie); color: var(--tm-tinte); }

/* ---------- Bausteine ---------- */
.tm-rubrik { display: inline-block; padding: 5px 10px; border-radius: 6px; background: var(--tm-marke-grund); color: var(--tm-marke-text); font: 700 12px/1.1 var(--tm-ui); letter-spacing: .01em; }
.tm-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 13px/1.4 var(--tm-ui); color: var(--tm-tinte-2); }
.tm-meta__teil { display: inline-flex; align-items: center; gap: 5px; }
.tm-meta svg { flex: none; }
.tm-titel { position: relative; border-bottom: 1px solid var(--tm-linie); padding-bottom: 10px; margin: 0 0 20px; }
.tm-titel::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 3px; border-radius: 2px; background: var(--tm-akzent); }
.tm-titel__text { margin: 0; font: 700 clamp(20px, 2vw, 24px)/1.2 var(--tm-titel-schrift); color: var(--tm-tinte); letter-spacing: -.01em; }
.tm-knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: var(--tm-dunkel); color: var(--tm-dunkel-text); font: 700 15px/1 var(--tm-ui); text-decoration: none; }
.tm-knopf:hover, .tm-knopf:focus-visible { filter: brightness(1.15); }

/* Bildkarte: Titel auf dem Bild */
.tm-bildkarte { position: relative; overflow: hidden; border-radius: var(--tm-rund); background: var(--tm-dunkel); aspect-ratio: 16 / 10; min-height: 0; margin: 0; }
.tm-bildkarte__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tm-bildkarte:hover .tm-bildkarte__bild { transform: scale(1.03); }
.tm-bildkarte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 10, 16, .05) 0%, rgba(8, 10, 16, .1) 22%, rgba(8, 10, 16, .78) 50%, rgba(8, 10, 16, .95) 74%); pointer-events: none; }
.tm-bildkarte > .tm-rubrik { position: absolute; top: 14px; left: 14px; z-index: 2; }
.tm-bildkarte__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px; display: grid; gap: 8px; }
.tm-bildkarte__titel { margin: 0; font: 700 clamp(17px, 1.5vw, 20px)/1.25 var(--tm-titel-schrift); color: #fff; }
.tm-bildkarte__titel a { color: #fff; text-decoration: none; }
.tm-bildkarte__titel a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.tm-bildkarte__titel a:hover, .tm-bildkarte__titel a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.tm-bildkarte .tm-meta { color: #e9ecf1; position: relative; z-index: 2; }
.tm-bildkarte--gross .tm-bildkarte__text { padding: 26px; }
.tm-bildkarte--gross .tm-bildkarte__titel { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.18; }

/* Karte: Bild oben, Text darunter */
.tm-karte { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.tm-karte__bildlink { display: block; overflow: hidden; border-radius: 10px; line-height: 0; background: var(--tm-flaeche); }
.tm-karte__bild { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s; }
.tm-karte:hover .tm-karte__bild { transform: scale(1.03); }
.tm-karte__text { display: grid; gap: 8px; justify-items: start; }
.tm-karte h3 { margin: 0; font: 700 17px/1.32 var(--tm-titel-schrift); color: var(--tm-tinte); }
.tm-karte h3 a { color: inherit; text-decoration: none; }
.tm-karte h3 a:hover, .tm-karte h3 a:focus-visible { color: var(--tm-akzent-text); text-decoration: underline; text-underline-offset: 3px; }
.tm-karte__anriss { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tm-tinte-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Zeile: kleines Bild links */
.tm-zeile { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; margin: 0; }
.tm-zeile__bildlink { display: block; overflow: hidden; border-radius: 8px; line-height: 0; }
.tm-zeile__bildlink img { width: 112px; aspect-ratio: 16 / 10; object-fit: cover; }
.tm-zeile__text { display: grid; gap: 6px; justify-items: start; }
.tm-zeile .tm-rubrik { padding: 4px 8px; font-size: 11px; background: var(--tm-dunkel); color: var(--tm-dunkel-text); }
.tm-zeile h3 { margin: 0; font: 700 15px/1.35 var(--tm-titel-schrift); color: var(--tm-tinte); }
.tm-zeile h3 a { color: inherit; text-decoration: none; }
.tm-zeile h3 a:hover, .tm-zeile h3 a:focus-visible { color: var(--tm-akzent-text); text-decoration: underline; }

/* ---------- Startseite ---------- */
.tm-buehne { padding: 26px 0 8px; }
.tm-buehne__raster { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; }
.tm-buehne__raster--allein { grid-template-columns: 1fr; }
.tm-buehne__raster > .tm-bildkarte--gross { aspect-ratio: auto; min-height: 460px; }
.tm-buehne__neben { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.tm-buehne__neben .tm-bildkarte { aspect-ratio: auto; min-height: 220px; }
.tm-reihe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.tm-reihe .tm-karte h3 { font-size: 15px; }
.tm-band { padding: 26px 0 6px; display: flex; justify-content: center; }
.tm-spalten { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 26px 0 50px; align-items: start; }
.tm-hauptspalte { display: grid; gap: 44px; min-width: 0; }
.tm-block { margin: 0; }
.tm-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tm-zeilen { display: grid; gap: 18px; }
.tm-zeilen--zwei { grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 22px; }
.tm-fokus { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.tm-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; }

/* Seitenleiste */
.tm-seitenleiste { display: grid; gap: 30px; align-content: start; }
.tm-kasten { margin: 0; }
.tm-kasten--aufruf { padding: 22px; border-radius: var(--tm-rund); background: var(--tm-hauch); border: 1px solid var(--tm-linie); display: grid; gap: 10px; justify-items: start; }
.tm-kasten__label { font: 700 12px/1.2 var(--tm-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--tm-akzent-text); }
.tm-kasten__titel { margin: 0; font: 700 21px/1.25 var(--tm-titel-schrift); color: var(--tm-tinte); }
.tm-kasten--aufruf p, .tm-kasten__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tm-tinte-2); }
.tm-kasten__mehr { display: inline-block; margin-top: 10px; font: 700 14px/1.2 var(--tm-ui); color: var(--tm-akzent-text); }
.tm-ueberblick { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.tm-ueberblick li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--tm-linie); }
.tm-ueberblick li:first-child { padding-top: 0; }
.tm-nummer { font: 800 26px/1 var(--tm-ui); color: var(--tm-tinte); letter-spacing: -.02em; }
.tm-ueberblick li > div { display: grid; gap: 7px; justify-items: start; }
.tm-ueberblick .tm-rubrik { padding: 4px 8px; font-size: 11px; background: var(--tm-dunkel); color: var(--tm-dunkel-text); }
.tm-ueberblick a { font: 700 15px/1.38 var(--tm-titel-schrift); color: var(--tm-tinte); text-decoration: none; }
.tm-ueberblick a:hover, .tm-ueberblick a:focus-visible { color: var(--tm-akzent-text); text-decoration: underline; }

/* Anzeigen */
.tm-werbung { margin: 0; display: grid; gap: 6px; justify-items: center; }
.tm-werbung__hinweis { font: 600 11px/1.2 var(--tm-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--tm-tinte-2); }
.tm-werbung__link { display: block; line-height: 0; border-radius: 8px; overflow: hidden; }
.tm-werbung img { display: block; width: 100%; height: auto; }
.tm-werbung picture { display: block; }
.tm-werbung--kopf .tm-werbung__link { width: min(728px, 100%); }
.tm-werbung--quadrat .tm-werbung__link { width: min(300px, 100%); }
.tm-werbung--hoch .tm-werbung__link { width: min(300px, 100%); }
.tm-werbung--klebt { position: sticky; top: 16px; }
.tm-werbung--im-text { margin: 30px 0; }

/* Newsletter aus der alten Startseite */
.tm-brief { margin-top: 10px; }

/* ---------- Unterseiten ---------- */
.tm-unterseite .beitragskopf, .tm-unterseite .beitragskopf__in { max-width: none; }
.tm-beitragsleiste { display: grid; gap: 28px; align-content: start; }
.tm-beitragsleiste .tm-titel__text { font-size: 20px; }
.tm-unten { margin-top: 40px; }
.tm-unten .tm-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tm-rubrikkopf { display: grid; gap: 8px; padding-bottom: 6px; }
.tm-rubrikkopf__label { font: 700 12px/1.2 var(--tm-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--tm-akzent-text); }
.tm-rubrikkopf h1 { margin: 0; font: 800 clamp(30px, 4vw, 44px)/1.1 var(--tm-titel-schrift); color: var(--tm-tinte); }
.tm-rubrikkopf p { margin: 0; color: var(--tm-tinte-2); }

/* ---------- Bildschirmbreiten ---------- */
@media (max-width: 1120px) {
  .tm-menue { gap: 18px; font-size: 14px; }
  .tm-kopf__in { gap: 18px; }
}
@media (max-width: 980px) {
  .tm-menue, .tm-kopf__aktion { display: none; }
  .tm-kopf__knopf { display: block; }
  .tm-kopf__in { min-height: 72px; }
  .tm-spalten { grid-template-columns: 1fr; gap: 44px; }
  .tm-seitenleiste { grid-template-columns: 1fr 1fr; gap: 28px; }
  .tm-werbung--klebt { position: static; }
  .tm-reihe { grid-template-columns: repeat(2, 1fr); }
  .tm-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-unten .tm-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tm-buehne__raster { grid-template-columns: 1fr; }
  .tm-buehne__raster > .tm-bildkarte--gross { min-height: 0; aspect-ratio: 4 / 3.4; }
  .tm-buehne__neben { grid-template-rows: none; grid-template-columns: 1fr; }
  .tm-buehne__neben .tm-bildkarte { min-height: 0; aspect-ratio: 16 / 10; }
  .tm-zwei, .tm-zeilen--zwei, .tm-fokus { grid-template-columns: 1fr; }
  .tm-seitenleiste { grid-template-columns: 1fr; }
  .tm-kopf__zeile { display: none; }
  .tm-kopf__logo img { height: calc(var(--tm-logo-hoehe) * .82); max-width: 210px; }
}
@media (max-width: 560px) {
  .tm-bahn { width: calc(100% - 32px); }
  .tm-reihe, .tm-raster, .tm-unten .tm-raster { grid-template-columns: 1fr; }
  .tm-bildkarte--gross .tm-bildkarte__text { padding: 18px; }
  .tm-bildkarte--gross .tm-bildkarte__titel { font-size: 22px; }
  .tm-zeile { grid-template-columns: 96px 1fr; }
  .tm-zeile__bildlink img { width: 96px; }
  .tm-werbung--kopf .tm-werbung__link { width: min(360px, 100%); }
}


/* Farben und Schrift dieses Magazins (aus scripts/design.json) */
.tm-seite {
  --tm-akzent: #ff3c36;
  --tm-akzent-text: #c4211c;
  --tm-marke-grund: #d92923;
  --tm-marke-text: #ffffff;
  --tm-dunkel: #1d2430;
  --tm-dunkel-text: #ffffff;
  --tm-tinte: #1f232b;
  --tm-tinte-2: #525866;
  --tm-linie: #e6e8ec;
  --tm-flaeche: #f5f6f8;
  --tm-hauch: #fff2f1;
  --tm-titel-schrift: "Lato", "Helvetica Neue", Arial, sans-serif;
  --tm-ui: "Lato", "Helvetica Neue", Arial, sans-serif;
  --tm-logo-hoehe: 56px;
}
.tm-seite { --gedaempft: #6b6b6b; --rot: #d92923; --blau: #0062c4; }
.fuss h2.tm-fuss-titel { font-size: 13px; font-weight: 900; margin-bottom: 12px; line-height: 1.3; }
