﻿﻿.page-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 120px;
  animation: loaderPulse 1.4s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.8;
  }
}

.form-error-msg,
.newsletter-error-msg,
.membership-error-msg {
  color: #fecaca;
  font-size: 0.85rem;
  margin-top: 0.45rem;
}

#contact-error {
  color: var(--error);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hero-bg {
  background-image: url('../files/hero.webp');
}

@media (max-width: 768px) {
  .hero-bg {
    background-image: url('../files/hero-mobile.webp');
  }
}

/* ============================================
   PROBLEM SUBHEADING – Unterüberschrift Sektion 3
   ============================================ */
.problem-subheading {
    font-size: clamp(1.05rem, 2.5vw, 1.4rem);
    font-weight: 600;
    color: var(--gc4c-black);
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
}

/* ============================================
   MIGRATED INLINE STYLES (from index.html)
   ============================================ */

/* Sektion Special: New Text-Image Layout */
.special-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}
.special-visual {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
}
.special-visual svg {
    max-width: 100%;
    height: auto;
}
.special-content {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.special-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.special-feature .icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gc4c-gray-light, #f3f4f6);
    color: var(--primary-color, #dc2626);
    border-radius: 8px;
}
.special-feature h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}
.special-feature p {
    margin: 0;
    color: var(--text-muted, #4b5563);
    line-height: 1.6;
}

/* Sektion Targets: Mobile Swipe-Tabs */
@media (min-width: 769px) {
    .special-visual { flex: 1 1 40%; }
    .special-content { flex: 1 1 50%; gap: 2.5rem; }
}
@media (max-width: 768px) {
    .target-buttons {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem; /* Platz für Scrollbar */
        scrollbar-width: none; /* Versteckt Scrollbar in Firefox */
    }
    .target-buttons::-webkit-scrollbar { display: none; } /* Versteckt Scrollbar in Chrome/Safari */
    .target-buttons .target-btn {
        flex: 0 0 85%; /* Tabs nehmen 85% Breite ein, der nächste blitzt leicht hervor */
        scroll-snap-align: center;
    }
}
