/* Sichtbarkeitsverbesserungen für Mark Tietz Fotografie Website */

/* Allgemeine Textverbesserungen */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero Section Verbesserungen */
.hero-content h1,
.hero-content .hero-subtitle,
.hero-content .hero-description {
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 3px 6px rgba(0, 0, 0, 0.4);
}

/* Button Verbesserungen */
.btn-primary {
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 
    0 2px 4px rgba(65, 118, 252, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  box-shadow: 
    0 4px 8px rgba(65, 118, 252, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Portfolio Verbesserungen */
.portfolio-overlay h3,
.portfolio-overlay p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.portfolio-view-btn {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.portfolio-view-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  transform: scale(1.1);
}

/* Testimonials Verbesserungen */
.testimonial-card {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-image img {
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-rating {
  color: #FFD700;
  font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Service Cards Verbesserungen */
.service-card h3 {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-text-primary);
  font-weight: 500;
  opacity: 0.9;
}

/* About Section Verbesserungen */
.about-portrait {
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(65, 118, 252, 0.1);
  border: 4px solid white;
}

.feature-icon svg {
  filter: drop-shadow(0 2px 4px rgba(65, 118, 252, 0.2));
}

/* Newsletter Section Verbesserungen */
.newsletter-form input {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.newsletter-form input:focus {
  border-color: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Footer Verbesserungen */
.footer-brand p,
.footer-contact p,
.footer-links a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile Verbesserungen */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
    text-shadow: 
      0 1px 2px rgba(0, 0, 0, 0.9),
      0 2px 4px rgba(0, 0, 0, 0.7);
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 14px 20px;
    font-weight: 600;
  }
  
  .portfolio-grid {
    gap: 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
}

/* Hochkontrastmodus für bessere Accessibility */
@media (prefers-contrast: high) {
  .hero-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
  }
  
  .portfolio-overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.8) 70%,
      rgba(0, 0, 0, 0) 100%
    ) !important;
  }
  
  .btn-outline {
    border-width: 3px;
    font-weight: 700;
  }
}

/* Verbesserte Fokus-Zustände für Accessibility */
button:focus,
a:focus,
input:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Reduzierte Animation für Benutzer mit Bewegungsempfindlichkeit */
@media (prefers-reduced-motion: reduce) {
  .hero-image {
    animation: none;
    transform: scale(1.05);
  }
  
  .slide-up {
    animation: none;
  }
  
  * {
    transition-duration: 0.1s !important;
  }
} 

/* Image Loading Improvements */
.portfolio-item img {
    transition: all 0.3s ease;
    background: linear-gradient(90deg, 
        rgba(240, 240, 240, 0.8) 25%, 
        rgba(224, 224, 224, 0.8) 50%, 
        rgba(240, 240, 240, 0.8) 75%);
    background-size: 200% 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item img:not(.loaded) {
    animation: shimmer 1.5s infinite;
}

.portfolio-item img.loaded {
    background: none;
    animation: none;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Loading states for buttons */
.filter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Portfolio item transitions */
.portfolio-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.portfolio-item:hover {
    transform: translateY(-2px);
}

/* Lightbox improvements */
.lightbox-modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-image {
    transition: opacity 0.3s ease;
    max-height: 80vh;
    max-width: 80vw;
    object-fit: contain;
}

/* Hero image improvements */
.hero-image {
    transition: opacity 0.5s ease;
}

.hero-image:not(.loaded) {
    opacity: 0.8;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Error states */
.image-error {
    background: #f8f9fa;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
}

.image-error::after {
    content: "📷 Bild nicht verfügbar";
    font-size: 16px;
}

/* Connection-aware optimizations */
@media (max-width: 768px) {
    .portfolio-item img {
        min-height: 200px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .portfolio-item,
    .portfolio-item img,
    .lightbox-image {
        transition: none;
        animation: none;
    }
}

/* Focus improvements for accessibility */
.filter-btn:focus,
.lightbox-trigger:focus {
    outline: 2px solid var(--primary-color, #007bff);
    outline-offset: 2px;
}

/* Loading spinner for images */
.image-loading {
    position: relative;
}

.image-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progressive enhancement */
.no-js .portfolio-item {
    display: block !important;
    opacity: 1 !important;
} 