:root {
  --ink: #171412;
  --paper: #f1ece2;
  --paper-deep: #ded4c2;
  --copper: #b27851;
  --cream: #fbf7ef;
  --line: rgba(255,255,255,.22);
  --ease: cubic-bezier(.2,.75,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  min-width: 0;
}
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #f0bd92; outline-offset: 4px; }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-160%); background: white; color: black; padding: 10px 14px; }
.skip-link:focus { transform: none; }

.site-bg { position: fixed; inset: 0; z-index: -3; background: #292522 url("assets/pedas-architektenskizze.webp") center/cover no-repeat; filter: grayscale(1) contrast(.9); }
.site-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,10,9,.9), rgba(12,10,9,.5) 48%, rgba(12,10,9,.72)), rgba(23,20,18,.24); }
.grain { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

.site-header { height: 226px; padding: 0 clamp(22px,4vw,66px); display: flex; align-items: center; justify-content: center; position: relative; border-bottom: 1px solid var(--line); background: rgba(18,15,13,.5); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; color: white; text-decoration: none; }
.brand img { display: block; width: clamp(430px,42vw,620px); height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 2px; box-shadow: 0 8px 28px rgba(0,0,0,.2); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.brand img { max-width: 100%; }
.brand:hover img { transform: translateY(-2px); box-shadow: 0 11px 34px rgba(0,0,0,.3); }
.sound-toggle { position: absolute; right: clamp(22px,4vw,66px); border: 0; background: transparent; text-transform: uppercase; letter-spacing: .16em; font-size: 9px; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; opacity: .7; }
.sound-toggle span { width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; position: relative; }
.sound-toggle span::after { content: ""; position: absolute; inset: 6px; background: currentColor; border-radius: 50%; transition: transform .3s; }
.sound-toggle[aria-pressed="true"] span::after { transform: scale(.35); }

.hero { min-height: calc(100svh - 226px); display: grid; grid-template-columns: clamp(245px,23vw,360px) minmax(0,1fr); padding: 0 clamp(22px,4vw,66px) 34px; }
.menu-rail { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: clamp(42px,7vh,88px) clamp(24px,3vw,52px) 0 0; }
.rail-label { text-transform: uppercase; font-size: 9px; letter-spacing: .24em; opacity: .55; margin: 0 0 22px; }
.rail-item, .rail-link { width: 100%; padding: 17px 0; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.13); text-align: left; cursor: pointer; display: grid; align-items: center; transition: padding .35s var(--ease), color .35s, border-color .35s; }
.rail-item { grid-template-columns: 30px 1fr auto; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(25px,2.1vw,37px); }
.rail-item:hover, .rail-item:focus-visible { padding-left: 9px; color: #f0bd92; border-color: rgba(240,189,146,.7); }
.rail-num { font-family: Arial, sans-serif; font-size: 8px; letter-spacing: .12em; opacity: .55; }
.rail-item i { font: normal 15px Arial; opacity: 0; transform: translate(-7px,5px); transition: .3s; }
.rail-item:hover i, .rail-item:focus-visible i { opacity: 1; transform: none; }
.rail-spacer { flex: 1; min-height: 38px; }
.rail-link { grid-template-columns: 1fr auto; text-transform: uppercase; font-size: 9px; letter-spacing: .17em; opacity: .65; }
.rail-link:hover { opacity: 1; color: #f0bd92; }
.rail-link small { font-size: 8px; opacity: .65; }

.hero-visual { min-height: calc(100svh - 260px); position: relative; overflow: hidden; background: rgba(239,235,226,.9); }
.hero-visual > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; object-position: center; opacity: .92; animation: settle 1.4s var(--ease) both; }
.hero-vignette { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,9,7,.88) 0%, rgba(12,9,7,.62) 28%, rgba(12,9,7,.12) 62%, transparent 78%), linear-gradient(0deg, rgba(10,8,7,.58), transparent 55%); }
.hero-copy { position: absolute; z-index: 2; left: clamp(28px,6vw,105px); bottom: clamp(54px,10vh,120px); width: min(580px,65%); animation: rise 1.1s .15s var(--ease) both; }
.eyebrow { margin: 0 0 14px; text-transform: uppercase; font-size: 9px; letter-spacing: .28em; color: #eab686; }
h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(58px,7.5vw,125px); line-height: .78; font-weight: 400; letter-spacing: -.045em; text-shadow: 0 3px 30px rgba(0,0,0,.2); }
h1 em { font-weight: 400; color: #f0c49e; }
.hero-intro { max-width: 470px; margin: 26px 0 28px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(16px,1.35vw,21px); line-height: 1.55; color: rgba(255,255,255,.83); }
.discover { display: flex; align-items: center; gap: 16px; background: none; border: 0; padding: 0; text-transform: uppercase; font-size: 9px; letter-spacing: .2em; cursor: pointer; }
.discover svg { width: 43px; fill: none; stroke: currentColor; transition: transform .4s var(--ease), background .3s; border-radius: 50%; }
.discover:hover svg { transform: rotate(-25deg) scale(1.08); background: rgba(255,255,255,.12); }
.visual-caption { position: absolute; right: 18px; bottom: 18px; margin: 0; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; opacity: .5; writing-mode: vertical-rl; }

.drawer { position: fixed; inset: 0; z-index: 50; visibility: hidden; }
.drawer[aria-hidden="false"] { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(10,8,7,.68); opacity: 0; transition: opacity .5s; backdrop-filter: blur(5px); }
.drawer-sheet { position: absolute; inset: 0 0 0 auto; width: min(900px,88vw); background: var(--paper); color: var(--ink); transform: translateX(102%); transition: transform .62s var(--ease); overflow-y: auto; }
.drawer[aria-hidden="false"] .drawer-backdrop { opacity: 1; }
.drawer[aria-hidden="false"] .drawer-sheet { transform: none; }
.drawer-head { height: 84px; padding: 0 clamp(24px,5vw,68px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(23,20,18,.16); position: sticky; top: 0; background: rgba(241,236,226,.94); backdrop-filter: blur(10px); z-index: 3; }
.drawer-head p { margin: 0; text-transform: uppercase; letter-spacing: .22em; font-size: 9px; }
.drawer-close { width: 42px; height: 42px; border: 1px solid rgba(23,20,18,.35); border-radius: 50%; background: none; position: relative; cursor: pointer; transition: transform .35s; }
.drawer-close:hover { transform: rotate(90deg); }
.drawer-close span { position: absolute; width: 16px; height: 1px; background: currentColor; left: 12px; top: 20px; transform: rotate(45deg); }
.drawer-close span + span { transform: rotate(-45deg); }
.drawer-body { padding: clamp(36px,7vw,82px) clamp(24px,7vw,90px) 80px; }
.drawer--legal .drawer-sheet { background: #d9c6a7 url("assets/impressum-post-bg.webp") center/cover no-repeat; }
.drawer--legal .drawer-head { background: rgba(241,236,226,.9); }
.drawer--legal .drawer-body { min-height: calc(100svh - 84px); }
.drawer--legal .legal-page { padding: clamp(28px,4vw,52px); border: 1px solid rgba(255,255,255,.55); border-radius: 3px; background: rgba(247,243,235,.9); box-shadow: 0 24px 70px rgba(24,18,12,.28); backdrop-filter: blur(12px); }
.menu-title { position: relative; padding-left: 72px; margin-bottom: 60px; }
.menu-title > span { position: absolute; left: 0; top: 10px; width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: 10px; }
.menu-title h2, .shop-page h2 { font: 400 clamp(52px,8vw,92px)/.92 Georgia, serif; letter-spacing: -.045em; margin: 0 0 12px; }
.menu-title p { margin: 0; color: #6e6258; font-family: Georgia, serif; font-style: italic; font-size: 18px; }
.menu-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.menu-grid > section, .menu-item > div, .legal-grid > section { min-width: 0; }
.menu-grid h3, .legal-grid h3 { margin: 0 0 22px; padding-bottom: 10px; border-bottom: 1px solid rgba(23,20,18,.2); text-transform: uppercase; letter-spacing: .12em; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.menu-grid .menu-subhead { margin-top: 38px; }
.menu-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 14px; padding: 0 0 22px; margin: 0 0 20px; border-bottom: 1px dotted rgba(23,20,18,.22); }
.menu-item b { font: 400 21px/1.35 Georgia, serif; }
.menu-item b, .menu-item p, .menu-selection, .menu-note, .menu-title h2, .menu-title p, .legal-grid p, .menu-varieties { overflow-wrap: break-word; overflow-wrap: anywhere; word-break: normal; -webkit-hyphens: auto; hyphens: auto; }
.menu-item p { margin: 7px 0 0; color: #776c62; line-height: 1.5; font-size: 14px; }
.menu-item strong { font-size: 16px; line-height: 1.75; font-weight: 400; color: #8d684d; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-selection { margin: 0 0 28px; color: #776c62; font-size: 14px; line-height: 1.6; }
.menu-note { margin-top: 36px; border-left: 2px solid var(--copper); padding: 10px 0 10px 18px; color: #74695f; font-size: 14px; line-height: 1.6; }
.menu-note a { display: block; margin-top: 8px; color: #704a31; text-underline-offset: 3px; }
.menu-varieties { padding-left: 1.2em; color: #776c62; font-size: 14px; line-height: 1.65; }
.menu-item .allergen-codes { font-size: 14px; }
.allergen-legend { margin-top: 28px; border-top: 1px solid rgba(23,20,18,.2); padding-top: 20px; font-size: 14px; line-height: 1.6; }
.allergen-legend summary { cursor: pointer; }
.allergen-legend summary:focus-visible { outline: 2px solid #704a31; outline-offset: 4px; }
.allergen-legend dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 24px; }
.allergen-legend dl > div { display: grid; grid-template-columns: 1.5em minmax(0, 1fr); gap: 8px; }
.allergen-legend dt { font-weight: bold; }
.allergen-legend dd { margin: 0; overflow-wrap: anywhere; }

.shop-page { min-height: calc(100vh - 250px); display: grid; place-content: center; text-align: center; }
.shop-page h2 { margin-bottom: 15px; }
.shop-whisper { font: italic 24px Georgia, serif; color: #876b55; }
.shop-page > p:last-child { color: #70655c; }
.shop-orbit { width: 140px; height: 140px; margin: 36px auto; border: 1px solid rgba(23,20,18,.27); border-radius: 50%; display: grid; place-items: center; position: relative; font: 15px Georgia, serif; letter-spacing: .25em; }
.shop-orbit i { width: 12px; height: 12px; border-radius: 50%; background: var(--copper); position: absolute; top: -6px; left: 64px; transform-origin: 6px 76px; animation: orbit 7s linear infinite; }

.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 46px 56px; }
.legal-grid p { color: #5f574f; line-height: 1.65; font-size: 13px; }
.legal-grid a { color: #704a31; text-decoration-color: rgba(112,74,49,.4); text-underline-offset: 3px; }
.legal-grid a:hover { text-decoration-color: currentColor; }
.legal-grid mark { background: #ead9a8; color: #4d402e; padding: 1px 3px; }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; padding: 14px; background: #8f321f; color: white; text-align: center; z-index: 90; }

body.drawer-open { overflow: hidden; }
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation: none !important; transition-duration: .01ms !important; }

@keyframes settle { from { transform: scale(1.035); filter: blur(4px); opacity: .2; } to { transform: scale(1); filter: none; opacity: .92; } }
@keyframes rise { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes orbit { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .site-header { height: 156px; }
  .brand img { width: clamp(340px,52vw,420px); }
  .hero { min-height: calc(100svh - 156px); grid-template-columns: 1fr; padding: 0; }
  .hero-visual { min-height: calc(100svh - 245px); grid-row: 1; }
  .hero-copy { left: 25px; bottom: 35px; width: min(540px,78%); }
  .hero-intro { font-size: 15px; margin: 19px 0 22px; }
  .menu-rail { grid-row: 2; border: 0; border-top: 1px solid var(--line); padding: 8px 20px 18px; display: grid; grid-template-columns: 1fr; gap: 0; background: rgba(16,13,11,.78); backdrop-filter: blur(12px); }
  .rail-label, .rail-spacer { display: none; }
  .rail-item { padding: 15px 5px; grid-template-columns: 34px 1fr auto; text-align: left; font-size: clamp(20px,4vw,27px); border-right: 0; }
  .rail-num { display: inline; }
  .rail-item i { display: block; }
  .rail-link { padding: 14px 8px 0; border: 0; justify-items: start; }
  .rail-link:last-child { grid-column: auto; justify-items: start; }
  .drawer-sheet { width: min(96vw,900px); }
  .menu-grid, .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .menu-title { margin-bottom: 45px; }
}

/* Two columns only when the drawer has room for both text and fixed prices. */
@media (min-width: 1100px) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
  .allergen-legend dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@supports not (height: 100svh) {
  .hero, .hero-visual { min-height: calc(100vh - 226px); }
}

@media (max-width: 520px) {
  .site-header { padding: 0 17px; }
  .brand img { width: min(310px,92vw); }
  .sound-toggle { display: none; }
  .hero-visual { min-height: calc(100svh - 280px); }
  .hero-visual > img { object-position: center; }
  .hero-vignette { background: linear-gradient(90deg, rgba(12,9,7,.82), rgba(12,9,7,.28) 72%, transparent), linear-gradient(0deg, rgba(10,8,7,.7), transparent 62%); }
  .hero-copy { width: calc(100% - 48px); }
  h1 { font-size: clamp(53px,20vw,80px); }
  .hero-intro { max-width: 90%; line-height: 1.4; }
  .visual-caption { display: none; }
  .menu-rail { padding-inline: 10px; }
  .rail-item { font-size: 17px; }
  .rail-link { font-size: 7px; letter-spacing: .12em; }
  .drawer-sheet { width: 100%; }
  .drawer-head { height: 68px; }
  .drawer-body { padding-top: 34px; }
  .drawer--legal .drawer-body { min-height: calc(100svh - 68px); padding: 18px 12px 40px; }
  .drawer--legal .legal-page { padding: 24px 18px; }
  .menu-title { padding-left: 0; padding-top: 54px; }
  .menu-title > span { top: 0; }
  .menu-title h2, .shop-page h2 { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Der Lebensraum: original photographs in a quiet, shared gallery frame. */
.rail-item--space { font-size: clamp(22px, 2vw, 30px); }
.rail-item--space > span:last-child { min-width: 0; line-height: 1.25; }
.drawer--space .drawer-sheet { width: min(1180px, 100%); background: #191715; color: #f4eee3; }
.drawer--space .drawer-head { background: #191715; border-color: rgba(244,238,227,.18); }
.drawer--space .drawer-close { border-color: rgba(244,238,227,.45); }
.drawer--space .drawer-body { padding: 40px clamp(20px, 4vw, 64px) 64px; }
.space-intro { max-width: 760px; margin-bottom: 32px; }
.space-eyebrow { margin: 0 0 10px; color: #d8ac86; text-transform: uppercase; letter-spacing: .15em; font-size: 14px; line-height: 1.5; }
.space-intro h2 { font: 400 clamp(44px, 7vw, 82px)/1.05 Georgia, serif; letter-spacing: -.04em; margin: 0 0 18px; overflow-wrap: anywhere; }
.space-intro > p:last-child { font-size: 16px; line-height: 1.7; color: #d0c5b8; margin: 0; max-width: 650px; }
.space-gallery { min-width: 0; }
.space-stage { position: relative; height: clamp(240px, 53vh, 610px); background: #0d0c0b; border: 1px solid rgba(244,238,227,.15); overflow: hidden; touch-action: pan-y; }
.space-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.space-slide.is-active { opacity: 1; }
.space-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.space-enlarge { position: absolute; bottom: 14px; right: 14px; z-index: 2; padding: 10px 14px; border: 1px solid rgba(244,238,227,.55); color: #fff7eb; background: rgba(14,12,10,.88); font-size: 14px; cursor: pointer; }
.space-enlarge:hover { background: #5b3d29; }
.space-caption-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; padding: 26px 0; border-bottom: 1px solid rgba(244,238,227,.17); }
.space-caption { min-width: 0; flex: 1 1 260px; }
.space-caption h3 { font: 400 28px/1.25 Georgia, serif; margin: 0; overflow-wrap: anywhere; }
.space-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.space-controls button, .space-lightbox button { border: 1px solid rgba(244,238,227,.35); background: transparent; color: #f4eee3; padding: 11px 13px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.space-controls button:hover, .space-lightbox button:hover { background: rgba(216,172,134,.15); border-color: #d8ac86; }
.space-counter { color: #bfb2a3; font-size: 14px; white-space: nowrap; padding: 0 4px; font-variant-numeric: tabular-nums; }
.space-controls .space-play { color: #dfb895; }
.space-controls button:disabled { opacity: .6; cursor: default; }
.space-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-top: 26px; }
.space-thumb { min-width: 0; display: block; color: #c9bcad; text-decoration: none; padding: 5px; border: 1px solid transparent; transition: border-color .2s; }
.space-thumb[aria-current="true"] { border-color: #d8ac86; color: #f4eee3; }
.space-thumb:hover { border-color: rgba(216,172,134,.6); }
.space-thumb img { display: block; width: 100%; height: 115px; object-fit: contain; background: #0d0c0b; }
.space-thumb span { display: block; padding: 10px 2px 5px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.space-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 42px; margin-top: 52px; padding-top: 38px; border-top: 1px solid rgba(244,238,227,.17); }
.space-story h3 { font: 400 35px/1.2 Georgia, serif; margin: 0; color: #e4c6a9; }
.space-story p { font-size: 16px; line-height: 1.75; margin: 0 0 18px; color: #c9bcad; }
.space-footnote { font-size: 14px; color: #aa9987; margin: 34px 0 0; line-height: 1.6; }
.space-page p, .space-page h3 { overflow-wrap: anywhere; }
.space-lightbox[hidden] { display: none !important; }
.space-lightbox { position: fixed; inset: 0; z-index: 100; background: #0d0c0b; color: #f4eee3; display: flex; flex-direction: column; padding: 18px clamp(14px, 3vw, 46px); height: 100vh; height: 100dvh; }
.space-lightbox-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 14px; }
.space-lightbox-head p { font: 400 20px/1.3 Georgia, serif; margin: 0; overflow-wrap: anywhere; min-width: 0; }
.space-lightbox-head button { flex-shrink: 0; }
.space-lightbox-image { flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; justify-content: center; align-items: center; }
.space-lightbox-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.space-lightbox-controls { display: flex; flex: 0 0 auto; justify-content: center; align-items: center; gap: 18px; padding-top: 14px; font-size: 14px; }
@media (max-width: 600px) {
  .drawer--space .drawer-body { padding: 28px 18px 44px; }
  .space-intro h2 { font-size: 46px; }
  .space-stage { height: 280px; height: clamp(220px, 44vh, 380px); }
  .space-caption h3 { font-size: 26px; }
  .space-controls { gap: 8px; }
  .space-controls .space-play { flex: 1 1 100%; margin-top: 4px; }
  .space-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .space-thumb img { height: 106px; }
  .space-story { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .space-story h3 { font-size: 32px; }
  .space-lightbox-head { align-items: flex-start; }
  .space-lightbox-head p { font-size: 16px; }
  .space-lightbox-head button { max-width: 132px; }
  .space-lightbox-controls { gap: 10px; }
  .space-lightbox-controls button { flex: 1 1 0; min-width: 0; }
  .rail-item--space { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .space-slide { transition: none; }
}
