/*
Theme Name: pixelopment Theme
Theme URI: https://pixelopment.de
Template: hello-elementor
Author: pixelopment
Author URI: https://pixelopment.de
Version: 3.1.1.1724413899
Updated: 2024-08-23 13:51:39
*/

/* Container */
.search-container {
    position: relative;
    margin-bottom: 2rem;
}

/* Such-Icon links */
.search-container .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

/* Eingabefeld */
.search-container input[type="text"] {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 3rem; /* Platz für Icons */
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-size: 1rem;
}

/* Fokus-Effekt */
.search-container input[type="text"]:focus {
    border-color: #2563eb; /* blau ähnlich wie Tailwind primary */
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
    outline: none;
}

/* Button rechts */
.search-container button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    color: #888 !important;
    cursor: pointer;
    transition: color 0.15s ease;
}

/* Hover-Effekt für Button */
.search-container button:hover {
    color: #111;
}

/* Basis-Styling */
.faq-box {
  background-color: #f9fafb;
  color: #111827;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Hover-Effekt */
.faq-box:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Summary-Layout */
.faq-box summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

/* Entfernt das Standard-Dreieck von <summary> */
.faq-box summary::-webkit-details-marker {
  display: none;
}

/* Titel */
.faq-box h3 {
  font-size: 1.25rem!important; 
  font-weight: 600;
  margin: 0;
}

/* Icon rechts */
.faq-box .icon {
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888; /* primary */
}

/* Dreht das Icon beim Öffnen */
.faq-box[open] .icon {
  transform: rotate(180deg);
}

/* Absatz im Inneren */
.faq-box p {
  margin-top: 1rem;
  color: #4b5563;
  line-height: 1.5;
  transition: opacity 0.3s ease;
}

/* Sanfter Fade-In des Inhalts beim Öffnen */
.faq-box[open] p {
  animation: fadeIn 0.3s ease;
}

/* Dunkelmodus-Unterstützung */
@media (prefers-color-scheme: dark) {
  .faq-box {
    background-color: #1f2937;
    color: #f9fafb;
    border: 1px solid #374151;
  }

  .faq-box p {
    color: #9ca3af;
  }

  .faq-box .icon {
    color: #60a5fa;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
