/* Hero Section mit Video */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-top: 80px;
    cursor: var(--cursor-pointer, url('../images/nadel-klick.webp') 0 0, pointer); /* Spezieller Cursor für das Hero-Bild */
}

.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%) scale(1.05); /* Leicht vergrößert, um unscharfe Bildränder zu verstecken */
    z-index: -2;
    object-fit: cover;
    filter: blur(20px); /* Starker initialer Milchglas-Effekt */
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease, filter 0.8s ease, transform 0.8s ease, visibility 1.5s ease; /* Weiche Animation & Crossfade */
}

.hero-image.active-slide {
    opacity: 1;
    visibility: visible;
}

/* Diese Klasse wird per JavaScript hinzugefügt, um das Bild scharf zu machen */
.hero.sharp .hero-image {
    filter: blur(0);
    transform: translateX(-50%) translateY(-50%) scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dunkelt das Video ab */
    z-index: -1;
}

/* Klick-Hinweis Styling & Animation */
.hero-click-hint {
    position: absolute;
    bottom: 12%; /* Nach unten verschoben, aus dem Weg der Schrift */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.05); /* Edler Glas-Look */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-family: var(--font-body);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none; /* Klicks gehen durch den Hinweis hindurch auf die Sektion */
    transition: opacity 0.5s ease;
    z-index: 5;
}

.hero-click-hint.hidden {
    opacity: 0;
}

/* Pulsierender Punkt */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    animation: pulse-ring 2s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes pulse-ring {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Stich-Effekt beim Klicken (kleines Kreuz/Knoten) */
.stitch-mark {
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none; /* Klicks gehen durch den Faden hindurch */
    z-index: 9999;
    transform: translate(-50%, -50%) rotate(var(--stitch-angle, 0deg));
    animation: fadeStitch 2.5s ease-out forwards; /* Längere Anzeige-Dauer */
}

.stitch-mark::before,
.stitch-mark::after {
    content: '';
    position: absolute;
    background-color: var(--secondary-color);
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.5); /* Leichter Schatten für Plastizität */
}

/* Die beiden Linien des Kreuzes */
.stitch-mark::before {
    top: 50%; left: 0; width: 100%; height: 2px;
    transform: translateY(-50%) rotate(45deg);
}
.stitch-mark::after {
    top: 0; left: 50%; width: 2px; height: 100%;
    transform: translateX(-50%) rotate(45deg);
}

@keyframes fadeStitch {
    0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--stitch-angle, 0deg)) scale(0); }
    10% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--stitch-angle, 0deg)) scale(1.2); }
    20% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--stitch-angle, 0deg)) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--stitch-angle, 0deg)) scale(1); } /* Hält den Stich scharf sichtbar */
    100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--stitch-angle, 0deg)) scale(1); } /* Blendet am Ende weich aus */
}

/* Ziehende Fäden (Thread Pull Animation) */
.pulling-thread {
    position: absolute;
    width: 35px;
    height: 1.5px;
    background-color: var(--secondary-color);
    border-radius: 1px;
    pointer-events: none;
    z-index: 9998;
    animation: threadPull 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

@keyframes threadPull {
    0% {
        /* Fängt 40px entfernt an */
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(40px) scaleX(1);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        /* Zieht sich superschnell in die Mitte zusammen */
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(5px) scaleX(0);
        opacity: 0;
    }
}

.hero-content h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Hervorhebungstext in Gold */
.highlight {
    color: var(--secondary-color);
}

/* Hero Google Rating Badge */
.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-rating .stars {
    font-size: 1.1rem;
    margin-bottom: 0;
    text-shadow: none;
}

/* Hero Dual Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Bricht auf Handys um */
}

.hero-small-repairs {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 24px;
    max-width: min(820px, 92vw);
    padding: 12px 20px;
}

.btn-outline-light {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
    border-radius: 999px;
}

.btn:hover {
    background-color: #b5952f;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        margin-top: 60px;
        min-height: calc(100svh - 60px);
        align-items: flex-start;
        padding: clamp(84px, 14svh, 118px) 0 72px;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero-rating {
        align-items: center;
        flex-wrap: wrap;
        gap: 6px 10px;
        justify-content: center;
        line-height: 1.25;
        margin-bottom: 18px;
        max-width: min(92vw, 360px);
        padding: 7px 14px;
        position: relative;
        z-index: 6;
    }

    .hero-rating .stars {
        flex: 0 0 100%;
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }

    .hero-rating span:not(.stars) {
        display: block;
        font-size: 0.76rem;
        overflow-wrap: anywhere;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .hero-small-repairs {
        border-radius: 18px;
        font-size: 0.88rem;
        margin-top: 18px;
    }
}
