/* ==========================================================================
   KOBIL — Base: Reset, Typografie, Layout, gemeinsame Bausteine
   ========================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.44;
  color: var(--navy);
  background: var(--navy-20);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Seiten-Layout: Content-Spalte mit Karten-Sektionen ---- */

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

@media (max-width: 768px) {
  :root {
    --page-pad: 16px;
    --section-gap: 12px;
  }
}

/* ---- Durchgehende weiße Fläche für gruppierte Sektionen (Industries) ---- */

.page-surface {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: clip;
}

/* Variante: lückenloser Stapel direkt auf dem Seitenhintergrund (Company) */
.page-surface--flush {
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

/* ---- Eyebrow / Tagline: "● SECTION LABEL" ---- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--navy);
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---- Buttons (Basis — Sektionen verfeinern bei Bedarf) ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: #1e4fd6;
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
}

.btn--dark:hover {
  background: #1a3164;
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy-60);
}

.btn--outline:hover {
  border-color: var(--navy);
}

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-70);
}

.btn--ghost-light:hover {
  background: var(--white-20);
}

.btn--small {
  font-size: 14px;
  line-height: 18px;
  padding: 10px 18px;
}

/* ---- Scroll-Reveal (main.js beobachtet [data-reveal]) ---- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Screenreader-only ---- */

.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;
}
