:root {

  --bg: #f7f7f8;
  --surface-alt: #f7f7f8;
  --surface-input: #fbfaf7;
  --ink: #16181c;
  --ink-2: #4a4d54;
  --ink-3: #6c6f77;
  --muted: #6c6f77;
  --line: rgba(0, 0, 0, 0.1);
  --line-soft: rgba(0, 0, 0, 0.06);
  --accent: #c80082;
  --accent-hover: #c80082;
  --dark: #16181c;
  --lila: #5a328c;
  --magenta: #c80082;
  --auf-akzent: #fff;
  --verlauf-primaer: linear-gradient(90deg, var(--lila), var(--magenta));
  --magenta-schein: rgba(200, 0, 130, 0.3);
  --magenta-schein-stark: rgba(200, 0, 130, 0.45);
  --schatten-schwebend: 0 12px 30px rgba(0, 0, 0, 0.08);
  --quelle-manuell-bg: #e7e0f7;
  --quelle-manuell-fg: #4b2f9e;

  --surface: rgba(255, 255, 255, 0.7);
  --card: rgba(255, 255, 255, 0.7);

  --popover: #f7f7f8;
  --nav-bg: rgba(255, 255, 255, 0.6);
  --nav-item-active-bg: rgba(0, 0, 0, 0.03);
  --radius-sm: 6px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-full: 999px;
  --status-success-fg: #1f6d3f;
  --status-success-bg: #e2efe7;
  --status-success-border: #bcd8c7;
  --status-warning-fg: #8a5a00;
  --status-warning-bg: #fbeed4;
  --status-warning-border: #e8d3a4;
  --status-danger-fg: #9b1b30;
  --status-danger-bg: #fae2e5;
  --status-danger-border: #e8c2c8;
  --status-neutral-fg: #666666;
  --status-neutral-bg: #eeeeee;
  --status-info-fg: #1c4d8a;
  --status-info-bg: #e1ecfb;
  --status-info-border: #bcd3ef;

  --status-success-accent: #1fa166;
  --status-warning-accent: #c98c0d;
  --status-danger-accent: #c9263d;
  --status-neutral-accent: #8c9194;

  --status-success-glow: rgba(41, 217, 140, 0.7);
  --status-warning-glow: rgba(242, 184, 51, 0.7);
  --status-danger-glow: rgba(242, 77, 102, 0.7);
  --status-neutral-glow: rgba(140, 148, 148, 0.7);
  --bg-gradient-stops: #009bd7 0%, #2d50a0 28.04%, #5a328c 53%, #c80082 68.99%, #e64132 100%;

  --bg-gradient-stops-cool: #009bd7 0%, #2d50a0 50%, #5a328c 100%;
  --bg-gradient-stops-warm: #5a328c 0%, #c80082 50%, #e64132 100%;

  --bg-blob-opacity-primary: 0.07;
  --bg-blob-opacity-secondary: 0.09;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1012;
    --surface-alt: #24262a;
    --surface-input: #24262a;
    --ink: #fdfdfc;
    --ink-2: #f4f3f0;
    --ink-3: #9aa0a8;
    --muted: #9aa0a8;
    --line: rgba(255, 255, 255, 0.1);
    --line-soft: rgba(255, 255, 255, 0.09);
    --accent: #f240b4;
    --accent-hover: #f240b4;
    --surface: rgba(255, 255, 255, 0.05);
    --card: rgba(255, 255, 255, 0.05);
    --popover: #24262a;
    --nav-bg: rgba(255, 255, 255, 0.05);
    --nav-item-active-bg: rgba(255, 255, 255, 0.09);
    --status-success-fg: #59f2b3;
    --status-success-bg: rgba(41, 217, 140, 0.15);
    --status-warning-fg: #ffd166;
    --status-warning-bg: rgba(242, 184, 51, 0.15);
    --status-danger-fg: #ff8c99;
    --status-danger-bg: rgba(242, 77, 102, 0.15);
    --status-neutral-fg: #bfc7c7;
    --status-neutral-bg: rgba(255, 255, 255, 0.09);
    --status-info-fg: #8fc4ff;
    --status-info-bg: rgba(61, 139, 242, 0.15);
    --status-success-accent: #29d98c;
    --status-warning-accent: #f2b833;
    --status-danger-accent: #f24d66;
    --status-neutral-accent: #8c9494;
    --bg-blob-opacity-primary: 0.15;
    --bg-blob-opacity-secondary: 0.19;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1012;
  --surface-alt: #24262a;
  --surface-input: #24262a;
  --ink: #fdfdfc;
  --ink-2: #f4f3f0;
  --ink-3: #9aa0a8;
  --muted: #9aa0a8;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.09);
  --accent: #f240b4;
  --accent-hover: #f240b4;
  --surface: rgba(255, 255, 255, 0.05);
  --card: rgba(255, 255, 255, 0.05);
  --popover: #24262a;
  --nav-bg: rgba(255, 255, 255, 0.05);
  --nav-item-active-bg: rgba(255, 255, 255, 0.09);
  --status-success-fg: #59f2b3;
  --status-success-bg: rgba(41, 217, 140, 0.15);
  --status-warning-fg: #ffd166;
  --status-warning-bg: rgba(242, 184, 51, 0.15);
  --status-danger-fg: #ff8c99;
  --status-danger-bg: rgba(242, 77, 102, 0.15);
  --status-neutral-fg: #bfc7c7;
  --status-neutral-bg: rgba(255, 255, 255, 0.09);
  --status-info-fg: #8fc4ff;
  --status-info-bg: rgba(61, 139, 242, 0.15);
  --status-success-accent: #29d98c;
  --status-warning-accent: #f2b833;
  --status-danger-accent: #f24d66;
  --status-neutral-accent: #8c9494;
  --bg-blob-opacity-primary: 0.15;
  --bg-blob-opacity-secondary: 0.19;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  text-wrap: pretty;
  overflow-wrap: break-word;
  isolation: isolate;
}

.bg-ambient-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 150;
  background: linear-gradient(90deg, var(--bg-gradient-stops));
  pointer-events: none;
}

.bg-ambient-blob {
  position: fixed;
  width: 1400px;
  height: 1400px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(657px);
  pointer-events: none;
}

.bg-ambient-blob--primary {
  top: 48px;
  right: 48px;
  background: linear-gradient(90deg, var(--bg-gradient-stops-warm));
  opacity: var(--bg-blob-opacity-primary);
  -webkit-mask-image: radial-gradient(circle at top right, #000 0, #000 600px, transparent 1000px);
  mask-image: radial-gradient(circle at top right, #000 0, #000 600px, transparent 1000px);
  animation: bg-ambient-drift-1 50s ease-in-out infinite alternate;
}
.bg-ambient-blob--secondary {
  bottom: 48px;
  left: 48px;
  background: linear-gradient(90deg, var(--bg-gradient-stops-cool));
  opacity: var(--bg-blob-opacity-secondary);
  -webkit-mask-image: radial-gradient(
    circle at bottom left,
    #000 0,
    #000 600px,
    transparent 1000px
  );
  mask-image: radial-gradient(circle at bottom left, #000 0, #000 600px, transparent 1000px);
  animation: bg-ambient-drift-2 65s ease-in-out infinite alternate;
}
@keyframes bg-ambient-drift-1 {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-4%, 3%);
  }
}
@keyframes bg-ambient-drift-2 {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(3%, -4%);
  }
}
@media (max-width: 860px) {
  .bg-ambient-blob {
    width: 170vw;
    height: 170vw;
  }
  .bg-ambient-blob--primary {
    top: 24px;
    right: 24px;
  }
  .bg-ambient-blob--secondary {
    bottom: 24px;
    left: 24px;
  }
}

a:where(:not(.btn, .nav-item, .gesehen-badge)) {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  text-decoration: none;
}
a:where(:not(.btn, .nav-item, .gesehen-badge)):hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}
.app-shell {
  display: flex;
  align-items: flex-start;
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  width: 240px;
  flex: none;
  background: var(--nav-bg);
  border-right: 1px solid var(--line-soft);
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  z-index: 100;
}
.sidebar-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem 1.375rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-soft);
}
.sidebar-brand-id {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-logo {
  height: 24px;
  width: auto;
  flex: none;
  color: var(--ink);
}
.sidebar-brand-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.beta-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--status-neutral-bg);
  color: var(--status-neutral-fg);
  white-space: nowrap;
  flex: none;
}
.overline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-section-label {
  padding: 1.125rem 0.625rem 0.4rem;
}
.sidebar-project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.125rem 0.625rem 0;
  margin-top: 0.25rem;
  border-top: 1px solid var(--line-soft);
}
.sidebar-meta-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.sidebar-meta-value {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}
a.sidebar-meta-value {
  border-bottom: none;
}
a.sidebar-meta-value:hover {
  color: var(--accent);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5625rem 0.625rem;
  border-radius: var(--radius-lg);
  font-size: 0.84375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: none;
  margin-bottom: 0.125rem;
  font-family: "IBM Plex Sans", sans-serif;
}
.nav-item .nav-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.nav-item:hover {
  background: var(--nav-item-active-bg);
}
.nav-item.active {
  background: var(--nav-item-active-bg);
  color: var(--ink);
  font-weight: 600;
}
.nav-item.active .nav-dot {
  background: var(--accent);
}
.nav-spacer {
  flex: 1;
}
.theme-switch {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-top: 0.75rem;
  background: var(--nav-item-active-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.theme-switch-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 0.4rem 0;
  border-radius: var(--radius-sm);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.theme-switch-btn:hover {
  color: var(--ink);
}
.theme-switch-btn.active {
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.sidebar-user {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.625rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.sidebar-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.sidebar-user-row .sidebar-meta-value {
  min-width: 0;
  overflow-wrap: anywhere;
}
.sidebar-user form {
  margin: 0;
  flex: none;
}
.sidebar-logout-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.sidebar-logout-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
@media (max-width: 860px) {
  .app-shell {
    flex-direction: column;
  }

  .app-content {
    width: 100%;
  }

  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    overflow: visible;
    gap: 0.5rem 0.25rem;
    padding: 0.75rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
  }
  .sidebar-brand {
    border-bottom: none;
    padding: 0 0.75rem 0 0;
    margin-bottom: 0;
  }
  .nav-section-label {
    display: none;
  }
  .sidebar-project-meta {
    display: none;
  }
  .beta-badge {
    display: none;
  }
  .nav-spacer {
    display: none;
  }
  .theme-switch {
    margin-top: 0;
    flex: none;
    width: auto;
  }
  .theme-switch-btn {
    flex: none;
    padding: 0.4rem 0.75rem;
  }
  .sidebar-user {
    margin: 0 0 0 auto;
    padding: 0;
    border-top: none;
    flex: 0 1 auto;
    min-width: 0;
  }
  .sidebar-user > .sidebar-user-info {
    display: none;
  }
}
header.hero {
  padding: 3.5rem 2.5rem 3.25rem;
}
header.hero .eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}
header.hero h1 {
  margin: 0 0 1rem 0;
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
}
header.hero p.lede {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
  margin: 0;
}
header.hero .actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.8125rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.84375rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif;
}


.btn-primary {
  position: relative;
  z-index: 0;
  border: none;
  background: var(--magenta);
  color: var(--auf-akzent);
  box-shadow: 0 6px 20px -4px var(--magenta-schein);
  transition: box-shadow 0.3s ease;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--verlauf-primaer);
  opacity: 1;
  transition: opacity 0.35s ease;
}
.btn-primary:hover {
  box-shadow: 0 8px 28px -4px var(--magenta-schein-stark);
}
.btn-primary:hover::before {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .btn-primary::before {
    transition: none;
  }
  .bg-ambient-blob {
    animation: none;
  }
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  border-radius: var(--radius-lg);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-gefahr {
  background: transparent;
  color: var(--status-danger-fg);
  border-color: var(--status-danger-border);
}
.btn-gefahr:hover {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-fg);
}
.btn-gefahr-voll {
  background: var(--status-danger-fg);
  color: var(--bg);
  border-color: var(--status-danger-fg);
}
.btn-gefahr-voll:hover {
  box-shadow: 0 6px 20px -4px var(--status-danger-glow);
}
.btn-klein {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
}

.pdf-meldung:empty {
  padding: 0;
  border: 0;
}
.pdf-meldung:not(:empty) {
  width: fit-content;
  max-width: 64ch;
  margin-top: 0.75rem;
}
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="date"],
select,
textarea {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-input);
  color: var(--ink);
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 3rem;
}
input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

@media (max-width: 860px) {
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="url"],
  input[type="number"],
  input[type="password"],
  input[type="date"],
  select,
  textarea {
    font-size: 1rem;
  }
}
input:disabled,
select:disabled,
textarea:disabled {
  background: var(--line-soft);
  color: var(--muted);
  cursor: not-allowed;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.875rem;
  margin-bottom: 2rem;
}
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 2.5rem 6rem;
}

main.center-shell {
  max-width: none;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}
.center-card {
  width: 100%;
  max-width: 25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem 1.875rem;
  box-shadow: var(--schatten-schwebend);
}
.center-card h1 {
  margin: 0;
  font-size: 1.5625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.center-card-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.center-card-logo {
  height: 28px;
  width: auto;
  flex: none;
  color: var(--ink);
}
.center-card-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.center-card .btn {
  text-align: center;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
}
.form-stack .btn {
  width: 100%;
}
.form-error {
  margin: 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--status-danger-fg);
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
  border-radius: var(--radius-sm);
}
.form-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.statusmeldung {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.8125rem;
}
.statusmeldung:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.statusmeldung:empty {
  position: absolute;
  padding: 0;
  border: 0;
}
h2 {
  font-size: 1.5625rem;
  margin: 3.25rem 0 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-family: "IBM Plex Sans", sans-serif;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}
th,
td {
  text-align: left;
  padding: 0.9375rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--surface-alt);
  font-family: "IBM Plex Mono", monospace;
}

.tabelle-scroll {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow-x: auto;
}
.modal-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.badge {
  display: inline-block;
  padding: 0.3125rem 0.6875rem;
  border-radius: var(--radius-full);
  font-size: 0.71875rem;
  font-weight: 600;
  white-space: nowrap;
  font-family: "IBM Plex Mono", monospace;
}
.sev-kritisch {
  background: var(--status-danger-bg);
  color: var(--status-danger-fg);
}
.sev-mittel {
  background: var(--status-warning-bg);
  color: var(--status-warning-fg);
}
.sev-gering {
  background: var(--status-neutral-bg);
  color: var(--status-neutral-fg);
}
.sev-none {
  background: var(--status-neutral-bg);
  color: var(--muted);
}
.status-ja {
  background: var(--status-success-bg);
  color: var(--status-success-fg);
  border: 1px solid var(--status-success-border);
}
.status-teilweise {
  background: var(--status-warning-bg);
  color: var(--status-warning-fg);
  border: 1px solid var(--status-warning-border);
}
.status-nein {
  background: var(--status-danger-bg);
  color: var(--status-danger-fg);
  border: 1px solid var(--status-danger-border);
}
.status-running {
  background: var(--status-info-bg);
  color: var(--status-info-fg);
  border: 1px solid var(--status-info-border);
}
.modal-box {
  background: var(--popover);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
dialog.modal-box {
  margin: auto;
  width: calc(100% - 3rem);
  border: none;
  color: var(--ink);
}
dialog.modal-box::backdrop {
  background: rgba(14, 15, 17, 0.55);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.modal-box h2 {
  margin: 0 0 1rem;
}
.modal-aktionen {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.modal-aktionen .btn {
  width: auto;
}

.gefahr-zahlen {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  background: var(--status-danger-bg);
  border-radius: var(--radius-sm);
}
.gefahr-zahlen dt {
  color: var(--ink-2);
}
.gefahr-zahlen dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.upload-zone {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  text-align: center;
  font-size: 0.8125rem;
  cursor: pointer;
  color: var(--ink-2);
}
.upload-zone:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.upload-zone-active {
  border-color: var(--accent);
  background: var(--line-soft);
}
.upload-browse-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.setup-banner {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--status-warning-fg);
  background: var(--status-warning-bg);
  border-bottom: 1px solid var(--status-warning-border);
  padding: 1.1rem 2rem 1.2rem;
}
.setup-banner .sb-head {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}
.setup-banner .sb-sub {
  margin: 0 0 0.9rem;
}
.setup-banner ol {
  margin: 0;
  padding-left: 1.3rem;
}
.setup-banner li {
  margin-bottom: 0.55rem;
}
.setup-banner kbd {
  background: var(--surface-input);
  border: 1px solid var(--status-warning-border);
  border-bottom-width: 2px;
  border-radius: 0.2rem;
  padding: 0.05rem 0.35rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85em;
  color: var(--status-warning-fg);
  white-space: nowrap;
}
.setup-banner code {
  background: var(--line-soft);
  padding: 0.1rem 0.3rem;
  border-radius: 0.125rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9em;
}
.sb-cmd {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0.35rem 0 0.1rem;
  max-width: 100%;
}
.sb-cmd code {
  flex: 1;
  background: var(--surface-input);
  border: 1px solid var(--status-warning-border);
  border-right: none;
  border-radius: 0.2rem 0 0 0.2rem;
  padding: 0.45rem 0.6rem;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--ink);
}
.sb-copy {
  border: 1px solid var(--status-warning-border);
  border-radius: 0 0.2rem 0.2rem 0;
  background: var(--status-warning-bg);
  color: var(--status-warning-fg);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  padding: 0 0.8rem;
  white-space: nowrap;
}
.sb-copy:hover {
  border-color: var(--status-warning-fg);
}
.sb-folge {
  display: block;
  margin-top: 0.25rem;
}
.setup-banner .sb-note {
  margin: 0.9rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--status-warning-border);
}
.status-neutral {
  background: var(--status-neutral-bg);
  color: var(--status-neutral-fg);
}
.kurzfazit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}
.hinweis {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}


.filter-bar {
  position: sticky;
  top: 1.5rem;
  z-index: 40;
  background: var(--popover);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.75rem;
  margin: 0 2.5rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-start;
  box-shadow: var(--schatten-schwebend);
}

@media (max-width: 860px) {
  .filter-bar {
    position: static;
  }
}
.version-banner {
  font-size: 0.8rem;
  color: var(--ink-2);
  background: var(--status-warning-bg);
  border-left: 3px solid var(--status-warning-border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0 0 0.5rem;
}
.filter-bar .version-banner {
  flex-basis: 100%;
}
header.hero .version-banner {
  margin: 0 0 1.5rem;
}
.freigabe-hinweis {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  font-size: 0.8rem;
  color: var(--ink-2);
  background: var(--status-info-bg);
  border-left: 3px solid var(--status-info-border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0 0 1.5rem;
}
.freigabe-hinweis-offen {
  background: var(--status-warning-bg);
  border-left-color: var(--status-warning-border);
}
.freigabe-hinweis a {
  font-weight: 600;
  white-space: nowrap;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.filter-group-label {
  font-weight: 600;
  white-space: nowrap;
}
.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.4375rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  line-height: 1;
  cursor: pointer;
  background: var(--card);
  color: var(--ink-2);
  user-select: none;
  white-space: nowrap;
  transition:
    background 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease;
}
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--muted);
}

.chip:has(input:checked) {
  background: var(--verlauf-primaer) border-box;
  color: var(--auf-akzent);
  border-color: transparent;
  box-shadow: 0 4px 12px -2px var(--magenta-schein);
}
.chip:has(input:focus-visible),
.toggle-switch:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
  cursor: pointer;
}
.toggle-switch {
  position: relative;
  width: 2.25rem;
  height: 1.25rem;
  border-radius: var(--radius-full);
  background: var(--line);
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.toggle-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.toggle-switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--auf-akzent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
.toggle-switch:has(input:checked) {
  background: var(--accent);
}
.toggle-switch:has(input:checked) .knob {
  transform: translateX(1rem);
}
.filter-summary {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}
.filter-summary .filter-group-label {
  text-align: right;
}
.filter-summary-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
#clear-filters {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  white-space: nowrap;
}
#clear-filters:hover {
  border-color: var(--ink);
}
#visible-count {
  font-size: 0.84375rem;
  color: var(--ink-2);
  font-family: "IBM Plex Mono", monospace;
  white-space: nowrap;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.125rem 1.25rem;
  margin-bottom: 0.9rem;
}
.card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.card .card-head h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.card .card-id {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
  font-family: "IBM Plex Mono", monospace;
}
.color-swatch {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  vertical-align: -0.05em;
  margin-right: 0.3em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.card .quelle-tool {
  display: inline-block;
  font-size: 0.6875rem;
  padding: 0.3rem 0.5rem;
  background: var(--status-success-bg);
  color: var(--status-success-fg);
  border-radius: 3px;
  margin-top: 0.25rem;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
}
.thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}
.thumbs img {
  height: 64px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  display: block;
}
.finding-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.finding-empfehlung {
  line-height: 1.55;
}
.finding-hinweis {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
}
.finding-hinweis.annahme {
  color: var(--status-warning-fg);
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
}
.finding-hinweis.messwert {
  color: var(--status-success-fg);
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
}
.finding-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  margin-bottom: 0.9rem;
}
.finding-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.befund-card {
  padding: 1.25rem 1.5rem;
}
.befund-card > .finding-belegsatz {
  font-size: 1rem;
  line-height: 1.6;
}
.befund-belege {
  border-top: 1px solid var(--line-soft);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}
.befund-belege > summary {
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  list-style: none;
  padding: 0.15rem 0;
}
.befund-belege > summary::-webkit-details-marker {
  display: none;
}
.befund-belege > summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.12s ease;
}
.befund-belege[open] > summary::before {
  transform: rotate(90deg);
}
.befund-belege > summary:hover {
  color: var(--ink-2);
}

.befund-belege .finding-card {
  background: transparent;
  border: none;
  border-left: 2px solid var(--line);
  border-radius: 0;
  margin: 0.75rem 0 0;
  padding: 0.5rem 0 0.5rem 1rem;
}
.befund-belege .finding-title {
  font-size: 0.9375rem;
}
.befund-gruppe {
  display: block;
  margin: 0 0 0.9rem;
}
details.befund-gruppe {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.25rem;
  margin-top: 2.25rem;
}
details.befund-gruppe > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.35rem 0;
  margin-bottom: 0.35rem;
}
details.befund-gruppe > summary::-webkit-details-marker {
  display: none;
}
details.befund-gruppe > summary::before {
  content: "▸";
  display: inline-block;
  color: var(--muted);
  transition: transform 0.12s ease;
}
details.befund-gruppe[open] > summary::before {
  transform: rotate(90deg);
}
.befund-gruppe-titel {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}
.befund-gruppe-zahl {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--nav-item-active-bg);
  border-radius: var(--radius-full);
  padding: 0.1rem 0.5rem;
}
.befund-gruppe-hinweis {
  font-size: 0.8125rem;
  color: var(--ink-3);
}
details.befund-gruppe > summary:hover .befund-gruppe-titel {
  color: var(--accent);
}
.befund-belege-edit {
  margin: 1rem 0 0.5rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.75rem;
}
.befund-belege-edit > summary {
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  list-style: none;
}
.befund-belege-edit > summary::-webkit-details-marker {
  display: none;
}
.befund-belege-edit > summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.12s ease;
}
.befund-belege-edit[open] > summary::before {
  transform: rotate(90deg);
}
.befund-belege-edit > summary:hover {
  color: var(--ink-2);
}
.befund-belege-edit .card {
  background: transparent;
  border: none;
  border-left: 2px solid var(--line);
  border-radius: 0;
  margin: 0.75rem 0 0;
}
.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex: none;
  background: var(--status-neutral-accent);
  box-shadow: 0 0 8px 1px var(--status-neutral-glow);
}
.finding-card.status-border-ja .status-dot {
  background: var(--status-success-accent);
  box-shadow: 0 0 8px 1px var(--status-success-glow);
}
.finding-card.status-border-teilweise .status-dot {
  background: var(--status-warning-accent);
  box-shadow: 0 0 8px 1px var(--status-warning-glow);
}
.finding-card.status-border-nein .status-dot {
  background: var(--status-danger-accent);
  box-shadow: 0 0 8px 1px var(--status-danger-glow);
}
.finding-card.status-border-neutral .status-dot {
  background: var(--status-neutral-accent);
  box-shadow: 0 0 8px 1px var(--status-neutral-glow);
}
.finding-id-code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  flex: none;
}
.finding-title-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.finding-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  flex: 1;
  min-width: 12rem;
}
.finding-confirmed-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5625rem;
  border-radius: var(--radius-full);
  background: var(--status-success-bg);
  color: var(--status-success-fg);
  border: 1px solid var(--status-success-border);
  white-space: nowrap;
}

.gesehen-badge {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.25rem 0.5625rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent);
  white-space: nowrap;
  text-decoration: none;
}
.gesehen-neu {
  background: var(--verlauf-primaer) border-box;
  color: var(--auf-akzent);
  border-color: transparent;
}
.gesehen-geaendert {
  background: transparent;
  color: var(--accent);
}
.gesehen-erledigt {
  background: var(--status-neutral-bg);
  color: var(--status-neutral-fg);
  border-color: transparent;
}
a.gesehen-badge:hover {
  box-shadow: 0 4px 12px -2px var(--magenta-schein);
}
.gesehen-hinweis {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
}
.gesehen-hinweis.ist-erledigt {
  background: var(--surface-alt);
  border-left-color: var(--line);
}
.gesehen-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
}
.gesehen-text {
  flex: 1;
  min-width: 12rem;
}
.gesehen-btn {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-input);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.gesehen-btn:hover {
  border-color: var(--ink);
}
.gesehen-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.gesehen-aenderungen > summary {
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
}
.gesehen-aenderungen > summary:hover {
  color: var(--ink-2);
}
.gesehen-aenderungen ol {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.gesehen-aenderungen ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.gesehen-wer {
  color: var(--ink);
}
.gesehen-wer-meta {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}
.gesehen-feld {
  font-weight: 600;
  color: var(--ink);
}
.gesehen-lang > summary {
  cursor: pointer;
}
.gesehen-lang p {
  margin: 0.3rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.gesehen-lang .gesehen-vorher {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--line);
}
.gesehen-weitere {
  margin: 0.4rem 0 0;
  color: var(--muted);
}
.gesehen-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0 0 1.5rem;
}
.gesehen-leiste.ist-erledigt {
  background: var(--surface-alt);
  border-left-color: var(--line);
}
.gesehen-leiste-text {
  flex: 1;
  min-width: 14rem;
}
.gesehen-leiste a {
  font-weight: 600;
  white-space: nowrap;
}
.gesehen-leiste[hidden],
.gesehen-badge[hidden],
.gesehen-btn[hidden] {
  display: none;
}
.finding-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
}
.finding-meta-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.finding-meta-group.grow {
  flex: 1;
  min-width: min(17.5rem, 100%);
}
.finding-meta-value {
  font-size: 0.78125rem;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.45;
}
.finding-crit-row {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  flex-wrap: wrap;
}
.badge-compact {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}
.finding-info-btn {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.finding-info-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.finding-info-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.finding-edit-link {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.finding-edit-link svg {
  width: 0.625rem;
  height: 0.625rem;
}
.finding-edit-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
@keyframes finding-highlight {
  0%,
  100% {
    box-shadow: none;
  }
  15%,
  80% {
    box-shadow: 0 0 0 3px var(--accent);
  }
}
.card.highlight-target {
  animation: finding-highlight 2.4s ease;
}
.finding-info-panel {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-left: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.6875rem 0.875rem;
  flex-direction: column;
  gap: 0.3rem;
}
.finding-info-panel:not([hidden]) {
  display: flex;
}
.finding-info-panel .label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.59375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.finding-info-panel .text {
  font-size: 0.78125rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.finding-device-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.625rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--muted);
  white-space: nowrap;
}
.finding-device-chip svg {
  width: 0.75rem;
  height: 0.75rem;
  flex: none;
}
.finding-shots {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.finding-shot-btn {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: zoom-in;
  overflow: hidden;
  line-height: 0;
}
.finding-shot-btn:hover {
  border-color: var(--ink);
}
.finding-shot-btn img {
  display: block;
  width: auto;
  height: 8.25rem;
  max-width: 100%;
  object-fit: contain;
  background: var(--bg);
}
dialog.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(14, 15, 17, 0.9);
}
dialog.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
dialog.lightbox::backdrop {
  background: transparent;
}
.lightbox img {
  max-width: 92vw;
  max-height: 74vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--auf-akzent);
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lightbox-close {
  top: 1.2rem;
  right: 1.5rem;
  font-size: 1.8rem;
  line-height: 1;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}
.lightbox-prev {
  left: 1.5rem;
}
.lightbox-next {
  right: 1.5rem;
}
.lightbox-counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #c9c4bc;
  font-size: 0.84375rem;
  font-family: "IBM Plex Mono", monospace;
}
.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-xl);
}
.kernaussagen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.kernaussagen-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.kernaussagen-card .kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kernaussagen-card .title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.kernaussagen-card .text {
  font-size: 0.84375rem;
  line-height: 1.6;
  color: var(--ink-3);
}

.findings-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow-x: auto;
}
.findings-table-header {
  display: grid;
  grid-template-columns: 74px 1.5fr 1fr 1.4fr 100px 128px;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.findings-table-row {
  display: grid;
  grid-template-columns: 74px 1.5fr 1fr 1.4fr 100px 128px;
  gap: 1rem;
  padding: 0.9375rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.findings-table-header,
.findings-table-row {
  min-width: 56rem;
}
.findings-table-row:last-child {
  border-bottom: none;
}
.findings-table-row .code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.findings-table-row .befund {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.findings-table-row .befund-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}
.findings-table-row .befund-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
}
.findings-table-row .dimension {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.findings-table-row .dim-code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.71875rem;
  font-weight: 600;
  color: var(--ink-2);
}
.findings-table-row .dim-name {
  font-size: 0.71875rem;
  line-height: 1.45;
  color: var(--muted);
}
.findings-table-row .device {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.71875rem;
  color: var(--ink-2);
}
