/* === BASE.CSS — Custom Properties, Reset, Typografie === */

:root {
  --color-primary:    #599122;
  --color-accent:     #8FD300;
  --color-bg:         #E2EAD5;
  --color-bg-white:   #ffffff;
  --color-text:       #333333;
  --color-text-light: #666666;
  --color-shadow:     rgba(26, 26, 26, 0.55);
  --color-body-bg:    #1e1e1e;
  --color-border:     #d0d8c5;

  --font-body: Arial, Helvetica, sans-serif;

  --radius-page: 15px;
  --radius-card: 10px;

  --max-width: 960px;

  --spacing-xs: 0.375rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
}

[data-theme="dark"] {
  /* Abstufung wie Light Mode:
     body-bg (Rahmen) → bg-white (Inhalt, hellste Fläche) → bg (Kacheln, etwas dunkler) */
  --color-body-bg:    #000000;   /* Außenrahmen — dunkelste Ebene */
  --color-bg-white:   #303030;   /* Hauptinhalt  — hellste Ebene  */
  --color-bg:         #272727;   /* Kacheln/Sidebar — etwas dunkler als bg-white */
  --color-text:       #e8e8e8;
  --color-text-light: #b0b0b0;
  --color-shadow:     rgba(0, 0, 0, 0.7);
  --color-border:     #484848;
}

[data-theme="dark"] .site-header {
  border-bottom: 1px solid var(--color-border);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-body-bg);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: disc;
  padding-left: 1.5rem;
}

h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

h4 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}

p {
  margin-bottom: 0.75rem;
}

p:last-child {
  margin-bottom: 0;
}
