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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden],
[data-if],
[data-if-not] {
  display: none !important;
}

/* Erst nach JS-Sync sichtbar – verhindert offenes Mobile-Menü vor/ohne main.js */
html.js-ready [data-if]:not([hidden]),
html.js-ready [data-if-not]:not([hidden]) {
  display: contents !important;
}

@keyframes pgaFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pgaSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Honeypot-Feld: fuer echte Nutzer und Screenreader unsichtbar, aber kein
   display:none/visibility:hidden/type=hidden, damit einfache Bot-Skripte es
   trotzdem befuellen. */
.pga-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  left: -9999px;
  top: -9999px;
  margin: 0;
  padding: 0;
}

/* Absenden-Button waehrend des Versands: nicht klickbar, optisch gedimmt */
form button[type="submit"]:disabled,
form button[type="submit"].is-submitting {
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
}
