@import url(./base.css);

/* ===========================
   Legal Pages – The Odyssey
   Responsive, accessible, print-ready
   =========================== */

:root{
  --bg: #0f0f0f;
  --card: #181818;
  --card-border: #2a2a2a;
  --text: #ffffff;
  --muted: #bdbdbd;
  --line: #232323;
  --gold: #d3ae36;
  --gold-dim: #c29a2f;
  --focus: #4c8dff;
  --radius-lg: 1rem;
  --radius-md: .75rem;

  /* Layout */
  --container: 860px;
  --side-pad: 1.25rem;

  /* Navbar-Höhe (deine Navbar ist 5rem hoch) */
  --nav-h: 5rem;
}

/* Basis */
html{ scroll-behavior: smooth; }
*{ box-sizing: border-box; }

body{
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

/* Seite unter fester Navbar beginnen */
#legal-page{
  max-width: var(--container);
  width: 100%;
  margin: calc(var(--nav-h) + 2rem) auto 3rem;
  padding: 0 var(--side-pad);
}

/* Headings */
#legal-page h1{
  color: var(--gold);
  text-align: center;
  margin: 0 0 1.25rem;
  font-weight: 800;
  letter-spacing: .3px;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.25rem);
}
#legal-page h2{
  color: var(--gold);
  margin: 2rem 0 .75rem;
  font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem);
}
#legal-page h3{
  color: #eee;
  margin: 1.5rem 0 .5rem;
  font-size: clamp(1rem, .95rem + .5vw, 1.25rem);
}

/* Karte / Container */
.legal-card{
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, .7rem + 1.2vw, 2rem);
  box-shadow: 0 0 18px rgba(0,0,0,.35);
}

/* Fließtext */
.legal-card p{
  margin: .6rem 0 1rem;
  color: #f1f1f1;
}
.legal-card small,
.legal-muted{ color: var(--muted); }

/* Listen & Definitionen */
.legal-card ul,
.legal-card ol{
  margin: .3rem 0 1.1rem 1.2rem;
  padding: 0;
}
.legal-card li{ margin: .35rem 0; }
.legal-card dl{ margin: 1rem 0; }
.legal-card dt{ font-weight: 700; margin-top: .6rem; }
.legal-card dd{ margin: .2rem 0 .6rem 0; }

/* Links */
.legal-card a{
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color .2s ease, border-color .2s ease;
}
.legal-card a:hover{
  color: var(--gold-dim);
  border-color: var(--gold-dim);
}

/* Tabellen – für AGB-Abschnitte oder Verantwortliche */
.legal-table{
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.legal-table th,
.legal-table td{
  padding: .75rem .9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.legal-table thead th{
  background: #131313;
  color: #eaeaea;
  font-weight: 700;
}
.legal-table tbody tr:nth-child(odd){
  background: rgba(255,255,255,.02);
}

/* Zitate / Hinweise */
.notice{
  background: #141414;
  border: 1px solid #2a2a2a;
  color: #eaeaea;
  border-left: 4px solid var(--gold);
  padding: .85rem 1rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

/* Code/Pre (falls Rechtsgrundlagen/IDs gelistet werden) */
.legal-card code{
  background: #101010;
  border: 1px solid #222;
  padding: .1rem .35rem;
  border-radius: .35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95em;
}
.legal-card pre{
  background: #101010;
  border: 1px solid #222;
  padding: .9rem;
  border-radius: .5rem;
  overflow: auto;
}

/* Sprunganker-Offset für feste Navbar */
#legal-page [id]{
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* Inline-Separatoren */
.hr{
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 1.25rem 0;
}

/* Footer innerhalb Legal (optional) */
.legal-foot{
  margin-top: 1.25rem;
  font-size: .95rem;
  color: var(--muted);
  text-align: center;
}

/* Fokus & A11y */
:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: .25rem;
}

/* Motion-Respect */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}

/* Mobile Tweaks */
@media (max-width: 750px){
  :root{ --side-pad: 1rem; }
  #legal-page{ margin: calc(var(--nav-h) + 1.25rem) auto 2rem; }
  .legal-card{
    padding: 1rem .95rem;
    border-radius: .8rem;
  }
  .legal-table th,
  .legal-table td{
    padding: .6rem .7rem;
    font-size: .97rem;
  }
}

/* Sehr große Screens */
@media (min-width: 1400px){
  :root{ --container: 980px; }
}

/* Print: schlicht schwarz auf weiß, nur Inhalt */
@media print{
  body{ background: #fff; color: #000; }
  #legal-page{ margin: 0 auto; padding: 0; max-width: 100%; }
  .legal-card{
    background: #fff; color: #000; border: 0; box-shadow: none;
    padding: 0;
  }
  a{ color: #000; text-decoration: underline; }
  .notice{ border-left-color: #000; }
}
