/* Cross-device polish: phone / tablet / laptop / desktop */

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

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

/* Keep allergen tables scrollable without page-level overflow */
.allergen-table-wrap {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

.allergen-band .text-link {
  white-space: normal;
}

/* Touch targets */
.menu-button {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Touch padding only when mobile header shows .header-quick (see styles @980) */
@media (max-width: 980px) {
  .header-quick {
    min-height: 44px;
    align-items: center;
    padding: 8px 4px;
  }
}

.page-header .mobile-nav a,
.mobile-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-nav .mobile-nav-cta,
.page-header .mobile-nav .mobile-nav-cta {
  margin-top: 12px;
  margin-bottom: 4px;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--red-deep, #c62828);
  color: #fff !important;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.mobile-nav .mobile-nav-cta:hover,
.mobile-nav .mobile-nav-cta:focus-visible,
.page-header .mobile-nav .mobile-nav-cta:hover,
.page-header .mobile-nav .mobile-nav-cta:focus-visible {
  background: var(--red, #ef342a);
  color: #fff !important;
}

.button,
.nav-cta {
  min-height: 46px;
}

/* Forms: prevent iOS zoom + comfortable touch */
@media (max-width: 980px) {
  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .field input,
  .field select,
  .field textarea,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    min-height: 48px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-form textarea {
    min-height: 140px;
  }

  .contact-form .button,
  .contact-form button[type="submit"] {
    width: 100%;
  }
}

/* Tablet landscape / small laptop */
@media (max-width: 1100px) and (min-width: 981px) {
  :root {
    --shell: min(100% - 48px, 960px);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.9fr 1fr 0.9fr;
    gap: 36px;
  }

  .section-title-row,
  .range-head {
    gap: 36px;
  }
}

/* Tablet portrait */
@media (max-width: 980px) {
  .section-title-row,
  .range-head,
  .assortment-section-head,
  .hauzenberg-title {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .page-hero {
    padding: 72px 0 52px;
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 7vw, 3.2rem);
  }

  .legal {
    width: min(940px, calc(100% - 32px));
    padding-top: 48px;
  }

  .thanks-main {
    width: min(640px, calc(100% - 32px));
  }

  .direct-contact a {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }
}

/* Phone */
@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 24px);
  }

  html {
    scroll-padding-top: 88px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .concept-heading h2,
  .uses-intro h2,
  .organizer-head h2,
  .contact-copy h2 {
    font-size: clamp(1.85rem, 8.2vw, 2.25rem);
  }

  .page-hero {
    padding: 64px 0 44px;
  }

  .page-hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .page-trailer-strip {
    grid-template-columns: 1fr;
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-trailer-strip figure:first-child {
    grid-column: auto;
  }

  .menu-line {
    gap: 12px;
  }

  .menu-line strong {
    white-space: nowrap;
  }

  .event-menu > div {
    gap: 12px;
  }

  .allergen-table th,
  .allergen-table td {
    padding: 14px 12px;
  }

  .ippis-consent,
  .ippis-consent__panel {
    max-width: 100%;
  }

  .footer-social {
    flex-wrap: wrap;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  :root {
    --shell: calc(100% - 20px);
  }

  .brand {
    width: 88px;
  }

  .header-quick {
    font-size: 0.78rem;
    margin-right: 6px;
  }

  .hero-brand img {
    width: min(240px, 82vw);
  }
}

/* Large desktop: keep content readable */
@media (min-width: 1440px) {
  :root {
    --shell: min(100% - 64px, 1180px);
  }
}

/* Cookie / consent safe area on notched phones */
@media (max-width: 620px) {
  .ippis-consent {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
}
