/* =========================================================================
   Nebenan · Café & Bar — Stylesheet
   -------------------------------------------------------------------------
   0. Fonts (stored locally)
   1. Tokens & moods (Café / Bar)     7. Happy Hour
   2. Base                            8. Monatsangebote
   3. Shared pieces                   9. Galerie
   4. Curtain & hero                 10. Besuch & footer
   5. Ticker & Über uns              11. Dock, lightbox
   6. Karte                          12. Motion & responsive
   ========================================================================= */

/* ---------- 0. Fonts ----------
   Stored in assets/fonts/ so that no visitor data goes to Google (see datenschutz.html).
   Each font comes in two files: "latin" covers German, "latin-ext" covers rarer accented letters
   and is only fetched when such a letter appears on the page. */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/anton-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/anton-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens & moods ---------- */
:root {
  /* Colours taken from the room itself: mustard walls, poster red, menu cream */
  --cream: #f3ebda;
  --cream-2: #e9dec6;
  --ink: #1a1310;
  --ink-2: #251c17;
  --mustard: #e3a72b;
  --red: #b8301f;
  --red-deep: #8a2014;
  --rose: #e7b1a8;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-label: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(18px, 4.5vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.2, 1);
  --arch: 999px 999px 0 0;
}

html[data-mode="cafe"] {
  --bg: var(--cream);
  --fg: var(--ink);
  --muted: #6a5b4d;
  --surface: #eadfc8;
  --line: rgba(26, 19, 16, 0.2);
  --accent: var(--red);
  --on-accent: var(--cream);
  color-scheme: light;
}

html[data-mode="bar"] {
  --bg: #14100d;
  --fg: var(--cream);
  --muted: #b5a892;
  --surface: #221a15;
  --line: rgba(243, 235, 218, 0.2);
  --accent: var(--mustard);
  --on-accent: var(--ink);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.6s ease, color 0.6s ease;
}

/* Fine paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
address {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

address {
  font-style: normal;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--mustard);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--mustard);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- 3. Shared pieces ---------- */
.section {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(72px, 11vw, 160px) var(--pad);
}

.section__head {
  margin-bottom: clamp(28px, 5vw, 56px);
  text-align: center;
}

.section__head--pad {
  padding-inline: var(--pad);
}

/* “—— KAFFEE ——” : the ruled heading from the printed menu */
.rule-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
  font-family: var(--font-label);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.rule-label::before,
.rule-label::after {
  content: "";
  width: clamp(28px, 8vw, 96px);
  height: 1.5px;
  background: currentColor;
}

.rule-label--left {
  justify-content: flex-start;
}

.rule-label--left::before {
  display: none;
}

.display {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 800;
  font-size: clamp(2.6rem, 7.4vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.display em {
  font-weight: 500;
  color: var(--accent);
}

.mini-label {
  margin-bottom: 12px;
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.arch {
  position: relative;
  overflow: hidden;
  border-radius: var(--arch);
  background: var(--surface);
}

.arch img,
.arch video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease);
  will-change: transform;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--mustard);
}

.btn--solid {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--solid:hover {
  background: var(--fg);
  color: var(--bg);
}

.text-link {
  display: inline-flex;
  gap: 0.4em;
  padding-bottom: 2px;
  border-bottom: 1.5px solid currentColor;
  font-weight: 700;
  color: var(--accent);
}

.text-link span {
  transition: transform 0.4s var(--ease);
}

.text-link:hover span {
  transform: translateX(5px);
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #9a8f80;
}

.is-open .status-dot,
.is-live .status-dot {
  background: #58c26a;
  box-shadow: 0 0 0 0 rgba(88, 194, 106, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(88, 194, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(88, 194, 106, 0); }
}

/* ---------- 4. Curtain & hero ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--mustard);
  pointer-events: none;
  animation: curtain-up 0.9s var(--ease-in-out) 1.05s forwards;
}

.curtain__logo {
  width: min(46vw, 230px);
  height: auto;
  animation: logo-in 0.9s var(--ease) both, logo-out 0.5s ease-in 0.95s forwards;
}

.no-js .curtain {
  display: none;
}

@keyframes curtain-up {
  to { clip-path: inset(0 0 100% 0); visibility: hidden; }
}

@keyframes logo-in {
  from { opacity: 0; transform: scale(0.6) rotate(-18deg); }
  to { opacity: 1; transform: none; }
}

@keyframes logo-out {
  to { opacity: 0; transform: translateY(-40px) scale(0.94); }
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #120d0a;
  color: var(--cream);
}

.hero__ambient {
  position: absolute;
  inset: -8%;
  z-index: -2;
  width: 116%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  filter: blur(28px) saturate(1.3) brightness(0.62);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 20% 100%, rgba(18, 13, 10, 0.78), transparent 60%),
    linear-gradient(180deg, rgba(18, 13, 10, 0.55), rgba(18, 13, 10, 0.1) 30%, rgba(18, 13, 10, 0.5));
}

.hero__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: clamp(14px, 2.2vw, 28px) var(--pad) 0;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.hero__status,
.visit__status,
.happy__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero__logo {
  display: block;
  width: clamp(72px, 8vw, 108px);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.8s var(--ease);
}

.hero__logo:hover {
  transform: rotate(-8deg) scale(1.05);
}

.hero__logo img {
  width: 100%;
  height: auto;
}

.hero__address {
  justify-self: end;
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 235, 218, 0.45);
}

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(24px, 5vw, 80px);
  max-width: var(--max);
  width: 100%;
  margin-inline: auto;
  padding: clamp(20px, 3vw, 40px) var(--pad) clamp(104px, 13vh, 150px);
}

.hero__kicker {
  overflow: hidden;
  margin-bottom: clamp(10px, 1.6vw, 22px);
  font-family: var(--font-label);
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mustard);
}

.hero__kicker span {
  display: block;
}

.hero__title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 900;
  /* Follows the width of the screen, but also its height: on a low laptop screen
     the three lines and the buttons still fit above the fold */
  font-size: clamp(3.3rem, min(11.5vw, 26.3vh - 83px), 9.6rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  /* room for umlauts and descenders inside the clipping box */
  padding: 0.16em 0.04em 0.12em;
  margin: -0.16em -0.04em -0.12em;
}

.hero__title .line > span {
  display: block;
}

.hero__title em {
  font-weight: 600;
  color: var(--mustard);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: clamp(22px, 3vw, 40px);
}

.hero__link {
  padding-bottom: 2px;
  border-bottom: 1.5px solid currentColor;
  font-weight: 700;
  text-decoration: none;
}

/* The link and the phone button stay together, also when the row wraps on a narrow phone */
.hero__contact {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.hero__call {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1.5px solid rgba(243, 235, 218, 0.55);
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease);
}

.hero__call:hover {
  border-color: var(--mustard);
  background: var(--mustard);
  color: var(--ink);
  transform: rotate(-12deg) scale(1.06);
}

.hero__call svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__window {
  position: relative;
  /* The second value keeps the arch short enough for low laptop screens */
  width: min(clamp(230px, 25vw, 380px), (100vh - 330px) * 9 / 14);
}

.arch--hero {
  aspect-ratio: 9 / 14;
  max-height: 64vh;
  margin-left: auto;
  outline: 1.5px solid rgba(243, 235, 218, 0.7);
  outline-offset: 9px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

/* Rotating round stamp, a nod to the round sign outside */
.stamp {
  position: absolute;
  left: clamp(-70px, -5vw, -40px);
  bottom: 9%;
  display: grid;
  place-items: center;
  width: clamp(112px, 11vw, 148px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mustard);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.6s var(--ease), background-color 0.3s ease;
}

.stamp:hover {
  transform: scale(1.08) rotate(6deg);
  background: var(--cream);
}

.stamp svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 22s linear infinite;
}

.stamp text {
  font-family: var(--font-label);
  font-size: 15px;
  letter-spacing: 0.1em; /* the text positions in index.html are worked out for this value */
  fill: currentColor;
}

.stamp__center {
  display: grid;
  justify-items: center;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  line-height: 1;
}

.stamp__center small {
  font-family: var(--font-body);
  font-size: 0.6em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hero entrance (only when JS is running) */
.js .hero__title .line > span,
.js .hero__kicker span {
  transform: translateY(115%);
  transition: transform 1.1s var(--ease);
}

.js .hero__title .line:nth-child(2) > span { transition-delay: 0.09s; }
.js .hero__title .line:nth-child(3) > span { transition-delay: 0.18s; }

.js .hero__bar > *,
.js .hero__actions,
.js .hero__window {
  opacity: 0;
  transition: opacity 1s ease 0.45s, transform 1.2s var(--ease) 0.35s;
}

.js .hero__window {
  transform: translateY(60px);
}

.js.is-ready .hero__title .line > span,
.js.is-ready .hero__kicker span {
  transform: none;
}

.js.is-ready .hero__bar > *,
.js.is-ready .hero__actions {
  opacity: 1;
}

.js.is-ready .hero__window {
  opacity: 1;
  transform: translateY(var(--py, 0px));
}

/* ---------- 5. Ticker & Über uns ---------- */
.ticker {
  overflow: hidden;
  background: var(--mustard);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 1.6em;
  padding: 0.75em 0.8em;
  animation: ticker 38s linear infinite;
}

.ticker i {
  font-style: normal;
  font-size: 0.7em;
  color: var(--red);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.statement {
  max-width: 21em;
  margin: clamp(24px, 4vw, 48px) auto clamp(56px, 9vw, 120px);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: clamp(1.75rem, 4.3vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-align: center;
  text-wrap: balance;
}

.statement .w {
  opacity: var(--o, 1);
  transition: opacity 0.25s linear;
}

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 6vw, 96px);
  align-items: start;
}

.duo__card--shift {
  margin-top: clamp(0px, 9vw, 130px);
}

.duo__media {
  aspect-ratio: 4 / 5;
}

.duo__media img {
  height: 118%;
  transform: translateY(var(--py, -6%));
  transition: scale 1.2s var(--ease);
}

.duo__card:hover .duo__media img {
  scale: 1.04;
}

.duo__text {
  padding-top: clamp(18px, 2.4vw, 30px);
}

.duo__time {
  margin-bottom: 6px;
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.duo__text h2 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.duo__text p:not(.duo__time) {
  max-width: 34em;
  margin-bottom: 16px;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(64px, 10vw, 140px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1.5px solid var(--line);
}

.facts strong {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.facts span {
  display: block;
  margin-top: 8px;
  max-width: 12em;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- 6. Karte ---------- */
.menu {
  padding-top: clamp(40px, 6vw, 80px);
}

.menu__tabs {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  gap: 8px;
  margin-inline: calc(var(--pad) * -1);
  padding: 12px var(--pad);
  overflow-x: auto;
  background: var(--bg);
  scrollbar-width: none;
  transition: background-color 0.6s ease;
}

.menu__tabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1100px) {
  .menu__tabs {
    justify-content: center;
  }
}

.menu__tab {
  flex: none;
  padding: 0.7rem 1.15rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.menu__tab:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}

.menu__tab[aria-selected="true"] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.menu__panel {
  columns: 2;
  column-gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(20px, 3vw, 40px);
  min-height: 60vh;
}

.menu__legend {
  column-span: all;
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.menu__legend b {
  margin: 0 0.25em 0 1em;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.mg {
  break-inside: avoid;
  padding-bottom: clamp(28px, 4vw, 48px);
  animation: rise 0.7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.07s);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
}

.mg__title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  font-family: var(--font-label);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mg__title::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: var(--fg);
  opacity: 0.85;
}

.mg__cols {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 6px;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--muted);
}

.mg__cols span,
.mi__price {
  flex: none;
  width: var(--pw, 3.4em);
  text-align: right;
}

.mi {
  padding: 0.42rem 0;
}

.mi__top {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.mi__name {
  font-weight: 700;
}

.mi__dots {
  flex: 1;
  min-width: 1.2rem;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-0.28em);
}

.mi__strength {
  flex: none;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.mi__price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mi__desc {
  max-width: 46ch;
  margin-top: 1px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
}

.mg__note {
  margin-top: 10px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}

.menu__foot {
  margin-top: clamp(16px, 3vw, 40px);
  padding-top: 24px;
  border-top: 1.5px solid var(--line);
}

.menu__foot p {
  max-width: 44em;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- 7. Happy Hour ---------- */
.happy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(227, 167, 43, 0.28), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(0, 0, 0, 0.35), transparent 70%),
    var(--red-deep);
  color: var(--cream);
}

.ticker--happy {
  background: var(--ink);
  color: var(--mustard);
}

.ticker--happy .ticker__track {
  animation-duration: 46s;
  animation-direction: reverse;
}

.ticker--happy i {
  color: var(--cream);
}

.happy__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 96px);
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(64px, 9vw, 130px) var(--pad) clamp(72px, 10vw, 150px);
}

.happy__head {
  position: sticky;
  top: clamp(24px, 6vh, 64px);
  align-self: start;
}

.happy__chip {
  padding: 8px 16px;
  border: 1.5px solid rgba(243, 235, 218, 0.4);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

.happy__title {
  margin: clamp(18px, 2.5vw, 30px) 0 clamp(14px, 2vw, 24px);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 900;
  font-size: clamp(4.4rem, 12.5vw, 10.5rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
}

.happy__title em {
  display: block;
  font-weight: 500;
  color: var(--mustard);
}

.happy__lead {
  max-width: 22em;
  font-size: 1.1rem;
  opacity: 0.9;
}

.happy__prices {
  display: flex;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 36px);
}

.happy__prices div {
  flex: 1;
  max-width: 210px;
  padding: 16px 20px 18px;
  border: 1.5px dashed rgba(243, 235, 218, 0.55);
  border-radius: 18px;
}

.happy__prices dt {
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mustard);
}

.happy__prices dd {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.1;
}

.happy__list {
  counter-reset: hh;
}

.hh {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 4px 12px;
  padding: clamp(16px, 2vw, 24px) clamp(8px, 1.4vw, 20px);
  border-bottom: 1.5px solid rgba(243, 235, 218, 0.22);
  counter-increment: hh;
  transition: background-color 0.4s ease, padding-left 0.5s var(--ease);
}

.hh:first-child {
  border-top: 1.5px solid rgba(243, 235, 218, 0.22);
}

.hh::before {
  content: counter(hh, decimal-leading-zero);
  grid-row: span 2;
  padding-top: 0.35em;
  font-family: var(--font-label);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--mustard);
}

.hh:hover {
  padding-left: clamp(18px, 2.4vw, 36px);
  background: rgba(18, 13, 10, 0.28);
}

.hh__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 700;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hh__desc {
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.78;
}

/* ---------- 8. Monatsangebote ---------- */
.offers {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: center;
}

.offers__arch {
  aspect-ratio: 9 / 14;
  max-width: 400px;
  margin-inline: auto;
}

.offers__caption {
  max-width: 400px;
  margin: 14px auto 0;
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  color: var(--muted);
}

.offers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(24px, 4vw, 48px);
}

.offer {
  padding: clamp(18px, 2.2vw, 28px);
  border: 1.5px dashed var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: transform 0.5s var(--ease), border-color 0.3s ease, background-color 0.6s ease;
}

.offer:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  border-color: var(--accent);
}

.offer--wide {
  grid-column: 1 / -1;
}

.offer h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.price-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

.price-list i {
  flex: 1;
  min-width: 1rem;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-0.28em);
}

.price-list b {
  font-variant-numeric: tabular-nums;
}

.price-list--big span {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 700;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.2;
}

.price-list--big small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--muted);
}

.price-list--big b {
  font-size: 1.15rem;
}

/* ---------- 9. Galerie ---------- */
.gallery {
  padding: clamp(16px, 3vw, 40px) 0 clamp(72px, 10vw, 140px);
}

/* A fixed mosaic. --w is the width of one column; every tile is 1.5 columns high,
   so wide tiles (two columns) come out 4:3 and upright tiles (one column) 2:3.
   Sizes are spelled out instead of using aspect-ratio so all browsers agree. */
.gallery__grid {
  --g: clamp(8px, 1.3vw, 18px);
  --w: calc((min(100vw, var(--max)) - 2 * var(--pad) - 3 * var(--g)) / 4);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: calc(var(--w) * 0.75 - var(--g) / 2);
  gap: var(--g);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.shot {
  position: relative;
  grid-row: span 2;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  cursor: zoom-in;
}

.shot--wide { grid-column: span 2; }
.shot--arch { border-radius: var(--arch); }

.shot img {
  width: 100%;
  height: 118%;
  max-width: none;
  object-fit: cover;
  transform: translateY(var(--py, -6%));
  transition: scale 1.4s var(--ease);
}

/* photos settle into place as they appear, and lean in on hover */
/* A wide photo shown in an upright tile: keep its right-hand side in view */
.shot--focus-right img { object-position: 90% 50%; }

.js .shot:not(.is-in) img { scale: 1.2; }
.shot:hover img { scale: 1.06; }

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 var(--mustard);
  transition: box-shadow 0.4s var(--ease);
  pointer-events: none;
}

.shot:hover::after,
.shot:focus-visible::after {
  box-shadow: inset 0 0 0 5px var(--mustard);
}

/* ---------- 10. Besuch & footer ---------- */
.visit {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: center;
  padding-top: clamp(24px, 4vw, 60px);
}

.visit__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(28px, 4vw, 56px);
}

.visit address {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 600;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.3;
}

.visit__contact {
  display: grid;
  justify-items: start;
  gap: 2px;
  margin: 18px 0 22px;
}

.visit__hint {
  font-size: 0.88rem;
  color: var(--muted);
}

.visit__contact a {
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.visit__contact a:hover {
  color: var(--accent);
}

/* Brief highlight when the phone button in the hero brings a visitor here */
.visit__phone.is-flash {
  animation: phone-flash 1.8s var(--ease);
}

@keyframes phone-flash {
  0%, 100% { scale: 1; }
  20%, 60% { scale: 1.12; }
  40% { scale: 1; }
}

.visit__phone {
  transform-origin: left center;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  white-space: nowrap;
  color: var(--accent);
  text-decoration: none;
}

.nowrap {
  white-space: nowrap;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hours th,
.hours td {
  padding: 0.5rem 0;
  border-bottom: 1.5px solid var(--line);
  font-weight: 400;
  text-align: left;
}

.hours td {
  text-align: right;
}

.hours tr.is-today th,
.hours tr.is-today td {
  font-weight: 700;
  color: var(--accent);
}

.hours tr.is-today th::after {
  content: "Heute";
  margin-left: 10px;
  padding: 2px 8px 3px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}

.visit__status {
  margin-top: 16px;
  font-weight: 500;
}

.visit__media {
  position: relative;
}

.visit__arch {
  aspect-ratio: 9 / 14;
  max-width: 400px;
  margin-inline: auto;
}

.visit__badge {
  position: absolute;
  left: -6%;
  bottom: 6%;
  width: clamp(96px, 11vw, 150px);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  transform: translateY(var(--py, 0px)) rotate(-10deg);
}

.footer {
  padding: clamp(56px, 8vw, 110px) var(--pad) 120px;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

.footer__big {
  margin-bottom: clamp(32px, 6vw, 80px);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(4rem, 17vw, 15rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--mustard);
}

.footer__grid {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  max-width: var(--max);
  margin-inline: auto;
  align-items: start;
}

.footer__logo {
  width: 104px;
  height: auto;
  border-radius: 50%;
}

.footer .mini-label {
  color: var(--mustard);
}

.footer a {
  text-decoration-color: rgba(243, 235, 218, 0.4);
  text-underline-offset: 3px;
}

.footer a:hover {
  color: var(--mustard);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin: clamp(32px, 5vw, 64px) auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 235, 218, 0.2);
  font-size: 0.85rem;
  color: rgba(243, 235, 218, 0.7);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

/* Legal pages (impressum.html, datenschutz.html): plain text pages in the same colours */
.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin-inline: auto;
  padding: 20px var(--pad);
}

.legal-top__logo img {
  width: 64px;
  height: auto;
  border-radius: 50%;
}

.legal-top__back {
  font-weight: 700;
  font-size: 0.95rem;
  text-underline-offset: 4px;
}

.legal-top__back:hover {
  color: var(--accent);
}

.legal {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 56px) var(--pad) clamp(72px, 10vw, 128px);
}

.legal h1 {
  margin-bottom: clamp(20px, 4vw, 36px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.legal h2 {
  margin: clamp(30px, 4.5vw, 44px) 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  line-height: 1.2;
}

.legal p,
.legal ul,
.legal address {
  margin-bottom: 14px;
}

.legal ul {
  padding-left: 1.2em;
  list-style: disc;
}

.legal li {
  margin-bottom: 4px;
}

.legal a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.legal__stand {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* The legal pages have no dock, so their footer needs no room for it */
.footer--slim {
  padding-block: 28px;
}

.footer--slim .footer__base {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.footer [aria-current="page"] {
  color: var(--mustard);
}

/* ---------- 11. Dock (navigation) & lightbox ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 20px);
  padding: 6px;
  border: 1px solid rgba(243, 235, 218, 0.16);
  border-radius: 999px;
  background: rgba(26, 19, 16, 0.86);
  color: var(--cream);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  transform: translateX(-50%);
  transition: transform 1s var(--ease) 0.5s;
}

.js:not(.is-ready) .dock {
  transform: translate(-50%, 160%);
}

.dock__links {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dock__links::-webkit-scrollbar {
  display: none;
}

.dock a {
  flex: none;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dock a:hover {
  background: rgba(243, 235, 218, 0.12);
}

.dock a.is-active {
  background: var(--mustard);
  color: var(--ink);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 8, 6, 0.94);
}

.lightbox[open] {
  display: grid;
  place-items: center;
  animation: fade 0.35s ease;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  border-radius: 12px;
  animation: zoom 0.5s var(--ease);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
}

@keyframes fade {
  from { opacity: 0; }
}

@keyframes zoom {
  from { opacity: 0; transform: scale(0.94); }
}

/* ---------- 12. Motion & responsive ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js [data-clip] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease-in-out);
}

.js .is-in [data-clip],
.js [data-clip].is-in {
  clip-path: inset(0 0 0 0);
}

@media (max-width: 960px) {
  .hero__body {
    grid-template-columns: 1fr;
  }

  /* On phones the portrait video fills the whole screen, sharp */
  .hero__ambient {
    inset: 0;
    width: 100%;
    height: 100%;
    filter: saturate(1.1) brightness(0.72);
  }

  .hero__shade {
    background: linear-gradient(180deg, rgba(18, 13, 10, 0.6), rgba(18, 13, 10, 0.05) 32%, rgba(18, 13, 10, 0.82) 82%);
  }

  /* The stamp sits bottom right, just above the "So findest du uns" link.
     The first value repeats the bottom padding of .hero__body; 62px is the button row plus a little air. */
  .hero__window {
    position: absolute;
    right: var(--pad);
    bottom: calc(clamp(104px, 13vh, 150px) + 62px);
    width: auto;
  }

  .arch--hero {
    display: none;
  }

  .stamp {
    position: relative;
    left: auto;
    bottom: auto;
  }

  .hero__bar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .hero__logo { order: -1; }
  .hero__address { display: none; }

  .menu__panel { columns: 1; }

  .happy__inner,
  .offers,
  .visit {
    grid-template-columns: 1fr;
  }

  .happy__head {
    position: static;
  }

  .offers__media { order: 2; }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visit__badge { left: 2%; }
}

@media (max-width: 640px) {
  .duo {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .duo__card--shift { margin-top: 0; }

  /* Tighter button row, so button, link and phone button fit on one line on most phones */
  .hero__actions { column-gap: 14px; }
  .hero__actions .btn { padding-inline: 1.1rem; }
  .hero__contact { gap: 10px; }
  .hero__call { width: 40px; height: 40px; }

  /* Small enough to fit beside the headline on a narrow phone */
  .stamp { width: clamp(88px, 27vw, 112px); }
  .stamp__center { font-size: 0.95rem; }

  .gallery__grid {
    --w: calc((100vw - 2 * var(--pad) - var(--g)) / 2);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offers__grid,
  .visit__cols {
    grid-template-columns: 1fr;
  }

  .dock a {
    padding-inline: 0.8rem;
    font-size: 0.86rem;
  }

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

/* Phones: the dock spans the screen and the six links share its width.
   The text shrinks slightly with the screen so that all six always fit. */
@media (max-width: 540px) {
  .dock {
    left: 6px;
    right: 6px;
    gap: 0;
    max-width: none;
    padding: 4px;
    transform: none;
  }

  .js:not(.is-ready) .dock {
    transform: translateY(160%);
  }

  .dock__links {
    flex: 1;
    gap: 0;
  }

  .dock a {
    flex: 1 1 auto;
    padding-inline: 2px;
    font-size: clamp(0.7rem, 3.2vw, 0.86rem);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .curtain { display: none; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal],
  .js [data-clip] {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}
