/* ════════════════════════════════════════════════════════════════
   Marstaller-Universum Patterns v2.0 — Core (theme-agnostisch)
   ────────────────────────────────────────────────────────────────
   Wichtig: KEINE festen Schriftarten + KEINE festen Farben.
   Patterns erben Schrift, Farben, Spacing automatisch vom aktiven Theme.
   Definiert sind nur: Layout, Verhältnisse, Animationen.
   ════════════════════════════════════════════════════════════════ */


/* ── EFFEKTE ─────────────────────────────────────────────────── */

/* Eff — Grayscale → Color (Hover) */
.is-style-mup-eff-grayscale img {
  filter: grayscale(100%);
  transition: filter 0.6s ease;
}
@media (hover: hover) {
  .is-style-mup-eff-grayscale:hover img,
  .is-style-mup-eff-grayscale img:hover {
    filter: grayscale(0%);
  }
}

/* Eff — Zoom (Hover) */
.is-style-mup-eff-zoom-hover {
  overflow: hidden;
}
.is-style-mup-eff-zoom-hover img {
  transition: transform 0.7s ease;
}
@media (hover: hover) {
  .is-style-mup-eff-zoom-hover:hover img {
    transform: scale(1.08);
  }
}

/* Eff — Scroll-Reveal */
.is-style-mup-eff-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}
.is-style-mup-eff-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ── LAYOUT (keine Farben — nur Struktur) ───────────────────── */

/* Layout — Glass-Karte (transparent, erbt Farben vom Theme) */
.is-style-mup-layout-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: clamp(2rem, 5vw, 3rem) !important;
}

/* Layout — Luxe-Karte (currentColor für Border) */
.is-style-mup-layout-luxe {
  border: 1px solid currentColor;
  border-image: linear-gradient(180deg, currentColor, transparent) 1;
  padding: 2rem !important;
  opacity: 0.95;
}

/* Layout — Cover Dim-Varianten (nur Opacity, keine Farbe) */
.is-style-mup-layout-dim-30 .wp-block-cover__background { opacity: 0.30 !important; }
.is-style-mup-layout-dim-50 .wp-block-cover__background { opacity: 0.50 !important; }
.is-style-mup-layout-dim-80 .wp-block-cover__background { opacity: 0.80 !important; }

/* Layout — Letterbox 2.39:1 */
.is-style-mup-layout-letterbox {
  aspect-ratio: 2.39 / 1 !important;
  min-height: 0 !important;
}


/* ── TYPOGRAFIE (Größe/Stil — KEINE feste font-family) ───── */

/* Typo — Display (groß + italic, Schriftart kommt vom Theme!) */
.is-style-mup-typo-display {
  font-style: italic !important;
  font-weight: 500 !important;
  font-size: clamp(2.8rem, 6vw, 5rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em;
}

/* Typo — Outline (Konturlinie, transparente Füllung) */
.is-style-mup-typo-outline {
  -webkit-text-stroke: 1.5px currentColor;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* Typo — Drop-Cap (Erster Buchstabe groß + italic, Schrift kommt vom Theme) */
.is-style-mup-typo-dropcap::first-letter {
  font-style: italic;
  font-size: 4em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.1em 0 0;
  color: currentColor;
}

/* Typo — Eyebrow (kleine Großbuchstaben über Headlines) */
.is-style-mup-typo-eyebrow {
  font-size: 0.7rem !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem !important;
  opacity: 0.85;
}

/* Typo — Pull-Quote (groß + italic, Schrift kommt vom Theme) */
.is-style-mup-typo-pullquote {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.is-style-mup-typo-pullquote p {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  line-height: 1.35;
  margin: 0 0 1rem !important;
}
.is-style-mup-typo-pullquote cite {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 600;
  opacity: 0.7;
}

/* Typo — Handschrift (Selbst-Schreib-Animation) */
.is-style-mup-typo-handwriting {
  /* KEINE feste Schrift — wenn das Theme eine Handschrift-Variante hat, kommt sie automatisch */
  font-weight: 500 !important;
  position: relative;
  display: inline-block;
  -webkit-mask-image: linear-gradient(to right, #000 50%, transparent 50%);
          mask-image: linear-gradient(to right, #000 50%, transparent 50%);
  -webkit-mask-size: 200% 100%;
          mask-size: 200% 100%;
  -webkit-mask-position: 100% 0;
          mask-position: 100% 0;
  animation: mup-handwriting 2.6s ease-out 0.3s forwards;
}
@keyframes mup-handwriting {
  to {
    -webkit-mask-position: 0 0;
            mask-position: 0 0;
  }
}
@media (max-width: 760px) {
  .is-style-mup-typo-handwriting { animation-duration: 1.8s; animation-delay: 0.1s; }
}
@media (prefers-reduced-motion: reduce) {
  .is-style-mup-typo-handwriting {
    animation: none;
    -webkit-mask-image: none;
            mask-image: none;
  }
}


/* ── BUTTONS (nur Form, Farben vom Theme) ─────────────────── */

/* Button — Pill (rund) */
.is-style-mup-btn-pill .wp-block-button__link {
  border-radius: 50px !important;
  padding: 0.9rem 2.4rem !important;
}

/* Button — Pfeil-Link */
.is-style-mup-btn-arrow .wp-block-button__link,
.is-style-mup-btn-arrow a {
  background: transparent !important;
  color: inherit !important;
  border: 0 !important;
  padding: 0.5rem 0 !important;
  border-radius: 0 !important;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
}
.is-style-mup-btn-arrow .wp-block-button__link::after,
.is-style-mup-btn-arrow a::after {
  content: ' →';
  margin-left: 0.6em;
  transition: margin-left 0.3s ease;
  display: inline-block;
}
@media (hover: hover) {
  .is-style-mup-btn-arrow .wp-block-button__link:hover::after,
  .is-style-mup-btn-arrow a:hover::after { margin-left: 1.2em; }
}

/* Button — Outline (transparent mit Border) */
.is-style-mup-btn-outline .wp-block-button__link {
  background: transparent !important;
  border: 1px solid currentColor !important;
  color: inherit !important;
}


/* ── LEGACY-ALIASE (für bestehende Patterns mit alten Klassen) ── */
.is-style-mup-eyebrow {
  font-size: 0.7rem !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem !important;
  opacity: 0.85;
}
.is-style-mup-display-italic {
  font-style: italic !important;
  font-weight: 500 !important;
  font-size: clamp(2.8rem, 6vw, 5rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em;
}
.is-style-mup-pullquote {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.is-style-mup-pullquote p {
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  line-height: 1.35;
  margin: 0 0 1rem !important;
}
.is-style-mup-pullquote cite {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 600;
  opacity: 0.7;
}
.is-style-mup-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: clamp(2rem, 5vw, 3rem) !important;
}
.is-style-mup-dropcap::first-letter {
  font-style: italic;
  font-size: 4em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.1em 0 0;
}
