/* ============================================================
   LinQovery — Design System
   CI-Farben und Typografie gemäß Corporate Identity
   ============================================================ */

/* ------------------------------------------------------------
   Lokale Fonts — WOFF2-Dateien unter /static/fonts/ ablegen.
   Fallback auf System-Stack bis Dateien vorhanden.
   ------------------------------------------------------------ */
@font-face {
  font-family: "Raleway";
  src: local("Raleway Bold"),
       url("/static/fonts/raleway-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: local("Raleway ExtraBold"),
       url("/static/fonts/raleway-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: local("Inter Regular"),
       url("/static/fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: local("Inter SemiBold"),
       url("/static/fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: local("JetBrains Mono Regular"),
       url("/static/fonts/jetbrainsmono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* CI-Farbpalette */
  --color-primary:       #1B3F6E;   /* Ozeanblau — Vertrauen */
  --color-primary-dark:  #142f54;
  --color-primary-light: #dce8f5;
  --color-secondary:     #00A8C6;   /* Cyan — Technologie */
  --color-accent:        #F5A623;   /* Amber — Energie */
  --color-success:       #2ECC71;   /* Smaragdgrün */
  --color-warning:       #E67E22;   /* Sanftes Orange */
  --color-danger:        #E53E3E;   /* Ruhiges Rot */
  --color-info:          #00A8C6;
  --color-bg:            #F4F7FB;   /* Eisweiß */
  --color-card:          #ffffff;
  --color-border:        #dde3ec;
  --color-text:          #2D3748;   /* Anthrazit */
  --color-text-muted:    #718096;
  --color-sidebar:       #1B3F6E;
  --color-sidebar-hover: #254d82;
  /* --- Funktionale Ableitungen & neutrale Töne (CSS-Enthexung) --- */
  --color-white:        #ffffff;
  --color-danger-dark:  #dc2626;
  --color-accent-dark:  #d98e1a;
  --gray-100: #f1f5f9;
  --gray-150: #f0f0f0;
  --gray-200: #e2e8f0;
  --gray-300: #d1d5db;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  /* Flash-/Alert-Paare (Hintergrund + Text) */
  --flash-success-bg: #eafaf1;
  --flash-success-fg: #1a6b3c;
  --flash-danger-bg:  #fef0f0;
  --flash-danger-fg:  #922020;
  --flash-info-bg:    #e6f7fb;
  --flash-info-fg:    #0e6b82;
  --flash-warning-bg: #fef5e7;
  --flash-warning-fg: #8a4a08;
  /* Badges */
  --badge-danger-bg:  #fef2f2;
  --badge-success-bg: #ecfdf5;
  --badge-warning-bg: #fffbeb;
  --badge-warning-fg: #b45309;
  /* Einzeltöne (Sterne, Business-Badge, Sessions-Tabelle) */
  --star-filled:       #f59e0b;
  --badge-green-bg:    #f0fdf4;
  --badge-green-fg:    #166534;
  --border-subtle:     #eeeeee;
  --surface-highlight: #f0f8ff;

  /* Typografie */
  --font-heading: "Raleway", system-ui, -apple-system, sans-serif;
  --font:         "Inter",   system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ============================================================
   Typography
   ============================================================ */
h1 { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; line-height: 1.2; }
h2 { font-family: var(--font); font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h3 { font-family: var(--font); font-size: 1.25rem; font-weight: 600; }
h4 { font-family: var(--font); font-size: 1.1rem; font-weight: 600; }

code, pre, kbd { font-family: var(--font-mono); font-size: .9em; }

.accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-center { text-align: center; }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.fw-600 { font-weight: 600; }

/* ============================================================
   Layout utilities
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 600px; margin: 0 auto; padding: 0 1.5rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 1.5rem; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  font-size: .875rem; font-weight: 500; font-family: var(--font);
  text-decoration: none; transition: all .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-dark); text-decoration: none; color: var(--color-white); }
.btn-secondary { background: var(--color-card); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-bg); text-decoration: none; }
.btn-danger { background: var(--color-danger); color: var(--color-white); }
.btn-danger:hover { background: var(--color-danger-dark); text-decoration: none; color: var(--color-white); }
.btn-success { background: var(--color-success); color: var(--color-white); }
.btn-accent { background: var(--color-accent); color: var(--color-white); font-weight: 600; }
.btn-accent:hover { background: var(--color-accent-dark); text-decoration: none; color: var(--color-white); }
.btn-sm { padding: .35rem .75rem; font-size: .8125rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-icon { padding: .4rem; }

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .4rem; }
.form-control {
  width: 100%; padding: .6rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); font-size: .9375rem;
  font-family: var(--font); background: var(--color-card);
  color: var(--color-text); transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,63,110,.15);
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: .8125rem; color: var(--color-text-muted); margin-top: .25rem; }
.form-check { display: flex; align-items: center; gap: .5rem; }
.form-check input { width: 1rem; height: 1rem; cursor: pointer; accent-color: var(--color-primary); }
.form-check label { font-size: .9rem; cursor: pointer; margin-bottom: 0; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card-header { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.card-sm { padding: 1rem; }

/* ============================================================
   Flash messages
   ============================================================ */
.flash-list { list-style: none; }
.flash {
  padding: .75rem 1rem; border-radius: var(--radius-sm);
  margin-bottom: .75rem; font-size: .9rem; border-left: 4px solid;
}
.flash-success { background: var(--flash-success-bg); border-color: var(--color-success); color: var(--flash-success-fg); }
.flash-error, .flash-danger { background: var(--flash-danger-bg); border-color: var(--color-danger); color: var(--flash-danger-fg); }
.flash-info { background: var(--flash-info-bg); border-color: var(--color-info); color: var(--flash-info-fg); }
.flash-warning { background: var(--flash-warning-bg); border-color: var(--color-warning); color: var(--flash-warning-fg); }

/* ============================================================
   Badges / Tags
   ============================================================ */
.badge {
  display: inline-block; padding: .2rem .6rem;
  border-radius: 999px; font-size: .75rem; font-weight: 500;
}
.badge-primary { background: var(--color-primary-light); color: var(--color-primary); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-danger { background: var(--badge-danger-bg); color: var(--color-danger); }
.badge-success { background: var(--badge-success-bg); color: var(--color-success); }
.badge-warning { background: var(--badge-warning-bg); color: var(--badge-warning-fg); }

/* Security-Grade-Badge (OP-03.7) — Buchstabe ist immer Teil des Badges
   (Barrierefreiheit: nie Farbe als alleiniger Informationsträger). */
.grade-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem;
  border-radius: 8px; font-weight: 700; font-size: .85rem;
  line-height: 1; border: 1px solid transparent; white-space: nowrap;
}
.grade-badge.grade-lg { min-width: 2.4rem; height: 2.4rem; font-size: 1.25rem; border-radius: 10px; }
.grade-a { background: #ecfdf5; color: #166534; border-color: #86efac; }
.grade-b { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.grade-c { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.grade-d { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.grade-e { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.grade-f { background: #7f1d1d; color: #ffffff; border-color: #7f1d1d; }
.grade-pending { background: var(--gray-100); color: var(--gray-600); border-color: var(--gray-200, #e5e7eb); }
.grade-quarantine { background: #7f1d1d; color: #ffffff; border-color: #7f1d1d; }
.grade-partial-dot { font-size: .7rem; opacity: .7; margin-left: .15rem; }

/* Rating-Punkte im Detail-Report (CCM19-Schema) */
.rating-pill { font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; }
.rating-ok { background: #ecfdf5; color: #166534; }
.rating-info { background: var(--gray-100); color: var(--gray-600); }
.rating-low { background: #fffbeb; color: #92400e; }
.rating-medium { background: #fff7ed; color: #9a3412; }
.rating-high { background: #fef2f2; color: #b91c1c; }

.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  background: var(--color-primary-light); color: var(--color-primary);
  padding: .2rem .65rem; border-radius: 999px;
  font-size: .75rem; font-weight: 500;
  text-decoration: none;
}
.tag:hover { background: var(--color-primary); color: var(--color-white); text-decoration: none; }

/* ============================================================
   Stars (rating)
   ============================================================ */
.stars { display: inline-flex; gap: .1rem; }
.star { font-size: 1.1rem; }
.star-filled { color: var(--star-filled); }
.star-empty { color: var(--gray-300); }

/* ============================================================
   Pagination
   ============================================================ */
.pagination { display: flex; gap: .4rem; align-items: center; margin-top: 2rem; flex-wrap: wrap; }
.page-link {
  padding: .4rem .75rem; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); font-size: .875rem;
  color: var(--color-text); text-decoration: none; transition: all .15s;
}
.page-link:hover { background: var(--color-bg); text-decoration: none; }
.page-link.active { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.page-link.disabled { color: var(--color-text-muted); pointer-events: none; }

/* ============================================================
   Public navbar
   ============================================================ */
.navbar {
  background: var(--color-card); border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 100;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 1.5rem; max-width: 1200px; margin: 0 auto;
}
.navbar-brand { font-size: 1.25rem; font-weight: 700; color: var(--color-primary); text-decoration: none; }
.navbar-brand:hover { text-decoration: none; }
.navbar-links { display: flex; align-items: center; gap: 1.5rem; }
.navbar-links a { font-size: .9rem; color: var(--color-text-muted); font-weight: 500; }
.navbar-links a:hover { color: var(--color-text); text-decoration: none; }
/* Buttons innerhalb der Navbar dürfen ihre eigene Farbe behalten */
.navbar-links a.btn-accent,
.navbar-links a.btn-accent:hover { color: var(--color-white); font-weight: 700; }
.navbar-links a.btn-primary,
.navbar-links a.btn-primary:hover { color: var(--color-white); font-weight: 600; }

/* Hamburger toggle — hidden on desktop */
.navbar-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: .4rem; color: var(--color-text); flex-direction: column;
  gap: 5px; align-items: center; justify-content: center;
}
.navbar-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--color-text); border-radius: 2px;
  transition: all .2s;
}

/* Mobile overlay nav */
.navbar-mobile {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--color-card); flex-direction: column; padding: 1.5rem;
}
.navbar-mobile.open { display: flex; }
.navbar-mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem;
}
.navbar-mobile-close {
  background: none; border: none; cursor: pointer; font-size: 1.5rem;
  color: var(--color-text); padding: .25rem;
}
.navbar-mobile-links { display: flex; flex-direction: column; gap: 1rem; }
.navbar-mobile-links a {
  font-size: 1.125rem; font-weight: 500; color: var(--color-text);
  padding: .5rem 0; border-bottom: 1px solid var(--color-border);
  text-decoration: none;
}
.navbar-mobile-links a:last-child { border-bottom: none; }
.navbar-mobile-links a:hover { color: var(--color-primary); }

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-toggle { display: flex; }
}

/* ============================================================
   App layout (sidebar + content)
   ============================================================ */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px; background: var(--color-sidebar);
  flex-shrink: 0; display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 1.25rem 1rem 1rem;
  font-size: 1.1rem; font-weight: 700; color: var(--color-white);
  border-bottom: 1px solid var(--gray-700); text-decoration: none;
  display: block;
}
.sidebar-brand:hover { text-decoration: none; color: var(--color-secondary); }
/* Logo-Bild auf dunklem Sidebar-Hintergrund zu Weiß invertieren */
.sidebar-brand img { filter: brightness(0) invert(1); }
.sidebar-nav { flex: 1; padding: 1rem 0; }
.sidebar-section { padding: .25rem 1rem .5rem; font-size: .7rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; margin-top: .5rem; }
.sidebar-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem 1rem; color: var(--gray-400);
  font-size: .9rem; font-weight: 500; text-decoration: none;
  transition: all .15s; border-left: 3px solid transparent;
}
.sidebar-link:hover { background: var(--color-sidebar-hover); color: var(--color-white); text-decoration: none; }
.sidebar-link.active { background: var(--color-sidebar-hover); color: var(--color-white); border-left-color: var(--color-primary); }
.sidebar-link .icon { width: 1rem; text-align: center; opacity: .85; }
.sidebar-footer {
  padding: 1rem; border-top: 1px solid var(--gray-700);
  font-size: .8125rem; color: var(--gray-500);
}
.sidebar-user { font-size: .85rem; color: var(--gray-400); padding: .25rem 0; }
.sidebar-plan { display: inline-block; background: var(--color-sidebar-hover); color: var(--color-secondary); padding: .1rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 600; text-transform: uppercase; }

.app-content { margin-left: 240px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.app-topbar {
  background: var(--color-card); border-bottom: 1px solid var(--color-border);
  padding: 0 1.5rem; height: 56px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 40;
}
.app-main { padding: 1.5rem; flex: 1; }

/* Hamburger im App-Layout — nur mobil sichtbar (siehe Media-Query) */
.sidebar-toggle {
  display: none; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: .4rem;
}
.sidebar-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--color-text);
}
/* Abdunkler hinter dem Off-Canvas-Menü */
.sidebar-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0, 0, 0, .45); z-index: 45;
}

@media (max-width: 768px) {
  /* Sidebar wird zum Off-Canvas-Drawer (statt display:none → Menü blieb sonst
     für eingeloggte Nutzer ganz verschwunden). Einblenden über .open per JS. */
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-md); }
  .app-content { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .sidebar-backdrop.show { display: block; }
}

/* ============================================================
   Page header
   ============================================================ */
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; }
.page-header p { color: var(--color-text-muted); margin-top: .25rem; }

/* ============================================================
   Bookmark card
   ============================================================ */
.bookmark-list { display: flex; flex-direction: column; gap: .75rem; }
.bookmark-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s;
  display: flex; gap: 1rem; align-items: flex-start;
}
.bookmark-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-secondary); }
.bookmark-card.dead { border-left: 3px solid var(--color-danger); }
.bookmark-card.flagged { border-left: 3px solid var(--color-warning); }
.bookmark-favicon { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--color-bg); border: 1px solid var(--color-border); }
.bookmark-favicon-placeholder { width: 32px; height: 32px; border-radius: 6px; background: var(--color-primary-light); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.bookmark-body { flex: 1; min-width: 0; }
.bookmark-title { font-weight: 600; font-size: .9375rem; color: var(--color-text); }
.bookmark-title:hover { color: var(--color-primary); }
.bookmark-url { font-size: .8125rem; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
.bookmark-desc { font-size: .875rem; color: var(--color-text-muted); margin-top: .35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bookmark-meta { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; flex-wrap: wrap; }
.bookmark-actions { display: flex; gap: .4rem; flex-shrink: 0; }

/* ============================================================
   Search / Filters bar
   ============================================================ */
.search-bar {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  margin-bottom: 1rem; box-shadow: var(--shadow);
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end;
}
.search-input-wrap { flex: 1; min-width: 200px; position: relative; }
.search-input-wrap input { padding-left: 2.25rem; }
.search-icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); }

/* ============================================================
   Stats cards
   ============================================================ */
.stat-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.stat-value { font-size: 2rem; font-weight: 700; color: var(--color-primary); }
.stat-label { font-size: .85rem; color: var(--color-text-muted); margin-top: .2rem; }

/* ============================================================
   Landing page hero
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white); padding: 5rem 1.5rem 3rem;
  text-align: center;
}
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; }
.hero p { font-size: 1.25rem; opacity: .9; margin-top: 1rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.btn-white { background: var(--color-white); color: var(--color-primary); font-weight: 600; }
.btn-white:hover { background: var(--gray-150); text-decoration: none; color: var(--color-primary); }
.btn-outline-white { border: 2px solid rgba(255,255,255,.6); color: var(--color-white); background: transparent; font-weight: 600; }
.btn-outline-white:hover { border-color: var(--color-white); background: rgba(255,255,255,.1); text-decoration: none; color: var(--color-white); }

/* Hero visual area (app screenshot / illustration) */
.hero-visual {
  margin: 2.5rem auto 0; max-width: 900px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.hero-visual img { display: block; width: 100%; height: auto; }
/* Gerahmter Screenshot in Inhaltsabschnitten (heller Hintergrund) */
.app-screenshot {
  display: block; width: 100%; max-width: 860px; height: auto;
  margin: 0 auto 3rem; border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 40px rgba(27,63,110,.14);
}
.hero-visual-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: rgba(255,255,255,.12);
  border: 2px dashed rgba(255,255,255,.3);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: .875rem; font-weight: 500;
}

/* Social proof strip */
.social-proof {
  background: var(--color-card); border-bottom: 1px solid var(--color-border);
  padding: 1.5rem;
}
.social-proof-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.social-proof-label {
  font-size: .8125rem; font-weight: 600; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.logo-placeholder {
  width: 120px; height: 36px;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 600; color: var(--color-text-muted);
}
.logo-placeholder img { max-height: 28px; object-fit: contain; }

/* Stats bar */
.stats-bar {
  background: var(--color-primary); color: var(--color-white);
  padding: 1.25rem 1.5rem;
}
.stats-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 1.75rem; font-weight: 800; color: var(--color-accent); line-height: 1; }
.hero-stat-label { font-size: .8125rem; opacity: .8; margin-top: .2rem; }

/* Trust badge row */
.trust-row {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap; padding: 1rem 1.5rem;
  background: var(--color-bg); border-bottom: 1px solid var(--color-border);
}
.trust-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8125rem; color: var(--color-text-muted); font-weight: 500;
}
.trust-item svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .stats-bar-inner { gap: 1.5rem; }
  .social-proof-inner { gap: 1.25rem; }
}

/* ============================================================
   Team / About section
   ============================================================ */
.team-section { padding: 4rem 1.5rem; }
.team-photo-placeholder {
  width: 100%; max-width: 480px; aspect-ratio: 4/3;
  background: var(--color-primary-light);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: var(--color-text-muted);
  font-size: .875rem; gap: .5rem; margin: 0 auto;
}
.team-photo-placeholder svg { width: 40px; height: 40px; opacity: .4; }
.team-photo { width: 100%; max-width: 480px; border-radius: var(--radius); display: block; margin: 0 auto; }

/* ============================================================
   Page hero strip (features / subpages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white); padding: 3.5rem 1.5rem; text-align: center;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; }
.page-hero p { font-size: 1.1rem; opacity: .85; margin-top: .75rem; max-width: 560px; margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
  .page-hero h1 { font-size: 1.75rem; }
}

/* ============================================================
   Pricing — featured card accent
   ============================================================ */
.pricing-card.featured { border-color: var(--color-accent); box-shadow: 0 0 0 2px var(--color-accent); }
.pricing-badge { background: var(--color-accent); color: var(--color-white); }

/* ============================================================
   Feature grid
   ============================================================ */
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--color-primary-light); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: .75rem;
}

/* ============================================================
   Pricing cards
   ============================================================ */
.pricing-card { position: relative; }
.pricing-card.featured { border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--color-primary); color: var(--color-white); padding: .2rem .9rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--color-text); }
.pricing-price sup { font-size: 1.25rem; font-weight: 600; }
.pricing-price .period { font-size: .9rem; font-weight: 400; color: var(--color-text-muted); }
.pricing-features { list-style: none; margin: 1.25rem 0; }
.pricing-features li { padding: .4rem 0; font-size: .9rem; display: flex; gap: .5rem; align-items: flex-start; }
.pricing-features li::before { content: "✓"; color: var(--color-success); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   Table
   ============================================================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; padding: .75rem 1rem; border-bottom: 2px solid var(--color-border); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); }
td { padding: .75rem 1rem; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--color-bg); }

/* ============================================================
   SBOM / Software-Stückliste (Über uns)
   ============================================================ */
.sbom-group {
  font-size: 1.05rem;
  color: var(--color-text);
  margin: 2rem 0 .6rem;
}
.sbom-table-wrap { margin-bottom: .5rem; }
.sbom-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sbom-table th {
  text-align: left; padding: .55rem .75rem;
  border-bottom: 2px solid var(--color-border);
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--color-text-muted);
}
.sbom-table td {
  padding: .55rem .75rem; border-bottom: 1px solid var(--color-border);
  vertical-align: top; color: var(--color-text);
}
.sbom-table tr:last-child td { border-bottom: none; }
.sbom-table tr:hover td { background: var(--color-bg); }
.sbom-name a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.sbom-name a:hover { text-decoration: underline; }
.sbom-version { font-family: var(--font-mono); white-space: nowrap; color: var(--color-text); }
.sbom-license { font-size: .8rem; color: var(--color-text-muted); white-space: nowrap; }
.sbom-services { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .4rem; margin: .4rem 0 0; }
.sbom-services li { color: var(--color-text); }
.sbom-services li a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.sbom-services li a:hover { text-decoration: underline; }
.sbom-note {
  margin-top: 1.75rem; font-size: .82rem; color: var(--color-text-muted);
  border-left: 3px solid var(--color-border); padding-left: .9rem;
}

/* ============================================================
   Footer (public)
   ============================================================ */
.footer {
  background: var(--color-sidebar); color: var(--gray-400);
  padding: 2rem 1.5rem; margin-top: auto; font-size: .875rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer a { color: var(--gray-400); }
.footer a:hover { color: var(--color-white); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ============================================================
   Auth pages
   ============================================================ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: var(--color-bg); }
.auth-card { width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo a { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); text-decoration: none; }
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: .9rem; color: var(--color-text-muted); }

/* ============================================================
   Detail view
   ============================================================ */
.detail-url {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: .6rem 1rem;
  font-family: var(--font-mono); font-size: .85rem; word-break: break-all; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.status-indicator { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-ok { background: var(--color-success); }
.status-dead { background: var(--color-danger); }
.status-unknown { background: var(--gray-300); }

/* ============================================================
   Alerts / info boxes
   ============================================================ */
.alert {
  padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  border-left: 4px solid; margin-bottom: 1rem; font-size: .9rem;
}
.alert-info { background: var(--flash-info-bg); border-color: var(--color-info); color: var(--flash-info-fg); }
.alert-warning { background: var(--flash-warning-bg); border-color: var(--color-warning); color: var(--flash-warning-fg); }
.alert-danger { background: var(--flash-danger-bg); border-color: var(--color-danger); color: var(--flash-danger-fg); }
.alert-success { background: var(--flash-success-bg); border-color: var(--color-success); color: var(--flash-success-fg); }

/* ============================================================
   Empty state
   ============================================================ */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--color-text-muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }
.empty-state h3 { color: var(--color-text); margin-bottom: .5rem; }

/* ============================================================
   Misc
   ============================================================ */
.divider { height: 1px; background: var(--color-border); margin: 1.5rem 0; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 500; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ============================================================
   Umgebungs-/Versions-Banner (UAT / PROD-Beta / DEV)
   ============================================================ */
.env-banner {
  width: 100%;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .4rem 1rem;
}
.env-banner--uat { background: var(--color-warning); color: var(--color-white); }
.env-banner--prod { background: var(--color-primary); color: var(--color-white); }
.env-banner--dev { background: var(--gray-200); color: var(--gray-600); }

/* ============================================================
   Tag-Cloud + Tags/Kategorien-Verwaltung
   ============================================================ */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.tag-count { opacity: .6; font-size: .75em; }
.tag-active { background: var(--color-primary); color: var(--color-white); }
.tag-manage { background: transparent; border: 1px dashed var(--color-border); color: var(--color-text-muted); }
.tag-ai { border: 1px dashed var(--color-primary); }  /* KI-vorgeschlagener Tag */

/* KI-Anreicherung — Auslöser, Sidebar-Fortschritt, Modal */
.bulk-enrich { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.enrich-progress { margin: .5rem .75rem; padding: .5rem .6rem; border: 1px solid var(--color-border);
  border-radius: 8px; background: var(--color-bg); font-size: .8rem; }
.enrich-progress-label { display: flex; justify-content: space-between; margin-bottom: .3rem; }
.enrich-progress-bar { width: 100%; height: 10px; }
.enrich-progress-meta { display: flex; justify-content: space-between; align-items: center;
  margin-top: .3rem; color: var(--color-text-muted); }
.enrich-progress-cancel { background: none; border: none; color: var(--color-primary);
  cursor: pointer; font-size: .8rem; padding: 0; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex;
  align-items: center; justify-content: center; z-index: 1000; }
/* Das hidden-Attribut muss display:flex überstimmen, sonst ist das Modal immer sichtbar. */
.modal-overlay[hidden] { display: none; }
.modal-box { background: var(--color-white); border-radius: 10px; padding: 1.25rem 1.5rem; width: min(420px, 92vw);
  box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.modal-box .enrich-modal-bar { width: 100%; height: 14px; margin-top: .5rem; }

.manage-table { width: 100%; border-collapse: collapse; }
.manage-table th, .manage-table td {
  text-align: left; padding: .4rem .5rem;
  border-bottom: 1px solid var(--color-border); vertical-align: middle;
}
.manage-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); }
.inline-form { display: flex; gap: .35rem; align-items: center; }

/* ============================================================
   Spinner / Ladezustand (z. B. „Alternative finden")
   ============================================================ */
.spinner {
  display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.15em;
  border: 2px solid var(--color-border); border-top-color: var(--color-primary);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.alt-loading { display: flex; align-items: center; gap: .5rem; color: var(--color-text-muted); padding: 1rem 0; }
.btn.disabled { opacity: .6; pointer-events: none; }
