/* Portaldesign (Vorbild Online-Marketing-Journal, gemeinsame Vorlage seit 19.11.2026).
   Original: entwuerfe/magazin-designs/_portaldesign/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.pt-seite (Startseite) und body.pt-unterseite. */
.pt-seite {
  /* Grundwerte; jedes Magazin überschreibt sie am Dateiende */
  --pt-dunkel: #16181d; --pt-akzent: #cf3442; --pt-akzent-dunkel: #a5222e; --pt-akzent-hell: #f15e68;
  --pt-akzent-text: #b42a37; --pt-zweit: #1a6e5c; --pt-papier: #f3f1ec; --pt-papier-2: #e9e5dc;
  --pt-linie: #e3dfd6; --pt-grau: #565c68; --pt-tinte: #16181d; --pt-tinte-2: #2b2f37;
  --pt-titel-schrift: var(--anzeige); --pt-titel-gewicht: 700; --pt-logo-hoehe: 60px; --pt-ui: var(--lauf);
  --gedaempft: var(--pt-grau);
  /* Grundfarben der alten styles.css auf die neuen Magazinfarben umlenken (Links, Marken, Knöpfe im Text) */
  --akzent: var(--pt-akzent); --akzent-tief: var(--pt-akzent-text);
  background: var(--pt-papier); color: var(--pt-tinte);
}
.pt-bahn { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; }

/* Kleinteile */
.pt-plakette { display: inline-block; background: var(--pt-akzent); color: #fff; font-family: var(--pt-ui); font-size: 10.5px; font-weight: 800;
  line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px 2px; border-radius: 2px; }
.pt-plakette--anzeige { background: #3d414a; }
.pt-knopf { display: inline-flex; align-items: center; justify-content: center; background: var(--pt-akzent); color: #fff !important;
  font-family: var(--pt-ui); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 12px 18px;
  border-radius: 2px; text-decoration: none; }
.pt-knopf:hover { background: var(--pt-akzent-dunkel); }
.pt-rubrikkopf { border-bottom: 1px solid var(--pt-linie); margin-bottom: 22px; }
.pt-rubrikkopf__titel { display: inline-flex; align-items: center; gap: 10px; font-family: var(--pt-ui); font-size: 14px; font-weight: 800;
  line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--pt-tinte); padding-bottom: 10px; margin: 0 0 -1px;
  border-bottom: 3px solid var(--pt-akzent-hell); }
.pt-rubrikkopf__titel::before { content: ""; flex: none; width: 16px; height: 9px; margin-top: 2px; border: 3px solid var(--pt-akzent-hell);
  border-right-color: var(--pt-zweit); border-bottom: 0; border-radius: 3px 3px 0 0; }
.pt-panel { background: #fff; border: 1px solid var(--pt-linie); padding: 22px 24px 26px; min-width: 0; }

/* Leiste „Neu“ */
.pt-topbar { background: #fff; border-bottom: 1px solid var(--pt-linie); font-size: 13px; }
.pt-topbar__in { display: flex; align-items: center; gap: 12px; min-height: 38px; }
.pt-topbar__marke { flex: none; background: var(--pt-zweit); color: #fff; font-family: var(--pt-ui); font-size: 10.5px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px 2px; border-radius: 2px; }
.pt-topbar__link { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--pt-ui);
  font-weight: 600; color: var(--pt-tinte); text-decoration: none; }
.pt-topbar__link:hover { color: var(--pt-akzent-text); text-decoration: underline; }

/* Kopf */
.pt-kopf { background: #fff; position: relative; z-index: 60; }
.pt-kopf__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 20px; padding-bottom: 20px; }
.pt-kopf__marke { display: flex; flex-direction: column; gap: 8px; flex: none; }
.pt-kopf__logo img { display: block; height: var(--pt-logo-hoehe); width: auto; }
.pt-kopf__zeile { font-family: var(--pt-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pt-grau);
  margin: 0; line-height: 1.4; }
.pt-kopf__knopf { display: none; width: 48px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; margin-right: -8px; }
.pt-kopf__knopf span { display: block; width: 24px; height: 2px; background: var(--pt-tinte); margin: 5px auto; transition: transform .25s, opacity .2s; }
.pt-kopf__knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pt-kopf__knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pt-kopf__knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.pt-mobil { display: none; }
.pt-navbar { background: var(--pt-dunkel); position: sticky; top: 0; z-index: 70; border-bottom: 3px solid var(--pt-akzent); }
.pt-navbar__in { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; min-height: 50px; }
.pt-nav { display: flex; align-items: stretch; }
.pt-nav__link { display: flex; align-items: center; padding: 0 18px; font-family: var(--pt-ui); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #fff; text-decoration: none; transition: box-shadow .2s; }
.pt-nav__link:first-child { padding-left: 0; }
.pt-nav__link:hover, .pt-nav__link[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--pt-akzent-hell); color: #fff; }
.pt-navbar__aktion { align-self: center; background: var(--pt-akzent); color: #fff; font-family: var(--pt-ui); font-size: 12px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 9px 18px; border-radius: 2px; text-decoration: none; }
.pt-navbar__aktion:hover { background: var(--pt-akzent-dunkel); color: #fff; }

/* Werbeflächen */
.pt-werbung { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.pt-werbung__hinweis { font-family: var(--pt-ui); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pt-grau); line-height: 1.4; }
.pt-werbung__link { display: block; max-width: 100%; transition: opacity .2s; }
.pt-werbung__link:hover { opacity: .92; }
.pt-werbung img { display: block; width: 100%; height: auto; }
.pt-werbung--kopf { flex: 0 1 728px; align-items: flex-end; }
.pt-werbung--kopf .pt-werbung__link { width: 728px; }
.pt-werbung--breit .pt-werbung__link { width: 970px; }
.pt-werbung--quadrat { background: #fff; border: 1px solid var(--pt-linie); padding: 12px 12px 14px; }
.pt-werbung--quadrat .pt-werbung__link { width: 300px; }
.pt-block--werbung .pt-werbung { padding: 18px 0 4px; }

/* Bildmosaik: 1 groß + 4 klein, Titel auf dem Bild */
.pt-mosaik { padding-top: 24px; }
.pt-mosaik__raster { display: grid; gap: 4px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pt-mosaik--3 .pt-mosaik__raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pt-mosaik--1 .pt-mosaik__raster { grid-template-columns: minmax(0, 1fr); }
.pt-kachel { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; aspect-ratio: 16 / 9;
  min-width: 0; background: var(--pt-dunkel); color: #fff; margin: 0; }
.pt-kachel--gross { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.pt-mosaik--1 .pt-kachel--gross, .pt-mosaik--3 .pt-kachel--gross { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
.pt-mosaik--3 .pt-kachel--gross { grid-column: 1 / -1; }
.pt-kachel__bild { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.pt-kachel:hover .pt-kachel__bild { transform: scale(1.04); }
.pt-kachel__text { z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 56px 16px 14px;
  background: linear-gradient(180deg, rgba(12,13,17,0) 0, rgba(12,13,17,.55) 28px, rgba(12,13,17,.8) 52px, rgba(12,13,17,.92) 100%); }
.pt-kachel--gross .pt-kachel__text { padding: 76px 28px 24px; gap: 12px;
  background: linear-gradient(180deg, rgba(12,13,17,0) 0, rgba(12,13,17,.55) 36px, rgba(12,13,17,.82) 70px, rgba(12,13,17,.93) 100%); }
.pt-kachel__titel { font-family: var(--pt-titel-schrift); font-weight: var(--pt-titel-gewicht); font-size: 17px; line-height: 1.2; color: #fff; margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.45); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pt-kachel--gross .pt-kachel__titel { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.12; -webkit-line-clamp: 4; }
.pt-kachel__titel a { color: #fff; text-decoration: none; }
.pt-kachel__titel a::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* Abschnitte */
.pt-block { padding-top: 28px; }
.pt-block--werbung { padding-top: 10px; }
.pt-karten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pt-karte { position: relative; display: flex; flex-direction: column; gap: 12px; margin: 0; min-width: 0; }
.pt-karte__bild { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--pt-papier-2); }
.pt-karte__text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pt-karte__titel { font-family: var(--pt-titel-schrift); font-weight: var(--pt-titel-gewicht); font-size: 18px; line-height: 1.25; margin: 0; }
.pt-karte__titel a { color: var(--pt-tinte); text-decoration: none; }
.pt-karte__titel a::after { content: ""; position: absolute; inset: 0; }
.pt-karte:hover .pt-karte__titel a { color: var(--pt-akzent-text); }
.pt-spalten { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.pt-seitenleiste { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pt-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.pt-seite .eintrag.pt-beitragskarte { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; grid-template-columns: none;
  background: none; border-radius: 0; overflow: visible; transform: none; box-shadow: none; }
.pt-seite .eintrag img.pt-beitragskarte__bild { object-fit: cover; border-radius: 0; }
.pt-beitragskarte__bild { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--pt-papier-2); border-radius: 0 !important; }
.pt-beitragskarte__text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.pt-beitragskarte h3 { font-family: var(--pt-titel-schrift); font-weight: var(--pt-titel-gewicht); font-size: 18px; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.pt-beitragskarte h3 a { color: var(--pt-tinte); text-decoration: none; }
.pt-beitragskarte h3 a::after { content: ""; position: absolute; inset: 0; }
.pt-beitragskarte:hover h3 a { color: var(--pt-akzent-text); }
.pt-beitragskarte__anriss { font-family: var(--lauf); font-size: 14px; line-height: 1.55; color: var(--pt-grau); margin: 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pt-beitragskarte__weiter { font-family: var(--pt-ui); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pt-akzent-text); border-bottom: 2px solid var(--pt-akzent-hell); padding-bottom: 2px; }

/* Seitenkästen */
.pt-kasten { background: #fff; border: 1px solid var(--pt-linie); padding: 22px; }
.pt-kasten__label { display: block; font-family: var(--pt-ui); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--pt-akzent-text); margin-bottom: 6px; }
.pt-kasten__titel { font-family: var(--pt-titel-schrift); font-weight: var(--pt-titel-gewicht); font-size: 22px; line-height: 1.2; color: var(--pt-tinte); margin: 0 0 10px; }
.pt-kasten p { font-family: var(--lauf); font-size: 14.5px; line-height: 1.6; color: var(--pt-tinte-2); margin: 0 0 14px; }
.pt-kasten--aufruf { border-top: 4px solid var(--pt-akzent-hell); }
.pt-kasten__mehr { font-family: var(--pt-ui); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pt-akzent-text); text-decoration: none; }
.pt-kasten__mehr::after { content: " →"; }
.pt-kasten__mehr:hover { text-decoration: underline; }
.pt-neu-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pt-neu-liste li { padding-bottom: 14px; border-bottom: 1px solid var(--pt-linie); }
.pt-neu-liste li:last-child { border-bottom: 0; padding-bottom: 0; }
.pt-neu-liste a { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: start; text-decoration: none; }
.pt-neu-liste img { display: block; width: 84px; aspect-ratio: 16 / 9; object-fit: cover; }
.pt-neu-liste span { font-family: var(--pt-titel-schrift); font-weight: var(--pt-titel-gewicht); font-size: 15px; line-height: 1.25; color: var(--pt-tinte); }
.pt-neu-liste a:hover span { color: var(--pt-akzent-text); }

/* Altes Listenraster aus styles.css aufheben */
.pt-seite .eintrag:first-child { border-top: 0; }
.pt-seite .brief { margin-top: 40px; }

/* Fuß dunkel wie beim Vorbild */
.pt-seite .fuss { background: var(--pt-dunkel); color: rgba(255,255,255,.82); border-top: 0; }
.pt-seite .fuss a, .pt-seite .fuss ul a { color: rgba(255,255,255,.85); }
.pt-seite .fuss a:hover { color: #fff; }
.pt-seite .fuss h4, .pt-seite .fuss p, .pt-seite .fuss__sockel { color: rgba(255,255,255,.78); }
.pt-seite .fuss h4 { border-bottom: 2px solid var(--pt-akzent-hell); display: inline-block; padding-bottom: 6px; }
.pt-seite .fuss__sockel { border-top-color: rgba(255,255,255,.14); }
.pt-seite .fuss__logo img { background: #fff; padding: 10px 14px; box-sizing: content-box; border-radius: 2px; }

/* Unterseiten: Beitrag auf weißer Fläche, Seitenleiste mit Kästen */
.pt-unterseite main#inhalt { background: #fff; border: 1px solid var(--pt-linie); margin-top: 24px; margin-bottom: 8px;
  box-sizing: border-box; padding-left: clamp(16px, 3.2vw, 44px); padding-right: clamp(16px, 3.2vw, 44px); padding-bottom: 28px; }
.pt-unterseite .beitragskopf .marke { display: inline-block; background: var(--pt-akzent); color: #fff; padding: 3px 9px 2px; font-family: var(--pt-ui);
  font-size: 11px; font-weight: 800; letter-spacing: .12em; border-radius: 2px; margin-bottom: 14px; }
.pt-unterseite .beitragskopf__meta { font-family: var(--pt-ui); font-size: 16px; font-weight: 700; letter-spacing: .01em; text-transform: none; color: var(--pt-tinte-2); gap: 6px 22px; }
.pt-unterseite .beitragskopf__meta > * + *::before { content: "·"; margin-right: 22px; color: var(--pt-akzent); font-weight: 800; font-size: 22px; line-height: 1; align-self: center; }
.pt-unterseite .beitragskopf__meta > * { display: inline-flex; }
.pt-unterseite .grossbild { border-radius: 0; }
.pt-unterseite .spalte { position: static; display: flex; flex-direction: column; gap: 24px; }
.pt-unterseite .pt-unten { margin: 36px 0 12px; }
.pt-unterseite .pt-unten .pt-werbung { padding: 6px 0 28px; }
.pt-seite .text a.lp-taste { color: #fff; }
@media (min-width: 941px) { .pt-unterseite .koerper { grid-template-columns: minmax(0, 1fr) 300px; } }

/* Breiten */
@media (max-width: 1099px) {
  .pt-mosaik__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-kachel--gross { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .pt-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-spalten { grid-template-columns: minmax(0, 1fr); }
  .pt-seitenleiste { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: start; }
}
@media (max-width: 979px) {
  .pt-navbar { display: none; }
  .pt-kopf { position: sticky; top: 0; border-bottom: 3px solid var(--pt-akzent); }
  .pt-kopf__in { padding-top: 10px; padding-bottom: 10px; gap: 16px; }
  .pt-werbung--kopf, .pt-kopf__zeile { display: none; }
  .pt-kopf h1.pt-kopf__zeile { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pt-kopf__logo img { height: calc(var(--pt-logo-hoehe) * .75); }
  .pt-kopf__knopf { display: block; }
  .pt-mobil.offen { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 3px solid var(--pt-akzent); box-shadow: 0 12px 24px -12px rgba(0,0,0,.25); padding: 6px 24px 14px; }
  .pt-mobil a { padding: 13px 0; border-bottom: 1px solid var(--pt-linie); font-family: var(--pt-ui); font-size: 15px; font-weight: 700;
    color: var(--pt-tinte); text-decoration: none; }
  .pt-mobil a:last-child { border-bottom: 0; color: var(--pt-akzent-text); }
  .pt-mobil a[aria-current="page"] { color: var(--pt-akzent-text); }
}
@media (max-width: 859px) { .pt-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .pt-bahn { padding: 0 16px; }
  .pt-mobil.offen { padding: 6px 16px 14px; }
  .pt-rubrikkopf__titel { font-size: 13px; letter-spacing: .1em; }
  .pt-panel { padding: 18px 16px 20px; }
  .pt-block { padding-top: 20px; }
  .pt-mosaik { padding-top: 16px; }
  .pt-mosaik__raster, .pt-mosaik--3 .pt-mosaik__raster { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--pt-dunkel); }
  .pt-kachel { aspect-ratio: auto; }
  .pt-kachel--gross { display: block; grid-column: auto; }
  .pt-kachel .pt-kachel__bild { position: static; height: auto; aspect-ratio: 16 / 9; }
  .pt-kachel:hover .pt-kachel__bild { transform: none; }
  .pt-kachel--gross .pt-kachel__text { background: var(--pt-dunkel); padding: 14px 14px 18px; gap: 10px; }
  .pt-kachel--gross .pt-kachel__titel { font-size: 23px; -webkit-line-clamp: unset; display: block; }
  .pt-kachel:not(.pt-kachel--gross) { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; align-items: start;
    padding: 14px; border-top: 1px solid rgba(255,255,255,.14); }
  .pt-kachel:not(.pt-kachel--gross) .pt-kachel__text { background: none; padding: 0; gap: 6px; }
  .pt-kachel:not(.pt-kachel--gross) .pt-kachel__titel { font-size: 16px; -webkit-line-clamp: 4; }
  .pt-werbung--breit .pt-werbung__link { width: 300px; }
  .pt-startseite-nur-gross { display: none; }
  .pt-karten { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 0 16px; }
  .pt-karte { flex: 0 0 236px; scroll-snap-align: start; }
  .pt-raster { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pt-seite .eintrag.pt-beitragskarte { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; align-items: start;
    padding: 14px 0; border-top: 1px solid var(--pt-linie); }
  .pt-seite .eintrag.pt-beitragskarte:first-child { border-top: 0; padding-top: 0; }
  .pt-beitragskarte h3 { font-size: 16.5px; }
  .pt-beitragskarte__anriss, .pt-beitragskarte__weiter { display: none; }
  .pt-seitenleiste { grid-template-columns: minmax(0, 1fr); }
  .pt-werbung--quadrat { justify-self: center; }
  .pt-unterseite main#inhalt { border-left: 0; border-right: 0; margin-top: 0; padding-left: 16px; padding-right: 16px; }
  .pt-unterseite .beitragskopf__meta { font-size: 14px; gap: 4px 8px; }
  .pt-unterseite .beitragskopf__meta > * + *::before { margin-right: 8px; }
}

/* Newsletter-Abschnitt (aus der alten Startseite) in den Magazinfarben, Kontrast gemessen */
.pt-seite .brief .marke { color: var(--pt-akzent-text); }
.pt-seite .brief .knopf { background: var(--pt-akzent); border-color: var(--pt-akzent); color: #fff; }
.pt-seite .brief .knopf:hover { background: var(--pt-akzent-dunkel); border-color: var(--pt-akzent-dunkel); color: #fff; }
.pt-seite .brief { background: #fff; border-top: 1px solid var(--pt-linie); }

/* Überschrift auf Beitragsseiten über die volle Breite wie das Bild darunter (Michael, 19.11.2026) */
.pt-unterseite .beitragskopf { max-width: none; }


/* Farben und Schrift dieses Magazins (aus scripts/design.json) */
.pt-seite {
  --pt-dunkel: #13293d;
  --pt-akzent: #00757f;
  --pt-akzent-dunkel: #005a62;
  --pt-akzent-hell: #14a3ae;
  --pt-akzent-text: #006a73;
  --pt-zweit: #43606a;
  --pt-papier: #f1f4f4;
  --pt-papier-2: #e2e8e8;
  --pt-linie: #dbe2e2;
  --pt-grau: #56626a;
  --pt-tinte: #1b1b1b;
  --pt-tinte-2: #2e3a3f;
  --pt-titel-schrift: var(--anzeige);
  --pt-titel-gewicht: 700;
  --pt-logo-hoehe: 56px;
}
