:root {
  --primary: #2563eb;
  --primary-dark: #0745cd;
  --accent: #00AEDE;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  --primary: #2563eb;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.font-display { font-family: 'Oswald', system-ui, sans-serif; letter-spacing: 0.02em; }
.transition-all { transition: all .25s ease; }

/* Parallax */
.parallax { background-attachment: fixed; background-size: cover; background-position: center; background-repeat: no-repeat; }
@media (max-width: 768px) { .parallax { background-attachment: scroll; } }
.parallax-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }

/* Dividers */
.hw-divider     { width: 56px; height: 4px; background: var(--accent); margin: 0 auto 1.5rem; }
.hw-divider-left{ width: 56px; height: 4px; background: var(--accent); margin: 0 0 1.5rem; }

/* Color utilities */
.text-accent  { color: var(--accent); }
.text-primary { color: var(--primary); }

/* Backgrounds */
.bg-warm      { background: #f5f4f2; }
.bg-dark      { background: #1c1c1c; }
.icon-bg      { background: rgba(37,99,235,0.07); }
.icon-bg-light{ background: rgba(37,99,235,0.1); }

/* Buttons */
.bg-primary       { background: var(--primary); }
.bg-primary:hover { background: var(--primary-dark); }

/* Borders */
.border-t-primary { border-top-color: var(--primary); }

/* Forms */
input, textarea, select { outline: none; }
.form-field { border-bottom: 2px solid #e5e7eb; transition: border-color .25s ease; }
.form-field:focus { border-bottom-color: var(--primary); }

/* Touch targets – min 44px for interactive elements */
a, button { min-height: 0; }
nav a, nav button { min-height: 44px; display: inline-flex; align-items: center; }

/* Long text / email break */
.break-all { word-break: break-all; }
a[href^="mailto"] { word-break: break-all; }

/* Maps */
.map-wrap { height: 420px; }
@media (max-width: 640px) { .map-wrap { height: 260px; } }

/* FAQ button text wrap */
.faq-btn-text { flex: 1; min-width: 0; word-break: break-word; }

/* iPhone safe area for cookie banner */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #bm-cookie { padding-bottom: env(safe-area-inset-bottom); }
}

/* ── Mobile section spacing ───────────────────────── */
@media (max-width: 640px) {
  /* Reduce hero vertical padding on very small screens */
  .py-24 { padding-top: 5rem; padding-bottom: 5rem; }

  /* Stats bar font smaller */
  .tracking-\[0\.3em\] { letter-spacing: 0.15em; }

  /* Feature cards compact padding */
  .border.border-white\/15 { padding: 1.25rem; }

  /* Karriere job card header wrapping */
  .karriere-header { flex-wrap: wrap; gap: 4px; }

  /* Kontakt icon boxes */
  .icon-contact { font-size: 0; }
}

/* ── Hero floating badge ──────────────────────────── */
@media (max-width: 767px) {
  .hero-badge { display: none; }
}

/* ── Prevent horizontal overflow from any element ── */
section, div, footer, nav { max-width: 100vw; }
img { max-width: 100%; height: auto; }

/* ── Print/performance ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .transition-all, .animate-bounce { transition: none !important; animation: none !important; }
}