/*
Theme Name:   Kadence Child
Theme URI:    https://deine-domain.tld
Description:  Child Theme für Kadence
Author:       Dein Name
Author URI:   https://deine-domain.tld
Template:     kadence
Version:      1.0.0
*/

/* ==========================================
   PREISFELD STYLING
   ========================================== */

/* Basis-Styling für Preisfeld (Desktop & Mobile) */
#calculation-3,
.Preis-Feld-ID,
#preis-widget-fixed {
  position: fixed !important;
  right: 1.5rem !important;
  bottom: 1.25rem !important;
  top: auto !important;
  z-index: 999999 !important;
  background: #fff !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0.625rem !important;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.12) !important;
  color: var(--global-palette1);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.9rem;
  display: inline-flex !important;
  align-items: center;
  box-sizing: border-box;
  pointer-events: auto;
  width: fit-content !important;
  max-width: max-content !important;
}

/* Vererbung für innere Elemente sicherstellen */
#calculation-3 *,
.Preis-Feld-ID *,
#preis-widget-fixed * {
  color: inherit;
  font: inherit;
}

/* Preiswert (Input-Feld) - Safari-Fix */
#calculation-3 input.forminator-calculation,
.Preis-Feld-ID input.forminator-calculation,
#preis-widget-fixed input.forminator-calculation {
  color: var(--global-palette1) !important;
  -webkit-text-fill-color: var(--global-palette1) !important;
  opacity: 1 !important;
}

/* Euro-Zeichen Abstand */
#calculation-3 .forminator-suffix,
.Preis-Feld-ID .forminator-suffix,
#preis-widget-fixed .forminator-suffix {
  margin-left: 0.3rem !important;
}

/* Fallback Widget Styling */
#preis-widget-fixed {
  font-weight: 700;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
  #calculation-3,
  .Preis-Feld-ID,
  #preis-widget-fixed {
    left: auto !important;
    right: 12px !important;
    bottom: 16px !important;
    width: auto !important;
    max-width: calc(100% - 24px) !important;
    display: flex !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }
}

/* ==========================================
   SONSTIGES
   ========================================== */

.logo-transparent img {
  opacity: 0.9;
}