/* HSBI Forschungslandkarte – Layout A: Header + full-width Filter + Tabs + Drawer */

@import url('fonts.css');

:root {
    --hsbi-primary: #2c3e50;
    --hsbi-accent: #c8a591;
    --hsbi-link: #0066cc;
    --hsbi-fb: #6eafc8;
    --hsbi-person: #c0392b;
    --bg: #ffffff;
    --bg-soft: #f8f9fa;
    --bg-muted: #f3f4f6;
    --border: #e5e7eb;
    --text: #1f2937;
    --text-soft: #4b5563;
    --text-muted: #6b7280;
}

* {
    font-family: 'HSBI Lausanne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    box-sizing: border-box;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-weight: 400;
    margin: 0;
    height: 100%;
    overflow: hidden;
}

.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 12px 16px !important;
    max-width: none !important;
}

/* ─── App-Header ────────────────────────── */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 4px 4px 10px 4px;
    margin-bottom: 12px;
    gap: 8px 16px;
    flex-shrink: 0;
    /* Bei jeder Fensterbreite umbrechen statt überlappen: passt nicht alles in
       eine Zeile, rutschen erst die Stats unter den Titel, dann die Buttons in
       eine eigene Zeile (rechtsbündig). Vorher schob sich der nowrap-Titel
       zwischen 700 und ~1350px über Stats und Buttons. */
    flex-wrap: wrap;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 2px 16px;
    /* Basis 0 + min-content: die Buttons bleiben in Zeile 1, solange Logo+Titel
       daneben passen — vorher rutschen nur die Stats unter den Titel. */
    flex: 1 1 0;
    min-width: min-content;
    flex-wrap: wrap;
}
.header-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.header-right { display: flex; gap: 6px; flex-shrink: 0; margin-left: auto; }
.app-logo { height: 36px; width: auto; flex-shrink: 0; }
.app-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--hsbi-primary);
    margin: 0;
    white-space: nowrap;
}
.header-stats { color: var(--text-muted); font-size: 0.92rem; white-space: nowrap; }
.header-stats strong { color: var(--hsbi-primary); font-weight: 700; }

/* ─── Suchleiste (schlank, über den Filtern) ─────── */
.search-bar {
    display: flex;
    align-items: stretch;
    margin-bottom: 4px;
    flex-shrink: 0;
}
.search-bar-input {
    flex: 1 1 auto;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 9px 14px;
    font-size: 0.95rem;
    color: var(--text);
    background: white;
    min-width: 0;
}
.search-bar-input::placeholder { color: #9ca3af; }
.search-bar-input:focus { outline: none; border-color: var(--hsbi-accent); }
.search-bar-button {
    flex: 0 0 auto;
    width: 48px;
    border: 1px solid var(--hsbi-accent);
    background: var(--hsbi-accent);
    color: white;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease;
}
.search-bar-button:hover { background: #b8917b; border-color: #b8917b; }

.search-hint {
    min-height: 18px;
    margin: 0 2px 8px 2px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.search-hint-label { font-weight: 600; }
.search-hint-terms { font-style: italic; }

/* ─── Schlanke Filterzeile: 5 Spalten, volle Breite ── */
.filter-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr 1.1fr 1.1fr 0.9fr 1.2fr;
    gap: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 8px;
    flex-shrink: 0;
}
/* Instituts-Instanz ohne Organisationen-Filter: 6 statt 7 Spalten */
.filter-row-ohne-org { grid-template-columns: 1fr 1.2fr 1.2fr 1.1fr 0.9fr 1.2fr; }
.filter-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.filter-label {
    color: var(--text-muted) !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1px 2px;
}
.filter-cell-slider { padding-right: 6px; }
.filter-cell-slider .filter-slider { margin-top: 6px; }

/* Freitextsuche — optisch an die Dash-Dropdowns angeglichen */
.filter-search-input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 7px 10px;
    font-size: 0.875rem;
    background: #fff;
    color: var(--text);
}
.filter-search-input:focus {
    outline: none;
    border-color: var(--hsbi-primary);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}
.filter-search-input::placeholder { color: #9ca3af; }

/* Dropdown-Menü: die Dash-Komponente setzt inline max-height: min(200px, …),
   was je nach Fensterhöhe/Zoom auf eine einzige sichtbare Zeile kollabieren
   kann (Nutzerfeedback: nach Entfernen der Auswahl nur noch 1 Zeile statt 3).
   !important überschreibt den Inline-Style → immer eine brauchbare Höhe. */
.dash-dropdown-content {
    max-height: min(340px, calc(100vh - 170px)) !important;
}

/* ─── Inhalts-Bereich + schwebendes Detail-Overlay ── */
.content-area {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.detail-overlay {
    position: absolute;
    top: 52px;
    right: 14px;
    width: 360px;
    max-width: calc(100% - 28px);
    max-height: calc(100% - 70px);
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
    z-index: 600;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.detail-overlay-hidden { display: none; }
.detail-overlay-open { display: flex; }
.detail-overlay-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
    flex-shrink: 0;
    cursor: move;            /* verschiebbar: Drag am Header */
    user-select: none;
}
.detail-overlay.dragging { box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24); }
.detail-overlay-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--hsbi-primary);
    line-height: 1.3;
    overflow-wrap: break-word;
    min-width: 0;
}
.detail-overlay-title-link {
    color: var(--hsbi-primary);
    text-decoration: none;
    cursor: pointer;
}
.detail-overlay-title-link:hover { text-decoration: underline; }
.detail-overlay-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
    flex-shrink: 0;
}
.detail-overlay-close:hover { color: var(--hsbi-person); }
.detail-panel-body {
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.45;
    word-break: break-word;
    overflow-y: auto;
    padding: 14px;
}

/* ─── Year-Slider: Auto-Marks und Min/Max-Inputs aus ── */
#year-slider .dash-slider-mark,
#year-slider .dash-range-slider-min-input,
#year-slider .dash-range-slider-max-input {
    display: none !important;
}
/* Slider-Farben: HSBI-Blau statt Dash-Default (lila).
   Wir überschreiben die CSS-Variable im Slider-Scope, dann erbt
   jeder Teil (Range, Thumb, Focus-Outline) automatisch HSBI-Blau. */
#year-slider {
    --Dash-Fill-Interactive-Strong: var(--hsbi-fb);
}
#year-slider .dash-slider-thumb:focus {
    outline-color: var(--hsbi-fb) !important;
}

/* Slider-Tooltips dezent: kleiner, grau, ohne Box */
#year-slider .dash-slider-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    padding: 0 !important;
}
#year-slider .dash-slider-tooltip::before,
#year-slider .dash-slider-tooltip::after {
    display: none !important;
}

/* ─── Active-Chips ──────────────────────── */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    padding: 0 2px;
    flex-shrink: 0;
}
/* Keine Filter aktiv → Chip-Zeile gar nicht anzeigen (sonst leerer Abstand) */
.active-filters:empty {
    display: none;
}
.active-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--hsbi-accent);
    color: white;
    padding: 3px 4px 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1;
}
.active-chip.chip-themen   { background: var(--hsbi-fb); }
.active-chip.chip-org      { background: var(--hsbi-primary); }
.active-chip.chip-koop     { background: #8e44ad; }
.active-chip.chip-person   { background: var(--hsbi-person); }
.active-chip.chip-years    { background: #4b5563; }
.active-chip.chip-suche    { background: #2c6b85; }
.active-chip.chip-zweck    { background: #71876b; }

.chip-label { padding: 0 2px; }
.chip-x {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.12s ease;
}
.chip-x:hover { background: rgba(255, 255, 255, 0.45); }

/* ─── Tabs ──────────────────────────────── */
/* dbc.Tabs in Dash 4.x rendert die Nav (<ul>) und den Tab-Container
   (.tab-content) als getrennte Geschwister im DOM. */
.view-tabs.nav-tabs {
    border-bottom: 2px solid var(--border);
    flex-shrink: 0;
    margin-bottom: 0;
}
.content-area > .tab-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.content-area > .tab-content > .tab-pane.active {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
/* dbc.Tab umschließt seinen Inhalt mit einem unbenannten <div> – auch flexen */
.content-area > .tab-content > .tab-pane.active > div {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.view-tabs .nav-link.custom-tab-label {
    color: var(--text-muted);
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 8px 18px;
    background: none;
}
.view-tabs .nav-link.custom-tab-label:hover {
    color: var(--hsbi-primary);
    background: var(--bg-soft);
}
.view-tabs .nav-link.active.custom-tab-label-active {
    color: var(--hsbi-primary) !important;
    border-bottom-color: var(--hsbi-fb) !important;
    background: none !important;
    font-weight: 600;
}
.view-tabs > .tab-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.view-tabs > .tab-content > .tab-pane.active {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* ─── Netzwerk-Tab: Graph nimmt vollen Platz ── */
.graph-frame {
    flex: 1 1 auto;
    border: 1px solid var(--border);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    position: relative;
    min-height: 0;
}
#research-graph { background: #ffffff; width: 100% !important; height: 100% !important; }

/* ─── Listen-Tab: scrollbare Cards ─────── */
.list-tab-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px 4px;
    min-height: 0;
}

/* Toolbar oben in der Liste: Counter + Sortier-Dropdown */
.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 4px;
    flex-wrap: wrap;
}
.list-count {
    color: var(--text);
    font-size: 0.92rem;
}
.list-count strong {
    color: var(--hsbi-primary);
    font-weight: 700;
}
.list-count-pages {
    color: var(--text-muted);
    font-weight: 400;
}
.list-sort-control {
    display: flex;
    align-items: center;
    gap: 8px;
}
.list-sort-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    white-space: nowrap;
}
.list-sort-dropdown {
    min-width: 200px;
    font-size: 0.85rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-card {
    background: white;
    border: 1px solid var(--border);
    border-left: 4px solid var(--hsbi-accent);
    border-radius: 6px;
    padding: 14px 18px;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-left-color 0.15s ease, transform 0.12s ease;
}
.project-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left-color: var(--hsbi-fb);
    transform: translateY(-1px);
}
/* Beendete Projekte etwas zurückgenommen */
.project-card.status-done {
    background: #fafafa;
    border-left-color: #d1d5db;
    opacity: 0.85;
}
.project-card.status-done:hover {
    opacity: 1;
    border-left-color: var(--hsbi-fb);
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.card-meta-period { font-weight: 600; color: var(--text-soft); }
.card-meta-status {
    padding: 1px 8px;
    border-radius: 8px;
    font-weight: 500;
}
.card-meta-status.status-active { background: #e6f4ea; color: #1e7c3a; }
.card-meta-status.status-done   { background: var(--bg-muted); color: var(--text-muted); }
.card-meta-status.status-other  { background: var(--bg-muted); color: var(--text-soft); }
.card-meta-fb { color: var(--hsbi-primary); }

.card-title {
    display: block;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--hsbi-primary) !important;
    margin: 0 0 6px 0;
    text-decoration: none;
    line-height: 1.35;
}
a.card-title:hover { color: var(--hsbi-link) !important; text-decoration: underline; }

.card-description {
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 8px 0;
}
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}
.tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 11px;
    font-size: 0.74rem;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-soft);
}
.tag-forschungsfeld { background: #eaf4f7; color: #2c5d70; border-color: #c7e0e7; }
.tag-keyword        { background: var(--bg-muted); color: var(--text-muted); }
.tag-more           { background: var(--bg-muted); color: var(--text-muted); font-style: italic; }
.card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
    font-size: 0.8rem;
    color: var(--text-soft);
}
.card-footer-label { font-weight: 600; color: var(--text); margin-right: 4px; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    background: var(--bg-soft);
    border: 1px dashed var(--border);
    border-radius: 6px;
}

/* ─── Pagination ──────────────────────────── */
.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.page-btn {
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 5px 11px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    min-width: 34px;
}
.page-btn:hover:not(:disabled) {
    background: var(--bg-muted);
    border-color: var(--hsbi-fb);
}
.page-btn-active {
    background: var(--hsbi-primary) !important;
    color: white !important;
    border-color: var(--hsbi-primary) !important;
    font-weight: 600;
}
.page-btn-disabled, .page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-ellipsis { padding: 0 4px; color: var(--text-muted); }

/* ─── Eingebettet (iframe auf hsbi.de) ───── */
/* 100vh wäre hier die (sehr hohe) iframe-Höhe → feste, bildschirmtaugliche
   Höhe statt riesigem Graph. Klasse setzt assets/embed.js. Nur Desktop-Layout;
   mobil gilt ohnehin die scrollende Variante unten. */
@media (min-width: 701px) {
    html.is-embedded .app-container { height: min(100vh, 820px); }
}

/* ─── Institutskarte eingebettet: kompakt ─── */
/* Die einbettende HSBI-Seite bringt Logo und Überschrift selbst mit, und ihr
   iframe ist schmal (~700–950px): ohne diese Regeln belegen Header und vier
   Filterzeilen ~600px, bevor der Graph beginnt. Deshalb: kein Logo/Titel, und
   nur Suche/Personen/Forschungsfelder in einer Zeile — der Rest klappt über
   "Weitere Filter" auf (assets/filter-toggle.js setzt .filter-offen). */
.filter-cell-mehr { display: none; }
html.is-embedded .app-institut .header-brand { display: none; }
html.is-embedded .app-institut .app-header { margin-bottom: 8px; padding-bottom: 8px; }
/* Ohne Logo/Titel passen Zahlen und Buttons in EINE Zeile (die ≤800px-Regel
   gäbe den Buttons sonst eine eigene). Reicht der Platz nicht, bricht der
   Header weiterhin von selbst um. */
html.is-embedded .app-institut .header-right { flex: 0 0 auto; }
@media (min-width: 701px) {
    html.is-embedded .app-institut .filter-row {
        grid-template-columns: 1fr 1.2fr 1.2fr auto;
    }
    html.is-embedded .app-institut .filter-row .filter-cell { grid-column: auto; }
    html.is-embedded .app-institut .filter-row:not(.filter-offen) .filter-cell-mehr ~ .filter-cell {
        display: none;
    }
    html.is-embedded .app-institut .filter-row .filter-cell-slider { grid-column: span 2; }
    html.is-embedded .app-institut .filter-cell-mehr {
        display: flex;
        justify-content: flex-end;
    }
}
.btn-mehr-filter {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-size: 0.88rem;
    white-space: nowrap;
    cursor: pointer;
}
.btn-mehr-filter:hover { border-color: var(--hsbi-primary); }
.btn-mehr-filter[aria-expanded="true"] {
    background: var(--hsbi-primary);
    border-color: var(--hsbi-primary);
    color: #fff;
}

/* ─── Responsive ─────────────────────────── */
@media (max-width: 1100px) {
    .filter-row { grid-template-columns: 1fr 1fr 1fr; }
    .filter-cell-slider { grid-column: span 3; }
    .filter-cell:first-child { grid-column: span 3; }
    /* 4 Dropdowns: 2×2 statt 3+1 */
    .filter-row-ohne-org { grid-template-columns: 1fr 1fr; }
    .filter-row-ohne-org .filter-cell-slider,
    .filter-row-ohne-org .filter-cell:first-child { grid-column: span 2; }
}
@media (max-width: 800px) {
    /* Logo + Titel (nowrap) sind zusammen ~750px breit: darunter darf der Titel
       umbrechen, die Buttons stehen in eigener Zeile. */
    .app-title { white-space: normal; line-height: 1.25; }
    .header-right { flex: 1 1 100%; justify-content: flex-end; }
}
@media (max-width: 700px) {
    .filter-row { grid-template-columns: 1fr 1fr; }
    .filter-cell-slider { grid-column: span 2; }
    .filter-cell:first-child { grid-column: span 2; }
    .detail-overlay { width: calc(100% - 28px); }
    /* langer Titel: mobil umbrechen statt überlaufen */
    .app-title { font-size: 1.05rem; white-space: normal; line-height: 1.25; }
    /* iPhone & Co.: Das Desktop-Konzept "alles passt in den Viewport, nie
       scrollen" funktioniert auf iOS nicht — 100vh reicht dort HINTER die
       Safari-Leisten und overflow:hidden macht den abgeschnittenen Graph
       unerreichbar. Mobil darf die Seite deshalb normal scrollen; der Graph
       bekommt eine feste Höhe in dvh (dynamische Viewport-Höhe, ohne die
       Browser-Leisten). */
    html, body { overflow: auto; height: auto; }
    .app-container { height: auto; min-height: 100vh; min-height: 100dvh; }
    .content-area { flex: none; }
    .graph-frame { flex: none; height: 62vh; height: 62dvh; min-height: 320px; }
    .list-tab-content { overflow-y: visible; }

    /* Header umbrechen lassen: Buttons in eigener Zeile statt Überlappung
       mit Logo/Titel (header-right hat flex-shrink: 0 und der Titel nowrap —
       ohne Umbruch schieben sie sich auf schmalen Screens übereinander). */
    .app-header { flex-wrap: wrap; row-gap: 8px; }
    .header-right { flex: 1 1 100%; justify-content: flex-end; }
    /* Stats in eigener Zeile unter Logo/Titel — neben dem Titel ist kein
       Platz, abgeschnittener Text ist gerade bei aktiven Filtern unbrauchbar. */
    .header-left { flex-wrap: wrap; row-gap: 2px; }
    .header-stats {
        flex: 1 1 100%;
        font-size: 0.85rem;
        white-space: normal;
    }
    .app-logo { height: 30px; }
}

/* ─── Info-Modal ("Wie entsteht diese Karte?") ── */
.info-heading {
    font-weight: 700;
    color: var(--hsbi-primary);
    margin: 14px 0 4px 0;
    font-size: 0.95rem;
}
.info-heading:first-child { margin-top: 0; }
.info-text {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.55;
    margin-bottom: 6px;
}

/* ─── Feedback-Formular (Modal) ───────────── */
.fb-intro {
    font-size: 0.88rem;
    color: var(--text-soft);
    margin-bottom: 16px;
}
.fb-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 14px 0 4px 0;
}
.fb-label:first-of-type { margin-top: 0; }
.fb-textarea {
    width: 100%;
    min-height: 72px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    resize: vertical;
}
.fb-input {
    width: 100%;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
}
.fb-textarea:focus, .fb-input:focus {
    outline: none;
    border-color: var(--hsbi-accent);
    box-shadow: none;
}
.fb-status { margin-top: 14px; min-height: 20px; font-size: 0.88rem; }
.fb-status-ok    { color: #2e7d32; font-weight: 600; }
.fb-status-error { color: var(--hsbi-person); font-weight: 600; }

/* Eingebettet + schmal (Handy-Layout im iframe): auch hier sind vh/dvh die
   iframe-Höhe, nicht der Bildschirm → feste Graph-Höhe. Steht bewusst am
   Dateiende, damit es die mobilen Regeln oben überschreibt. */
@media (max-width: 700px) {
    html.is-embedded .app-container { min-height: 0; }
    html.is-embedded .graph-frame { height: 520px; }
}
