/* Number-Spinner ausblenden */

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Optional: aktive Buttons hervorheben */
.btn-active {
  @apply btn-primary text-primary-content;
}

@media (max-width: 480px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

/* Live Header (Mobile) */
.live-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  background-color: #2563eb;
  color: white;

  border-bottom: 1px solid rgba(0,0,0,0.15);
  z-index: 9999;
  padding: 10px 16px;
}




/* iOS Safe Area */
@supports (padding-top: env(safe-area-inset-top)) {
  .live-header {
    padding-top: calc(10px + env(safe-area-inset-top));
  }
}

.live-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-header .label {
  font-size: 12px;
  opacity: 0.6;
}

.live-header .value {
  font-size: 18px;
  font-weight: 700;
  color: hsl(var(--pc));
}

/* Nur auf Mobile anzeigen */
@media (max-width: 768px) {
  .live-header {
    display: block;
  }
  .hero-section {
    margin-top: 56px; /* Höhe des Live-Headers */
  }
}

@media (max-width: 639px) {
  #calculator .sm\:bg-neutral-50,
  section.max-w-6xl > .sm\:bg-neutral-50 {
    padding: 0; /* explizit, damit nichts „durchrutscht“ */
  }

  /* Optional: etwas Luft innerhalb der Sektionen statt Card-Look */
  #calculator,
  section.max-w-6xl {
    padding-left: 16px;
    padding-right: 16px;
  }

  #calculator {
    scroll-margin-top: 80px;
  }
}

/* Live Header nur auf Mobile anzeigen */
@media (min-width: 640px) {
  #live-header {
    display: none !important;
  }
}
