/* Entwurf 1 – Handgriffe. System: design/1.md */
@font-face {
  font-family: "Piazzolla";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/piazzolla-normal-300-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-normal-400-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-italic-400.woff2") format("woff2");
}

:root {
  --c-paper: #f4f4f2;
  --c-stone: #e3e2de;
  --c-ink: #1f1d1c;
  --c-muted: #57534f;
  --c-wine: #8c0209;
  --c-white: #ffffff;
  --c-scrim: rgb(from var(--c-ink) r g b / .5);
  color-scheme: light;

  --font-display: "Piazzolla", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --fs--1: .875rem;
  --fs-0: 1.125rem;
  --fs-1: 1.5rem;
  --fs-2: 2rem;
  --fs-3: 2.666rem;
  --fs-4: clamp(2.666rem, 6vw, 4.74rem);
  --track-tight: -.01em;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 7rem;

  --radius: 2px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-0);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-wine); }
:focus-visible { outline: 3px solid var(--c-wine); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 350; line-height: 1.15; letter-spacing: var(--track-tight); margin: 0; text-wrap: balance; }
h2 { font-size: var(--fs-2); }
h3 { font-size: var(--fs-1); }
p { margin: 0 0 var(--space-3); }
figure { margin: 0; }
[id] { scroll-margin-top: var(--space-6); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-3); top: calc(var(--space-6) * -2); z-index: 10; padding: var(--space-2) var(--space-3); background: var(--c-white); color: var(--c-ink); }
.skip:focus { top: var(--space-3); }

.wrap { width: min(75rem, 100% - var(--space-4) * 2); margin-inline: auto; }

/* Links and the call button */
.text-link { color: var(--c-wine); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.text-link:hover { text-decoration-thickness: 2px; }
.text-link--light { color: var(--c-white); }
.call {
  display: inline-block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--c-wine);
  color: var(--c-white);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.call:hover { background: var(--c-ink); }
.call:focus-visible { outline-color: var(--c-white); box-shadow: 0 0 0 6px var(--c-wine); }
.call--small { padding: var(--space-2) var(--space-3); font-size: var(--fs--1); }

/* Header: vertical wordmark on the left edge (reference idea 2) */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4);
  color: var(--c-white);
}
.mark {
  display: flex; flex-direction: column;
  font-family: var(--font-display); font-size: var(--fs-1); font-weight: 400; line-height: 1;
  letter-spacing: var(--track-tight);
  color: var(--c-white); text-decoration: none;
}
.mark span:nth-child(2) { padding-left: var(--space-3); }
.mark span:nth-child(3) { padding-left: var(--space-5); }
.nav { display: none; gap: var(--space-4); margin-left: auto; padding-top: var(--space-2); }
.nav a { color: var(--c-white); text-decoration: none; font-weight: 600; }
.nav a:hover { text-decoration: underline; text-underline-offset: .25em; }

/* Hero: full-bleed grey photo with one centred statement (reference idea 1) */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: var(--space-8) var(--space-4) var(--space-7);
  color: var(--c-white);
  background: var(--c-ink);
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 40% 30%; filter: grayscale(.85) contrast(.95); }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--c-scrim); }
.hero-text { position: relative; z-index: 1; max-width: 50rem; text-align: center; }
.hero h1 { font-size: var(--fs-4); font-weight: 300; line-height: 1.05; margin-bottom: var(--space-4); }
.hero-lead { font-size: var(--fs-0); line-height: 1.4; max-width: 38rem; margin-inline: auto; margin-bottom: var(--space-5); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-3) var(--space-5); margin: 0; }
.credit { position: absolute; right: var(--space-3); bottom: var(--space-3); z-index: 1; margin: 0; font-size: var(--fs--1); }

/* Facts */
.facts { padding: var(--space-7) 0 var(--space-6); }
.facts-grid { display: grid; gap: var(--space-5); }
.fact { padding-top: var(--space-3); border-top: 1px solid var(--c-ink); }
.fact-title { font-size: var(--fs-1); margin-bottom: var(--space-2); }
.fact p { color: var(--c-muted); margin: 0; }

/* Statement chapters (component 1) */
.chapter { padding: var(--space-7) 0; }
.chapter-grid { display: grid; gap: var(--space-5); align-items: start; }
.chapter-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(.85); border-radius: var(--radius); }
.chapter-photo--tall img { aspect-ratio: 4 / 5; }
.chapter-photo figcaption { margin-top: var(--space-2); font-size: var(--fs--1); }
.statement { font-size: var(--fs-2); font-weight: 300; margin-bottom: var(--space-4); }
.statement--small { font-size: var(--fs-2); }
.chapter-text > p { max-width: 38rem; }

.services { margin: var(--space-5) 0 0; display: grid; gap: var(--space-3); }
.services div { padding-top: var(--space-3); border-top: 1px solid var(--c-stone); }
.services dt { font-weight: 600; }
.services dd { margin: 0; color: var(--c-muted); }

.rooms { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.rooms img { width: 100%; max-width: 448px; border-radius: var(--radius); }
.rooms figcaption { margin-top: var(--space-2); font-size: var(--fs--1); color: var(--c-muted); max-width: 28rem; }
.rooms strong { color: var(--c-ink); }

/* Section heads */
.section-head { max-width: 44rem; margin-bottom: var(--space-6); }
.section-head h2 { font-size: var(--fs-3); margin-bottom: var(--space-3); }
.section-head p { color: var(--c-muted); }

/* Beschwerden (component 3) */
.beschwerden { padding: var(--space-8) 0; background: var(--c-stone); }
.groups { border-top: 1px solid var(--c-ink); }
.group { border-bottom: 1px solid var(--c-ink); }
.group summary {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4);
  padding: var(--space-4) 0;
  cursor: pointer;
  list-style: none;
}
.group summary::-webkit-details-marker { display: none; }
.group-title { font-size: var(--fs-1); }
.group summary:hover .group-title { color: var(--c-wine); }
.count { color: var(--c-muted); font-size: var(--fs--1); }
.count::after { content: " +"; font-weight: 600; color: var(--c-wine); }
.group[open] .count::after { content: " –"; }
.indications {
  columns: 1; column-gap: var(--space-6);
  margin: 0; padding: 0 0 var(--space-5); list-style: none;
}
.indications li { break-inside: avoid; padding-bottom: var(--space-2); }
.lay { color: var(--c-muted); }

/* Team (component 5) */
.team { padding: var(--space-8) 0; }
.people { display: grid; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.portrait {
  display: grid; place-items: center;
  width: 9rem; aspect-ratio: 1;
  background: var(--c-stone);
  border-radius: var(--radius);
}
.initials { font-family: var(--font-display); font-size: var(--fs-3); font-weight: 300; color: var(--c-muted); }
.portrait-note { margin: var(--space-2) 0 var(--space-3); font-size: var(--fs--1); }
.person h3 { margin-bottom: var(--space-1); }
.role { color: var(--c-wine); font-weight: 600; margin-bottom: var(--space-2); }
.cv summary { cursor: pointer; font-weight: 600; color: var(--c-ink); }
.cv p { margin-top: var(--space-2); color: var(--c-muted); font-size: var(--fs--1); }
.hiring { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--c-stone); max-width: 44rem; }

/* Prices (component 4) */
.prices { padding: var(--space-8) 0; background: var(--c-white); }
.prices-grid { display: grid; gap: var(--space-7); }
.prices h2 { font-size: var(--fs-2); margin-bottom: var(--space-5); }
.price-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-4); }
.price-table th, .price-table td { padding: var(--space-3) 0; border-bottom: 1px solid var(--c-stone); vertical-align: baseline; }
.price-table th { text-align: left; font-weight: 400; padding-right: var(--space-4); }
.price-table td { text-align: right; white-space: nowrap; font-family: var(--font-display); font-size: var(--fs-1); font-variant-numeric: tabular-nums; }
.note { color: var(--c-muted); font-size: var(--fs--1); max-width: 34rem; }
.steps { margin: 0 0 var(--space-4); padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding: 0 0 var(--space-4) var(--space-7); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-display); font-size: var(--fs-2); font-weight: 300; line-height: 1; color: var(--c-wine);
}

/* Voices placeholder */
.voices { padding: var(--space-6) 0 0; }
.voices blockquote { margin: 0 auto; max-width: 44rem; font-family: var(--font-display); font-size: var(--fs-1); font-weight: 300; line-height: 1.4; text-align: center; }

/* Contact */
.contact { padding: var(--space-8) 0; }
.contact-grid { display: grid; gap: var(--space-6); }
.contact h2 { font-size: var(--fs-3); margin-bottom: var(--space-4); }
.contact h3 { margin: var(--space-5) 0 var(--space-2); }
.contact-phone { font-family: var(--font-display); font-size: var(--fs-2); font-weight: 400; margin-bottom: var(--space-2); }
.contact-phone a { color: var(--c-wine); text-decoration: none; }
.contact-phone a:hover { text-decoration: underline; }
address { font-style: normal; margin-bottom: var(--space-3); }
.transit { margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.transit li { padding: var(--space-2) 0; border-bottom: 1px solid var(--c-stone); }
.map-ph { margin: 0; padding: var(--space-6) var(--space-4); background: var(--c-stone); text-align: center; border-radius: var(--radius); }

/* Footer */
.footer { padding: var(--space-7) 0 var(--space-6); background: var(--c-ink); color: var(--c-stone); font-size: var(--fs--1); }
.footer a { color: var(--c-white); }
.footer-grid { display: grid; gap: var(--space-6); }
.footer h2 { font-size: var(--fs-1); color: var(--c-white); margin-bottom: var(--space-4); }
.footer dl { display: grid; grid-template-columns: 1fr; gap: 0 var(--space-4); margin: 0 0 var(--space-4); }
.footer dt { font-weight: 600; color: var(--c-white); }
.footer dd { margin: 0 0 var(--space-2); overflow-wrap: anywhere; }
.footer :focus-visible { outline-color: var(--c-white); }

@media (min-width: 40rem) {
  .hero-lead { font-size: var(--fs-1); }
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .rooms { grid-template-columns: 1fr 1fr; }
  .indications { columns: 2; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .footer dl { grid-template-columns: max-content 1fr; }
  .footer dd { margin: 0; }
  .footer dt, .footer dd { padding-bottom: var(--space-1); }
  .mark { font-size: var(--fs-2); }
}

@media (min-width: 64rem) {
  .nav { display: flex; }
  .top { padding: var(--space-5); }
  .chapter-grid { grid-template-columns: 5fr 7fr; gap: var(--space-7); }
  .chapter--flip .chapter-grid { grid-template-columns: 7fr 5fr; }
  .chapter--flip .chapter-photo { order: 2; }
  .statement { font-size: var(--fs-3); }
  .people { grid-template-columns: repeat(3, 1fr); }
  .prices-grid { grid-template-columns: 7fr 5fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
  .footer-grid { grid-template-columns: 8fr 4fr; }
  .indications { columns: 3; }
}

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