.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-plum-dark);
}

.hero-text {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(calc(-50% + 20px)); /* Leicht nach rechts verschoben, um exakt mittig zum Baumstamm zu sein */
    text-align: center;
    width: 90%;
    max-width: 800px;
    z-index: 10;
}

/* Heart Counter */
.counter-container {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: cinematicReveal 3s forwards ease-in-out;
    animation-delay: 0.5s;
}

.magical-counter {
    display: block;
    font-size: 7rem; /* RIESIG */
    font-weight: 600;
    color: var(--color-cream); /* Helles Creme für maximalen Kontrast */
    text-shadow: 0 0 40px rgba(127, 176, 105, 0.8), 0 5px 15px rgba(0,0,0,1); /* Starkes Leuchten UND harter schwarzer Schatten für Lesbarkeit */
    margin-bottom: 0.5rem; /* Positiver Abstand, damit es nicht in den Text unten schneidet */
    font-family: 'Playfair Display', serif; /* Sehr edle Schriftart */
    line-height: 1;
    position: relative;
    left: 0; /* Genau zentriert */
    text-align: center;
    cursor: default; /* Verhindert den Text-Cursor (I-Beam) beim Drüberfahren */
    user-select: none; /* Verhindert, dass man die Zahl markieren kann */
}

.counter-label {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--color-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    
    /* Neuer leicht schattiger Hintergrund für bessere Lesbarkeit gegen den hellen Baum */
    background: rgba(15, 36, 27, 0.6); /* Sehr dunkles Pflaume/Grau, leicht transparent */
    backdrop-filter: blur(4px);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    margin-top: 0.5rem;
}

.hero-text p {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-gold-light);
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    font-style: italic;
    letter-spacing: 1px;
    opacity: 0;
    animation: cinematicReveal 3s forwards ease-in-out;
    animation-delay: 1s;
}

@keyframes cinematicReveal {
    from { opacity: 0; transform: translateY(20px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Fairy Dust Particles */
.fairy-dust {
    position: absolute;
    background-color: var(--color-gold-light);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 8px 2px var(--color-gold);
    animation: floatUp linear infinite;
    z-index: 2; /* Floats over the tree and background */
    will-change: transform, opacity; /* Hardware Beschleunigung */
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(var(--sway));
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .hero-text p {
        font-size: 1.2rem;
        bottom: 5%;
    }
}

/* Memory Display Container */
.memory-display {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 300px;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through if not on a bubble */
}

.memory-bubble {
    background: rgba(180, 101, 143, 0.2); /* Sehr durchsichtiges Rosa */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(244, 221, 200, 0.1);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    color: var(--color-cream);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    opacity: 0;
    pointer-events: auto; /* Allow hover/click on the bubble itself */
    transition: all 1s ease-in-out;
}

.memory-text {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
}

.memory-author {
    font-size: 0.9rem;
    text-align: right;
    opacity: 0.8;
}

/* Animations */
.memory-bubble.fade-in {
    opacity: 1;
    transform: translateY(0);
    animation: floatIn 1s forwards;
}

.memory-bubble.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    animation: floatOut 1s forwards;
}

@keyframes floatIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Responsive Design für Smartphones */
@media (max-width: 768px) {
    .magical-counter {
        font-size: 5rem; /* Etwas größer, da der Baum jetzt im Vollbild ist */
        text-shadow: 0 0 20px rgba(127, 176, 105, 0.8), 0 3px 10px rgba(0,0,0,1);
    }
    
    .counter-label {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        letter-spacing: 1px;
        margin-bottom: 0.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-text {
        bottom: 8%; 
        width: 95%;
        transform: translateX(-50%); /* Zentrierung auf dem Handy wieder zurücksetzen */
    }
    
    .memory-display {
        top: 15%;
        left: 50%;
        right: auto;
        transform: translateX(-50%); /* Blase in die Mitte setzen statt an den rechten Rand */
        width: 90%;
        max-width: 360px;
    }
}
