/* ===========================================
   RESET.CSS – Kirda Solutions
   Baseline reset for consistent cross-browser rendering.
   =========================================== */

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

html {
  scroll-behavior: smooth;
  /* Anker-Ziele nicht unter der fixen Navbar verstecken */
  scroll-padding-top: var(--navbar-height, 80px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  /* Erlaubt width/height-Attribute (CLS-Schutz) ohne Verzerrung bei skalierter Breite */
  height: auto;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  line-height: 1.2;
}

p {
  overflow-wrap: break-word;
}

/* Remove default focus styles, we add our own */
:focus {
  outline: none;
}

/* Accessible focus-visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--brand-petrol, #1A786E);
  outline-offset: 2px;
}

/* Prevent iOS zoom on inputs */
@media (max-width: 768px) {
  input, textarea, select {
    font-size: 16px;
  }
}
