/* Legal pages — Lager-Design (Holz, Gold, roter Vorhang) */
:root {
  --wood-dark: #2b160a;
  --wood-mid: #4a2912;
  --wood-light: #6e3d1c;
  --gold: #c9a227;
  --gold-bright: #ffd700;
  --gold-dim: #7a5e1a;
  --text-gold: #ffd700;
  --text-light: #e8d5a0;
  --text-muted: #a08060;
  --panel-bg: rgba(26, 12, 6, 0.95);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html.legal-lager-page,
html.legal-lager-page body {
  min-height: 100%;
  min-height: 100dvh;
}

body.page-lager.legal-lager-page {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12px;
  color: var(--text-light);
  background-color: #0b0202;
  background-image:
    radial-gradient(circle at 50% 30%, rgba(139, 10, 10, 0.4) 0%, rgba(0, 0, 0, 0.8) 85%),
    linear-gradient(to right,
      #000000 0%, #150202 4%, #350404 12%, #550707 20%,
      #350404 28%, #150202 36%, #000000 40%, #150202 44%,
      #350404 52%, #550707 60%, #350404 68%, #150202 76%, #000000 80%);
  background-size: 320px 100%;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

.legal-lager-root {
  position: relative;
  z-index: 1;
}

.legal-lager-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 12px 28px;
}

.legal-lager-top-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #4d260f 0%, #2b1509 100%);
  border: 3px solid #1c0f08;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8), 0 4px 10px rgba(0, 0, 0, 0.7);
  border-bottom: 2px solid var(--gold);
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.legal-lager-brand {
  font-size: clamp(0.85rem, 2.8vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.legal-lager-panel {
  background: linear-gradient(180deg, rgba(77, 38, 15, 0.55) 0%, rgba(43, 21, 9, 0.92) 100%);
  border: 3px solid #1c0f08;
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.65),
    0 8px 24px rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  overflow: hidden;
}

.legal-lager-panel-head {
  padding: 14px 18px 10px;
  border-bottom: 2px solid rgba(201, 162, 39, 0.35);
  background: linear-gradient(180deg, rgba(90, 45, 18, 0.85) 0%, rgba(43, 21, 9, 0.5) 100%);
}

.legal-lager-panel-head h1 {
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  line-height: 1.35;
}

.legal-lager-content {
  max-height: min(72vh, 820px);
  overflow-y: auto;
  padding: 18px 20px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 98, 0.55) rgba(0, 0, 0, 0.35);
}

.legal-lager-content::-webkit-scrollbar { width: 8px; }
.legal-lager-content::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.35); }
.legal-lager-content::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 98, 0.45);
  border-radius: 999px;
}

.legal-lager-content h2 {
  margin: 22px 0 10px;
  font-size: clamp(0.78rem, 2vw, 0.9rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.legal-lager-content h3 {
  margin: 16px 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: #d4b86a;
}

.legal-lager-content h4 {
  margin: 12px 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #c9a962;
}

.legal-lager-content p,
.legal-lager-content ul,
.legal-lager-content ol {
  line-height: 1.65;
  margin-bottom: 12px;
  font-size: clamp(0.78rem, 1.9vw, 0.88rem);
  color: rgba(232, 213, 160, 0.94);
}

.legal-lager-content ul,
.legal-lager-content ol {
  margin-left: 1.2em;
}

.legal-lager-content li {
  margin-bottom: 6px;
}

.legal-lager-content a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-lager-content a:hover {
  color: #fff;
}

.legal-lager-content .stand {
  margin-bottom: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.legal-lager-content .notice {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
}

.legal-lager-content .form-box {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px dashed rgba(201, 162, 39, 0.4);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.legal-lager-content .source-info {
  margin-top: 18px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.legal-pack-catalog {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
}

.legal-pack-catalog > h3 {
  margin-top: 0;
  color: var(--gold-bright);
}

.legal-pack-note {
  font-size: 0.74rem !important;
  color: var(--text-muted) !important;
}

.legal-pack-group {
  margin-top: 14px;
}

.legal-pack-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  margin-top: 6px;
}

.legal-pack-table th,
.legal-pack-table td {
  padding: 7px 8px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  text-align: left;
  vertical-align: top;
}

.legal-pack-table th {
  background: rgba(43, 21, 9, 0.85);
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.legal-pack-table td.legal-pack-price {
  white-space: nowrap;
  color: var(--gold-bright);
  font-weight: 600;
}

.legal-lager-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 6px;
  font-size: 9px;
  letter-spacing: 0.4px;
  color: #7a6a58;
  margin-top: 12px;
  padding: 10px 8px 4px;
  text-align: center;
  border-top: 1px solid rgba(201, 169, 98, 0.12);
}

.legal-lager-footer a {
  color: #9a8878;
  text-decoration: none;
  transition: color 0.2s;
}

.legal-lager-footer a:hover,
.legal-lager-footer a.is-active {
  color: #f0d878;
}

.legal-lager-sep {
  color: rgba(201, 162, 39, 0.35);
  user-select: none;
}

.legal-lager-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 16px auto 0;
  padding: 10px 18px;
  border-radius: 4px;
  border: 2px solid #5a4010;
  background: linear-gradient(180deg, #5c2e14 0%, #3e1b0a 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  color: var(--gold-bright);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.legal-lager-back:hover {
  border-color: var(--gold-bright);
  color: #fff;
}

/* Embed (z. B. Registrierung iframe) */
body.legal-lager-page--embed {
  background: #0b0202;
  background-image: none;
  padding: 0;
}

body.legal-lager-page--embed .legal-lager-embed-shell {
  height: 100%;
  min-height: 100%;
}

body.legal-lager-page--embed .legal-lager-content {
  max-height: none;
  height: 100%;
  min-height: 100%;
  padding: 16px 18px 20px;
}

body.legal-lager-page--embed .legal-lager-panel-head {
  padding: 12px 16px 8px;
}

@media (max-width: 560px) {
  .legal-lager-wrap {
    padding: 10px 8px 20px;
  }

  .legal-pack-table th:nth-child(2),
  .legal-pack-table td:nth-child(2) {
    display: none;
  }
}
