/* sections.css — editorial overview, highlights, interlude, placeholders */

/* ===== Overview ===== */
/* tighter than the global section rhythm — the first block should sit close to the hero */
.section-overview {
  background: transparent;
  padding-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.overview-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.overview-statement {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 300;
  line-height: 1.14;
  color: var(--ink);
  letter-spacing: -0.015em;
  max-width: 16ch;
  margin-bottom: 1.6rem;
}
.overview-statement .accent { color: var(--terracotta); font-style: italic; }
.overview-lead .eyebrow { margin-bottom: 1.3rem; }
.overview-body {
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.6;
  max-width: 46ch;
  font-weight: 300;
}
.overview-rule {
  width: 54px; height: 2px;
  background: var(--terracotta);
  margin-top: 2rem;
}

/* Feature list — hairline-separated, no heavy cards */
.feature-list { list-style: none; }
.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.feature-item:last-child { border-bottom: 1px solid var(--line); }

.feature-index {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--terracotta);
  letter-spacing: 0.05em;
  padding-top: 0.15rem;
}
.feature-item h3 {
  font-size: var(--fs-h3);
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.feature-item p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 40ch;
}

/* ===== Interlude (scrollytelling parallax band) ===== */
.section-interlude {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 var(--gutter);
  color: var(--white);
}
.interlude-media {
  position: absolute;
  inset: -16% 0 -16% 0;
  z-index: 0;
  will-change: transform;
}
.interlude-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.section-interlude::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(30,26,22,0.42), rgba(30,26,22,0.24), rgba(30,26,22,0.48));
}
.interlude-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}
.interlude-quote {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.interlude-quote .accent { font-style: italic; color: var(--terracotta-light); }
.interlude-tag {
  margin-top: 1.8rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ===== Highlights ===== */
.section-highlights { background: transparent; }

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.highlight-card {
  background: transparent;
  padding-top: 1.6rem;
  border-top: 2px solid var(--terracotta);
}
.highlight-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 1.2rem;
  color: var(--olive-dark);
}
.highlight-card ul { list-style: none; }
.highlight-card li {
  padding: 0.7rem 0;
  font-size: 0.94rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.highlight-card li:last-child { border-bottom: none; }

/* Shared parallax figure */
.parallax-figure { overflow: hidden; border-radius: var(--radius-lg); }
.parallax-figure img { width: 100%; display: block; }
.parallax-figure[data-parallax] { will-change: transform; }

/* ===== Subpage header (Kunst / Werkstatt standalone pages) ===== */
.page-hero {
  text-align: center;
  padding: calc(66px + clamp(3.5rem, 12vh, 8rem)) var(--gutter) clamp(2rem, 6vh, 4rem);
  max-width: 60ch;
  margin: 0 auto;
}
.page-hero .eyebrow { margin-bottom: 1.2rem; }
.page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.page-hero p {
  margin-top: 1.4rem;
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.6;
}
.page-hero .page-rule {
  width: 54px; height: 2px;
  background: var(--terracotta);
  margin: 1.8rem auto 0;
}
.page-back {
  display: inline-block;
  margin-top: clamp(3rem, 8vh, 5rem);
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-back:hover { color: var(--terracotta); }
.subpage-foot { text-align: center; padding-bottom: clamp(3rem, 8vh, 5rem); }

/* ===== Kunst ===== */
/* Der Abschnitt sitzt direkt unter dem Seitentitel. Der Leerraum dazwischen kam
   aus ZWEI Polsterungen: der des Abschnitts oben und der des Titelblocks unten —
   zusammen rund 210px. Beide zusammen ergeben jetzt gut 35px. */
.section-kunst { background: transparent; overflow: hidden; padding-top: 0; }
/* nur auf der Kunst-Seite, damit die Werkstatt-Seite ihren Titelabstand behaelt */
body:has(.section-kunst) .page-hero { padding-bottom: clamp(1.2rem, 3vh, 2.2rem); }
/* "Die Kuenstlerin" klebte an der Unterkante der Maske — der Abschnitt darunter
   steht in einem eigenen .section-inner und hatte gar keinen eigenen Abstand. */
.section-kunst .sub-galleries { margin-top: clamp(2.5rem, 7vw, 5rem); }
/* Titel über beiden Feldern, mittig — nicht mehr in der rechten Spalte */
.kunst-lead {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  color: var(--muted);
  line-height: 1.3;
  max-width: 30ch;
  margin: 0 auto clamp(1.8rem, 4vw, 3rem);
  text-align: center;
}

.kunst-layout {
  display: grid;
  /* gleich breite Spalten: Maske und Sphäre sollen dieselbe Größe haben */
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.kunst-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  /* quadratisch wie die Sphäre; das Gesicht sitzt mittig, der Beschnitt fällt nicht auf */
  aspect-ratio: 1 / 1;
}
.kunst-media img { width: 100%; height: 100%; object-fit: cover; }

/* Partikel-Sphäre rechts neben der Maske, unter dem Titel.
   Dunkles Feld: die Partikel werden additiv gemischt, auf dem hellen Pergament
   würden sie zu Weiss ausbrennen. Auf Dunkel glühen sie. */
.kunst-sphere {
  position: relative;
  /* füllt die Spalte wie die Maske — nie eine feste Höhe setzen: aspect-ratio
     plus max-height liesse das Quadrat in die Breite laufen */
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 42%, #302b26 0%, #1b1917 72%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  cursor: grab;
}
.kunst-sphere:active { cursor: grabbing; }
/* bis three geladen ist bleibt das Feld ruhig; scheitert es, fällt es ganz weg */
.kunst-sphere.is-failed { display: none; }

/* ===== Werkstatt ===== */
.section-werkstatt { background: transparent; overflow: hidden; }
.werkstatt-intro { max-width: 40ch; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.werkstatt-intro .section-title { margin-bottom: 1rem; }
.werkstatt-lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.5; }

.werkstatt-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: start;
}
.wk-1 { grid-column: 1 / 4; }
.wk-2 { grid-column: 4 / 7; margin-top: clamp(3rem, 12vh, 8rem); }
.wk-3 { grid-column: 2 / 6; margin-top: clamp(1.5rem, 5vw, 3.5rem); }
.wk-img { box-shadow: var(--shadow-md); }
.wk-img img { aspect-ratio: 4 / 3; object-fit: cover; }

@media (max-width: 860px) {
  .overview-layout { grid-template-columns: 1fr; }
  .overview-statement { max-width: 28ch; }
  .highlights-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .kunst-layout { grid-template-columns: 1fr; }
  /* gestapelt bleiben beide quadratisch — sonst wären sie untereinander
     wieder unterschiedlich gross */
  .werkstatt-gallery { grid-template-columns: 1fr 1fr; }
  .wk-1 { grid-column: 1 / 3; }
  .wk-2 { grid-column: 1 / 2; margin-top: 1rem; }
  .wk-3 { grid-column: 2 / 3; margin-top: 1rem; }
}
@media (max-width: 560px) {
  .werkstatt-gallery { grid-template-columns: 1fr; }
  .wk-1, .wk-2, .wk-3 { grid-column: 1 / 2; margin-top: 0; }
}
