/* ===========================
   Pascal Wohlfarth Fotografie
   Benutzerdefiniertes CSS
   =========================== */

/* === Allgemeine Basis-Styles === */
body {
  scroll-behavior: smooth;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #111;
}

/* === Dark Mode (Tailwind-kompatibel) === */
html.dark body {
  background-color: #1f2937;
  color: #fff;
}

/* === Scroll-Margin für Anker === */
section {
  scroll-margin-top: 80px;
}

/* === Scroll-Reveal: Startzustand === */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* === Sichtbar nach Scroll === */
.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Leistungen-Sektion Grid === */
.leistungen-section {
  background-color: #f9f9f9;
  padding: 5rem 1rem;
}

.card-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === Ladeanimation === */
#loader {
  animation: fadeOut 0.5s ease-out forwards;
  animation-delay: 1.2s;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* === Navigation aktiv === */
.nav-link.active {
  text-decoration: underline;
  font-weight: 600;
}

/* === Lightbox Modal === */
#lightbox-modal {
  backdrop-filter: blur(4px);
}

/* === Mobile Menü Linkgröße === */
@media (max-width: 768px) {
  #mobile-menu a {
    font-size: 1.25rem;
  }
}

/* === Karten-Komponente === */
.card {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 1rem;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(40px);
  opacity: 0;
}

/* === Sichtbar mit Animation === */
.card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Hover-Effekt === */
.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
}

/* === Inhalt der Karte === */
.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #111;
}

.card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.card-button {
  align-self: flex-start;
  padding: 0.75rem 1.25rem;
  background-color: #000;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.card-button:hover {
  background-color: #333;
}

/* === Kontaktformular === */
.contact-form {
  max-width: 700px;
  margin: 4rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  font-family: 'Helvetica Neue', sans-serif;
  transition: background-color 0.3s ease;
}

html.dark .contact-form {
  background-color: #1f2937;
  color: #fff;
}

.contact-form h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

html.dark .contact-form label {
  color: #ddd;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

html.dark .contact-form input,
html.dark .contact-form select,
html.dark .contact-form textarea {
  background-color: #2d3748;
  border-color: #444;
  color: #f5f5f5;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #666;
  background-color: #ffffff;
  outline: none;
}

html.dark .contact-form input:focus,
html.dark .contact-form select:focus,
html.dark .contact-form textarea:focus {
  background-color: #1a202c;
  border-color: #888;
}

/* === Checkbox-Stil === */
.contact-form .checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-form .checkbox input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
}

.contact-form .checkbox label {
  font-size: 0.95rem;
  color: #444;
}

html.dark .contact-form .checkbox label {
  color: #ccc;
}

/* === Submit Button === */
.contact-form button[type="submit"] {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: #000000;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
  background-color: #333333;
}

/* === Leaflet-Karte === */
#map {
  height: 600px;
  width: 100%;
  filter: grayscale(100%);
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
