/* EDDA – Modernes, barrierefreies Hochschul-Design (WCAG 2.1 AA / BITV 2.0) */

:root {
  --edda-canvas: #F8FAFC;
  --edda-surface: #FFFFFF;
  --edda-surface-subtle: #F1F5F9;
  --edda-border: #E2E8F0;
  --edda-border-strong: #CBD5E1;
  --edda-text: #0F172A;
  --edda-muted: #475569;
  --edda-primary: #004B87;
  --edda-primary-hover: #003A6B;
  --edda-primary-soft: #EFF6FF;
  --edda-accent: #0284C7;
  --edda-focus: #004B87;
  --edda-success: #047857;
  --edda-warning: #9A3412;
  --edda-danger: #B91C1C;
  --edda-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", "DejaVu Sans", sans-serif;
  --edda-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
}

body {
  font-family: var(--edda-font-sans);
  background-color: var(--edda-canvas);
  color: var(--edda-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body:not(.modal-open) { overflow-y: auto !important; padding-right: 0 !important; }
code, pre, kbd, samp { font-family: var(--edda-font-mono); }

/* WCAG 2.4.1 Skip Link */
.edda-skip-link {
  position: absolute;
  top: -120px;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.65rem 1rem;
  background-color: var(--edda-primary);
  color: #FFFFFF !important;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: 0.375rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.22);
}
.edda-skip-link:focus,
.edda-skip-link:focus-visible {
  top: 0.75rem;
  outline: 3px solid #FFFFFF;
  outline-offset: 2px;
}
#edda-main-content:focus { outline: none; }

.edda-ext-link-icon {
  display: inline-block;
  margin-left: 0.2rem;
  font-size: 0.8em;
  line-height: 1;
  text-decoration: none;
  opacity: 0.85;
}

/* Headings */
.edda-page-title { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.015em; color: var(--edda-text); margin: 0 0 1.25rem; line-height: 1.25; }
.edda-card-heading { font-size: 1rem; font-weight: 600; color: var(--edda-text); margin: 0; line-height: 1.35; }
.edda-subtable-heading { font-size: 0.92rem; font-weight: 600; color: var(--edda-text); margin: 0.9rem 0 0.45rem; }

/* EDDA Team: 3 gleich hohe Standort-Karten mit einheitlicher Logo-Zone */
.edda-team-page { max-width: 1140px; margin: 0 auto; }
.edda-team-grid { --bslib-grid-gap: 1.25rem; }
.edda-preview-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.edda-team-card { height: 100%; display: flex; flex-direction: column; }
.edda-team-card > .card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1.35rem 1.4rem 1.45rem; }
.edda-team-card h2 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; color: var(--edda-text); margin: 0 0 0.9rem; line-height: 1.3; }
.edda-team-logo { height: 96px; display: flex; align-items: center; justify-content: center; padding: 0.85rem 1rem; margin: 0 0 1.15rem; background-color: var(--edda-surface); border: 1px solid var(--edda-border); border-radius: 0.375rem; flex-shrink: 0; }
.edda-team-logo-img { max-width: 100%; max-height: 66px; width: auto; height: auto; object-fit: contain; display: block; }
.edda-team-card ul:first-of-type { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.edda-team-card ul:first-of-type > li { padding: 0.5rem 0; border-bottom: 1px solid var(--edda-border); font-size: 0.95rem; font-weight: 500; color: var(--edda-text); line-height: 1.4; }
.edda-team-card ul:first-of-type > li:first-child { padding-top: 0; }
.edda-team-card ul:first-of-type > li:last-child { border-bottom: 0; padding-bottom: 0; }
.edda-team-card ul:first-of-type > li > a { color: var(--edda-primary); text-decoration: none; font-weight: 500; }
.edda-team-card ul:first-of-type > li > a:hover,
.edda-team-card ul:first-of-type > li > a:focus-visible { color: var(--edda-primary-hover); text-decoration: underline; text-underline-offset: 2px; }
.edda-team-card h3 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--edda-muted); margin: 1.25rem 0 0.65rem; padding-top: 1rem; border-top: 1px solid var(--edda-border); line-height: 1.3; }
.edda-team-card h3 + ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.38rem; }
.edda-team-card h3 + ul > li { position: relative; padding-left: 0.95rem; font-size: 0.91rem; color: var(--edda-muted); line-height: 1.45; }
.edda-team-card h3 + ul > li::before { content: ""; position: absolute; left: 0; top: 0.56em; width: 5px; height: 5px; border-radius: 999px; background-color: var(--edda-border-strong); }

/* Impressum: 2-Spalten-Kartenraster fuer alle 6 Rechtsbereiche */
.edda-impressum-page { max-width: 1080px; margin: 0 auto; }
.edda-impressum-page > h1 { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.015em; color: var(--edda-text); margin: 0 0 1.25rem; line-height: 1.25; }
.edda-impressum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.edda-impressum-card { background-color: var(--edda-surface); border: 1px solid var(--edda-border); border-radius: 0.5rem; padding: 1.35rem 1.5rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03); display: flex; flex-direction: column; gap: 0.8rem; }
.edda-impressum-card > h2 { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; color: var(--edda-text); margin: 0; padding-bottom: 0.65rem; border-bottom: 1px solid var(--edda-border); line-height: 1.35; }
.edda-impressum-card > p { margin: 0; font-size: 0.94rem; color: var(--edda-text); line-height: 1.58; max-width: 65ch; }
.edda-impressum-intro { color: var(--edda-muted) !important; font-size: 0.9rem !important; }
.edda-impressum-address { margin: 0; font-style: normal; font-size: 0.94rem; color: var(--edda-text); line-height: 1.62; }
.edda-impressum-name { font-weight: 600; color: var(--edda-text); }
.edda-impressum-contact { margin: 0; padding-top: 0.65rem; border-top: 1px dashed var(--edda-border); font-size: 0.92rem; color: var(--edda-muted); line-height: 1.6; font-variant-numeric: tabular-nums; }
.edda-impressum-vat { margin: 0; font-family: var(--edda-font-mono); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.03em; color: var(--edda-primary); font-variant-numeric: tabular-nums; }
.edda-privacy-page { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }
.edda-privacy-page > h1 { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.015em; color: var(--edda-text); margin: 0; line-height: 1.25; }
.edda-privacy-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.edda-privacy-sections .edda-impressum-card ul { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.93rem; line-height: 1.55; color: var(--edda-text); }

/* News: Vertikale Release-Zeitleiste in ruhiger Karte (100 % reines Markdown) */
.edda-news-page { max-width: 860px; margin: 0 auto; }
.edda-news-card > .card-body { padding: 1.75rem 2rem 2rem; }
.edda-news-card > .card-body > h1 { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.015em; color: var(--edda-text); margin: 0 0 1.65rem; padding-bottom: 0.95rem; border-bottom: 1px solid var(--edda-border); line-height: 1.25; }
.edda-news-card > .card-body > h2 { position: relative; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; color: var(--edda-text); margin: 0; padding: 0.1rem 0 0.6rem 1.95rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.edda-news-card > .card-body > h2::before { content: ""; position: absolute; left: 1px; top: 0.42rem; width: 12px; height: 12px; border-radius: 999px; background-color: var(--edda-surface); border: 2px solid var(--edda-border-strong); box-shadow: 0 0 0 3px var(--edda-surface); z-index: 1; }
.edda-news-card > .card-body > h2::after { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background-color: var(--edda-border); }
.edda-news-card > .card-body > h2:first-of-type { color: var(--edda-primary); }
.edda-news-card > .card-body > h2:first-of-type::before { background-color: var(--edda-primary); border-color: var(--edda-primary); box-shadow: 0 0 0 4px var(--edda-primary-soft); }
.edda-news-card > .card-body > h2:first-of-type::after { top: 0.8rem; }
.edda-news-card > .card-body > ul { position: relative; list-style: none; margin: 0; padding: 0 0 1.65rem 1.95rem; display: flex; flex-direction: column; gap: 0.48rem; }
.edda-news-card > .card-body > ul::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background-color: var(--edda-border); }
.edda-news-card > .card-body > ul:last-child { padding-bottom: 0.15rem; }
.edda-news-card > .card-body > ul:last-child::before { background: linear-gradient(to bottom, var(--edda-border) 0%, transparent 100%); }
.edda-news-card > .card-body > p { position: relative; margin: 0; padding: 0 0 0.85rem 1.95rem; font-size: 0.95rem; color: var(--edda-text); line-height: 1.6; max-width: 72ch; }
.edda-news-card > .card-body > p::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background-color: var(--edda-border); }
.edda-news-card > .card-body > ul > li { position: relative; padding-left: 1rem; font-size: 0.95rem; color: var(--edda-text); line-height: 1.58; max-width: 68ch; }
.edda-news-card > .card-body > ul > li > p { margin: 0; }
.edda-news-card > .card-body > ul > li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 999px; background-color: var(--edda-muted); }
.edda-news-card > .card-body > ul > li > ul { list-style: none; margin: 0.45rem 0 0.15rem; padding: 0 0 0 0.95rem; border-left: 1px solid var(--edda-border); display: flex; flex-direction: column; gap: 0.32rem; }
.edda-news-card > .card-body > ul > li > ul > li { position: relative; padding-left: 0.85rem; font-size: 0.91rem; color: var(--edda-muted); line-height: 1.52; }
.edda-news-card > .card-body > ul > li > ul > li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 4px; height: 4px; border-radius: 999px; border: 1.5px solid var(--edda-border-strong); background-color: transparent; }

/* Navigation */
.navbar { background-color: var(--edda-surface) !important; border-bottom: 1px solid var(--edda-border); box-shadow: none; }
.navbar-brand { color: var(--edda-primary) !important; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; }
.edda-navbar-brand-lockup { display: inline-flex; align-items: center; gap: 0.5rem; line-height: 1; }
.edda-navbar-brand-logo { height: 30px; width: auto; display: block; object-fit: contain; flex-shrink: 0; }
.navbar .navbar-nav { align-items: center; }
.navbar .nav-link { color: var(--edda-muted); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 150ms ease, border-color 150ms ease; }
.navbar .nav-link:hover, .navbar .nav-link:focus-visible { color: var(--edda-primary); }
.navbar .nav-link.active, .navbar .nav-item.dropdown .nav-link.active { color: var(--edda-primary) !important; border-bottom-color: var(--edda-primary); font-weight: 600; }
.navbar .dropdown-menu { border: 1px solid var(--edda-border); border-radius: 0.5rem; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); padding: 0.35rem; }
.navbar .dropdown-item { border-radius: 0.375rem; font-size: 0.925rem; padding: 0.45rem 0.75rem; color: var(--edda-text); }
.navbar .dropdown-item:hover, .navbar .dropdown-item:focus { background-color: var(--edda-surface-subtle); color: var(--edda-primary); }
.navbar .dropdown-item.active { background-color: var(--edda-primary-soft); color: var(--edda-primary); font-weight: 600; }
.edda-navbar-cta { white-space: nowrap; flex-shrink: 0; padding: 0.42rem 0.9rem !important; font-size: 0.875rem !important; font-weight: 600 !important; line-height: 1.35; }

/* Full-width centered workspace */
.bslib-page-navbar > .container-fluid {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

/* Analyse-page_navbar (eigene Sekundär-Navigationsleiste mit Hauptbereichs-Menüs) */
.edda-analysis-page-navbar {
  margin-bottom: 1.25rem;
  overflow: visible;
}
.edda-analysis-page-navbar .bslib-page-navbar {
  min-height: 0 !important;
  height: auto !important;
  background: transparent;
}
.edda-analysis-page-navbar .edda-analysis-bs-navbar,
.edda-analysis-page-navbar nav.navbar {
  background-color: var(--edda-surface) !important;
  border: 1px solid var(--edda-border);
  border-radius: 0.5rem;
  padding: 0.4rem 0.9rem;
  min-height: 52px;
}
.edda-analysis-page-navbar .navbar > .container-fluid {
  max-width: none;
  padding: 0;
  gap: 0.5rem 0.85rem;
}
.edda-analysis-page-navbar .navbar-brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--edda-text) !important;
  margin-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.edda-analysis-page-navbar .navbar-nav {
  gap: 0.15rem 0.5rem;
}
.edda-analysis-page-navbar .nav-link {
  font-size: 0.9rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.55rem;
}
.edda-analysis-page-navbar .dropdown-menu {
  min-width: 260px;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 1035;
}
.edda-analysis-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
}
.edda-analysis-nav-label {
  white-space: normal;
  line-height: 1.3;
}
.edda-analysis-nav-pct {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--edda-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.edda-analysis-page-navbar .dropdown-item.active .edda-analysis-nav-pct {
  color: var(--edda-primary);
}
.edda-analysis-navbar-meta {
  font-size: 0.82rem;
  color: var(--edda-muted);
  white-space: nowrap;
  padding-right: 0.35rem;
}
.edda-toolbar-pdf-btn,
a.edda-toolbar-pdf-btn,
a.shiny-download-link.edda-toolbar-pdf-btn,
.edda-analysis-page-navbar .navbar-nav .nav-item > a.edda-toolbar-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.42rem 0.9rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.35;
  color: #FFFFFF !important;
  background-color: var(--edda-primary) !important;
  border: 1px solid var(--edda-primary) !important;
  border-bottom: 1px solid var(--edda-primary) !important;
  border-radius: 0.375rem;
  text-decoration: none !important;
  box-shadow: none !important;
}
.edda-toolbar-pdf-btn:hover,
.edda-toolbar-pdf-btn:focus,
.edda-toolbar-pdf-btn:active,
.edda-toolbar-pdf-btn:visited,
a.shiny-download-link.edda-toolbar-pdf-btn:hover,
a.shiny-download-link.edda-toolbar-pdf-btn:focus,
a.shiny-download-link.edda-toolbar-pdf-btn:active,
a.shiny-download-link.edda-toolbar-pdf-btn:visited,
.edda-analysis-page-navbar .navbar-nav .nav-item > a.edda-toolbar-pdf-btn:hover,
.edda-analysis-page-navbar .navbar-nav .nav-item > a.edda-toolbar-pdf-btn:focus,
.edda-analysis-page-navbar .navbar-nav .nav-item > a.edda-toolbar-pdf-btn:active {
  color: #FFFFFF !important;
  background-color: var(--edda-primary-hover) !important;
  border-color: var(--edda-primary-hover) !important;
  border-bottom-color: var(--edda-primary-hover) !important;
  text-decoration: none !important;
}
.edda-analysis-page-navbar .navbar-nav .nav-item > a.edda-toolbar-pdf-btn::before,
.edda-analysis-page-navbar .navbar-nav .nav-item > a.edda-toolbar-pdf-btn::after {
  content: none !important;
  display: none !important;
}
.edda-analysis-page-navbar .bslib-page-navbar > .container-fluid,
.edda-analysis-page-navbar .edda-analysis-page-navbar-empty,
.edda-analysis-page-navbar .tab-content {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.edda-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.8rem 1.1rem;
  margin: 0.85rem 0 1.15rem;
  background-color: var(--edda-surface);
  border: 1px solid var(--edda-border);
  border-radius: 0.5rem;
}
.edda-filter-bar .shiny-input-container { margin-bottom: 0 !important; min-width: 260px; max-width: 440px; flex: 1 1 280px; }
.edda-filter-bar .control-label, .edda-filter-bar .form-label { font-size: 0.825rem; font-weight: 600; color: var(--edda-muted); margin-bottom: 0.3rem; }

/* Cards, Buttons & Unified WCAG 2.4.7 Focus Rings */
.card { background-color: var(--edda-surface); border: 1px solid var(--edda-border); border-radius: 0.5rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03); }
.card-header { background-color: var(--edda-surface); border-bottom: 1px solid var(--edda-border); color: var(--edda-text); font-weight: 600; padding: 0.875rem 1.25rem; }
.card-body { padding: 1.25rem; }
.table, .edda-numeric { font-variant-numeric: tabular-nums; }

.btn { border-radius: 0.375rem; font-weight: 500; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease; }
.btn-primary { background-color: var(--edda-primary); border-color: var(--edda-primary); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--edda-primary-hover); border-color: var(--edda-primary-hover); }
.edda-disabled-btn { pointer-events: none; opacity: 0.5; cursor: not-allowed; }

a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible,
.navbar .nav-link:focus-visible, .navbar .dropdown-item:focus-visible,
.nav-tabs .nav-link:focus-visible, .nav-underline .nav-link:focus-visible,
.accordion-button:focus-visible, .form-control:focus-visible, .form-select:focus-visible,
.form-check-input:focus-visible, .edda-wizard-step-btn:focus-visible,
.edda-popover-trigger:focus-visible, .edda-subcat-item:focus-visible,
.edda-subcat-panel:focus-visible, .bslib-sidebar-layout > .collapse-toggle:focus-visible {
  outline: 2px solid var(--edda-focus) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

/* Startseite (Redaktionelles Hochschul-Layout mit EDDA-Logo-Bühne) */
.edda-home-wrap {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.edda-home-hero {
  position: relative;
  background-color: var(--edda-surface);
  border: 1px solid var(--edda-border);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(0, 75, 135, 0.06);
  overflow: hidden;
}
.edda-home-hero::before {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--edda-primary) 0%, var(--edda-accent) 100%);
}
.edda-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.82fr);
  gap: 2rem 2.75rem;
  align-items: stretch;
  padding: 2.5rem 2.85rem 2.35rem;
}
.edda-home-hero-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.edda-home-version {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--edda-primary);
  margin: 0 0 0.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.edda-home-title {
  font-size: clamp(1.85rem, 2.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.16;
  color: var(--edda-text);
  margin: 0 0 1.35rem;
  text-wrap: balance;
}
.edda-home-welcome {
  padding-top: 1.3rem;
  border-top: 1px solid var(--edda-border);
}
.edda-home-welcome-heading {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--edda-text);
  margin: 0 0 0.8rem;
  line-height: 1.3;
}
.edda-home-lead {
  font-size: 1.01rem;
  line-height: 1.68;
  color: var(--edda-text);
  max-width: 64ch;
  margin: 0 0 0.9rem;
}
.edda-home-body {
  font-size: 0.955rem;
  line-height: 1.66;
  color: var(--edda-muted);
  max-width: 64ch;
  margin: 0 0 1rem;
}
.edda-home-start-copy {
  font-size: 0.955rem;
  line-height: 1.62;
  color: var(--edda-text);
  max-width: 64ch;
  margin: 0 0 1.45rem;
}
.edda-home-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.edda-home-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.45rem;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px -4px rgba(0, 75, 135, 0.35);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.edda-home-cta-btn:hover {
  transform: translateY(-1px);
}
.edda-home-hero-brand {
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
}
.edda-home-logo-stage {
  position: relative;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 2rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(0, 75, 135, 0.14);
  background-color: #F4F8FC;
  background-image:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.94) 0%, rgba(239, 246, 255, 0.72) 62%, rgba(224, 240, 254, 0.52) 100%),
    linear-gradient(to right, rgba(0, 75, 135, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 75, 135, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
  background-position: center, center, center;
  overflow: hidden;
}
.edda-home-logo-stage::before {
  content: "";
  position: absolute;
  width: 288px;
  height: 288px;
  border-radius: 999px;
  border: 1px solid rgba(2, 132, 199, 0.12);
  pointer-events: none;
}
.edda-home-brand-logo {
  position: relative;
  z-index: 1;
  width: clamp(205px, 21vw, 268px);
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 75, 135, 0.16)) drop-shadow(0 4px 10px rgba(15, 23, 42, 0.06));
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.edda-home-logo-stage:hover .edda-home-brand-logo {
  transform: translateY(-3px);
}
.edda-home-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  border-top: 1px solid var(--edda-border);
  background-color: #FAFBFD;
}
.edda-home-logos {
  display: block;
  max-width: 580px;
  width: 100%;
  height: auto;
  margin: 0;
}
.edda-home-section {
  background-color: var(--edda-surface);
  border: 1px solid var(--edda-border);
  border-radius: 0.75rem;
  padding: 2rem 2.5rem 2.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.edda-home-section-head {
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--edda-border);
}
.edda-home-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--edda-text);
  margin: 0;
  line-height: 1.3;
  text-wrap: balance;
}
.edda-home-section-lead {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--edda-muted);
  max-width: 72ch;
  margin-top: 0.5rem;
}
.edda-home-functions-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.edda-home-feature-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  background-color: #F4F8FC;
  border: 1px solid #BFDBFE;
  border-radius: 0.5rem;
  padding: 1.5rem 1.65rem;
}
.edda-home-feature-primary-body {
  flex: 1 1 500px;
  min-width: 0;
}
.edda-home-feature-primary-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--edda-primary);
  margin: 0 0 0.4rem;
  line-height: 1.35;
}
.edda-home-feature-primary-title {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--edda-text);
  margin: 0 0 0.55rem;
  line-height: 1.3;
  text-wrap: balance;
}
.edda-home-feature-primary-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--edda-text);
  max-width: 68ch;
  margin: 0 0 0.75rem;
}
.edda-home-feature-primary-meta {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--edda-muted);
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.edda-home-feature-primary-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.edda-home-reflectors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}
.edda-home-reflector-card {
  display: flex;
  flex-direction: column;
  background-color: var(--edda-canvas);
  border: 1px solid var(--edda-border);
  border-radius: 0.5rem;
  padding: 1.25rem 1.3rem 1.3rem;
  min-width: 0;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.edda-home-reflector-card:hover {
  border-color: var(--edda-primary);
  background-color: var(--edda-surface);
}
.edda-home-reflector-eyebrow {
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--edda-primary);
  margin: 0 0 0.4rem;
  line-height: 1.35;
}
.edda-home-reflector-title {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--edda-text);
  margin: 0 0 0.55rem;
  line-height: 1.3;
}
.edda-home-reflector-desc {
  font-size: 0.89rem;
  line-height: 1.58;
  color: var(--edda-muted);
  margin: 0 0 1.15rem;
  flex: 1 1 auto;
}
.edda-home-reflector-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--edda-border);
}
.edda-home-reflector-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  text-align: left;
}
.edda-home-feature-companion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  background-color: var(--edda-canvas);
  border: 1px solid var(--edda-border);
  border-radius: 0.5rem;
  padding: 1.2rem 1.45rem;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.edda-home-feature-companion:hover {
  border-color: var(--edda-primary);
  background-color: var(--edda-surface);
}
.edda-home-feature-companion-body {
  flex: 1 1 480px;
  min-width: 0;
}
.edda-home-feature-companion-title {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--edda-text);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.edda-home-feature-companion-desc {
  font-size: 0.89rem;
  line-height: 1.56;
  color: var(--edda-muted);
  max-width: 68ch;
}
.edda-home-feature-companion-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.edda-home-companion-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.52rem 1rem;
  white-space: nowrap;
}
.edda-home-video-stage {
  display: flex;
  justify-content: center;
}
.edda-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--edda-surface-subtle);
  border: 1px solid var(--edda-border);
  box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.12);
}
.edda-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.edda-video-facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.75rem 2rem;
  gap: 0.8rem;
  background: linear-gradient(150deg, #F8FAFC 0%, #EEF4FA 100%);
  color: var(--edda-text);
}
.edda-video-facade-icon {
  font-size: 2.75rem;
  color: var(--edda-primary);
  line-height: 1;
}
.edda-video-facade-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0;
  color: var(--edda-text);
}
.edda-video-facade-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--edda-muted);
  max-width: 54ch;
}
.edda-video-facade-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.edda-pub-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.edda-pub-entry {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--edda-border);
}
.edda-pub-entry:first-child {
  padding-top: 0.1rem;
}
.edda-pub-entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.edda-pub-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--edda-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.edda-pub-text {
  margin: 0;
  font-size: 0.945rem;
  line-height: 1.62;
  color: var(--edda-text);
  max-width: 78ch;
  overflow-wrap: break-word;
}
.edda-pub-text a {
  color: var(--edda-primary);
  text-decoration: none;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.edda-pub-text a:hover,
.edda-pub-text a:focus-visible {
  color: var(--edda-primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* Empty State */
.edda-empty-state { max-width: 640px; margin: 2.5rem auto; background-color: var(--edda-surface); border: 1px solid var(--edda-border); border-radius: 0.5rem; padding: 2.25rem 2rem; text-align: center; }
.edda-empty-icon { width: 48px; height: 48px; margin: 0 auto 1rem; border-radius: 0.5rem; background-color: var(--edda-primary-soft); color: var(--edda-primary); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.edda-empty-state p { margin: 0 auto 1.35rem; color: var(--edda-muted); max-width: 52ch; }

/* Overview */
.edda-overview-wrap { display: flex; flex-direction: column; gap: 1.5rem; }
.edda-overview-header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; }
.edda-overview-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.015em; margin: 0; color: var(--edda-text); }
.edda-overview-add-btn { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem; }
.edda-completion-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.8rem 1rem; background-color: #ECFDF5; border: 1px solid #A7F3D0; border-radius: 0.5rem; color: #065F46; font-size: 0.925rem; }
.edda-completion-banner.is-demo { background-color: #EFF6FF; border-color: #BFDBFE; color: #1E3A8A; }
.edda-completion-banner-text { display: flex; align-items: center; gap: 0.55rem; }
.edda-section-block { display: flex; flex-direction: column; gap: 0.85rem; }
.edda-section-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.edda-section-heading { font-size: 1.05rem; font-weight: 600; color: var(--edda-text); margin: 0; }
.edda-section-count { font-size: 0.825rem; color: var(--edda-muted); font-variant-numeric: tabular-nums; }
.edda-overview-card { background-color: var(--edda-surface); border: 1px solid var(--edda-border); border-radius: 0.5rem; padding: 1.15rem 1.25rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.9rem; transition: border-color 150ms ease, box-shadow 150ms ease; }
.edda-overview-card:hover { border-color: var(--edda-border-strong); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05); }
.edda-overview-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.edda-overview-card-title { font-size: 0.98rem; font-weight: 600; color: var(--edda-text); margin: 0; line-height: 1.35; }
.edda-overview-card-pct { font-size: 1.25rem; font-weight: 700; color: var(--edda-text); line-height: 1.2; white-space: nowrap; }
.edda-meter-track { width: 100%; height: 7px; border-radius: 999px; background-color: var(--edda-surface-subtle); overflow: hidden; }
.edda-meter-fill { height: 100%; border-radius: 999px; transition: width 200ms ease; }
.edda-meter-fill.is-success { background-color: var(--edda-success); }
.edda-meter-fill.is-warning { background-color: var(--edda-warning); }
.edda-meter-fill.is-danger { background-color: var(--edda-danger); }
.edda-overview-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.15rem; }
.edda-status-label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.84rem; font-weight: 600; }
.edda-status-label.is-success { color: var(--edda-success); }
.edda-status-label.is-warning { color: var(--edda-warning); }
.edda-status-label.is-danger { color: var(--edda-danger); }
.edda-card-action { white-space: nowrap; flex-shrink: 0; }

/* Detail View & Collapsible Accessible Data Tables */
.edda-detail-page { display: flex; flex-direction: column; gap: 1.25rem; }
.edda-detail-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.85rem 1.25rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--edda-border); }
.edda-detail-header-left { display: flex; flex-direction: column; gap: 0.3rem; }
.edda-back-link { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0 !important; font-size: 0.875rem; font-weight: 500; color: var(--edda-muted) !important; text-decoration: none !important; width: fit-content; }
.edda-back-link:hover, .edda-back-link:focus-visible { color: var(--edda-primary) !important; text-decoration: underline !important; }
.edda-detail-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.015em; color: var(--edda-text); margin: 0; }
.edda-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--edda-muted); }
.edda-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.edda-inline-note { font-size: 0.86rem; color: var(--edda-muted); margin: -0.4rem 0 0; }
.edda-detail-subblocks { display: flex; flex-direction: column; gap: 1.25rem; }
.edda-detail-subblock + .edda-detail-subblock { padding-top: 1.15rem; border-top: 1px solid var(--edda-border); }
.edda-detail-subblock-title { font-size: 0.96rem; font-weight: 600; color: var(--edda-primary); margin: 0 0 0.5rem; }
.edda-detail-subblock p:last-child, .edda-detail-subblock ul:last-child { margin-bottom: 0; }
.edda-card-header-flex { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.edda-popover-trigger { appearance: none; background: transparent; border: 1px solid transparent; border-radius: 999px; color: var(--edda-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; padding: 0.25rem; line-height: 1; transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
.edda-popover-trigger:hover { color: var(--edda-primary); background-color: var(--edda-primary-soft); border-color: var(--edda-border); }

.edda-viz-card { overflow: visible !important; height: auto !important; }
.edda-viz-card > .card-body { overflow: visible !important; flex: 0 0 auto; }

/* Teilmerkmal-Ansicht mit bslib::layout_sidebar (Seitenleiste links, Details rechts) */
.edda-subcat-layout {
  background-color: var(--edda-surface);
  border: 1px solid var(--edda-border) !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.edda-subcat-layout > .sidebar {
  background-color: var(--edda-canvas);
  border-right: 1px solid var(--edda-border);
}
.edda-subcat-layout > .sidebar > .sidebar-content {
  padding: 1rem;
  gap: 0.75rem;
}
.edda-subcat-layout .sidebar-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--edda-text);
  margin: 0 0 0.25rem;
}
.edda-subcat-layout > .main {
  padding: 1.35rem 1.5rem;
  background-color: var(--edda-surface);
  min-width: 0;
}
.edda-subcat-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.edda-subcat-item {
  appearance: none;
  width: 100%;
  text-align: left;
  background-color: var(--edda-surface);
  border: 1px solid var(--edda-border);
  border-radius: 0.375rem;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  cursor: pointer;
  color: var(--edda-text);
  transition: background-color 150ms ease, border-color 150ms ease;
}
.edda-subcat-item:hover {
  border-color: var(--edda-border-strong);
  background-color: #FFFFFF;
}
.edda-subcat-item.is-active {
  background-color: var(--edda-primary-soft);
  border-color: var(--edda-primary);
}
.edda-subcat-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}
.edda-subcat-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--edda-text);
  line-height: 1.35;
}
.edda-subcat-item.is-active .edda-subcat-item-title {
  color: var(--edda-primary);
}
.edda-subcat-item-score {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--edda-text);
  white-space: nowrap;
  flex-shrink: 0;
}
.edda-subcat-item-meter {
  display: block;
  height: 5px;
}
.edda-subcat-item-meter > .edda-meter-fill {
  display: block;
}
.edda-subcat-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.79rem;
  color: var(--edda-muted);
}
.edda-subcat-item-meta .edda-status-label {
  font-size: 0.79rem;
}
.edda-subcat-panels {
  min-width: 0;
}
.edda-subcat-panel[hidden] {
  display: none !important;
}
.edda-subcat-panel-header {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--edda-border);
}
.edda-subcat-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.edda-subcat-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--edda-text);
  margin: 0;
  line-height: 1.35;
}
.edda-subcat-panel-score {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--edda-text);
  white-space: nowrap;
  flex-shrink: 0;
}
.edda-subcat-panel-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--edda-muted);
}
.edda-subcat-panel-body {
  font-size: 0.94rem;
}
.edda-subcat-panel-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--edda-muted);
}

/* Lokale Vorschau-Nachbildung des bslib::layout_sidebar (identische Geometrie) */
.edda-preview-sidebar-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}
.edda-preview-sidebar-pane {
  background-color: var(--edda-canvas);
  border-right: 1px solid var(--edda-border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.edda-preview-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.edda-preview-sidebar-toggle {
  display: none;
}
.edda-preview-sidebar-main {
  padding: 1.35rem 1.5rem;
  background-color: var(--edda-surface);
  min-width: 0;
}

.edda-chart-data-details { margin-top: 0.85rem; border-top: 1px solid var(--edda-border); padding-top: 0.65rem; }
.edda-chart-data-details > summary { cursor: pointer; font-size: 0.84rem; font-weight: 600; color: var(--edda-primary); display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.35rem; border-radius: 0.25rem; user-select: none; }
.edda-chart-data-details > summary:hover { text-decoration: underline; }
.edda-chart-data-table-wrap { margin-top: 0.65rem; max-height: 360px; overflow: auto; border-radius: 0.25rem; }
.edda-chart-data-table-wrap:focus-visible { outline: 2px solid var(--edda-focus); outline-offset: 2px; }
.edda-data-table { font-size: 0.84rem; margin-bottom: 0; font-variant-numeric: tabular-nums; }
.edda-data-table thead th { position: sticky; top: 0; z-index: 1; }
.edda-data-table th { font-weight: 600; color: var(--edda-text); background-color: var(--edda-canvas); white-space: nowrap; }
.edda-data-table tbody th { font-weight: 500; background-color: transparent; white-space: normal; }
.edda-data-table td, .edda-data-table th { padding: 0.38rem 0.55rem; border-color: var(--edda-border); vertical-align: middle; }
.edda-data-table .edda-num-col { text-align: right; white-space: nowrap; }

/* Reliabilitäts-Modal: Kurz-Einordnung, EDDA-Grafik und barrierefreie Tabelle */
.edda-rel-panel { display: flex; flex-direction: column; gap: 0.9rem; }
.edda-rel-summary { background-color: var(--edda-canvas); border: 1px solid var(--edda-border); border-radius: 0.375rem; padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.edda-rel-kpi-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.6rem; font-size: 0.9rem; color: var(--edda-muted); }
.edda-rel-kpi-label { font-weight: 500; color: var(--edda-muted); }
.edda-rel-kpi-value { font-size: 1.05rem; font-weight: 700; color: var(--edda-text); }
.edda-rel-desc { margin: 0; font-size: 0.88rem; color: var(--edda-muted); line-height: 1.5; max-width: 72ch; }
.edda-rel-stack-list { display: flex; flex-direction: column; gap: 0.65rem; }
.edda-rel-stack-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 0.75rem; }
.edda-rel-stack-label { font-size: 0.86rem; font-weight: 600; color: var(--edda-text); text-align: right; }
.edda-rel-stack-track { display: flex; height: 26px; border-radius: 0.25rem; overflow: hidden; background-color: var(--edda-surface-subtle); }
.edda-rel-seg { display: flex; align-items: center; justify-content: center; font-size: 0.76rem; font-weight: 600; white-space: nowrap; overflow: hidden; }
.edda-rel-seg-iota { background-color: #004B87; color: #FFFFFF; }
.edda-rel-seg-case2 { background-color: #D55E00; color: #FFFFFF; }
.edda-rel-seg-case3 { background-color: #94A3B8; color: #0F172A; }
.edda-legend-vertical { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; margin-top: 0.75rem; padding-top: 0.6rem; border-top: 1px solid var(--edda-border); width: 100%; }
.edda-legend-horizontal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; margin-top: 0.75rem; padding-top: 0.6rem; border-top: 1px solid var(--edda-border); }
.edda-legend-item { display: inline-flex; align-items: flex-start; gap: 0.45rem; font-size: 0.82rem; color: var(--edda-muted); line-height: 1.35; min-width: 0; }
.edda-legend-horizontal .edda-legend-item { white-space: nowrap; }
.edda-legend-vertical .edda-legend-item { display: flex; width: 100%; }
.edda-legend-label { min-width: 0; overflow-wrap: break-word; }
.edda-legend-swatch { width: 11px; height: 11px; border-radius: 2px; flex-shrink: 0; margin-top: 0.22rem; }

/* KI-Dokumentation: Kennzahlen-Kopf, strukturierte Unter-Tabs & barrierefreie Tabellen */
.edda-aidoc-page { display: flex; flex-direction: column; gap: 0.35rem; }
.edda-aidoc-intro { margin: -0.5rem 0 0.85rem; font-size: 0.94rem; color: var(--edda-muted); max-width: 74ch; line-height: 1.55; }
.edda-aidoc-filter-bar { justify-content: space-between; }
.edda-aidoc-filter-meta { margin: 0; font-size: 0.85rem; color: var(--edda-muted); white-space: nowrap; }
.edda-aidoc-kpi-card { background-color: var(--edda-surface); border: 1px solid var(--edda-border); border-radius: 0.5rem; padding: 1.25rem 1.4rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03); }
.edda-aidoc-kpi-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.6rem 1.25rem; margin-bottom: 0.45rem; }
.edda-aidoc-kpi-title-wrap { min-width: 0; }
.edda-aidoc-kpi-title { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.015em; color: var(--edda-text); margin: 0; line-height: 1.3; }
.edda-aidoc-kpi-meta { margin: 0.2rem 0 0; font-size: 0.84rem; color: var(--edda-muted); }
.edda-aidoc-kpi-desc { margin: 0 0 1rem; font-size: 0.9rem; color: var(--edda-muted); max-width: 74ch; line-height: 1.5; }
.edda-aidoc-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; padding-top: 0.95rem; border-top: 1px solid var(--edda-border); }
.edda-aidoc-kpi-item { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.edda-aidoc-kpi-label { font-size: 0.8rem; font-weight: 600; color: var(--edda-muted); line-height: 1.3; }
.edda-aidoc-kpi-value { font-size: 1.28rem; font-weight: 700; color: var(--edda-text); line-height: 1.25; }
.edda-aidoc-kpi-hint { font-size: 0.78rem; color: var(--edda-muted); line-height: 1.35; }
.edda-aidoc-workspace { background-color: var(--edda-surface); border: 1px solid var(--edda-border); border-radius: 0.5rem; padding: 1.1rem 1.4rem 1.4rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03); }
.edda-aidoc-workspace .nav-underline { border-bottom: 1px solid var(--edda-border); margin-bottom: 1.2rem; gap: 0.35rem 1.15rem; }
.edda-aidoc-workspace .nav-underline .nav-link { padding: 0.55rem 0.25rem; font-size: 0.93rem; font-weight: 500; color: var(--edda-muted); white-space: nowrap; }
.edda-aidoc-workspace .nav-underline .nav-link.active { color: var(--edda-primary); border-bottom-color: var(--edda-primary); font-weight: 600; }
.edda-aidoc-section { padding: 0; }
.edda-aidoc-section + .edda-aidoc-section { margin-top: 1.5rem; padding-top: 1.35rem; border-top: 1px solid var(--edda-border); }
.edda-aidoc-section-title { font-size: 1.02rem; font-weight: 700; color: var(--edda-text); margin: 0 0 0.45rem; line-height: 1.35; }
.edda-aidoc-hint { font-size: 0.89rem; color: var(--edda-muted); margin: 0 0 0.9rem; max-width: 74ch; line-height: 1.55; }
.edda-aidoc-prose { font-size: 0.94rem; color: var(--edda-text); max-width: 74ch; line-height: 1.6; }
.edda-aidoc-prose p:last-child { margin-bottom: 0; }
.edda-aidoc-empty-msg { margin: 0; font-size: 0.9rem; color: var(--edda-muted); }
.edda-aidoc-plot-layout .bslib-sidebar-layout { border: 1px solid var(--edda-border); border-radius: 0.375rem; background-color: var(--edda-surface); }
.edda-aidoc-plot-layout .bslib-sidebar-layout > .sidebar { background-color: var(--edda-canvas); border-left: 1px solid var(--edda-border); }
.edda-aidoc-plot-layout .shiny-image-output { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.edda-aidoc-plot-layout .shiny-image-output img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; margin: 0 auto; }
.edda-aidoc-loading-card, .edda-aidoc-error-card { margin-bottom: 1rem; }
.edda-aidoc-status-box { padding: 0.25rem 0; }
.edda-aidoc-measures-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; margin-top: 1rem; }
.edda-aidoc-overview-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1rem; }
.edda-aidoc-preview-placeholder { background-color: var(--edda-canvas); border: 1px dashed var(--edda-border-strong); border-radius: 0.375rem; padding: 1.15rem 1.25rem; font-size: 0.9rem; color: var(--edda-muted); line-height: 1.55; }

/* 3-Step ARIA Upload Wizard */
.edda-wizard { display: flex; flex-direction: column; gap: 1rem; }
.edda-wizard-stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--edda-border); }
.edda-wizard-step-btn { display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.65rem; border: 1px solid var(--edda-border); border-radius: 0.375rem; background-color: var(--edda-canvas); color: var(--edda-muted); font-size: 0.875rem; font-weight: 500; text-align: left; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease; }
.edda-wizard-step-btn:disabled { cursor: not-allowed; opacity: 0.65; }
.edda-wizard-step-num { width: 22px; height: 22px; border-radius: 999px; background-color: var(--edda-border); color: var(--edda-muted); display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.edda-wizard-step-btn.is-active { background-color: var(--edda-primary-soft); border-color: var(--edda-primary); color: var(--edda-primary); font-weight: 600; }
.edda-wizard-step-btn.is-active .edda-wizard-step-num { background-color: var(--edda-primary); color: #FFFFFF; }
.edda-wizard-step-btn.is-done { background-color: var(--edda-surface); border-color: #A7F3D0; color: var(--edda-text); }
.edda-wizard-step-btn.is-done .edda-wizard-step-num { background-color: var(--edda-success); color: #FFFFFF; }
.edda-wizard-pane { display: none; }
.edda-wizard-pane.is-active { display: block; }
.edda-wizard-terms-box { max-height: 280px; overflow-y: auto; padding: 1rem 1.15rem; background-color: var(--edda-canvas); border: 1px solid var(--edda-border); border-radius: 0.375rem; font-size: 0.92rem; }
.edda-wizard-section-title { font-size: 1rem; font-weight: 600; color: var(--edda-text); margin: 0 0 0.35rem; }
.edda-wizard-help { font-size: 0.88rem; color: var(--edda-muted); margin-bottom: 0.85rem; max-width: 72ch; }
.edda-wizard-optional { margin-top: 1rem; padding: 0.85rem 1rem; background-color: var(--edda-canvas); border: 1px solid var(--edda-border); border-radius: 0.375rem; }
.edda-wizard-optional > summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--edda-primary); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.edda-wizard-optional > summary::-webkit-details-marker { display: none; }
.edda-wizard-optional-body { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--edda-border); }
.edda-wizard-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.edda-wizard-cat-box { padding: 0.9rem 1rem; background-color: var(--edda-canvas); border: 1px solid var(--edda-border); border-radius: 0.375rem; margin: 0; min-width: 0; }
.edda-wizard-cat-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem; margin-bottom: 0.6rem; }
.edda-wizard-cat-title { font-size: 0.93rem; font-weight: 600; color: var(--edda-text); margin: 0; padding: 0; width: auto; float: none; }
.edda-wizard-summary { padding: 0.7rem 0.95rem; background-color: var(--edda-canvas); border: 1px solid var(--edda-border); border-radius: 0.375rem; font-size: 0.875rem; color: var(--edda-text); margin-bottom: 0.75rem; }
.edda-wizard-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; padding-top: 0.9rem; margin-top: 0.5rem; border-top: 1px solid var(--edda-border); }
.edda-wizard-footer-right { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.edda-select-controls { display: flex; gap: 0.35rem; }
.edda-inline-alert { background-color: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; border-radius: 0.375rem; padding: 0.75rem 1rem; margin-bottom: 0.85rem; font-size: 0.9rem; }

/* Inkrementelle Nachanalyse (ohne Pill-Badges) */
.edda-inc-modal { display: flex; flex-direction: column; gap: 0.6rem; }
.edda-inc-all-done { font-size: 0.86rem; color: var(--edda-muted); }
.edda-inc-done-block { margin-top: 0.75rem; padding-top: 0.65rem; border-top: 1px dashed var(--edda-border); }
.edda-inc-done-heading { display: block; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--edda-muted); margin-bottom: 0.35rem; }
.edda-inc-done-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.28rem; }
.edda-inc-done-list > li { display: flex; align-items: baseline; gap: 0.45rem; font-size: 0.86rem; color: var(--edda-muted); line-height: 1.4; }
.edda-inc-done-icon { color: var(--edda-success); font-size: 0.78rem; flex-shrink: 0; }

/* Modals, Notifications & Prose */
.modal-dialog { max-width: 860px; margin: 0.75rem auto 1.5rem; }
#shiny-modal:has(.edda-wizard) .modal-dialog,
.edda-upload-modal-dialog,
#uploadWizardModal .modal-dialog {
  margin-top: 0.5rem !important;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
#shiny-modal:has(.edda-wizard) .modal-body,
.edda-upload-modal-dialog .modal-body,
#uploadWizardModal .modal-body {
  max-height: calc(100vh - 5.5rem);
  overflow-y: auto;
}
.modal-content { border: 1px solid var(--edda-border); border-radius: 0.5rem; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12); }
.shiny-notification { border: 1px solid var(--edda-border); border-radius: 0.5rem; }
.card-body p, .modal-body p { max-width: 75ch; }
.card-body img { max-width: 100%; height: auto; }

/* ProgressModal Carousel (calm GPU bar + live phase + WCAG 2.2.2 controls) */
.edda-progress-status { position: relative; background-color: var(--edda-canvas); border: 1px solid var(--edda-border); border-radius: 0.5rem; padding: 0.8rem 1rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.edda-progress-status .recalculating,
.edda-progress-status .shiny-text-output.recalculating { opacity: 1 !important; transition: none !important; }
.edda-progress-status-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; }
.edda-progress-status-right { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; flex-shrink: 0; font-size: 0.8rem; color: var(--edda-muted); }
.edda-progress-context { font-size: 0.86rem; color: var(--edda-muted); font-weight: 500; }
.edda-progress-live-label { font-size: 0.75rem; font-weight: 600; color: var(--edda-primary); letter-spacing: 0.02em; }
.edda-progress-phase-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.35rem 1rem; }
.edda-progress-phase-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.55rem; min-width: 0; }
.edda-progress-phase { font-size: 0.93rem; font-weight: 600; color: var(--edda-text); }
.edda-progress-detail { font-size: 0.85rem; color: var(--edda-muted); }
.edda-progress-metrics { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--edda-text); white-space: nowrap; flex-shrink: 0; }
.edda-progress-elapsed { color: var(--edda-muted); font-weight: 500; }
.edda-progress-track { position: relative; height: 7px; border-radius: 999px; background-color: #E2E8F0; overflow: hidden; contain: paint; }
.edda-progress-bar { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--edda-primary), var(--edda-accent)); will-change: transform; backface-visibility: hidden; transform-origin: left center; transform: scaleX(0.02); }
.edda-progress-bar.is-determinate { width: 100%; transform-origin: left center; animation: none; transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes edda-progress-slide { 0% { transform: translate3d(-105%, 0, 0); } 100% { transform: translate3d(268%, 0, 0); } }
.edda-progress-modal-footer { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.65rem 1rem; }
.edda-progress-cancel-hint { font-size: 0.82rem; color: var(--edda-muted); }
.edda-progress-cancel-btn { white-space: nowrap; flex-shrink: 0; }
.edda-progress-carousel { background-color: var(--edda-surface); border: 1px solid var(--edda-border); border-radius: 0.5rem; overflow: hidden; }
.edda-progress-carousel:focus-visible { outline: 2px solid var(--edda-accent); outline-offset: 2px; }
.edda-progress-stage { padding: 1.25rem; }
.edda-progress-slide { display: none; }
.edda-progress-slide.is-active { display: block; }
.edda-progress-text { min-height: 4.5rem; margin-bottom: 1rem; color: var(--edda-text); font-size: 0.96rem; line-height: 1.55; }
.edda-progress-text p:last-child { margin-bottom: 0; }
.edda-progress-media { height: 260px; display: flex; align-items: center; justify-content: center; background-color: var(--edda-canvas); border: 1px solid var(--edda-border); border-radius: 0.375rem; padding: 0.75rem; overflow: hidden; }
.edda-progress-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.edda-progress-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1.25rem; border-top: 1px solid var(--edda-border); background-color: var(--edda-canvas); }
.edda-progress-meta { display: flex; align-items: center; gap: 0.5rem; min-width: 120px; }
.edda-progress-counter { font-size: 0.85rem; font-weight: 600; color: var(--edda-muted); }
.edda-progress-paused-badge { font-size: 0.75rem; font-weight: 600; color: var(--edda-primary); opacity: 0; transition: opacity 150ms ease; }
.edda-progress-carousel.is-paused .edda-progress-paused-badge { opacity: 1; }
.edda-progress-dots { display: flex; align-items: center; gap: 0.45rem; }
.edda-progress-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background-color: #CBD5E1; cursor: pointer; transition: background-color 150ms ease, transform 150ms ease; }
.edda-progress-dot:hover { background-color: #94A3B8; }
.edda-progress-dot.is-active { background-color: var(--edda-primary); transform: scale(1.2); }
.edda-progress-dot:focus-visible { outline: 2px solid var(--edda-accent); outline-offset: 2px; }
.edda-progress-nav { display: flex; align-items: center; gap: 0.45rem; }
.edda-progress-empty { padding: 1.25rem; border: 1px solid var(--edda-border); border-radius: 0.5rem; background-color: var(--edda-surface); }

/* Flicker-free shinycssloaders::withSpinner (150ms fade-in delay) */
.shiny-spinner-output-container .load-container { opacity: 0; animation: edda-spinner-fade-in 180ms ease-out 150ms forwards; backface-visibility: hidden; }
.shiny-spinner-output-container .loader { will-change: transform; backface-visibility: hidden; }
@keyframes edda-spinner-fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 991.98px) {
  .edda-home-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2rem 2rem 1.85rem;
  }
  .edda-home-hero-brand {
    order: -1;
  }
}

/* ---- Text-Reflektoren (Aufgaben-, Bedingungsfeldanalyse- & Planungs-Reflektor) ---- */
.edda-task-checker-page {
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 2.5rem;
}
.edda-task-checker-page.is-longtext {
  max-width: 1360px;
}
.edda-tc-page-header {
  margin-bottom: 1.25rem;
}
.edda-tc-page-subtitle {
  font-size: 0.96rem;
  color: var(--edda-muted);
  max-width: 72ch;
}
.edda-tc-consent-card {
  max-width: 920px;
  margin: 0 auto 2rem;
  background-color: var(--edda-surface);
  border: 1px solid var(--edda-border);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.edda-tc-consent-header {
  padding: 1.45rem 1.75rem 1.15rem;
  background-color: var(--edda-surface);
}
.edda-tc-consent-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--edda-text);
  margin: 0;
  line-height: 1.3;
  text-wrap: balance;
}
.edda-tc-consent-lead {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--edda-muted);
  margin-top: 0.4rem;
  max-width: 68ch;
}
.edda-tc-consent-summary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background-color: var(--edda-canvas);
  border-top: 1px solid var(--edda-border);
  border-bottom: 1px solid var(--edda-border);
}
.edda-tc-consent-summary-item {
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.edda-tc-consent-summary-item + .edda-tc-consent-summary-item {
  border-left: 1px solid var(--edda-border);
}
.edda-tc-consent-summary-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--edda-text);
  line-height: 1.3;
}
.edda-tc-consent-summary-text {
  font-size: 0.86rem;
  line-height: 1.48;
  color: var(--edda-muted);
}
.edda-tc-terms-body {
  padding: 1.2rem 1.75rem 1.35rem;
  background-color: var(--edda-surface);
}
.edda-tc-terms-scroll {
  max-height: clamp(360px, 52vh, 560px);
  min-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 1.45rem 1.75rem;
  background-color: var(--edda-canvas);
  border: 1px solid var(--edda-border-strong);
  border-radius: 0.375rem;
}
.edda-tc-terms-scroll:focus-visible {
  outline: 3px solid var(--edda-focus);
  outline-offset: 2px;
}
.edda-tc-terms-prose {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--edda-text);
  overflow-wrap: anywhere;
}
.edda-tc-terms-prose > :first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.edda-tc-terms-prose > :last-child {
  margin-bottom: 0;
}
.edda-tc-terms-prose h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--edda-text);
  margin: 1.55rem 0 0.55rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--edda-border);
  line-height: 1.35;
}
.edda-tc-terms-prose h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--edda-text);
  margin: 1.1rem 0 0.4rem;
  line-height: 1.35;
}
.edda-tc-terms-prose p {
  margin: 0 0 0.85rem;
}
.edda-tc-terms-prose ul,
.edda-tc-terms-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}
.edda-tc-terms-prose li {
  margin-bottom: 0.42rem;
}
.edda-tc-terms-prose li:last-child {
  margin-bottom: 0;
}
.edda-tc-terms-prose a {
  color: var(--edda-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.edda-tc-terms-prose a:hover,
.edda-tc-terms-prose a:focus-visible {
  color: var(--edda-primary-hover);
}
.edda-tc-terms-prose a:focus-visible {
  outline: 2px solid var(--edda-focus);
  outline-offset: 2px;
  border-radius: 2px;
}
.edda-tc-consent-footer {
  background-color: var(--edda-surface-subtle);
  border-top: 1px solid var(--edda-border);
  padding: 1.1rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
}
.edda-tc-consent-note {
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--edda-muted);
  max-width: 52ch;
}
.edda-tc-consent-cta {
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.edda-tc-section-title:focus {
  outline: none;
}
.edda-tc-section-title:focus-visible {
  outline: 2px solid var(--edda-focus);
  outline-offset: 3px;
  border-radius: 0.25rem;
}
.edda-tc-first-run-hint {
  background-color: var(--edda-primary-soft);
  border: 1px solid #BFDBFE;
  border-radius: 0.5rem;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.15rem;
}
.edda-tc-first-run-hint-text {
  font-size: 0.91rem;
  line-height: 1.55;
  color: var(--edda-text);
  max-width: 78ch;
}
.edda-wizard-first-run-hint {
  margin-top: 0.85rem;
  margin-bottom: 0;
}
.edda-tc-layout-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  background-color: var(--edda-surface);
  border: 1px solid var(--edda-border);
  border-radius: 0.5rem;
}
.edda-tc-layout-meta {
  min-width: 0;
}
.edda-tc-layout-hint {
  font-size: 0.84rem;
  color: var(--edda-muted);
  line-height: 1.4;
}
.edda-tc-layout-controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.edda-tc-layout-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--edda-text);
}
.edda-tc-layout-toggle .edda-tc-seg-btn.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.edda-tc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}
.edda-tc-workbench.is-longtext.is-layout-stacked .edda-tc-grid {
  grid-template-columns: 1fr;
}
.edda-tc-workbench.is-longtext.is-layout-stacked .edda-tc-criteria-box .shiny-options-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.edda-tc-workbench.is-longtext.is-layout-split .edda-tc-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.edda-tc-workbench.is-longtext.is-layout-split .edda-tc-results-panel {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
.edda-tc-panel {
  background-color: var(--edda-surface);
  border: 1px solid var(--edda-border);
  border-radius: 0.5rem;
  padding: 1.25rem 1.35rem;
}
.edda-tc-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--edda-border);
}
.edda-tc-section-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--edda-text);
  margin: 0;
  line-height: 1.3;
}
.edda-tc-editor-panel .form-group {
  margin-bottom: 0.85rem;
}
.edda-tc-editor-panel textarea.form-control {
  font-size: 0.94rem;
  line-height: 1.55;
  min-height: 185px;
}
.edda-tc-workbench.is-longtext .edda-tc-editor-panel textarea.form-control {
  min-height: 360px;
  max-height: 75vh;
  font-size: 0.96rem;
  line-height: 1.65;
}
.edda-tc-counter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-top: -0.45rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--edda-muted);
}
.edda-tc-counter-val.is-near-limit {
  color: var(--edda-warning);
  font-weight: 600;
}
.edda-tc-counter-val.is-over-limit {
  color: var(--edda-danger);
  font-weight: 700;
}
.edda-tc-counter-hint {
  color: var(--edda-muted);
}
.edda-tc-criteria-box {
  padding-top: 0.85rem;
  border-top: 1px solid var(--edda-border);
  margin-bottom: 1rem;
}
.edda-tc-criteria-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.edda-tc-criteria-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--edda-text);
}
.edda-tc-criteria-box .shiny-options-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 0.85rem;
}
.edda-tc-criteria-box .checkbox {
  margin: 0;
}
.edda-tc-criteria-box .checkbox label {
  font-size: 0.86rem;
  color: var(--edda-text);
  line-height: 1.35;
}
.edda-tc-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.edda-tc-progress-box {
  padding: 0.75rem 0.9rem;
}
.edda-tc-progress-cancel-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}
.edda-tc-history-bar {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--edda-border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.edda-tc-history-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--edda-muted);
}
.edda-tc-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.edda-tc-hist-btn {
  border: 1px solid var(--edda-border-strong);
  background-color: var(--edda-canvas);
  color: var(--edda-text);
  border-radius: 0.375rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.edda-tc-hist-btn:hover {
  border-color: var(--edda-primary);
  color: var(--edda-primary);
}
.edda-tc-hist-btn.is-active {
  background-color: var(--edda-primary);
  border-color: var(--edda-primary);
  color: #FFFFFF;
}
.edda-tc-empty-state {
  padding: 2rem 1rem;
  text-align: left;
  color: var(--edda-muted);
}
.edda-tc-empty-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--edda-text);
  margin: 0 0 0.45rem;
}
.edda-tc-empty-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 58ch;
}
.edda-tc-run-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.83rem;
  color: var(--edda-muted);
  margin-bottom: 0.75rem;
}
.edda-tc-run-title {
  font-weight: 600;
  color: var(--edda-text);
}
.edda-tc-compare-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.65rem 0.85rem;
  background-color: var(--edda-canvas);
  border: 1px solid var(--edda-border);
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}
.edda-tc-compare-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--edda-muted);
}
.edda-tc-compare-label {
  font-weight: 600;
  color: var(--edda-text);
}
.edda-tc-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  background-color: var(--edda-surface-subtle);
  border-radius: 0.375rem;
  flex-shrink: 0;
}
.edda-tc-seg-btn.btn {
  border: 0;
  background: transparent;
  color: var(--edda-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 0.28rem;
  line-height: 1.2;
  white-space: nowrap;
}
.edda-tc-seg-btn.btn:hover {
  color: var(--edda-text);
}
.edda-tc-seg-btn.btn.is-active {
  background-color: var(--edda-surface);
  color: var(--edda-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.edda-tc-groups-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.edda-tc-group-block {
  border-top: 1px solid var(--edda-border);
  padding-top: 0.85rem;
}
.edda-tc-group-block:first-child {
  border-top: 0;
  padding-top: 0;
}
.edda-tc-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.5rem;
}
.edda-tc-group-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--edda-text);
  margin: 0;
}
.edda-tc-group-score {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.edda-tc-group-pct {
  font-weight: 700;
  color: var(--edda-primary);
}
.edda-tc-sep {
  color: var(--edda-muted);
}
.edda-tc-rel-legend {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--edda-muted);
  margin: -0.35rem 0 0.9rem;
  padding: 0.45rem 0.7rem;
  background-color: #F8FAFC;
  border: 1px solid var(--edda-border);
  border-radius: 0.35rem;
}
.edda-tc-rel-legend strong {
  color: var(--edda-text);
  font-weight: 600;
}
.edda-tc-table {
  font-size: 0.85rem;
  border-color: var(--edda-border);
  border-collapse: separate;
  border-spacing: 0;
}
.edda-tc-table thead tr.edda-tc-thead-groups th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.5rem;
  border-bottom: 1px solid var(--edda-border);
}
.edda-tc-th-group-task {
  color: var(--edda-muted);
  --bs-table-bg: transparent;
  background-color: transparent;
  text-align: left;
}
.edda-tc-th-group-rel {
  color: var(--edda-primary);
  --bs-table-bg: #EDF2F7;
  background-color: #EDF2F7;
  border-left: 2px solid #CBD5E1;
  text-align: right;
}
.edda-tc-table thead tr.edda-tc-thead-cols th {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--edda-muted);
  border-bottom: 1px solid var(--edda-border-strong);
  padding: 0.42rem 0.5rem;
  white-space: nowrap;
}
.edda-tc-table thead tr.edda-tc-thead-cols th.edda-tc-col-rel {
  color: var(--edda-text);
  --bs-table-bg: #F1F5F9;
  background-color: #F1F5F9;
  border-left: 2px solid #CBD5E1;
  padding-left: 0.75rem;
}
.edda-tc-table tbody th,
.edda-tc-table tbody td {
  padding: 0.48rem 0.5rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--edda-border);
}
.edda-tc-col-name {
  font-weight: 500;
  color: var(--edda-text);
  text-align: left;
}
.edda-tc-col-num {
  text-align: right;
  white-space: nowrap;
  color: var(--edda-text);
}
.edda-tc-col-delta {
  text-align: right;
  white-space: nowrap;
  padding-right: 0.7rem;
}
.edda-tc-col-rel {
  text-align: right;
  white-space: nowrap;
  border-left: 2px solid #CBD5E1;
  --bs-table-bg: #F8FAFC;
  background-color: #F8FAFC;
  padding-left: 0.75rem;
}
.edda-tc-table > tbody > tr.edda-tc-row.is-changed-up > th,
.edda-tc-table > tbody > tr.edda-tc-row.is-changed-up > td {
  --bs-table-bg: rgba(4, 120, 87, 0.06);
  background-color: rgba(4, 120, 87, 0.06);
}
.edda-tc-table > tbody > tr.edda-tc-row.is-changed-down > th,
.edda-tc-table > tbody > tr.edda-tc-row.is-changed-down > td {
  --bs-table-bg: rgba(185, 28, 28, 0.055);
  background-color: rgba(185, 28, 28, 0.055);
}
.edda-tc-table > tbody > tr.edda-tc-row.is-changed-subtle > th,
.edda-tc-table > tbody > tr.edda-tc-row.is-changed-subtle > td {
  --bs-table-bg: rgba(2, 132, 199, 0.045);
  background-color: rgba(2, 132, 199, 0.045);
}
/* Reliabilitätsspalte bleibt als feste Modelleigenschaft stets ruhig und optisch abgesetzt */
.edda-tc-table > tbody > tr.edda-tc-row > td.edda-tc-col-rel {
  --bs-table-bg: #F8FAFC;
  background-color: #F8FAFC;
}
.edda-tc-rel-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  font-size: 0.81rem;
  line-height: 1.2;
}
.edda-tc-rel-val {
  font-weight: 700;
  color: var(--edda-text);
  min-width: 2.35rem;
  text-align: right;
}
.edda-tc-rel-tier {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.edda-tc-rel-cell.is-success .edda-tc-rel-tier {
  color: var(--edda-success);
}
.edda-tc-rel-cell.is-warning .edda-tc-rel-tier {
  color: var(--edda-warning);
}
.edda-tc-rel-cell.is-danger .edda-tc-rel-tier {
  color: var(--edda-danger);
}
.edda-tc-rel-cell.is-muted .edda-tc-rel-val,
.edda-tc-rel-cell.is-muted .edda-tc-rel-tier {
  color: var(--edda-muted);
  font-weight: 500;
}
.edda-tc-delta {
  font-weight: 600;
  font-size: 0.81rem;
}
.edda-tc-delta.is-up { color: var(--edda-success); }
.edda-tc-delta.is-down { color: var(--edda-danger); }
.edda-tc-delta.is-flat { color: var(--edda-muted); font-weight: 500; }
.edda-tc-delta.is-new { color: var(--edda-accent); }
.edda-tc-delta.is-none { color: var(--edda-muted); font-weight: 400; }
.edda-tc-no-diff {
  padding: 1.15rem 0.5rem;
  font-size: 0.88rem;
  color: var(--edda-muted);
}
.edda-tc-saved-sub {
  font-size: 0.84rem;
  color: var(--edda-muted);
  margin-top: 0.2rem;
}
.edda-tc-saved-header-right {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.edda-tc-saved-count {
  font-size: 0.82rem;
  color: var(--edda-muted);
}
.edda-tc-saved-empty {
  font-size: 0.88rem;
  color: var(--edda-muted);
  padding: 0.5rem 0;
}
.edda-tc-saved-list {
  display: flex;
  flex-direction: column;
}
.edda-tc-saved-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--edda-border);
}
.edda-tc-saved-item:first-child {
  padding-top: 0.25rem;
}
.edda-tc-saved-item:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}
.edda-tc-saved-item.is-reference {
  background-color: var(--edda-primary-soft);
  margin: 0 -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: 0.375rem;
}
.edda-tc-saved-main {
  flex: 1 1 360px;
  min-width: 0;
}
.edda-tc-saved-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}
.edda-tc-saved-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--edda-text);
  margin: 0;
}
.edda-tc-ref-flag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--edda-primary);
}
.edda-tc-saved-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--edda-muted);
  margin: 0.2rem 0 0.3rem;
}
.edda-tc-saved-preview {
  font-size: 0.86rem;
  color: var(--edda-muted);
  line-height: 1.45;
}
.edda-tc-saved-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

@media (max-width: 1120px) {
  .edda-tc-workbench.is-longtext.is-layout-split .edda-tc-grid {
    grid-template-columns: 1fr;
  }
  .edda-tc-workbench.is-longtext.is-layout-split .edda-tc-results-panel {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 992px) {
  .edda-tc-grid {
    grid-template-columns: 1fr;
  }
  .edda-tc-workbench.is-longtext.is-layout-stacked .edda-tc-criteria-box .shiny-options-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .edda-home-reflectors-grid {
    grid-template-columns: 1fr;
  }
  .edda-home-logo-stage {
    min-height: 220px;
    padding: 1.75rem 1.5rem;
  }
  .edda-home-logo-stage::before {
    width: 220px;
    height: 220px;
  }
  .edda-home-brand-logo {
    width: 180px;
  }
  .edda-team-grid,
  .edda-preview-team-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .edda-tc-panel { padding: 1.05rem; }
  .edda-tc-layout-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0.9rem;
  }
  .edda-tc-layout-controls {
    justify-content: space-between;
  }
  .edda-tc-workbench.is-longtext .edda-tc-editor-panel textarea.form-control {
    min-height: 260px;
  }
  .edda-tc-first-run-hint { padding: 0.8rem 0.95rem; }
  .edda-tc-consent-header { padding: 1.15rem 1.15rem 0.95rem; }
  .edda-tc-consent-summary { grid-template-columns: 1fr; }
  .edda-tc-consent-summary-item { padding: 0.75rem 1.15rem; }
  .edda-tc-consent-summary-item + .edda-tc-consent-summary-item {
    border-left: 0;
    border-top: 1px solid var(--edda-border);
  }
  .edda-tc-terms-body { padding: 0.95rem 1.15rem 1.05rem; }
  .edda-tc-terms-scroll {
    max-height: 55vh;
    min-height: 240px;
    padding: 1.05rem 1.1rem;
  }
  .edda-tc-consent-footer {
    padding: 1rem 1.15rem;
    flex-direction: column;
    align-items: stretch;
  }
  .edda-tc-consent-cta { width: 100%; }
  .edda-tc-criteria-box .shiny-options-group,
  .edda-tc-workbench.is-longtext.is-layout-stacked .edda-tc-criteria-box .shiny-options-group { grid-template-columns: 1fr; }
  .edda-home-hero-grid { padding: 1.45rem 1.25rem 1.5rem; gap: 1.35rem; }
  .edda-home-logo-stage { min-height: 185px; padding: 1.35rem 1rem; }
  .edda-home-logo-stage::before { width: 180px; height: 180px; }
  .edda-home-brand-logo { width: 148px; }
  .edda-home-partners { padding: 1rem 1.25rem; }
  .edda-home-section { padding: 1.4rem 1.25rem 1.6rem; }
  .edda-home-feature-primary { padding: 1.2rem 1.15rem; gap: 1rem; }
  .edda-home-feature-primary-action,
  .edda-home-feature-companion-action { width: 100%; }
  .edda-home-feature-primary-action .edda-home-cta-btn,
  .edda-home-companion-btn { width: 100%; justify-content: center; }
  .edda-home-feature-companion { padding: 1.1rem 1.15rem; gap: 0.9rem; }
  .edda-pub-entry { grid-template-columns: 1.95rem minmax(0, 1fr); gap: 0.5rem; padding: 0.8rem 0; }
  .edda-aidoc-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edda-aidoc-measures-grid { grid-template-columns: 1fr; }
  .edda-aidoc-workspace { padding: 0.95rem 1rem 1.15rem; }
  .edda-aidoc-filter-meta { white-space: normal; }
  .edda-aidoc-workspace .nav-underline .nav-link { min-height: 44px; display: inline-flex; align-items: center; }
  .edda-impressum-grid,
  .edda-privacy-sections { grid-template-columns: 1fr; }
  .edda-impressum-card { padding: 1.15rem 1.2rem; }
  .edda-video-facade { padding: 1.15rem 1.2rem; gap: 0.5rem; }
  .edda-video-facade-icon { font-size: 2rem; }
  .edda-news-card > .card-body { padding: 1.25rem 1.15rem 1.4rem; }
  .edda-news-card > .card-body > h2,
  .edda-news-card > .card-body > ul,
  .edda-news-card > .card-body > p { padding-left: 1.6rem; }
  .edda-wizard-stepper, .edda-wizard-cat-grid { grid-template-columns: 1fr; }
  .edda-analysis-page-navbar .nav-link, .edda-subcat-item { min-height: 44px; }
  .edda-analysis-navbar-meta { white-space: normal; padding: 0.35rem 0; display: block; }
  .edda-subcat-layout > .main, .edda-preview-sidebar-main { padding: 1rem 1.1rem; }
  .edda-preview-sidebar-layout { grid-template-columns: 1fr; }
  .edda-preview-sidebar-pane { border-right: 0; border-bottom: 1px solid var(--edda-border); }
  .edda-preview-sidebar-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
  .edda-preview-sidebar-pane.is-mobile-collapsed .edda-subcat-list { display: none; }
  .btn, .edda-popover-trigger, .edda-wizard-step-btn { min-height: 44px; }
  .edda-popover-trigger { min-width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .edda-tc-terms-scroll { scroll-behavior: auto; }
  .navbar .nav-link, .btn, .edda-popover-trigger, .edda-overview-card,
  .edda-meter-fill, .edda-wizard-step-btn, .edda-progress-dot, .edda-progress-paused-badge,
  .edda-subcat-item, .edda-progress-bar.is-determinate, .edda-tc-hist-btn,
  .edda-home-cta-btn, .edda-home-brand-logo, .edda-home-reflector-card,
  .edda-home-feature-companion {
    transition-duration: 0.01ms !important;
  }
  .edda-home-cta-btn:hover,
  .edda-home-logo-stage:hover .edda-home-brand-logo {
    transform: none;
  }
  .edda-progress-bar:not(.is-determinate) { animation: edda-progress-slide 3.4s ease-in-out infinite; }
}