@font-face {
    font-family: "Hanken Grotesk";
    src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --paper: #FAFAF8;
    --ink: #171514;
    --ink-soft: #272422;
    --muted: #6B6661;
    --muted-on-ink: #ADA8A2;
    --line: #E2DFDA;
    --line-on-ink: #3B3734;
    --open: #2F7D52;
    --open-on-ink: #52C08A;
    --soon: #A8650A;
    --soon-on-ink: #E3A64B;
    --gutter: clamp(16px, 4vw, 56px);
    --edge: max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter)));
    --bar-h: 72px;
    --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 24px); -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.wrap { padding-inline: var(--edge); }
.label { font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.lead { font-size: 1.1875rem; line-height: 1.5; max-width: 34em; color: var(--muted); text-wrap: pretty; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { margin-top: .75rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s, border-color .15s; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline { border: 1px solid var(--muted-on-ink); color: var(--paper); }
.btn-outline:hover { border-color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-block { display: flex; width: 100%; }

/* Status: live open / closed */
.status { display: inline-flex; align-items: center; gap: .5em; font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.status::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--muted-on-ink); flex: none; }
.status[data-state="open"]::before { background: var(--open-on-ink); }
.status[data-state="soon"]::before { background: var(--soon-on-ink); }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); height: var(--bar-h); padding-inline: var(--edge); background: var(--ink); color: var(--paper); }
.bar-logo { margin-right: auto; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.bar-logo img { width: calc(var(--bar-h) - 8px); height: calc(var(--bar-h) - 8px); }
.bar.is-scrolled .bar-logo { opacity: 1; visibility: visible; }
.bar-nav { display: flex; gap: clamp(16px, 2vw, 30px); }
.bar-nav a { font-size: 1rem; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .15s; }
.bar-nav a:hover, .bar-nav a.is-current { border-color: var(--paper); }
.bar-status { opacity: 0; transition: opacity .2s; }
.bar.is-scrolled .bar-status { opacity: 1; }
.bar-phone { font-weight: 500; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); height: calc(100svh - var(--bar-h)); min-height: 560px; max-height: 900px; }
.hero-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px var(--gutter) 48px; background: var(--ink); color: var(--paper); text-align: center; }
.hero-logo img { width: 200px; height: 200px; }
.hero-intro { font-size: 1.1875rem; }
.hero-today { display: flex; flex-direction: column; gap: 2px; align-items: center; color: var(--paper); }
.hero-today-hours { color: var(--muted-on-ink); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.hero-figure { min-height: 0; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* Welcome */
.welcome { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 104px); align-items: center; padding-block: clamp(56px, 8vw, 112px); }
.welcome-text .lead { margin-top: 1rem; }
.facts { margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts a { text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Gallery */
.salon { padding-bottom: clamp(56px, 8vw, 112px); }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(72px, 8.2vw, 118px); gap: clamp(6px, .7vw, 10px); padding-inline: var(--edge); }
.tile { display: block; width: 100%; height: 100%; overflow: hidden; cursor: zoom-in; background: var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-1 { grid-column: 1 / 8; grid-row: span 5; }
.tile-2 { grid-column: 8 / 13; grid-row: span 3; }
.tile-3 { grid-column: 8 / 13; grid-row: span 2; }
.tile-4 { grid-column: 1 / 6; grid-row: span 4; }
.tile-5 { grid-column: 6 / 9; grid-row: span 4; }
.tile-6 { grid-column: 9 / 13; grid-row: span 2; }
.tile-7 { grid-column: 9 / 13; grid-row: span 2; }

/* Prices */
.prices { padding-bottom: clamp(56px, 8vw, 112px); }
.prices-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.tabs { display: flex; gap: clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { font-size: 1.125rem; padding: 8px 0 12px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 500; border-color: var(--ink); }
.js .panel[hidden] { display: none; }
.panel h3 { font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 36px 0 4px; }

.length { display: flex; flex-wrap: wrap; align-items: center; border: 0; margin: 0 0 8px; padding: 0; }
.length legend { float: left; padding: 0; color: var(--muted); margin-right: 16px; line-height: 40px; }
.length label { cursor: pointer; }
.length input { position: absolute; opacity: 0; width: 0; height: 0; }
.length span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); }
.length label + label span { margin-left: -1px; }
.length input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); position: relative; }
.length input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.row { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: 16px; width: 100%; padding: 12px 0; text-align: left; border-bottom: 1px solid var(--line); }
.row-name { display: block; }
.row-note { display: block; color: var(--muted); font-size: .9375rem; line-height: 1.35; margin-top: 2px; }
.row-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-add { position: relative; width: 28px; height: 28px; border: 1px solid var(--line); transition: background-color .12s, border-color .12s; }
.row-add::before, .row-add::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: var(--ink); }
.row-add::after { transform: rotate(90deg); }
.row:hover .row-add { border-color: var(--ink); }
.row[aria-pressed="true"] .row-add { background: var(--ink); border-color: var(--ink); }
.row[aria-pressed="true"] .row-add::before { background: var(--paper); width: 5px; transform: translate(-2.5px, 1.5px) rotate(45deg); }
.row[aria-pressed="true"] .row-add::after { background: var(--paper); width: 10px; transform: translate(1.5px, 0) rotate(-48deg); }

.note { position: sticky; top: calc(var(--bar-h) + 24px); padding: 24px; border: 1px solid var(--line); background: #fff; }
.note h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 8px; }
.note-empty { color: var(--muted); padding-bottom: 16px; }
.note-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.note-items button { width: 24px; height: 24px; color: var(--muted); font-size: 1.125rem; line-height: 1; }
.note-items button:hover { color: var(--ink); }
.note-items .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.note-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 18px; }
.note-total strong { font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.note-small { color: var(--muted); font-size: .875rem; line-height: 1.4; margin-top: 12px; }

/* Contact */
.visit { background: var(--ink); color: var(--paper); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 104px); padding-block: clamp(56px, 8vw, 104px); }
.visit-title { margin-bottom: 24px; }
.visit-phone { display: block; font-size: clamp(2.25rem, 4.6vw, 4rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.visit-note { margin-top: 16px; max-width: 32em; color: var(--muted-on-ink); }
.visit-note strong { color: var(--paper); font-weight: 500; }
.visit address { font-style: normal; margin: 24px 0; }
.hours-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; font-size: 1.25rem; font-weight: 500; margin-bottom: 8px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th { text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid var(--line-on-ink); color: var(--muted-on-ink); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--paper); font-weight: 500; }
.hours-note { display: block; font-size: .875rem; font-weight: 400; color: var(--muted-on-ink); margin-top: 2px; }
.map { background: var(--ink-soft); }
.map-gate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-block: 24px; }
.map-gate p { color: var(--muted-on-ink); max-width: 40em; }
.map iframe { display: block; width: 100%; height: min(60vh, 520px); border: 0; }

/* Dog */
.dog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(6px, .7vw, 10px); padding-block: clamp(56px, 8vw, 112px); }
.dog-text { grid-column: 1 / -1; margin-bottom: clamp(20px, 3vw, 32px); }
.dog-text .lead { margin-top: .75rem; max-width: 40em; }
.dog img { width: 100%; }

/* Vermietung */
.join { padding-bottom: clamp(56px, 8vw, 112px); }
.join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.join article { border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.join h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.25; }
.join p { color: var(--muted); }
.join a { margin-top: auto; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding-block: clamp(32px, 4vw, 56px) 24px; }
.foot-logo { width: 120px; height: 120px; margin-bottom: 20px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; color: var(--muted-on-ink); font-size: .9375rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.foot-links a:hover { color: var(--paper); }

/* Mobile dock */
.dock { display: none; }

/* Dialogs */
dialog { border: 0; padding: 0; color: inherit; }
.sheet { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); background: var(--paper); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgb(23 21 20 / .55); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 1.5rem; }
.sheet-body { overflow-y: auto; padding: 20px 24px 28px; font-size: 1rem; }
.sheet-body p + p, .sheet-body h4 + p { margin-top: .75em; }
.sheet-body h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; margin: 1.6em 0 0; }
.sheet-body h4:first-child { margin-top: 0; }
.close { position: relative; flex: none; width: 44px; height: 44px; }
.close::before, .close::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(14 13 12 / .96); color: var(--paper); overflow: hidden; touch-action: pan-y; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 2 * clamp(16px, 7vw, 96px)); max-height: calc(100dvh - 96px); width: auto; height: auto; object-fit: contain; }
.close-light { position: absolute; top: 12px; right: 12px; z-index: 1; }
.lb-nav { position: absolute; top: 50%; width: 56px; height: 72px; margin-top: -36px; z-index: 1; }
.lb-nav::before { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; }
.lb-prev { left: 4px; }
.lb-prev::before { transform: rotate(-135deg); }
.lb-next { right: 4px; }
.lb-next::before { transform: rotate(45deg); }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: .875rem; color: var(--muted-on-ink); font-variant-numeric: tabular-nums; }

/* Quiet fade-in on scroll */
.js .reveal { opacity: 0; transition: opacity .5s ease-out; }
.js .reveal.is-in { opacity: 1; }

@media (max-width: 1040px) {
    .bar-nav { display: none; }
    .bar-status { margin-left: auto; }
    .bar-logo { margin-right: 0; }
    .prices-grid { grid-template-columns: minmax(0, 1fr); }
    .note { position: static; }
    .visit-grid { grid-template-columns: minmax(0, 1fr); }
    .visit-phone { font-size: clamp(2.25rem, 7.4vw, 4rem); }
}

@media (max-width: 860px) {
    :root { --bar-h: 64px; }
    .bar-phone { display: none; }
    .bar:not(.is-scrolled) { height: 16px; }
    .bar:not(.is-scrolled) > * { display: none; }
    .hero { display: block; height: auto; max-height: none; min-height: 0; }
    .hero-panel { padding: 16px var(--gutter) 32px; }
    .hero-figure img { height: 56vw; min-height: 240px; }
    .welcome { grid-template-columns: minmax(0, 1fr); }
    .facts div { grid-template-columns: 6.5em 1fr; }
    .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; scrollbar-width: none; scroll-padding-inline: var(--edge); }
    .gallery::-webkit-scrollbar { display: none; }
    .tile { flex: none; width: 84vw; aspect-ratio: 4 / 3; height: auto; scroll-snap-align: start; }
    .join-grid { grid-template-columns: minmax(0, 1fr); }
    body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
    .dock { position: fixed; z-index: 30; inset: auto 0 0 0; display: grid; grid-template-columns: 2fr 1fr 1fr; background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-on-ink); padding-bottom: env(safe-area-inset-bottom); }
    .dock a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 56px; font-weight: 500; text-decoration: none; }
    .dock-call { background: var(--paper); color: var(--ink); }
    .dock [data-dock-count] { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; background: var(--paper); color: var(--ink); font-size: .8125rem; }
    .sheet { width: 100vw; max-width: none; max-height: 100dvh; height: 100dvh; }
    .lb-nav { display: none; }
    .lightbox img { max-width: 100vw; }
}

@media (max-width: 480px) {
    .dog { grid-template-columns: minmax(0, 1fr); }
    .visit-phone { font-size: 10.4vw; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; }
}

@media print {
    .bar, .dock, .map, .gallery { display: none; }
    .js .reveal { opacity: 1; }
}
