/* --- HERO SECTION --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

/* Hintergrund-Verlauf */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fcf0ad, #fef9ff);
    z-index: 0;
}

/* Vollbild-Logo über dem Verlauf */
.hero-logo-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    filter: blur(2px);
}

/* Overlay für bessere Lesbarkeit */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 245, 240, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2;
}

/* Content Container */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    width: 100%;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Text Bereich */
.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero__highlight {
  background: linear-gradient(
    90deg,
    #fae988,
    #fad694,
    #ffffff
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeIn 1.5s ease-in;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    color: #8e5572;
    margin-bottom: 35px;
    line-height: 1.6;
    animation: fadeIn 1.8s ease-in;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    animation: fadeIn 2s ease-in;
}

.hero-btn {
    padding: 15px 34px;
    font-size: 1.1rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.hero-btn.primary {
    background: #e7b37f;
    color: white;
    box-shadow: 0 4px 15px rgba(231, 179, 127, 0.3);
}

.hero-btn.primary:hover {
    background: #d49d6a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 179, 127, 0.4);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #8e5572;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(180, 120, 160, 0.3);
}

.hero-btn.secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(180, 120, 160, 0.5);
}

/* Bild Bereich */
.hero-image-wrap {
    flex: 1;
    max-width: 550px;
    animation: fadeIn 2s ease-in;
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(200, 150, 180, 0.35);
    position: relative;
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: 
        linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

/* Light Effects */
.hero-lights {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.light-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 200, 180, 0.3);
    filter: blur(60px);
    animation: floatLights 9s infinite ease-in-out;
}

.light-circle:nth-child(1) {
    top: 15%;
    left: 10%;
}

.light-circle:nth-child(2) {
    bottom: 10%;
    right: 15%;
    animation-delay: 2s;
    background: rgba(255, 220, 230, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes floatLights {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -40px); }
}

/* Responsive */
@media (max-width: 1000px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 40px;
        justify-content: center;
    }

    .hero-text {
        max-width: 100%;
    }

    /* Bild wird auf Tablets noch angezeigt */
    .hero-image-wrap {
        width: 75%;
        max-width: 450px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 600px) {
    /* Hintergrund-Bild für Handy */
    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url('https://kreativstudioweide.de/assets/img/trauredner/hero-bg.png');
        background-size: cover;
        background-position: center;
        opacity: 0.3;
        z-index: 1;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding-bottom: 40px;
    }

    /* Logo wird auf Handy ausgeblendet */
    .hero-logo-background {
        display: none;
    }

    /* Overlay und Lights bleiben auf z-index 2 */
    .hero-overlay {
        z-index: 2;
    }

    .hero-lights {
        z-index: 2;
    }

    /* Content muss über allem sein */
    .hero-content {
        padding: 30px 20px;
        justify-content: center;
        z-index: 10 !important;
        position: relative;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    /* Bild wird am Handy ANGEZEIGT und zentriert */
    .hero-image-wrap {
        display: block;
        width: 85%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-image {
        /* Fade-Out von allen Seiten auch am Handy */
        -webkit-mask-image: 
            linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
        mask-image: 
            linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }

    .hero-text {
        max-width: 100%;
        position: relative;
        z-index: 10;
    }

    .hero-title {
        margin-top:275px;
        font-size: 2rem;
        position: relative;
        z-index: 10;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-btn {
        font-size: 1rem;
        padding: 12px 24px;
        position: relative;
        z-index: 10;
    }

    .hero-buttons {
        position: relative;
        z-index: 10;
    }

    .light-circle {
        width: 200px;
        height: 200px;
    }
}