/* Floating Orbs */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.7;
    z-index: 1;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(168, 85, 247, 0.4) 100%);
    top: -100px;
    right: -100px;
    animation: float 25s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(99, 102, 241, 0.4) 100%);
    bottom: 100px;
    right: 200px;
    animation: float 20s ease-in-out infinite reverse;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(236, 72, 153, 0.4) 100%);
    bottom: -50px;
    right: 500px;
    animation: float 30s ease-in-out infinite;
}

/* Lower z-index for hero section when modal is open */
body.modal-open #hero {
    z-index: 1 !important;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hero-shape {
    position: absolute;
    z-index: -1;
    opacity: 0.6;
}

.hero-shape-1 {
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-light), var(--primary));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
}

.hero-shape-2 {
    bottom: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(5px, 5px) rotate(1deg);
    }
    50% {
        transform: translate(0, 10px) rotate(0deg);
    }
    75% {
        transform: translate(-5px, 5px) rotate(-1deg);
    }
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 1024px) {
    #hero {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-shape-1,
    .hero-shape-2 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-shape-1,
    .hero-shape-2 {
        width: 150px;
        height: 150px;
    }
}

/* Hero Section Styles */
.hero-section {
    display: flex;
    align-items: center;
    min-height: 70vh;
    padding: 17rem 0 4rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    overflow: hidden;
}

.hero-section > .container.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem; /* Abstand zwischen Text-Block und Bild */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section .hero-content {
    flex: 1 1 55%; /* Etwas mehr Raum für den Textinhalt */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Stellt sicher, dass der Inhalt mittig ist */
    text-align: center; /* Stellt sicher, dass der Text mittig ist */
    z-index: 1;
    padding: 0 1rem;
}

/* Responsive Hero Content */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

.hero-section .hero-content h1 {
    font-family: var(--font-primary);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.3em;
    color: var(--gray-800);
    margin-top: 0; /* Kein zusätzlicher oberer Margin, da padding-top der Sektion greift */
    margin-bottom: 1.5rem; /* Ausreichend Abstand zum Begleittext */
    letter-spacing: -0.75px; /* Für moderne Optik */
    max-width: 700px; /* Begrenzt die Breite für bessere Lesbarkeit bei Zentrierung */
}

.hero-section .hero-content p.subheadline {
    font-family: var(--font-primary);
    font-size: 1.15rem; /* 18-20px Bereich, angepasst für 'Inter' */
    font-weight: 400;
    color: var(--gray-600);
    line-height: 1.7em; /* Großzügige Zeilenhöhe für Lesbarkeit */
    margin-top: 0; /* Kein oberer Margin, da h1 Abstand hat */
    margin-bottom: 1.2rem; /* Weniger Abstand zu den CTA-Buttons */
    max-width: 600px; /* Begrenzt Breite für bessere Lesbarkeit */
}

.hero-section .hero-buttons {
    display: flex; /* Ermöglicht gap für Abstände */
    justify-content: center; /* Zentriert die Buttons als Gruppe */
    align-items: center;
    gap: 1.5rem; /* Deutlicher horizontaler Abstand zwischen Buttons */
    margin-top: 0; /* Abstand wird durch p.subheadline margin-bottom geregelt */
    flex-wrap: wrap; /* Falls Buttons auf kleinen Schirmen umbrechen müssen */
}

.hero-section .hero-image {
    flex: 1 1 40%; /* Etwas weniger Raum, da Text wichtiger ist */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .hero-image img {
    max-width: 100%;
    height: auto; /* Stellt korrekte Proportionen sicher */
    border-radius: var(--border-radius-lg); /* Konsistenter Radius */
    box-shadow: var(--shadow-lg); /* Etwas präsenterer, aber immer noch leichter Schatten */
}

.trust-enhancers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem; /* Viel horizontaler Abstand */
    margin-top: 1rem; /* Weiter reduziert auf 1rem, Trust-Section rückt noch näher an Content-Block */
    flex-wrap: wrap;
    color: var(--gray-500);
    font-family: var(--font-primary);
    font-size: 0.9rem; /* Gute Lesbarkeit */
}

.trust-enhancers span {
    display: flex;
    align-items: center;
    gap: 0.6rem; /* Ausreichend Abstand Icon zu Text */
}

.trust-enhancers i {
    color: var(--primary-light);
    font-size: 1em; /* Icon-Größe relativ zum Text */
}

.trusted-by-section {
    background-color: var(--gray-50); /* Konsistenter heller Hintergrund */
    padding: 3rem 0;
}

.trusted-by-title {
    font-family: var(--font-primary);
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trusted-by-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem; /* Großzügiger Abstand zwischen Logos */
}

.trust-logo {
    max-height: 35px; /* Etwas kleiner für Dezenz */
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.trust-logo:hover {
    opacity: 0.9;
}

.hero {
    position: relative;
    padding: 10rem 0 8rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/hero-pattern.svg') no-repeat center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stat-number span {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-image {
    position: relative;
    margin-top: 4rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Dark Mode */
.dark-mode .hero {
    background: linear-gradient(135deg, #0c4a6e 0%, #1e3a8a 100%);
}

.dark-mode .hero h1,
.dark-mode .hero p,
.dark-mode .stat-label {
    color: #e2e8f0;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding: 8rem 0 6rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 7rem 0 5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        margin-bottom: 0.5rem;
    }
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Override for Privacy Modal */
body.modal-open .hero-section {
    z-index: 999 !important;
}
