/* 
 * yunion Festival Page CSS
 * Lightweight, variables-based, mobile-first 
 */

:root {
  --yyf-petrol: #06343C;
  --yyf-petrol-dark: #06191D;
  --yyf-creme: #F1FBFB;
  --yyf-creme-warm: #FFF9E6;
  --yyf-accent: #FFC72C; /* Kauf-Impuls-Farbe */
  --yyf-teal: #0A8F9F;
  --yyf-white: #FFFFFF;
  --yyf-text: #10201F;
  --yyf-text-light: #5A8088;
  
  --yyf-font-sans: 'Nunito Sans', sans-serif;
  --yyf-font-serif: 'Roboto Serif', serif;
  
  --yyf-space-section-mob: 72px;
  --yyf-space-section-desk: 120px;
  --yyf-container-width: 1200px;
  --yyf-text-measure: 720px; /* max 65 chars */
}

/* Base resets & typography */
.yyf-wrapper {
  font-family: var(--yyf-font-sans);
  color: var(--yyf-text);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
}

/* Ensure Divi flex section, row, and column stretch to 100% full width */
.et_flex_section:has(.yyf-wrapper) {
  align-items: stretch !important;
}

.et_pb_column:has(.yyf-wrapper),
.et_flex_column:has(.yyf-wrapper) {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.yyf-wrapper h1, .yyf-wrapper h2, .yyf-wrapper h3, .yyf-wrapper h4 {
  font-family: var(--yyf-font-serif);
  color: var(--yyf-petrol);
  line-height: 1.2;
  margin-top: 0;
}

.yyf-wrapper h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; }
.yyf-wrapper h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
.yyf-wrapper h3 { font-size: clamp(24px, 4vw, 32px); font-weight: 700; }

/* wp_get_attachment_image() setzt width/height-Attribute; ohne height:auto würden Bilder verzerrt */
.yyf-wrapper img {
  height: auto;
}

.yyf-wrapper p {
  max-width: var(--yyf-text-measure);
  margin-bottom: 24px;
}

/* Layout Utilities */
.yyf-section {
  padding: var(--yyf-space-section-mob) 20px;
}
@media (min-width: 768px) {
  .yyf-section {
    padding: var(--yyf-space-section-desk) 40px;
  }
}

.yyf-container {
  max-width: var(--yyf-container-width);
  margin: 0 auto;
}

/* Backgrounds */
.yyf-bg-dark {
  background-color: var(--yyf-petrol);
  color: var(--yyf-white);
}
.yyf-bg-dark h1, .yyf-bg-dark h2, .yyf-bg-dark h3, .yyf-bg-dark p {
  color: var(--yyf-white);
}

.yyf-bg-creme {
  background-color: var(--yyf-creme);
}

.yyf-bg-image {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--yyf-white);
}
.yyf-bg-image::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(6, 25, 29, 0.4);
  z-index: 1;
}
.yyf-bg-image > * {
  position: relative;
  z-index: 2;
}

/* Buttons */
.yyf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--yyf-petrol);
  color: var(--yyf-white);
  padding: 16px 32px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.yyf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.yyf-btn-primary {
  background-color: var(--yyf-accent);
  color: var(--yyf-petrol-dark);
}
.yyf-btn-primary:hover {
  box-shadow: 0 4px 16px rgba(255, 199, 44, 0.4);
}

/* Hero Section */
.yyf-hero {
  height: 85vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 0 20px;
}
.yyf-hero-video {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.yyf-pill {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Grids & Blurbs */
.yyf-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .yyf-grid-2 { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}

.yyf-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .yyf-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.yyf-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .yyf-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* Zickzack Blurbs */
.yyf-blurb {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: var(--yyf-space-section-mob);
}
@media (min-width: 768px) {
  .yyf-blurb {
    flex-direction: row;
    align-items: center;
    gap: 64px;
    margin-bottom: var(--yyf-space-section-desk);
  }
  .yyf-blurb:nth-child(even) {
    flex-direction: row-reverse;
  }
}
.yyf-blurb-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
}

/* Mosaik */
.yyf-mosaik {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.yyf-mosaik img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.yyf-mosaik-col2 {
  display: grid;
  gap: 16px;
  transform: translateY(24px);
}

/* Pricing Table */
.yyf-pricing-table {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .yyf-pricing-table {
    flex-direction: row;
    justify-content: center;
  }
}
.yyf-price-card {
  background: var(--yyf-white);
  border: 1.5px solid #C3E5E5;
  border-radius: 16px;
  padding: 32px;
  flex: 1;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.yyf-price-card.active {
  border-color: var(--yyf-accent);
  box-shadow: 0 8px 30px rgba(249, 175, 50, 0.2);
  transform: scale(1.02);
}

/* FaF Block */
.yyf-faf-block {
  background: var(--yyf-creme-warm);
  border: 1.5px solid var(--yyf-accent);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}

/* FAQ Accordion */
.yyf-faq-item {
  border-bottom: 1px solid #C3E5E5;
  padding: 24px 0;
}
.yyf-faq-title {
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  color: var(--yyf-petrol);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
}
.yyf-faq-title:focus-visible {
  outline: 2px solid var(--yyf-teal);
  outline-offset: 4px;
}
.yyf-faq-content {
  display: none;
  padding-top: 16px;
  color: var(--yyf-text);
}
.yyf-faq-content.open {
  display: block;
}
