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

:root {
  --gold: #977357;
  --gold-light: #e2c882;
  --dark: #0d0b09;
  --surface: #161210;
  --surface2: #1e1a16;
  --text: #f0e8d8;
  --muted: #8a7d6a;
  --accent: #c8a95a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 2;
  overflow-x: hidden;
}

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

/* ── NAV ── */
nav::before {
      content: '';
      position: absolute;
      top: calc(-1 * env(safe-area-inset-top));
      left: 0; right: 0;
      height: env(safe-area-inset-top);
      background: #0d0b09;
      pointer-events: none;
    }
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  padding-top: calc(1.5rem + env(safe-area-inset-top));
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13,11,9,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,169,90,0.08);
  min-height: calc(80px + env(safe-area-inset-top));
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-brand { font-size: 1.4rem; }
}

/* ── HERO ── */
.legal-hero {
  padding: 12rem 1.5rem 5rem;
  text-align: center;
  border-bottom: 1px solid rgba(200,169,90,0.1);
}

.legal-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
  animation: fadeUp 1s ease both;
}

.legal-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
  animation: fadeUp 1s 0.15s ease both;
}

.legal-title em {
  font-style: italic;
  color: var(--gold);
}

.legal-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 2rem auto 0;
  opacity: 0.5;
  animation: fadeUp 1s 0.3s ease both;
}

/* ── CONTENT ── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

.legal-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(200,169,90,0.08);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legal-section h2::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}

.legal-section h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 0.8rem;
  opacity: 0.85;
}

.legal-section p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 1.2rem;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  list-style: none;
  margin: 0.8rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legal-section ul li {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  padding-left: 1.5rem;
  position: relative;
}

.legal-section ul li::before {
  content: '◈';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.6rem;
  top: 0.55em;
  opacity: 0.7;
}

.legal-section a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(151,115,87,0.3);
  transition: border-color 0.2s, color 0.2s;
}

.legal-section a:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.legal-section strong {
  color: var(--text);
  font-weight: 500;
}

/* Highlight-Box (Datenschutz) */
.legal-highlight {
  border-left: 2px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
  opacity: 0.9;
}

/* ── BACK BUTTON ── */
.legal-back {
  margin-top: 4rem;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* ── FOOTER ── */
footer {
  background: #000;
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(200,169,90,0.08);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-sub {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #3a3530;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}