/* ── Reset & Variables ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --text:    #1a1a1a;
  --muted:   #666;
  --border:  #e5e5e5;
  --bg:      #ffffff;
  --bg-soft: #f8f8f8;
  --accent:  #2563eb;
  --radius:  6px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Language Toggle ─────────────────────────────── */
html[lang="en"] [lang="de"] { display: none; }
html[lang="de"] [lang="en"] { display: none; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 16px;
}

.lang-toggle button {
  background: none;
  border: none;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.lang-toggle button.active {
  background: var(--accent);
  color: #fff;
}

.lang-toggle button:hover:not(.active) {
  background: var(--bg-soft);
  color: var(--text);
}

/* ── Accessibility ────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 100;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 8px;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Layout ─────────────────────────────────────── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}

.nav-name:hover {
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Footer ───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

footer p { font-size: 0.8rem; color: var(--muted); }

.footer-legal {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ── Legal page content ───────────────────────────── */
.legal-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-content .legal-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.65;
}

.legal-content ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.legal-content li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 4px;
}

.legal-content a {
  color: var(--accent);
}

.legal-content .placeholder {
  background: #fff3cd;
  border: 1px dashed #ffc107;
  border-radius: var(--radius);
  padding: 2px 8px;
  font-size: 0.85rem;
  color: #856404;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links { gap: 16px; }
}
