/* ═══════════════════════════════════════════════════════════
   legal-modal.css
   BlueChipScout – Legal Modal (Impressum + Datenschutz)
   Zwei Karten nebeneinander, je zwei Tabs (einfach / rechtlich)
   ═══════════════════════════════════════════════════════════ */

/*
  Praefix aller Marken dieser Datei: LMCSS

  [IDX] Abschnitte:
    [IDX:LMCSS-LAYOUT]    Overlay, Container, die zwei Karten
    [IDX:LMCSS-ELEMENTE]  Header, Tabs, Bloecke, Absaetze, Listen
    [IDX:LMCSS-TOC]       Inhaltsverzeichnis der Datenschutz-Volltextansicht

  Layout-Grundmuster ist von profile-modal.css uebernommen (lm-* statt pm-*).
*/

/* ============================================================
   [IDX:LMCSS-LAYOUT] Overlay, Container, die zwei Karten
============================================================ */
/* ── OVERLAY ── */
#lmOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#lmOverlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── CARD CONTAINER ── */
#lmContainer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-height: calc(100vh - 40px);
}

/* ── EINZELNE KARTE ── */
.lm-card {
  background: #141614;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  width: 480px;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

/* Karte 2 initial versteckt, fährt von rechts rein */
#lmCard2 {
  opacity: 0;
  transform: translateX(16px) scale(0.98);
  pointer-events: none;
  width: 0;
  border: none;
  overflow: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease, width 0.28s ease, border 0.1s ease 0.2s;
}
#lmCard2.open {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: all;
  width: 480px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── KARTEN-INHALT ── */
.lm-card-inner {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.lm-card-inner::-webkit-scrollbar { width: 4px; }
.lm-card-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* ============================================================
   [IDX:LMCSS-ELEMENTE] Header, Tabs, Bloecke, Absaetze, Listen
============================================================ */
/* ── HEADER ── */
.lm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.lm-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #e8ede9;
}
.lm-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: none;
  border: 1px solid rgba(255,95,95,0.2);
  color: #ff5f5f;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.lm-close:hover { background: rgba(255,95,95,0.12); border-color: #ff5f5f; }

/* ── TAB SWITCHER ── */
.lm-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.lm-tab {
  flex: 1;
  padding: 7px;
  border-radius: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.07);
  background: #1a1d1b;
  color: #7a8f7c;
  transition: all 0.15s;
  text-align: center;
}
.lm-tab:hover { color: #a8bfaa; border-color: rgba(255,255,255,0.12); }
.lm-tab.active { border-color: rgba(61,255,122,0.35); color: #3dff7a; background: rgba(61,255,122,0.06); }

/* ── SECTION LABEL ── */
.lm-section-label {
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  color: #3dff7a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 20px 0 8px;
}
.lm-section-label:first-child { margin-top: 0; }

/* ── INFO BLOCK ── */
.lm-block {
  background: #1a1d1b;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.lm-block-label {
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  color: #4a574b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.lm-block-value {
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  color: #e8ede9;
  line-height: 1.6;
}
.lm-block-value a { color: #3dff7a; text-decoration: none; }
.lm-block-value a:hover { text-decoration: underline; }

/* ── PARAGRAPH ── */
.lm-p {
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  color: #8a9b8c;
  line-height: 1.8;
  margin-bottom: 10px;
}
.lm-p:last-child { margin-bottom: 0; }
.lm-p a { color: #3dff7a; text-decoration: none; }
.lm-p a:hover { text-decoration: underline; }
.lm-p strong { color: #c8d9ca; }

/* ── SIMPLE ROW (einfache Ansicht) ── */
.lm-simple-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.lm-simple-row:last-child { border-bottom: none; }
.lm-simple-icon {
  font-size: 18px;
  width: 28px;
  flex-shrink: 0;
  text-align: center;
  margin-top: 1px;
}
.lm-simple-text-label {
  font-size: 12px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: #e8ede9;
  margin-bottom: 3px;
}
.lm-simple-text-desc {
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: #7a8f7c;
  line-height: 1.7;
}

/* ── DIVIDER ── */
.lm-divider { height: 1px; background: rgba(255,255,255,0.05); margin: 16px 0; }

/* ============================================================
   [IDX:LMCSS-TOC] Inhaltsverzeichnis der Datenschutz-Volltextansicht
============================================================ */
/* ── TOC (Datenschutz rechtlich) ── */
.lm-toc {
  background: #1a1d1b;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.lm-toc-title {
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  color: #4a574b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.lm-toc a {
  display: block;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: #7a8f7c;
  text-decoration: none;
  padding: 2px 0;
  transition: color 0.15s;
}
.lm-toc a:hover { color: #3dff7a; }

/* ── LIST ── */
.lm-list {
  margin: 6px 0 10px 16px;
}
.lm-list li {
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: #8a9b8c;
  line-height: 1.8;
  margin-bottom: 2px;
}
.lm-list li strong { color: #c8d9ca; }

/* ── HIGHLIGHT ── */
.lm-highlight {
  background: rgba(61,255,122,0.04);
  border-left: 2px solid rgba(61,255,122,0.3);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 10px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1060px) {
  #lmContainer {
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
  }
  .lm-card { width: min(480px, calc(100vw - 40px)); max-height: calc(100vh - 40px); }
  #lmCard2 { width: 0; max-height: 0; overflow: hidden; }
  #lmCard2.open { width: min(480px, calc(100vw - 40px)); max-height: calc(100vh - 40px); }
}

/* Sicherheitsnetz: geschlossenes Modal darf niemals klickbar sein,
   unabhängig von Vererbung/Breakpoints/zukünftigen CSS-Änderungen */
#lmOverlay:not(.open) .lm-card {
  pointer-events: none !important;
}
