/* ================================================================
   Das Kabinett — Styles
   CI by Bella Schäuble · Build Mai 2026
   ================================================================ */

/* ── Fonts ──────────────────────────────────────────────────────── */

@font-face {
  font-family: "PP Writer";
  src: url("assets/fonts/writer/PPWriter-ThinItalic.woff2") format("woff2");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PP Writer";
  src: url("assets/fonts/writer/PPWriter-Thin.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Writer";
  src: url("assets/fonts/writer/PPWriter-RegularItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PP Writer";
  src: url("assets/fonts/writer/PPWriter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Radio Grotesk";
  src: url("assets/fonts/radio-grotesk/PPRadioGrotesk-RegularItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PP Radio Grotesk";
  src: url("assets/fonts/radio-grotesk/PPRadioGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Radio Grotesk";
  src: url("assets/fonts/radio-grotesk/PPRadioGrotesk-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PP Radio Grotesk";
  src: url("assets/fonts/radio-grotesk/PPRadioGrotesk-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────────── */

:root {
  --c-blue:   #3165EC;
  --c-red:    #E74828;
  --c-sky:    #BADCEA;
  --c-olive:  #6E8149;
  --c-cream:  #FFEEAD;
  --c-green:  #D6DF98;

  --c-bg:     #ffffff;
  --c-bg-2:   #f2ede4;
  --c-ink:    #3165EC;
  --c-mute:   rgba(49, 101, 236, 0.48);
  --c-line:   rgba(49, 101, 236, 0.13);

  --ff-display: "PP Writer", Georgia, serif;
  --ff-body:    "PP Radio Grotesk", ui-sans-serif, system-ui, sans-serif;

  --px:   clamp(20px, 5.5vw, 84px);
  --py:   clamp(64px, 9vw, 128px);
  --maxw: 1280px;

  /* SVG wordmark black → brand blue */
  --f-wm: brightness(0) saturate(100%)
          invert(28%) sepia(96%) saturate(2200%)
          hue-rotate(216deg) brightness(96%) contrast(96%);
  /* rathaus PNG → cream/white (for use on blue bg) */
  --f-wm-inv: brightness(0) invert(1);
}

/* ── Reset ──────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 62px;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--ff-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 0.85vw + 10px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
ul  { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

::selection { background: var(--c-blue); color: var(--c-bg); }

/* ── Scroll progress ────────────────────────────────────────────── */

#scroll-prog {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--c-bg);
  z-index: 300;
  pointer-events: none;
  transition: width 80ms linear;
}

/* ── Reveals ────────────────────────────────────────────────────── */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(7px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal].is-visible,
  .js .hero__eyebrow,
  .js .hero__brand,
  .js .hero__sub,
  .js .hero__ctas {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ── Announce strip ─────────────────────────────────────────────── */

.announce {
  overflow: hidden;
  background: var(--c-blue);
  padding: 9px 0;
}

.announce__track {
  display: flex;
  width: max-content;
  animation: marquee-run 48s linear infinite;
  will-change: transform;
}
.announce__group {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(251, 248, 241, 0.75);
}
.announce__group span { padding: 0 14px; }
.announce__group .sep { opacity: 0.4; padding: 0; }

/* Keine fette Kursivschrift in Überschriften */
h1 em, h2 em, h3 em { font-weight: inherit; font-style: italic; }

/* ── Topbar ─────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--px);
  background: var(--c-blue);
  border-bottom: 1px solid rgba(251, 248, 241, 0.12);
  transition:
    background 450ms cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 450ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 450ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* High-end frosted glass once scrolled past the hero */
.topbar.is-glass {
  background: rgba(16, 18, 24, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  backdrop-filter: blur(20px) saturate(165%);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 36px rgba(6, 10, 22, 0.24);
}

.topbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 200;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--c-bg);
  white-space: nowrap;
  transition: opacity 200ms ease;
}
.topbar__logo:hover { opacity: 0.75; }
.topbar__wordmark {
  height: 20px;
  width: auto;
  filter: var(--f-wm-inv);
  display: block;
}

.topbar__rathaus {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.topbar__wordblock {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar__sub {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(251, 248, 241, 0.48);
  line-height: 1;
  padding-left: 1px;
}

/* Centered tagline — gives the bar some character on wider screens */
.topbar__tagline {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(13px, 1.1vw + 4px, 18px);
  letter-spacing: 0.01em;
  color: rgba(251, 248, 241, 0.82);
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 860px) {
  .topbar__tagline { display: none; }
}

.topbar__nav {
  display: flex;
  gap: clamp(16px, 2vw, 36px);
}
.topbar__nav a {
  position: relative;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 14px;
  text-decoration: none;
  color: rgba(251, 248, 241, 0.78);
  padding-bottom: 3px;
  transition: color 200ms ease;
}
.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.topbar__nav a:hover { color: var(--c-bg); }
.topbar__nav a:hover::after { transform: scaleX(1); }

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: min(100svh, 960px);
  background: var(--c-blue);
  color: var(--c-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: clamp(60px, 8vw, 120px) var(--px) clamp(80px, 10vw, 140px);
}

/* Full-bleed building photo + cinematic scrim */
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  transform: scale(1.08);
  transform-origin: center;
  will-change: transform;
  filter: grayscale(1) contrast(1.04);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 11, 14, 0.70) 0%,
      rgba(22, 24, 28, 0.50) 42%,
      rgba(6, 7, 10, 0.90) 100%);
}
.hero__grain {
  position: absolute;
  inset: 0;
  background: radial-gradient(125% 95% at 50% 28%,
    transparent 38%, rgba(5, 6, 9, 0.68) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

.hero__eyebrow {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(251, 248, 241, 0.82);
  margin: 0;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
}

.hero__wordmark {
  width: clamp(300px, 82vw, 640px);
  height: auto;
  filter: var(--f-wm-inv);
  display: block;
}

.hero__city {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(11px, 0.9vw + 6px, 17px);
  letter-spacing: 0.2em;
  color: rgba(251, 248, 241, 0.80);
  margin: 0;
}

.hero__sub {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(10px, 0.6vw + 8px, 13px);
  letter-spacing: 0.1em;
  color: rgba(251, 248, 241, 0.88);
  max-width: 48ch;
  margin: 0;
  line-height: 1.6;
}

/* CTA pills */
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 30px;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease,
              border-color 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid rgba(251, 248, 241, 0.5);
  color: var(--c-bg);
  background: transparent;
}
.btn-pill:hover {
  background: var(--c-bg);
  color: var(--c-blue);
  border-color: var(--c-bg);
  transform: translateY(-2px);
}
.btn-pill:active { transform: translateY(0); }

/* Filled pill (for split section) */
.btn-pill--solid {
  background: var(--c-blue);
  color: var(--c-bg);
  border-color: var(--c-blue);
}
.btn-pill--solid:hover {
  background: transparent;
  color: var(--c-blue);
}

/* Outline pill on light sections — blue border + text on cream, inverts on hover */
.split-moment--text-only .btn-pill {
  background: var(--c-bg);
  color: var(--c-blue);
  border-color: var(--c-blue);
}
.split-moment--text-only .btn-pill:hover {
  background: var(--c-blue);
  color: var(--c-bg);
  border-color: var(--c-blue);
}

/* Bottom info strip of hero */
.hero__foot {
  position: absolute;
  bottom: clamp(20px, 3vw, 36px);
  left: 0;
  right: 0;
  padding: 0 var(--px);
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.07em;
  color: rgba(251, 248, 241, 0.70);
}

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

/* Hero load entrance — staggered fade + blur-to-sharp */
.js .hero__eyebrow,
.js .hero__brand,
.js .hero__sub,
.js .hero__ctas {
  animation: hero-in 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.js .hero__eyebrow { animation-delay: 0.15s; }
.js .hero__brand   { animation-delay: 0.30s; }
.js .hero__sub     { animation-delay: 0.52s; }
.js .hero__ctas    { animation-delay: 0.66s; }
.js .hero__foot,
.js .hero__cue     { animation: hero-fade 1.2s ease 0.9s both; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); filter: blur(12px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Real photo shared styles ───────────────────────────────────── */

.story__photo img,
.split-moment__photo img,
.mch__photo img,
.mch__photo-stack figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mch__photo {
  overflow: hidden;
  border-radius: 8px;
}
.mch__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.mch__photo:hover img { transform: scale(1.04); }

.mch__photo-stack figure {
  overflow: hidden;
  border-radius: 8px;
  margin: 0;
}
.mch__photo-stack figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.split-moment__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Story ──────────────────────────────────────────────────────── */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  padding: var(--py) var(--px);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Overlapping rotated photos */
.story__photos {
  position: relative;
  height: clamp(420px, 56vw, 720px);
  flex-shrink: 0;
}

.story__photo {
  position: absolute;
  width: 68%;
  height: 74%;
  border-radius: 10px;
  overflow: hidden;
  border: none;
}
.story__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story__photo:nth-child(1) {
  top: 0;
  left: 0;
  transform: rotate(-5deg);
  z-index: 1;
  box-shadow: 0 8px 32px rgba(49, 101, 236, 0.12);
}
.story__photo:nth-child(2) {
  bottom: 0;
  right: 0;
  transform: rotate(4.5deg);
  z-index: 2;
  box-shadow: 0 8px 32px rgba(49, 101, 236, 0.12);
}
.story__photo:hover {
  z-index: 3;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: rotate(0deg) scale(1.03) !important;
}

/* Solo building photo — fills the column cleanly, no rotation */
.story__photos--solo {
  height: clamp(380px, 52vw, 600px);
}
.story__photos--solo .story__photo {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform: none;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(49, 101, 236, 0.13);
}
.story__photos--solo .story__photo:hover {
  transform: scale(1.02) !important;
}

/* Founders portrait — large, fills the column in full colour */
.story__photos .story__photo--founders {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-2deg);
  border-radius: 12px;
  box-shadow: 0 14px 52px rgba(49, 101, 236, 0.15);
}
.story__photo--founders figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c-blue);
  color: var(--c-bg);
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.story__title {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(36px, 4.5vw + 10px, 72px);
  line-height: 0.93;
  letter-spacing: -0.04em;
  margin: 0 0 clamp(22px, 3vw, 40px);
  color: var(--c-ink);
}
.story__title em {
  font-weight: inherit;
  display: block;
  margin-top: 0.08em;
}

.story__content p {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(15px, 0.4vw + 12px, 18px);
  line-height: 1.75;
  margin: 0 0 1em;
  max-width: 54ch;
}
.story__content em { font-weight: 400; }

/* ── Gallery ────────────────────────────────────────────────────── */

.gallery {
  padding: var(--py) 0;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg);
  overflow: hidden;
}

.gallery__head {
  text-align: center;
  margin-bottom: clamp(48px, 7vw, 88px);
  padding: 0 var(--px);
}

.gallery__title {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(32px, 4.5vw + 8px, 68px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  color: var(--c-ink);
}
.gallery__title em { font-weight: inherit; }

.gallery__sub {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--c-mute);
  margin: 0;
}

/* Horizontal strip — natively swipeable, JS auto-scrolls it when idle */
.gallery__strip {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 24px 0 40px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* old Edge */
  cursor: grab;
}
.gallery__strip::-webkit-scrollbar { display: none; }
.gallery__strip.is-grabbing { cursor: grabbing; }

.gallery__track {
  display: flex;
  gap: 16px;
  width: max-content;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gallery__img {
  flex-shrink: 0;
  height: clamp(220px, 32vw, 400px);
  aspect-ratio: 3 / 4; /* width computed from CSS before images load — fixes iOS Safari marquee */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(49, 101, 236, 0.1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Alternating slight rotations */
.gallery__img:nth-child(4n+1) { transform: rotate(-2.5deg); }
.gallery__img:nth-child(4n+2) { transform: rotate(1.5deg); }
.gallery__img:nth-child(4n+3) { transform: rotate(-1deg); }
.gallery__img:nth-child(4n+4) { transform: rotate(2deg); }

.gallery__img:hover {
  transform: rotate(0deg) scale(1.03) !important;
  box-shadow: 0 12px 36px rgba(49, 101, 236, 0.18);
  z-index: 2;
  position: relative;
}

.gallery__img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

/* ── Image placeholders ─────────────────────────────────────────── */

.img-ph {
  display: block;
  margin: 0;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  overflow: hidden;
  width: 100%;
}

.img-ph__inner {
  aspect-ratio: var(--ar, 3/2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-ph:hover .img-ph__inner { transform: scale(1.04); }

.img-ph__label {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-mute);
  opacity: 0.6;
  user-select: none;
  pointer-events: none;
}

.img-ph--inv {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}
.img-ph--inv .img-ph__label { color: rgba(255,255,255,0.4); }

/* ── Split moment ───────────────────────────────────────────────── */

.split-moment {
  display: grid;
  grid-template-columns: clamp(110px, 14vw, 190px) 1fr clamp(110px, 14vw, 190px);
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 80px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 104px) var(--px);
  border-top: 1px solid var(--c-line);
}

/* Text-only variant — no flanking photos, centred single column */
.split-moment--text-only {
  display: block;
  text-align: center;
}

.split-moment__photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 10px 36px rgba(49, 101, 236, 0.12);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.split-moment__photo:first-child { transform: rotate(-3deg); }
.split-moment__photo:last-child  { transform: rotate(3deg); }
.split-moment__photo:hover { transform: rotate(0deg) scale(1.04); }

.split-moment__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 40ch;
  margin: 0 auto;
}

.split-moment__text h2 {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(34px, 3.8vw + 10px, 62px);
  line-height: 0.92;
  letter-spacing: -0.044em;
  text-transform: uppercase;
  margin: 0 0 clamp(16px, 2.5vw, 28px);
  color: var(--c-ink);
}
.split-moment__text h2 em {
  font-weight: 200;
  font-style: italic;
}

.split-moment__text p {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(14px, 0.5vw + 12px, 16px);
  line-height: 1.7;
  color: var(--c-mute);
  margin: 0 0 clamp(24px, 3vw, 36px);
}

/* ── Menu ───────────────────────────────────────────────────────── */

.menu { border-top: 1px solid var(--c-line); }

.menu__intro {
  padding: clamp(14px, 2vw, 26px) var(--px) 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.eyebrow {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--c-mute);
  margin: 0;
}

.menu__note {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-mute);
  margin: 0;
}

/* ── Menu chapters ──────────────────────────────────────────────── */

.mch {
  padding: clamp(22px, 2.6vw, 40px) var(--px);
  border-top: 1px solid var(--c-line);
  position: relative;
  overflow: hidden;
}

.mch__title-wrap {
  max-width: var(--maxw);
  margin: 0 auto clamp(12px, 1.6vw, 24px);
}

/* Decorative illustrations — freely floating within each section */
.mch__illus {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.82;
  z-index: 0;
}

/* Snacks: shh gesture — top-right, tilted right */
#snacks .mch__illus {
  width: clamp(72px, 9vw, 112px);
  top: clamp(16px, 2.5vw, 36px);
  right: clamp(24px, 5vw, 72px);
  transform: rotate(13deg);
}

/* Standalone decorative line-art icons (same blue style as menu illus) */
.deco-illus {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.62;
  z-index: 0;
}

/* Grape accent in the "geniessen & verweilen" moment */
.split-moment--text-only { position: relative; }
.split-moment--text-only .split-moment__text { position: relative; z-index: 1; }
.deco-illus--grape {
  width: clamp(58px, 7vw, 96px);
  top: clamp(4px, 1.6vw, 22px);
  right: clamp(16px, 7vw, 104px);
  transform: rotate(-10deg);
}

.mch__title {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(56px, 8.5vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.048em;
  text-transform: uppercase;
  margin: 0;
  color: var(--c-ink);
}
.mch__title em { font-weight: inherit; }

.mch__title--sm {
  font-size: clamp(50px, 8.5vw, 116px);
}

/* Items only — no photo column next to menu */
.mch__cols {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Item categories flow into capped columns so name + price stay close */
.mch__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 460px));
  gap: clamp(16px, 2vw, 28px) clamp(56px, 8vw, 128px);
  justify-content: start;
  align-items: start;
}

/* Hide all food photos next to menu items */
.mch__photo, .mch__photo-stack { display: none; }

/* Wide group spans both columns; inner list stays narrow so price sits close */
.igrp--wide { grid-column: 1 / -1; }
.igrp--wide .ilist { max-width: 600px; }

/* Small chapter footnote */
.mch__foot {
  max-width: var(--maxw);
  margin: clamp(22px, 3vw, 40px) auto 0;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-mute);
  max-width: 56ch;
}
.mch--blue .mch__foot { color: rgba(255, 255, 255, 0.55); }

.mch__lead {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(17px, 1.3vw + 10px, 26px);
  line-height: 1.42;
  margin: 0 0 clamp(20px, 3vw, 36px);
  max-width: 42ch;
  color: var(--c-ink);
}

/* ── Chapter variants ────────────────────────────────────────────── */

/* ── Chapter variants ────────────────────────────────────────────── */

.mch--blue {
  background: var(--c-blue);
  color: var(--c-bg);
}
.mch--blue .mch__title  { color: var(--c-bg); }
.mch--blue .mch__lead   { color: rgba(255, 255, 255, 0.8); }
.mch--blue .igrp__label { color: rgba(255, 255, 255, 0.55); border-color: rgba(255,255,255,0.16); }
.mch--blue .ilist li    { border-color: rgba(255, 255, 255, 0.12); color: var(--c-bg); }
.mch--blue .il-name em  { color: rgba(255, 255, 255, 0.5); }
.mch--blue .il-leader   { border-color: rgba(255, 255, 255, 0.18); }
.mch--blue .il-price    { color: var(--c-bg); border-color: rgba(255, 255, 255, 0.45); }
.mch--blue .winery      { color: var(--c-sky); }

/* ── Item groups ────────────────────────────────────────────────── */

.igrp {
  margin-bottom: 0;
}

.igrp__label {
  font-family: var(--ff-body);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
  color: var(--c-mute);
}

.igrp__meta {
  text-decoration: none;
  font-weight: 300;
  margin-left: 4px;
}

/* ── List items — physische Karte: name + preis, klar und schlank ── */

.ilist li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 7px 0;
  font-family: var(--ff-body);
  font-style: normal;
  font-size: clamp(14px, 0.35vw + 12px, 16px);
  color: var(--c-ink);
  cursor: default;
}

/* Item name — italic grotesk, like the printed card */
.il-name {
  flex: 1;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.005em;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Description — the other typeface: PP Writer Thin Italic, same deep blue, tighter tracking */
.il-name em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 200;
  font-size: 1.1em;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-left: 5px;
}
.ilist li:hover .il-name { transform: translateX(6px); }

.il-price {
  font-family: var(--ff-display);
  font-style: italic;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0.88;
}
.ilist li:hover .il-price { transform: translateX(-2px); opacity: 1; }

/* Winery: muted inline prefix before wine name */
.winery {
  color: var(--c-mute);
  font-weight: 300;
  margin-right: 3px;
}

/* ── Visit ──────────────────────────────────────────────────────── */

.visit {
  padding: var(--py) var(--px);
  border-top: 1px solid var(--c-line);
}

.visit__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.visit__head {
  margin-bottom: clamp(44px, 6vw, 88px);
}

.display {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(44px, 5.5vw + 10px, 96px);
  line-height: 0.93;
  letter-spacing: -0.04em;
  margin: 8px 0 0;
  color: var(--c-ink);
}
.display em { font-weight: inherit; }

.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.visit__label {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
  margin: 0 0 18px;
  color: var(--c-mute);
}

.hours {
  margin: 0;
  border-top: 1px solid var(--c-line);
}
.hours > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(15px, 0.4vw + 13px, 18px);
}
.hours dt { font-weight: 400; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours__off dt,
.hours__off dd { color: var(--c-mute); }

.visit__season {
  margin: 18px 0 0;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 13px;
  color: var(--c-mute);
}
.visit__season em { color: var(--c-ink); font-weight: 400; }

.addr {
  font-style: italic;
  font-family: var(--ff-display);
  font-weight: 200;
  font-size: clamp(22px, 1.8vw + 10px, 36px);
  line-height: 1.3;
  letter-spacing: -0.028em;
  margin: 0 0 20px;
}
.addr em { font-weight: 400; }

.map-link {
  display: inline-block;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  transition: color 200ms ease;
}
.map-link:hover { color: var(--c-red); }

/* ── Contact ────────────────────────────────────────────────────── */

.contact {
  background: var(--c-blue);
  color: var(--c-bg);
  padding: var(--py) var(--px);
  text-align: center;
}

.contact .eyebrow { color: rgba(255,255,255,0.5); }

.contact__head {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(52px, 8vw + 12px, 128px);
  line-height: 0.88;
  margin: 14px auto 0;
  color: var(--c-bg);
  letter-spacing: -0.044em;
}
.contact__head em { font-weight: inherit; }

.contact__note {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(14px, 0.4vw + 12px, 17px);
  color: rgba(255,255,255,0.68);
  max-width: 44ch;
  margin: 40px auto 48px;
  line-height: 1.65;
}

.phone {
  display: inline-block;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(28px, 4.5vw + 10px, 72px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--c-bg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color 240ms ease;
}
.phone:hover { border-color: rgba(255,255,255,0.6); }

.contact__social {
  margin: 40px 0 0;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.insta-link {
  color: var(--c-bg);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  transition: color 200ms ease;
}
.insta-link:hover { color: var(--c-cream); }

/* ── Footer ─────────────────────────────────────────────────────── */

.foot {
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  padding: clamp(48px, 7vw, 100px) var(--px) 0;
  overflow: hidden;
}

/* Info grid (like Rumbeke) */
.foot__grid {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: clamp(36px, 5vw, 80px);
  max-width: var(--maxw);
  margin: 0 auto clamp(48px, 8vw, 100px);
  align-items: start;
}

.foot__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot__colhead {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 6px;
  display: block;
}

.foot__col a {
  position: relative;
  align-self: flex-start;
  font-family: var(--ff-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(14px, 1.1vw, 18px);
  text-decoration: none;
  color: var(--c-ink);
}
.foot__col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.foot__col a:hover::after { transform: scaleX(1); }

/* Opening hours card */
.foot__hours-card {
  background: rgba(49, 101, 236, 0.04);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: clamp(16px, 2vw, 28px) clamp(20px, 2.5vw, 36px);
}

.foot__dl {
  margin: 0;
}
.foot__dl > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(12px, 0.7vw + 9px, 14px);
}
.foot__dl > div + div {
  border-top: 1px solid var(--c-line);
}
.foot__dl dt { color: var(--c-mute); white-space: nowrap; }
.foot__dl dd { margin: 0; text-align: right; white-space: nowrap; }

.foot__dots {
  height: 0;
  border-bottom: 1px dotted rgba(49, 101, 236, 0.22);
  align-self: baseline;
  margin-bottom: 3px;
}

.foot__closed dt,
.foot__closed dd { color: var(--c-mute); }

/* Footer logo */
.foot__logo-wrap {
  margin: 0 calc(-1 * var(--px));
  padding: clamp(28px, 4vw, 56px) clamp(14px, 2vw, 30px) clamp(14px, 2vw, 28px);
  border-top: 1px solid var(--c-line);
}

.foot__logo-img {
  display: block;
  width: 100%;
  aspect-ratio: 18534 / 2873;
  /* paint the exact brand blue through the wordmark shape — no filter approximation
     (the old hue-rotate filter drifted toward purple on wide-gamut mobile screens) */
  background-color: var(--c-blue);
  -webkit-mask: url("assets/img/das-kabinett_schrift-logo.svg") no-repeat center / contain;
  mask: url("assets/img/das-kabinett_schrift-logo.svg") no-repeat center / contain;
}

/* Legal row */
.foot__legal-row {
  border-top: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(12px, 1.5vw, 20px) 0;
  margin-top: 0;
}

.foot__legal {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 12px;
  color: var(--c-mute);
}
.foot__legal a {
  color: var(--c-mute);
  text-decoration: none;
  transition: color 180ms ease;
}
.foot__legal a:hover { color: var(--c-ink); }
.foot__legal span { opacity: 0.4; }

.foot__copy {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 12px;
  color: var(--c-mute);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ── Legal pages ────────────────────────────────────────────────── */

.legal-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Legal footer: big wordmark logo sits clean (no empty top gap / floating divider) */
.legal-page .foot { padding-top: clamp(28px, 5vw, 56px); }
.legal-page .foot__logo-wrap { border-top: none; }

.legal-page main {
  flex: 1;
  padding: var(--py) var(--px);
  border-top: 1px solid var(--c-line);
}

.legal__inner {
  max-width: 660px;
  margin: 0 auto;
}

.legal__heading {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(44px, 5vw + 12px, 84px);
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0 0 clamp(28px, 4vw, 48px);
  letter-spacing: -0.045em;
  color: var(--c-ink);
}

.legal__body {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(14px, 0.35vw + 12px, 16px);
  line-height: 1.72;
  color: var(--c-ink);
}
.legal__body p { margin: 0 0 1.2em; }
.legal__body h2 {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(22px, 1.6vw + 10px, 32px);
  line-height: 1.1;
  text-transform: uppercase;
  margin: 1.8em 0 0.6em;
  letter-spacing: -0.035em;
  color: var(--c-ink);
}
.legal__body strong { font-weight: 400; }
.legal__body a       { color: var(--c-ink); }
.legal__body a:hover { color: var(--c-red); }
.legal__small { font-size: 13px; color: var(--c-mute); }

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: clamp(28px, 4vw, 48px);
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 13px;
  color: var(--c-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 180ms ease, border-color 180ms ease;
}
.legal__back:hover { color: var(--c-ink); border-color: var(--c-ink); }

/* ── Marquee (announce uses same keyframe) ───────────────────────── */

@keyframes marquee-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .story {
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 56px);
  }
  .story__photos {
    height: auto;
    aspect-ratio: 3 / 4;
    width: 100%;
    max-width: 360px;
    justify-self: center;
  }
  .story__photo { width: 64%; height: 66%; }
  /* Founders: clean upright portrait, no rotation on small screens */
  .story__photos .story__photo--founders {
    transform: none;
    border-radius: 14px;
  }
  .story__photo--founders img { object-position: center 30%; }

  .split-moment {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(24px, 5vw, 40px);
  }
  .split-moment__photo {
    width: clamp(140px, 42vw, 200px);
  }
  .split-moment__photo:first-child { order: 1; transform: rotate(-3deg); }
  .split-moment__text { order: 2; }
  .split-moment__photo:last-child { display: none; }

  .mch__items { grid-template-columns: 1fr; gap: clamp(22px, 5vw, 36px); }
  .mch__photo, .mch__photo-stack { display: none; }

  .visit__grid { grid-template-columns: 1fr; }

  .foot__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
  }
  .foot__hours-card { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --py: clamp(40px, 11vw, 64px); }

  /* Ticker: slimmer on mobile so it reads as its own band */
  .announce { padding: 6px 0; }

  /* Header: prominent but tight & balanced */
  .topbar { padding: 10px var(--px); gap: 12px; }
  .topbar__rathaus  { height: 40px; }
  /* Mobile: only the building illustration, no wordmark */
  .topbar__wordblock { display: none; }
  /* Nav: bigger & clearer tap targets on mobile */
  .topbar__nav      { gap: 18px; }
  .topbar__nav a    {
    font-size: 16px;
    color: var(--c-bg);
    padding-bottom: 4px;
  }
  .topbar__nav a::after { height: 1.5px; }

  /* Hero: content sits higher, less empty space up top */
  .hero {
    min-height: min(80svh, 660px);
    padding: clamp(22px, 6vw, 36px) var(--px) clamp(60px, 13vw, 88px);
  }
  .hero__inner { gap: clamp(16px, 4vw, 26px); }
  .hero__cue { display: none; }
  .hero__foot {
    font-size: 10px;
    gap: 4px;
    flex-direction: column;
    align-items: center;
    bottom: 16px;
  }

  /* Gallery: taller cards so food is actually visible */
  .gallery__img { height: clamp(300px, 72vw, 380px); }
  .gallery__img:nth-child(4n+1),
  .gallery__img:nth-child(4n+2),
  .gallery__img:nth-child(4n+3),
  .gallery__img:nth-child(4n+4) { transform: none; }
  .gallery__strip { padding: 12px 0 20px; }

  /* Geniessen & Verweilen: hide the single remaining photo on mobile */
  .split-moment__photo { display: none; }

  .mch__title   { font-size: clamp(44px, 10vw, 72px); }
  .mch__title--sm { font-size: clamp(36px, 8.5vw, 60px); }

  /* Menu: a touch more air so big titles never collide with items */
  .mch { padding: clamp(26px, 7vw, 44px) var(--px); }

  .foot__grid { grid-template-columns: 1fr; }

  /* clearance so the fixed call button doesn't cover the legal links */
  .foot { padding-bottom: 86px; }

  .foot__legal-row {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 400px) {
  :root { --px: 16px; }
}

/* ── Micro-interactions ─────────────────────────────────────────── */

/* Food images: subtle saturation lift on hover */
.gallery__img img {
  filter: saturate(0.94);
  transition: filter 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery__img:hover img { filter: saturate(1.08) brightness(1.03); }


/* Hero scroll cue — thin falling line */
.hero__cue {
  position: absolute;
  bottom: clamp(58px, 8vw, 92px);
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: clamp(30px, 4vw, 46px);
  background: rgba(251, 248, 241, 0.18);
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.hero__cue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 248, 241, 0.85);
  animation: cue-fall 2.6s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
@keyframes cue-fall {
  0%        { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

/* Staggered entrance for menu categories */
.js .mch__items.is-visible > .igrp {
  animation: igrp-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.js .mch__items.is-visible > .igrp:nth-child(2) { animation-delay: 0.1s; }
.js .mch__items.is-visible > .igrp:nth-child(3) { animation-delay: 0.2s; }
.js .mch__items.is-visible > .igrp:nth-child(4) { animation-delay: 0.3s; }
@keyframes igrp-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ── Mobile call CTA ────────────────────────────────────────────── */

.mobile-cta { display: none; }

@media (max-width: 640px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 15px 36px;
    font-family: var(--ff-body);
    font-style: italic;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-decoration: none;
    z-index: 200;
    white-space: nowrap;
    /* default: over white sections → blue pill, white text */
    background: var(--c-blue);
    color: var(--c-bg);
    border: 1.5px solid var(--c-blue);
    box-shadow: 0 6px 28px rgba(49, 101, 236, 0.4);
    transition: background 320ms ease, color 320ms ease,
                border-color 320ms ease, box-shadow 320ms ease,
                transform 200ms ease;
  }
  /* over blue sections → white pill, blue text */
  .mobile-cta--on-blue {
    background: var(--c-bg);
    color: var(--c-blue);
    border-color: var(--c-bg);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);
  }
  .mobile-cta:active {
    transform: translateX(-50%) scale(0.97);
  }
}

/* ── Reduced motion ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .announce__track,
  .gallery__track,
  .hero__illus .hero__rathaus {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration:  0.01ms !important;
  }
}
