/**
 * Fascia Lab — Friedrichshain page styles
 * Page-specific only. All palette, type and radius values come from theme.css tokens.
 */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── Nav ── */
nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-logo { text-decoration: none; }

.nav-back {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  text-decoration: none;
}

.nav-back:hover { color: var(--accent-secondary); }

/* ── Layout ──
   Every block in <main>, and the space under the proof line, uses one gap. */
main {
  --section-gap: clamp(88px, 13vw, 140px);
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 32px) var(--section-gap);
}

/* One rhythm: the same gap above every block. .page-sub zeros margin, so the intro needs the second rule. */
main > * { margin-top: 0; margin-bottom: 0; }
main > * + * { margin-top: var(--section-gap); }
main > .page-sub { margin-top: var(--section-gap); }
figure { margin-inline: 0; }

/* ── Page header ── */
.page-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}

.page-title em { font-style: italic; }

.page-sub {
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  font-weight: 300;
  color: var(--text-mid);
  max-width: 34rem;
  margin: 0;
}

.page-date {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-style: italic;
  color: var(--heading-accent);
  margin: 22px 0 0;
}

/* ── Section headings ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.section-title em { font-style: italic; }

.prose p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-mid);
  margin: 0 0 16px;
}

.prose p:last-child { margin-bottom: 0; }

.prose strong {
  font-weight: 500;
  color: var(--text-primary);
}

/* ── Steps ── */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 46px;
  border-left: 1px solid var(--line);
  margin-left: 13px;
}

.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: -13px;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--heading-accent);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
}

/* ── Price cards ── */
.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  background: var(--elevated);
}

.price-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--heading-accent);
  margin-bottom: 12px;
}

.price-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--heading);
}

.price-num sup {
  font-size: 1.1rem;
  top: -0.7em;
  margin-right: 1px;
}

.price-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  margin-top: 12px;
}

/* ── Note ── */
.note {
  border-left: 2px solid var(--border);
  padding: 4px 0 4px 20px;
  margin: 24px 0 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  font-style: italic;
}

/* ── Pull quote ── */
.pullquote {
  margin-left: 0;
  margin-right: 0;
  padding: clamp(32px, 6vw, 48px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.pullquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.6vw, 1.95rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--heading-accent);
  max-width: 30rem;
  margin: 0 auto;
}

/* ── CTA banner ── */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 52px);
}

.cta-banner .cta-title { margin: 0; }

.cta-sub {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  margin: 14px 0 26px;
  max-width: 30rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--line);
  padding: 32px clamp(20px, 5vw, 32px) 48px;
  text-align: center;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
}

footer a {
  color: var(--accent-secondary);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

.footer-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-soft);
}

@media (max-width: 600px) {
  .cta-actions .cta-btn { width: 100%; }
}

/* ── Booking cards (price + what it is for + button) ── */
.prices-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card .price-desc { flex: 1; }

.price-num small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-left: 6px;
  letter-spacing: 0;
}

.price-card-code { background: var(--surface); }

.book-btn {
  display: block;
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-secondary);
  color: var(--text-inverse);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.book-btn:hover { background: var(--accent-secondary-dark); }

.book-btn-quiet {
  background: transparent;
  color: var(--accent-secondary);
  border: 1px solid var(--accent-secondary);
}

.book-btn-quiet:hover {
  background: var(--accent-secondary);
  color: var(--text-inverse);
}

/* ── When & where ── */
.visit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.visit-item {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.visit-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--heading-accent);
  margin-bottom: 6px;
}

.visit-value {
  font-size: 15px;
  color: var(--heading);
  line-height: 1.5;
}

.visit-value a { color: var(--accent-secondary); }

/* 4 booking cards: 2 x 2 on wider screens, stacked on phones */
.prices-2x2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .prices-2x2 { grid-template-columns: 1fr; } }

/* One booking card: comfortable width, centered so both sides match */
.prices-single { grid-template-columns: minmax(0, 420px); justify-content: center; }

/* Quiet link to all session lengths */
.note-more { margin-top: 6px; }
.note-more a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }
.note-more a:hover { color: var(--accent-secondary); }

/* ── Map (tap to load, no Google request until then) ── */
.map-load, .map iframe {
  display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 420px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.map iframe { height: auto; background: var(--elevated); }
.map-load {
  font: inherit; cursor: pointer; padding: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-primary);
  background-color: var(--elevated);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center;
}
.map-pin {
  width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--accent-secondary); box-shadow: 0 0 0 6px var(--elevated);
}
.map-addr {
  font-family: var(--font-heading); font-size: clamp(1.1rem, 3vw, 1.35rem);
  background: var(--elevated); padding: 2px 10px; border-radius: 6px;
}
.map-cta {
  font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px;
  background: var(--accent-secondary); color: var(--text-inverse);
}
.map-load:hover .map-cta, .map-load:focus-visible .map-cta { filter: brightness(1.1); }
.map-load:focus-visible { outline: 2px solid var(--accent-secondary); outline-offset: 3px; }
.map-cap { margin: 12px 0 0; font-size: 14px; font-weight: 300; color: var(--text-mid); }
.map-cap a { color: inherit; text-underline-offset: 3px; }

/* ── Hero (photo: images/fhain/hero.jpg) ── */
.hero {
  position: relative; overflow: hidden;
  min-height: min(78vh, 640px);
  display: flex; align-items: flex-end;
  background: linear-gradient(160deg, #4A6B62 0%, var(--accent-secondary) 55%, #2C433D 100%);
  color: var(--text-inverse);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 30, 27, 0) 30%, rgba(20, 30, 27, .35) 55%, rgba(20, 30, 27, .78) 100%);
}
.hero-inner {
  position: relative; z-index: 1; width: 100%; max-width: 760px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 32px) clamp(84px, 13vw, 120px);
}
.hero .page-label, .hero .page-title, .hero .page-title em, .hero .page-date { color: var(--text-inverse); }
.hero .page-label { opacity: .85; }
.hero .page-title { margin-bottom: 18px; }
.hero .page-date { margin: 0; opacity: .92; }
.intro { max-width: 34rem; margin-inline: auto; }

/* ── Quick finder (overlaps the hero, like a car finder on a dealer site) ── */
.finder {
  position: relative; z-index: 2; margin-top: -56px !important;
  background: var(--elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: 0 18px 40px -24px rgba(30, 40, 36, .45);
}
.finder-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.finder-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--heading); }
.finder-meta { font-size: 13px; color: var(--text-mid); white-space: nowrap; }
.finder-days { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.finder-days:empty { display: none; }
.day {
  font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-primary);
}
.day[aria-selected="true"] { background: var(--accent-secondary); border-color: var(--accent-secondary); color: var(--text-inverse); }
.finder-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-height: 40px; }
.slot {
  text-align: center; text-decoration: none; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums;
  padding: 10px 0; border-radius: var(--radius-md); border: 1px solid var(--accent-secondary); color: var(--accent-secondary);
}
.slot:hover, .slot:focus-visible { background: var(--accent-secondary); color: var(--text-inverse); }
.finder-wait { grid-column: 1 / -1; font-size: 14px; color: var(--text-mid); align-self: center; }
.finder-all { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--text-mid); text-underline-offset: 3px; }
.finder-off .finder-days, .finder-off .finder-slots { display: none; }
.finder-off .finder-all { margin-top: 0; }

/* ── Photos between sections ── */
.photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ── Always-visible bottom bar ── */
.dock {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 440px);
  display: grid; grid-template-columns: 1.6fr 1fr 0.7fr; gap: 6px; padding: 6px;
  background: rgba(255, 253, 249, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 999px;
  box-shadow: 0 10px 30px -14px rgba(30, 40, 36, .5);
}
.dock-btn {
  display: flex; align-items: center; justify-content: center; height: 44px;
  border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--accent-secondary);
}
.dock-book { background: var(--accent-secondary); color: var(--text-inverse); }
.dock-fl { font-family: var(--font-heading); font-size: 17px; letter-spacing: .02em; border: 1px solid var(--border); }
.dock-btn:focus-visible { outline: 2px solid var(--accent-secondary); outline-offset: 2px; }
footer { padding-bottom: 110px !important; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Drawing: no crop, white paper melts into the page */
.photo-art img {
  width: auto; height: min(480px, 62vh); max-width: 100%; aspect-ratio: auto;
  margin: 0 auto; border-radius: 0; mix-blend-mode: multiply; opacity: .85;
}
@media (min-width: 760px) { .photo img { aspect-ratio: 3 / 2; } .photo-art img { aspect-ratio: auto; } }

/* Opening hours, shown first in the hero */
.page-hours {
  font-size: clamp(1.05rem, 2.8vw, 1.25rem); font-weight: 500; letter-spacing: .02em;
  margin: 0 0 6px; color: var(--text-inverse);
}
.hero .page-date { font-size: clamp(.95rem, 2.4vw, 1.1rem); }

/* ── Nav: location under the logo ── */
.nav-logo { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo .nav-name { font-style: normal; opacity: 1; }
.nav-loc {
  font-family: var(--font-body, inherit); font-size: 10px; font-weight: 600; font-style: normal;
  letter-spacing: .22em; text-transform: uppercase; color: var(--heading-accent); margin-top: 3px;
}

/* ── Hero: closer on the hands ── */
.hero picture { display: contents; }
.hero-img { object-position: 50% 20%; }
/* Phones: hands photo on top, title below on the green */
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; }
  .hero::after { display: none; }
  .hero-img {
    position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
    mask-image: linear-gradient(180deg, #000 72%, transparent);
  }
  .hero-inner { padding-top: 8px; }
}

/* ── Under the price card ── */
.book-notes { margin: 18px auto 0; font-size: 14px; line-height: 1.9; color: var(--text-mid); text-align: center; }
.book-notes a { color: var(--accent-secondary); font-weight: 500; text-underline-offset: 3px; }

/* ── Who it is for: list runs top to bottom like the spine beside it ── */
.who {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr;
  column-gap: clamp(16px, 5vw, 48px); row-gap: 22px;
}
.who-label { grid-column: 1 / -1; }
.who-art { width: clamp(118px, 30vw, 180px); height: auto; mix-blend-mode: multiply; opacity: .85; }
.who-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.who-list li {
  position: relative; padding-left: 26px;
  font-family: var(--font-heading); font-size: clamp(1.15rem, 4.4vw, 1.6rem); line-height: 1.2; color: var(--heading);
}
.who-list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 16px; border-top: 1px solid var(--border);
}

/* ── EN / DE toggle, top right ── */
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; }
.lang button {
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .08em; cursor: pointer;
  border: 0; background: transparent; color: var(--text-mid); padding: 6px 10px; border-radius: 999px;
}
.lang button[aria-pressed="true"] { background: var(--accent-secondary); color: var(--text-inverse); }
.lang button:focus-visible { outline: 2px solid var(--accent-secondary); outline-offset: 2px; }

/* ── One proof line above the price card ── */
.proof {
  font-family: var(--font-heading); font-size: clamp(1.15rem, 3.6vw, 1.4rem); font-style: italic;
  line-height: 1.35; color: var(--heading-accent); max-width: 30rem;
  margin: 0 auto var(--section-gap); padding: 0;
  text-align: center;
}

/* Keep a short phrase together on its own line */
.line { display: block; }

/* Small link inside a step */
.step-more { display: block; margin-top: 6px; color: var(--accent-secondary); font-weight: 500; text-underline-offset: 3px; }
