/* kokosesthetic.de – zusätzliche Bildbereiche der Startseite (Behandlungs-Galerie & Studio-Einblicke) */

/* ---------- Behandlungen als Bildraster ---------- */
.treatments .tg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 28px;
  margin-top: 72px;
}
.tg__item { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; }
.tg__img { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.tg__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.tg__item:hover .tg__img img, .tg__item:focus-visible .tg__img img { transform: scale(1.04); }
.tg__label { margin-top: 22px; font-size: 16px; line-height: 24px; letter-spacing: 2px; text-transform: uppercase; color: var(--text); }
.tg__more {
  margin-top: 8px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.tg__item:hover .tg__more { border-bottom-color: var(--accent); }

/* ---------- Studio-Einblicke ---------- */
.studio-gallery { max-width: var(--wide); margin: 0 auto; padding: 124px var(--gutter) 40px; text-align: center; }
.studio-gallery .headline { line-height: 36.8px; }
.sg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 14px;
  margin-top: 72px;
}
.sg__item { overflow: hidden; background: var(--soft); }
.sg__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.sg__item:hover img { transform: scale(1.04); }
.sg__big { grid-column: span 2; grid-row: span 2; }
.sg__wide { grid-column: span 2; }
.sg__item--ecke img { object-position: 60% 62%; }
.sg__item--kundin img { object-position: 50% 38%; }
.sg__cta { margin: 48px 0 0; }
.sg__cta a {
  display: inline-block; padding: 14px 40px; border: 1px solid var(--text); text-decoration: none;
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase; transition: background .25s, color .25s;
}
.sg__cta a:hover { background: var(--text); color: #fff; }

@media (max-width: 1020px) {
  .treatments { padding-top: 60px; padding-bottom: 80px; }
  .treatments .tg { grid-template-columns: repeat(2, 1fr); gap: 36px 18px; margin-top: 0; }
  .studio-gallery { padding-top: 60px; }
  .sg { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; margin-top: 40px; gap: 10px; }
  .sg__wide { grid-column: span 1; }
}
@media (max-width: 599px) {
  .tg__label { font-size: 13px; letter-spacing: 1.5px; margin-top: 14px; }
  .tg__more { font-size: 11px; }
  .sg { grid-auto-rows: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .tg__img img, .sg__item img { transition: none; }
}

/* ---------- Studio-Seite: Räume im versetzten Raster ("Tetris") ----------
   Desktop: 6 Spalten, Kacheln greifen ineinander; Tablet/Handy: 2 Spalten, ebenfalls versetzt.
   Bildkacheln tragen die Behandlungen als Überschrift, Textkacheln stehen für Räume ohne Foto. */
.rooms { max-width: var(--wide); margin: 0 auto; padding: 70px var(--gutter) 110px; text-align: center; }
.rooms__grid {
  list-style: none; margin: 64px 0 0; padding: 0; text-align: left;
  display: grid; gap: 14px;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(18, minmax(120px, auto));
  grid-template-areas:
    "a a a a c c"
    "a a a a c c"
    "a a a a c c"
    "a a a a c c"
    "b b k k c c"
    "b b k k c c"
    "b b m m m m"
    "b b m m m m"
    "e e m m m m"
    "e e m m m m"
    "e e g g g g"
    "e e g g g g"
    "d d g g g g"
    "d d g g g g"
    "d d w w w w"
    "d d w w w w"
    "d d w w w w"
    "d d w w w w";
}
.room--a { grid-area: a; } .room--b { grid-area: b; } .room--c { grid-area: c; }
.room--d { grid-area: d; } .room--e { grid-area: e; } .room--m { grid-area: m; } .room--g { grid-area: g; }
.room--k { grid-area: k; } .room--w { grid-area: w; }
.room { position: relative; overflow: hidden; background: var(--soft); min-height: 0; }
.room figure { position: absolute; inset: 0; margin: 0; }
.room img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.room:hover img { transform: scale(1.04); }
.room--a img { object-position: 50% 40%; }
.room--b img { object-position: 45% 40%; }
.room--c img { object-position: 65% 50%; }
.room--e img { object-position: 60% 50%; }
.room figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 18px;
  background: linear-gradient(to top, rgba(20,18,16,.72), rgba(20,18,16,.35) 60%, rgba(20,18,16,0));
  color: #fff;
}
.room__title { margin: 0; font-size: clamp(18px, 1vw + 10px, 24px); line-height: 1.2; letter-spacing: .01em; }
.room__sub { margin: 6px 0 0; font-size: 11px; line-height: 1.6; letter-spacing: 1.6px; text-transform: uppercase; }
.room figcaption .room__title, .room figcaption .room__sub { color: #fff; }
.room--text { display: flex; }
.room__card {
  display: flex; flex-direction: column; justify-content: center; width: 100%;
  padding: 24px 26px; border: 1px solid var(--ui-border, #b9ac98);
}
.room__card .room__title { color: var(--text); }
.room__card .room__sub { color: var(--accent); }

@media (max-width: 1020px) {
  .rooms { padding-top: 36px; padding-bottom: 80px; }
  .rooms__grid {
    margin-top: 40px; gap: 10px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(13, minmax(170px, auto));
    grid-template-areas:
      "a a"
      "a a"
      "c b"
      "c b"
      "c k"
      "m m"
      "m m"
      "e d"
      "e d"
      "g g"
      "g g"
      "w w"
      "w w";
  }
}
@media (max-width: 599px) {
  .rooms__grid { grid-template-rows: repeat(13, minmax(125px, auto)); }
  .room figcaption { padding: 40px 12px 11px; }
  .room__title { font-size: 16px; }
  .room__sub { font-size: 9.5px; letter-spacing: 1px; }
  .room__card { padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .room img { transition: none; }
}

/* ---------- Behandlungsseiten: "Einblicke in die Behandlung" (echte Studiofotos) ----------
   1 großes + 2 kleine Querformate, versetzt; --flip spiegelt die Anordnung. */
.insights { max-width: var(--wide); margin: 0 auto; padding: 40px var(--gutter) 90px; text-align: center; }
.insights__grid {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, minmax(120px, auto));
  grid-template-areas:
    "p p p p q q"
    "p p p p q q"
    "p p p p r r"
    "p p p p r r";
}
.insights__grid--flip {
  grid-template-areas:
    "q q p p p p"
    "q q p p p p"
    "r r p p p p"
    "r r p p p p";
}
.insight { position: relative; overflow: hidden; background: var(--soft); min-height: 0; }
.insight--p { grid-area: p; } .insight--q { grid-area: q; } .insight--r { grid-area: r; }
.insight img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.insight:hover img { transform: scale(1.04); }
@media (max-width: 1020px) {
  .insights { padding: 20px var(--gutter) 60px; }
  .insights__grid, .insights__grid--flip {
    margin-top: 32px; gap: 10px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, minmax(140px, auto));
    grid-template-areas: "p p" "p p" "q r";
  }
}
@media (max-width: 599px) {
  .insights__grid, .insights__grid--flip { grid-template-rows: repeat(3, minmax(100px, auto)); }
}
@media (prefers-reduced-motion: reduce) {
  .insight img { transition: none; }
}
