/* YAO Berlin – Stylesheet */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-italic.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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/cormorant-garamond.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: 'DM Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(../fonts/dm-sans.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;
}


:root {
  --cream: #f7f3ec;
  --paper: #fffdf9;
  --sand: #ece4d6;
  --ink: #1c1917;
  --espresso: #3d2b1f;
  --brown: #8a6440;
  --gold: #c9a96e;
  --gold-dark: #a87c4f;
  --muted: #6b5f55;
  --line: #e2d8c8;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --radius: 2px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brown); text-underline-offset: 3px; }
a:hover { color: var(--espresso); }
:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; color: var(--espresso); }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.eyebrow {
  display: inline-block; font: 500 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 1.1rem;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.7em;
  font: 500 .82rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  background: var(--gold-dark); color: #fff; border: 1px solid var(--gold-dark); border-radius: var(--radius);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--espresso); border-color: var(--espresso); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--espresso); border-color: #fff; }
.btn--line { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn--line:hover { background: var(--espresso); color: #fff; }
.link-arrow { font: 500 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--brown); }
.link-arrow::after { content: " →"; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(247,243,236,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--espresso); }
.logo img { width: 26px; height: 61px; }
.logo span { font: 500 .78rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav > ul { align-items: center; }
.nav > ul > li > a:not(.btn), .sub-toggle { display: inline-block; line-height: 1.4; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 17px; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold-dark); }
.nav .btn { padding: .8em 1.3em; }

/* Dropdown "Leistungen" */
.has-sub { position: relative; }
.sub-toggle {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: inherit; font-size: 17px; line-height: 1.4; color: var(--ink); border-bottom: 1px solid transparent;
}
.has-sub.is-active > .sub-toggle { border-bottom-color: var(--gold-dark); }
.sub-toggle svg { transition: transform .2s; }
.sub { list-style: none; margin: 0; padding: 0; }
@media (min-width: 961px) {
  .nav .sub {
    position: absolute; top: 100%; left: -22px; min-width: 240px; display: block; padding: 12px 0;
    background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(61,43,31,.35);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
  }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.sub-open > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
  .has-sub:hover .sub-toggle svg, .has-sub.sub-open .sub-toggle svg { transform: rotate(180deg); }
  .nav .sub a:not(.btn) { display: block; padding: 10px 22px; border: 0; white-space: nowrap; }
  .nav .sub a:not(.btn):hover, .nav .sub a[aria-current="page"] { background: var(--cream); color: var(--brown); }
}
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--espresso); }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { justify-content: center; margin-top: 18px; }
  .sub-toggle { display: flex; width: 100%; justify-content: space-between; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .has-sub.is-active > .sub-toggle { border-bottom-color: var(--line); color: var(--brown); }
  .nav .sub { display: none; padding-left: 16px; }
  .has-sub.sub-open > .sub { display: block; }
  .has-sub.sub-open .sub-toggle svg { transform: rotate(180deg); }
  .nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,25,23,.55) 0%, rgba(28,25,23,0) 65%), linear-gradient(180deg, rgba(28,25,23,.15) 0%, rgba(28,25,23,.35) 45%, rgba(28,25,23,.85) 100%); z-index: 1; }
.hero .wrap { position: relative; z-index: 2; padding: 120px 0 72px; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero .eyebrow { color: var(--gold); }
.hero p { max-width: 52ch; font-size: 1.12rem; color: rgba(255,255,255,.88); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero--page { min-height: 440px; }
.hero--page h1 { max-width: 18ch; font-size: clamp(2.4rem, 5vw, 4rem); }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: #e9e2d6; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--gold); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split figure { margin: 0; position: relative; }
.split figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split figure::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); z-index: -1; }
.signature { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.signature blockquote { margin: 0 0 10px; font: italic 500 1.55rem/1.3 var(--serif); color: var(--espresso); }
.signature cite { font-style: normal; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .split figure::after { inset: 12px -12px -12px 12px; }
}

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--paper); display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(61,43,31,.45); color: inherit; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .97rem; flex: 1; }
.card h3 { margin-bottom: .35em; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 36px 32px 8px 0; }
.feature + .feature { padding-left: 32px; border-left: 1px solid var(--line); }
.feature .num { font: 500 .8rem/1 var(--sans); letter-spacing: .2em; color: var(--gold-dark); display: block; margin-bottom: 16px; }
.feature p { color: var(--muted); }
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 28px 0 4px; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery .hide-mobile { display: none; }
}

/* Kérastase band */
.band { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 520px; }
.band > img { width: 100%; height: 100%; object-fit: cover; }
.band-text { padding: clamp(48px, 7vw, 96px); align-self: center; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } .band > img { aspect-ratio: 3/2; height: auto; } }

/* Prose (long text, legal) */
.prose { max-width: 760px; }
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose address { font-style: normal; margin-bottom: 1.1em; }

/* Prices */
.price-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.price-nav a { text-decoration: none; font-size: .85rem; padding: .55em 1.1em; border: 1px solid var(--line); background: var(--paper); color: var(--espresso); border-radius: 40px; }
.price-nav a:hover { border-color: var(--gold-dark); }
.price-group { margin-bottom: 56px; }
.price-group h2 { font-size: 2rem; padding-bottom: 14px; border-bottom: 1px solid var(--espresso); margin-bottom: 0; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-list .name { flex: 1; }
.price-list .name small { display: block; color: var(--muted); font-size: .88rem; }
.price-list .price { font-family: var(--sans); font-size: 17px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; color: var(--espresso); white-space: nowrap; }
.price-layout { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
.price-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.box { background: var(--paper); border: 1px solid var(--line); padding: 30px; }
.box h3 { font-size: 1.5rem; }
.box p:last-child { margin-bottom: 0; }
.box--dark { background: var(--espresso); color: #eadfce; border-color: var(--espresso); }
.box--dark h3 { color: #fff; }
@media (max-width: 960px) { .price-layout { grid-template-columns: 1fr; } .price-aside { position: static; } }

/* Info / visit */
.visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.visit h3 { font-size: 1.35rem; margin-bottom: .7em; }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; }
.hours dt { color: inherit; }
.hours dd { margin: 0; text-align: right; white-space: nowrap; }
.visit address { font-style: normal; }
.small-note { font-size: .88rem; opacity: .8; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; gap: 32px; } }

.cta-final { text-align: center; }
.cta-final h2 { max-width: 18ch; margin-inline: auto; }

/* Breadcrumb */
.crumbs { font-size: .82rem; color: rgba(255,255,255,.8); margin-bottom: 18px; }
.crumbs a { color: inherit; }

/* Footer */
.site-footer { background: #141110; color: #b9ada0; padding: 72px 0 28px; font-size: .94rem; }
.site-footer a { color: #e7dccd; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.5fr .8fr; gap: 40px; }
.site-footer h3 { font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo img { width: 52px; height: auto; background: var(--cream); padding: 5px; margin-bottom: 20px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #2c2622; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; }
.site-footer .hours dd { text-align: left; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile booking bar */
.book-bar { display: none; }
@media (max-width: 720px) {
  .book-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(28,25,23,.96);
  }
  .book-bar .btn { flex: 1; justify-content: center; }
  body { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
