/* ═══════════════════════════════════════════════════════
   BeyondWave — legal.css
   Gemeinsames Stylesheet für Impressum & Datenschutz.
   Setzt das gleiche Design-System wie index.html fort.
═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #060F24;
  --navy-soft: #0B1D3A;
  --blue:      #0B54B8;
  --cyan:      #38BDF8;
  --cyan-l:    #7ADAFF;
  --white:     #FFFFFF;
  --grey:      #8AACCB;
  --grey-l:    #C8D9E8;
  --grey-dim:  rgba(138,172,203,0.35);

  /* Typografie-Skala */
  --text-h1:   clamp(36px, 5vw, 56px);
  --text-h2:   clamp(20px, 2.5vw, 26px);
  --text-h3:   16px;
  --text-h4:   13px;
  --text-body: 14px;
  --text-small: 12px;

  --leading-body: 1.8;
  --leading-heading: 1.15;
}

html { background: var(--navy); }

body {
  min-height: 100vh;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* ── CANVAS / HINTERGRUND ── */
#wave-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.018;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.stripe {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cyan);
  z-index: 2;
}

/* ── PAGE WRAPPER ── */
.page {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 72px;
  max-width: 900px;
}

/* ── HEADER ── */
header {
  padding-top: 44px;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeUp 0.7s 0s ease forwards;
}

.logo-link {
  display: inline-flex;
  text-decoration: none;
}
.logo-img {
  height: 40px;
  width: auto;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--white); }
.nav-back svg { flex-shrink: 0; }

/* ── LEGAL CONTENT ── */
.legal-content {
  flex: 1;
  padding-top: 72px;
  padding-bottom: 80px;
}

/* Page header */
.legal-header {
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s ease forwards;
}

.overline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3.5px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.overline::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

/* ── TYPOGRAFIE-HIERARCHIE ── */

/* H1 — Seitentitel */
h1 {
  font-family: 'Lora', serif;
  font-size: var(--text-h1);
  font-style: italic;
  font-weight: 400;
  line-height: var(--leading-heading);
  letter-spacing: -1px;
  color: var(--white);
}

/* H2 — Hauptabschnitte */
h2 {
  font-family: 'Lora', serif;
  font-size: var(--text-h2);
  font-style: italic;
  font-weight: 400;
  line-height: var(--leading-heading);
  letter-spacing: -0.3px;
  color: var(--white);
  margin-top: 0;
  margin-bottom: 20px;
}

/* H3 — Unterabschnitte */
h3 {
  font-family: 'Poppins', sans-serif;
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--white);
  margin-top: 32px;
  margin-bottom: 12px;
}

/* H4 — Feinebene */
h4 {
  font-family: 'Poppins', sans-serif;
  font-size: var(--text-h4);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.2px;
  color: var(--grey-l);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 24px;
  margin-bottom: 10px;
}

/* ── FLIESSTEXT ── */
p {
  font-size: var(--text-body);
  font-weight: 300;
  line-height: var(--leading-body);
  color: var(--grey-l);
  margin-bottom: 16px;
}
p:last-child { margin-bottom: 0; }

/* ── LISTEN ── */

/* Ungeordnet */
ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
ul li {
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.65;
  color: var(--grey-l);
  padding-left: 20px;
  position: relative;
}
ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 1px;
  background: var(--cyan);
}

/* Geordnet */
ol {
  list-style: none;
  counter-reset: bw-counter;
  padding: 0;
  margin: 12px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
ol li {
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.65;
  color: var(--grey-l);
  padding-left: 28px;
  position: relative;
  counter-increment: bw-counter;
}
ol li::before {
  content: counter(bw-counter) ".";
  position: absolute;
  left: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.3px;
  top: 1px;
}

/* Verschachtelte Listen */
ul ul, ol ol, ul ol, ol ul {
  margin-top: 8px;
  margin-bottom: 0;
  padding-left: 16px;
}

/* ── LINKS ── */
a {
  color: var(--grey-l);
  text-decoration: none;
  border-bottom: 1px solid rgba(138,172,203,0.28);
  transition: color 0.2s, border-color 0.2s;
}
a:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}

/* ── SECTIONS ── */
.legal-body {
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease forwards;
  display: flex;
  flex-direction: column;
  gap: 0;
}

section {
  padding: 40px 0;
  border-top: 1px solid rgba(56,189,248,0.08);
}
section:first-child {
  border-top: none;
  padding-top: 0;
}

/* ── SONDERTEXT ── */
strong {
  font-weight: 500;
  color: var(--white);
}
em {
  font-style: italic;
  color: var(--grey-l);
}
small {
  font-size: var(--text-small);
  color: var(--grey);
  font-weight: 300;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(56,189,248,0.07);
  padding: 26px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s ease forwards;
}
.footer-copy {
  font-size: 10px;
  color: rgba(138,172,203,0.3);
  font-weight: 300;
}
.footer-claim {
  font-family: 'Lora', serif;
  font-size: 11px;
  font-style: italic;
  color: rgba(56,189,248,0.3);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 10px;
  font-weight: 300;
  color: rgba(138,172,203,0.35);
  text-decoration: none;
  border: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--grey-l); border: none; }
.footer-links a.active { color: var(--cyan); }

/* ── ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .page { padding: 0 28px; }
  h1 { font-size: 36px; }
  h2 { font-size: 20px; }
}
@media (max-width: 480px) {
  .page { padding: 0 20px; }
  .footer-claim { display: none; }
  .footer-links { display: none; }
}
