/* =========================================================
   Gluck Gluck Glück – Stylesheet
   Colours are taken from the flyer and the juice posters.
   ========================================================= */

@font-face {
  font-family: "Dela Gothic One";
  src: url("../fonts/DelaGothicOne.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Rakkas";
  src: url("../fonts/Rakkas.woff") format("woff");
  font-display: swap;
}

:root {
  --teal:   #00b0ae;
  --navy:   #003d73;
  --ink:    #011c2f;
  --yellow: #fad026;
  --orange: #f58e41;
  --red:    #eb5149;
  --blue:   #2e26d4;   /* ultramarine of the posters */
  --paper:  #e6e3de;   /* light grey of the posters */
  --black:  #0a0a0a;
  --white:  #ffffff;

  --display: "Dela Gothic One", "Arial Black", sans-serif;
  --serif:   "Rakkas", Georgia, serif;
  --sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max: 1240px;
  --pad: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--black);
  background: var(--paper);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }

/* ---------- STÖRER (round badge, fixed top right) ---------- */
.stoerer {
  position: fixed;
  z-index: 50;
  top: clamp(12px, 2.5vw, 28px);
  right: clamp(12px, 2.5vw, 28px);
  width: clamp(122px, 15vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  line-height: 1.05;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(1, 28, 47, .28);
  transform: rotate(-10deg);
  transition: transform .3s ease, background-color .3s ease;
  animation: wobble 6s ease-in-out infinite;
}
.stoerer:hover { transform: rotate(-4deg) scale(1.05); animation-play-state: paused; }
.stoerer__day    { font-family: var(--serif); font-size: clamp(13px, 1.5vw, 16px); }
.stoerer__date   { font-family: var(--display); font-size: clamp(22px, 2.8vw, 32px); letter-spacing: -.02em; margin: 2px 0 4px; }
.stoerer__status { font-family: var(--serif); font-size: clamp(14px, 1.6vw, 18px); line-height: 1.05; max-width: 86%; }
.stoerer__note   { font-size: clamp(11px, 1.1vw, 13px); font-weight: 600; margin-top: 4px; opacity: .8; max-width: 80%; }

.stoerer.is-absent { background: var(--red); color: var(--white); }

@keyframes wobble {
  0%, 100% { transform: rotate(-10deg); }
  50%      { transform: rotate(-6deg) scale(1.03); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--teal);
  color: var(--white);
  overflow: hidden;
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(110px, 14vw, 150px) var(--pad) clamp(80px, 10vw, 120px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: min(92vh, 860px);
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.hero__lead {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.25;
  color: var(--ink);
  margin: 28px 0 32px;
}
.hero__nav { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__nav a {
  font-family: var(--serif);
  font-size: 18px;
  text-decoration: none;
  padding: 8px 18px;
  border: 2px solid var(--white);
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.hero__nav a:hover { background: var(--white); color: var(--teal); }

.hero__visual { position: relative; aspect-ratio: 1; width: 112%; }
.hero__circle {
  position: absolute;
  inset: 12% 0 0 12%;
  border-radius: 50%;
  background: var(--navy);
}
.hero__ginger {
  position: absolute;
  width: 88%;
  left: 2%;
  top: -2%;
  filter: drop-shadow(-20px 30px 30px rgba(1, 28, 47, .35));
  will-change: transform;
}
.hero__logo {
  position: absolute;
  width: 42%;
  right: 4%;
  bottom: 2%;
}

/* ---------- WAVES ---------- */
.wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(50px, 7vw, 100px);
}
.wave--top { top: calc(-1 * clamp(50px, 7vw, 100px) + 1px); bottom: auto; }

/* ---------- JUICE SECTIONS ---------- */
.juice {
  position: relative;
  padding: clamp(70px, 10vw, 140px) 0;
  overflow: hidden;
}

.juice__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.juice--flip .juice__inner { grid-template-columns: 1.15fr 1fr; }
.juice--flip .juice__text  { order: 2; }
.juice--flip .stage        { order: 1; }

.juice__title {
  font-family: var(--display);
  font-size: clamp(54px, 9vw, 128px);
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--black);
}
.juice__title span { display: block; color: var(--blue); }

.juice__ingredients {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.2;
  margin: 26px 0 20px;
}
.juice__desc { max-width: 34em; margin: 0 0 24px; }

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.facts li {
  padding: 12px 16px;
  background: rgba(255, 255, 255, .55);
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.45;
}
.facts strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  color: var(--blue);
}

.badges { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li {
  font-family: var(--serif);
  font-size: 18px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
}


/* ---------- STAGE (floating ingredients with parallax) ---------- */
.stage {
  position: relative;
  aspect-ratio: 1 / 1.08;
  width: 100%;
}
.ing {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  will-change: transform;
}
.ing img {
  width: 100%;
  filter: drop-shadow(-14px 26px 22px rgba(70, 55, 35, .28));
  opacity: 0;
  transform: scale(.6) translateY(40px);
  transition: opacity .8s ease var(--d), transform 1s cubic-bezier(.2, .9, .3, 1.25) var(--d);
}
.stage.is-visible .ing img { opacity: 1; transform: none; }
.ing--blur img { filter: blur(4px) drop-shadow(-14px 26px 22px rgba(70, 55, 35, .2)); }

/* ---------- MARKT ---------- */
.markt {
  position: relative;
  background: var(--teal);
  color: var(--white);
  margin-top: clamp(50px, 7vw, 100px);
  padding: clamp(50px, 7vw, 90px) 0 clamp(70px, 9vw, 120px);
}
.markt__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 80px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.section-title--dark { color: var(--black); font-size: clamp(36px, 4.6vw, 62px); }
.markt__lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25;
  color: var(--ink);
  margin: 24px 0 12px;
}
.markt__small { font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); margin: 0 0 18px; }
.map-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: 18px;
  text-decoration: none;
  padding: 8px 18px;
  border: 2px solid var(--white);
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.map-link:hover { background: var(--white); color: var(--teal); }

.calendar {
  background: var(--navy);
  border-radius: 28px;
  padding: 28px 30px;
}
.calendar h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 14px; }
.calendar ul { list-style: none; margin: 0; padding: 0; }
.calendar li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.calendar li:first-child { border-top: 0; }
.calendar .date { font-family: var(--serif); font-size: 20px; }
.calendar .tag {
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  white-space: nowrap;
}
.calendar .tag.is-absent { background: var(--red); color: var(--white); }
.calendar .note { display: block; font-size: 14px; opacity: .75; }

/* ---------- ABOUT ---------- */
.about { padding: clamp(70px, 10vw, 140px) 0; }
.about__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.about__photo {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__lead { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; margin: 22px 0 14px; }
.about__sign { font-family: var(--serif); font-size: 28px; color: var(--blue); margin: 0; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: var(--white);
  padding: 56px var(--pad);
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.footer__logo { width: 120px; }
.footer__info p { margin: 4px 0; }
.footer__info a { color: var(--yellow); }
.footer__legal { font-size: 14px; opacity: .8; }
.footer__legal a { color: var(--white); }

/* ---------- LEGAL PAGE ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 60px var(--pad) 100px; }
.legal h1 { font-family: var(--display); font-size: clamp(36px, 6vw, 60px); text-transform: uppercase; line-height: 1; margin-bottom: 30px; }
.legal h2 { font-family: var(--serif); font-size: 26px; margin: 36px 0 8px; color: var(--blue); }
.legal .back { font-family: var(--serif); font-size: 20px; }

/* ---------- MOBILE ---------- */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 130px; }
  .hero__visual { width: min(100%, 440px); margin: 0 auto; }
  .juice__inner, .juice--flip .juice__inner { grid-template-columns: 1fr; }

  .juice__inner { grid-template-columns: 1fr; }
  .juice .stage, .juice--flip .stage { order: -1; width: min(100%, 480px); margin: 0 auto; }
  .juice--flip .juice__text { order: 2; }

  .markt__inner { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; text-align: center; }
  .about__photo { width: 200px; margin: 0 auto; }
  .footer { flex-direction: column; text-align: center; }
}

/* People who prefer less motion: no parallax, no wobble */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stoerer { animation: none; }
  .ing img { transition: none; opacity: 1; transform: none; }
}
