:root {
  --bg-pink: #EC1577;
  --accent-orange: #F3A426;
  --accent-teal: #17A6C4;
  --accent-crimson: #C81457;
  --ink-navy: #0E1B24;
  --paper-cream: #F5EEDD;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-pink);
  color: var(--paper-cream);
  font-family: 'Hanken Grotesk', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; }

/* --- Topbar: Breadcrumb (links, Breite = linkes Panel) + Suche (rechts, Breite
   = rechtes Panel) in einer gemeinsamen Zeile ganz oben. --- */
.topbar {
  flex: 0 0 auto;
  position: relative;   /* ueber dem 3D-Hintergrund (#universe-bg); mobil per Media Query fixed */
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  height: 64px;
  background: var(--bg-pink);
}

/* Nur auf Mobile sichtbar/wirksam -- gleicht aus, dass .topbar dort
   position:fixed bekommt und sonst den Seiteninhalt ueberdecken wuerde. Hoehe
   wird per JS gesetzt (siehe Script unten), da die Topbar-Hoehe dort variabel
   (zweizeilig) ist. */
#topbar-spacer { display: none; }

/* Wrapper ist NICHT der Scroll-Container -- nur so bleiben die Fade-Kanten
   (::before/::after, siehe unten) beim Scrollen der Breadcrumb fix am Rand
   stehen, statt als Teil des scrollenden Inhalts mitzuwandern. */
.breadcrumb-wrap {
  position: relative;
  flex: 1 1 55%;
  min-width: 0;
  max-width: 880px;   /* gleiche Breite wie die Textspalte -- die Suche steht so ueber der Karte */
}

.breadcrumb {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.breadcrumb::-webkit-scrollbar { display: none; }

/* Fade-Kanten -- nur sichtbar, sobald die Breadcrumb tatsaechlich scrollbar ist
   (Klasse per JS auf den Wrapper gesetzt, siehe Script unten), nicht permanent. */
.breadcrumb-wrap::before, .breadcrumb-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 1;
}
.breadcrumb-wrap::before { left: 0; background: linear-gradient(to right, var(--bg-pink), rgba(236,21,119,0)); }
.breadcrumb-wrap::after { right: 0; background: linear-gradient(to left, var(--bg-pink), rgba(236,21,119,0)); }
.breadcrumb-wrap.is-scrollable::before,
.breadcrumb-wrap.is-scrollable::after { opacity: 1; }
.crumb { color: var(--paper-cream); text-decoration: none; opacity: 0.6; flex-shrink: 0; }
.crumb:hover { opacity: 1; text-decoration: underline; }
.crumb-current { opacity: 1; font-weight: 600; }
.crumb-sep { opacity: 0.35; flex-shrink: 0; }

.topbar-search {
  flex: 1 1 45%;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

/* --- Split-Screen: Profil links (scrollt), Netzwerk-Graph rechts (fuellt Hoehe) --- */
.split {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.panel-left {
  flex: 1 1 55%;
  min-width: 0;
  max-width: 880px;   /* Textspalte ist ohnehin max. 760px breit -- auf breiten Bildschirmen bekommt die Karte den Rest */
  height: 100%;
  overflow-y: auto;
  background: var(--bg-pink);
  padding: 48px 40px 96px;
}

.panel-right {
  flex: 1 1 45%;
  min-width: 0;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-pink);
  padding: 25px;
}

#graph-search-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--paper-cream);
  border: 2px solid var(--ink-navy);
  border-radius: 8px;
  color: var(--ink-navy);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(14,27,36,0.25);
}
#graph-search-input::placeholder { color: rgba(14,27,36,0.55); font-weight: 400; }
#graph-search-input:focus { outline: none; border-color: var(--accent-teal); }

.search-results {
  position: absolute;
  top: calc(100% - 2px);
  left: 20px;
  right: 20px;
  background: #14161a;
  border: 1px solid rgba(245,238,221,0.15);
  border-radius: 0 0 8px 8px;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 30;
  display: none;
}
.search-results.open { display: block; }

.search-match { border-bottom: 1px solid rgba(245,238,221,0.08); }
.search-match:last-child { border-bottom: none; }

.search-match-main {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  color: var(--paper-cream);
}
.search-match-main:hover { background: rgba(245,238,221,0.06); }
.search-match-type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.5;
  margin-left: auto;
  flex-shrink: 0;
}

.search-neighbors {
  padding: 0 14px 8px 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-neighbor {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  opacity: 0.75;
  text-decoration: none;
  color: var(--paper-cream);
  padding: 3px 0;
}
.search-neighbor:hover { opacity: 1; text-decoration: underline; }
.search-neighbor .rel { opacity: 0.55; font-size: 11px; }
.search-empty { padding: 14px; font-size: 13px; opacity: 0.6; }

.graph-body {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  background: var(--ink-navy);
  border-radius: 18px;
  overflow: hidden;
}

#mini-graph {
  width: 100%;
  height: 100%;
}

.graph-legend {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(14,27,36,0.55);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12px;
  pointer-events: none;
}

.legend-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legend-toggle {
  display: none;
}

.legend-group h4 {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  white-space: nowrap;
}
.legend-row:last-child { margin-bottom: 0; }
/* Legende als Filter (seit 2026-10-14): Klick blendet Typ bzw. Verbindungsart aus/ein */
button.legend-row {
  font: inherit; color: inherit; background: none; border: none; padding: 1px 4px; margin-left: -4px;
  border-radius: 4px; cursor: pointer; pointer-events: auto; text-align: left; width: calc(100% + 8px);
}
button.legend-row:hover { background: rgba(245,238,221,0.08); }
button.legend-row.off { opacity: 0.35; text-decoration: line-through; }
.legend-reset {
  pointer-events: auto; align-self: flex-start; font: inherit; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-cream); background: rgba(245,238,221,0.12);
  border: none; border-radius: 6px; padding: 5px 10px; cursor: pointer;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-line {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* --- Edge-Popup: Klick auf eine Kante im Mini-Graph --- */
.edge-popup {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-height: 55%;
  overflow-y: auto;
  background: var(--bg-pink);
  box-shadow: 0 8px 24px rgba(14,27,36,0.45);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 13px;
  display: none;
  z-index: 40;
}
.edge-popup.open { display: block; }
/* Eigene Zeile statt frei ueber dem Text schwebender position:absolute-Buttons --
   dadurch keine Ueberlappung mit Kicker/Titel moeglich (war der Grund, warum der
   Bookmark-Stern nur in seinem oberen Viertel klickbar war). */
.edge-popup-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.edge-popup-close {
  background: none;
  border: none;
  color: var(--paper-cream);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  padding: 4px;
}
.edge-popup-close:hover { opacity: 1; }
.edge-popup .bookmark-star { background: rgba(14,27,36,0.35); }
.edge-popup-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 6px;
}
.edge-popup-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}
.edge-popup p { margin: 0 0 8px; }
.edge-popup .meta { opacity: 0.6; font-size: 12px; }
.edge-popup ul.sources {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.edge-popup ul.sources a { font-size: 12px; text-decoration: underline; opacity: 0.85; }

@media (max-width: 900px) {
  .topbar {
    /* wrap statt column -- Logo und Breadcrumb bleiben zusammen auf einer
       Zeile, nur die Suche bricht auf eine eigene zweite Zeile um. */
    flex-wrap: wrap;
    height: auto;
    /* position:sticky verliert in diesem Flex-Spalten-Layout zuverlaessig seinen
       Halt sobald der Body-Container (das eigentliche containing block) ueber
       eine Bildschirmhoehe hinaus waechst -- position:fixed ist robuster. Der
       dadurch aus dem Fluss genommene Platz wird unten per fixem Abstand auf
       #topbar-spacer wieder ausgeglichen (keine JS-Messung -- zu fehleranfaellig). */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
  }
  #topbar-spacer { display: block; height: 260px; }   /* 240 -> 260 (2026-10-12): Suchfeld verdeckte die Typ-Overline */
  /* Harte Obergrenze, damit eine lange Breadcrumb-Historie nie die Zeile mit
     dem Logo aufbricht -- sie bleibt immer auf einer Zeile und scrollt intern
     (overflow-x:auto, siehe Basis-Regel), statt die Zeile zu sprengen. */
  .breadcrumb-wrap { flex: 1 1 0; min-width: 0; width: auto; max-width: calc(100% - 64px); display: flex; align-items: center; }
  .breadcrumb { padding: 10px 20px; height: auto; }
  .brand-home { align-self: center; }
  .topbar-search {
    flex: 1 1 100%;
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(245,238,221,0.1);
    padding: 10px 20px;
  }
  .split { flex-direction: column; }
  .panel-left, .panel-right { flex: none; width: 100%; height: auto; position: static; }
  /* relative statt static -- sonst verlieren die absolut positionierten Kinder
     (Legende, Edge-Popup) ihren Bezugsrahmen und landen irgendwo im Dokumentfluss. */
  .panel-right { height: 60vh; position: relative; padding: 12px; }
  .graph-body { border-radius: 14px; }

  .legend-toggle {
    display: block;
    pointer-events: auto;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--paper-cream);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    cursor: pointer;
    padding: 0;
  }
  .legend-body { display: none; }
  .legend-body.open { display: flex; margin-top: 10px; pointer-events: auto; }

  /* Edge-Popup als Bottom-Sheet ueber den ganzen Viewport, nicht nur den
     60vh-Graphbereich -- robuster und besser bedienbar auf kleinen Screens. */
  .edge-popup {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-height: 70vh;
  }
}

/* --- Header --- */
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.profile-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(1) contrast(1.05);
  background: rgba(245,238,221,0.08);
}

.profile-heading { flex: 1 1 280px; min-width: 0; }

.ai-notice {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.75;
  border-top: 1px solid rgba(245,238,221,0.2);
  border-bottom: 1px solid rgba(245,238,221,0.2);
  padding: 10px 0;
  margin: -16px 0 32px;
}
.ai-notice a { text-decoration: underline; opacity: 0.9; }
.ai-notice a:hover { opacity: 1; }

.profile-type {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
  margin-bottom: 6px;
}

.profile-bookmark-star {
  width: 30px;
  height: 30px;
  line-height: 30px;
  font-size: 16px;
  vertical-align: middle;
  margin-left: 10px;
}

.profile-heading h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

/* --- Narrative --- */
.profile-narrative {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 760px;
}
.profile-narrative p { margin: 0 0 18px; }
.profile-narrative p:last-child { margin-bottom: 0; }
/* Quellen als Fussnoten: im Text nur hochgestellte Nummern, Liste eingeklappt am Ende */
.profile-narrative sup.fn {
  font-size: 10px;
  font-weight: 600;
  line-height: 0;
  opacity: 0.6;
  margin-left: 1px;
}
.profile-narrative sup.fn a { text-decoration: none; }
.profile-narrative sup.fn a:hover { opacity: 1; text-decoration: underline; }
.profile-narrative sup.fn:hover { opacity: 1; }
.narrative-sources {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.4;
}
.narrative-sources summary {
  cursor: pointer;
  font-weight: 600;
  opacity: 0.75;
  list-style-position: outside;
}
.narrative-sources summary:hover { opacity: 1; }
.narrative-sources ol { margin: 10px 0 0; padding-left: 26px; display: flex; flex-direction: column; gap: 6px; }
.narrative-sources ol ul { list-style: disc; margin: 4px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.narrative-sources a { text-decoration: underline; opacity: 0.9; overflow-wrap: anywhere; }
.narrative-sources .src-domain { opacity: 0.55; font-size: 12px; }
.narrative-sources li.src-flash { animation: src-flash 1.6s ease-out; }
@keyframes src-flash { from { background: rgba(245,238,221,0.35); } to { background: transparent; } }
/* Kennzahlen unter dem Referenz-Profil (seit 2026-10-27) */
.key-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 18px;
  margin: 16px 0 6px;
  padding: 12px 14px;
  border: 1px solid rgba(245,238,221,0.15);
  border-radius: 8px;
}
.key-figures .kf { margin: 0; }
.key-figures dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.55; }
.key-figures dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; }
.key-figures .kf-meta { display: block; font-size: 11px; font-weight: 400; opacity: 0.5; }
.key-figures .kf-meta a { text-decoration: underline; color: inherit; }
.narrative-updated {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 8px !important;
}

/* --- Bookmark-Stern: in Connection-Zeilen, Badges und Edge-Popup --- */
.bookmark-star {
  flex-shrink: 0;
  background: rgba(14,27,36,0.5);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  padding: 0;
  font-size: 13px;
  color: rgba(245,238,221,0.5);
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
}
.bookmark-star:hover { color: var(--paper-cream); transform: scale(1.1); }
.bookmark-star.is-bookmarked { color: var(--accent-orange); }

/* --- Connections --- */
.profile-connections h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper-cream);
  border-bottom: 1px solid rgba(245,238,221,0.09);
  padding-bottom: 10px;
  margin: 0 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.profile-connections h2 > span { opacity: 0.6; }
/* Link zur Geldfluss-Platine, direkt ueber dem Dossier-Text (seit 2026-10-13) */
.flow-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 28px; padding: 10px 16px; border-radius: 10px;
  background: var(--ink-navy); color: var(--paper-cream);
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.flow-link:hover { opacity: 0.9; }
.flow-link svg { flex-shrink: 0; color: var(--accent-orange); }

/* Kategorie-Bloecke als eigenes Akkordeon (kompakter als vorher immer offen),
   im Grid mit 3 Spalten ab 1400px Viewport-Breite -- sinnvolle Breakpoints
   darunter. */
.connection-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));   /* richtet sich nach der Spaltenbreite, nicht dem Fenster */
  gap: 14px;
  align-items: start;
}
@media (max-width: 900px) {
  .connection-groups { grid-template-columns: 1fr; }
}

.connection-group {
  background: rgba(245,238,221,0.03);
  border: 1px solid rgba(245,238,221,0.1);
  border-radius: 8px;
}

.connection-group > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.connection-group > summary::-webkit-details-marker { display: none; }
.connection-group > summary::after {
  content: '+';
  font-size: 16px;
  font-weight: 400;
  opacity: 0.6;
  flex-shrink: 0;
}
.connection-group[open] > summary::after { content: '–'; }

.connection-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 10px 10px;
}

.connection {
  background: rgba(245,238,221,0.04);
  border-radius: 8px;
}

.connection summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
}
.connection summary::-webkit-details-marker { display: none; }


.rel-type {
  opacity: 0.55;
  font-size: 13px;
  flex-shrink: 0;
}

.other-entity {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.other-entity:hover { border-bottom-color: currentColor; }

.amount {
  margin-left: auto;
  font-size: 13px;
  opacity: 0.75;
  white-space: nowrap;
}

.connection summary .bookmark-star { margin-left: auto; }
.connection summary .amount + .bookmark-star { margin-left: 0; }

.connection-detail {
  padding: 0 14px 14px;
  font-size: 14px;
  opacity: 0.9;
}
.connection-detail p { margin: 0 0 8px; }
.connection-detail .meta { opacity: 0.6; font-size: 13px; }
.connection-detail ul.sources {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.connection-detail ul.sources a {
  font-size: 13px;
  text-decoration: underline;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .profile-heading h1 { font-size: 32px; }
  .profile-photo { width: 96px; height: 96px; }
}

/* --- Startseite (kein entity_id) --- */
.home-body { background: var(--bg-pink); }

/* --- Rotierendes 3D-Knotenuniversum (Three.js) als dekorativer Hintergrund --
   fixiert hinter dem Content, monochrom, stark transparent, keine Interaktion. */
#universe-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}
#universe-bg canvas { display: block; }
/* Entity-Seiten: Panels durchsichtig, damit das Universum dahinter sichtbar ist */
.entity-body .split { position: relative; z-index: 1; }
.entity-body #universe-bg { opacity: 0.25; }   /* hinter Fliesstext dezenter als auf der Startseite */
.entity-body .panel-left, .entity-body .panel-right { background: transparent; }

.home {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 40px 96px;
}

.home-hero {
  text-align: center;
  margin-bottom: 64px;
}

.home-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.home-brand-name {
  font-size: 39px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.home-tagline {
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 44px 0 0;
}

.home-subtagline {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

.home-intro {
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
  margin: 24px auto 32px;
  opacity: 0.9;
}

.home-search {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}
.home-search #home-search-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--paper-cream);
  border: 2px solid var(--ink-navy);
  border-radius: 8px;
  color: var(--ink-navy);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(14,27,36,0.35);
}
.home-search #home-search-input::placeholder { color: rgba(14,27,36,0.55); font-weight: 400; }
.home-search #home-search-input:focus { outline: none; border-color: var(--accent-teal); }
.home-search .search-results { left: 0; right: 0; }
/* Suchfeld + Link zur Gesamtkarte nebeneinander (seit 2026-10-14) */
.home-search-row { display: flex; align-items: flex-start; justify-content: center; gap: 12px; }
.home-search-row .home-search { flex: 1 1 440px; margin: 0; }
/* Directory-Knopf auf Hoehe des Eingabefelds (ueber dem Feld sitzt der Such-Umschalter) */
.home-search-row .home-fullmap { margin-top: 38px; }
.home-fullmap {
  flex: 0 0 auto; padding: 14px 16px; border-radius: 8px; border: 2px solid var(--ink-navy);
  background: var(--ink-navy); color: var(--paper-cream); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.home-fullmap span { font-weight: 400; opacity: 0.7; font-size: 12px; }
.home-fullmap:hover { opacity: 0.9; }
@media (max-width: 700px) {
  .home-search-row { flex-direction: column; align-items: stretch; }
  .home-search-row .home-search { flex: none; width: 100%; }
  .home-fullmap { text-align: center; }
}

.home-lists {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.home-list h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper-cream);
  opacity: 0.65;
  border-bottom: 1px solid rgba(245,238,221,0.15);
  padding-bottom: 10px;
  margin: 0 0 14px;
}

.home-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: home-list;
}

.home-list li {
  counter-increment: home-list;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(245,238,221,0.06);
}
.home-list li::before {
  content: counter(home-list);
  font-size: 12px;
  opacity: 0.4;
  flex-shrink: 0;
  width: 16px;
}

.home-list a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.home-list a:hover { border-bottom-color: currentColor; }

/* Startseite: Eintrag ohne fertiges Dossier (wird noch generiert) */
.dossier-updated { background: none; padding-left: 0; opacity: 0.6; }
.home-list-name { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.dossier-pending {
  flex-shrink: 0; padding: 1px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(14,27,36,0.35); color: var(--paper-cream); opacity: 0.85; white-space: nowrap;
}
.home-list-type {
  margin-left: auto;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.5;
  flex-shrink: 0;
}

.home-footer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid rgba(245,238,221,0.15);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.75;
}
.home-footer p { margin: 0 0 10px; }
.home-footer a { text-decoration: underline; }
.home-footer a:hover { opacity: 0.8; }
.home-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}

@media (max-width: 900px) {
  .home { padding: 48px 24px 72px; }
  .home-tagline { font-size: 36px; }
  .home-subtagline { font-size: 20px; }
  .home-brand-name { font-size: 26px; }
  .home-logo { width: 56px; }
  .home-lists { grid-template-columns: 1fr; gap: 40px; }
}

/* --- "Home" Link in der Breadcrumb-Zeile auf Entity-Seiten --- */
.brand-home {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 14px 0 20px;
  opacity: 0.85;
}
.brand-home:hover { opacity: 1; }
.brand-home img {
  height: 30px;
  width: auto;
}

/* --- Logo neben dem Projektnamen in der Startseiten-Kopfzeile --- */
.home-logo {
  display: block;
  width: 84px;
  height: auto;
}

/* --- Einmaliger Disclaimer-Modal (localStorage) --- */
.disclaimer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,12,16,0.82);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.disclaimer-box {
  background: var(--bg-pink);
  border: 1px solid rgba(245,238,221,0.25);
  border-radius: 12px;
  max-width: 540px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 32px 36px;
  color: var(--paper-cream);
}

.disclaimer-beta {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-navy);
  background: var(--accent-orange);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.disclaimer-box h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
}

.disclaimer-box p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0 0 14px;
}

.disclaimer-ack {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin: 22px 0 20px;
  cursor: pointer;
}
.disclaimer-ack input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

#disclaimer-confirm {
  width: 100%;
  padding: 12px;
  background: var(--accent-orange);
  color: var(--ink-navy);
  border: none;
  border-radius: 7px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
#disclaimer-confirm:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
#disclaimer-confirm:not(:disabled):hover {
  filter: brightness(1.08);
}

/* --- "Project Development & History"-Seite --- */
.history-page { max-width: 760px; }

.history-hero { text-align: left; margin-bottom: 40px; }

.history-back {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 20px;
}
.history-back span {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.history-back:hover { opacity: 0.85; }

.history-article {
  font-size: 16px;
  line-height: 1.7;
}
.history-article h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 44px 0 14px;
}
.history-article p { margin: 0 0 18px; }
.history-article strong { color: #fff; }
.history-article a { text-decoration: underline; }

.history-lead {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

.history-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 8px 0 32px;
  padding: 20px 0;
  border-top: 1px solid rgba(245,238,221,0.2);
  border-bottom: 1px solid rgba(245,238,221,0.2);
}
.history-stat { display: flex; flex-direction: column; }
.history-stat strong { font-size: 28px; font-weight: 700; color: #fff; }
.history-stat span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }

.history-list {
  margin: 0 0 18px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.history-list li { padding-left: 4px; }

.history-contact {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(245,238,221,0.2);
  font-size: 14px;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .history-lead { font-size: 17px; }
  .history-article h1 { font-size: 32px !important; }
}

/* --- Bookmark-FAB + Explorer-Panel --- */
.bookmark-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--accent-orange);
  color: var(--ink-navy);
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(14,27,36,0.45);
}
.bookmark-fab:hover { filter: brightness(1.06); }
#bookmark-fab-count { font-size: 13px; }

.bookmark-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,12,16,0.5);
  z-index: 95;
  display: none;
  justify-content: flex-end;
}
.bookmark-modal {
  width: 440px;
  max-width: 92vw;
  height: 100%;
  background: var(--bg-pink);
  color: var(--paper-cream);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(14,27,36,0.4);
}
.bookmark-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.bookmark-modal-header h2 { font-size: 24px; font-weight: 700; margin: 0; color: #fff; }
.bookmark-modal-header button {
  background: none;
  border: none;
  color: var(--paper-cream);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  padding: 4px;
}
.bookmark-modal-header button:hover { opacity: 1; }

.bookmark-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.bookmark-modal-actions button {
  flex: 1 1 auto;
  padding: 9px 12px;
  background: rgba(245,238,221,0.12);
  color: var(--paper-cream);
  border: 1px solid rgba(245,238,221,0.3);
  border-radius: 7px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.bookmark-modal-actions button:hover { background: rgba(245,238,221,0.22); }
#bookmark-clear-all { border-color: rgba(200,20,87,0.5); }

.bookmark-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bookmark-empty { font-size: 14px; opacity: 0.75; line-height: 1.5; }

.bookmark-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245,238,221,0.08);
  border-radius: 8px;
  padding: 12px 14px;
}
.bookmark-item-main { flex: 1 1 auto; min-width: 0; }
.bookmark-item-kind {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
  margin-bottom: 3px;
}
.bookmark-item-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--paper-cream);
}
a.bookmark-item-title:hover { text-decoration: underline; }
.bookmark-item-title a { color: var(--paper-cream); text-decoration: none; }
.bookmark-item-title a:hover { text-decoration: underline; }
.bookmark-item-label { font-size: 13px; opacity: 0.85; margin: 4px 0 0; }
.bookmark-item-meta { font-size: 12px; opacity: 0.65; margin: 4px 0 0; }
.bookmark-item-sources {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}
.bookmark-item-sources a { font-size: 12px; text-decoration: underline; opacity: 0.8; }
.bookmark-item-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--paper-cream);
  font-size: 18px;
  line-height: 1;
  opacity: 0.5;
  cursor: pointer;
  padding: 2px;
}
.bookmark-item-remove:hover { opacity: 1; }

@media (max-width: 600px) {
  .bookmark-modal { width: 100%; }
  .bookmark-fab { right: 16px; bottom: 16px; }
}

/* --- Dossier-Statusseite (status.php): Layout der Startseite, ohne 3D-Hintergrund --- */
.status-page .history-hero { margin-bottom: 28px; }
.status-sub { max-width: 720px; font-size: 16px; line-height: 1.6; margin: 16px 0 0; opacity: 0.9; }
.status-stats { margin: 0 0 36px; gap: 32px 40px; }
.status-stats .history-stat span { max-width: 170px; }

.status-now {
  margin: 0 0 40px;
  padding: 18px 22px;
  border-radius: 10px;
  background: rgba(14,27,36,0.22);
}
.status-now h2 {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  opacity: 0.7; margin: 0 0 10px;
}
.status-now ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.status-now li { display: flex; align-items: baseline; gap: 10px; font-size: 18px; font-weight: 600; }
.status-now a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; }
.status-now a:hover { border-bottom-color: currentColor; }
.status-pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent-orange); flex-shrink: 0;
  align-self: center; animation: status-pulse 1.6s ease-in-out infinite;
}
@keyframes status-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.75); } }

.status-lists { align-items: start; }
.status-lists .home-list ol.status-plain li::before { content: none; }   /* Zeit statt Nummer */
.status-time { font-size: 12px; opacity: 0.55; font-variant-numeric: tabular-nums; flex-shrink: 0; width: 38px; }
.status-badge {
  margin-left: auto; flex-shrink: 0;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 6px; border-radius: 4px; background: rgba(245,238,221,0.14); opacity: 0.85;
}
.status-badge-new { background: var(--accent-orange); color: var(--ink-navy); opacity: 1; }
.status-h2-gap { margin-top: 28px !important; }
.status-more, .status-empty, .status-note { font-size: 13px; opacity: 0.7; margin: 12px 0 0; line-height: 1.5; }
.status-note { margin-top: 18px; }

@media (max-width: 900px) {
  .status-lists { grid-template-columns: 1fr; }
}

/* Disclaimer v2 (2026-10-12): laengerer Text mit Zwischenueberschriften */
.disclaimer-box p strong { color: #fff; font-weight: 700; }
.disclaimer-box p a { text-decoration: underline; }

/* --- Logout (Zugangs-Wall, seit 2026-10-13): Icon in der Topbar, Handle + Text auf der Startseite --- */
.logout-btn {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--paper-cream); text-decoration: none; font-size: 13px; font-weight: 600;
  opacity: 0.8; white-space: nowrap;
}
.logout-btn:hover { opacity: 1; }
.logout-btn svg { flex-shrink: 0; }
.logout-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.logout-handle { opacity: 0.7; font-weight: 400; }
.logout-handle::after { content: '·'; margin-left: 8px; }
.home-account { position: absolute; top: 24px; right: 40px; z-index: 2; display: flex; align-items: center; gap: 18px; }
/* Recherche-Chat: Pille auf der Startseite, Icon in der Topbar (nur fuer freigeschaltete Mitglieder) */
.chat-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--paper-cream); text-decoration: none; white-space: nowrap; }
.home-chat { padding: 8px 14px; border-radius: 999px; background: var(--ink-navy); font-size: 13px; font-weight: 700; }
.home-chat:hover { opacity: 0.9; }
.chat-beta { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent-orange); color: var(--ink-navy);
  padding: 1px 6px; border-radius: 999px; }
.topbar-chat { flex: 0 0 auto; align-self: center; padding: 8px 6px; opacity: 0.85; }
.topbar-chat:hover { opacity: 1; }
.topbar-logout { flex: 0 0 auto; align-self: center; padding: 8px 20px 8px 4px; }
@media (max-width: 900px) {
  .home-account { top: 16px; right: 20px; gap: 12px; }
  /* erste Zeile: Logo | Breadcrumb | Logout -- die Suche bricht darunter auf eine eigene Zeile um */
  .topbar-logout { order: 2; padding: 10px 16px 10px 4px; }
  .topbar-chat { order: 2; padding: 10px 4px; }
  .topbar-search { order: 3; }
  .breadcrumb-wrap { max-width: calc(100% - 64px - 80px); }
}

/* --- Tiefen-Schalter im Mini-Graphen (1/2/3 Schritte, seit 2026-10-14) --- */
.graph-body { position: relative; }
/* Die Leiste ist seit 2026-10-29 Geschwister der Karte (nicht mehr Kind), damit sie mobil ueber der Karte stehen kann;
   auf dem Desktop liegt sie weiter als Overlay oben links in der Karte (Panel-Innenabstand 25px + 12px). */
.graph-depth {
  position: absolute; top: 37px; left: 37px; z-index: 5;
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: rgba(14,27,36,0.85); border: 1px solid rgba(245,238,221,0.15); border-radius: 8px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-cream);
}
.graph-depth span { padding: 0 6px 0 4px; opacity: 0.6; }
/* Leiste ist seit "Hide Single Edge" so breit, dass sie die Legende oben rechts ueberdeckt */
.graph-body .graph-legend { top: 52px; }
.graph-depth button {
  font: inherit; font-size: 12px; font-weight: 700; min-width: 26px; height: 24px; padding: 0 6px;
  border: none; border-radius: 5px; background: none; color: var(--paper-cream); cursor: pointer; opacity: 0.7;
}
.graph-depth button:hover { opacity: 1; }
.graph-depth button.active { background: var(--bg-pink); color: #fff; opacity: 1; }
.graph-depth button.loading { opacity: 0.4; cursor: progress; }

/* Experimenteller 3D-Modus im Mini-Graphen (graph3d.js, seit 2026-10-15) */
.graph-depth .graph-mode-sep { width: 1px; height: 16px; background: rgba(245,238,221,0.2); margin: 0 4px; padding: 0; }   /* .graph-depth span gab ihm sonst Innenabstand -> grauer Klotz */
.graph3d { position: absolute; inset: 0; z-index: 1; }
.graph3d[hidden] { display: none; }
.graph3d canvas { display: block; cursor: grab; }
.graph3d-tip { position: absolute; z-index: 4; pointer-events: none; background: var(--ink-navy); color: var(--paper-cream);
  font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,0.35); white-space: nowrap; }
.graph-depth .graph-rotate { font-size: 14px; }
.graph-depth .graph-rotate[hidden] { display: none; }
.graph-depth .graph-rotate:not(.active) { opacity: 0.4; text-decoration: line-through; }

/* --- Verzeichnis (directory.php, seit 2026-10-15) --- */
.dir-page { max-width: 1200px; }
.dir-controls { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 0; margin-bottom: 8px; background: var(--bg-pink); }
.dir-controls input { flex: 1 1 260px; padding: 11px 14px; border-radius: 8px; border: 2px solid var(--ink-navy);
  background: var(--paper-cream); color: var(--ink-navy); font: inherit; font-size: 15px; font-weight: 600; }
.dir-controls input:focus { outline: none; border-color: var(--accent-teal); }
.dir-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: rgba(14,27,36,0.85); }
.dir-seg button { font: inherit; font-size: 13px; font-weight: 700; padding: 7px 11px; border: none; border-radius: 6px;
  background: none; color: var(--paper-cream); opacity: 0.75; cursor: pointer; }
.dir-seg button.active { background: var(--bg-pink); color: #fff; opacity: 1; }
.dir-count { font-size: 12px; opacity: 0.75; margin-left: auto; }
.dir-letters { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 18px; font-weight: 700; font-size: 14px; }
.dir-letters a { text-decoration: none; opacity: 0.8; }
.dir-letters a:hover { opacity: 1; text-decoration: underline; }
.dir-group { margin: 0 0 26px; scroll-margin-top: 80px; }
.dir-group h2 { font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 8px; border-bottom: 1px solid rgba(245,238,221,0.2); padding-bottom: 4px; }
.dir-cols { columns: 4 240px; column-gap: 28px; list-style: none; margin: 0; padding: 0; }
.dir-cols li { break-inside: avoid; display: flex; justify-content: space-between; gap: 8px; padding: 3px 0;
  border-bottom: 1px solid rgba(245,238,221,0.08); font-size: 14px; line-height: 1.35; }
.dir-cols a { text-decoration: none; font-weight: 600; flex: 1 1 auto; min-width: 0; }
.dir-rank { flex: 0 0 auto; min-width: 2.6em; opacity: 0.55; font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.dir-cols a:hover { text-decoration: underline; }
.dir-meta { flex-shrink: 0; font-size: 11px; opacity: 0.55; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.dir-empty { opacity: 0.8; }
@media (max-width: 700px) { .dir-count { margin-left: 0; width: 100%; } }

/* --- Laenderseite (country.php, seit 2026-10-17) --- */
.cty-page { max-width: 1100px; }
.cty-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin: 24px 0 0; }
.cty-note { font-size: 12px; opacity: 0.65; line-height: 1.5; max-width: 760px; }
.cty-section { margin: 56px 0 0; }
.cty-section > h2 { font-size: 26px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.cty-intro { font-size: 15px; opacity: 0.85; margin: 0 0 20px; max-width: 760px; line-height: 1.55; }
.cty-sub { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.65; margin: 32px 0 10px; }
.cty-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.cty-groups .home-list h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper-cream);
  opacity: 0.75; border-bottom: 1px solid rgba(245,238,221,0.15); padding-bottom: 10px; margin: 0 0 10px; }
.cty-count { opacity: 0.6; font-weight: 400; margin-left: 4px; }
.cty-code { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; padding: 1px 5px; border-radius: 4px;
  background: rgba(14,27,36,0.35); color: var(--paper-cream); vertical-align: 1px; }
.cty-unknown { opacity: 0.5; }
.cty-bars { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.cty-bar { display: grid; grid-template-columns: 44px 1fr 40px; align-items: center; gap: 10px; font-size: 14px; }
.cty-bar-track { height: 12px; background: rgba(14,27,36,0.2); border-radius: 6px; overflow: hidden; }
.cty-bar-fill { display: block; height: 100%; background: var(--ink-navy); border-radius: 6px; }
.cty-bar-fill.is-home { background: var(--accent-orange); }
.cty-bar-n { text-align: right; font-weight: 700; }
.cty-rels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cty-rels li { padding: 10px 0; border-bottom: 1px solid rgba(245,238,221,0.1); }
.cty-rel-head { font-size: 15px; font-weight: 600; line-height: 1.45; }
.cty-rel-head a, .cty-rel-label a, .cty-person a { text-decoration: none; border-bottom: 1px solid rgba(245,238,221,0.35); }
.cty-rel-head a:hover, .cty-rel-label a:hover, .cty-person a:hover { border-bottom-color: currentColor; }
.cty-type { font-weight: 400; opacity: 0.75; font-size: 13px; }
.cty-amt { color: var(--ink-navy); background: var(--accent-orange); font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.cty-date { font-weight: 400; font-size: 12px; opacity: 0.6; margin-left: 4px; }
.cty-rel-label { font-size: 13px; opacity: 0.8; line-height: 1.5; margin-top: 2px; }
.cty-rel-label em { font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }
.cty-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.cty-person { background: rgba(14,27,36,0.22); border-radius: 10px; padding: 16px 18px; }
.cty-person h3 { margin: 0 0 10px; font-size: 18px; }
.cty-side { margin-top: 8px; }
.cty-side > span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6; }
.cty-side p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; opacity: 0.9; }
@media (max-width: 600px) {
  .cty-groups, .cty-people { grid-template-columns: 1fr; }
  .cty-section > h2 { font-size: 22px; }
}

/* --- Laender-Kurzfassung (country-brief.php, seit 2026-10-17) --- */
.brf-lead { font-size: 21px; font-weight: 600; line-height: 1.45; color: #fff; max-width: 820px; margin: 18px 0 10px; }
.brf-coverage { font-size: 13px; opacity: 0.7; margin: 0; }
.brf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 24px; margin-top: 8px; }
.brf-card { position: relative; background: rgba(14,27,36,0.24); border-radius: 14px; padding: 26px 26px 20px; display: flex; flex-direction: column; }
.brf-num { position: absolute; top: 18px; right: 22px; font-size: 13px; font-weight: 700; opacity: 0.45; }
.brf-card h2 { font-size: 21px; line-height: 1.25; font-weight: 700; color: #fff; margin: 0 28px 10px 0; }
.brf-card > p { font-size: 15px; line-height: 1.55; opacity: 0.9; margin: 0 0 18px; }
.brf-chart { margin-top: auto; }
.brf-chart-sub { font-size: 12px; opacity: 0.7; margin: 12px 0 6px; }
.brf-bars { display: flex; flex-direction: column; gap: 7px; }
.brf-bar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 64px; align-items: center; gap: 10px; font-size: 13px; }
.brf-bar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brf-bar-track { height: 12px; background: rgba(14,27,36,0.22); border-radius: 6px; overflow: hidden; }
.brf-bar-fill { display: block; height: 100%; background: var(--ink-navy); border-radius: 6px; }
.brf-bar-fill.is-home { background: var(--accent-orange); }
.brf-bar-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.brf-people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brf-person { background: rgba(14,27,36,0.25); border-radius: 8px; padding: 10px 12px; font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.brf-person strong { font-size: 14px; color: #fff; }
.brf-person span { opacity: 0.8; }
.brf-person span:first-of-type::before { content: 'Public: '; font-weight: 700; opacity: 0.7; }
.brf-person span:last-of-type::before { content: 'Private: '; font-weight: 700; opacity: 0.7; }
.brf-mini { list-style: none; margin: 0; padding: 0; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.brf-ev { margin-top: 16px; border-top: 1px solid rgba(245,238,221,0.15); padding-top: 10px; font-size: 13px; }
.brf-ev summary { cursor: pointer; opacity: 0.75; font-weight: 600; }
.brf-ev ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow: auto; }
.brf-ev li span { display: block; opacity: 0.75; font-size: 12px; margin-top: 2px; }
.brf-ev a { text-decoration: none; border-bottom: 1px solid rgba(245,238,221,0.35); font-weight: 600; }
.brf-page .cty-note { margin-top: 40px; }
.brf-page .cty-note a { text-decoration: underline; }
@media (max-width: 600px) {
  .brf-grid { grid-template-columns: 1fr; }
  .brf-card { padding: 22px 18px 16px; }
  .brf-people { grid-template-columns: 1fr; }
  .brf-lead { font-size: 18px; }
}

/* Startseite: Umschalter "Now / All time" bei Most Linked (seit 2026-10-19), Stil wie .graph-depth im Mini-Graphen */
.home-list-toggle {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; opacity: 1;
  background: rgba(14,27,36,0.85); border: 1px solid rgba(245,238,221,0.15); border-radius: 8px;
}
.home-list-toggle a {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 22px;
  padding: 0 8px; border-radius: 5px; color: var(--paper-cream); text-decoration: none; opacity: 0.7;
}
.home-list-toggle a:hover { opacity: 1; }
.home-list-toggle a.active { background: var(--bg-pink); color: #fff; opacity: 1; }
/* Deckkraft der Ueberschrift nur auf den Text, sonst wird der Umschalter mit abgeblendet */
.home-list h2 { opacity: 1; color: rgba(245,238,221,0.65); }
.home-lists-bar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,238,221,0.6); }

/* Startseite: Kanten-Listen (Strongest Ties, Biggest Money Flows, Newest Connections; seit 2026-10-29) */
.home-lists-edges { margin-top: 48px; }
.home-list-edge { line-height: 1.35; }
.home-list-sep { opacity: 0.5; margin: 0 2px; font-weight: 400; }
.home-list-more { font-size: 12px; opacity: 0.55; font-weight: 600; }
.home-list-meta { font-size: 12px; opacity: 0.6; letter-spacing: 0.02em; }

/* Mobil: Bedienleiste des Mini-Graphen als eigene Zeile ueber der Karte statt Overlay (war breiter als die Karte und
   wurde abgeschnitten, seit 2026-10-29). Gruppen brechen um, Knoepfe in Fingergroesse. */
@media (max-width: 900px) {
  .panel-right { height: auto; }
  .graph-depth {
    position: static; display: flex; flex-wrap: wrap; row-gap: 6px; margin: 0 0 10px; padding: 6px;
    background: var(--ink-navy); border-radius: 12px;
  }
  .graph-depth button { height: 32px; min-width: 34px; padding: 0 9px; font-size: 13px; }
  .graph-depth span { padding: 0 4px 0 6px; }
  .graph-depth .graph-mode-sep { display: none; }
  .graph-depth { column-gap: 14px; }
  .graph-body { flex: none; height: 62vh; min-height: 360px; }
  .graph-body .graph-legend { top: 12px; right: 12px; }
}
/* Knopfgruppen (Steps / 2D-3D / Now-All / Fold-Hide) brechen nur als Ganzes um */
.graph-depth .graph-group { display: inline-flex; align-items: center; gap: 2px; padding: 0; opacity: 1; white-space: nowrap; }
.graph-depth .graph-group > span { padding: 0 6px 0 4px; opacity: 0.6; }

/* Suchfeld mit Umschalter Personen/Orgs | Quellen + Info (searchBox() in bootstrap.php, search-box.js; seit 2026-10-29) */
.search-mode { display: flex; align-items: center; gap: 4px; margin: 0 0 8px; }
.search-mode button {
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(245,238,221,0.6); background: transparent; color: var(--paper-cream); opacity: 0.9;
}
.search-mode button:hover { opacity: 1; }
.search-mode button.active { background: var(--ink-navy); border-color: var(--ink-navy); opacity: 1; }
.search-mode .search-info-btn {
  margin-left: auto; width: 30px; padding: 0; text-transform: none; font-family: Georgia, serif; font-style: italic; font-size: 15px;
}
.search-mode .search-info-btn[aria-expanded="true"] { background: var(--paper-cream); color: var(--ink-navy); }
/* Info als Overlay unter dem Umschalter -- sonst rutscht das Eingabefeld weg */
.search-box { position: relative; }
.search-info {
  position: absolute; top: 38px; left: 0; right: 0; z-index: 30;
  text-align: left; font-size: 13.5px; line-height: 1.5; margin: 0; padding: 12px 14px; border-radius: 8px;
  background: var(--ink-navy); color: var(--paper-cream); box-shadow: 0 10px 30px rgba(14,27,36,0.5);
}
.search-info p { margin: 0 0 8px; }
.search-info p:last-child { margin: 0; }
.search-info code { background: rgba(245,238,221,0.12); padding: 1px 5px; border-radius: 4px; }
.search-info-note { font-weight: 700; }
.search-scope { text-align: left; font-size: 12.5px; margin: 8px 2px 0; opacity: 0.9; }
.search-scope[hidden], .search-info[hidden] { display: none; }
.search-empty .search-switch { font: inherit; font-weight: 700; color: inherit; background: none; border: none; padding: 0;
  text-decoration: underline; cursor: pointer; }
@media (max-width: 700px) {
  .home-search-row .home-fullmap { margin-top: 0; }
  .search-mode { flex-wrap: wrap; row-gap: 6px; }
  .search-mode button { font-size: 10.5px; letter-spacing: 0.04em; padding: 0 9px; }
}
