/* Global typography and brand styling for Betten Sauer */
@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/WorkSans-Light.woff2') format('woff2'),
       url('../fonts/WorkSans-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/WorkSans-LightItalic.woff2') format('woff2'),
       url('../fonts/WorkSans-LightItalic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/WorkSans-Regular.woff2') format('woff2'),
       url('../fonts/WorkSans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/WorkSans-Italic.woff2') format('woff2'),
       url('../fonts/WorkSans-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/WorkSans-SemiBold.woff2') format('woff2'),
       url('../fonts/WorkSans-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/WorkSans-SemiBoldItalic.woff2') format('woff2'),
       url('../fonts/WorkSans-SemiBoldItalic.woff') format('woff');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/WorkSans-Bold.woff2') format('woff2'),
       url('../fonts/WorkSans-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/WorkSans-BoldItalic.woff2') format('woff2'),
       url('../fonts/WorkSans-BoldItalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

html,
body {
  font-family: 'Work Sans', sans-serif;
  color: #4a4a4a;
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.7;
}

:root {
  --site-max-width: 1200px;
}

.max-w-3xl,
.max-w-4xl,
.max-w-5xl,
.max-w-6xl,
.max-w-7xl {
  max-width: var(--site-max-width) !important;
  width: 100%;
}

.hero-mobile-img {
  aspect-ratio: 2 / 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #6793c4;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.25;
}

p {
  font-size: 1rem;
  line-height: 1.75;
}

.text-shadow {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

header {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled a {
  color: #3a3a3a !important;
  text-shadow: none;
}

.text-base {
  font-size: 1rem !important;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .sm\:text-lg {
    font-size: 1.125rem !important;
    line-height: 1.75;
  }
}

[data-fade-on-scroll].opacity-0 {
  opacity: 0;
}

/* Produktwelten: gleiche Höhe für alle Karten */
.products-swiper .swiper-wrapper {
  align-items: stretch;
}

.products-swiper .swiper-slide {
  display: flex;
  height: auto !important;
}

.products-swiper .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.products-swiper .product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
/* =========================================================
   MODAL (RÜCKRUF)
   ========================================================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideIn 0.3s ease;
}

.close-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close-modal:hover {
  color: #000;
}

@media (max-width: 1023px) {
  body header,
  body header.bg-transparent,
  body header.header-white-mobile {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  body header a,
  body header.header-white-mobile a {
    color: #0f1e2f !important;
    text-shadow: none;
  }

  body header #menuToggle,
  body header.header-white-mobile #menuToggle {
    color: #0f1e2f !important;
    background: #fff !important;
    border: 1px solid rgba(15, 30, 47, 0.1);
  }
}
