/* Medienfabrik: Fabrikhalle, Themen-Board, Lager und Mediathek (20.11.2026). Nur Tokens aus ehbs-web.css. */
.fb-breit { max-width: 1680px; }
.fb-unter { color: var(--ehbs-text-sek); max-width: 70rem; }
.fb-wachsen { flex: 1 1 12rem; }
.fb-klein { min-height: 32px; padding: var(--space-1) var(--space-3); }
.fb-zeit { width: 9.5rem; flex: none; }

/* Kennzahlen */
.fb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-4); margin: var(--space-6) 0; }
.fb-kpi { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); background: var(--ehbs-bg-soft); border-left: 6px solid var(--ehbs-primary); border-radius: var(--radius); text-decoration: none; color: var(--ehbs-text); }
.fb-kpi:hover { background: var(--ehbs-primary-tint); }
.fb-kpi__zahl { font-size: 2rem; font-weight: 700; color: var(--ehbs-primary); line-height: 1.1; }
.fb-kpi__text { font-size: var(--fs-small); color: var(--ehbs-text-sek); }
.fb-kpi--rot { border-left-color: var(--ehbs-red); }
.fb-kpi--rot .fb-kpi__zahl { color: var(--ehbs-red); }

/* Fließband */
.fb-band { background: var(--ehbs-bg-soft); border-radius: 8px; padding: var(--space-4); overflow-x: auto; }
.fb-band__reihe { display: flex; align-items: stretch; min-width: 1380px; }
.fb-station { position: relative; flex: 1 1 0; min-height: 150px; display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: var(--ehbs-text);
  background: var(--ehbs-white); border: 2px solid var(--ehbs-line); border-radius: 8px; padding: var(--space-3); text-decoration: none; cursor: pointer; }
.fb-station:hover, .fb-station:focus-visible { border-color: var(--ehbs-primary); }
.fb-station[aria-pressed="true"] { border-color: var(--ehbs-primary); background: var(--ehbs-primary-tint); box-shadow: 0 0 0 2px var(--ehbs-primary); }
.fb-station--lager { background: var(--ehbs-tint-hinweis); border-color: var(--ehbs-yellow); }
.fb-station--ausgang { background: var(--ehbs-primary-tint); border-color: var(--ampel-green); }
.fb-station--neu { cursor: default; border-style: dashed; }
.fb-station__nr { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ehbs-text-sek); }
.fb-station__name { font-weight: 700; color: var(--ehbs-primary); }
.fb-station__text { font-size: 0.78rem; line-height: 1.35; color: var(--ehbs-text-sek); }
.fb-station__zusatz { margin-top: auto; padding-top: var(--space-2); font-size: 0.72rem; color: var(--ehbs-text-sek); }
.fb-pfeil { flex: none; width: 24px; display: flex; align-items: center; justify-content: center; color: var(--ehbs-grey); }
.fb-lampe { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--ehbs-line); flex: none; }
.fb-station .fb-lampe { position: absolute; top: 10px; right: 10px; }
.fb-lampe--an { background: var(--ampel-green); box-shadow: 0 0 0 3px var(--ehbs-primary-tint); }
.fb-lampe--neu { background: var(--ampel-yellow); }
.fb-lampe--aus { background: var(--ehbs-line); border: 1px solid var(--ehbs-grey); }
.fb-lampe--puls { animation: fb-puls 1.4s infinite; }
@keyframes fb-puls { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .fb-lampe--puls { animation: none; } }
.fb-legende { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: var(--space-3) 0 0; font-size: var(--fs-small); color: var(--ehbs-text-sek); }
.fb-legende span { display: inline-flex; align-items: center; gap: var(--space-2); }

/* Innenansicht einer Station */
.fb-innen { margin-top: var(--space-4); border: 2px solid var(--ehbs-primary); border-radius: 8px; padding: var(--space-4); }
.fb-innen__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.fb-innen__kopf h3 { margin: 0; color: var(--ehbs-primary); }
.fb-innen__knoepfe { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.fb-innen__knoepfe select { min-height: 44px; font: inherit; }
.fb-plan { border: 1px solid var(--ehbs-line); border-radius: 8px; background: var(--ehbs-bg-soft); overflow-x: auto; margin-bottom: var(--space-2); }
.fb-plan a { text-decoration: none; }
.fb-plan svg { display: block; width: 100%; height: auto; min-width: 900px; }
.fb-plan .k rect { fill: var(--ehbs-white); stroke: var(--ehbs-grey); stroke-width: 1.5; }
.fb-plan a:hover .k rect, .fb-plan a:focus .k rect { stroke: var(--ehbs-primary); stroke-width: 3; }
.fb-plan .k--ki rect { fill: var(--ehbs-tint-hinweis); stroke: var(--ehbs-orange); }
.fb-plan .k--web rect { fill: var(--ehbs-primary-tint); stroke: var(--ehbs-primary); }
.fb-plan .k--start rect { stroke: var(--ampel-green); stroke-width: 2.5; }
.fb-plan text { font-family: var(--ehbs-font); font-size: 13px; fill: var(--ehbs-text); }
.fb-plan text.t { font-size: 10.5px; fill: var(--ehbs-text-sek); }
.fb-plan path.v { fill: none; stroke: var(--ehbs-grey); stroke-width: 1.6; }
.fb-plan marker path { fill: var(--ehbs-grey); }

/* Zwei Flächen unten */
.fb-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-6); }
.fb-flaeche { background: var(--ehbs-bg-soft); border-radius: 8px; padding: var(--space-4) var(--space-6); }
.fb-flaeche h2 { font-size: var(--fs-lg); margin-top: var(--space-4); color: var(--ehbs-primary); }
.fb-flaeche h2:first-child { margin-top: 0; }
.fb-zeile--strich { padding: var(--space-2) 0; border-bottom: 1px solid var(--ehbs-line); }
.fb-zeile--strich:last-child { border-bottom: 0; }
.fb-zeile form { margin: 0; }
.fb-paar { display: inline-flex; gap: var(--space-2); }
@media (max-width: 1000px) { .fb-zwei { grid-template-columns: 1fr; } }

/* Kästchen für Kanal und Quelle */
.fb-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 0.72rem; font-weight: 700; line-height: 1.2; border-radius: 3px; padding: 2px 6px; white-space: nowrap; border: 0; font-family: inherit;
  color: var(--ehbs-text-on-dark); background: var(--ehbs-primary); }
.fb-chip--szh { background: var(--ehbs-orange); color: var(--ehbs-text); }
.fb-chip--dba { background: var(--ehbs-anthracite); }
.fb-chip--q-such { background: var(--ehbs-yellow); color: var(--ehbs-text); }
.fb-chip--q-tag { background: var(--ehbs-red); }
.fb-chip--q-kunde { background: var(--ampel-green); }
.fb-chip--q-fach { background: var(--ehbs-grey); }
.fb-chip--q-thomas { background: var(--ehbs-white); color: var(--ehbs-primary); box-shadow: inset 0 0 0 1.5px var(--ehbs-primary); }
.fb-chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* Leiste über dem Board */
.fb-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); background: var(--ehbs-bg-soft); border-radius: 8px; padding: var(--space-3) var(--space-4); margin: var(--space-4) 0; }
.fb-leiste meter { width: 140px; vertical-align: middle; margin-left: var(--space-2); }
.fb-leiste__knoepfe { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: flex-start; }
.fb-aufklapp { position: relative; }
.fb-aufklapp[open] { flex: none; }
.fb-auf > form.fb-schwebe { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(480px, 92vw); margin-top: 0; background: var(--ehbs-white); box-shadow: 0 8px 28px rgba(0, 0, 0, .18); border: 1px solid var(--ehbs-line); }
.fb-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.fb-filter .fb-chip { cursor: pointer; font-size: 0.8rem; padding: 5px 9px; opacity: .5; }
.fb-filter .fb-chip[aria-pressed="true"], .fb-filter--leer .fb-chip { opacity: 1; }
.fb-filter .fb-chip[aria-pressed="true"] { outline: 2px solid var(--ehbs-text); outline-offset: 1px; }
.fb-trenner { width: 1px; height: 22px; background: var(--ehbs-line); margin: 0 var(--space-2); }
.fb-filter__alle { background: none; border: 0; color: var(--ehbs-primary); text-decoration: underline; cursor: pointer; font: inherit; }

/* Board */
.fb-board { display: grid; grid-template-columns: repeat(7, minmax(220px, 1fr)); gap: var(--space-3); overflow-x: auto; padding-bottom: var(--space-4); align-items: start; }
.fb-spalte { background: var(--ehbs-bg-light); border-radius: 8px; padding: var(--space-3); min-height: 60vh; }
.fb-spalte h2 { font-size: 1rem; margin: 0; display: flex; justify-content: space-between; align-items: center; color: var(--ehbs-primary); }
.fb-anzahl { background: var(--ehbs-white); border-radius: 10px; padding: 0 8px; font-size: 0.8rem; color: var(--ehbs-text-sek); font-weight: 400; }
.fb-spalte__hinweis { font-size: 0.75rem; color: var(--ehbs-text-sek); margin: 2px 0 var(--space-3); }
.fb-spalte--vorgeschlagen, .fb-spalte--in_pruefung { box-shadow: inset 0 4px 0 var(--ehbs-red); }
.fb-tkarte { background: var(--ehbs-white); border-radius: 6px; padding: var(--space-3); margin-bottom: var(--space-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); border-top: 4px solid var(--ehbs-primary); }
.fb-tkarte--szh { border-top-color: var(--ehbs-orange); }
.fb-tkarte--dba { border-top-color: var(--ehbs-anthracite); }
.fb-tkarte h3 { font-size: 0.92rem; line-height: 1.3; margin: var(--space-2) 0; }
.fb-tkarte h3 a { color: var(--ehbs-text); text-decoration: none; }
.fb-tkarte h3 a:hover { text-decoration: underline; }
.fb-tkarte__grund { font-size: 0.78rem; line-height: 1.35; background: var(--ehbs-bg-soft); border-radius: 4px; padding: 5px 7px; margin: 0 0 var(--space-2); }
.fb-tkarte__knoepfe { display: flex; gap: 6px; margin: var(--space-2) 0; }
.fb-tkarte__knoepfe form { flex: 1; margin: 0; }
.fb-tkarte__knoepfe button, .fb-tkarte__knoepfe a { width: 100%; display: block; text-align: center; font: inherit; font-size: 0.8rem; padding: 6px; border-radius: 5px; cursor: pointer;
  border: 1px solid var(--ehbs-line); background: var(--ehbs-white); color: var(--ehbs-text); text-decoration: none; }
.fb-tkarte__knoepfe .fb-ja { background: var(--ampel-green); border-color: var(--ampel-green); color: var(--ehbs-text-on-dark); font-weight: 700; }
.fb-tkarte__fuss { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--ehbs-text-sek); }
.fb-stufe { border: 1px solid var(--ehbs-grey); border-radius: 3px; padding: 0 5px; }
.fb-stufe--3 { border-color: var(--ehbs-red); color: var(--ehbs-red); font-weight: 700; }
.fb-fort { width: 100%; height: 6px; margin: var(--space-2) 0; }
.fb-abgelehnt { margin-top: var(--space-6); }
.fb-abgelehnt summary { cursor: pointer; font-weight: 700; }

/* Lager */
.fb-regale { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-4); margin: var(--space-6) 0; }
.fb-regal { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); border-radius: 8px; background: var(--ehbs-tint-hinweis); border-top: 5px solid var(--ehbs-yellow); text-decoration: none; color: var(--ehbs-text); }
.fb-regal:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.fb-regal__titel { font-weight: 700; color: var(--ehbs-primary); }
.fb-regal__zahl { font-size: 2rem; font-weight: 700; color: var(--ehbs-primary); }
.fb-regal__text { font-size: var(--fs-small); color: var(--ehbs-text-sek); }
.fb-suche input { flex: 1 1 320px; min-height: 44px; padding: var(--space-2) var(--space-3); border: 2px solid var(--ehbs-line); border-radius: var(--radius); font: inherit; }
.fb-clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-4); }
.fb-clip { margin: 0; background: var(--ehbs-bg-soft); border-radius: 8px; overflow: hidden; }
.fb-clip video, .fb-clip img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ehbs-dark); }
.fb-clip figcaption { padding: var(--space-2) var(--space-3); font-size: 0.8rem; line-height: 1.35; }
.fb-clip figcaption .ehbs-meta { display: block; margin-top: var(--space-1); font-size: 0.72rem; }
.fb-clip__leer { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--ehbs-primary-tint); color: var(--ehbs-text-sek); font-size: var(--fs-small); }
.fb-bausteine { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--space-4); }
.fb-baustein { margin: 0; background: var(--ehbs-bg-soft); border-radius: 8px; overflow: hidden; }
.fb-baustein video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ehbs-dark); }
.fb-baustein figcaption { padding: var(--space-2) var(--space-3); font-size: 0.78rem; line-height: 1.35; }
.fb-stimmen { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-4); }
.fb-stimme { display: flex; flex-direction: column; padding: var(--space-3) var(--space-4); background: var(--ehbs-bg-soft); border-left: 6px solid var(--ehbs-primary); border-radius: var(--radius); }
.fb-stimme--szh { border-left-color: var(--ehbs-orange); }
.fb-stimme--dba { border-left-color: var(--ehbs-anthracite); }
.fb-fakten li { margin-bottom: var(--space-2); max-width: 80rem; }

/* Mediathek und Abspieler */
.fb-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.fb-video { display: flex; flex-direction: column; background: var(--ehbs-bg-soft); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--ehbs-text); }
.fb-video:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.fb-video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--ehbs-dark); }
.fb-video__text { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3); }
.fb-spieler { width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; background: var(--ehbs-dark); border-radius: 8px; display: block; margin-bottom: var(--space-4); }

/* Phase D: Beiträge, Marketing */
.fb-board--vier { grid-template-columns: repeat(4, minmax(240px, 1fr)); }
.fb-spalte--b-entwurf { box-shadow: inset 0 4px 0 var(--ehbs-red); }
.fb-chip--art-short { background: var(--ehbs-red); }
.fb-chip--art-meta { background: var(--ehbs-primary); }
.fb-chip--art-linkedin_firma { background: var(--ehbs-grey); }
.fb-chip--art-linkedin_thomas { background: var(--ehbs-anthracite); }
a.fb-chip { text-decoration: none; color: var(--ehbs-white); }
.fb-filter a.fb-chip:not([class*="fb-chip--art-"]) { background: var(--ehbs-anthracite); }
.fb-filter a.fb-chip { opacity: .55; font-size: 0.8rem; padding: 5px 9px; }
.fb-filter a.fb-chip--aktiv { opacity: 1; outline: 2px solid var(--ehbs-text); outline-offset: 1px; }
.fb-tkarte__warn { font-size: 0.72rem; color: var(--ehbs-text); background: var(--ehbs-bg-soft); border-left: 3px solid var(--ampel-yellow); padding: 3px 6px; margin: 0 0 var(--space-2); }
.fb-tkarte__zahlen { display: flex; gap: var(--space-3); font-size: 0.75rem; margin: 0 0 var(--space-2); }
.fb-beitrag { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: var(--space-4); margin: var(--space-6) 0; align-items: start; }
.fb-spieler--hoch { aspect-ratio: 9 / 16; max-height: 70vh; width: auto; max-width: 100%; }
.fb-beitrag__bild { width: 100%; border-radius: 8px; display: block; }
.fb-beitrag__text { white-space: pre-wrap; background: var(--ehbs-bg-soft); border-radius: 6px; padding: var(--space-4); }
.fb-beitrag textarea { font-family: inherit; line-height: 1.5; }
.fb-unterreiter { display: flex; flex-wrap: wrap; gap: var(--space-2); border-bottom: 2px solid var(--ehbs-line); margin: var(--space-6) 0 var(--space-4); }
.fb-unterreiter a { padding: var(--space-2) var(--space-4); text-decoration: none; border-bottom: 4px solid transparent; margin-bottom: -2px; min-height: 44px; display: inline-flex; align-items: center; gap: var(--space-2); }
.fb-unterreiter a[aria-current="page"] { border-bottom-color: var(--ehbs-red); font-weight: 700; }
@media (max-width: 800px) { .fb-beitrag { grid-template-columns: 1fr; } }
