/* ====================
   KATALOGBUTTON
   ==================== */

.catalog-button .icon-hover { display: none; }
.catalog-button:hover .icon-default { display: none; }
.catalog-button:hover .icon-hover { display: inline; }

/* ====================
   ANIMATIONEN
   ==================== */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%   { box-shadow: 0 0 8px rgba(0, 123, 255, 0.3); }
  50%  { box-shadow: 0 0 14px rgba(0, 123, 255, 0.6); }
  100% { box-shadow: 0 0 8px rgba(0, 123, 255, 0.3); }
}
.catalog-button {
  animation: fadeIn 0.8s ease-out forwards, pulseGlow 2.5s ease-in-out infinite;
}

/* ====================
   FORMULARFELDER
   ==================== */

input, textarea {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f9f9f9;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  transition: border 0.2s ease, box-shadow 0.2s ease;
  font-size: 16px;
}
input:focus, textarea:focus {
  border-color: #007BFF;
  box-shadow: 0 0 4px rgba(0,123,255,0.4);
  outline: none;
}

.input-wrapper {
  position: relative;
  margin-bottom: 15px;
}
.input-wrapper .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}
.input-wrapper input,
.input-wrapper textarea {
  padding-left: 36px !important;
}

.input-wrapper {
  position: relative;
  margin-bottom: 15px;
  height: 48px;
}
.input-wrapper .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  color: #888;
  pointer-events: none;
}
.input-wrapper input,
.input-wrapper textarea {
  height: 100%;
  padding-left: 40px !important;
  box-sizing: border-box;
}

.form-checkbox-label:first-of-type {
  margin-top: 16px !important;
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ====================
   FORMULAR-BUTTON HOVER-EFFEKT
   ==================== */
button[type="submit"]:hover {
  background-color: #2e65c2;
  box-shadow: 0 0 8px rgba(39, 84, 161, 0.4);
  transition: all 0.3s ease;
}

/* ====================
   KATALOG-BUTTON TOUCH-FEEDBACK (nur mobil)
   ==================== */
@media (hover: none) {
  .catalog-button:active {
    transform: scale(1.03);
    transition: transform 0.15s ease;
  }
}

/* ====================
   FORMULARFELDER: BESSERE LESBARKEIT
   ==================== */
input, textarea {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
}


/* ====================
   SUCCESS-BUTTON MIT ICON
   ==================== */
.success-button::before {
  content: "✅ ";
  margin-right: 4px;
}

/* ====================
   ERFOLGSMELDUNG FADE-IN
   ==================== */
.success-message {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.success-message.show {
  opacity: 1;
}

/* ====================
   EINGABEFELDER: FOKUS-EFFEKT
   ==================== */
input:focus, textarea:focus {
  transform: scale(1.02);
}


/* ====================
   ABSENDEN-BUTTON KLICK-FEEDBACK
   ==================== */
button[type="submit"]:active {
  background-color: #1e4385;
  transform: scale(0.98);
}

/* ====================
   VISUELLE FEHLERKENNZEICHNUNG
   ==================== */
input:invalid, textarea:invalid {
  border-color: #dc3545;
  box-shadow: 0 0 4px rgba(220, 53, 69, 0.5);
}

/* ====================
   FORMULARTRENNUNG: DSGVO-BEREICH
   ==================== */
.input-wrapper.dsgvo {
  border-top: 1px solid #ccc;
  padding-top: 12px;
  margin-top: 16px;
}
