/* ============================================================
   Emre's Depot — Styles
   ============================================================ */

:root {
  --navy: #101c30;
  --navy-soft: #16223a;
  --bg: #f4f5f8;
  --card: #ffffff;
  --border: #e6e8ee;
  --text: #101c30;
  --text-muted: #6b7280;
  --green: #1f8a4c;
  --green-bg: #eaf7ef;
  --purple: #7c6ff0;
  --amber: #e8a33d;
  --orange: #e8823d;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 1px 2px rgba(16,28,48,0.04), 0 8px 24px rgba(16,28,48,0.05);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }

.app {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  padding: 0 6px;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  color: #7fe0b0;
}

.brand-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }

.nav-item.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.nav-item svg { flex-shrink: 0; opacity: 0.9; }

.badge-new {
  margin-left: auto;
  background: #7fe0b0;
  color: #0b1a12;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 999px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.datenstatus {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  padding: 0 6px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fe0b0;
  flex-shrink: 0;
}

.dot--live { box-shadow: 0 0 0 3px rgba(127,224,176,0.18); }

/* ---------- Main ---------- */

.main {
  flex: 1;
  padding: 40px 48px 64px;
  max-width: 1240px;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stand-pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dfe3ea;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.greeting {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 40px;
  margin: 4px 0 28px;
  color: var(--navy);
}

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 22px 28px 26px;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #fff3d6 0%, #ffd9a0 22%, #ffb37c 42%, #ff9a6b 62%, #ff8a68 100%);
  box-shadow: var(--shadow);
}

.hero-banner::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fffceb 0%, #ffedb0 30%, #ffc966 55%, rgba(255,201,102,0) 72%);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 45%);
  pointer-events: none;
}

.hero-banner > * {
  position: relative;
  z-index: 1;
}

.hero-banner .eyebrow {
  color: rgba(16,28,48,0.55);
}

.hero-banner .stand-pill {
  background: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.5);
}

.hero-banner .avatar {
  background: rgba(255,255,255,0.85);
}

.hero-banner .greeting {
  margin: 4px 0 0;
  text-shadow: 0 1px 3px rgba(255,255,255,0.35);
}

/* ---------- Summary cards ---------- */

.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.card-label {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.card-value--gain { color: var(--green); }

.card-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.card-sub--gain { color: var(--green); font-weight: 600; }

/* ---------- Category cards ---------- */

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.cat-card:hover { box-shadow: var(--shadow); }

.cat-card.active {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}

.cat-card-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}

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

.cat-value {
  font-size: 14px;
  font-weight: 700;
}

.cat-value.pos { color: var(--green); }
.cat-value.neg { color: #c0392b; }

/* ---------- Positions ---------- */

.positions {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.positions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
}

.positions-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.positions-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  min-width: 220px;
}

.search svg { color: var(--text-muted); flex-shrink: 0; }

.search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--text);
}

.table-wrap { overflow-x: auto; }

.positions-table {
  width: 100%;
  border-collapse: collapse;
}

.positions-table thead th {
  text-align: right;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 10px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.positions-table thead th:first-child { text-align: left; }

.positions-table tbody td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  font-size: 14.5px;
  vertical-align: middle;
}

.positions-table tbody td:first-child { text-align: left; }

.positions-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}

.positions-table tbody tr:hover { background: #f8f9fb; }

.positions-table tbody tr:last-child td { border-bottom: none; }

.pos-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pos-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.pos-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.pos-name { font-weight: 600; color: var(--navy); }
.pos-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 1px; }

.cell-main { font-weight: 600; color: var(--navy); }
.cell-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

.gain-pos { color: var(--green); font-weight: 700; }
.gain-neg { color: #c0392b; font-weight: 700; }
.gain-pct { font-size: 12.5px; font-weight: 500; margin-top: 1px; }

.empty-row td {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 24px;
}

/* ---------- Modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16,28,48,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal-backdrop.open { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(16,28,48,0.25);
  animation: modal-in 0.15s ease-out;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover { background: var(--border); }

.modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.modal-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.modal-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
}

.modal-ticker {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.modal-row-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.modal-row-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.modal-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #374151;
  margin-bottom: 20px;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.modal-stats > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.modal-stats span {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.modal-stats strong {
  font-size: 15px;
  color: var(--navy);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; align-items: center; padding: 16px 20px; overflow-x: auto; }
  .brand { margin-bottom: 0; }
  .nav { flex-direction: row; }
  .sidebar-footer { display: none; }
  .main { padding: 28px 20px 48px; }
  .summary-cards, .category-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .summary-cards, .category-cards { grid-template-columns: 1fr; }
  .positions-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .search { width: 100%; }
  .greeting { font-size: 30px; }
}

/* ---------- Positionen: Header-Aktionen & Buttons ---------- */

.positions-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-add, .btn-primary, .btn-secondary, .btn-danger {
  border: none;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: filter 0.12s, background 0.12s;
}

.btn-add {
  background: var(--navy);
  color: #fff;
}

.btn-add:hover { filter: brightness(1.15); }

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover { filter: brightness(1.15); }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--border); }

.btn-danger {
  background: #fdecea;
  color: #c0392b;
}

.btn-danger:hover { background: #fbdad6; }

/* ---------- Modal: View-Aktionen ---------- */

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.modal--small { max-width: 360px; }

/* ---------- Formular (Position hinzufügen/bearbeiten) ---------- */

.pos-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pos-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 0; /* verhindert, dass Grid-Spalten (form-row/form-row--3) durch die
                   Eigenbreite der Eingabefelder auf schmalen Bildschirmen aus dem
                   Modal herausgedrückt werden */
}

.pos-form input,
.pos-form select,
.pos-form textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  width: 100%;
  min-width: 0;
}

.pos-form input:focus,
.pos-form select:focus,
.pos-form textarea:focus {
  border-color: var(--navy);
}

.pos-form textarea { resize: vertical; font-family: var(--font-sans); }

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.form-row--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }

.form-error {
  color: #c0392b;
  font-size: 13px;
  font-weight: 600;
  margin: -4px 0 0;
  min-height: 0;
}

.form-error:empty { display: none; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.form-actions-right {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

@media (max-width: 600px) {
  .form-row, .form-row--3 { grid-template-columns: 1fr; }
  .positions-header-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .btn-add { justify-content: center; }
}

/* ---------- Autocomplete: Aktien-/Krypto-Suche im Formular ---------- */

.autocomplete-wrap {
  position: relative;
}

.suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16,28,48,0.16);
  max-height: 260px;
  overflow-y: auto;
  z-index: 60;
}

.suggestions.open { display: block; }

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
  background: var(--bg);
}

.suggestion-item + .suggestion-item {
  border-top: 1px solid var(--border);
}

.suggestion-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.suggestion-text { min-width: 0; flex: 1; }

.suggestion-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.suggestion-empty {
  padding: 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Sidebar: Depot leeren ---------- */

.btn-link-danger {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 6px 0;
  cursor: pointer;
}

.btn-link-danger:hover { color: #ff8a80; }

/* ---------- Sidebar: API-Key-Link ---------- */

.btn-link {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 6px 0;
  cursor: pointer;
}

.btn-link:hover { color: #7fe0b0; }

/* ---------- Formular: Kurs-Abruf-Button ---------- */

.input-with-button {
  display: flex;
  gap: 8px;
}

.input-with-button input { flex: 1; min-width: 0; }

.btn-mini {
  flex-shrink: 0;
  width: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  cursor: pointer;
}

.btn-mini:hover { background: var(--bg); }
.btn-mini:disabled { opacity: 0.5; cursor: default; }

/* ---------- Live-Suchtreffer-Badge ---------- */

.tag-live {
  display: inline-block;
  margin-left: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #0e7490;
  background: #e0f7fa;
  padding: 1px 6px;
  border-radius: 999px;
  vertical-align: middle;
}

.modal-desc a { color: var(--navy); font-weight: 600; }

/* ---------- Formular: Logo-Vorschau ---------- */

.form-row--logo {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

.logo-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
}

.logo-preview {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px;
}

@media (max-width: 600px) {
  .form-row--logo { grid-template-columns: 1fr 1fr; }
  .logo-preview-wrap { grid-column: 1 / -1; width: auto; justify-content: flex-start; }
}

/* ---------- Positionen/Modal: Firmenlogo statt Initialen ---------- */

.pos-avatar, .modal-avatar {
  position: relative;
  overflow: hidden;
}

.pos-avatar img, .modal-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 15%;
  box-sizing: border-box;
}

/* ---------- Sidebar: "Aktien"-Untermenü mit eigenen Kategorien ---------- */

.nav-item-group { display: flex; flex-direction: column; }

.nav-chevron {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.nav-item.expanded .nav-chevron { transform: rotate(180deg); }

.nav-submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 6px 14px;
}

.nav-submenu.open { display: flex; }

.nav-subitem {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.nav-subitem:hover { background: rgba(255,255,255,0.06); color: #fff; }

.nav-subitem.active { background: rgba(255,255,255,0.12); color: #fff; }

.nav-subitem-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-subitem-count {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.nav-subitem-icon {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  padding: 2px 4px;
  cursor: pointer;
  line-height: 1;
}

.nav-subitem-icon:hover { color: #fff; }

.nav-subitem--add {
  color: #7fe0b0;
  font-weight: 600;
}

.nav-subitem--add:hover { color: #a4ecc7; background: rgba(127,224,176,0.08); }

/* ---------- Empfehlungen ---------- */

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 24px 24px;
}

.rec-card {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.rec-card:hover { box-shadow: var(--shadow); border-color: var(--navy); }

.rec-card-body { flex: 1; min-width: 0; }

.rec-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.rec-card-date {
  font-size: 11.5px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.rec-card-reasoning {
  font-size: 13.5px;
  color: #374151;
  line-height: 1.5;
}

.rec-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 24px;
}

/* ---------- Passwortsperre ---------- */

.overview-body {
  position: relative;
}

body.locked .overview-body > *:not(.lock-overlay) {
  filter: blur(11px);
  pointer-events: none;
  user-select: none;
}

.lock-overlay {
  display: none;
}

body.locked .lock-overlay {
  display: flex;
  position: absolute;
  inset: 0;
  z-index: 30;
  align-items: flex-start;
  justify-content: center;
  padding-top: 48px;
}

.lock-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  text-align: center;
  width: 280px;
}

.lock-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.lock-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 6px;
}

.lock-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.lock-box input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 6px;
}

.lock-box .btn-primary {
  width: 100%;
  margin-top: 8px;
}

body.locked .sidebar-footer {
  display: none;
}

body.locked #navAktien {
  opacity: 0.4;
  pointer-events: none;
}

body.locked .nav-submenu {
  display: none !important;
}
