/* Rubrikendesign (Vorlage: Nachrichtenportal von Pinterest, gemeinsame Vorlage seit 19.11.2026).
   Original: entwuerfe/magazin-designs/_rubrikendesign/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.rb-seite (Startseite) und body.rb-unterseite. */
.rb-seite {
  /* Grundwerte; jedes Magazin überschreibt sie am Dateiende */
  --rb-dunkel: #222428; --rb-akzent: #1a73b8; --rb-akzent-dunkel: #135a91; --rb-akzent-hell: #3a9ad9; --rb-akzent-text: #155f98;
  --rb-zweit: #e2603a; --rb-zweit-text: #b8401c; --rb-grau: #5d636c; --rb-linie: #e6e8eb; --rb-flaeche: #f5f6f8;
  --rb-tinte: #17191c; --rb-tinte-2: #2d3036;
  --rb-titel-schrift: var(--anzeige); --rb-titel-gewicht: 700; --rb-ui: var(--lauf); --rb-logo-hoehe: 58px;
  --gedaempft: var(--rb-grau); --akzent: var(--rb-akzent); --akzent-tief: var(--rb-akzent-text);
  background: #fff; color: var(--rb-tinte);
}
.rb-bahn { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* Kleinteile */
.rb-plakette { display: inline-block; align-self: flex-start; background: var(--rb-dunkel); color: #fff; font-family: var(--rb-ui); font-size: 10.5px;
  font-weight: 700; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; }
.rb-plakette--anzeige { background: #4b4f57; }
.rb-datum { font-family: var(--rb-ui); font-size: 12.5px; font-weight: 600; color: var(--rb-grau); }
.rb-meta { font-family: var(--rb-ui); font-size: 12.5px; font-weight: 600; color: var(--rb-grau); }
.rb-knopf { display: inline-flex; align-items: center; background: var(--rb-akzent); color: #fff !important; font-family: var(--rb-ui); font-size: 12.5px;
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 11px 16px; border-radius: 3px; text-decoration: none; }
.rb-knopf:hover { background: var(--rb-akzent-dunkel); }
/* Reiter-Überschrift: farbiges Kästchen auf einer Linie in derselben Farbe */
.rb-reiter { border-bottom: 2px solid var(--rb-akzent); margin-bottom: 18px; }
.rb-reiter__titel { display: inline-block; background: var(--rb-akzent); color: #fff; font-family: var(--rb-ui); font-size: 12.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; padding: 6px 12px 5px; margin: 0; border-radius: 3px 3px 0 0; }

/* Datumsleiste */
.rb-topbar { background: #fff; border-bottom: 1px solid var(--rb-linie); font-family: var(--rb-ui); font-size: 12px; }
.rb-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.rb-topbar__datum { font-weight: 700; color: var(--rb-tinte); text-transform: uppercase; letter-spacing: .04em; }
.rb-topbar__links { display: flex; gap: 18px; }
.rb-topbar__links a { color: var(--rb-tinte-2); font-weight: 600; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.rb-topbar__links a:hover { color: var(--rb-akzent-text); }

/* Kopf */
.rb-kopf { background: #fff; position: relative; z-index: 60; }
.rb-kopf__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 18px; padding-bottom: 18px; }
.rb-kopf__marke { display: flex; flex-direction: column; gap: 6px; flex: none; }
.rb-kopf__logo img { display: block; height: var(--rb-logo-hoehe); width: auto; }
.rb-kopf__zeile { font-family: var(--rb-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rb-grau); margin: 0; line-height: 1.4; }
.rb-kopf__knopf { display: none; width: 48px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; margin-right: -8px; }
.rb-kopf__knopf span { display: block; width: 24px; height: 2px; background: var(--rb-tinte); margin: 5px auto; transition: transform .25s, opacity .2s; }
.rb-kopf__knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rb-kopf__knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rb-kopf__knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.rb-mobil { display: none; }
.rb-navbar { background: var(--rb-dunkel); position: sticky; top: 0; z-index: 70; }
.rb-navbar__in { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; min-height: 48px; }
.rb-nav { display: flex; align-items: stretch; }
.rb-nav__link { display: flex; align-items: center; padding: 0 16px; font-family: var(--rb-ui); font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; text-decoration: none; transition: background .2s; }
.rb-nav__link:hover { background: rgba(255,255,255,.08); color: #fff; }
.rb-nav__link[aria-current="page"] { background: var(--rb-akzent); color: #fff; }
.rb-navbar__aktion { align-self: center; background: var(--rb-zweit-text); color: #fff; font-family: var(--rb-ui); font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 8px 16px; border-radius: 3px; text-decoration: none; }
.rb-navbar__aktion:hover { filter: brightness(1.1); color: #fff; }
.rb-ticker { background: #fff; border-bottom: 1px solid var(--rb-linie); }
.rb-ticker__in { display: flex; align-items: center; gap: 12px; min-height: 40px; font-family: var(--rb-ui); font-size: 13.5px; }
.rb-ticker__marke { flex: none; background: var(--rb-akzent); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px; }
.rb-ticker__link { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--rb-tinte); font-weight: 600; text-decoration: none; }
.rb-ticker__link:hover { color: var(--rb-akzent-text); text-decoration: underline; }

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

/* Mosaik: links groß, rechts vier kleine */
.rb-mosaik { padding-top: 20px; }
.rb-mosaik__raster { display: grid; gap: 4px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rb-mosaik--1 .rb-mosaik__raster { grid-template-columns: minmax(0, 1fr); }
.rb-kachel { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; aspect-ratio: 16 / 9;
  min-width: 0; background: var(--rb-dunkel); color: #fff; margin: 0; }
.rb-kachel--gross { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.rb-mosaik--1 .rb-kachel--gross { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
.rb-kachel__bild { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rb-kachel:hover .rb-kachel__bild { transform: scale(1.04); }
.rb-kachel__text { z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 52px 14px 12px;
  background: linear-gradient(180deg, rgba(10,11,13,0) 0, rgba(10,11,13,.55) 26px, rgba(10,11,13,.8) 50px, rgba(10,11,13,.92) 100%); }
.rb-kachel--gross .rb-kachel__text { padding: 72px 24px 20px; gap: 10px;
  background: linear-gradient(180deg, rgba(10,11,13,0) 0, rgba(10,11,13,.55) 36px, rgba(10,11,13,.82) 70px, rgba(10,11,13,.93) 100%); }
.rb-kachel .rb-plakette { background: var(--rb-akzent); }
.rb-kachel__titel { font-family: var(--rb-titel-schrift); font-weight: var(--rb-titel-gewicht); font-size: 16px; line-height: 1.22; 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; }
.rb-kachel--gross .rb-kachel__titel { font-size: clamp(22px, 2.2vw, 31px); line-height: 1.15; -webkit-line-clamp: 4; }
.rb-kachel__titel a { color: #fff; text-decoration: none; }
.rb-kachel__titel a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.rb-kachel .rb-datum { color: rgba(255,255,255,.85); }

/* Spalten */
.rb-spalten { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; padding-top: 30px; }
.rb-hauptspalte { min-width: 0; }
.rb-seitenleiste { display: flex; flex-direction: column; gap: 26px; min-width: 0; }

/* Themenblock: großer Beitrag + Liste */
.rb-block { margin-bottom: 34px; }
.rb-block__raster { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.rb-gross { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rb-gross__bildlink { display: block; margin-bottom: 4px; }
.rb-gross__bild { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rb-gross__titel { font-family: var(--rb-titel-schrift); font-weight: var(--rb-titel-gewicht); font-size: 22px; line-height: 1.2; margin: 2px 0 0; overflow-wrap: anywhere; }
.rb-gross__titel a { color: var(--rb-tinte); text-decoration: none; }
.rb-gross__titel a:hover { color: var(--rb-akzent-text); }
.rb-gross__anriss { font-family: var(--lauf); font-size: 14.5px; line-height: 1.6; color: var(--rb-tinte-2); margin: 2px 0 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rb-liste { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rb-seite .rb-zeile { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; padding: 0; border: 0; margin: 0;
  background: none; border-radius: 0; overflow: visible; transform: none; box-shadow: none; }
.rb-seite .rb-zeile img.rb-zeile__bild { display: block; width: 112px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.rb-zeile__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rb-seite .rb-zeile h3 { font-family: var(--rb-titel-schrift); font-weight: var(--rb-titel-gewicht); font-size: 15px; line-height: 1.28; margin: 0; overflow-wrap: anywhere; }
.rb-seite .rb-zeile h3 a { color: var(--rb-tinte); text-decoration: none; }
.rb-seite .rb-zeile h3 a:hover { color: var(--rb-akzent-text); }
.rb-paar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 22px; }
.rb-liste--zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; }

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

/* Altes Listenraster und alte Farben aus styles.css aufheben */
.rb-seite .eintrag:first-child { border-top: 0; }
.rb-seite .brief { background: var(--rb-flaeche); border-top: 1px solid var(--rb-linie); margin-top: 20px; }
.rb-seite .brief .marke { color: var(--rb-akzent-text); }
.rb-seite .brief .knopf { background: var(--rb-akzent); border-color: var(--rb-akzent); color: #fff; }
.rb-seite .brief .knopf:hover { background: var(--rb-akzent-dunkel); border-color: var(--rb-akzent-dunkel); color: #fff; }
.rb-seite .text a.lp-taste { color: #fff; }

/* Fuß dunkel */
.rb-seite .fuss { background: var(--rb-dunkel); color: rgba(255,255,255,.82); border-top: 4px solid var(--rb-akzent); }
.rb-seite .fuss a, .rb-seite .fuss ul a { color: rgba(255,255,255,.86); }
.rb-seite .fuss a:hover { color: #fff; }
.rb-seite .fuss h4, .rb-seite .fuss p, .rb-seite .fuss__sockel { color: rgba(255,255,255,.78); }
.rb-seite .fuss__sockel { border-top-color: rgba(255,255,255,.14); }
.rb-seite .fuss__logo img { background: #fff; padding: 10px 14px; box-sizing: content-box; border-radius: 2px; }

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

/* Breiten */
@media (max-width: 1099px) {
  .rb-mosaik__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-kachel--gross { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .rb-spalten { grid-template-columns: minmax(0, 1fr); }
  .rb-seitenleiste { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}
@media (max-width: 979px) {
  .rb-navbar, .rb-topbar__links { display: none; }
  .rb-kopf { position: sticky; top: 0; border-bottom: 3px solid var(--rb-akzent); }
  .rb-kopf__in { padding-top: 10px; padding-bottom: 10px; gap: 16px; }
  .rb-werbung--kopf, .rb-kopf__zeile { display: none; }
  .rb-kopf h1.rb-kopf__zeile { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rb-kopf__logo img { height: calc(var(--rb-logo-hoehe) * .76); }
  .rb-kopf__knopf { display: block; }
  .rb-mobil.offen { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 3px solid var(--rb-akzent); box-shadow: 0 12px 24px -12px rgba(0,0,0,.25); padding: 6px 24px 14px; }
  .rb-mobil a { padding: 13px 0; border-bottom: 1px solid var(--rb-linie); font-family: var(--rb-ui); font-size: 15px; font-weight: 700; color: var(--rb-tinte); text-decoration: none; }
  .rb-mobil a:last-child { border-bottom: 0; color: var(--rb-zweit-text); }
  .rb-mobil a[aria-current="page"] { color: var(--rb-akzent-text); }
  .rb-werbung--im-text .rb-werbung__link { width: 100%; }
}
@media (max-width: 759px) {
  .rb-block__raster, .rb-liste--zwei { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .rb-bahn { padding: 0 16px; }
  .rb-mobil.offen { padding: 6px 16px 14px; }
  .rb-mosaik { padding-top: 12px; }
  .rb-mosaik__raster { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--rb-dunkel); }
  .rb-kachel { aspect-ratio: auto; }
  .rb-kachel--gross { display: block; grid-column: auto; }
  .rb-kachel .rb-kachel__bild { position: static; height: auto; aspect-ratio: 16 / 9; }
  .rb-kachel:hover .rb-kachel__bild { transform: none; }
  .rb-kachel--gross .rb-kachel__text { background: var(--rb-dunkel); padding: 14px 14px 18px; gap: 8px; }
  .rb-kachel--gross .rb-kachel__titel { font-size: 22px; -webkit-line-clamp: unset; display: block; }
  .rb-mosaik .rb-kachel:not(.rb-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); }
  .rb-mosaik .rb-kachel:not(.rb-kachel--gross) .rb-kachel__text { background: none; padding: 0; gap: 5px; }
  .rb-mosaik .rb-kachel:not(.rb-kachel--gross) .rb-kachel__titel { font-size: 15.5px; -webkit-line-clamp: 4; }
  .rb-paar { grid-template-columns: minmax(0, 1fr); }
  .rb-werbung--breit .rb-werbung__link { width: 300px; }
  .rb-seitenleiste { grid-template-columns: minmax(0, 1fr); }
  .rb-werbung--quadrat { justify-self: center; }
  .rb-unterseite .beitragskopf__meta { font-size: 14px; gap: 4px 8px; }
  .rb-unterseite .beitragskopf__meta > * + *::before { margin-right: 8px; }
}

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


/* Farben und Schrift dieses Magazins (aus scripts/design.json) */
.rb-seite {
  --rb-dunkel: #0e2a2e;
  --rb-akzent: #137a83;
  --rb-akzent-dunkel: #0e5f66;
  --rb-akzent-hell: #2bb0b8;
  --rb-akzent-text: #0f6b73;
  --rb-zweit: #e07a5f;
  --rb-zweit-text: #b03f22;
  --rb-grau: #5a6264;
  --rb-linie: #e3e9ea;
  --rb-flaeche: #f2f7f7;
  --rb-tinte: #141a1b;
  --rb-tinte-2: #2b3335;
  --rb-titel-schrift: var(--anzeige);
  --rb-titel-gewicht: 700;
  --rb-logo-hoehe: 56px;
}
