/*
Theme Name: Zahnarztteam Golzheim 2026
Theme URI: https://zahnarztteam-golzheim.de
Description: Neues, schlankes Custom-Theme für Zahnarztteam Golzheim (Düsseldorf-Golzheim) – ohne externe Dienste, DSGVO-konform. Ersetzt das frühere Divi-Design.
Version: 2.0
Author: Zahnarztteam Golzheim
Author URI: https://zahnarztteam-golzheim.de
License: proprietary
Text Domain: zag-theme
*/

/* === Custom Styles (aus assets/css/styles.css) === */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Hero Background */
.hero-bg {
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.45) 60%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    url('assets/images/hero/zag-behandlung.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

/* Optimize hero for mobile */
@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll;
  }
}

/* Card Hover Effect */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Review Track Animation */
.review-track {
  animation: scrollReviews 30s linear infinite;
}

.review-track:hover {
  animation-play-state: paused;
}

@keyframes scrollReviews {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Lazy Loading Placeholder */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy.loaded {
  opacity: 1;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }

  header,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

/* Accessibility: Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #97d700;
  outline-offset: 2px;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* WebP Support Check */
.webp .hero-bg {
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.45) 60%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    url('assets/images/hero/zag-behandlung.webp');
}

/* Loading State */
.loading {
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #97d700;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Kontaktformular: Statusmeldung */
.form-note {
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
}
.form-note.ok {
  background: #e8f7b0;
  color: #4d6b00;
}
.form-note.err {
  background: #fee2e2;
  color: #b91c1c;
}

/* Honeypot-Feld (Spamschutz): für Menschen unsichtbar, für Bots sichtbar */
.zag-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
