/* Spritzbude Söflingen */

@font-face {
  font-family: "Fraunces";
  src: url("fraunces.woff2") format("woff2-variations"), url("fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0f02a9;
  --coral: #e86054;
  --cream: #fdf5ea;
  --font: "Fraunces", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 5vw, 48px);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--blue);
  color: var(--coral);
  font-family: var(--font);
  font-variation-settings: "SOFT" 60, "WONK" 0;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.section--cream :focus-visible { outline-color: var(--blue); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: .6rem 1rem; background: var(--cream); color: var(--blue);
}
.skip:focus { top: 1rem; }

/* ---------- Typo ---------- */
.eyebrow,
h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.1;
}
/* Lange deutsche Wörter dürfen auf schmalen Displays umbrechen */
h1, h2, h3 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
h2 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); letter-spacing: .02em; }
h3 { font-size: 1.25rem; letter-spacing: .14em; }

/* Linie mit Rauten, wie auf der Karte */
.rule {
  display: flex; align-items: center;
  width: min(100%, 22rem); margin: 1.5rem auto;
  color: var(--coral);
}
.rule::before, .rule::after {
  content: ""; width: 12px; height: 12px; flex: none;
  background: currentColor; transform: rotate(45deg);
}
.rule span { flex: 1; height: 3px; background: currentColor; margin: 0 -3px; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.5rem;
  border: 2px solid var(--coral); border-radius: 999px;
  font-weight: 600; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--coral); color: var(--blue); }
.btn--solid:hover { background: var(--cream); border-color: var(--cream); }
.btn--ghost:hover { background: var(--coral); color: var(--blue); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.section--cream .btn { border-color: var(--blue); }
.section--cream .btn--solid { background: var(--blue); color: var(--cream); }
.section--cream .btn--solid:hover { background: var(--coral); border-color: var(--coral); color: var(--blue); }

/* ---------- Bogen-Rahmen (Doppellinie wie im Branding) ---------- */
.arch {
  position: relative;
  border: 4px solid currentColor;
  border-radius: 9999px 9999px 0 0;
  padding: 10px;
}
.arch > .arch__inner {
  height: 100%;
  border: 2px solid currentColor;
  border-radius: 9999px 9999px 0 0;
}

/* ---------- Layout ---------- */
.section { padding: clamp(4rem, 10vw, 7.5rem) var(--gutter); }
.section--cream { background: var(--cream); color: var(--blue); }
.wrap { max-width: 1100px; margin: 0 auto; }
.center { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(3rem, 8vw, 5rem);
  text-align: center;
}
.hero__logo { width: min(78vw, 440px); margin: 0 auto; }
.hero__lead {
  max-width: 30rem; margin: 1.75rem auto 2rem;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem);
}
.hero__scroll {
  display: inline-block; margin-top: 2.5rem;
  font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  opacity: .85;
}
.hero__scroll::after {
  content: ""; display: block; width: 2px; height: 2.5rem; margin: .6rem auto 0;
  background: currentColor;
  animation: drip 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drip { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll::after { animation: none; } }

/* ---------- Event-Hinweis ---------- */
.notice {
  max-width: 26rem; margin: 0 auto clamp(2rem, 6vw, 3rem);
  padding: 1.25rem 1.5rem 1.4rem;
  background: var(--coral); color: var(--blue);
  border-radius: 1.25rem;
  box-shadow: 0 0 0 4px var(--blue), 0 0 0 6px var(--coral);
  transform: rotate(-1.5deg);
}
.notice p { margin: 0; }
.notice p + p { margin-top: .35rem; }
.notice__eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.notice__title { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.6rem); font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: .03em; }
.notice__when { font-weight: 600; font-variant-numeric: lining-nums; }
.notice a { display: inline-block; margin-top: .7rem; font-weight: 600; text-underline-offset: 3px; }
.notice :focus-visible { outline-color: var(--blue); }

/* ---------- Über uns ---------- */
.about {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 820px) { .about { grid-template-columns: 1fr 1.05fr; } }

.photo {
  width: min(100%, 440px); margin: 0 auto;
  color: var(--coral);
}
.photo .arch { padding: 12px; border-width: 5px; }
.photo .arch__inner { border: 0; overflow: hidden; }
.photo img { width: 100%; }

.about__text { text-align: center; }
.about__text p { margin: 0 auto 1.2rem; max-width: 30rem; font-weight: 500; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }
.about__text .actions { margin-top: 2rem; }

/* ---------- Getränkekarte ---------- */
.menu {
  width: min(100%, 560px); margin: 0 auto;
  color: var(--coral);
}
.menu .arch__inner { container-type: inline-size; padding: clamp(2.5rem, 8vw, 4rem) clamp(.75rem, 5vw, 3rem) clamp(2rem, 5vw, 3rem); }
.menu__glasses { width: clamp(110px, 30%, 160px); margin: 0 auto 1.5rem; }
/* Größe richtet sich nach der Kartenbreite, damit „Getränkekarte“ immer in eine Zeile passt */
.menu h2 { text-align: center; white-space: nowrap; font-size: min(2.5rem, 8.4cqi); letter-spacing: .04em; }
.menu__group + .menu__group { margin-top: .5rem; }
.menu__group h3 { text-align: center; margin-bottom: 1.1rem; }

.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li {
  display: flex; align-items: baseline; gap: .4rem;
  padding: .3rem 0;
  font-weight: 500;
  font-size: min(1em, 5.1cqi);
  font-variant-numeric: oldstyle-nums;
  white-space: nowrap;
}
.menu__list li::after { /* Punktlinie */
  content: ""; order: 2; flex: 1 1 .5rem; min-width: .5rem;
  border-bottom: 2px dotted currentColor; opacity: .55;
  transform: translateY(-.3em);
}
.menu__list .name { order: 1; }
.menu__list .price { order: 3; white-space: nowrap; }
.menu__list small { font-size: .85em; font-weight: 400; }
.menu__note { text-align: center; margin: 2rem 0 0; font-size: .9rem; opacity: .9; }

/* ---------- Wo & Wann ---------- */
.visit { max-width: 40rem; margin: 0 auto; text-align: center; }
.visit p { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 500; margin: 0 0 1.2rem; }
.visit address { font-style: normal; }
.visit .visit__regular { font-size: 1rem; font-weight: 400; opacity: .85; }
.visit .actions { margin-top: 2rem; }

/* ---------- Events ---------- */
.events { max-width: 40rem; margin: 0 auto; text-align: center; }
.events h3 { margin: 2.25rem 0 1rem; }
.events__list { list-style: none; margin: 0; padding: 0; text-align: left; }
.events__list li {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: .25rem 1rem;
  padding: .85rem 0;
  border-bottom: 2px dotted rgba(232, 96, 84, .55);
  font-variant-numeric: lining-nums;
}
.events__list li:last-child { border-bottom: 0; }
.events__date { font-weight: 600; }
.events__title, .events__meta { display: block; }
@media (max-width: 480px) {
  .events__list { text-align: center; }
  .events__list li { grid-template-columns: 1fr; }
}

/* ---------- Merch ---------- */
.merch { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 820px) { .merch { grid-template-columns: 1.1fr 1fr; } }
.merch__photos { position: relative; width: min(100%, 460px); margin: 0 auto; padding-right: 22%; }
.merch__main { border: 5px solid var(--coral); border-radius: 9999px 9999px 6px 6px; padding: 10px; }
.merch__main img { border-radius: 9999px 9999px 2px 2px; }
.merch__detail {
  position: absolute; right: 0; bottom: -8%; width: 40%;
  border: 4px solid var(--cream); border-radius: 6px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 2, 169, .25);
  transform: rotate(4deg);
}
.merch__text { text-align: center; }
.merch__text h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
.merch__text > p { max-width: 30rem; margin: 0 auto 1.2rem; font-weight: 500; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }
.merch__eyebrow { font-size: .85rem !important; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--coral); margin-bottom: .6rem !important; }
.merch__price { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem) !important; font-weight: 700 !important; font-variant-numeric: lining-nums; margin-bottom: 1rem !important; }
.merch__price small { font-size: .9rem; font-weight: 500; }
.merch__shipping { font-size: .95rem !important; font-weight: 400 !important; margin-top: -.4rem !important; margin-bottom: 1.6rem !important; }
.merch__shipping a { font-weight: 600; text-underline-offset: 3px; }
.preorder { max-width: 26rem; margin: 0 auto 2rem; }
.preorder__title { margin: 0 0 .7rem; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.preorder__bar {
  height: 18px; padding: 3px;
  border: 2px solid var(--blue); border-radius: 999px;
  background: var(--cream);
}
.preorder__fill {
  display: block; height: 100%; width: var(--progress, 0%); min-width: 10px;
  border-radius: 999px; background: var(--coral);
  transition: width .8s ease;
}
.preorder__count { margin: .6rem 0 0; font-size: .95rem; font-variant-numeric: lining-nums; }
.preorder__info { margin: .6rem 0 0; font-size: .85rem; line-height: 1.45; }
.preorder.is-done .preorder__fill { background: var(--blue); }
.merch__form { margin: 0 auto; max-width: 30rem; }
.chips { border: 0; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.chips legend {
  width: 100%; margin-bottom: .6rem; padding: 0;
  font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; min-width: 2.9rem; padding: .45rem .9rem;
  border: 2px solid var(--blue); border-radius: 999px;
  font-weight: 600; letter-spacing: .06em;
  transition: background-color .15s, color .15s;
}
.chips label:hover span { background: rgba(15, 2, 169, .08); }
.chips input:checked + span { background: var(--blue); color: var(--cream); }
.chips input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.chips.is-missing span { border-color: var(--coral); }
.merch__hint { min-height: 1.4em; margin: 0 0 .75rem; font-size: .95rem; font-weight: 600; }
.merch__hint.is-error { color: #c2412f; }
.merch__note { font-size: .95rem !important; font-weight: 400 !important; margin-top: 1.5rem !important; }

/* ---------- Galerie ---------- */
.gallery {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  columns: 2; column-gap: clamp(.6rem, 2vw, 1.25rem);
}
@media (min-width: 820px) { .gallery { columns: 3; } }
.gallery li { break-inside: avoid; margin-bottom: clamp(.6rem, 2vw, 1.25rem); }
.gallery a { display: block; overflow: hidden; border-radius: 6px; background: rgba(253, 245, 234, .08); }
/* Erstes Bild bekommt die Bogenform aus dem Branding */
.gallery li:first-child a { border-radius: 9999px 9999px 6px 6px; }
.gallery img { width: 100%; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }

.lightbox {
  position: fixed; inset: 0;
  /* dvh = tatsächlich sichtbare Höhe (iOS-Safari-Leiste wird abgezogen) */
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10, 1, 120, .94);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 2rem); max-height: calc(100vh - 6rem); max-height: calc(100dvh - 6rem); width: auto; height: auto; border-radius: 6px; }
.lightbox__btn {
  position: absolute; width: 3rem; height: 3rem;
  border: 2px solid var(--coral); border-radius: 50%;
  background: var(--blue); color: var(--coral);
  font: 600 1.6rem/1 var(--font); cursor: pointer;
}
.lightbox__btn:hover { background: var(--coral); color: var(--blue); }
.lightbox__close { top: calc(1rem + env(safe-area-inset-top)); right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox img { max-height: calc(100dvh - 10rem); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: none; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 3rem var(--gutter);
  background: var(--blue);
  border-top: 2px solid rgba(232, 96, 84, .5);
  text-align: center; font-size: .95rem;
  color: var(--cream);
}
.footer img { width: 72px; margin: 0 auto 1rem; }
.footer nav { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: .75rem; }
.footer a { color: var(--coral); text-underline-offset: 3px; }
.footer p { margin: 0; opacity: .75; }

/* ---------- Rechtliches (Impressum / Datenschutz) ---------- */
.legal { max-width: 46rem; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.3rem; letter-spacing: .08em; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { font-size: 1.05rem; }
.legal h3 { font-size: 1.05rem; letter-spacing: .1em; margin: 1.6rem 0 .4rem; }
.legal ul { padding-left: 1.2rem; }
.legal li + li { margin-top: .5rem; }
.legal__form { border: 2px solid var(--blue); border-radius: 8px; padding: .5rem 1.25rem; margin: 1rem 0 2rem; }
.legal .back { display: inline-block; margin-bottom: 2rem; font-weight: 600; }
.todo { background: #ffe08a; color: #3a2a00; padding: 0 .3em; border-radius: 3px; }
