/* ==========================================================================
   Hair Solutions — Demo Redesign
   Farbpalette: "Gothic noir" (Kundenvorgabe, ausschliesslich, bis auf Schriftfarbe)
   #000000 Schwarz · #D1D0D0 Stein/Hellgrau · #988686 Mauve (Akzent) · #5C4E4E Umbra (Sekundärakzent)
   ========================================================================== */

:root {
  --black:  #000000;
  --stone:  #D1D0D0;
  --mauve:  #988686;
  --umber:  #5C4E4E;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.55);

  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --measure: 1180px;
  --gutter: 1.5rem;

  --line-on-dark:  rgba(209, 208, 208, 0.16);
  --line-on-light: rgba(92, 78, 78, 0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--stone);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; border: none; background: none; cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--stone);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--mauve);
  display: inline-block;
}

.section {
  padding-block: clamp(2.4rem, 5vw, 4.5rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem);
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-top: 0.4rem;
}
.section-head p {
  color: var(--stone);
  opacity: 0.72;
  margin-top: 0.6rem;
  font-size: 1.05rem;
  max-width: 52ch;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--mauve);
  color: var(--black);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--stone); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--stone);
  border: 1.5px solid var(--line-on-dark);
}
.btn-ghost:hover { border-color: var(--mauve); color: var(--mauve); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-on-dark);
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
.bar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--stone);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.brand .dot { color: var(--mauve); }
.nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--stone);
  opacity: 0.8;
  position: relative;
  padding-block: 0.3rem;
  transition: color 200ms var(--ease), opacity 200ms var(--ease);
}
.nav a:hover { color: var(--mauve); opacity: 1; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--mauve);
  transition: width 220ms var(--ease);
}
.nav a:hover::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.burger span { width: 22px; height: 1.5px; background: var(--stone); transition: 200ms var(--ease); }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(84px + clamp(2rem, 5vw, 3.5rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  margin-top: 0.7rem;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--mauve);
}
.hero-copy p {
  margin-top: 1rem;
  color: var(--stone);
  opacity: 0.78;
  font-size: 1.12rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
  color: var(--stone);
  opacity: 0.85;
  font-size: 0.88rem;
}
.stars { display: inline-flex; gap: 2px; color: var(--mauve); }
.stars svg { width: 15px; height: 15px; }

.hero-visual { position: relative; }
.hero-visual .frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-on-dark);
}
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Marquee strip ---------- */
.strip {
  background: var(--mauve);
  padding-block: 0.9rem;
}
.strip .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-on-dark);
}
.service-cat {
  background: var(--stone);
  padding: clamp(1.3rem, 2.2vw, 1.9rem);
  color: var(--black);
}
.service-cat h3 {
  font-size: 1.35rem;
  color: var(--umber);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.service-cat h3 svg { width: 20px; height: 20px; color: var(--umber); }
.service-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.58rem;
  border-bottom: 1px dashed var(--line-on-light);
}
.service-row:last-child { border-bottom: none; }
.service-row .name { font-size: 0.98rem; color: var(--black); }
.service-row .name small { display: block; color: var(--umber); font-size: 0.8rem; margin-top: 0.1rem; }
.service-row .price {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
}
.services-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--stone);
  opacity: 0.65;
  text-align: center;
}

/* ---------- Gallery (echte Fotos, natives Format, sinnvolle Lese-Reihenfolge) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-on-dark);
  line-height: 0;
}
.gallery-grid img {
  width: 100%; height: auto; display: block;
  transition: filter 400ms var(--ease);
  filter: grayscale(0.15) contrast(1.02);
}
.gallery-grid figure:hover img { filter: grayscale(0) contrast(1.05); }

/* ---------- Booking preview ---------- */
.booking {
  background: var(--stone);
  color: var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.6rem, 3vw, 2.6rem);
  align-items: start;
}
.booking-copy .eyebrow { margin-bottom: 0.5rem; color: var(--umber); }
.booking-copy .eyebrow::before { background: var(--umber); }
.booking-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); color: var(--black); }
.booking-copy p { color: var(--black); opacity: 0.75; margin-top: 0.7rem; max-width: 42ch; }
.booking-copy .btn { margin-top: 1.1rem; }
.booking-widget {
  background: var(--umber);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  color: var(--stone);
  min-width: 0;
}
.booking-widget .bw-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.booking-widget .bw-head b { font-family: var(--serif); font-size: 1.15rem; color: var(--stone); }
.booking-widget .bw-head .nav-arrows { display: flex; gap: 0.4rem; }
.booking-widget .bw-head .nav-arrows span {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--stone); color: var(--black);
  display: flex; align-items: center; justify-content: center;
}
.bw-days {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.bw-days .d {
  background: var(--stone);
  color: var(--black);
  border-radius: 12px;
  text-align: center;
  padding: 0.6rem 0.2rem;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  cursor: pointer;
  transition: 200ms var(--ease);
}
.bw-days .d span { display: block; font-family: var(--serif); font-size: 1.15rem; margin-top: 0.15rem; }
.bw-days .d.active { background: var(--mauve); color: var(--black); }
.bw-slots { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.bw-slots .t {
  background: var(--stone);
  color: var(--black);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 200ms var(--ease);
}
.bw-slots .t.active { background: var(--mauve); color: var(--black); }
.bw-slots .t.taken { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.booking-widget .bw-note {
  margin-top: 1.1rem;
  font-size: 0.76rem;
  color: var(--stone);
  opacity: 0.75;
  text-align: center;
}

/* ---------- Team (echte Fotos) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}
.team-card { text-align: center; }
.avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-on-dark);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2); }
.team-card h4 { font-size: 1.05rem; color: var(--stone); }
.team-card span { display: block; font-size: 0.8rem; color: var(--stone); opacity: 0.65; margin-top: 0.2rem; }

/* ---------- Testimonials ---------- */
.testi-band { background: var(--umber); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.testi-card {
  background: var(--stone);
  color: var(--black);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
}
.testi-card .stars { color: var(--umber); margin-bottom: 0.6rem; }
.testi-card p { font-size: 1rem; color: var(--black); }
.testi-who {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--umber);
}
.testi-who .mini {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--mauve);
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 0.9rem;
  flex-shrink: 0;
}
.testi-summary {
  text-align: center;
  color: var(--stone);
  margin-bottom: 1.8rem;
}
.testi-summary .eyebrow { color: var(--stone); }
.testi-summary .eyebrow::before { background: var(--stone); }
.testi-summary .big { font-family: var(--serif); font-size: 3.2rem; font-weight: 600; }
.testi-summary .stars { color: var(--stone); justify-content: center; margin-block: 0.4rem; }
.testi-summary p { font-size: 0.9rem; opacity: 0.85; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.contact-card {
  background: var(--stone);
  color: var(--black);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 2rem);
}
.info-row { display: flex; gap: 1rem; padding-block: 0.7rem; border-bottom: 1px solid var(--line-on-light); }
.info-row:last-child { border-bottom: none; }
.info-row .ic {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--umber); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.info-row .ic svg { width: 17px; height: 17px; color: var(--stone); }
.info-row b { display: block; font-size: 0.95rem; color: var(--black); }
.info-row b a { color: inherit; }
.info-row b a:hover { color: var(--umber); }
.info-row span { font-size: 0.85rem; color: var(--umber); }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line-on-dark);
  filter: grayscale(0.5) invert(0.92) contrast(0.9);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Formularfelder (Terminanfrage im Booking-Widget) ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 0.8rem; }
.form-row.full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label {
  font-size: 0.72rem; font-weight: 600; color: var(--umber);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.booking-widget .form-field label { color: var(--stone); opacity: 0.8; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line-on-dark);
  background: var(--black);
  color: var(--stone);
  outline: none;
  transition: border-color 200ms var(--ease);
}
.form-field option { background: var(--black); color: var(--stone); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--mauve); }
.form-field textarea { resize: vertical; min-height: 70px; }

/* ---------- Footer ---------- */
footer {
  background: var(--umber);
  color: var(--stone);
  padding-block: 2rem;
  font-size: 0.85rem;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.foot-grid .brand { color: var(--stone); font-size: 1.2rem; }
.foot-grid .brand .dot { color: var(--stone); }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; opacity: 0.85; }
.foot-links a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .booking { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .bar > a.btn-primary { display: none; }
  .nav { position: fixed; inset: calc(72px + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; align-items: flex-start;
    background: var(--black); backdrop-filter: blur(14px);
    padding: 1.4rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px)); gap: 0.2rem;
    border-bottom: 1px solid var(--line-on-dark);
    max-height: calc(100vh - 72px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    clip-path: inset(0 0 100% 0); transition: clip-path 380ms var(--ease); }
  .nav.is-open { clip-path: inset(0 0 0 0); }
  .nav a { width: 100%; padding-block: 0.85rem; font-size: 1rem; min-height: 44px; display: flex; align-items: center; }
  .nav::after {
    content: "Termin anfragen";
    display: block; width: 100%; box-sizing: border-box; text-align: center;
    margin-top: 0.6rem; padding: 0.95rem;
    min-height: 44px;
    background: var(--mauve); color: var(--black); border-radius: 999px;
    font-size: 0.92rem; font-weight: 600;
  }
  .burger { display: flex; }
  .bar { height: 72px; }
  .hero { padding-top: calc(72px + env(safe-area-inset-top, 0px) + clamp(2rem, 8vw, 6rem)); }

  .hero-visual { display: none; }
  .strip { display: none; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid > .team-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: 50%; margin-inline: auto; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }

  /* Terminanfrage-Widget: auf Mobile mehr Luft, damit Kalender und
     Formular nicht als eine zerquetschte Wand wirken */
  .booking { padding: 1.5rem 1.2rem; border-radius: var(--radius-sm); }
  .booking-copy { text-align: left; margin-bottom: 0.4rem; }
  .booking-widget { padding: 1.5rem 1.2rem 1.7rem; }
  .booking-widget .bw-head { margin-bottom: 1.3rem; }
  .bw-days { margin-bottom: 1.3rem; }
  .bw-slots {
    margin-bottom: 1.6rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(209, 208, 208, 0.18);
  }
  .form-row { margin-bottom: 1.15rem; }
  .form-field { gap: 0.45rem; }
  .form-field label { font-size: 0.76rem; }

  /* Kalender-Tage: bei 6 Spalten wären die Touch-Ziele < 44px breit,
     darum auf Mobile als horizontal scrollbare Reihe mit voller Zielgrösse */
  .bw-days {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    min-width: 0;
    padding-bottom: 0.3rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .booking-copy, .booking { min-width: 0; }
  .bw-days .d { min-width: 52px; flex: 0 0 auto; scroll-snap-align: start; }
}
