/* =====================================================
   BRANDING.CSS – STOCKHOLM THEME
   Startseite: Horizontal Scroll (Desktop)
   Alle anderen Seiten: Vertikal
   ===================================================== */


/* =====================================================
   BASIS – BODY DARF NIE BLOCKIERT WERDEN
   (wichtig für Tastatur-Scroll)
   ===================================================== */
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: auto;
}


/* =====================================================
   DESKTOP / LAPTOP (≥1025px)
   NUR STARTSEITE → HORIZONTAL SCROLL
   ===================================================== */
@media (min-width: 1025px) {

  /* Horizontaler Wrapper auf der Startseite */
  body.home .horizontal-scroll {
    display: flex;
    flex-direction: row;

    width: 100vw;
    height: 100vh;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* Horizontale Scrollbar sichtbar */
  body.home .horizontal-scroll::-webkit-scrollbar {
    height: 12px;
  }

  /* Slides / Panels */
  body.home .horizontal-scroll > * {
    flex: 0 0 100vw;
    height: 100vh;
    scroll-snap-align: start;
  }

  /* Stockholm Wrapper dürfen Scroll NICHT blockieren */
  body.home .qodef-wrapper,
  body.home .qodef-content,
  body.home .qodef-content-inner,
  body.home .site-wrapper,
  body.home .page-wrapper,
  body.home .main-wrapper {
    overflow: visible !important;
  }
}


/* =====================================================
   TABLET & HANDY (≤1024px)
   IMMER VERTIKALES SCROLLEN
   ===================================================== */
@media (max-width: 1024px) {

  html,
  body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  /* Horizontal-Layout deaktivieren */
  .horizontal-scroll {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .horizontal-scroll > * {
    width: 100%;
    height: auto;
  }

  /* Mobile Wrapper */
  .mobile-wrapper,
  .responsive-container,
  .qodef-wrapper,
  .qodef-content,
  .qodef-content-inner,
  .site-wrapper,
  .page-wrapper,
  .main-wrapper {
    overflow: visible !important;
  }

  /* Abstände */
  section {
    padding: 2rem;
    box-sizing: border-box;
  }

  /* Formulare */
  input,
  textarea,
  select {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    box-sizing: border-box;
  }
}

/* =====================================================
   SAUBERE FONT-VERERBUNG
   ===================================================== */
.your-block-class,
.your-block-class p,
.your-block-class span {
  font-family: inherit !important;
}

