:root {
  /* Piano-black palette, matched to styles.css. The old --sage* names are kept
     so the rest of this file needs no changes — they now hold platinum tones. */
  --void: #050506;
  --bg-0: #0b0c0e;
  --bg-2: #16181c;
  --sage:        #c3c8d0;   /* silver */
  --sage-bright: #eef1f5;   /* platinum */
  --sage-glow:   #ffffff;
  --sage-dim:    rgba(255, 255, 255, 0.16);
  --cream: #ffffff;
  --line: rgba(255, 255, 255, 0.07);
  --text: #d8dce1;
  --text-dim: #5f656d;
}

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

body {
  background: var(--void);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1.2rem;
  background: var(--sage);
  color: var(--void);
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sage-glow);
  outline-offset: 3px;
}

.bg-base {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 60% at 70% 20%, rgba(238, 241, 245, 0.05), transparent 60%),
    linear-gradient(180deg, #020304 0%, #050608 50%, #020304 100%);
}

nav {
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  background: rgba(2, 3, 4, 0.7);
}

.nav-logo {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: var(--sage-bright);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.nav-back {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-back:hover { color: var(--sage-bright); }

.legal {
  flex: 1;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 3rem 6rem;
}

.legal-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.legal h1 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 3rem;
}

.legal h2 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--sage-bright);
  margin: 2.8rem 0 1rem;
}

.legal h3 {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 1.8rem 0 0.5rem;
}

.legal p, .legal li { margin-bottom: 1rem; font-size: 0.98rem; }
.legal ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--sage-bright); text-decoration: none; border-bottom: 1px solid var(--sage-dim); }
.legal a:hover { color: var(--sage-glow); }

.legal .placeholder { color: var(--text-dim); font-style: italic; }

.legal .note {
  border-left: 2px solid var(--sage-dim);
  padding: 0.8rem 0 0.8rem 1.4rem;
  margin: 1.5rem 0;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Centered hero-style block for the 404 page */
.center-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
}
.center-stage .code {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: clamp(4rem, 16vw, 9rem);
  color: var(--sage-bright);
  line-height: 1;
  letter-spacing: 0.05em;
  text-shadow: 0 0 40px rgba(238, 241, 245, 0.18);
}
.center-stage h1 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--cream);
  margin: 1.5rem 0 1rem;
}
.center-stage p { max-width: 460px; margin-bottom: 2.2rem; }
.center-stage .btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--sage);
  color: var(--void);
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}
.center-stage .btn:hover { background: var(--sage-bright); box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); }

footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  background: var(--void);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
footer a { color: var(--sage-bright); text-decoration: none; }
footer a:hover { color: var(--sage-glow); }

/* Link-styled button (e.g. "Cookie-Einstellungen" in footer) */
.linklike {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--sage-bright);
  cursor: pointer;
}
.linklike:hover { color: var(--sage-glow); }

@media (max-width: 700px) {
  nav { padding: 1rem 1.5rem; }
  .legal { padding: 3rem 1.5rem 4rem; }
  footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
}

/* Dragon crest — shared logo asset, drawn in platinum (see dragon.svg). */
.crest { height: 1.6em; width: auto; flex: none; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
