/* ==========================================
   voloop.io - Legal Pages Shared Styles
   Used by impressum.html, datenschutz.html, agb.html
   ========================================== */

:root[data-theme="dark"] {
  --bg: #0A0D14;
  --bg-grad-1: rgba(94,234,212,0.10);
  --bg-grad-2: rgba(139,92,246,0.08);
  --surface: #10141F;
  --surface-2: #161B2A;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.14);
  --text: #F1F4FB;
  --text-2: #9BA3B8;
  --text-3: #5C6478;
  --brand: #5EEAD4;
  --brand-2: #8B5CF6;
  --brand-glow: rgba(94,234,212,0.18);
}
:root[data-theme="light"] {
  --bg: #FAFBFD;
  --bg-grad-1: rgba(20,184,166,0.12);
  --bg-grad-2: rgba(139,92,246,0.09);
  --surface: #FFFFFF;
  --surface-2: #F1F3F8;
  --border: rgba(15,23,42,0.08);
  --border-strong: rgba(15,23,42,0.18);
  --text: #0F172A;
  --text-2: #475569;
  --text-3: #94A3B8;
  --brand: #0D9488;
  --brand-2: #7C3AED;
  --brand-glow: rgba(13,148,136,0.18);
}
:root {
  --display: 'Geist', system-ui, sans-serif;
  --body: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', monospace;
  --serif: 'Instrument Serif', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, var(--bg-grad-1), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, var(--bg-grad-2), transparent 70%);
  pointer-events: none;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--brand); color: #FFFFFF; }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 28px; width: 100%; }

/* === NAV === */
nav.top {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.nav-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 9px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px var(--brand-glow), inset 0 0 0 1px rgba(255,255,255,0.18);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover .logo-mark { transform: rotate(180deg) scale(1.06); }
.logo-mark svg { width: 18px; height: 18px; }
.logo-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.back-link {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.22s;
}
.back-link:hover {
  color: var(--text);
  border-color: var(--brand);
  transform: translateY(-1px);
  text-decoration: none;
}
.back-link svg { width: 12px; height: 12px; transition: transform 0.3s; }
.back-link:hover svg { transform: translateX(-3px); }

/* === MAIN === */
main {
  flex: 1;
  padding: 56px 0 80px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 3px var(--brand-glow);
}

h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}
.lead {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 40px;
  max-width: 640px;
}

h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text);
}
h2:first-of-type { margin-top: 16px; }

h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

p {
  margin-bottom: 14px;
  color: var(--text);
}
p strong { color: var(--text); font-weight: 600; }

ul, ol {
  margin: 0 0 18px 24px;
  color: var(--text);
}
li {
  margin-bottom: 6px;
}

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* Placeholder-Style: zeigt User wo Daten ergänzt werden müssen */
.placeholder {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  border-radius: 4px;
  color: #d97706;
  font-family: var(--mono);
  font-size: 0.92em;
  font-weight: 500;
}
:root[data-theme="dark"] .placeholder {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}

/* Box für wichtige Hinweise */
.notice {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 14.5px;
}
.notice strong { color: var(--brand); }

/* TOC (Table of Contents) */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 40px;
}
.toc-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  list-style: decimal;
  font-size: 14.5px;
}
.toc li {
  margin-bottom: 4px;
}
.toc a {
  color: var(--text-2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--brand);
}

/* Last-updated */
.last-updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* === FOOTER === */
footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
}
.footer-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner a { color: var(--text-3); transition: color 0.2s; }
.footer-inner a:hover { color: var(--text-2); text-decoration: none; }
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .wrap, .nav-inner, .footer-inner { padding: 0 20px; }
  main { padding: 36px 0 56px; }
  h1 { font-size: 28px; }
  h2 { font-size: 20px; margin-top: 36px; }
  .lead { font-size: 15.5px; margin-bottom: 28px; }
  .back-link span { display: none; }
  .back-link { padding: 8px 10px; }
  .footer-inner { justify-content: center; text-align: center; }
}
