/* Rödertalbienen – Ergänzungen des Themes zu rb.css (Design System).
   Bereichs-Styles liegen in assets/css/seiten/*.css. */

/* ---------- Grundlagen ---------- */
body { margin: 0; }
.rb-skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--bienengelb); color: var(--schwarz); font-weight: 600; text-decoration: none; }
.rb-skip:focus { top: 8px; }
.rb-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
.rb-result--u { background: var(--tinte-gedaempft); }
.rb-team { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rb-team img, .rb-team .rb-crest { width: 28px; height: 28px; object-fit: contain; flex: none; }
.rb-team .rb-crest { font-size: 11px; box-shadow: inset 0 0 0 1px var(--grau-linie); }
.rb-wappen { object-fit: contain; }

/* ---------- Kopf ---------- */
.rb-header__liga { display: flex; align-items: center; flex: none; padding-left: clamp(16px, 1.6cqi, 28px); border-left: 1px solid var(--dunkel-linie); height: 48px; }
.rb-header__liga img { width: auto; height: 46px; }
.rb-header__in { gap: clamp(16px, 2.2cqi, 56px); }
.rb-mobilnav { background: var(--schwarz); border-top: 1px solid var(--dunkel-linie); }
.rb-mobilnav[hidden] { display: none; }
.rb-mobilnav .rb-wrap { display: grid; padding-top: 8px; padding-bottom: 24px; }
.rb-mobilnav a { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; color: var(--weiss); padding: 14px 0; border-bottom: 1px solid var(--dunkel-linie); }
.rb-mobilnav a[aria-current="page"] { color: var(--bienengelb); }
.rb-burger[aria-expanded="true"] span { background: transparent; }
.rb-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.rb-burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Spiel-Leiste: Spieltage deutlicher, Tabellenausschnitt ---------- */
.rb-matchstrip__label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.rb-matchstrip__label .rb-chip { height: 30px; padding: 0 14px; font-size: 13px; letter-spacing: .8px; }
.rb-matchstrip__meta .rb-btn--klein { margin-left: auto; height: 36px; font-size: 14px; }
.rb-matchstrip__meta .rb-btn--kontur { border-width: 2px; }
.rb-score__num--vs { font-size: calc(var(--strip-zahl) * .55); color: var(--tinte-gedaempft); }
.rb-score .rb-crest { width: clamp(40px, 3cqi, 56px); height: clamp(40px, 3cqi, 56px); }
.rb-minitabelle { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 4px; font-size: var(--strip-text); line-height: 1.3; }
.rb-minitabelle li { display: grid; grid-template-columns: 2.2em 1fr auto; align-items: center; gap: 10px; padding: 6px 10px; border-radius: var(--radius-2); }
.rb-minitabelle li.is-hcr { background: var(--bienengelb-hell); box-shadow: inset 4px 0 0 var(--bienengelb); font-weight: 700; }
.rb-minitabelle__platz { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.rb-minitabelle__pkt { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.rb-minitabelle .rb-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Schnellzugriff: Bildkacheln ---------- */
.rb-kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4cqi, 28px); }
.rb-kachel {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(220px, 17cqi, 380px); padding: clamp(20px, 1.8cqi, 36px);
  border-top: 5px solid var(--bienengelb); border-radius: 0 0 var(--radius-2) var(--radius-2);
  color: var(--weiss); text-decoration: none; background: var(--schwarz);
}
.rb-page a.rb-kachel { color: var(--weiss); }
.rb-kachel__bild { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .4s ease; }
.rb-kachel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(0 0 0 / .9) 0%, rgb(0 0 0 / .55) 45%, rgb(0 0 0 / .05) 100%); transition: background-color .2s; }
.rb-kachel:hover .rb-kachel__bild { transform: scale(1.05); }
.rb-kachel__kicker { font-size: clamp(11px, .8cqi, 13px); line-height: 16px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--bienengelb); margin-bottom: 6px; }
.rb-kachel__titel { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 1.8cqi, 36px); line-height: 1.15; text-transform: uppercase; padding-right: 36px; }
.rb-kachel__text { margin-top: 8px; font-size: clamp(14px, .95cqi, 16px); line-height: 1.5; color: rgb(255 255 255 / .82); }
.rb-kachel__pfeil { position: absolute; right: clamp(20px, 1.8cqi, 36px); bottom: clamp(20px, 1.8cqi, 36px); width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-rund); background: var(--bienengelb); color: var(--schwarz); font-size: 20px; transition: transform .15s; }
.rb-kachel:hover .rb-kachel__pfeil { transform: translateX(4px); }
.rb-kachel__text { padding-right: 52px; }

/* ---------- Nachwuchs-Leiste unter Aktuelles ---------- */
.rb-nachwuchsleiste { margin-top: clamp(40px, 4cqi, 88px); }
.rb-nachwuchsleiste__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--tinte); margin-bottom: clamp(16px, 1.4cqi, 28px); }
.rb-nachwuchsleiste__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 1.6cqi, 32px); }
.rb-nachwuchsleiste__liste a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.rb-nachwuchsleiste__bild { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--grau-flaeche); }
.rb-nachwuchsleiste__bild img { width: 100%; height: 100%; object-fit: cover; }
.rb-nachwuchsleiste .rb-news__meta { margin: 0; }
.rb-nachwuchsleiste__titel { font-family: var(--font-display); font-weight: 500; font-size: clamp(16px, 1.1cqi, 20px); line-height: 1.3; text-transform: uppercase; }
.rb-nachwuchsleiste__liste a:hover .rb-nachwuchsleiste__titel { text-decoration: underline; text-decoration-color: var(--bienengelb); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ---------- Hauptsponsor, Livestream, Digitalpartner ---------- */
.rb-sponsorband { background: var(--dunkel-flaeche); color: var(--weiss); padding: clamp(40px, 4cqi, 88px) 0; text-align: center; }
.rb-sponsorband__rolle { font-size: clamp(11px, .8cqi, 13px); line-height: 16px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--auf-dunkel-gedaempft); margin-bottom: 16px; }
.rb-sponsorband__banner { display: block; max-width: 1400px; margin: 0 auto; text-decoration: none; }
.rb-sponsorband__banner img { width: 100%; height: auto; border-radius: var(--radius-2); }
.rb-sponsorband__platzhalter { display: grid; place-items: center; gap: 6px; aspect-ratio: 16 / 3; min-height: 120px; border: 2px dashed var(--dunkel-linie); border-radius: var(--radius-2); padding: 16px; }
.rb-sponsorband__platzhalter b { font: 600 clamp(28px, 3cqi, 64px)/1 var(--font-display); text-transform: uppercase; letter-spacing: 1px; }
.rb-sponsorband__platzhalter small { font-size: 13px; color: var(--auf-dunkel-gedaempft); }
.rb-sponsorband__stream { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: clamp(28px, 2.6cqi, 48px); }
.rb-sponsorband__stream p { font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 1.3cqi, 24px); letter-spacing: 1px; text-transform: uppercase; }
.rb-sponsorband__stream b { color: var(--bienengelb); font-weight: 600; }
.rb-livestream { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 18px 0 8px; border-radius: var(--radius-rund); box-shadow: inset 0 0 0 1px var(--auf-dunkel-gedaempft); font-weight: 600; text-decoration: none; }
.rb-livestream:hover { background: var(--weiss); color: var(--schwarz); }
.rb-page .rb-livestream:hover { color: var(--schwarz); }
.rb-sponsorband__digital { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: clamp(28px, 2.6cqi, 48px); padding-top: clamp(20px, 2cqi, 32px); border-top: 1px solid var(--dunkel-linie); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--auf-dunkel-gedaempft); }
.rb-sponsorband__digital a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--weiss); text-decoration: none; }
.rb-sponsorband__digital img { width: 20px; height: 20px; }

/* ---------- Spielkarte: Heimspiele gelb, Wappen ---------- */
.rb-match--heim { background: var(--bienengelb); box-shadow: none; }
.rb-match--heim .rb-match__date { box-shadow: none; border-right-color: rgb(0 0 0 / .14); }
.rb-match--heim .rb-match__wd, .rb-match--heim .rb-match__mon, .rb-match--heim .rb-match__meta, .rb-match--heim .rb-match__venue { color: rgb(0 0 0 / .72); }
.rb-match__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rb-match__title b { font-weight: 700; }
.rb-match__gegen { color: var(--tinte-gedaempft); }
.rb-match--heim .rb-match__gegen { color: rgb(0 0 0 / .55); }
.rb-match__link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--bienengelb); white-space: nowrap; font-size: 15px; }
.rb-match--heim .rb-match__link { border-bottom-color: var(--schwarz); }
.rb-match__action .rb-result { margin-left: -4px; }

/* ---------- Tabelle ---------- */
.rb-table-scroll { overflow-x: auto; }
.rb-table .rb-team img, .rb-table .rb-team .rb-crest { width: 24px; height: 24px; }
.rb-table tr.is-auf td:first-child { box-shadow: inset 4px 0 0 var(--ergebnis-sieg); }
.rb-table tr.is-ab td:first-child { box-shadow: inset 4px 0 0 var(--ergebnis-niederlage); }
.rb-table tr.is-hcr td:first-child { box-shadow: inset 4px 0 0 var(--bienengelb); }

/* ---------- Fließtext (Inhalte aus dem Editor) ---------- */
.rb-text { max-width: var(--container-text); font-size: clamp(16px, 1.05cqi, 18px); line-height: 1.7; }
.rb-text > * + * { margin-top: 1.1em; }
.rb-text h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 1.9cqi, 36px); line-height: 1.2; text-transform: uppercase; margin-top: 1.8em; }
.rb-text h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.4cqi, 26px); line-height: 1.25; text-transform: uppercase; margin-top: 1.6em; }
.rb-text a { text-decoration-color: var(--bienengelb); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rb-text ul, .rb-text ol { padding-left: 1.3em; }
.rb-text img { height: auto; }
.rb-text figure { margin-left: 0; margin-right: 0; }
.rb-text figcaption { font-size: 14px; color: var(--tinte-gedaempft); margin-top: 6px; }
.rb-text blockquote { margin-left: 0; padding-left: 20px; border-left: 4px solid var(--bienengelb); font-size: 1.1em; }
.rb-text table { width: 100%; border-collapse: collapse; }
.rb-text td, .rb-text th { padding: 8px 10px; border-bottom: 1px solid var(--grau-linie); text-align: left; }
.rb-elementor { max-width: none; }

/* ---------- Übersichten ---------- */
.rb-news-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3cqi, 56px) clamp(20px, 2.4cqi, 48px); }
.rb-seitenzahlen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(32px, 3cqi, 64px); }
.rb-seitenzahlen .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--radius-2); box-shadow: inset 0 0 0 1px var(--grau-linie); text-decoration: none; font-weight: 600; }
.rb-seitenzahlen .page-numbers.current { background: var(--schwarz); color: var(--weiss); box-shadow: none; }

/* ---------- Förderlogos über dem Footer ---------- */
.rb-foerder { background: var(--weiss); border-top: 1px solid var(--grau-linie); padding: clamp(24px, 2.2cqi, 40px) 0; }
.rb-foerder__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 3cqi, 56px); }
.rb-foerder__logo img { height: clamp(44px, 3.4cqi, 64px); width: auto; }
.rb-foerder__logo.is-breit img { height: clamp(40px, 3cqi, 56px); }

/* ---------- Footer: ruhiger, Geschäftsstelle links ---------- */
.rb-footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.rb-footer__brand { display: flex; gap: clamp(16px, 1.6cqi, 28px); align-items: flex-start; }
.rb-footer__brand img { width: 72px; height: 72px; margin: 0; flex: none; }
.rb-footer__brand p + p { margin-top: 12px; }
.rb-footer h3 { color: var(--weiss); font-size: clamp(15px, .95cqi, 17px); }
.rb-footer__kontakt a, .rb-footer__zeiten { color: var(--weiss); text-decoration: none; }
.rb-footer__zeiten { font-size: clamp(14px, .95cqi, 16px); line-height: 1.7; color: var(--auf-dunkel-gedaempft); }
.rb-footer li a { color: var(--auf-dunkel-gedaempft); }
.rb-page .rb-footer li a:hover { color: var(--weiss); }

/* ---------- Rechte Leiste: Förderlogos + Biene „Mitglied werden“ (nur breite Bildschirme) ---------- */
.rb-leiste { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 15; display: none; flex-direction: column; align-items: flex-end; gap: 8px; }
.rb-leiste__logos { display: flex; flex-direction: column; gap: 6px; padding: 8px 6px; background: var(--weiss); border-radius: var(--radius-2) 0 0 var(--radius-2); box-shadow: 0 4px 16px rgb(0 0 0 / .14); }
.rb-leiste__logo { display: block; width: 46px; }
.rb-leiste__logo img { width: 46px; height: auto; max-height: 52px; object-fit: contain; }
.rb-leiste__logo.is-breit img { max-height: none; }
.rb-leiste__biene { display: flex; align-items: center; gap: 0; height: 52px; padding: 0 9px; background: var(--bienengelb); color: var(--schwarz); border-radius: var(--radius-rund) 0 0 var(--radius-rund); text-decoration: none; box-shadow: 0 4px 16px rgb(0 0 0 / .18); }
.rb-page a.rb-leiste__biene { color: var(--schwarz); }
.rb-leiste__biene img { width: 34px; height: 36px; flex: none; }
.rb-leiste__biene span { max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; transition: max-width .25s ease, margin .25s ease; }
.rb-leiste__biene:hover span, .rb-leiste__biene:focus-visible span { max-width: 200px; margin: 0 8px 0 10px; }
@media (min-width: 1081px) { .rb-leiste { display: flex; } }

/* ================= Tablet ================= */
@container page (max-width: 1080px) {
  .rb-kacheln { grid-template-columns: repeat(2, 1fr); }
  .rb-nachwuchsleiste__liste { grid-template-columns: repeat(3, 1fr); }
  .rb-nachwuchsleiste__liste li:nth-child(n+4) { display: none; }
  .rb-news-raster { grid-template-columns: repeat(2, 1fr); }
  .rb-footer__top { grid-template-columns: 1fr 1fr; }
  .rb-header__liga { display: none; }
}
@container page (max-width: 900px) {
  .rb-matchstrip__meta .rb-btn--klein { margin-left: 0; }
}

/* ================= Mobil ================= */
@container page (max-width: 600px) {
  .rb-kacheln { gap: 10px; }
  .rb-kachel { min-height: 168px; padding: 16px; }
  .rb-kachel__text { display: none; }
  .rb-kachel__titel { padding-right: 0; font-size: 19px; }
  .rb-kachel__pfeil { width: 30px; height: 30px; font-size: 16px; right: 12px; bottom: auto; top: 12px; }
  .rb-nachwuchsleiste__liste { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .rb-nachwuchsleiste__liste li { scroll-snap-align: start; }
  .rb-nachwuchsleiste__liste li:nth-child(n+4) { display: block; }
  .rb-news-raster { grid-template-columns: 1fr; }
  .rb-table .rb-opt { display: none; }
  .rb-match__title { gap: 2px 8px; font-size: 15px; }
  .rb-footer__top { grid-template-columns: 1fr; }
  .rb-footer__brand { grid-column: auto; }
  .rb-foerder__in { gap: 18px 24px; }
  .rb-foerder__logo img { height: 40px; }
  .rb-sponsorband__platzhalter { aspect-ratio: 16 / 6; }
}

/* ---------- Startseite: News-Raster kompakter (rechte Spalte 16:9, Aufmacher füllt die Höhe) ---------- */
.rb-news-grid .rb-news:not(.rb-news--gross) .rb-news__img { aspect-ratio: 16 / 9; }
@container page (min-width: 901px) {
  .rb-news-grid .rb-news:not(.rb-news--gross) .rb-news__teaser { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
}
.rb-sponsorband__logo { display: inline-grid; place-items: center; background: var(--weiss); border-radius: var(--radius-2); padding: clamp(16px, 1.6cqi, 32px) clamp(28px, 3cqi, 64px); }
.rb-sponsorband__logo img { width: clamp(220px, 22cqi, 460px); height: auto; }
