/* ════════════════════════════════════════════════════
   LEGAL PAGES  –  legal.css
   Ergänzt style.css für Impressum, Datenschutz,
   Cookie-Richtlinie
════════════════════════════════════════════════════ */

/* ── Legal-Seiten: Navbar immer scrolled ──────────── */
#navbar.scrolled .nav-inner {
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
/* Auf legal-Seiten ist #logo-row nie sichtbar */
#logo-row { display: none !important; }

/* ── Legal Header Banner ──────────────────────────── */
.legal-header {
  position: relative;
  background: #111;
  overflow: hidden;
  padding: 120px 0 64px;
}
[data-theme="light"] .legal-header { background: #0f0f0f; }
.lh-glow {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 320px;
  background: rgba(180,0,0,.1);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.lh-line {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: linear-gradient(to right, transparent, rgba(220,38,38,.6), transparent);
}
.lh-line.top    { top: 0; }
.lh-line.bottom { bottom: 0; opacity: .35; }

.lh-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,.4);
  margin-bottom: 18px;
}
.lh-breadcrumb a { color: rgba(255,255,255,.4); transition: color .2s; }
.lh-breadcrumb a:hover { color: rgba(220,38,38,.9); }
.lh-breadcrumb i { font-size: 14px; color: rgba(255,255,255,.25); }
.lh-breadcrumb span { color: rgba(255,255,255,.6); }

.lh-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(220,38,38,.9);
  border: 1px solid rgba(220,38,38,.35);
  background: rgba(220,38,38,.1);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 16px;
}
.lh-title {
  font-size: clamp(28px,4.5vw,52px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 10px;
}
.lh-sub {
  font-size: 15px;
  color: rgba(255,255,255,.5);
  max-width: 520px;
}
.lh-date {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,.3);
  margin-top: 18px;
}
.lh-date i { color: rgba(220,38,38,.6); }

/* ── Back bar ─────────────────────────────────────── */
.back-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--txt3);
  transition: color .2s;
}
.back-link:hover { color: var(--red); }
.back-link i { font-size: 14px; }

/* ── Legal main content ───────────────────────────── */
.legal-main {
  background: var(--bg);
  padding: 56px 0 80px;
  min-height: 60vh;
}
.legal-main .container { max-width: 860px; }

/* ── Legal section ────────────────────────────────── */
.legal-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; }

.legal-section h2 {
  display: flex; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 800;
  color: var(--txt);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
/* Dot style (Impressum) */
.ls-dot {
  display: inline-block;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
/* Number badge style (Datenschutz / Cookie) */
.ls-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 900;
  flex-shrink: 0;
}

.ls-body { font-size: 14px; color: var(--txt3); line-height: 1.8; }
.ls-body p { margin-bottom: 0; }
.ls-body strong { color: var(--txt2); }
.ls-body .mt { margin-top: 12px; }

/* Sub-section heading */
.sub-section { margin-top: 20px; }
.sub-section:first-child { margin-top: 0; }
.sub-section h3 {
  font-size: 13px; font-weight: 700;
  color: var(--txt2);
  margin-bottom: 8px;
}

/* Address box */
.addr-box {
  margin-top: 12px;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  font-size: 13px; color: var(--txt3);
  line-height: 1.8;
}
.addr-box strong { color: var(--txt); }

/* Check list */
.check-list {
  list-style: none;
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.check-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--txt3);
}
.check-list i { color: var(--red); font-size: 15px; margin-top: 1px; flex-shrink: 0; }

/* Red link */
.red-link { color: var(--red); transition: opacity .2s; }
.red-link:hover { opacity: .75; text-decoration: underline; }

/* Info boxes */
.info-box {
  display: flex; gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  margin-bottom: 36px;
}
.info-red   { background: rgba(220,38,38,.06);  border: 1px solid rgba(220,38,38,.2); }
.info-amber { background: rgba(245,158,11,.06); border: 1px solid rgba(245,158,11,.2); }
[data-theme="dark"] .info-red   { background: rgba(239,68,68,.08);  border-color: rgba(239,68,68,.2); }
[data-theme="dark"] .info-amber { background: rgba(251,191,36,.06); border-color: rgba(251,191,36,.18); }
.ib-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(220,38,38,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.ib-icon i { color: var(--red); font-size: 18px; }
.ib-icon.amber { background: rgba(245,158,11,.15); }
.ib-icon.amber i { color: #d97706; }
[data-theme="dark"] .ib-icon.amber i { color: #fbbf24; }
.ib-title { font-size: 13px; font-weight: 700; color: var(--txt); margin-bottom: 4px; }
.ib-text  { font-size: 12px; color: var(--txt3); line-height: 1.65; }

/* Cookie table */
.cookie-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.cookie-table thead tr {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.cookie-table th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--txt2);
  white-space: nowrap;
}
.cookie-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.cookie-table tbody tr:last-child { border-bottom: none; }
.cookie-table tbody tr:hover { background: var(--bg2); }
.cookie-table td { padding: 10px 14px; color: var(--txt3); }
.cookie-name { color: var(--red); font-family: monospace; font-size: 11px; }
.nowrap { white-space: nowrap; }

/* Browser grid */
.browser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.browser-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: border-color .2s, background .2s;
}
.browser-card:hover { border-color: rgba(220,38,38,.4); background: var(--bg3); }
.bc-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(220,38,38,.07);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bc-icon i { font-size: 17px; color: var(--txt3); transition: color .2s; }
.browser-card:hover .bc-icon i { color: var(--red); }
.bc-name { font-size: 12px; font-weight: 700; color: var(--txt2); }
.bc-lbl  { font-size: 11px; color: var(--txt3); margin-top: 1px; }
.bc-ext  { margin-left: auto; font-size: 12px; color: var(--txt3); transition: color .2s; flex-shrink: 0; }
.browser-card:hover .bc-ext { color: var(--red); }

.hint { font-size: 12px; color: var(--txt3); }

/* ── Responsive ───────────────────────────────────── */
@media(max-width: 600px) {
  .browser-grid { grid-template-columns: 1fr; }
  .legal-header { padding: 100px 0 44px; }
  .lh-title { font-size: 28px; }
}
