@font-face {
  font-family: Epilogue;
  src: url("./assets/schriftvergleich/epilogue-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Marcellus;
  src: url("./assets/schriftvergleich/marcellus.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --serif: Marcellus, Georgia, serif;
  --sans: Epilogue, "Helvetica Neue", Arial, sans-serif;
  --paper: #f7f5f0;
  --ink: #201f1b;
  --accent: #fac517;
  --edge: clamp(18px, 5.5vw, 108px);
  --section-title-size: clamp(2rem, 3.6vw, 3.5rem);
  --subheading-size: clamp(1.5rem, 2vw, 2rem);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
p, blockquote { text-wrap: pretty; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 400; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - var(--edge) * 2), 1370px); margin-inline: auto; }
:focus-visible { outline: 3px solid #80612c; outline-offset: 4px; }
.mast :focus-visible, .salon-hero :focus-visible, .oc-visit :focus-visible { outline-color: var(--accent); }
::selection { color: var(--ink); background: var(--accent); }
.skip { position: absolute; z-index: 10; top: .7rem; left: var(--edge); transform: translateY(-160%); background: var(--paper); padding: .65rem 1.2rem; }
.skip:focus { transform: none; }
.mast { container: mast-layout / inline-size; position: absolute; inset: 0 0 auto; color: #fffaf2; z-index: 5; }
.mast-inner { min-height: 84px; border-bottom: 1px solid #fff6; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.wordmark { width: clamp(103px, 8vw, 128px); display: block; padding: 4px 0; }
.wordmark img { width: 100%; }
.mast-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.8vw, 3rem); }
.mast-nav a, .mast-phone { font-size: .9rem; font-weight: 500; letter-spacing: .005em; }
.mast-nav a { padding-block: .8rem; position: relative; }
.mast-nav a::after { content: ""; position: absolute; inset: auto 0 .45rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease-out); }
.mast-nav a:focus-visible::after { transform: scaleX(1); }
.mast-phone:hover span { text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 1px; }
.mast-phone { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; justify-self: end; font-variant-numeric: tabular-nums; }
.mast-phone svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linejoin: round; }
.menu-toggle { display: none; border: 1px solid #fffa; background: transparent; width: 45px; height: 45px; border-radius: 50%; place-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 17px; height: 1px; background: currentColor; transition: transform .18s ease-out; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.os-piece .work-open { width: 100%; display: block; padding: 0; border: 0; background: transparent; position: relative; cursor: zoom-in; }
.work-open::after { content: "+"; position: absolute; right: 12px; bottom: 12px; display: grid; width: 34px; height: 34px; place-content: center; border: 1px solid #fffc; border-radius: 50%; line-height: 1; font-size: 1.33rem; color: white; background: #24231f9e; }
.work-view { width: min(85vw, 900px); max-height: 90svh; padding: 0; color: var(--paper); background: #24231f; border: 0; }
.work-view::backdrop { background: #171410e8; }
.work-view img { width: 100%; max-height: 68svh; object-fit: contain; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 1.1rem; }
.viewer-bar button { min-height: 44px; padding: .35rem .5rem; background: transparent; border: 0; color: var(--paper); }
.viewer-bar :focus-visible { outline-color: var(--accent); }
.viewer-bar p { font-family: var(--serif); font-size: 1.5rem; }

@container mast-layout (max-width: 60rem) {
  .mast-inner { min-height: 75px; grid-template-columns: 1fr auto auto; gap: .8rem; }
  .mast-phone { width: 44px; justify-content: center; }
  .mast-phone span { display: none; }
  .mast-phone svg { width: 19px; }
  .mast-nav { grid-column: 1/-1; grid-row: 2; gap: 1.2rem; }
  .mast-nav a { padding-block: .4rem .7rem; font-size: .85rem; }
  :root:not(.has-menu) .mast-nav { flex-wrap: wrap; gap: 0 1rem; }
  :root:not(.has-menu) .mast-nav a { display: flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
  .has-menu .mast-nav { display: none; }
  .has-menu .menu-toggle:not([hidden]) { display: grid; }
  .has-menu .mast-nav.is-open { display: flex; position: absolute; top: 75px; left: var(--edge); right: var(--edge); background: var(--paper); color: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: .45rem min(1.25rem, 5vw); box-shadow: 0 12px 30px #0002; }
  .mast-nav.is-open a { display: block; padding: .9rem .2rem; font-size: 1rem; overflow-wrap: anywhere; }
  .mast-nav.is-open a + a { border-top: 1px solid #d6d2c8; }
  .mast-nav.is-open a:focus-visible { outline-color: #856634; outline-offset: 0; }
}

.salon-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #13120f;
}
.room-window {
  z-index: -2;
  position: absolute;
  inset: 0;
}
.hero-frame { width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; }
.room-window picture { display: block; width: 100%; height: 100%; overflow: hidden; }
.room-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(19 16 13 / .68), rgb(19 16 13 / .65) 27%, rgb(19 16 13 / .46) 49%, rgb(19 16 13 / .13) 78%),
    linear-gradient(180deg, rgb(11 10 8 / .55), rgb(10 9 8 / .12) 24%, rgb(11 10 8 / .13) 66%, rgb(11 10 8 / .48));
}
.hero-layout {
  min-height: clamp(490px, 66svh, 650px);
  display: flex;
  align-items: center;
  padding-top: 95px;
  padding-bottom: 24px;
}
.hero-story { padding: 2rem 0 1.4rem; }
#hero-title { font: 400 clamp(3.6rem, 5.8vw, 5.8rem)/1.04 var(--serif); letter-spacing: -.035em; }
.hero-name, .hero-local { max-width: 100%; overflow-wrap: anywhere; display: block; width: fit-content; }
.hero-local { font-size: .55em; line-height: 1.2; letter-spacing: -.02em; margin-top: .21em; }
.hero-welcome { font-size: clamp(.98rem, 1.18vw, 1.13rem); line-height: 1.58; color: #f6f4ef; max-width: 47ch; margin: 1.2rem 0 1.55rem; }
.hero-actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.book, .hero-address { display: inline-flex; align-items: center; gap: .65rem; font-size: .95rem; min-height: 48px; }
.book { border-radius: 2px; font-weight: 600; padding: .75rem 1.2rem; background: #fffdf8; color: #151510; transition: background .18s ease, transform .18s ease; }
.book:hover { background: #fae4a0; }
.book svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-address { max-width: 100%; overflow-wrap: anywhere; font-weight: 500; color: white; }
.hero-address img { width: 20px; height: 24px; }
.hero-address:hover, .source-rating:hover b { text-decoration: underline; text-underline-offset: .23em; }
.hero-reviews { display: flex; flex-wrap: wrap; min-height: 72px; justify-content: flex-end; align-items: center; gap: 1rem; padding-block: .45rem 1.35rem; }
.rating-sources { display: flex; flex-wrap: wrap; align-items: center; max-width: 100%; padding-inline: .25rem; background: rgb(22 21 18 / .92); color: #fffdf8; border-radius: 2px; }
.source-rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem .62rem; font-size: .9rem; }
.source-rating b { font-weight: 600; }
.source-rating > span { font-variant-numeric: tabular-nums; font-weight: 550; white-space: nowrap; }
.source-rating small { color: #e4dfd5; font-size: .79rem; }
.rating-star { color: #f3ce65; }
@media (min-width: 961px) {
  .menu-toggle { display: none; }
}
@media (max-width: 960px) and (min-width: 761px) {
  .mast-inner { gap: 1.1rem; }
  .mast-nav { gap: 1.1rem; }
}
@media (max-width: 760px) {
  .hero-layout { min-height: clamp(390px, 61svh, 560px); padding-top: 110px; }
  .has-menu .hero-layout { padding-top: 75px; }
  .hero-story { padding: 2rem 0 .8rem; }
  .hero-frame { object-position: 52% center; }
  .room-window::after { background: linear-gradient(90deg, rgb(18 16 13 / .8), rgb(18 16 13 / .47) 58%, rgb(18 16 13 / .25)), linear-gradient(0deg, rgb(10 9 8 / .5), transparent 40%, transparent 78%, rgb(11 10 8 / .55)); }
  #hero-title { font-size: clamp(2.65rem, 7.7vw, 5.3rem); }
  .hero-local { font-size: .61em; max-width: 24ch; line-height: 1.19; margin-top: .3em; }
  .hero-welcome { max-width: 35ch; margin: .95rem 0 1.1rem; }
  .hero-actions { gap: .45rem 1.15rem; }
  .hero-reviews { justify-content: flex-end; gap: .55rem; padding-block: .5rem 1rem; }
  .source-rating { column-gap: .4rem; min-height: 44px; }
  .source-rating small { display: none; }
}
@media (max-width: 450px) {
  .hero-address { font-size: .85rem; gap: .25rem; }
  .hero-actions { gap: .18rem .6rem; }
  .hero-address img { width: 17px; }
  .book { font-size: .9rem; padding-inline: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}

@container mast-layout (max-width: 60rem) {
  .mast-nav.is-open { max-height: calc(100dvh - 75px); overflow-y: auto; }
  .has-menu .mast-phone { grid-column: 2; }
  .has-menu .menu-toggle { grid-column: 3; }
}
.mast { background: linear-gradient(180deg, rgb(10 9 8 / .42), rgb(10 9 8 / .14) 82%, transparent); }
@media (scripting: none) and (max-width: 60em) {
  .mast { position: relative; background-color: #191714; }
  .mast-inner { padding-top: .5rem; row-gap: .1rem; }
  .hero-layout { padding-top: 24px; min-height: clamp(320px, 50svh, 500px); }
}
@media (max-width: 760px) {
  .room-window::after {
    background: linear-gradient(90deg, rgb(13 12 10 / .87), rgb(13 12 10 / .71) 58%, rgb(13 12 10 / .48)),
      linear-gradient(0deg, rgb(10 9 8 / .4), transparent 40%, transparent 78%, rgb(11 10 8 / .45));
  }
}

.wordmark:focus-visible { outline: 3px solid white; box-shadow: 0 0 0 6px #191917; }
.oc-route:focus-within .oc-map { outline: 3px solid #29281f; outline-offset: 2px; }
.oc-map.has-frame-focus { outline: 3px solid #29281f; outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  html.scroll-to-section { scroll-behavior: smooth; }
  .mast-nav.is-open { transform-origin: top right; animation: menu-open .2s var(--ease-out); }
  .work-view[open] { animation: photo-open .24s var(--ease-out); }
  .work-view[open]::backdrop { animation: backdrop-in .2s ease-out; }
}
@media (hover: hover) and (pointer: fine) {
  .mast-nav a:hover::after { transform: scaleX(1); }
}
@keyframes menu-open {
  from { opacity: .25; transform: translateY(-8px) scale(.99); }
}
@keyframes photo-open {
  from { opacity: .35; transform: translateY(12px) scale(.985); }
}
@keyframes backdrop-in { from { opacity: 0; } }

/* Section entrances play once. Links and the native scroll position stay independent. */
@media screen and (prefers-reduced-motion: no-preference) {
  [data-glide="waiting"] {
    transform: translateY(clamp(42px, 6.3vh, 64px));
  }
  :is(.os-service, .os-piece)[data-glide="waiting"] {
    transform: translateY(clamp(52px, 8.4vh, 82px));
    opacity: .88;
  }
  [data-glide="arriving"] {
    transform: none;
    transition: transform 760ms cubic-bezier(.2,.58,.25,1) var(--arrival-delay, 0ms),
                opacity 500ms ease-out var(--arrival-delay, 0ms);
  }
  @media (min-width: 761px) {
    :is(.os-service, .os-piece, .reviews-more > figure):nth-child(2) { --arrival-delay: 55ms; }
    :is(.os-service, .os-piece, .reviews-more > figure):nth-child(3) { --arrival-delay: 100ms; }
    .os-piece:nth-child(4) { --arrival-delay: 140ms; }
    .os-piece:nth-child(5) { --arrival-delay: 175ms; }
  }
  .oc-hours > [data-glide="waiting"] { transform: translateY(18px); }
  [data-glide]:target {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-actions .book, .os-booking .os-book, .oc-contact .oc-contact-book, .oc-route .oc-route-link {
    transition: transform 230ms var(--ease-out), background-color 190ms ease, color 190ms ease;
  }
  .hero-actions .book:hover, .os-booking .os-book:hover, .oc-contact .oc-contact-book:hover, .oc-route .oc-route-link:hover {
    transform: translateY(-3px);
  }
  .hero-actions .book:active, .os-booking .os-book:active, .oc-contact .oc-contact-book:active, .oc-route .oc-route-link:active {
    transform: translateY(0) scale(.975);
    transition-duration: 100ms;
  }
  .hero-actions .book svg, .oc-route-link > span {
    transition: transform 230ms var(--ease-out);
  }
  .hero-actions .book:hover svg { transform: translateY(-1px) rotate(-7deg); }
  .oc-contact .oc-contact-book:hover span { transform: translateX(5px); }
  .oc-route .oc-route-link:hover > span { transform: translate(3px, -3px); }
}
