/* ---------- Schriften ---------- */
/* Source Sans 3 – © 2023 Adobe (http://www.adobe.com/), with Reserved Font Name ‘Source’.
   Lizenz: SIL Open Font License 1.1 – https://openfontlicense.org/open-font-license-official-text/ */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}

/* ---------- Design-Tokens ---------- */
:root {
  --blue: #16274e;
  --grey: #878d95;
  --bar: rgba(135, 141, 149, 0.9);
  --blur: blur(8px);
  --white: #fff;
  --text: #000;

  --container: 1094px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Mobile Werte; grössere Bildschirme überschreiben sie ab 900 px */
  --header-h: 76px;
  --header-h-compact: 64px;
  --header-top: 0px;

  --bar-h: clamp(72px, 6.1vw, 117px);
  --banner-h: clamp(180px, 18.8vw, 362px);

  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h-compact);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: var(--text);
  background: var(--white);
}

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

h1, h2, h3, p, ul {
  margin: 0;
}

a {
  color: inherit;
}

a[href^="tel:"] {
  text-decoration: none;
}

a[href^="tel:"]:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   Aufbau: Mobile first. Die Grundregeln gelten für alle Breiten,
   grössere Layouts kommen nur über aufsteigende min-width-Abfragen hinzu:
   768 px (Tablet), 900 px (Desktop-Navigation), 1200 px (Desktop-Layout).
   ========================================================================== */

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: var(--header-top);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bar);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  transition: top 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  top: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--gutter);
  transition: height 0.25s ease;
}

.site-header.is-scrolled .site-header__inner {
  height: var(--header-h-compact);
}

.site-header__logo {
  display: block;
  flex: none;
}

.site-header__logo img {
  width: 180px;
  height: auto;
  transition: width 0.25s ease;
}

.site-header.is-scrolled .site-header__logo img {
  width: 150px;
}

/* Hamburger-Button */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before { top: -9px; }
.nav-toggle__icon::after { top: 9px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  transform: translateY(-9px) rotate(-45deg);
}

/* Aufklappmenü: höchstens so hoch wie der Platz unter dem Header, sonst scrollbar */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--grey);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 8px var(--gutter) 16px;
}

.site-nav__link {
  text-transform: uppercase;
  position: relative;
  display: block;
  padding: 12px 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 3em;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="true"]::after {
  transform: scaleX(1);
}

/* Gleitender Unterstrich: nur in der Desktop-Navigation sichtbar */
.site-nav__indicator {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero > .bg { object-position: 50% 81%; }

.hero__inner {
  position: relative;
  flex: 1;
  width: 100%;
  padding-top: calc(var(--header-top) + var(--header-h) + 20px);
  padding-bottom: 32px;
}

.hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.hero__text {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
}

.hero__ellipse {
  position: absolute;
  left: 15%;
  bottom: 16%;
  width: 70%;
  height: 10%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(25px);
  z-index: 1;
}

.hero__bottles {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  width: 78%;
  max-width: 505px;
  margin-top: 24px;
}

.hero__claim {
  position: relative;
  z-index: 3;
  grid-column: 1;
  grid-row: 3;
  width: 92%;
  max-width: 683px;
  margin: -28% 0 0 -2%;
  filter: drop-shadow(4px 6px 5px rgba(0, 0, 0, 0.5));
}

/* ---------- Textboxen ---------- */
.box {
  width: 100%;
  max-width: 604px;
  padding: 12px 18px 14px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.box--80 { background: rgba(255, 255, 255, 0.8); }
.box--90 { background: rgba(255, 255, 255, 0.9); }

.box__title {
  font-size: 26px;
  line-height: 31px;
  font-weight: 300;
  color: var(--blue);
  margin-bottom: 12px;
}

.box p + p {
  margin-top: 20px;
}

.box--tight p + p {
  margin-top: 0;
}

/* ---------- Grauer Abschnittsbalken ---------- */
.bar {
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--bar-h);
  background: var(--bar);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: var(--white);
  font-size: clamp(26px, 1.6vw + 12px, 36px);
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ---------- Sortiment ---------- */
.sortiment {
  position: relative;
  isolation: isolate;
  padding-block: 24px 40px;
}

.sortiment > .bg { object-position: 25% 45%; }

/* Weisser Abstand wie im Entwurf */
.sortiment + .range {
  margin-top: 47px;
}

/* ---------- Bild-Banner mit Titel ---------- */
.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--banner-h);
  padding-inline: var(--gutter);
}

.banner__title {
  text-transform: uppercase;
  font-size: clamp(30px, 3.4vw + 4px, 64px);
  line-height: 1.25;
  font-weight: 500;
  color: var(--white);
  text-align: center;
  text-shadow: 5px 4px 4px #000;
}

.banner--produkte > .bg { object-position: 50% 37%; }
.banner--likoere > .bg { object-position: 50% 61%; }
.banner--spezialitaeten > .bg { object-position: 50% 52%; }

/* ---------- Produktbereiche ---------- */
.range {
  padding-bottom: clamp(56px, 5vw, 96px);
}

.range__illu {
  display: block;
  margin-inline: auto;
  width: calc(100% - 2 * var(--gutter));
  height: auto;
}

.range--edelbraende .range__illu { max-width: 1418px; }
.range--likoere .range__illu { max-width: 1431px; margin-top: clamp(16px, 2.5vw, 47px); }
.range--spezialitaeten .range__illu { max-width: 1066px; }

.range__note {
  max-width: calc(800px + 2 * var(--gutter));
  margin: 12px auto 0;
  padding-inline: var(--gutter);
  color: var(--blue);
  text-align: center;
}

/* ---------- Events ---------- */
.events {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.events > .bg { object-position: 62% 50%; }

.events__content {
  padding-block: 24px 56vw;
}

.events .box {
  padding: 16px 18px 20px;
}

.events .box__title {
  margin-bottom: 28px;
}

.events h3 {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

.events .box p + h3,
.events .box ul + p {
  margin-top: 20px;
}

.events .box p + p {
  margin-top: 0;
}

.events .box .gap {
  margin-top: 20px;
}

.events ul {
  padding-left: 24px;
  list-style: disc;
}

/* ---------- Kontakt ---------- */
.kontakt {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.kontakt > .bg { object-position: 53% 85%; }

.kontakt__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 32px 48px;
}

.kontakt__call {
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
}

.kontakt__call .box__title {
  margin-top: 8px;
  margin-bottom: 38px;
}

.kontakt__call p + p {
  margin-top: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue);
  color: var(--white);
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 48px;
  padding-block: 36px 40px;
}

.site-footer address {
  font-style: normal;
}

.site-footer__legal {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.site-footer__legal li + li::before {
  content: "I";
  margin-inline: 0.5em;
}

.site-footer__legal a {
  text-decoration: none;
}

.site-footer__legal a:hover,
.site-footer__legal a[aria-current="page"] {
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline-color: var(--white);
}

/* ---------- Rechtliche Seiten ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: calc(var(--header-top) + var(--header-h) + 100px);
}

.page-hero > .bg { object-position: 50% 70%; }

.legal {
  padding-block: 36px 64px;
}

.legal__body {
  max-width: 800px;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.legal__body h2 {
  font-size: 30px;
  line-height: 35px;
  font-weight: 300;
  color: var(--blue);
  margin: 40px 0 12px;
}

.legal__body h3 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--blue);
  margin: 28px 0 6px;
}

.legal__body h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 20px 0 4px;
}

.legal__body > :first-child {
  margin-top: 0;
}

.legal__body p + p,
.legal__body p + ul,
.legal__body ul + p {
  margin-top: 0.8em;
}

.legal__body ul {
  padding-left: 1.4em;
}

.legal__body dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 1.25em;
  margin: 0.6em 0 0;
}

.legal__body dt {
  margin-top: 0.4em;
  font-weight: 700;
}

.legal__body dd {
  margin: 0;
}

/* ==========================================================================
   Ab 768 px: Tablet
   ========================================================================== */
@media (min-width: 768px) {
  .hero__inner {
    padding-top: calc(var(--header-top) + var(--header-h) + 28px);
  }

  .hero__stage {
    grid-template-columns: minmax(0, 604fr) minmax(0, 420fr);
    column-gap: 24px;
  }

  .hero__bottles {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    margin-top: 0;
  }

  .hero__ellipse {
    left: auto;
    right: 0;
    bottom: 10%;
    width: 40%;
    height: 14%;
  }

  .hero__claim {
    grid-row: 2;
    width: 100%;
    margin: -16px 0 0 -3%;
  }

  .box__title {
    font-size: 30px;
    line-height: 35px;
  }

  .sortiment {
    min-height: 583px;
    padding-block: 34px 48px;
  }

  .events {
    min-height: 1286px;
  }

  .events > .bg { object-position: 46% 50%; }

  .events__content {
    padding-block: 34px 120px;
  }

  .events .box__title {
    margin-bottom: 52px;
  }

  .kontakt {
    min-height: 882px;
  }

  .kontakt__content {
    gap: 104px;
    padding-block: 65px 93px;
  }

  .kontakt__call {
    min-height: 282px;
    font-size: 24px;
    line-height: 28px;
  }

  .site-footer {
    font-size: 24px;
    line-height: 28px;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 253px;
    padding-block: 51px 48px;
  }

  .page-hero {
    height: calc(var(--header-top) + var(--header-h) + 120px);
  }

  .legal {
    padding-block: 56px 96px;
  }

  .legal__body {
    font-size: 17px;
  }

  .legal__body dl {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .legal__body dt {
    margin-top: 0;
    font-weight: inherit;
  }
}

/* ==========================================================================
   Ab 900 px: Desktop-Navigation statt Hamburger
   ========================================================================== */
@media (min-width: 900px) {
  :root {
    --header-h: 117px;
    --header-h-compact: 84px;
    --header-top: 60px;
  }

  .site-header__inner {
    padding-inline: calc(var(--gutter) + 44px);
  }

  .site-header__logo img {
    width: 259px;
  }

  .site-header.is-scrolled .site-header__logo img {
    width: 200px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-nav__list {
    flex-direction: row;
    gap: 4px 40px;
    padding: 0;
  }

  .site-nav__link {
    padding: 6px 0;
    font-size: 22px;
  }

  .site-nav__link::after {
    bottom: 2px;
    right: 0;
    width: auto;
  }

  .site-nav.has-indicator .site-nav__link::after {
    display: none;
  }

  .site-nav__indicator {
    display: block;
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--white);
    opacity: 0;
    pointer-events: none;
    transform: translateX(0);
    transition:
      transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
      width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 0.2s ease;
  }

  .site-nav__indicator.is-instant {
    transition: opacity 0.2s ease;
  }
}

/* ==========================================================================
   Ab 1200 px: Desktop-Layout nach Figma
   ========================================================================== */
@media (min-width: 1200px) {
  .hero {
    min-height: 883px;
  }

  .hero__inner {
    min-height: 766px;
    padding-block: 0;
  }

  .hero__stage {
    display: block;
    height: 100%;
  }

  .hero__text {
    position: absolute;
    left: 0;
    top: 204px;
    width: 604px;
  }

  .hero__ellipse {
    left: 675px;
    right: auto;
    top: 552px;
    bottom: auto;
    width: 399px;
    height: 142px;
  }

  .hero__bottles {
    position: absolute;
    left: 612px;
    top: 149px;
    width: 505px;
  }

  .hero__claim {
    position: absolute;
    left: -29px;
    top: 441px;
    width: 683px;
    margin: 0;
  }

  .site-footer__inner {
    grid-template-columns: 800px minmax(0, 1fr);
    gap: 28px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
