/* Böhmisch Pur, production stylesheet (built from concept "Bergblau V2").
   Design read: the logo (mountain sketch, script "Böhmisch", roman capitals "PUR") is the design system.
   - Marcellus (roman capitals) echoes "PUR" in the logo (justified serif exception: the logo uses one).
   - Caveat (handwriting) echoes the script in the logo and the Instagram posts, short notes only.
   - The logo's mountain line is reused as image mask, section edge and tour trail.
   One theme only: "Kohle dunkel". No light mode, no prefers-color-scheme variants.
   Radius system: buttons fully rounded, cards and images 20px, mountain edges sharp. */

/* ---------- Fonts (self-hosted, see assets/fonts/OFL-*.txt) ---------- */
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/marcellus-latin-400.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: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/marcellus-latin-ext-400.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/figtree-latin-400.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: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/figtree-latin-500.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: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/figtree-latin-600.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: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/figtree-latin-700.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: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/figtree-latin-ext-400.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/figtree-latin-ext-600.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/figtree-latin-ext-700.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/caveat-latin-700.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: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/caveat-latin-ext-700.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --paper: #0e0e0f; --paper-2: #18181a; --card: #1d1d20; --ink: #efece5; --muted: rgb(239 236 229 / 0.68);
  --line: rgb(239 236 229 / 0.16); --accent: #efece5; --on-accent: #0e0e0f; --deep: #232326; --deep-fg: #efece5;

  --serif: "Marcellus", "Times New Roman", serif;
  --body: "Figtree", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --r: 20px;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1200px;

  /* z-index scale */
  --z-hero-text: 2;
  --z-header: 10;

  /* Mountain mask of the hero. Single source of truth: main.js parses these values for its fallback,
     and the polylines in index.html use the same y values. Seven peaks at x = 0, 16, 28, 50, 63, 76, 100. */
  --peaks: polygon(0% 100%, 0% 77%, 16% 64%, 28% 71%, 50% 54%, 63% 64%, 76% 59%, 100% 73%, 100% 100%);
}
@media (min-width: 900px) {
  :root { --peaks: polygon(0% 100%, 0% 76%, 16% 63%, 28% 69%, 50% 45%, 63% 57%, 76% 51%, 100% 65%, 100% 100%); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button { touch-action: manipulation; }
button, .btn { user-select: none; -webkit-user-select: none; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hand { font-family: var(--hand); font-weight: 700; color: var(--accent); line-height: 1.1; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 0.6rem 1rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(8px + env(safe-area-inset-top)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 52px; padding: 0 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; border: 2px solid transparent; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .icon { transition: transform 220ms var(--ease-out); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-paper { background: var(--deep-fg); color: var(--deep); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .icon { transform: translateX(3px); }
  .btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}
.text-link { display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; font-weight: 700; color: var(--muted); text-decoration: none; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .text-link:hover { color: var(--ink); } }

/* ---------- Header + menu ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--serif); font-size: 1.2rem; letter-spacing: 0.04em; text-transform: uppercase; }
.brand img { width: 40px; height: auto; }
.nav { display: none; gap: 1.75rem; align-items: center; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--muted); transition: color 150ms ease; }
.nav a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover { color: var(--ink); } }
.nav .btn { min-height: 44px; padding: 0 1.2rem; }
.burger { position: relative; width: 48px; height: 48px; margin-right: -8px; border: 0; background: none; cursor: pointer; transition: transform 140ms var(--ease-out); }
.burger:active { transform: scale(0.94); }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: currentColor; }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
@media (min-width: 900px) { .nav { display: flex; } .burger { display: none; } }

.menu {
  position: fixed; inset: 0 0 auto 0; width: 100%; max-width: none; margin: 0; border: 0;
  padding: calc(env(safe-area-inset-top) + 8px) var(--gutter) 5rem;
  background: var(--deep); color: var(--deep-fg);
  /* the bottom edge is shaped like the mountain line */
  clip-path: polygon(0 0, 100% 0, 100% 0, 76% 0, 63% 0, 50% 0, 28% 0, 16% 0, 0 0);
  transition: clip-path 520ms var(--ease-drawer), display 520ms allow-discrete, overlay 520ms allow-discrete;
}
.menu:popover-open { clip-path: polygon(0 0, 100% 0, 100% 92%, 76% 86%, 63% 90%, 50% 82%, 28% 93%, 16% 88%, 0 96%); }
@starting-style { .menu:popover-open { clip-path: polygon(0 0, 100% 0, 100% 0, 76% 0, 63% 0, 50% 0, 28% 0, 16% 0, 0 0); } }
.menu::backdrop { background: rgb(0 0 0 / 0); transition: background-color 300ms ease, display 520ms allow-discrete, overlay 520ms allow-discrete; }
.menu:popover-open::backdrop { background: rgb(0 0 0 / 0.55); }
@starting-style { .menu:popover-open::backdrop { background: rgb(0 0 0 / 0); } }
.menu-head { display: flex; justify-content: space-between; align-items: center; height: 58px; }
.menu-head img { width: 40px; }
.menu-close { width: 48px; height: 48px; margin-right: -8px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.menu-close .icon { width: 26px; height: 26px; }
.menu ul { list-style: none; padding: 1.25rem 0 1.5rem; margin: 0; text-align: center; }
.menu li a { display: block; padding: 0.45rem 0; font-family: var(--serif); font-size: 2.1rem; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; }
.menu .btn { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .menu:popover-open li { animation: drop 420ms var(--ease-out) both; animation-delay: calc(var(--i) * 45ms + 140ms); }
}
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Hero: mountain mask that opens on scroll ---------- */
.berg { position: relative; height: 210svh; height: 210lvh; view-timeline: --berg block; }
/* lvh: stage as tall as the screen with Safari's toolbar collapsed, otherwise a strip stays empty at the bottom */
.berg-stage { position: sticky; top: 0; height: 100svh; height: 100lvh; overflow: clip; }
.berg-text { position: relative; z-index: var(--z-hero-text); padding-top: calc(76px + env(safe-area-inset-top)); text-align: center; }
.berg-text .hand { display: inline-block; font-size: 1.45rem; transform: rotate(-3deg); margin: 0 0 0.35rem; }
.berg h1 { margin: 0 auto 0.75rem; width: min(42vw, 180px); }
.berg h1 img { width: 100%; }
.berg-text > p:not(.hand) { margin: 0 auto 1.25rem; max-width: 32ch; font-size: clamp(1.0625rem, 2.4vw, 1.25rem); color: var(--muted); }
.berg-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.berg-ctas .btn { padding: 0 1.15rem; }
.berg-photo { position: absolute; inset: 0; z-index: 1; clip-path: var(--peaks); }
.berg-photo img, .berg-photo picture { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.berg-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.55), transparent 40%); opacity: 0; }
.berg-line { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.berg-line .d { display: none; }
.berg-line polyline { fill: none; stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (min-width: 900px) {
  /* desktop: text on the left, logo on the right */
  .berg-text {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: 4rem;
    align-items: start; text-align: left; padding-top: calc(110px + env(safe-area-inset-top));
  }
  .berg-text .hand { grid-column: 1; grid-row: 1; justify-self: start; font-size: 1.8rem; margin-top: 1.5rem; }
  .berg h1 { grid-column: 2; grid-row: 1 / span 3; margin: 0 2vw 0 0; width: clamp(240px, 22vw, 320px); }
  .berg-text > p:not(.hand) { grid-column: 1; grid-row: 2; margin: 0.5rem 0 2rem; max-width: 22ch; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.1; color: var(--ink); }
  .berg-ctas { grid-column: 1; grid-row: 3; justify-content: flex-start; }
  .berg-line .m { display: none; }
  .berg-line .d { display: inline; }
}
@media (prefers-reduced-motion: no-preference) {
  /* load animation: the mountain line draws itself, the photo rises out of the valley.
     html:not(.gated) (temporary password gate): start only once the gate is gone, because Safari
     does not run animations behind it and they would stay stuck at their invisible start */
  html:not(.gated) .berg-line polyline { animation: draw 1600ms var(--ease-in-out) both 200ms; }
  html:not(.gated) .berg-photo img { animation: rise-photo 1400ms var(--ease-out) both 350ms; }
  html:not(.gated) .berg-text > * { animation: fade-up 800ms var(--ease-out) both; }
  .berg-text > :nth-child(2) { animation-delay: 90ms; }
  .berg-text > :nth-child(3) { animation-delay: 180ms; }
  .berg-text > :nth-child(4) { animation-delay: 260ms; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise-photo { from { transform: translateY(18%) scale(1.06); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .berg-photo { animation: open-peaks linear both; animation-timeline: --berg; animation-range: contain 0% contain 55%; }
    .berg-shade { animation: shade linear both; animation-timeline: --berg; animation-range: contain 40% contain 70%; }
    .berg-line { animation: line-out linear both; animation-timeline: --berg; animation-range: contain 0% contain 20%; }
    .berg-text { animation: text-out linear both; animation-timeline: --berg; animation-range: contain 0% contain 40%; }
  }
  /* reduced motion: only reveal and crossfade, no translation, no zoom.
     The user drives everything with their finger, nothing plays on its own. */
  @media (prefers-reduced-motion: reduce) {
    .berg-photo { animation: open-peaks linear both; animation-timeline: --berg; animation-range: contain 0% contain 55%; }
    .berg-shade { animation: shade linear both; animation-timeline: --berg; animation-range: contain 40% contain 70%; }
    .berg-line { animation: fade-out linear both; animation-timeline: --berg; animation-range: contain 0% contain 20%; }
    .berg-text { animation: fade-out linear both; animation-timeline: --berg; animation-range: contain 0% contain 40%; }
  }
}
@keyframes fade-out { to { opacity: 0; } }
@keyframes open-peaks {
  from { clip-path: var(--peaks); }
  to { clip-path: polygon(0% 100%, 0% 0%, 16% 0%, 28% 0%, 50% 0%, 63% 0%, 76% 0%, 100% 0%, 100% 100%); }
}
@keyframes shade { to { opacity: 1; } }
@keyframes line-out { to { opacity: 0; transform: translateY(-6%); } }
@keyframes text-out { to { opacity: 0; transform: translateY(-40px); } }
/* no scroll timeline and no JS: the hero is simply one screen tall */
@supports not (animation-timeline: view()) { html:not(.scrub) .berg { height: auto; } html:not(.scrub) .berg-stage { position: relative; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 13vh, 150px); }
.h2 { margin: 0 0 1rem; font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(2.4rem, 9vw, 5rem); line-height: 1; }
.lead { margin: 0 0 2.5rem; max-width: 48ch; color: var(--muted); font-size: 1.125rem; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
  }
}

/* ---------- Dates as a hiking trail (home) ---------- */
.trail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(70vw, 270px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  list-style: none; margin: 0; position: relative;
}
.trail::-webkit-scrollbar { display: none; }
.stop { scroll-snap-align: start; position: relative; padding-top: 44px; }
.stop[hidden] { display: none; }
/* trail: dashed line through all stops, dot = stop (carries meaning, not decoration) */
.stop::before { content: ""; position: absolute; top: 15px; left: 0; right: -14px; border-top: 2px dashed var(--line); }
.stop::after { content: ""; position: absolute; top: 8px; left: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--accent); }
.stop:last-child::before { right: 50%; }
.stop-card { background: var(--card); border-radius: var(--r); padding: 1.25rem; height: 100%; display: flex; flex-direction: column; gap: 0.35rem; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 14px 30px -20px rgb(0 0 0 / 0.35); }
.stop-date { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.stop-date small { font-size: 1.1rem; margin-left: 0.25rem; color: var(--muted); }
.stop h3 { margin: 0; font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.stop p { margin: 0; color: var(--muted); font-size: 0.95rem; display: flex; gap: 0.35em; align-items: center; }
.stop.next .stop-card { background: var(--accent); color: var(--on-accent); }
.stop.next p, .stop.next .stop-date small { color: color-mix(in srgb, currentColor 75%, transparent); }
.stop.next .btn { margin-top: auto; min-height: 46px; background: var(--on-accent); color: var(--accent); }
.trail-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.5rem 1.5rem; }
.trail-head .hand { font-size: 1.7rem; transform: rotate(-2deg); margin: 0 0 1.5rem; }
.trail-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: 2rem; }

/* ---------- Solos: cards that open a popup ---------- */
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: min(58vw, 280px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); }
.reels::-webkit-scrollbar { display: none; }
.reel { scroll-snap-align: start; display: block; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.reel-img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.reel-img img, .reel-img picture { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.reel-img .icon { position: absolute; left: 50%; top: 50%; width: 3.6rem; height: 3.6rem; translate: -50% -50%; color: #f7f5ef; filter: drop-shadow(0 4px 14px rgb(0 0 0 / 0.5)); transition: transform 220ms var(--ease-out); }
.reel b { display: block; margin-top: 0.8rem; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.reel > span:last-child { color: var(--muted); font-size: 0.92rem; }
.reel:active .reel-img .icon { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .reel:hover .reel-img img { transform: scale(1.04); } }
@media (min-width: 1000px) { .reels { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding: 0; } }

.solo {
  width: min(100% - 32px, 420px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: calc(var(--r) + 4px);
  background: var(--card); color: var(--ink); overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.7);
  opacity: 0; transform: scale(0.96);
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out), display 260ms allow-discrete, overlay 260ms allow-discrete;
}
.solo:popover-open { opacity: 1; transform: none; }
@starting-style { .solo:popover-open { opacity: 0; transform: scale(0.96); } }
@media (prefers-reduced-motion: reduce) { .solo, .solo:popover-open { transform: none; } }
.solo::backdrop { background: rgb(0 0 0 / 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color 220ms ease, backdrop-filter 220ms ease, display 260ms allow-discrete, overlay 260ms allow-discrete; }
.solo:popover-open::backdrop { background: rgb(0 0 0 / 0.65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@starting-style { .solo:popover-open::backdrop { background: rgb(0 0 0 / 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }
.solo-img { position: relative; aspect-ratio: 4 / 5; max-height: 58dvh; width: 100%; overflow: hidden; }
.solo-img img, .solo-img picture { width: 100%; height: 100%; object-fit: cover; }
.solo-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 999px; display: grid; place-items: center; background: rgb(14 14 15 / 0.7); color: var(--ink); cursor: pointer; }
.solo-close:active { transform: scale(0.94); }
.solo-body { padding: 1.25rem 1.25rem 1.5rem; display: grid; gap: 0.5rem; }
.solo-body h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; text-transform: uppercase; }
.solo-body p { margin: 0 0 0.75rem; color: var(--muted); }

/* ---------- More on Instagram ---------- */
.insta-card {
  display: grid; gap: 1.25rem; justify-items: start; padding: clamp(24px, 5vw, 48px);
  border-radius: var(--r); background: var(--card); text-decoration: none;
  transition: transform 200ms var(--ease-out);
}
.insta-card:active { transform: scale(0.99); }
.insta-card > .icon { width: 56px; height: 56px; }
.insta-text { display: grid; gap: 0.5rem; }
.insta-text .h2 { margin: 0; }
.insta-lead { color: var(--muted); font-size: 1.125rem; max-width: 40ch; }
.insta-text .hand { font-size: 1.7rem; transform: rotate(-2deg); justify-self: start; }
@media (hover: hover) and (pointer: fine) { .insta-card:hover .btn .icon { transform: translate(2px, -2px); } }
@media (min-width: 900px) {
  .insta-card { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 2.5rem; }
  .insta-card > .icon { width: 80px; height: 80px; }
}

/* ---------- About ---------- */
.about { display: grid; gap: 2.5rem; }
.about-photos { position: relative; min-height: 440px; }
.about-photos figure { position: absolute; margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 50px -28px rgb(0 0 0 / 0.55); }
.about-photos figure img, .about-photos figure picture { width: 100%; height: 100%; object-fit: cover; }
.about-photos .a { width: 64%; aspect-ratio: 3 / 4; left: 0; top: 0; transform: rotate(-3deg); }
.about-photos .b { width: 56%; aspect-ratio: 3 / 4; right: 0; top: 18%; transform: rotate(4deg); }
.about-text p { margin: 0 0 1.1rem; max-width: 46ch; font-size: 1.125rem; }
.about-text .hand { font-size: 1.8rem; transform: rotate(-2deg); display: inline-block; margin-top: 0.5rem; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; } .about-photos { min-height: 560px; } }

/* ---------- Booking request with mountain edge ---------- */
.ask { position: relative; background: var(--deep); color: var(--deep-fg); padding: clamp(120px, 20vh, 200px) 0 clamp(72px, 12vh, 120px); clip-path: polygon(0% 9%, 16% 4%, 28% 7%, 50% 0%, 63% 5%, 76% 2%, 100% 6%, 100% 100%, 0% 100%); margin-top: clamp(40px, 8vh, 80px); }
.ask h2 { margin: 0 0 1rem; font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 10vw, 5.6rem); line-height: 1; max-width: 14ch; }
.ask p { margin: 0 0 2rem; max-width: 42ch; font-size: 1.15rem; color: color-mix(in srgb, var(--deep-fg) 80%, transparent); }
.ask .hand { color: var(--deep-fg); font-size: 1.7rem; display: inline-block; transform: rotate(-2deg); margin-bottom: 0.75rem; }
.ask-mail { display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; margin-left: 0.5rem; color: color-mix(in srgb, var(--deep-fg) 85%, transparent); text-decoration: none; }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: var(--deep-fg); padding: 0 0 calc(2.5rem + env(safe-area-inset-bottom)); }
.footer .wrap { border-top: 1px solid color-mix(in srgb, var(--deep-fg) 15%, transparent); padding-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.footer-logo { width: 64px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 0.4em; text-decoration: none; color: color-mix(in srgb, var(--deep-fg) 80%, transparent); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .footer nav a:hover { color: var(--deep-fg); } }
.footer small { width: 100%; color: color-mix(in srgb, var(--deep-fg) 65%, transparent); }
.page .footer { margin-top: clamp(72px, 12vh, 140px); }
.page .footer .wrap { border-top: 0; }

/* ---------- Sub pages (Termine, Impressum, Datenschutz) ---------- */
.page-head { padding-top: calc(130px + env(safe-area-inset-top)); padding-bottom: 1rem; }
.page-head .hand { font-size: 1.6rem; transform: rotate(-2deg); display: inline-block; margin: 0 0 0.5rem; }
.month { margin-top: 2.5rem; }
.month[hidden] { display: none; }
.month h2 { margin: 0 0 1rem; font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.5rem; color: var(--muted); }
.dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.date-row { display: grid; grid-template-columns: 76px 1fr; gap: 1rem; align-items: center; padding: 1rem 1.25rem 1rem 1rem; background: var(--card); border-radius: var(--r); }
.date-row[hidden] { display: none; }
.date-big { text-align: center; line-height: 1; }
.date-big b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.6rem; }
.date-big span { display: block; margin-top: 0.3rem; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.date-row h3 { margin: 0 0 0.2rem; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.date-row p { margin: 0; color: var(--muted); display: flex; align-items: center; gap: 0.35em; font-size: 0.98rem; }
.empty { margin-top: 2rem; padding: 1.75rem; border-radius: var(--r); background: var(--card); max-width: 560px; }
.empty[hidden] { display: none; }
.empty h2 { margin: 0 0 0.5rem; font-family: var(--serif); font-weight: 400; font-size: 1.8rem; text-transform: uppercase; line-height: 1.1; }
.empty p { margin: 0 0 1.25rem; color: var(--muted); }
.subscribe { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }

.legal { max-width: 70ch; }
.legal h2 { margin: 2.5rem 0 0.5rem; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.2; }
.legal h3 { margin: 1.5rem 0 0.25rem; font-size: 1.05rem; }
.legal p, .legal li { color: var(--muted); }
.legal p strong, .legal address { color: var(--ink); font-style: normal; }
.legal a { text-underline-offset: 3px; }
.legal ul { padding-left: 1.2rem; }

/* ---------- Password gate (TEMPORARY, see _partials/gate.html) ---------- */
.gate { display: none; }
.gated body { overflow: hidden; }
.gated .gate { overscroll-behavior: contain; }
/* the opaque gate covers the page; no visibility: hidden here, Safari would freeze the page's animations */
.gated .gate {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; overflow-y: auto;
  padding: calc(24px + env(safe-area-inset-top)) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--paper);
  /* iOS keyboard: the page can peek out below the fixed overlay, so extend it with a shadow */
  box-shadow: 0 0 0 100vmax var(--paper);
}
.gate-box { width: min(100%, 380px); display: grid; gap: 0.75rem; text-align: center; }
.gate-box img { width: 150px; margin: 0 auto 0.5rem; }
.gate-box h1 { margin: 0; font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 7vw, 2.4rem); line-height: 1.1; }
.gate-box p { margin: 0 0 0.5rem; color: var(--muted); }
.gate-box label { text-align: left; font-weight: 600; }
.gate-box input {
  min-height: 52px; padding: 0 1rem; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-size: 16px;
}
.gate-box input:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.gate-error { color: #ff9b8f !important; text-align: left; font-weight: 600; margin: -0.25rem 0 0 !important; }
.gate-box .btn { margin-top: 0.25rem; }
