/* ═══════════════════════════════════════════
   REUSABLE COMPONENTS
   Custom-Klassen zum Zuweisen in Gutenberg/UAGB
   ═══════════════════════════════════════════ */

/* ═══════ BUTTONS (Custom-Klassen) ═══════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 38px; font-family: var(--font-display);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: all 0.4s var(--ease-out);
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-110%) skewX(-15deg);
  transition: transform 0.5s var(--ease-out);
}
.btn:hover::before { transform: translateX(110%) skewX(-15deg); }

.btn-primary {
  background: var(--primary); color: #fff;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-primary:hover {
  background: var(--primary-light); transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(147,47,42,0.4);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.25); color: #fff;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-ghost:hover {
  border-color: rgba(201,168,76,0.5); color: var(--gold-light); transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy); color: #fff;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid var(--primary); color: var(--primary);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ═══════ UAGB BUTTON STYLING ═══════ */
/* Style UAGB buttons to match gemstone design */
.wp-block-uagb-buttons-child .uagb-buttons-repeater {
  font-family: var(--font-display) !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out);
}

/* ═══════ SECTION UTILITIES ═══════ */
.section { padding: var(--section-pad) clamp(24px, 4vw, 60px); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: clamp(44px, 7vw, 80px); }

/* UAGB Advanced Heading als Section-Title stylen */
.wp-block-uagb-advanced-heading .uagb-heading-text {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: 0.04em;
}


/* ═══════ GEM SEPARATOR ═══════ */
.gem-sep {
  display: inline-block; margin: 0 14px; opacity: 0.4;
  width: 6px; height: 6px; background: var(--gold);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  vertical-align: middle;
}

/* ═══════ REVEAL ANIMATIONS ═══════ */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ═══════ NEWSLETTER SECTION ═══════ */
.newsletter-section { background: var(--navy); position: relative; overflow: hidden; }
.newsletter-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(147,47,42,0.15) 0%, transparent 60%);
}
.newsletter-inner { text-align: center; max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }
.newsletter-inner .section-title { color: #fff; }
.newsletter-inner .section-subtitle { color: rgba(255,255,255,0.5); }

.newsletter-gem { display: flex; justify-content: center; margin-bottom: 28px; }
.newsletter-gem img { width: 76px; height: 76px; opacity: 0.75; }

.newsletter-form { display: flex; gap: 0; margin-top: 36px; margin-bottom: 18px; }
.newsletter-form input[type="email"] {
  flex: 1; padding: 16px 24px;
  font-family: var(--font-body); font-size: 14px;
  border: 1px solid rgba(255,255,255,0.1); border-right: none;
  background: rgba(255,255,255,0.05); color: #fff; outline: none;
  transition: border-color 0.3s ease;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.newsletter-form input[type="email"]:focus { border-color: rgba(147,47,42,0.5); }
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form button {
  padding: 16px 30px; background: var(--primary); color: #fff;
  font-family: var(--font-display);
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--primary);
  transition: background 0.3s ease; white-space: nowrap; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}
.newsletter-form button:hover { background: var(--primary-light); }
.newsletter-privacy { font-size: 11.5px; color: rgba(255,255,255,0.3); line-height: 1.6; }
.newsletter-privacy a { text-decoration: underline; color: rgba(255,255,255,0.45); }

.newsletter-msg { margin-top: 16px; font-size: 13px; font-family: var(--font-body); }
.newsletter-msg.success { color: var(--gold-light); }
.newsletter-msg.error { color: #e57373; }
.newsletter-form button:disabled { opacity: 0.6; cursor: not-allowed; }

/* ═══════ PREIS-EINHEIT (UOM) ═══════ */
/* Das Drittanbieter-UOM-Plugin hängt die Einheit als <span class="uom">Paar</span>
   ohne Trenner an den Preis ("90,00 € Paar"). Wir stellen per CSS einen
   Schrägstrich voran → "90,00 € / Paar". Global geladen, damit Shop, Produkt,
   Startseite und Warenkorb konsistent bleiben. */
.uom::before { content: "/ "; }
