/* ==========================================================================
   ESTETICO KOBLENZ — Main Stylesheet
   Vanilla CSS. Custom properties for theming. Mobile-first, then scaled up.
   ========================================================================== */

/* --------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------- */
:root {
  /* Color */
  --ink:        #241C1A;   /* warm charcoal — primary text, not flat black */
  --ink-soft:   #4A3E3A;   /* secondary text */
  --paper:      #FBF6F2;   /* warm ivory — base background */
  --paper-alt:  #FFFFFF;
  --blush:      #F1E1DC;   /* soft section tint */
  --rose:       #C08790;   /* muted dusty rose — accent, links */
  --rose-dark:  #A96C76;
  --wine:       #7A3F45;   /* deep wine — CTAs, emphasis, hover */
  --wine-dark:  #5E2F34;
  --sage:       #96A084;   /* natural/holistic accent — badges, checks only */
  --line:       #E4D5CF;   /* hairline rule color on paper */
  --line-dark:  rgba(251, 246, 242, 0.16); /* hairline on ink */

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-signature: 'Instrument Serif', Georgia, serif;

  /* Type scale — fluid via clamp() */
  --fs-h1: clamp(2.25rem, 1.7rem + 2.2vw, 3.75rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.2vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;

  /* Layout */
  --container: 1180px;
  --container-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 2px;
  --radius-md: 4px;
  --space-section: clamp(4rem, 6vw, 7rem);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 220ms;
}

/* --------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration-color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--wine-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 0.75em;
}

section { padding-block: var(--space-section); }
.section--tint { background: var(--blush); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }

/* Visible keyboard focus everywhere — accessibility floor */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85em 1.75em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn--primary { background: var(--wine); color: var(--paper); }
.btn--primary:hover { background: var(--wine-dark); color: var(--paper); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--on-ink { background: transparent; color: var(--paper); border-color: var(--line-dark); }
.btn--on-ink:hover { background: var(--paper); color: var(--ink); }

/* --------------------------------------------------------------------
   4. Header / Primary nav
   -------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.site-logo {
  font-family: var(--font-signature);
  font-style: italic;
  font-size: 1.75rem;
  color: var(--wine);
  text-decoration: none;
}
.primary-nav { display: none; }
.primary-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--wine);
  border-bottom-color: var(--rose);
}
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(36, 28, 26, 0.12);
  padding: 0.5rem 0;
  list-style: none;
  margin: 0.5rem 0 0;
}
.primary-nav .menu-item-has-children:hover .sub-menu,
.primary-nav .menu-item-has-children:focus-within .sub-menu { display: block; }
.primary-nav .sub-menu a { display: block; padding: 0.6rem 1.25rem; text-transform: none; letter-spacing: 0; font-weight: 500; border: none; }
.primary-nav .sub-menu a:hover { background: var(--blush); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bar::before { position: absolute; top: -6px; }
.nav-toggle__bar::after { position: absolute; top: 6px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.5rem;
}
.nav-open .mobile-nav { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.mobile-nav .sub-menu { padding-left: 1rem; }

@media (min-width: 900px) {
  .primary-nav { display: block; }
  .nav-toggle, .mobile-nav { display: none; }
}

/* --------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero__eyebrow { color: var(--rose-dark); }
.hero__subtext { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 42ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero__image { border-radius: var(--radius-md); overflow: hidden; }
.hero--split .hero__grid { grid-template-columns: 1fr; }

@media (min-width: 900px) {
  .hero--split .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero--split .hero__media { order: 2; }
}

/* --------------------------------------------------------------------
   6. Icon feature row
   -------------------------------------------------------------------- */
.feature-row {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-block: 2.5rem;
}
.feature-row__item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-row__icon { width: 40px; height: 40px; flex: none; }
.feature-row__title { font-weight: 600; margin-bottom: 0.15em; }
.feature-row__subtitle { color: var(--rose-dark); font-size: var(--fs-small); }
@media (min-width: 720px) {
  .feature-row { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------
   7. Treatment cards
   -------------------------------------------------------------------- */
.treatments { display: grid; gap: 2.5rem; margin-top: 2rem; }
.treatment-card {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}
.treatment-card:first-child { border-top: none; padding-top: 0; }
.treatment-card__partner { font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage); margin-bottom: 0.35em; }
.treatment-card__price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--wine);
}
.treatment-card__price-note, .treatment-card__duration { font-size: var(--fs-small); color: var(--ink-soft); }
.treatment-card__footer { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.bullet-list { margin: 0.75em 0; padding-left: 1.1em; color: var(--ink-soft); }
.bullet-list li { margin-bottom: 0.35em; }

@media (min-width: 780px) {
  .treatment-card { grid-template-columns: 1fr 1fr; align-items: start; }
  .treatment-card__media img { border-radius: var(--radius-md); }
}

.price-disclaimer { font-size: var(--fs-small); color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1rem; }

/* --------------------------------------------------------------------
   8. FAQ accordion — accessible, vanilla JS driven via aria-expanded
   -------------------------------------------------------------------- */
.faq { max-width: var(--container-narrow); margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  padding: 1.35rem 0;
  cursor: pointer;
}
.faq-item__icon { flex: none; width: 20px; height: 20px; position: relative; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ''; position: absolute; background: var(--wine);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-item__icon::before { width: 14px; height: 2px; }
.faq-item__icon::after { width: 2px; height: 14px; transition: transform var(--dur) var(--ease); }
.faq-item__question[aria-expanded="true"] .faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}
.faq-item__question[aria-expanded="true"] + .faq-item__answer { grid-template-rows: 1fr; }
.faq-item__answer-inner { overflow: hidden; }
.faq-item__answer p { padding-bottom: 1.35rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------
   9. Testimonials — the "consultation note" signature element
   -------------------------------------------------------------------- */
.note-card {
  position: relative;
  background: var(--paper-alt);
  border-left: 3px solid var(--rose);
  padding: 1.75rem 2rem;
  max-width: 560px;
}
.note-card__quote {
  font-family: var(--font-signature);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}
.note-card__quote::before { content: '\201C'; color: var(--wine); margin-right: 0.1em; }
.note-card__quote::after { content: '\201D'; color: var(--wine); margin-left: 0.1em; }
.note-card__meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.note-card__photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.note-card__name { font-weight: 600; font-size: var(--fs-small); }
.note-card__rating { color: var(--sage); font-size: var(--fs-small); letter-spacing: 0.1em; }

.testimonials-row { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 780px) { .testimonials-row { grid-template-columns: repeat(2, 1fr); } .testimonials-row .note-card { max-width: none; } }

/* --------------------------------------------------------------------
   10. Package cards & Special offer cards (Angebote & Pakete)
   -------------------------------------------------------------------- */
.packages { display: grid; gap: 1.75rem; margin-top: 2.5rem; }
.package-card {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 2rem 2rem;
  overflow: hidden;
}
.package-card__bg { position: absolute; inset: 0; object-fit: cover; opacity: 0.28; }
.package-card__content { position: relative; z-index: 1; }
.package-card__badge {
  display: inline-flex; align-items: center; justify-content: center;
  flex-direction: column;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--rose);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.package-card__badge small { font-size: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase; }
.package-card__tagline { font-size: var(--fs-small); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blush); }
.package-card__features { list-style: none; margin: 1.5rem 0; padding: 0; border-top: 1px solid var(--line-dark); }
.package-card__features li { padding: 0.7rem 0; border-bottom: 1px solid var(--line-dark); font-size: var(--fs-small); }

@media (min-width: 780px) { .packages { grid-template-columns: repeat(3, 1fr); } }

.special-offers { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.offer-card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 2rem;
  position: relative;
}
.offer-card__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); display: flex; align-items: center; justify-content: center;
  position: absolute; top: 1.5rem; right: 1.5rem;
}
.offer-card__discount { color: var(--wine); font-weight: 600; }
.offer-card__features { list-style: none; margin: 1rem 0; padding: 0; color: var(--ink-soft); font-size: var(--fs-small); }
.offer-card__features li { margin-bottom: 0.4em; padding-left: 1.1em; position: relative; }
.offer-card__features li::before { content: '✓'; color: var(--sage); position: absolute; left: 0; }

@media (min-width: 780px) { .special-offers { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 779px) { .special-offers { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------
   11. Voucher widget
   -------------------------------------------------------------------- */
.voucher { display: grid; gap: 2rem; }
.voucher__form { display: grid; gap: 1rem; }
.voucher select {
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  background: var(--paper-alt);
}
@media (min-width: 780px) { .voucher { grid-template-columns: 1.2fr 1fr; align-items: start; } }

/* --------------------------------------------------------------------
   12. Trust badges (icon feature row variant on dark)
   -------------------------------------------------------------------- */
.trust-badges {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  padding-block: 2.5rem;
  background: var(--rose);
  color: var(--paper);
}
.trust-badges__item { text-align: center; }
.trust-badges__icon { width: 36px; height: 36px; margin-inline: auto 0.5rem; }
.trust-badges__label { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: var(--fs-small); }
@media (min-width: 720px) { .trust-badges { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------
   13. Founder / Philosophy page
   -------------------------------------------------------------------- */
.philosophy__grid { display: grid; gap: 2.5rem; }
.philosophy__body { color: var(--ink-soft); }
.philosophy__attribution { margin-top: 0.25em; }
.philosophy__attribution strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 3.5rem var(--gutter);
  text-align: center;
}
.cta-band__eyebrow { color: var(--rose); }
.cta-band__title { font-size: var(--fs-h2); }
.cta-band__subtitle { font-family: var(--font-signature); font-style: italic; color: var(--blush); font-size: 1.1rem; }

@media (min-width: 900px) {
  .philosophy__grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

/* --------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: var(--space-section);
}
.site-footer h3 { color: var(--paper); font-size: 1.4rem; }
.site-footer address { font-style: normal; color: var(--blush); line-height: 1.9; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--rose); }
.site-footer__map { min-height: 320px; background: var(--blush); }
.site-footer__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

.social-row { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--rose); border-color: var(--rose); }

.site-footer__legal {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--blush);
}

@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1.4fr; }
}

/* --------------------------------------------------------------------
   15. Legal page (Impressum/Datenschutz) — plain, readable prose
   -------------------------------------------------------------------- */
.legal-content { max-width: var(--container-narrow); margin-inline: auto; }
.legal-content h2 { font-size: 1.15rem; margin-top: 2em; }
.legal-content ul { color: var(--ink-soft); }

/* --------------------------------------------------------------------
   17. Consent banner + YouTube facade (Phase 4)
   -------------------------------------------------------------------- */
.consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--rose);
  color: var(--paper);
  padding: 1.25rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  text-align: center;
}
.consent-banner__text { max-width: 640px; font-size: var(--fs-small); }
.consent-banner__text a { color: var(--paper); }
.consent-banner__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.consent-banner .btn--primary { background: var(--ink); }
.consent-banner .btn--outline { border-color: var(--paper); color: var(--paper); }
.consent-banner .btn--outline:hover { background: var(--paper); color: var(--ink); }

.youtube-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
  border-radius: var(--radius-md);
}
.youtube-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.youtube-facade iframe { width: 100%; height: 100%; border: 0; }
.youtube-facade__play {
  position: absolute; inset: 0;
  width: 64px; height: 64px; margin: auto;
  background: var(--paper);
  border: none; border-radius: 50%;
  cursor: pointer;
}
.youtube-facade__play::before {
  content: '';
  position: absolute; top: 50%; left: 56%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--wine);
}
/* --------------------------------------------------------------------
   18. Studio gallery (Kosmetikstudio landing page)
   COSA's tight editorial grid is the direct reference here — the one
   page on the site where a real photo-grid earns its place.
   -------------------------------------------------------------------- */
.studio-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.studio-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
@media (min-width: 720px) {
  .studio-gallery { grid-template-columns: repeat(4, 1fr); }
  .studio-gallery img:nth-child(4n+1) { aspect-ratio: 1 / 1.3; grid-row: span 2; }
}

.opening-hours-table { border-collapse: collapse; margin-top: 1rem; }
.opening-hours-table td { padding: 0.5rem 1.5rem 0.5rem 0; border-bottom: 1px solid var(--line); }
.opening-hours-table td:first-child { font-weight: 600; }

/* --------------------------------------------------------------------
   19. Utility
   -------------------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--wine); color: var(--paper); padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: var(--gutter); }
