body {
    margin: 0;
}

/* ============================================================
   Barrierefreiheit (BITV 2.0 / WCAG 2.1 AA) – globale Regeln
   ============================================================ */

/* A11y (H-02, WCAG 2.4.1): Skip-Link – außerhalb des Viewports, bei Tastaturfokus sichtbar */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    background: #1b5166;
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 4px 0;
    text-decoration: none;
    font-size: 14px;
}
.skip-link:focus,
.skip-link:focus-visible {
    left: 0;
}

/* A11y (H-02): Skip-Link-Ziel – kein eigener Fokusrahmen für den main-Container nötig */
main#main-content {
    display: block;
}

/* A11y (H-03, WCAG 2.4.7): deutlich sichtbarer Fokus-Indikator für Tastaturnutzer.
   :focus-visible greift nur bei Tastaturfokus, nicht bei Mausklick. */
:focus-visible {
    outline: 2px solid #1b5166;
    outline-offset: 2px;
}

/* A11y (H-07): nur für Screenreader sichtbarer Text (z.B. Formular-Überschriften in Dialogen) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* A11y (G-11): verstärkte Darstellung für Nutzer mit Kontrast-Präferenz */
@media (prefers-contrast: more) {
    :focus-visible {
        outline-width: 3px;
        outline-color: #000;
    }
    .skip-link {
        background: #000;
        color: #fff;
    }
    .search-input::placeholder {
        color: #444;
    }
}

/* A11y (WCAG 2.3.3): Animationen/Übergänge für Nutzer mit Bewegungsempfindlichkeit reduzieren */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.viewer-container-full {
    height: 100vh;
    float: left;
    width: 100%;
}

.viewer-container-with-menu {
    height: 100vh;
    float: right;
    width: calc(100% - 200pt);
}

.trv-report-viewer, #wrv1 {
    width: 100%;
    height: 1000px;
    padding-right: 50px;
}

.trv-report-viewer-A, #wrv1A {
    width: 100%;
    height: 90vh;
}

.trv-report-viewer-B, #wrv1B {
    position: relative;
    width: 1200px;
    height: 600px;
}

.main {
    width: 100%;
    overflow-x: hidden
}

.main-nav.navbar {
    position: fixed;
    left: 0;
    top: 0;
    padding: 0;
    background: #F1F1F1;
    color: #333;
    float: left;
    width: 200pt;
}

#list-heading {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#list-heading::after {
	content: "";
	display: block;
	left: 50%;
	width: 80%;
	height: 1px;
	background-color: rgba(0, 0, 0, 0.11);
	transform: translateX(-50%);
	color: #0c5f78;
	position: absolute;
	top: 50px;
}

#reportsList {
    padding: .5rem 0;
    height: calc(100vh - 50px - 2em);
    width: 100%;
    overflow: auto;
    flex-wrap: nowrap;
}

.reportList_item {
    cursor: pointer;
    color: #2b2b2b;
    padding: 0 1rem;
    font-size: 15px;
    height: 34px;
    display: flex;
    align-items: center;
    transition-duration: .2s;
    flex-shrink: 0;
}

.reportList_item > span {
	white-space: nowrap;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.reportList_item:hover {
	color: white;
	background-color: #1b5166;
}

.reportList_item.active:hover {
	color: white;
	background-color: #1b5166;
}

.reportList_item.active {
	color: white;
	background-color: #3b7186;
}

input.search-input {
  width: 190px !important;
  height: 35px !important;
  box-sizing: border-box;
  padding: 6px 8px;
  font-size: 14px;
  display: inline-block;   /* verhindert, dass 100%-Regeln greifen */
}

.rz-column input.search-input,
input.search-input {
  width: 190px !important; /* nur temporär zum Testen */
}

.search-input::placeholder {
  color: #767676; /* A11y (G-03, WCAG 1.4.3): war #888 (~3,5:1); #767676 erreicht 4,5:1 auf Weiß */
  opacity: 1; /* bei manchen Browsern erforderlich */
}

/* Info-Icon der Feld-Tooltips (Components/Shared/FieldTooltip.razor).
   A11y (WCAG 1.4.11 Non-Text Contrast ≥ 3:1): Die Radzen-Info-Farbe (--rz-info: #2cc8c8)
   erreicht auf Weiß nur ~1,9:1. #30445f (Projekt-Navy) erreicht ~9,9:1. */
.field-info-btn .rzi {
  color: #30445f;
}

.field-info-btn:hover .rzi,
.field-info-btn:focus-visible .rzi {
  color: #1d2a3d; /* dunkler bei Hover/Fokus */
}

/* Klickziel (WCAG 2.5.8 Target Size, Minimum 24×24 CSS-px) */
.field-info-btn {
  min-width: 1.75rem;
  min-height: 1.75rem;
}

/* MUSS-Felder: weißes „i" auf rotem Kreis. Kennzeichen kommt aus dem Kriterium MSKI
   (TcerTooltipService.IstMussKriterium – Text enthält „muss").
   Muss NACH den Regeln oben stehen: .field-info-btn:hover .rzi hat dieselbe Spezifität.
   Kontrast: Weiß auf #c62828 ≈ 5,6:1 (WCAG 1.4.3 ≥ 4,5:1);
   roter Kreis auf weißem Formularhintergrund ≈ 5,6:1 (WCAG 1.4.11 ≥ 3:1). */
.field-info-btn--muss .rzi {
  color: #fff;
  background-color: #c62828;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  line-height: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
}

.field-info-btn--muss:hover .rzi,
.field-info-btn--muss:focus-visible .rzi {
  color: #fff;
  background-color: #a01b1b;
}

