/* Theme-gm-Pattern-CSS (Plugin-portabel) — nur Theme-Prefix-Klassen */

/*
Theme Name:   gregormarstaller — Kadence Child
Theme URI:    https://gregormarstaller.de
Description:  Custom Child Theme für gregormarstaller.de — Lagerfeuer-Bühne · Liquid Glass · Theater-DNA. Schauspieler · Theaterpädagoge · Sprecher. Bindet sich ans Marstaller-Universum durch gemeinsame Designtokens (EB Garamond, Jost, Gold-Akzent #C9A84C).
Author:       Gregor Marstaller
Author URI:   https://gregormarstaller.de
Template:     kadence
Version:      0.5.0
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  gregormarstaller
Update URI:   gregormarstaller.de
*/

/* ════════════════════════════════════════════════════════════════
   1. Design-Tokens
   ════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════
   2. Body & Typografie
   ════════════════════════════════════════════════════════════════ */

h1, h2, .gm-italic { font-style: italic !important; }

.gm-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gm-gold-deep);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

/* ════════════════════════════════════════════════════════════════
   3. Header transparent über Hero
   ════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════
   4. Hero · Crossfade mit Linsen-Fokus-Pull
   ════════════════════════════════════════════════════════════════ */

.gm-hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.gm-hero__images { position: absolute; inset: 0; }

.gm-hero__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: opacity, filter, transform;
  transition: opacity 1.5s ease-in-out;
}

.gm-hero__img.is-active {
  opacity: 1;
  animation: gk-focus-pull 7s ease-out forwards;
}

.gm-hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.32) 100%);
  pointer-events: none;
}

.gm-hero__card {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, calc(100% - 3rem));
  padding: 2.75rem 3rem;
  background: var(--gm-glass-bg);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--gm-glass-bord);
  border-radius: 8px;
  box-shadow: var(--gm-glass-shadow), inset 0 1px 0 rgba(245, 240, 216, 0.15);
  text-align: center;
  animation: gk-card-enter 1.2s 0.6s ease-out backwards;
}

.gm-hero__title {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  letter-spacing: -0.5px;
  color: var(--gm-ink);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.gm-hero__tagline {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--gm-ink-soft);
  max-width: 480px;
  margin: 0 auto;
}

.gm-hero__credit {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(245, 240, 216, 0.15);
  font-weight: 500;
  transition: opacity 0.6s;
}

/* ════════════════════════════════════════════════════════════════
   4b. Brand-Mark — Logo-Stil für Hero und Pattern-Vorschau
   ════════════════════════════════════════════════════════════════ */

.gm-brand-mark {
  text-align: center;
  margin-bottom: 1.5rem;
  display: block;
}

.gm-brand-name {
  display: inline-block;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--gm-cream);
  line-height: 1;
  letter-spacing: -0.5px;
}

.gm-brand-dot {
  color: var(--gm-gold);
}

.gm-brand-sub {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gm-gold-deep);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ════════════════════════════════════════════════════════════════
   5. Glass-Helper
   ════════════════════════════════════════════════════════════════ */

.gm-glass {
  background: var(--gm-glass-bg-2);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--gm-glass-bord);
  border-radius: 8px;
  box-shadow: var(--gm-glass-shadow), inset 0 1px 0 rgba(245, 240, 216, 0.20);
}

/* ════════════════════════════════════════════════════════════════
   6. Intro · Glass-Karte überlappt Bild
   ════════════════════════════════════════════════════════════════ */

.gm-intro {
  padding: 8rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.gm-intro::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  top: 4rem; left: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gm-gold-soft), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.gm-intro__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 580px;
}

.gm-intro__image {
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
}

.gm-intro__card {
  position: relative;
  margin-left: -100px;
  margin-top: 80px;
  margin-bottom: 80px;
  padding: 3.5rem;
  background: var(--gm-glass-bg-2);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--gm-glass-bord);
  border-radius: 8px;
  box-shadow: var(--gm-glass-shadow), inset 0 1px 0 rgba(245, 240, 216, 0.20);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gm-intro__card h2 {
  font-style: italic;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 1.5rem;
  color: var(--gm-ink);
}

.gm-intro__card p {
  font-size: 1rem;
  color: var(--gm-ink-soft);
  margin-bottom: 1.1rem;
  line-height: 1.75;
}

.gm-intro__card p em {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gm-clay);
  font-weight: 500;
}

.gm-signature {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gm-ink);
  margin-top: 1.5rem;
}

/* ════════════════════════════════════════════════════════════════
   7. Bokeh-Akzent-Helper
   ════════════════════════════════════════════════════════════════ */

.gm-bokeh-section {
  position: relative;
  overflow: hidden;
}

.gm-bokeh-section::before,
.gm-bokeh-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.gm-bokeh-section::before {
  width: 400px; height: 400px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, var(--gm-gold-soft), transparent 65%);
}

.gm-bokeh-section::after {
  width: 300px; height: 300px;
  bottom: 60px; left: -80px;
  background: radial-gradient(circle, var(--gm-clay-soft), transparent 70%);
}

.gm-bokeh-section > * { position: relative; z-index: 1; }

/* ════════════════════════════════════════════════════════════════
   8. Galerie · Selektive Tiefenschärfe
   ════════════════════════════════════════════════════════════════ */

.gm-gallery-wrap {
  padding: 7rem 2.5rem;
  background: var(--gm-cream-deep);
  position: relative;
  overflow: hidden;
}

.gm-gallery-header {
  max-width: 1100px;
  margin: 0 auto 4rem;
  text-align: center;
  position: relative;
}

.gm-gallery-header h2 {
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
}

.gm-gallery {
  max-width: 1500px;
  margin: 0 auto;
  column-count: 4;
  column-gap: 1rem;
  position: relative;
}

.gm-gallery figure {
  break-inside: avoid;
  margin: 0 0 1rem 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.4);
}

.gm-gallery figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.6s cubic-bezier(.2,.7,.2,1), transform 0.6s cubic-bezier(.2,.7,.2,1);
}

.gm-gallery figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1.5rem 1.2rem;
  color: var(--gm-cream);
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.gm-gallery:hover figure img {
  filter: blur(2.5px) brightness(0.92);
  transform: scale(0.985);
}

.gm-gallery figure:hover img {
  filter: none;
  transform: scale(1.02);
}

.gm-gallery figure:hover figcaption { opacity: 1; }

.gm-gallery figure:hover {
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.75);
}

.gm-gallery-cta {
  text-align: center;
  margin-top: 3.5rem;
}

@media (max-width: 1100px) { .gm-gallery { column-count: 3; } }

@media (max-width: 800px)  { .gm-gallery { column-count: 2; } .gm-intro__grid { grid-template-columns: 1fr; gap: 1.5rem; } .gm-intro__card { margin: 0; padding: 2.5rem; } }

@media (max-width: 500px)  { .gm-gallery { column-count: 1; } }

/* ════════════════════════════════════════════════════════════════
   9. Format-Prosa
   ════════════════════════════════════════════════════════════════ */

.gm-format {
  padding: 8rem 2.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.gm-format-header {
  text-align: center;
  margin-bottom: 4rem;
}

.gm-format-header h2 {
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
}

.gm-format-prose p {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--gm-ink-soft);
  position: relative;
  padding-left: 4rem;
  margin-bottom: 2.5rem;
}

.gm-format-prose .gm-step-num {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 2.6rem;
  color: var(--gm-gold);
  line-height: 1;
  position: absolute;
  left: 0;
  top: -0.15rem;
}

.gm-format-prose strong {
  color: var(--gm-ink);
  font-weight: 500;
}

.gm-format-table {
  margin-top: 3rem;
  background: var(--gm-glass-bg-2);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--gm-glass-bord);
  border-radius: 8px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(245, 240, 216, 0.15);
  overflow: hidden;
}

.gm-format-table dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  font-size: 0.95rem;
}

.gm-format-table dt {
  padding: 1rem 1.5rem;
  color: var(--gm-ink);
  font-weight: 500;
  border-bottom: 1px solid rgba(245, 240, 216, 0.12);
  background: rgba(245, 240, 216, 0.08);
}

.gm-format-table dd {
  padding: 1rem 1.5rem;
  color: var(--gm-ink-soft);
  border-bottom: 1px solid rgba(245, 240, 216, 0.12);
}

.gm-format-table dt:last-of-type, .gm-format-table dd:last-of-type {
  border-bottom: none;
}

.gm-format-table .gm-row-price dt,
.gm-format-table .gm-row-price dd {
  background: rgba(201, 168, 76, 0.08);
  font-size: 1.1rem;
}

.gm-format-table .gm-row-price dd {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--gm-gold-deep);
  font-weight: 500;
}

@media (max-width: 800px) {
  .gm-format-table dl { grid-template-columns: 1fr; }
  .gm-format-table dt { padding-bottom: 0.25rem; }
  .gm-format-table dd { padding-top: 0.25rem; padding-bottom: 1.25rem; }
}

/* ════════════════════════════════════════════════════════════════
   10. Schauspieler-Grid
   ════════════════════════════════════════════════════════════════ */

.gm-actors-wrap {
  padding: 7rem 2.5rem;
}

.gm-actors-header {
  max-width: 1100px;
  margin: 0 auto 3rem;
  text-align: center;
}

.gm-actors-header h2 {
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
}

.gm-actors-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.gm-actor-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}

.gm-actor-thumb {
  aspect-ratio: 1 / 1.2;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s ease;
}

.gm-actor-card:hover .gm-actor-thumb {
  transform: scale(1.03);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.7);
}

.gm-actor-card h4 {
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 1100px) { .gm-actors-grid { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 800px)  { .gm-actors-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 500px)  { .gm-actors-grid { grid-template-columns: repeat(2, 1fr); } }

/* ════════════════════════════════════════════════════════════════
   11. CTA · Photo-Background mit Glass-Card
   ════════════════════════════════════════════════════════════════ */

.gm-cta {
  position: relative;
  padding: 9rem 2.5rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.gm-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85));
}

.gm-cta__card {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 3.5rem 3rem;
  background: var(--gm-glass-bg);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--gm-glass-bord);
  border-radius: 8px;
  box-shadow: var(--gm-glass-shadow), inset 0 1px 0 rgba(245, 240, 216, 0.15);
  text-align: center;
}

.gm-cta__card h2 {
  font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--gm-ink);
  margin-bottom: 1rem;
}

.gm-cta__card p {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--gm-ink-soft);
  margin-bottom: 2.25rem;
}

/* ════════════════════════════════════════════════════════════════
   12. Buttons
   ════════════════════════════════════════════════════════════════ */

.wp-block-button.is-style-gm-pill .wp-block-button__link,
.gm-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gm-gold);
  color: var(--gm-ink);
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 60px;
  border: none;
  transition: all 0.4s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 8px 20px -8px rgba(201, 168, 76, 0.5);
}

.wp-block-button.is-style-gm-pill .wp-block-button__link:hover,
.gm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(201, 168, 76, 0.55);
}

.gm-btn--glass {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--gm-ink);
  border: 1px solid var(--gm-gold);
  box-shadow: none;
}

.gm-btn--glass:hover { background: var(--gm-gold); }

/* ════════════════════════════════════════════════════════════════
   13. Footer · Universum-Hinweis (vereinfacht)
   ════════════════════════════════════════════════════════════════ */

.gm-universum-link {
  text-align: center;
  padding: 1.5rem 0;
  margin: 0;
}

.gm-universum-link a {
  font-family: 'EB Garamond', serif !important;
  font-style: italic;
  font-size: 1rem;
  color: var(--gm-ink-mute) !important;
  text-decoration: none !important;
  letter-spacing: 0.5px;
  transition: color 0.4s, opacity 0.4s;
  opacity: 0.75;
}

.gm-universum-link a:hover {
  color: var(--gm-gold-deep) !important;
  opacity: 1;
}

.gm-universum-link a::before {
  content: '↗ ';
  font-style: normal;
  opacity: 0.6;
  margin-right: 0.25rem;
}

/* ════════════════════════════════════════════════════════════════
   14. Responsive Polish
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 800px) {
  .gm-hero__card { bottom: 3rem; padding: 2rem 1.5rem; }
  .gm-gallery-wrap, .gm-actors-wrap, .gm-cta { padding: 5rem 1.5rem; }
  .gm-intro { padding: 5rem 1.5rem; }
  .gm-format { padding: 5rem 1.5rem; }
  .gm-intro__image { aspect-ratio: 4/5; }
}

/* ════════════════════════════════════════════════════════════════
   SPIELEREI-HELPER — universell auf jeden Block anwendbar
   Im Editor: Block wählen → Sidebar → Erweitert → "Zusätzliche CSS-Klasse"
   Verfügbare Klassen:
   · spielerei-sparkle      — Diamantpainting-Schimmer (Theme-Farben)
   · spielerei-focus        — Linsen-Fokus-Pull beim Laden (Bilder)
   · spielerei-shimmer      — Glanz-Streifen wandert einmalig durch
   · spielerei-glow         — sanftes pulsierendes Aura
   · spielerei-fade-up      — Fade-In von unten beim Scrollen
   ════════════════════════════════════════════════════════════════ */

/* Reduzierte Bewegung: Animationen pausieren wenn der Nutzer reduce-motion will */