/* Hallmark · shape: Das Haus bei Nacht, from the lit front door through the rooms to the table · genre: editorial · theme: custom · job: book · idea: "Artemis today: a clean, warm-white page where the terrace, the rooms and the black menu folder do the talking, its photographs graded into that same blue so every room seems to sit inside one evening, the goddess from the logo at the door" · vibe: "elegant, griechisch, golden, abendlich, ruhig"
 * paper: oklch(98.2% 0.004 90), warm white (blue rejected by the client as not modern) · accent: oklch(50% 0.115 48), copper from the Saal lamps; night: oklch(21.5% 0.062 256) for the hero only; the logo's gold kept to the logo and the menu folder · display: Rethink Sans 600 · body: Onest · hero: the lit house at night on the right, its sky running out to the left under the words; the gold logo sits large above the headline and rolls up into the masthead as the page scrolls · nav: centred masthead carrying the gold logo, over the picture · footer: colophon block with the goddess · imagery: photographs and one film, the user's own (8), clean edges, a light grade · signature: Artemis' own black menu folder with the gold goddess, which opens in 3D as you reach it and turns its pages through all 163 dishes and drinks
 * axes: light/grotesk-sans/chromatic-copper · posture: restrained (gold on actions, figures and prices) · contrast: pass · fold: pass · deal: set aside (Grid, Almanac, Studio are poster, data and studio sheets; the user asked for elegant and Greek) · v2.0.0 */
/* Hallmark · waive 38iii · .no on karte.html, a muted menu number before each dish name · Artemis’ printed card numbers every dish and guests order by that number on the phone */
/* Hallmark · dismissed 11 · the rooms zoom their own photograph 5 percent on hover because the wall is the one place on the page built to be explored; the frame itself stays still */
/* Hallmark · dismissed F21 · the h4 the scan sees after the h2 sits inside a JavaScript template string; on the page each dish h4 follows the sheet h3 */
/* Hallmark · dismissed F15 · the four rooms and the five plates sit tighter than the text-beside-picture rows on purpose, like pictures hung close on one wall */
/* Hallmark · dismissed 58 · karte.html is the whole printed card of Artemis as text, 163 dishes and drinks with prices and allergens */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4 · weakest: E, the house photo is 1200px wide under a 1440px hero; set it behind a deep blue grade where its softness reads as evening haze */
@import url("./fonts.css");
@import url("./tokens.css");
@import url("./base.css");

html:has(.nav--over) { scroll-padding-top: 100px; }
body { color: var(--color-ink-2); font-size: 1.0625rem; line-height: 1.6; font-variant-numeric: lining-nums; }
h1, h2 { font-weight: 600; line-height: 1.06; letter-spacing: var(--tracking-display); color: var(--color-ink); }
h3 { font-weight: 600; color: var(--color-ink); }
.lead { font-size: var(--text-lead); color: var(--color-ink-2); }
.muted { color: var(--color-muted); }

/* Controls: softly rounded, copper for the one action, all eight states */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-control); background: none; color: var(--color-ink); font: 600 1rem/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); }
.link { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color var(--dur-short) var(--ease-out); }
.link:hover { color: var(--color-accent); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Masthead: links left and right of a centred wordmark, one gold hairline */
.nav { border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-lg); min-height: 112px; }
.nav__links { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.nav__links--end { justify-content: flex-end; align-items: center; }
.nav__links a:not(.btn) { color: var(--color-ink); text-decoration: none; font-size: 1.0625rem; padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid transparent; white-space: nowrap; transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.nav__links a:not(.btn):hover { color: var(--color-ink); border-color: var(--color-accent); }
.nav__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.brand { display: block; line-height: 0; }
.brand img { width: 96px; height: 96px; object-fit: contain; }
.brand:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.nav .btn { min-height: 44px; padding: 0 var(--space-md); }

/* Photographs: clean edges, a light grade */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-card); background: var(--color-paper-2); }
.photo > img, .photo > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.94); }
.caption { margin-top: var(--space-sm); font-size: 1rem; color: var(--color-muted); }

/* Nav over the hero: fixed, clear over the night picture, solid paper once the logo has docked */
.nav--over { position: fixed; inset: 0 0 auto 0; z-index: var(--z-sticky-nav); background: transparent; border-bottom-color: transparent; transition: background-color var(--dur-long) var(--ease-out), border-color var(--dur-long) var(--ease-out); }
.nav--over .nav__inner { min-height: 92px; }
.nav--over .brand img { width: 72px; height: 72px; transform-origin: 50% 50%; will-change: transform; }
.nav--over:not(.is-solid) .nav__links a:not(.btn) { color: var(--color-night-ink); }
.nav--over:not(.is-solid) .nav__links a:not(.btn):hover { border-color: var(--color-night-ink); }
.nav--over.is-solid { background: var(--color-paper); border-bottom-color: var(--color-rule); }
html:not(.js) .nav--over { position: absolute; }

/* Hero: the house at night, lit front door on the right, its sky running out to the left */
.hero { position: relative; display: grid; align-items: center; min-height: 100dvh; padding-block: calc(92px + var(--space-2xl)) var(--space-3xl); overflow: hidden; isolation: isolate; background: var(--color-night); color: var(--color-night-ink); }
.hero__bg { position: absolute; inset: 0 0 0 auto; width: min(64%, 1060px); z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent 0%, var(--color-ink) 34%); mask-image: linear-gradient(90deg, transparent 0%, var(--color-ink) 34%); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 74%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--color-night) 0%, transparent 22%, transparent 82%, var(--color-night) 100%); }
.hero__centre { display: grid; justify-items: start; text-align: left; gap: var(--space-lg); max-width: 36rem; margin-inline: 0; }
.hero__logo { width: 184px; height: 184px; margin-bottom: var(--space-xs); }
html:not(.has-dock) .hero__logo { display: none; }
.hero h1 { max-width: 13ch; font-size: clamp(3rem, 4.4vw + 0.8rem, 5.25rem); line-height: 1; letter-spacing: -0.035em; color: var(--color-night-ink); }
.hero .lead { max-width: 34ch; font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem); color: var(--color-night-muted); }
.hero .btn:focus-visible, .nav--over:not(.is-solid) a:focus-visible { outline-color: var(--color-night-ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero .btn:not(.btn--primary) { border-color: color-mix(in oklab, var(--color-night-ink) 60%, transparent); color: var(--color-night-ink); }
.hero .btn:not(.btn--primary):hover { background: color-mix(in oklab, var(--color-night-ink) 12%, transparent); border-color: var(--color-night-ink); }

/* One entrance and one reveal, both visible without script */
.js .enter { opacity: 0; transform: translateY(18px); animation: enter var(--dur-enter) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 120ms); }
@keyframes enter { to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Sections and heads */
.section { padding-top: var(--section-gap); }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.head--centre { justify-items: center; text-align: center; }
.head h2 { font-size: var(--text-section); }
.head--split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding-bottom: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.head__aside { color: var(--color-muted); max-width: 40ch; text-align: right; }
.head .lead { max-width: 46ch; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* The rooms: a bento wall. Each picture opens like a curtain as it arrives and settles from a slight zoom */
.rooms { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); grid-template-rows: repeat(2, clamp(220px, 23vw, 340px)); gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.rooms li { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--color-paper-3); }
.rooms li:nth-child(1) { grid-row: 1 / 3; }
.rooms li:nth-child(4) { grid-column: 2 / 4; }
.rooms .photo { position: absolute; inset: 0; border-radius: 0; }
.rooms .photo img { transition: transform 1600ms var(--ease-out); }
.rooms li:hover .photo img { transform: scale(1.05); transition-duration: 900ms; }
.rooms .caption { position: absolute; left: var(--space-md); bottom: var(--space-md); z-index: 3; margin: 0; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-control); background: var(--color-paper); color: var(--color-ink); font-weight: 500; font-size: 0.9375rem; transition: transform var(--dur-long) var(--ease-out); }
.rooms li:hover .caption { transform: translateY(-4px); }
.js .rooms li[data-reveal] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round var(--radius-card)); transition: clip-path 1200ms var(--ease-out); transition-delay: calc(var(--i, 0) * 140ms); }
.js .rooms li[data-reveal].is-in { clip-path: inset(0 0 0 0 round var(--radius-card)); }
.js .rooms li[data-reveal] .photo img { transform: scale(1.18); }
.js .rooms li[data-reveal].is-in .photo img { transform: scale(1); transition-delay: calc(var(--i, 0) * 140ms); }
.js .rooms li[data-reveal].is-in:hover .photo img { transform: scale(1.05); transition-delay: 0ms; }

/* Lavastein: the film beside the dishes on the hot stone */
.film { aspect-ratio: 9 / 14; max-height: 78dvh; width: min(100%, 440px); justify-self: center; }
.film__toggle { position: absolute; right: var(--space-md); bottom: var(--space-md); z-index: 3; min-height: 40px; padding: 0 var(--space-sm); font-size: 0.9375rem; background: var(--color-paper); border-color: var(--color-paper); }
html:not(.js) .film__toggle { display: none; }
.dishes { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.dishes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg); align-items: baseline; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.dishes h3, .dishes h4 { margin: 0; font: 600 1.1875rem/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink); }
.dishes p { margin-top: var(--space-2xs); font-size: 1.0625rem; color: var(--color-muted); }
.price { font: 600 1.125rem/1 var(--font-body); color: var(--color-ink); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }

/* Platten zum Teilen: a short card of five, like a page of the printed menu */
.plates { max-width: 68rem; margin: 0 auto; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.plates li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: var(--space-lg); align-items: baseline; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.plates .for { font: 600 0.9375rem/1.2 var(--font-body); color: var(--color-accent); white-space: nowrap; }
.plates h3 { font: 600 1.1875rem/1.3 var(--font-display); }
.plates p:not(.for) { margin-top: var(--space-3xs); font-size: 1rem; color: var(--color-muted); }

/* Die Karte: Artemis' black menu folder. It opens in 3D, then turns its pages */
.menu-book .head { margin-bottom: var(--space-lg); }
.book { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 72rem; height: clamp(560px, 66dvh, 620px); margin-inline: auto; perspective: 2400px; transition: transform 1500ms var(--ease-in-out); }
.book__page { position: relative; padding: var(--space-xl) var(--space-xl) var(--space-lg); background: var(--color-paper-2); overflow: hidden; }
.book__left { border-radius: var(--radius-card) 0 0 var(--radius-card); background: linear-gradient(270deg, var(--color-spine), var(--color-paper-2) 9%); transition: opacity 500ms var(--ease-out) 900ms; }
.book__right { display: grid; grid-template-rows: minmax(0, 1fr) auto; border-radius: 0 var(--radius-card) var(--radius-card) 0; background: linear-gradient(90deg, var(--color-spine), var(--color-paper-2) 9%); }
.toc__group { margin-bottom: var(--space-sm); font-size: 1rem; color: var(--color-muted); }
.toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xs) var(--space-lg); margin: 0 0 var(--space-xl); padding: 0; list-style: none; }
.toc a { display: block; padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); text-decoration: none; font: 600 1.1875rem/1.25 var(--font-display); transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.toc a:hover { color: var(--color-ink); border-color: var(--color-ink-2); }
.toc a[aria-current="true"] { color: var(--color-accent); border-color: var(--color-accent); border-bottom-width: 2px; }
.toc a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.sheet { min-height: 0; }
.sheet__cat { font: 600 clamp(1.75rem, 1.4vw + 1rem, 2.25rem)/1.1 var(--font-display); color: var(--color-ink); }
.sheet__note { margin-top: var(--space-xs); font-size: 1rem; color: var(--color-muted); }
.sheet .dishes { margin-top: var(--space-lg); }
.sheet .dishes li { padding-block: var(--space-sm); }
.sheet .dishes h4 { display: flex; gap: var(--space-sm); align-items: baseline; font-size: 1.3125rem; }
.sheet .dishes p { padding-left: calc(2.25rem + var(--space-sm)); font-size: 1rem; }
.sheet .no { flex: none; width: 2.25rem; font: 400 0.9375rem/1 var(--font-body); font-style: normal; color: var(--color-muted); }
.sheet .al, .al { font: 400 0.8125rem/1 var(--font-body); font-style: normal; color: var(--color-muted); vertical-align: 0.5em; margin-left: var(--space-2xs); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.pager__btn { min-height: 44px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-control); background: none; color: var(--color-ink); font: 600 1rem/1 var(--font-body); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.25em; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.pager__btn:hover { color: var(--color-accent); background: var(--color-paper-3); }
.pager__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.pager__btn:disabled { color: var(--color-muted); background: none; text-decoration: none; cursor: not-allowed; }
.pager__count { font-size: 1rem; color: var(--color-muted); font-variant-numeric: tabular-nums; }
html:not(.js) .pager, html:not(.js) .book__cover { display: none; }
html:not(.js) .book { height: auto; }

/* The cover: hinged at the spine, it swings over to the left and the spread slides to the centre */
.book__cover { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; z-index: 5; cursor: pointer; transform-origin: left center; transform-style: preserve-3d; transition: transform 1500ms var(--ease-in-out); }
.cover__front, .cover__back { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.cover__front { display: grid; place-content: center; justify-items: center; gap: var(--space-md); border-radius: 0 var(--radius-card) var(--radius-card) 0; background: var(--color-cover); box-shadow: 0 30px 60px -30px var(--color-cover); }
.cover__front::after { content: ""; position: absolute; inset: var(--space-lg); border-radius: 6px; border: var(--rule-hair) solid color-mix(in oklab, var(--color-gold) 70%, transparent); pointer-events: none; }
.cover__front img { width: clamp(140px, 14vw, 190px); height: auto; }
.cover__title { margin: 0; font: 600 1.5rem/1 var(--font-display); letter-spacing: 0.02em; color: var(--color-gold); }
.cover__btn { position: relative; z-index: 1; margin-top: var(--space-sm); border-color: var(--color-gold); color: var(--color-paper); }
.cover__btn:hover { background: color-mix(in oklab, var(--color-gold) 18%, transparent); }
.cover__back { transform: rotateY(180deg); background: var(--color-paper-2); transition: opacity 500ms var(--ease-out) 1300ms; }
.js .book:not(.is-open) { transform: translateX(-25%); }
.js .book:not(.is-open) .book__left { opacity: 0; transition-delay: 0ms; }
.book.is-open .book__cover { transform: rotateY(-180deg); pointer-events: none; }
.book.is-open .cover__back { opacity: 0; }

/* A turning leaf: the old page swings left, or the new one swings in from the left */
.leaf { position: absolute; z-index: 4; border-radius: 0 var(--radius-card) var(--radius-card) 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: var(--space-xl) var(--space-xl) var(--space-lg); background: var(--color-paper-2); transform-origin: left center; -webkit-backface-visibility: hidden; backface-visibility: hidden; pointer-events: none; }
.leaf--next { animation: leaf-next 850ms var(--ease-in-out) forwards; }
.leaf--prev { animation: leaf-prev 850ms var(--ease-in-out) forwards; }
.leaf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-spine), transparent 60%); opacity: 0; animation: leaf-shade 850ms var(--ease-in-out) forwards; pointer-events: none; }
@keyframes leaf-shade { 50% { opacity: 0.7; } to { opacity: 0.2; } }
@keyframes leaf-next { from { transform: rotateY(0deg); } to { transform: rotateY(-180deg); } }
@keyframes leaf-prev { from { transform: rotateY(-180deg); } to { transform: rotateY(0deg); } }

/* Galerie: five evenings in one wall; each picture drifts a little against the scroll */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: clamp(240px, 26vw, 400px) clamp(200px, 20vw, 300px) clamp(260px, 30vw, 460px); gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.gallery li { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--color-paper-3); }
.gallery .photo { position: absolute; inset: 0; border-radius: 0; }
.gallery .photo img { transform: scale(1.14); will-change: transform; }
.gallery__a { grid-column: 1 / 9; }
.gallery__b { grid-column: 9 / 13; grid-row: 1 / 3; }
.gallery__c { grid-column: 1 / 5; }
.gallery__d { grid-column: 5 / 9; }
.gallery__e { grid-column: 1 / 13; }

/* Besuch: the bust beside hours and address */
.visit .photo { aspect-ratio: 4 / 5; }
.visit .photo img { object-position: 35% 40%; }
.hours { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xs) var(--space-xl); margin: 0 0 var(--space-xl); font-size: 1.25rem; }
.hours dt { color: var(--color-muted); }
.hours dd { margin: 0; color: var(--color-ink); }
.hours .is-today, .hours .is-today + dd { color: var(--color-accent); }
.status { display: inline-flex; margin-bottom: var(--space-xl); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-control); background: color-mix(in oklab, var(--color-accent) 12%, var(--color-paper)); color: var(--color-accent-deep); font-weight: 600; font-size: 1rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.facts h3 { margin-bottom: var(--space-xs); font: 600 1rem/1.2 var(--font-display); color: var(--color-ink); }

/* Footer */
.footer { margin-top: var(--section-gap); padding-block: var(--space-3xl) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink-2); }
.footer__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3xl); align-items: start; }
.footer__logo { width: 120px; height: auto; }
.footer h2 { font: 600 1rem/1.3 var(--font-display); color: var(--color-ink); margin-bottom: var(--space-sm); }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2xs); }
.footer a { color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.footer a:hover { color: var(--color-accent); }
.footer a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.footer__legal { margin-top: var(--space-2xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: 1rem; color: var(--color-muted); max-width: none; }

/* Impressum und Datenschutz */
.legal { max-width: 48rem; padding-block: var(--section-gap-s) var(--space-3xl); }
.legal h1 { margin-bottom: var(--space-xl); font-size: var(--text-section); }
.legal section { padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.legal h2 { margin-bottom: var(--space-sm); font-size: 1.375rem; }
.legal .lead { margin-bottom: var(--space-xl); }

.footer:has(> .container > .footer__legal:first-child) { padding-block: var(--space-xl); }
.footer__legal:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Booking bar, phones only */
.bookbar { display: none; }

/* Karte page */
.page-head { padding-block: var(--section-gap-s) 0; display: grid; gap: var(--space-lg); justify-items: center; text-align: center; }
.page-head h1 { font-size: var(--text-display); }
.menu-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.menu-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-control); color: var(--color-ink); text-decoration: none; font-size: 1.0625rem; transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.menu-nav a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.menu-nav a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.menu-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); padding-top: var(--section-gap-s); scroll-margin-top: var(--space-xl); }
.menu-sec__head { align-self: start; position: sticky; top: var(--space-xl); }
.menu-sec__head h2 { font-size: clamp(1.75rem, 1.6vw + 1rem, 2.5rem); }
.menu-sec__head p { margin-top: var(--space-md); color: var(--color-muted); }
.menu-sec .dishes h3 { display: flex; gap: var(--space-sm); align-items: baseline; }
.menu-sec { --no-w: 3rem; }
.no { flex: none; width: var(--no-w); font: 400 1rem/1 var(--font-body); font-style: normal; color: var(--color-muted); }
.menu-sec .dishes p { padding-left: calc(var(--no-w) + var(--space-sm)); }
.al { font: 400 0.8125rem/1 var(--font-body); font-style: normal; color: var(--color-muted); vertical-align: 0.5em; margin-left: var(--space-2xs); }
.price small { font: 600 1rem/1 var(--font-body); color: var(--color-muted); margin-right: var(--space-sm); }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); margin-block: var(--section-gap-s); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); font-size: 1rem; color: var(--color-muted); }
.legend h2 { font: 600 1.0625rem/1.2 var(--font-display); color: var(--color-ink); margin-bottom: var(--space-sm); }
.legend ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-3xs); }

@media (max-width: 60rem) {
  .nav__inner { grid-template-columns: auto minmax(0, 1fr); }
  .nav__links--start { display: none; }
  .nav__links--end li:not(:last-child) { display: none; }
  .split, .split--flip, .menu-sec, .footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 220px; }
  .rooms li:nth-child(1) { grid-row: span 2; }
  .rooms li:nth-child(4) { grid-column: 1 / -1; }
  .book { grid-template-columns: minmax(0, 1fr); height: auto; perspective: 1600px; }
  .js .book:not(.is-open) { transform: none; }
  .js .book:not(.is-open) .book__left { opacity: 1; }
  .book__cover { display: none; }
  .book__left { padding: var(--space-lg); background: var(--color-paper-2); }
  .book__left .toc__group { display: none; }
  .book__left .toc { display: flex; gap: var(--space-xs); margin: 0; overflow-x: auto; scrollbar-width: none; }
  .book__left .toc + .toc__group + .toc { margin-top: var(--space-xs); }
  .book__left .toc a { white-space: nowrap; padding: var(--space-xs) var(--space-sm); border: var(--rule-hair) solid var(--color-rule); font-size: 1.0625rem; }
  .book__right { min-height: 600px; padding: var(--space-xl) var(--space-lg) var(--space-lg); background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule); }
  .leaf { padding: var(--space-xl) var(--space-lg) var(--space-lg); }
  .head--split { grid-template-columns: minmax(0, 1fr); }
  .head__aside { text-align: left; }
  .menu-sec__head { position: static; }
  .film { max-height: none; }
  .hero { align-items: start; min-height: 0; padding-block: calc(84px + var(--space-lg)) calc(min(96vw, 560px) + var(--space-md)); }
  .hero__bg { inset: auto 0 0 0; width: auto; height: calc(min(96vw, 560px) + var(--space-3xl)); -webkit-mask-image: linear-gradient(180deg, transparent 0%, var(--color-ink) 30%); mask-image: linear-gradient(180deg, transparent 0%, var(--color-ink) 30%); }
  .hero__bg img { object-position: 50% 92%; }
  .hero__bg::after { background: linear-gradient(180deg, transparent 80%, var(--color-night) 100%); }
  .hero__logo { width: 112px; height: 112px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 210px; }
  .gallery__a, .gallery__e { grid-column: 1 / -1; }
  .gallery__b { grid-column: 2; grid-row: span 2; }
  .gallery__c, .gallery__d { grid-column: 1; }
  .bookbar { display: block; position: fixed; inset: auto var(--space-sm) var(--space-sm) var(--space-sm); z-index: var(--z-sticky); transition: transform var(--dur-long) var(--ease-out); }
  .js .bookbar:not(.is-shown) { transform: translateY(140%); }
  .bookbar .btn { width: 100%; }
  body { padding-bottom: var(--space-3xl); }
}
@media (max-width: 40rem) {
  .nav .btn .num { display: none; }
  .plates li { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-md); }
  .plates .for { grid-column: 1 / -1; }
  .brand img { width: 64px; height: 64px; }
  .nav__inner, .nav--over .nav__inner { min-height: 84px; }
  .nav--over .brand img { width: 60px; height: 60px; }
  .facts, .legend { grid-template-columns: minmax(0, 1fr); }
  .index b { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .book, .book__cover, .cover__back, .book__left { transition: none !important; }
  .js .rooms li[data-reveal] { clip-path: none; transition: none; }
  .js .rooms li[data-reveal] .photo img, .rooms li:hover .photo img { transform: none; transition: none; }
  .rooms li:hover .caption { transform: none; }
  .leaf { display: none; }
  .js .enter, .js [data-reveal] { opacity: 1; transform: none; animation: none; transition: none; }
  .hero__logo { display: none; }
  .gallery .photo img { transform: none; }
  .nav--over { transition: none; }
}

/* WordPress: admin bar and editor content on legal pages */
.admin-bar .nav--over { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav--over { top: 46px; } }
.legal h3, .legal h4 { margin: var(--space-lg) 0 var(--space-xs); font-size: 1.1875rem; color: var(--color-ink); }
.legal p, .legal li { max-width: 65ch; }
.legal a { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.legal a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
