/* ============================================================
   BASIS — Reset, Typografie, Scrollbar
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg-page);
}
body {
  margin: 0;
  padding: 0;
  background: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

/* Fixes Hintergrundbild-Layer (wie auf der Live-Seite) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/images/site/background/body_bg.jpg") center/cover no-repeat;
  z-index: -1;
  will-change: transform;
}

h1, h2, h3, h4 { margin: 0 0 var(--gap-sm); font-weight: 600; color: var(--text-primary); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); color: var(--accent); }

p { margin: 0 0 var(--gap-sm); color: var(--text-secondary); }

a { color: var(--text-secondary); text-decoration: none; }
a:hover, a:focus { color: var(--accent); }
a:active { color: var(--link-active); }

img { max-width: 100%; display: block; }

/* Reset für native Button-Optik (Safari/Chrome setzen sonst eigene Hintergründe/Rahmen) */
button {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.text-muted { color: var(--text-muted); font-size: var(--fs-meta); }

/* Scrollbar (Webkit + Firefox) — Track transparent, Thumb grau */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Layout-Grundgerüst — Namen exakt wie in includes/header.php / footer.php */
.site-content {
  min-height: calc(100vh - 64px);
  padding: var(--gap-lg) 0;
}
.site-content-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gap-md);
}