/* Beautify by Jolina: Gestaltung der Blöcke
   Wird auf der Website UND im Editor geladen, damit Jolina beim Bearbeiten
   dasselbe Layout sieht. Animationen und die feste Kopfzeile stehen in site.css.
   Markenfarben: #CFCBC6 · #BCB6AE · #968F88 · #77716C
   Schriften lokal: Fraunces (Überschriften), Tenor Sans (Text) */

:root {
  --ground: #F3F1EE;
  --field: #CFCBC6;
  --field-2: #BCB6AE;
  --stone: #968F88;
  --taupe: #77716C;
  --ink: #2F2B28;
  --ink-soft: #5B5651;
  --on-dark: #F3F1EE;

  --display: "Fraunces", Georgia, serif;
  --display-weight: 300;
  --display-axes: "SOFT" 100, "WONK" 0;
  --text: "Tenor Sans", "Helvetica Neue", Arial, sans-serif;

  --fs-h2: clamp(2.1rem, 4.4vw, 4.25rem);
  --fs-h3: clamp(1.35rem, 1.6vw, 1.6rem);
  --fs-statement: clamp(1.4rem, 2.2vw, 2rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  --gutter: clamp(16px, 2.4vw, 36px);
  --section: clamp(96px, 12vw, 200px);
  --max: 1520px;
  --bar-h: 70px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--ground); }

/* ---------- Abstände zurücksetzen ----------
   WordPress setzt zwischen Blöcken automatisch Abstände. In den gestalteten
   Abschnitten regelt das Raster die Abstände, deshalb hier auf null. */
body :is(.wp-site-blocks, .wp-block-post-content, .is-root-container) > :is(.hero, .about, .results, .menu-section, .studio, .voices, .faq, .contact) { margin-block: 0; }
body .wp-site-blocks > * { margin-block: 0; }
body :is(.hero, .hero-text, .hero-facts, .fact, .about, .about-text, .about-columns, .browista, .results, .results-compare,
  .results-text, .pair, .compare, .menu-section, .menu-head, .menu-list, .menu-group, .menu-row, .studio, .studio-text,
  .voices, .voice-list, .faq, .faq-list, .contact, .contact-head, .contact-grid, .contact-cell,
  .bar, .foot, .foot-row, .wp-block-quote, .wp-block-details) > * { margin-block: 0; }
body :is(.hero, .about, .results, .menu-section, .studio, .voices, .faq, .contact) figure { margin: 0; }
body :is(.hero, .about, .results, .menu-section, .studio, .voices, .faq, .contact, .bar, .foot) :is(h1, h2, h3, p) { margin: 0; }

/* ---------- Typografie ---------- */
body :is(.display, .h2, .h3, .display-2, .wordmark, .foot-mark, .price, .item, .fact-value, .statement) {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-variation-settings: var(--display-axes);
}
body .display {
  font-size: clamp(2.35rem, calc(6vw - 0.5rem), 5.25rem);
  font-size: min(var(--display-max, 5.25rem), calc(100cqi / 9.9));
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
body .display-2 { font-size: clamp(2.6rem, 7vw, 7.5rem); line-height: 0.98; letter-spacing: -0.03em; }
body .h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.025em; }
body .h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.01em; }
body .lead { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; max-width: 34em; }
body .statement { font-size: var(--fs-statement); line-height: 1.25; letter-spacing: -0.01em; max-width: 22em; }
body .note { font-size: var(--fs-small); color: var(--ink-soft); max-width: 36em; }

/* ---------- Buttons ---------- */
body .wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  background: var(--ink); color: var(--ground);
  border: 0; border-radius: 999px; text-decoration: none;
  font-family: var(--text); font-size: 1rem; line-height: 1.2; letter-spacing: 0.01em;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
body .wp-block-button .wp-block-button__link:hover { background: var(--taupe); color: var(--ground); }
body .wp-block-button .wp-block-button__link:active { transform: scale(.97); }
body .wp-block-button.btn-small .wp-block-button__link { min-height: 42px; padding: 0 20px; font-size: 0.9375rem; }
body .wp-block-button.is-style-light .wp-block-button__link { background: var(--ground); color: var(--ink); }
body .wp-block-button.is-style-light .wp-block-button__link:hover { background: var(--field); color: var(--ink); }
/* Textlink, z. B. „Behandlungen & Preise“ im Startbereich */
body .wp-block-button.is-style-text-link .wp-block-button__link {
  min-height: 0; padding: 0; background: none; color: inherit; border-radius: 0;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: text-underline-offset .25s var(--ease);
}
body .wp-block-button.is-style-text-link .wp-block-button__link:hover { background: none; color: inherit; text-underline-offset: 8px; }

/* ---------- Kopfzeile ---------- */
body .bar {
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter);
  background: var(--ground);
}
body .wordmark { font-size: 1.6rem; line-height: 1; white-space: nowrap; letter-spacing: -0.01em; }
body .wordmark a { text-decoration: none; color: inherit; }
body .wordmark em { font-style: normal; color: var(--taupe); }
body .bar .wp-block-navigation.nav { margin-left: auto; gap: 28px; font-size: 0.9375rem; }
body .bar .nav .wp-block-navigation__container { gap: 28px; }
body .bar .nav .wp-block-navigation-item__content { text-decoration: none; position: relative; }
body .bar .nav .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
body .bar .nav .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
body .bar .wp-block-buttons.bar-cta { flex: none; gap: 0; }

/* ---------- Start ---------- */
body .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 3vw, 48px) var(--gutter);
  min-height: calc(100svh - var(--bar-h));
}
body .hero-text { container-type: inline-size; display: grid; gap: clamp(22px, 2.4vw, 36px); }
body .wp-block-buttons.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
body .hero-facts {
  display: grid; grid-template-columns: repeat(3, max-content); gap: 8px 40px;
  margin-top: clamp(8px, 2vw, 32px);
}
body .fact { display: grid; gap: 0; }
body .fact-label { font-size: var(--fs-small); color: var(--ink-soft); }
body .fact-value { font-size: 1.5rem; line-height: 1.2; }

body .wp-block-image.hero-mirror {
  justify-self: center; align-self: center;
  width: fit-content; max-width: 100%;
  border-radius: 999px; overflow: hidden; background: var(--field);
}
body .wp-block-image.hero-mirror img {
  display: block; width: auto; max-width: 100%;
  height: min(calc(100svh - 190px), 820px); aspect-ratio: 5 / 8;
  object-fit: cover; object-position: 50% 30%;
}

/* ---------- Über mich ---------- */
body .about {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter) 0;
}
/* Freigestelltes Foto direkt auf dem Seitenhintergrund */
body .wp-block-image.about-photo { grid-column: 1 / span 5; align-self: start; position: sticky; top: 100px; max-width: 500px; }
body .wp-block-image.about-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
body .about-text { grid-column: 7 / span 6; display: grid; gap: 36px; align-content: start; }
body .about-columns { display: grid; gap: 1.1em; max-width: 36em; }
body .browista { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 4px 0 8px; }
body .wp-block-image.browista-logo img { height: 28px; width: auto; }
body .browista-link { font-size: var(--fs-small); color: var(--ink-soft); }
body .browista-link a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-underline-offset .25s var(--ease), color .25s ease; }
body .browista-link a:hover { color: var(--ink); text-underline-offset: 8px; }

/* ---------- Ergebnisse ---------- */
body .results {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter); row-gap: clamp(64px, 8vw, 140px);
  max-width: var(--max); margin: 0 auto;
  padding: var(--section) var(--gutter) 0;
}
body .results-compare { grid-column: 1 / span 5; display: grid; gap: 16px; align-content: start; max-width: 460px; }
body .results-text { grid-column: 7 / span 6; display: grid; gap: 28px; align-content: center; }
body .results-text > p { max-width: 34em; }
body .wp-block-image.results-ref { grid-column: span 4; align-self: start; }
body .wp-block-image.results-ref img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
body .results-ref-lash img { object-position: 45% 60%; }
body .results-ref-color img { object-position: 40% 35%; }
body .results-ref-brush img { object-position: 50% 60%; }
body :is(.results, .pair) figcaption.wp-element-caption {
  margin: 12px 0 0; font-size: var(--fs-small); color: var(--ink-soft); text-align: left;
}
body .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
body .pair .wp-block-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Vorher/Nachher: im Editor und ohne JavaScript zwei Bilder nebeneinander,
   auf der Website macht main.js daraus den Regler */
body .compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body .compare .wp-block-image img { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; object-position: 50% 46%; border-radius: 999px; }

/* ---------- Behandlungen & Preise ---------- */
body .menu-section {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px);
  margin-top: var(--section);
  padding: var(--section) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: var(--field);
}
body :is(.wp-site-blocks, .wp-block-post-content, .is-root-container) > .menu-section { margin-top: var(--section); }
body .menu-head { display: grid; gap: 24px; align-content: start; justify-items: start; position: sticky; top: 110px; align-self: start; }
body .menu-head > p:not(.note) { max-width: 30em; }
body .menu-list { display: grid; gap: clamp(48px, 5vw, 72px); }
body .menu-group { display: grid; gap: 0; }
/* Kategorien deutlich größer als die Behandlungen, mit Linie darunter */
body .menu-group > .menu-cat {
  font-family: var(--display); font-weight: var(--display-weight); font-variation-settings: var(--display-axes);
  font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em;
  padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--ink);
}
body .menu-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 9em 4.5em;
  grid-template-areas: "item time price" "note time price";
  column-gap: 24px; row-gap: 0; align-items: baseline;
  padding: 22px 24px; margin: 0 -24px; border-radius: 4px;
  transition: background-color .25s var(--ease);
}
body .menu-row:not(:has(.item-note)) { grid-template-areas: "item time price"; }
body .menu-row:hover { background: var(--ground); }
body .menu-row .item { grid-area: item; font-size: clamp(1.3rem, 1.8vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; }
body .menu-row .item-note { grid-area: note; margin-top: 6px; font-size: var(--fs-small); line-height: 1.2; color: var(--ink-soft); }
body .menu-row .time { grid-area: time; font-size: var(--fs-small); color: var(--ink-soft); }
body .menu-row .price { grid-area: price; font-size: clamp(1.4rem, 2vw, 1.9rem); text-align: right; white-space: nowrap; }
/* Beschreibung über die ganze Breite unter Name, Dauer und Preis */
body .menu-row .desc { grid-column: 1 / -1; display: grid; gap: 8px; max-width: 40em; margin-top: 12px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-soft); }

/* ---------- Studio ---------- */
body .studio {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px;
  max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter);
}
body .studio-text {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: var(--gutter); row-gap: 20px; align-content: start; margin-bottom: clamp(16px, 3vw, 40px);
}
body .studio-text > .h2 { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
body .studio-text > :not(.h2) { grid-column: 2; max-width: 36em; }
body .wp-block-image.studio-photo { grid-column: span 6; }
body .wp-block-image.studio-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
body .studio-photo-lounge img { object-position: 50% 30%; }
body .studio-photo-room img { object-position: 50% 50%; }
body .wp-block-list.extras { display: grid; gap: 10px; list-style: none; padding: 0; }
body .wp-block-list.extras li { font-family: var(--display); font-weight: var(--display-weight); font-variation-settings: var(--display-axes); font-size: 1.4rem; line-height: 1.2; margin: 0; }

/* ---------- Kundenstimmen ---------- */
body .voices {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(48px, 6vw, 96px);
  padding: var(--section) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: var(--ink); color: var(--on-dark);
}
body .voices > .h2 { grid-column: 1 / span 5; }
body .voices .wp-block-quote { border: 0; padding: 0; margin: 0; quotes: none; font-style: normal; }
body .voices .wp-block-quote::before, body .voices .wp-block-quote::after { content: none; }
body .voices .wp-block-quote.voice-main { grid-column: 6 / span 7; }
body .voice-main p { font-family: var(--display); font-weight: var(--display-weight); font-variation-settings: var(--display-axes); font-size: var(--fs-statement); line-height: 1.3; letter-spacing: -0.01em; max-width: 24em; }
body .voices cite { display: block; margin-top: 18px; font-size: var(--fs-small); font-style: normal; color: var(--field-2); }
body .voice-list { grid-column: 1 / -1; display: block; columns: 3 300px; column-gap: clamp(32px, 4vw, 72px); }
body .voice-list .wp-block-quote { break-inside: avoid; margin-bottom: clamp(36px, 4vw, 56px); }
body .voice-list p { font-size: 1.0625rem; line-height: 1.6; }
body .voices > .note { grid-column: 1 / -1; color: var(--field-2); }

/* ---------- Fragen ---------- */
body .faq {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter);
}
body .faq > .h2 { grid-column: 1 / span 4; }
body .faq-list { grid-column: 6 / span 7; display: grid; gap: 10px; }
body .faq .wp-block-details { background: var(--field); border-radius: 4px; transition: background-color .25s var(--ease); }
body .faq .wp-block-details[open], body .faq .wp-block-details:hover { background: var(--field-2); }
body .faq .wp-block-details summary {
  list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; position: relative;
  font-family: var(--display); font-weight: var(--display-weight); font-variation-settings: var(--display-axes);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.25;
}
body .faq .wp-block-details summary::-webkit-details-marker { display: none; }
body .faq .wp-block-details summary::after {
  content: "+"; position: absolute; right: 26px; top: 50%; translate: 0 -50%;
  font-family: var(--text); font-size: 1.5rem; transition: rotate .3s var(--ease);
}
body .faq .wp-block-details[open] summary::after { rotate: 45deg; }
body .faq .wp-block-details > p { padding: 0 26px 24px; max-width: 40em; }

/* ---------- Kontakt ---------- */
body .contact {
  padding: var(--section) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: var(--taupe); color: var(--on-dark);
  display: grid; gap: clamp(56px, 7vw, 112px);
}
body .contact-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
body .contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gutter); max-width: 960px; }
body .contact-grid .h3 { margin-bottom: 18px; }
body .contact .note { color: var(--on-dark); margin-top: 14px; }
body .wp-block-table.hours { margin: 0; overflow: visible; }
body .wp-block-table.hours table { width: auto; border-collapse: collapse; font-size: 1.0625rem; }
body .wp-block-table.hours td { border: 0; padding: 6px 40px 6px 0; }
body .wp-block-table.hours td + td { padding: 6px 0; font-variant-numeric: tabular-nums; }
body .wp-block-list.contact-list { display: grid; gap: 10px; list-style: none; padding: 0; }
body .wp-block-list.contact-list li { margin: 0; }
body .contact-list a { text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-underline-offset .25s var(--ease); }
body .contact-list a:hover { text-underline-offset: 8px; }

/* ---------- Fußzeile ---------- */
body .foot { background: var(--ink); color: var(--on-dark); padding: clamp(48px, 6vw, 96px) var(--gutter) 28px; overflow: hidden; }
body .foot-mark { font-size: clamp(2.6rem, 10.4vw, 11rem); line-height: 0.9; letter-spacing: -0.04em; white-space: nowrap; text-align: center; }
body .foot-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  margin-top: clamp(36px, 5vw, 72px); font-size: var(--fs-small); color: var(--field-2);
}
body .foot .foot-row { margin-top: clamp(36px, 5vw, 72px); }
body .foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
body .foot-row a { text-decoration: none; }
body .foot-row a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Rechtliche Seiten (Seitenvorlage mit Titel) ---------- */
body .legal { max-width: 46em; margin: 0 auto; padding: clamp(48px, 8vw, 120px) var(--gutter) var(--section); display: grid; gap: 20px; }
body .legal > * { margin-block: 0; }
body .legal .wp-block-post-title { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.025em; }
body .legal .wp-block-post-content { display: grid; gap: 20px; }
body .legal .wp-block-post-content > * { margin-block: 0; }
body .legal .wp-block-post-content h2 { font-size: var(--fs-h3); line-height: 1.15; }
body .legal :is(.h3, .wp-block-post-content h2) { margin-top: 24px; }
body .legal .wp-block-post-content > .legal { padding: 0; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  body .bar .wp-block-navigation.nav, body .bar .nav .wp-block-navigation__container { gap: 20px; }
  body .results-compare { grid-column: 1 / span 6; }
  body .results-text { grid-column: 7 / span 6; }
  body .studio-text { grid-template-columns: 1fr; max-width: 40em; }
  body .studio-text > .h2, body .studio-text > :not(.h2) { grid-column: 1; grid-row: auto; }
}

@media (max-width: 900px) {
  body .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  body .display { --display-max: 4.5rem; }
  body .wp-block-image.hero-mirror { width: 100%; max-width: 420px; }
  body .wp-block-image.hero-mirror img { width: 100%; height: auto; aspect-ratio: 4 / 5; }

  body .results-compare, body .results-text { grid-column: 1 / -1; }
  body .results-compare { max-width: 440px; justify-self: center; width: 100%; }

  body .menu-section { grid-template-columns: 1fr; }
  body .menu-head { position: static; }

  body .wp-block-image.about-photo { grid-column: 1 / -1; position: static; margin-bottom: 48px; }
  body .about-text { grid-column: 1 / -1; }

  body .voices > .h2, body .voices .wp-block-quote.voice-main { grid-column: 1 / -1; }
  body .faq > .h2 { grid-column: 1 / -1; margin-bottom: 36px; }
  body .faq-list { grid-column: 1 / -1; }
}

/* ---------- Telefon ---------- */
@media (max-width: 560px) {
  body .wordmark { font-size: 1.35rem; }
  body .wordmark em { display: none; }
  body .display { --display-max: 3rem; }
  body .hero { padding-top: 12px; }
  body .wp-block-image.hero-mirror { max-width: none; }
  body .wp-block-image.hero-mirror img { aspect-ratio: 3 / 4; }
  body .hero-facts { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  body .fact-value { font-size: 1.3rem; }
  body .wp-block-buttons.actions .wp-block-button:not(.is-style-text-link) { width: 100%; }
  body .wp-block-buttons.actions .wp-block-button:not(.is-style-text-link) .wp-block-button__link { width: 100%; }
  body .menu-row { grid-template-columns: 1fr auto; grid-template-areas: "item item" "note note" "time price"; padding: 18px 16px; margin: 0 -16px; }
  body .menu-row .time, body .menu-row .price { margin-top: 8px; }
  body .menu-row:not(:has(.item-note)) { grid-template-areas: "item item" "time price"; }
  body .wp-block-image.studio-photo, body .wp-block-image.results-ref { grid-column: 1 / -1; }
  body .wp-block-image.results-ref img { aspect-ratio: 4 / 5; }
  body .contact-grid { grid-template-columns: 1fr; }
  body .contact-head .wp-block-buttons, body .contact-head .wp-block-button, body .contact-head .wp-block-button__link { width: 100%; }
  body .foot-mark { font-size: 12vw; }
}
