/* ==========================================================================
   BEEVANTA – BASE
   Reset, Typografie-Grundlagen, Container, Utilities
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Sticky-Nav beim Ankersprung nicht über die Überschrift legen */
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-charcoal);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* === FOKUS-SICHTBARKEIT (Barrierefreiheit) === */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip-Link für Tastatur-Navigation */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: calc(var(--z-cookie) + 1);
  background: var(--color-gold);
  color: var(--color-royal-blue);
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 0 0 var(--button-radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* === TYPO-UTILITIES === */
.section-title {
  font-size: var(--text-h2);
  text-align: center;
  color: var(--color-charcoal);
}

.section-sub {
  font-size: var(--text-body);
  color: var(--color-muted-light);
  text-align: center;
  max-width: 600px;
  margin: 16px auto 0;
}

.text-gold { color: var(--color-gold); }
.text-center { text-align: center; }

.eyebrow {
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-snow);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === SCROLL-REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === REDUCED MOTION === */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile) 0;
  }

  .container,
  .container-narrow {
    padding: 0 20px;
  }
}
