/* ============================================================
   pages.css: Startseite, Über mich, MONAT, Galerie, Rechtliches
   ============================================================ */

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head {
  padding-top: clamp(140px, 16vw, 190px);
  padding-bottom: clamp(32px, 5vw, 56px);
  text-align: center;
}

.page-head .lead {
  max-width: 680px;
  margin: 22px auto 0;
}

/* ============================================================
   STARTSEITE
   ============================================================ */
.hero-home {
  position: relative;
  padding-top: clamp(130px, 14vw, 170px);
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow-x: clip;
}

.hero-home__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-home__text h1 {
  margin-bottom: 24px;
}

.hero-home__text .lead {
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-home__text .note {
  margin-top: 16px;
}

/* Einblenden des Hero direkt nach dem Laden (nur Texte, kein Glas) */
.hero-home__text > * {
  animation: rise 900ms var(--ease-soft) backwards;
}

.hero-home__text > :nth-child(2) { animation-delay: 80ms; }
.hero-home__text > :nth-child(3) { animation-delay: 160ms; }
.hero-home__text > :nth-child(4) { animation-delay: 240ms; }
.hero-home__text > :nth-child(5) { animation-delay: 320ms; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

.hero-home__visual {
  position: relative;
}

.hero-home__visual .photo {
  aspect-ratio: 4 / 3;
  border-radius: 36px;
  box-shadow: 0 40px 80px rgba(102, 92, 87, 0.18);
  animation: photo-in 1.3s var(--ease-soft) 150ms backwards;
}

@keyframes photo-in {
  from {
    clip-path: inset(12% 6% 12% 6% round 36px);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0 0 round 36px);
    opacity: 1;
  }
}

/* Glas-Etikett auf dem Bild */
.photo-caption {
  position: absolute;
  z-index: 2;
  left: clamp(-24px, -2vw, -12px);
  bottom: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 20px 12px 12px;
  border-radius: 999px;
  animation: rise 900ms var(--ease) 900ms backwards;
}

.photo-caption .brand__mark {
  width: 42px;
  height: 42px;
  font-size: 16px;
  animation: none;
  view-transition-name: none;
}

.photo-caption strong {
  display: block;
  font: 500 16px/1.2 var(--font-head);
}

.photo-caption small {
  color: var(--taupe-dark);
  font-size: 12px;
}


/* Abschnitt "Deine Haare verdienen mehr…" */
.split-card {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.split-card .btn {
  margin-top: 28px;
}

.split-card p {
  color: var(--text-soft);
}

/* Kurze Vorstellung */
.intro-me {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.intro-me .photo {
  aspect-ratio: 4 / 5;
  max-width: 440px;
  border-radius: 200px 200px 28px 28px;
  box-shadow: 0 30px 60px rgba(102, 92, 87, 0.16);
}

.intro-me h2 {
  margin-bottom: 20px;
}

.intro-me .chips {
  margin: 24px 0 28px;
}

/* Ablauf in 3 Schritten */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: clamp(26px, 3vw, 36px);
}

.step__no {
  display: block;
  margin-bottom: 18px;
  color: var(--champagne);
  font: 500 48px/1 var(--font-head);
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  color: var(--text-soft);
  font-size: 15.5px;
}

/* Schluss-Aufruf */
.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 64px);
  text-align: center;
}

.cta-card p {
  max-width: 560px;
  margin: 20px auto 32px;
  color: var(--text-soft);
}

.cta-card .btn-row {
  justify-content: center;
}


.cta-card > * {
  position: relative;
  z-index: 2;
}

/* ============================================================
   KUNDENERGEBNISSE (Galerie)
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.result {
  padding: 12px 12px 18px;
}

.result__text {
  padding: 14px 8px 0;
  color: var(--text-soft);
  font-size: 14.5px;
}

/* Vorher-Nachher-Vergleich mit Regler */
.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-2);
  user-select: none;
}

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba__before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(48, 45, 43, 0.25);
  pointer-events: none;
}

.ba__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--taupe-dark);
  font-size: 14px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(48, 45, 43, 0.2);
  transform: translate(-50%, -50%);
}

/* Unsichtbarer Regler über dem ganzen Bild: ziehen + Tastatur */
.ba__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba__range:focus-visible + .ba__line .ba__handle {
  outline: 2px solid var(--taupe-dark);
  outline-offset: 3px;
}

.ba__label {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.ba__label--before { left: 12px; }
.ba__label--after { right: 12px; }

.ba__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text);
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  cursor: zoom-in;
  transition: transform 300ms var(--ease);
}

.ba__zoom:hover {
  transform: scale(1.08);
}

.ba__zoom svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.ba .placeholder {
  border-radius: 20px;
}

/* Fertige Collage: ganzes Bild zeigen, kein Regler */
.ba--single {
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
}

.ba--single img {
  object-fit: contain;
}

.lightbox:has(.ba--single) {
  width: min(900px, 100% - 32px);
}

.lightbox .ba--single {
  aspect-ratio: auto;
  background: none;
}

.lightbox .ba--single img {
  position: static;
  max-height: calc(100vh - 140px);
  object-fit: contain;
}

.gallery-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-top: 40px;
  text-align: center;
}

.gallery-actions small {
  color: var(--taupe-dark);
}

/* Vergrösserung */
.lightbox {
  width: min(560px, 100% - 32px);
  max-height: calc(100vh - 32px);
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: rgba(248, 246, 243, 0.92);
  box-shadow: 0 40px 100px rgba(48, 45, 43, 0.35);
}

.lightbox::backdrop {
  background: rgba(48, 45, 43, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox[open] {
  animation: lightbox-in 450ms var(--ease);
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
}

.lightbox .ba {
  max-height: calc(100vh - 140px);
  margin-inline: auto;
}

.lightbox__bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px 2px;
  color: var(--text-soft);
  font-size: 14px;
}

/* ============================================================
   ÜBER MICH
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(130px, 14vw, 170px);
}

.about__aside {
  position: sticky;
  top: 110px;
}

.about__aside .photo {
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px 32px 32px;
  box-shadow: 0 40px 80px rgba(102, 92, 87, 0.18);
  animation: photo-in 1.3s var(--ease-soft) 150ms backwards;
}

.about__aside .chips {
  justify-content: center;
  margin-top: 22px;
}

.about__head {
  margin-bottom: 28px;
}

.about__head h1 {
  font-size: clamp(36px, 4.6vw, 62px);
}

.story {
  font-size: clamp(16.5px, 1.3vw, 18px);
}

.story p {
  color: var(--text-soft);
}

/* Hervorgehobene Gedanken in der Geschichte */
.story .quote {
  margin: 1.6em 0;
  padding-left: 20px;
  color: var(--text);
  font: 500 clamp(20px, 1.9vw, 24px)/1.45 var(--font-head);
  border-left: 2px solid var(--champagne);
}

.story .hint {
  padding: 16px 20px;
  font-size: 15.5px;
  border-radius: 18px;
  background: rgba(240, 236, 232, 0.8);
}

.signature {
  margin-top: 28px;
}

.signature .script {
  display: block;
  margin-top: 6px;
  font-size: 46px;
}

.about .btn {
  margin-top: 32px;
}

/* ============================================================
   MONAT HAIRCARE
   ============================================================ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info {
  padding: clamp(26px, 3vw, 34px);
}

.info__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: var(--taupe-dark);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(102, 92, 87, 0.1);
}

.info__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info h3 {
  margin-bottom: 12px;
}

.info p {
  color: var(--text-soft);
  font-size: 15.5px;
}

.source-note {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--taupe-dark);
  font-size: 14px;
  text-align: center;
}

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
  padding: 16px;
}

.product .photo {
  aspect-ratio: 1;
  border-radius: 20px;
}

.product__body {
  padding: 10px 8px 8px 0;
}

.product__no {
  color: var(--champagne);
  font: 500 16px/1 var(--font-head);
}

.product h3 {
  margin: 6px 0 10px;
}

.product p {
  color: var(--text-soft);
  font-size: 15px;
}

.product ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 14.5px;
}

.product__fit {
  margin-bottom: 8px;
  color: var(--taupe-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product .chip {
  padding: 6px 12px;
  font-size: 12.5px;
}

.shop-hint {
  margin-top: 22px;
  color: var(--taupe-dark);
  font-size: 14px;
}

/* ============================================================
   RECHTLICHES
   ============================================================ */
.legal {
  padding: clamp(28px, 5vw, 56px);
}

.legal h2 {
  margin: 1.6em 0 0.5em;
  font-size: clamp(22px, 2.4vw, 28px);
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--text-soft);
}

.legal-warning {
  margin-bottom: 28px;
  padding: 16px 20px;
  color: var(--text);
  font-size: 15px;
  border: 1.5px dashed rgba(102, 92, 87, 0.45);
  border-radius: 18px;
  background: rgba(216, 201, 184, 0.25);
}

/* ============================================================
   Tablet & Handy
   ============================================================ */
@media (max-width: 960px) {
  .hero-home__grid,
  .split-card,
  .intro-me,
  .about {
    grid-template-columns: 1fr;
  }

  /* Auf dem Handy zuerst das Bild, dann der Text */
  .hero-home__visual {
    order: -1;
  }

  /* Hochformatiger Zuschnitt, Gesicht bleibt sichtbar (Fokus im HTML) */
  .hero-home__visual .photo {
    aspect-ratio: 4 / 5;
    max-height: 70vh;
    margin-inline: auto;
  }

  .photo-caption {
    left: 12px;
    bottom: 16px;
  }

  .intro-me .photo {
    margin-inline: auto;
  }

  .about__aside {
    position: static;
    max-width: 440px;
    margin-inline: auto;
  }

  .steps,
  .info-grid,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .products {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .steps,
  .info-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .product {
    grid-template-columns: 1fr;
  }

  .product__body {
    padding: 4px 8px 8px;
  }

  .hero-home .btn-row .btn,
  .cta-card .btn-row .btn {
    width: 100%;
  }

}

/* Beim Wechsel zwischen den Seiten (.no-intro, siehe js/config.js):
   keine eigenen Einblend-Animationen – der Seitenübergang übernimmt das */
.no-intro .hero-home__text > *,
.no-intro .hero-home__visual .photo,
.no-intro .photo-caption,
.no-intro .about__aside .photo {
  animation: none;
}
