/* ============================================================
   Eltz Websites — Base: Reset + Typografie-Grundlagen
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-semibold); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }

/* Hervorhebungen in Überschriften: nicht kursiv, sondern Markengrün */
h1 em, h2 em, h3 em, h4 em {
  font-style: normal;
  color: var(--color-primary);
}

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

a { color: var(--color-primary-active); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

blockquote {
  font-family: var(--font-serif);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-strong);
  margin: 0;
}

strong, b { font-weight: var(--fw-bold); color: var(--text-strong); }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
th, td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
th { font-family: var(--font-display); font-weight: var(--fw-semibold); color: var(--text-strong); }

::selection { background: var(--eltz-green-200); color: var(--eltz-black); }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* Skip-Link für Tastatur-Nutzer:innen */
.ez-skiplink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  color: var(--text-strong);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.ez-skiplink:focus { left: var(--space-4); top: var(--space-4); }

/* Layout-Container */
.ez-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.ez-container--narrow { max-width: var(--container-narrow); }

/* Motion global deaktivierbar */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
