/* ==========================================================================
   NIMBO. — styles.css
   Two layers only:  SKY  (white Outfit display type + white doodles)
                     PAPER (white cards, espresso ink, matcha accent)
   Glass appears exactly twice: nav pill + visit panel.
   ========================================================================== */

/* ── Fonts (self-hosted, subset WOFF2; TTF kept as fallback) ───────────── */
@font-face { font-family: "Outfit"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../assets/fonts/outfit-400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../assets/fonts/outfit-600.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../assets/fonts/outfit-700.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("../assets/fonts/outfit-800.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 900; font-style: normal; font-display: swap;
  src: url("../assets/fonts/outfit-900.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../assets/fonts/caveat-600.woff2") format("woff2"); }
/* Metric-matched fallbacks keep the layout still while the web fonts load */
@font-face { font-family: "Outfit Fallback"; src: local("Arial"); size-adjust: 99.3%; ascent-override: 100.7%; descent-override: 26.2%; }
/* Caveat is ~30% narrower than any system sans: without this the H1 re-wraps when the script font arrives */
@font-face { font-family: "Caveat Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 68%; }

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* sky layer */
  --sky-deep: #1C5FAE;          /* html fallback behind the photo · white 6.2:1 */
  --sky: #2874C2;
  --on-sky: #FFFFFF;            /* worst baked pixel of the backdrop = 3.14:1 → large text only */
  --shadow-on-sky: 0 1px 0 rgb(13 42 94 / .25), 0 10px 36px rgb(13 42 94 / .35);

  /* paper layer */
  --paper: #FFFFFF;
  --paper-2: #F4F8EA;           /* matcha milk: wells, avatar discs */
  --paper-3: #E5EFFB;           /* sky milk: hover tint, map tile */
  --rule: #B8C4D2;              /* dotted leaders on the receipt */
  --ink: #2D1A0E;               /* NIMBO dark roast · 16.6:1 on paper */
  --ink-deep: #1A0F07;          /* NIMBO espresso */
  --ink-2: #584A40;             /* 8.1:1 */
  --muted: #64503F;             /* 7.6:1 · smallest text */
  --cream: #F5F0E8;             /* NIMBO cream: text on espresso */
  --on-ink-soft: #CDBFAE;       /* secondary text on espresso */

  /* accent: matcha (owns primary CTA, active tab, stamps, open dot) */
  --accent: #A4C95F;            /* ink on it 9.9:1 */
  --accent-hover: #93BA4C;
  --accent-edge: #47671C;
  --accent-text: #47671C;       /* deep matcha text on paper 6.5:1 */
  /* second accent: NIMBO gold (stars + 10th stamp, graphics only) */
  --gold: #A9782B;              /* 3.9:1 on paper */
  --gold-soft: #E9C46A;

  /* button edges (the solid rim a button face presses onto) */
  --edge-paper: #B9C6D6; --edge-sky: #123F80; --edge-ghost: #9DB4CE;
  /* glass: one recipe for both glass surfaces */
  --glass-bg: rgb(255 255 255 / .82); --glass-border: rgb(255 255 255 / .6); --glass-solid: rgb(255 255 255 / .96);
  --glass-filter: blur(18px) saturate(1.4);
  --todo-bg: #FFF8E1; --todo-mark: #FFE9A8;   /* legal placeholder pages only */

  --focus: var(--ink-deep);
  --focus-halo: #FFFFFF;

  --shadow-card: 0 1px 2px rgb(13 42 94 / .08), 0 12px 32px -8px rgb(13 42 94 / .24);
  --shadow-card-hover: 0 2px 4px rgb(13 42 94 / .10), 0 24px 48px -12px rgb(13 42 94 / .34);

  /* radius system: panels 28 · cards 20 · media nested inside a card 14 · interactive = pill */
  --radius-panel: 28px;
  --radius-card: 20px;
  --radius-inner: 14px;
  --radius-pill: 999px;

  --font-display: "Outfit", "Outfit Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-script: "Caveat", "Caveat Fallback", cursive;

  /* type scale, fitted to the longest German words in the real font files */
  --fs-hero: clamp(2.4rem, .6rem + 9.6vw, 8.5rem);      /* rem part keeps it growing with browser zoom */
  --fs-h2: clamp(2.25rem, 1.35rem + 4.5vw, 5.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  --fs-lede: clamp(1.1875rem, 1.05rem + .6vw, 1.5rem);   /* weight 700 → large text on sky */
  --fs-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --fs-small: .875rem;
  --fs-note: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);     /* Caveat */
  --fs-note-sm: clamp(1.5rem, 1.35rem + .6vw, 1.875rem);

  --space-2xs: .25rem; --space-xs: .5rem; --space-sm: .75rem; --space-md: 1rem; --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  /* section rhythm is fluid: fixed 9rem gaps were a third of a phone screen */
  --space-2xl: clamp(2.75rem, 2.2rem + 2.6vw, 4rem); --space-3xl: clamp(3.5rem, 2.4rem + 5vw, 6rem); --space-4xl: clamp(4.5rem, 2.6rem + 9vw, 9rem);
  --shell: 80rem;
  --gutter: clamp(1rem, 4vw, 4rem);
  --nav-h: 4rem;

  --z-sky: -1; --z-pinned: 0; --z-base: 1; --z-raised: 10; --z-nav: 300; --z-toast: 400;

  /* motion: emil-design-eng / transitions-dev / apple-design */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-settle: cubic-bezier(0.34, 2.2, 0.64, 1);    /* small travel only (≤ 8px / ≤ 12deg) */
  --spring-pop: cubic-bezier(0.34, 1.36, 0.64, 1);   --spring-pop-dur: 450ms;
  --spring-celebrate: cubic-bezier(0.34, 1.56, 0.64, 1); --spring-celebrate-dur: 550ms;
  --dur-press: 100ms; --dur-release: 160ms; --dur-quick: 150ms; --dur-hover: 200ms;
  --dur-settle: 320ms; --dur-fast: 250ms; --dur-medium: 300ms; --dur-reveal: 600ms;
  --stagger: 50ms; --stagger-hero: 60ms;
}
/* real springs where linear() exists; the long duration is the settle tail, 99% of travel is done by ~250ms */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-pop: linear(0, 0.008 1.2%, 0.03 2.5%, 0.062 3.8%, 0.113 5.2%, 0.217 7.8%, 0.485 13.5%, 0.595 16%, 0.704 18.8%, 0.789 21.2%, 0.859 23.8%, 0.922 26.5%, 0.968 29.2%, 1.002 32%, 1.036 37%, 1.046 42.8%, 1.003 70.2%, 1);
    --spring-pop-dur: 740ms;
    --spring-celebrate: linear(0, 0.008 1.2%, 0.029 2.5%, 0.07 4%, 0.124 5.5%, 0.245 8.2%, 0.533 14%, 0.651 16.5%, 0.758 19%, 0.85 21.5%, 0.919 23.8%, 0.981 26.2%, 1.027 28.7%, 1.063 31.5%, 1.089 35.2%, 1.094 39.5%, 1.081 44.5%, 1.019 58.8%, 0.998 67%, 0.991 77.8%, 1);
    --spring-celebrate-dur: 810ms;
  }
}

/* ── Base ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--sky-deep); overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + var(--space-xl)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; overflow-x: clip; min-height: 100svh; font: 400 var(--fs-body)/1.55 var(--font-display);
  color: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ink-deep); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 6px var(--focus-halo); }
:focus:not(:focus-visible) { outline: none; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: var(--space-sm); left: var(--space-sm); z-index: calc(var(--z-nav) + 1);
  padding: .75rem 1.25rem; border-radius: var(--radius-pill); background: var(--paper); color: var(--ink);
  font-weight: 700; text-decoration: none; translate: 0 -200%; }
.skip-link:focus-visible { translate: 0 0; }

.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }

/* ── Sky backdrop (fixed element, never background-attachment: fixed) ───── */
.sky { position: fixed; inset: 0; height: 100lvh; z-index: var(--z-sky); pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-deep), var(--sky)); }
.sky__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── Type on the sky ───────────────────────────────────────────────────── */
.on-sky { color: var(--on-sky); text-shadow: var(--shadow-on-sky); }
.h2 { font: 800 var(--fs-h2)/1 var(--font-display); letter-spacing: -.03em; text-wrap: balance;
  overflow-wrap: anywhere; hyphens: manual; min-width: 0; max-width: 15ch; }
.lede { font: 700 var(--fs-lede)/1.35 var(--font-display); max-width: 34ch; text-wrap: pretty; }
.note { font: 600 var(--fs-note)/1.15 var(--font-script); color: var(--on-sky); text-shadow: var(--shadow-on-sky);
  padding-bottom: .1em; rotate: -3deg; transform-origin: left center; }
.note--ink { color: var(--accent-text); text-shadow: none; }
.note--cream { color: var(--cream); text-shadow: none; }

/* ── Buttons: a face that lifts on hover and presses onto a solid edge ──── */
.btn { --face: var(--paper); --edge: var(--edge-paper); --label: var(--ink);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 3rem; padding: .7rem 1.5rem; border: 2px solid transparent; border-radius: var(--radius-pill);
  background: none; color: var(--label); font: 700 1.0625rem/1.1 var(--font-display); text-decoration: none;
  white-space: nowrap; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: translate var(--dur-release) var(--ease-out); }
.btn::before, .btn::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; }
.btn::before { z-index: -1; background: var(--face); transition: background-color var(--dur-quick) ease; }
.btn::after { z-index: -2; background: var(--edge); translate: 0 4px; transition: translate var(--dur-release) var(--ease-out); }
.btn--primary { --face: var(--accent); --edge: var(--accent-edge); --label: var(--ink-deep); }
.btn--paper { --face: var(--paper); --edge: var(--edge-sky); }
.btn--ghost { --face: var(--paper-3); --edge: var(--edge-ghost); }
.btn--sm { min-height: 2.75rem; padding: .55rem 1.15rem; font-size: 1rem; }
.btn:active { translate: 0 3px; transition-duration: var(--dur-press); }
.btn:active::after { translate: 0 1px; transition-duration: var(--dur-press); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { translate: 0 -2px; }
  .btn:hover::after { translate: 0 6px; }
  .btn--primary:hover { --face: var(--accent-hover); }
  .btn:active { translate: 0 3px; }
  .btn:active::after { translate: 0 1px; }
}
.link { color: var(--accent-text); font-weight: 600; text-underline-offset: .2em; text-decoration-thickness: .08em; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-thickness: .16em; } }
/* touch has no hover and the tap highlight is off, so text links answer a press themselves */
.link:active, .biglink:active, .nav__brand:active { opacity: .7; }

/* ── Doodle slots ───────────────────────────────────────────────────────
   The client supplies the artwork in assets/doodles/. Until a file exists the slot
   shows a clearly labelled dashed placeholder (never a substitute drawing). */
.doodle { --size: 6rem; position: absolute; display: grid; place-items: center; width: var(--size); aspect-ratio: 1;
  pointer-events: none; color: var(--on-sky); }
.doodle img { width: 100%; height: 100%; object-fit: contain; }
.doodle.is-missing { border: 2px dashed var(--on-sky); border-radius: var(--radius-card); }
.doodle.is-missing::after { content: "Doodle: " attr(data-label); padding: .25rem; font: 600 clamp(.875rem, calc(var(--size) * .19), 1.375rem)/1.05 var(--font-script);
  max-width: 100%; overflow-wrap: anywhere; text-align: center; text-shadow: var(--shadow-on-sky);
  letter-spacing: normal; text-transform: none; }          /* slots inside the H1 must not inherit its tracking */
.doodle.is-tinted { background: currentColor; -webkit-mask: var(--doodle-src) center / contain no-repeat;
  mask: var(--doodle-src) center / contain no-repeat; }

.pinned { position: fixed; inset: 0; z-index: var(--z-pinned); pointer-events: none; display: none; }
@media (min-width: 96rem) {
  .pinned { display: block; }
  .pinned__sun { --size: 5.5rem; top: 7.5rem; left: calc((100% - var(--shell)) / 2 - 7.5rem); }
}

/* ── Nav: floating glass pill (glass #1) ───────────────────────────────── */
.nav { position: fixed; top: var(--space-md); left: 0; right: 0; z-index: var(--z-nav); display: grid; justify-items: center;
  padding-inline: var(--gutter); pointer-events: none; }
.nav__pill { pointer-events: auto; display: flex; align-items: center; gap: var(--space-lg); min-height: var(--nav-h);
  padding: .5rem .5rem .5rem 1.5rem; border-radius: var(--radius-pill); border: 1px solid var(--glass-border);
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: var(--shadow-card); }
.nav__brand { font: 900 1.375rem/1 var(--font-display); letter-spacing: -.03em; text-decoration: none; white-space: nowrap;
  padding-block: .5rem; }
.nav__brand span, .stampcard__brand span { color: var(--accent-text); }
.nav__links { display: none; align-items: center; gap: .25rem; }
.nav__links a { position: relative; padding: .7rem .8rem; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none;
  white-space: nowrap; transition: background-color var(--dur-quick) ease; }
.nav__links a[aria-current="true"] { background: var(--paper-2); }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover, .nav__sheet nav a:hover { background: var(--paper-3); }
  .nav__brand:hover span { color: var(--ink); }
  .nav__toggle:hover { background: var(--accent-edge); }
}
.nav__links a:active, .nav__sheet nav a:active, .foot__links a:active { background: var(--paper-3); }
.nav__cta { display: none; }
.nav__toggle { display: grid; place-items: center; width: 3rem; height: 3rem; margin-left: auto; border: 0; border-radius: 50%;
  background: var(--ink); color: var(--paper); cursor: pointer; touch-action: manipulation;
  transition: scale var(--dur-release) var(--ease-out); }
.nav__toggle:active { scale: .94; transition-duration: var(--dur-press); }
.nav__bars { position: relative; display: block; width: 1.25rem; height: .75rem; }
.nav__bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: translate var(--dur-fast) var(--ease-smooth-out), rotate var(--dur-fast) var(--ease-smooth-out); }
.nav__bars i:first-child { top: 0; }
.nav__bars i:last-child { bottom: 0; }
.nav__toggle[aria-expanded="true"] .nav__bars i:first-child { translate: 0 .3125rem; rotate: 45deg; }
.nav__toggle[aria-expanded="true"] .nav__bars i:last-child { translate: 0 -.3125rem; rotate: -45deg; }
.nav__pill { width: 100%; max-width: 46rem; }

.nav__sheet { pointer-events: auto; width: 100%; max-width: 46rem; margin-top: .5rem; padding: var(--space-lg);
  border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-card-hover);
  display: grid; gap: var(--space-lg); transform-origin: calc(100% - 2rem) 0;
  /* short viewports (phone landscape, 400% zoom): the fixed sheet scrolls instead of hiding its last links */
  max-height: calc(100vh - var(--nav-h) - var(--space-md) - 1.5rem); max-height: calc(100dvh - var(--nav-h) - var(--space-md) - 1.5rem);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; scale: .96; translate: 0 -8px;
  transition: opacity var(--dur-quick) var(--ease-out), scale var(--dur-quick) var(--ease-out), translate var(--dur-quick) var(--ease-out); }
.nav__sheet.is-open { opacity: 1; scale: 1; translate: 0 0; transition-duration: var(--dur-fast); }
.nav__sheet nav { display: grid; }
.nav__sheet nav a { margin-inline: -.5rem; padding: .8rem .75rem; font: 800 1.5rem/1.1 var(--font-display); letter-spacing: -.02em; text-decoration: none;
  border-radius: var(--radius-pill); }
.nav__sheet .btn { justify-self: start; }
@media (min-width: 64rem) {
  .nav__pill { width: auto; max-width: none; }
  .nav__links, .nav__cta { display: flex; }
  .nav__toggle, .nav__sheet { display: none !important; }
}

/* ── Hero: left-biased poster ──────────────────────────────────────────── */
.hero { padding-block: calc(var(--nav-h) + var(--space-2xl)) var(--space-3xl); }
.hero__title { font: 900 var(--fs-hero)/.94 var(--font-display); letter-spacing: -.04em; overflow-wrap: anywhere;
  hyphens: manual; min-width: 0; }
.hero__line { display: block; position: relative; }
.hero__word { display: inline-block; }
.hero__word--script { font: 600 1.2em/.8 var(--font-script); letter-spacing: -.01em; rotate: -4deg; translate: 0 .04em;
  padding-inline: .06em .1em; }
.hero__doodle-star { --size: clamp(3.5rem, 7vw, 6.5rem); display: none; right: 0; top: 50%; translate: 0 -50%; }
@media (min-width: 64rem) { .hero__doodle-star { display: grid; } }

.hero__row { display: grid; gap: var(--space-xl); margin-top: var(--space-xl); }
.hero__copy { display: grid; gap: var(--space-lg); align-content: start; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-md); padding-bottom: 6px; }
.hero__photo { position: relative; rotate: 1.5deg; }
.hero__photo img { width: 100%; aspect-ratio: 1000 / 1220; object-fit: cover; border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card-hover); background: var(--paper-3); }
.hero__doodle-hearts { --size: clamp(4rem, 8vw, 6.5rem); right: .25rem; bottom: -2.25rem; rotate: 8deg; }   /* far from the star slot: max 3 doodles per view */
@media (min-width: 48rem) {
  .hero__row { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); align-items: start; }
  .hero__copy { padding-top: var(--space-sm); }
  .hero__photo img { aspect-ratio: 2400 / 1340; }
  .hero__photo { margin-right: calc(var(--gutter) * -.5); }
}

/* rotating badge: state ring + K. core. Sits on the photo's corner and hangs into the ticker seam. */
.badge { position: absolute; left: -.25rem; bottom: -3rem; z-index: var(--z-raised); display: grid; place-items: center;
  width: clamp(7rem, 12vw, 9.25rem); aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--cream);
  text-decoration: none; box-shadow: var(--shadow-card-hover); rotate: -1.5deg;
  transition: scale var(--dur-release) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .badge:hover { scale: 1.04; } }
.badge:hover .badge__ring, .badge:focus-visible .badge__ring { animation-play-state: paused; }
.badge:active { scale: .97; transition-duration: var(--dur-press); }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge__ring text { font: 800 17.5px/1 var(--font-display); letter-spacing: .04em; fill: currentColor; }
.badge__core { font: 900 clamp(2rem, 4vw, 2.75rem)/1 var(--font-display); letter-spacing: -.04em; }
.badge__core span { color: var(--accent); }
@media (min-width: 48rem) { .badge { left: -3.5rem; bottom: -3.5rem; } }
@keyframes spin { to { rotate: 360deg; } }

/* ── Ticker: the one marquee, a paper band across the seam ─────────────── */
.ticker { position: relative; z-index: var(--z-base); width: 104%; margin-left: -2%; rotate: -1.5deg; overflow: hidden;
  padding-block: 1rem; background: var(--paper); box-shadow: var(--shadow-card); }
.ticker__track { display: flex; width: max-content; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__group span { font: 800 clamp(1.125rem, 2vw, 1.75rem)/1 var(--font-display); letter-spacing: -.01em; text-transform: uppercase;
  white-space: nowrap; }
.ticker__group i { flex: none; width: .55em; aspect-ratio: 1; margin-inline: clamp(1.25rem, 3vw, 2.5rem); border-radius: 50%;
  background: var(--accent); font-size: clamp(1.125rem, 2vw, 1.75rem); }
.ticker.is-ready .ticker__track { animation: marquee var(--marquee-dur, 40s) linear infinite; will-change: transform; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@media (hover: hover) and (pointer: fine) { .ticker:hover .ticker__track { animation-play-state: paused; } }

/* loops stop off screen and with the global toggle (WCAG 2.2.2) */
.ticker.is-ready.is-offscreen .ticker__track,
[data-motion="paused"] .ticker.is-ready .ticker__track { animation-play-state: paused; }   /* (0,4,0): beats the shorthand above */
.badge.is-offscreen .badge__ring, [data-motion="paused"] .badge .badge__ring { animation-play-state: paused; }

/* ── Cards (paper layer) ───────────────────────────────────────────────── */
.letter, .item, .feature, .quote, .slip, .receipt, .smallprint, .foot__strip {
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-card); }

/* ── About: tilted letter + photo slot ──────────────────────────────── */
.about { padding-block: var(--space-4xl) var(--space-3xl); }
.about__grid { position: relative; display: grid; gap: var(--space-2xl); margin-top: var(--space-xl); }
.letter { border-radius: var(--radius-panel); padding: clamp(1.5rem, 4vw, 3rem); rotate: -1deg; display: grid; gap: var(--space-md);
  hyphens: manual; overflow-wrap: break-word; }
.letter p { max-width: 58ch; }
.letter__values { font: 800 var(--fs-h3)/1.2 var(--font-display); letter-spacing: -.01em; }
.letter__sign { margin-top: var(--space-sm); display: grid; gap: var(--space-xs); }
.letter__names { font-size: var(--fs-note); }
.letter__role { font-size: var(--fs-small); color: var(--muted); max-width: 44ch; }
.letter__role strong { color: var(--ink); font-weight: 700; }
.about__photo { position: relative; justify-self: center; width: min(86%, 26rem); rotate: 2deg; }
.about__photo img { width: 100%; aspect-ratio: 1100 / 1320; object-fit: cover; border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card-hover); background: var(--paper-3); }
.sticker { position: absolute; left: -1.75rem; bottom: -1.75rem; display: grid; place-content: center; text-align: center;
  width: clamp(7rem, 12vw, 9rem); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--ink-deep);
  rotate: -10deg; box-shadow: var(--shadow-card); }
.sticker strong { font: 900 clamp(1.625rem, 3vw, 2.25rem)/1 var(--font-display); letter-spacing: -.03em; }
.sticker span { font: 700 1rem/1.2 var(--font-display); }
.about__doodle { display: none; }
@media (min-width: 64rem) {
  .about__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .letter { rotate: -1.5deg; }
  .about__photo { width: 100%; margin-top: var(--space-2xl); rotate: 2.5deg; }
  .about__doodle { --size: 6.5rem; display: grid; left: 61%; top: -3rem; rotate: 12deg; }
}

/* ── Karte: pill tab rail + cards straight on the sky + receipt ────────── */
.menu { padding-block: var(--space-3xl) var(--space-4xl); }
.menu__head { position: relative; display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-sm) var(--space-xl); }
.menu__note { rotate: -4deg; }
.menu__doodle { --size: 5.5rem; display: none; right: 0; top: -1rem; }
@media (min-width: 64rem) { .menu__doodle { display: grid; } }
.menu__intro { margin-top: var(--space-lg); }

.tabs { margin-top: var(--space-xl); }
.tabs__scroller { border-radius: var(--radius-pill); background: var(--paper); box-shadow: var(--shadow-card);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity;
  scroll-padding-inline: 1.5rem; }
.tabs__scroller::-webkit-scrollbar { display: none; }
.tabs__scroller.can-scroll-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 3.5rem), #0000); mask-image: linear-gradient(90deg, #000 calc(100% - 3.5rem), #0000); }
.tabs__scroller.can-scroll-left { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 3.5rem), #0000); mask-image: linear-gradient(270deg, #000 calc(100% - 3.5rem), #0000); }
.tabs__scroller.can-scroll-left.can-scroll-right { -webkit-mask-image: linear-gradient(90deg, #0000, #000 3.5rem calc(100% - 3.5rem), #0000); mask-image: linear-gradient(90deg, #0000, #000 3.5rem calc(100% - 3.5rem), #0000); }
.tabs__inner { position: relative; width: max-content; padding: .4rem; }
.tabs__list { display: flex; gap: .15rem; }
.tab { display: inline-flex; align-items: center; gap: .4em; min-height: 2.875rem; padding: .5rem .95rem; border-radius: var(--radius-pill);
  font: 700 1rem/1 var(--font-display); color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer;
  scroll-snap-align: start; touch-action: manipulation; transition: background-color var(--dur-quick) ease, scale var(--dur-release) var(--ease-out); }
.tab:active { scale: .97; transition-duration: var(--dur-press); }
.tab__count { font: 600 .8125rem/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .tab:hover { background: var(--paper-3); } }
/* the focused tab is lifted above the clipped green duplicate, otherwise the pill paints over its focus ring */
.tab:focus-visible { outline-offset: -3px; box-shadow: none; position: relative; z-index: 1; }
.tab:focus-visible .tab__count { color: var(--ink-deep); }
/* active look = a clipped duplicate of the rail; only the clip-path moves (paint only, no layout) */
.tabs__list--active { position: absolute; inset: .4rem; pointer-events: none; background: var(--accent); border-radius: var(--radius-pill);
  clip-path: inset(0 100% 0 0 round 999px); }
.tabs.is-animated .tabs__list--active { transition: clip-path var(--dur-fast) var(--ease-smooth-out); }
.tabs__list--active .tab { color: var(--ink-deep); background: none; }
.tabs__list--active .tab__count { color: var(--ink-deep); }
.tabs.is-ready .tab[aria-selected="true"] { background: none; }

.panels { margin-top: var(--space-lg); }
.panel { scroll-margin-top: calc(var(--nav-h) + var(--space-xl)); }
.panel + .panel { margin-top: var(--space-2xl); }
.panel__title { font: 800 var(--fs-h3)/1.1 var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); letter-spacing: -.02em;
  margin-bottom: var(--space-md); hyphens: manual; }
.tabs.is-ready .panel__title { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tabs.is-ready .panel + .panel { margin-top: 0; }
.panel__body { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: stretch; }
.features { display: contents; }

.feature, .item { position: relative; border-radius: var(--radius-card); }
.feature { flex: 1 1 100%; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--space-md); align-items: center;
  padding: var(--space-sm) var(--space-lg) var(--space-sm) var(--space-sm); }
.feature img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius-inner); }
.feature__text { display: grid; gap: .35rem; }
.items { flex: 1 1 20rem; min-width: 0; display: flex; flex-wrap: wrap; gap: var(--space-md); align-content: start; }
.item { flex: 1 1 12.5rem; max-width: 22rem; min-height: 6.75rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: space-between;
  gap: var(--space-sm) var(--space-md); padding: 1.1rem 1.25rem; }
.item__name { grid-column: 1 / -1; font: 800 1.1875rem/1.15 var(--font-display); letter-spacing: -.015em; text-wrap: balance;
  overflow-wrap: anywhere; hyphens: manual; }               /* product names are never hyphenated by the browser */
.item__meta { font: 600 var(--fs-small)/1.2 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink-2); align-self: end; }
.item__price { grid-column: 2; font: 400 var(--fs-small)/1.2 var(--font-display); color: var(--muted); align-self: end; justify-self: end; white-space: nowrap; }
.feature .item__name { font-size: 1.3125rem; }
.feature .item__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem var(--space-md); }
/* the day a price arrives: <data class="item__price" value="4.20">4,20 €</data> gets the bold treatment, no CSS change */
data.item__price:not([value=""]) { font-weight: 800; font-size: 1.125rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.panel__hint { margin-top: var(--space-md); display: inline-block; padding: .55rem 1rem; border-radius: var(--radius-pill);
  background: var(--paper); box-shadow: var(--shadow-card); font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; }
.panel__hint strong { font-weight: 800; color: var(--accent-text); }

/* sticker tilt: a fixed set so the wall of cards feels hand-placed */
.item:nth-child(6n + 1) { rotate: -1deg; } .item:nth-child(6n + 2) { rotate: .7deg; } .item:nth-child(6n + 3) { rotate: -.4deg; }
.item:nth-child(6n + 4) { rotate: 1.1deg; } .item:nth-child(6n + 5) { rotate: 0deg; } .item:nth-child(6n) { rotate: -.8deg; }
.feature:nth-child(odd) { rotate: -1.2deg; } .feature:nth-child(even) { rotate: 1deg; }

/* phones: compact rows read faster than a tall one-column wall of cards */
@media (max-width: 39.99rem) {
  .items { gap: var(--space-sm); }
  .item, .item:nth-child(n) { flex: 1 1 100%; max-width: none; min-height: 0; rotate: none; grid-template-rows: auto auto; align-items: center;
    gap: .1rem var(--space-md); padding: .85rem 1.15rem; }
  .item__name { grid-column: 1; grid-row: 1 / span 2; font-size: 1.125rem; }
  .item__meta { grid-column: 2; grid-row: 1; justify-self: end; align-self: end; }
  .item__price { grid-column: 2; grid-row: 2; align-self: start; }
  .item__meta:empty { display: none; }
  .item__meta:empty + .item__price { grid-row: 1 / span 2; align-self: center; }
}
@media (min-width: 48rem) {
  .feature { flex: 0 0 15.5rem; grid-template-columns: 1fr; align-content: start; align-items: start; padding: var(--space-md) var(--space-md) var(--space-lg); }
  .feature__text { padding-inline: .35rem; }
}

/* hover: two signals only. The card straightens up and its shadow deepens (a cross-faded layer, box-shadow is never animated) */
.item::after, .feature::after, .quote::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: var(--shadow-card-hover); opacity: 0; transition: opacity var(--dur-hover) ease; }
/* independent properties so they never overwrite each other:
   rotate = resting tilt · translate = scroll reveal · transform = keyframes / hover lift */
@media (hover: hover) and (pointer: fine) {
  .item, .feature { transition: rotate var(--dur-settle) var(--ease-settle); }
  .item:hover, .feature:hover { rotate: 0deg; }
  .item:hover::after, .feature:hover::after, .quote:hover::after { opacity: 1; }
}

/* tab panel enter: cards rise in a short stagger; exits are instant (hidden) */
/* the most repeated interaction on the page: 250ms, 30ms steps, tail done after 400ms */
.panel.is-entering .feature, .panel.is-entering .item, .panel.is-entering .panel__hint { animation: card-in var(--dur-fast) var(--ease-out) backwards;
  animation-delay: calc(min(var(--i, 0), 5) * 30ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }

.menu__foot { position: relative; display: grid; gap: var(--space-xl); margin-top: var(--space-2xl); align-items: start; }
.smallprint { border-radius: var(--radius-card); padding: var(--space-lg); display: grid; gap: var(--space-sm); font-size: var(--fs-small);
  color: var(--ink-2); max-width: 38rem; hyphens: auto; }
.receipt { justify-self: start; width: min(100%, 20rem); padding: var(--space-lg) var(--space-lg) 2.25rem; rotate: 2deg;
  border-radius: var(--radius-inner) var(--radius-inner) 0 0; box-shadow: none; filter: drop-shadow(0 12px 18px rgb(13 42 94 / .28));
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #0000 0 90deg, #000 0) bottom / 24px 12px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat,
    conic-gradient(from 135deg at 50% 0, #000 0 90deg, #0000 0) bottom / 24px 12px repeat-x; }
.receipt__title { font: 800 1.25rem/1.1 var(--font-display); letter-spacing: -.01em; margin-bottom: var(--space-md); }
.receipt__rows { display: grid; gap: .6rem; }
.receipt__rows li { display: flex; align-items: baseline; gap: var(--space-xs); font-weight: 600; }
.receipt__rows i { flex: 1; min-width: 1rem; border-bottom: 2px dotted var(--rule); translate: 0 -.25em; }
.receipt__rows data { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent-text); }
.receipt__fine { margin-top: var(--space-md); font-size: .8125rem; color: var(--muted); }
@media (min-width: 64rem) {
  .menu__foot { grid-template-columns: minmax(0, 1fr) auto; }
  .receipt { justify-self: end; margin-top: -3.25rem; margin-right: 1rem; rotate: 2.5deg; z-index: var(--z-raised); }   /* overlap stays inside the cards' bottom padding */
}

/* ── Bewertungen: big numeral + fanned pile of notes ───────────────────── */
.reviews { padding-block: var(--space-2xl) var(--space-3xl); display: grid; gap: var(--space-xl); }
.reviews__score { position: relative; display: grid; justify-items: start; gap: var(--space-md); }
.reviews__num { font: 900 clamp(5.5rem, 3rem + 9vw, 11rem)/.8 var(--font-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  margin-bottom: .12em; }   /* room for the comma's tail above the stars pill */
.reviews__score .h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.75rem); max-width: 11ch; }
.reviews__doodle { --size: 5.5rem; right: 0; top: 0; rotate: 10deg; }
.stars { display: inline-flex; gap: .15rem; color: var(--gold); }
.star { width: 1.125rem; height: 1.125rem; }
.stars--pill { padding: .5rem .8rem; border-radius: var(--radius-pill); background: var(--paper); box-shadow: var(--shadow-card); }
.stars--pill .star { width: 1.5rem; height: 1.5rem; }

.reviews__pile { display: flex; gap: var(--space-md); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: var(--space-md) var(--gutter) var(--space-xl);
  scroll-padding-inline: var(--gutter); }
.reviews__pile::-webkit-scrollbar { display: none; }
.quote { position: relative; flex: 0 0 min(86%, 22rem); scroll-snap-align: start; border-radius: var(--radius-card);
  padding: var(--space-lg); display: grid; gap: var(--space-md); align-content: start; }
.quote__head { display: flex; align-items: center; gap: var(--space-sm); }
.quote__avatar { flex: none; display: grid; place-items: center; width: 3rem; aspect-ratio: 1; border-radius: 50%; background: var(--paper-2);
  color: var(--accent-text); font: 900 2.25rem/1 var(--font-display); padding-top: .55rem; }
.quote__name { font: 700 1rem/1.2 var(--font-display); }
.quote blockquote { font-size: var(--fs-body); line-height: 1.5; overflow-wrap: break-word; text-wrap: pretty; }
.reviews__disclosure { justify-self: start; padding: .6rem 1rem; border-radius: var(--radius-pill); background: var(--paper);
  box-shadow: var(--shadow-card); font-size: var(--fs-small); color: var(--ink-2); }
@media (min-width: 64rem) {
  .reviews { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; column-gap: var(--space-2xl); }
  .reviews__pile { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: 0; overflow: visible; margin: 0; padding: 0; }
  .quote { flex: none; }
  .quote:nth-child(1) { grid-column: 1 / 8; grid-row: 1; rotate: -2deg; z-index: 2; }
  .quote:nth-child(2) { grid-column: 8 / 13; grid-row: 1; margin: 5rem 0 0 -1.25rem; rotate: 1.5deg; z-index: 1; }
  .quote:nth-child(3) { grid-column: 3 / 10; grid-row: 2; margin-top: -.6rem; rotate: -1deg; z-index: 3; }   /* overlaps card 2's bottom padding only, never its text */
  .quote:hover, .quote:focus-within { z-index: 5; }
  .reviews__disclosure { grid-column: 2; }
}
/* below 64rem the pile is a swipe row: cards outside its box never intersect, so the row reveals as ONE unit;
   from 64rem the cards reveal one by one and the list itself stays put */
@media (max-width: 63.99rem) { .js .reviews__pile .quote.reveal { opacity: 1; translate: none; transition: none; } }
@media (min-width: 64rem) { .js .reviews__pile.reveal { opacity: 1; translate: none; transition: none; } }
.reviews__pile:focus-visible { outline-offset: -3px; }
@media (min-width: 64rem) and (hover: hover) and (pointer: fine) {
  /* .quote is also a .reveal (translate + opacity), so the hover lift rides on transform with its own timing */
  .js .quote.reveal, .quote { transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out), transform var(--dur-settle) var(--ease-settle);
    transition-delay: calc(min(var(--reveal-i, 0), 5) * var(--stagger)), calc(min(var(--reveal-i, 0), 5) * var(--stagger)), 0ms; }
  .quote:hover { transform: translateY(-4px); }
}

/* ── Stempelkarte: one tilted espresso object + a paper slip ───────────── */
.loyalty { padding-block: var(--space-4xl); display: grid; gap: var(--space-2xl); align-items: center; }
.loyalty__object { position: relative; justify-self: center; width: min(100%, 31rem); }
.loyalty__doodle { --size: 5.5rem; right: -.5rem; top: -6.5rem; rotate: -8deg; }   /* clears the card title incl. its rotated box */
.stampcard { aspect-ratio: 1.586; rotate: -3deg; padding: clamp(1rem, 3.5vw, 1.75rem); border-radius: var(--radius-panel);
  background: var(--ink); color: var(--cream); box-shadow: var(--shadow-card-hover); display: grid; align-content: space-between; gap: var(--space-sm); }
.stampcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); }
.stampcard__brand { font: 900 clamp(1.25rem, 3.5vw, 1.75rem)/1 var(--font-display); letter-spacing: -.03em; }
.stampcard__brand span { color: var(--accent); }
.stampcard__title { font: 600 var(--fs-small)/1 var(--font-display); color: var(--on-ink-soft); }
.stampcard__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.4rem, 1.6vw, .75rem); }
.stamp { position: relative; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgb(245 240 232 / .45); display: grid; place-items: center; }
.stamp::after { content: "N."; display: grid; place-items: center; width: 86%; aspect-ratio: 1; border-radius: 50%;
  border: 3px solid currentColor; color: var(--accent); font: 900 clamp(.875rem, 2.6vw, 1.25rem)/1 var(--font-display); letter-spacing: -.03em;
  opacity: 0; scale: 1.35; rotate: calc(var(--r, -8deg) - 14deg); }
.stamp.is-inked::after { opacity: .95; scale: 1; rotate: var(--r, -8deg);
  transition: scale var(--spring-pop-dur) var(--spring-pop), rotate var(--spring-pop-dur) var(--spring-pop), opacity 90ms linear; }
.stamp--free { border: 2px solid var(--gold-soft); }
.stamp--free::after { content: "GRATIS"; width: 100%; border-width: 2px; color: var(--gold-soft); font-size: clamp(.5625rem, 1.6vw, .75rem); letter-spacing: 0; }
.stamp--free.is-inked::after { transition: scale var(--spring-celebrate-dur) var(--spring-celebrate), rotate var(--spring-celebrate-dur) var(--spring-celebrate), opacity 90ms linear; }
/* one single, non-looping ring when the tenth stamp lands */
.stamp--free.is-inked::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--gold-soft);
  animation: ring 700ms var(--ease-out) both; pointer-events: none; }
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.stampcard__note { font-size: var(--fs-note-sm); rotate: -2deg; justify-self: end; }

.loyalty__copy { display: grid; gap: var(--space-lg); }
.loyalty__copy .h2 { font-size: clamp(2.25rem, 1.35rem + 3.4vw, 4.25rem); }
.slip { border-radius: var(--radius-panel); padding: clamp(1.5rem, 3.5vw, 2.25rem); display: grid; gap: var(--space-md); overflow-wrap: break-word; text-wrap: pretty; }
.slip strong { font-weight: 800; }
.slip__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xs); padding-bottom: 6px; }
.slip__fine { font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 64rem) {
  .loyalty { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-2xl); }
  .loyalty__object { justify-self: start; margin-left: var(--space-xl); }
}

/* ── Besuch: map tile + overlapping glass panel (glass #2) ─────────────── */
.visit { padding-block: var(--space-3xl); }
.visit__grid { position: relative; display: grid; margin-top: var(--space-xl); }
.map { position: relative; width: 100%; min-width: 0; min-height: 26rem; border-radius: var(--radius-panel); overflow: hidden;
  background: var(--paper-3); box-shadow: var(--shadow-card); display: grid; }
.map__consent { align-self: center; justify-self: center; display: grid; gap: var(--space-sm); justify-items: start; max-width: 30rem; min-width: 0;
  padding: var(--space-lg) var(--space-lg) var(--space-2xl); color: var(--ink); }
.map__pin { width: 2.75rem; height: 2.75rem; color: var(--accent-text); }
.map__title { font: 800 var(--fs-h3)/1.1 var(--font-display); letter-spacing: -.01em; }
.map__text { font-size: var(--fs-small); color: var(--ink-2); hyphens: auto; }
.map__text a { color: var(--accent-text); font-weight: 600; }
.map__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: var(--space-xs); padding-bottom: 6px; }
.map__actions .link { font-size: var(--fs-small); }
.map iframe { position: absolute; inset: 0; width: 100%; height: calc(100% - 2rem); border: 0; }   /* the panel overlaps the tile: keep Google's controls clear of it */
.map__hide { position: absolute; left: .75rem; top: .75rem; z-index: 1; }

.glass { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--ink);
  -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); box-shadow: var(--shadow-card-hover); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass, .nav__pill { background: var(--glass-solid); } }
@media (prefers-reduced-transparency: reduce) { .glass, .nav__pill { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.visit__panel { position: relative; z-index: var(--z-raised); margin: -2rem var(--space-sm) 0; padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border-radius: var(--radius-panel); display: grid; gap: var(--space-md); align-content: start; }
.open-state { display: flex; flex-wrap: wrap; align-items: center; gap: .25em .5em; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.open-state strong { font-weight: 800; }
.open-state__dot { flex: none; width: .7rem; aspect-ratio: 1; border-radius: 50%; background: var(--muted); }
.open-state.is-open .open-state__dot { background: var(--accent-text); }
.visit__address { display: grid; font-weight: 600; color: var(--ink-2); }
.visit__street { font: 800 clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem)/1.05 var(--font-display); letter-spacing: -.025em; color: var(--ink); }
.visit__note { font-size: var(--fs-note-sm); rotate: -2deg; }
.visit__h3 { font: 800 1.125rem/1.1 var(--font-display); margin-top: var(--space-xs); hyphens: manual; }
.hours { display: grid; gap: .55rem; font-variant-numeric: tabular-nums; }
.hours > div { display: flex; justify-content: space-between; gap: var(--space-sm); padding: .15rem 0; }
.hours dt { color: var(--ink-2); white-space: nowrap; }
.hours dd { white-space: nowrap; }
.hours .dash { display: inline-block; width: .7em; height: 2px; margin-inline: .3em; background: currentColor; vertical-align: .3em; }
.hours [aria-current="date"] dt, .hours [aria-current="date"] dd { font-weight: 800; color: var(--ink); }
.hours [aria-current="date"] dt::before { content: ""; display: inline-block; width: .5rem; aspect-ratio: 1; margin-right: .5rem; border-radius: 50%;
  background: var(--accent-text); vertical-align: .1em; }
.visit__fine { font-size: var(--fs-small); color: var(--muted); }
.visit__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xs); padding-bottom: 6px; }
.visit__doodle { display: none; }
@media (min-width: 64rem) {
  .visit__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .map { grid-column: 1 / 9; grid-row: 1; min-height: 0; aspect-ratio: 4 / 3; }
  .map iframe { width: calc(100% - 6.5rem); height: 100%; }
  .map__consent { justify-self: start; margin-left: var(--space-xl); max-width: 24rem; }
  .visit__panel { grid-column: 8 / 13; grid-row: 1; margin: var(--space-2xl) 0 0; }
  .visit__doodle { --size: 6rem; display: grid; right: 1.5rem; top: -3.75rem; rotate: 25deg; }
}

/* ── Kontakt: three giant lines that ARE the links ─────────────────────── */
/* full-width type; the photo is a loose snapshot in the corner, not a second 7/5 split like About */
.contact { position: relative; padding-block: var(--space-3xl) var(--space-2xl); }
.contact__lead { display: grid; gap: var(--space-lg); }
.biglinks { display: grid; gap: var(--space-lg); margin-top: var(--space-xl); }
.biglink { position: relative; display: inline-grid; gap: .2rem; text-decoration: none; padding-block: .25rem; }
.biglink__label { display: inline-flex; align-items: center; gap: .5rem; font: 700 1.25rem/1 var(--font-display); }
.biglink__label svg { width: 1.5rem; height: 1.5rem; }
.biglink__text { position: relative; justify-self: start; font: 900 clamp(2.125rem, .9rem + 6.2vw, 6.5rem)/1 var(--font-display); letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.biglink__text::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: .09em; border-radius: var(--radius-pill); background: currentColor;
  scale: 0 1; transform-origin: right center; transition: scale var(--dur-medium) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .biglink:hover .biglink__text::after { scale: 1 1; transform-origin: left center; } }
.biglink:focus-visible .biglink__text::after { scale: 1 1; }
.contact__photo { position: relative; width: min(78%, 20rem); margin: var(--space-2xl) 0 var(--space-xl) auto; rotate: 3deg; }
.contact__photo img { width: 100%; aspect-ratio: 1400 / 1045; object-fit: cover; border-radius: var(--radius-panel); box-shadow: var(--shadow-card-hover);
  background: var(--paper-3); }
.contact__note { position: absolute; right: .5rem; bottom: -3rem; rotate: -5deg; }
@media (min-width: 64rem) { .contact__photo { position: absolute; right: 0; top: calc(var(--space-3xl) - 1.5rem); width: 21rem; margin: 0; rotate: 4deg; } }

/* ── Footer: slim paper strip + giant clipped wordmark ─────────────────── */
.foot { overflow: clip; padding-block: var(--space-3xl) 4.5rem; }            /* bottom room: the fixed pause button never sits on the wordmark */
@media (min-width: 96rem) { .foot { padding-block-end: 0; } }               /* from here the button lives in the side gutter */
.foot .shell { container-type: inline-size; }
.foot__strip { position: relative; z-index: var(--z-base); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-xl);
  padding: 1rem 1.5rem; border-radius: var(--radius-panel); font-size: var(--fs-small); }
.foot__addr strong { font-weight: 900; letter-spacing: -.02em; margin-right: .35rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: .25rem; }
.foot__links a { padding: .7rem .8rem; border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; transition: background-color var(--dur-quick) ease; }
@media (hover: hover) and (pointer: fine) { .foot__links a:hover { background: var(--paper-3); } }
.foot__copy { color: var(--muted); }
/* measured 4.19em wide at this tracking → 24.1cqi spans the shell: K on the shell line, dot on its right edge.
   pointer-events: its tall inline box must never win the hit test over the footer links above it */
.foot__mark { font: 900 clamp(3.5rem, 24.1cqi, 22rem)/.74 var(--font-display); letter-spacing: -.045em; white-space: nowrap; margin: var(--space-xl) 0 0 -.05em;
  pointer-events: none; user-select: none; -webkit-user-select: none; }
.foot__mark span { color: var(--accent); text-shadow: none; }

/* ── Symbolbild chip on every generated lifestyle photo ───────────────── */
.photo-chip { position: absolute; left: .75rem; top: .75rem; padding: .3rem .65rem; border-radius: var(--radius-pill); background: var(--glass-solid);
  color: var(--ink-2); font: 600 .75rem/1 var(--font-display); }

/* ── Motion toggle + toast ─────────────────────────────────────────────── */
.motion-toggle { position: fixed; left: var(--space-md); bottom: var(--space-md); z-index: calc(var(--z-nav) - 1); display: inline-flex; align-items: center; gap: .5rem;
  min-width: 2.75rem; min-height: 2.75rem; padding: .5rem; border: 0; border-radius: var(--radius-pill); background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-card); font: 600 var(--fs-small)/1 var(--font-display); cursor: pointer; touch-action: manipulation;
  transition: scale var(--dur-release) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .motion-toggle:hover { background: var(--paper-3); } }
.motion-toggle:active { scale: .96; transition-duration: var(--dur-press); }
.motion-toggle svg { width: 1.5rem; height: 1.5rem; margin-inline: .125rem; }
.motion-toggle span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 63.99rem) { .motion-toggle { left: auto; right: var(--space-md); } }   /* phones: the badge and the CTAs live on the left */
@media (min-width: 64rem) { .motion-toggle { padding: .5rem 1rem .5rem .6rem; } .motion-toggle span { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; } }

.toast { position: fixed; left: 50%; bottom: var(--space-lg); z-index: var(--z-toast); translate: -50% 1rem; opacity: 0; pointer-events: none;
  padding: .75rem 1.25rem; border-radius: var(--radius-pill); background: var(--ink); color: var(--cream); font-weight: 600; white-space: nowrap;
  transition: opacity var(--dur-quick) var(--ease-out), translate var(--dur-quick) var(--ease-out); }
.toast.is-on { opacity: 1; translate: -50% 0; transition-duration: var(--dur-fast); }
.toast { max-width: calc(100% - 2 * var(--space-md)); white-space: normal; text-align: center; }

/* ── Scroll reveal: containers only, content is visible without JS ─────── */
.js .reveal { opacity: 0; translate: 0 24px;
  transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out);
  transition-delay: calc(min(var(--reveal-i, 0), 5) * var(--stagger)); }
.js .reveal.is-in, .reveal-all .reveal { opacity: 1; translate: 0 0; }
.js .reveal.is-instant { transition: none; }   /* already scrolled past on load: simply there */

/* hero settles once on load (pure CSS keyframes, so it never depends on main.js) */
.js [data-hero-step] { animation: hero-in 600ms var(--ease-out) both; animation-delay: calc(var(--step, 0) * var(--stagger-hero) + 80ms); }
@keyframes hero-in { from { opacity: 0; transform: translateY(.35em); } }
@keyframes hero-in-blur { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } }
@keyframes hero-rise { from { transform: translateY(.35em); } }
@media (prefers-reduced-motion: no-preference) {
  /* the photo is the LCP element: it only rises, it is never held at opacity 0. Blur is for the headline words alone. */
  .js .hero__photo[data-hero-step] { animation-name: hero-rise; animation-delay: 80ms; }
  @media (min-width: 48rem) { .js .hero__word[data-hero-step] { animation-name: hero-in-blur; } }
}

/* progressive enhancement: scroll-linked, compositor-only, no scroll listeners */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .pinned__sun { animation: turn linear both; animation-timeline: scroll(root block); }
    @keyframes turn { to { rotate: 220deg; } }
    .foot__mark { animation: mark-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    @keyframes mark-rise { from { transform: translateY(18%); opacity: .4; } }
  }
}
[data-motion="paused"] .pinned__sun { animation-play-state: paused; }

/* ── Reduced motion: no movement, short fades, loops stopped ───────────── */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .quote.reveal, .quote { translate: none; transition: opacity 150ms linear; transition-delay: 0ms; }
  .js [data-hero-step] { animation: fade-only 150ms linear both; animation-delay: 0ms; }
  @keyframes fade-only { from { opacity: 0; } }
  /* the ticker becomes a static, wrapped, centred list (main.js adds no clone and no is-ready here) */
  .ticker__track, .ticker.is-ready .ticker__track { animation: none; width: auto; }
  .ticker__group { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: center; row-gap: .6rem; padding-inline: calc(2% + var(--gutter)); }
  .ticker__group[data-clone] { display: none; }
  .badge__ring { animation: none; }
  .stamp::after, .stamp.is-inked::after { scale: 1; rotate: var(--r, -8deg); transition: opacity 150ms linear; }
  .stamp--free.is-inked::before { animation: none; opacity: 0; }
  .panel.is-entering .feature, .panel.is-entering .item, .panel.is-entering .panel__hint { animation: fade-only 150ms linear both; animation-delay: 0ms; }
  .tabs.is-animated .tabs__list--active { transition: none; }
  .nav__sheet, .nav__sheet.is-open { scale: 1; translate: none; transition: opacity 150ms linear; }
  .toast, .toast.is-on { translate: -50% 0; transition: opacity 150ms linear; }
  .nav__bars i { transition: none; }
  .btn, .btn::after, .item, .feature, .biglink__text::after, .badge { transition-duration: 1ms; }
  .item:hover, .feature:hover, .quote:hover { transform: none; }
  .badge:hover { scale: none; }
  .btn:hover:not(:active) { translate: none; }
  .btn:hover:not(:active)::after { translate: 0 4px; }
}

/* ── Without JavaScript: nothing on the page may look clickable and do nothing ── */
.no-js .nav__toggle, .no-js .motion-toggle, .no-js [data-stamp-add], .no-js [data-map-load], .no-js [data-copy] { display: none; }
.no-js .nav__links { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.no-js .badge__ring { animation: none; }
.no-js .ticker__track { width: auto; }
.no-js .ticker__group { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: center; row-gap: .6rem; padding-inline: calc(2% + var(--gutter)); }

/* ── Forced colours / print ────────────────────────────────────────────── */
@media (forced-colors: active) {
  .btn { border-color: ButtonText; }
  .tabs__list--active { display: none; }
  .tab[aria-selected="true"] { outline: 2px solid Highlight; }
  .stamp.is-inked::after { forced-color-adjust: none; }
}
@media print {
  .sky, .pinned, .nav, .ticker, .motion-toggle, .toast, .doodle, .badge { display: none !important; }
  html, body { background: #fff; }
  .on-sky, .note { color: #000; text-shadow: none; }
  .js .reveal { opacity: 1; translate: none; }
  .panel[hidden] { display: block !important; }
  .tabs.is-ready .panel__title { position: static !important; width: auto; height: auto; clip-path: none; color: #000; }
}

/* ── NIMBO. brand mark: a little cloud ─────────────────────────────────── */
.nav__brand { display: inline-flex; align-items: center; gap: .4rem; }
.nav__cloud { width: 1.9rem; height: auto; color: var(--sky-deep, #1C5FAE); flex: none; }
.badge__core svg { width: 3.2rem; height: auto; display: block; color: #1C5FAE; }
.nav__word { font: inherit; }
