/* 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;
}

/* Modern split hero */
.hero {
    align-items: stretch;
    background:
        radial-gradient(circle at top right, rgba(var(--secondary-color-rgb), 0.14), transparent 34%),
        linear-gradient(135deg, var(--primary-color), #151820);
    color: var(--hero-text-color, #fff);
    cursor: default;
    display: block;
    height: auto;
    min-height: auto;
    margin-top: 0;
    overflow: visible;
    padding: clamp(104px, 11vw, 138px) 0 clamp(22px, 2.4vw, 36px);
    text-align: left;
}

.hero-stage {
    align-items: stretch;
    display: grid;
    gap: clamp(22px, 3vw, 42px);
    grid-template-columns: minmax(0, var(--hero-image-fr, 1.16fr)) minmax(320px, var(--hero-copy-fr, 0.84fr));
    margin: 0 auto;
    max-width: 1220px;
    min-height: 0;
    padding: 0 clamp(18px, 4vw, 42px);
    position: relative;
}

.hero-media {
    border: 1px solid rgba(var(--secondary-color-rgb), 0.26);
    border-radius: clamp(28px, 4vw, 54px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 28px 70px rgba(0, 0, 0, 0.34);
    margin-top: var(--hero-image-offset, 52px);
    min-height: clamp(420px, var(--hero-image-height, 62svh), 680px);
    overflow: hidden;
    position: relative;
    transform: translateX(var(--hero-image-shift, 0px));
}

.hero-image {
    filter: none;
    height: 100%;
    inset: 0;
    left: 0;
    min-height: 0;
    min-width: 0;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    transform: scale(1);
    width: 100%;
    z-index: 0;
}

.hero.sharp .hero-image {
    filter: blur(0);
    transform: scale(1);
}

.hero-media__shade {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 48%),
        radial-gradient(circle at bottom left, rgba(var(--secondary-color-rgb), 0.22), transparent 38%);
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.hero-copy {
    align-self: start;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
        rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: clamp(26px, 3vw, 42px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 24px 58px rgba(0, 0, 0, 0.24);
    color: var(--hero-text-color, #fff);
    margin-top: var(--hero-copy-offset, 138px);
    min-height: var(--hero-copy-height, 0px);
    overflow: visible;
    padding: clamp(30px, 5vw, 58px);
    position: relative;
    transform: translateX(var(--hero-copy-shift, 0px));
    z-index: 2;
}

.hero-eyebrow {
    color: var(--secondary-color);
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-content h1 {
    color: var(--hero-text-color, #fff);
    font-size: clamp(2rem, 4.2vw, var(--hero-title-size, 3.35rem));
    line-height: 1.02;
    margin-bottom: 24px;
}

.hero-copy p,
.hero-content p {
    color: color-mix(in srgb, var(--hero-text-color, #fff) 82%, transparent);
    font-size: clamp(0.96rem, 1.16vw, var(--hero-body-size, 1.08rem));
    font-weight: 400;
    line-height: 1.62;
    margin: 0;
}

.hero-quote-rotator {
    display: grid;
    grid-column: 1;
    justify-self: center;
    margin-top: var(--hero-quote-offset, 34px);
    pointer-events: none;
    position: relative;
    transform: translateX(var(--hero-quote-shift, 46px));
    width: min(760px, var(--hero-quote-width, 82%));
    z-index: 5;
}

.hero-quote {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.055)),
        rgba(24, 27, 34, 0.64);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(var(--secondary-color-rgb), 0.34);
    border-radius: 999px;
    box-sizing: border-box;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
    color: var(--hero-text-color, #fff);
    grid-area: 1 / 1;
    justify-self: center;
    margin: 0;
    max-width: 100%;
    opacity: 0;
    padding: 18px 28px;
    position: relative;
    transform: translateY(18px) scale(0.97);
    transition: opacity 0.7s ease, transform 0.7s ease;
    width: max-content;
}

.hero-quote.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-quote p {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    line-height: 1.3;
    margin: 0;
}

.hero-quote cite {
    color: var(--secondary-color);
    display: block;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-top: 6px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        margin-top: 0;
        min-height: 0;
        align-items: flex-start;
        overflow: hidden;
        padding: 86px 0 54px;
    }

    .hero-stage {
        gap: 18px;
        grid-template-columns: 1fr;
        max-width: 100vw;
        min-height: 0;
        overflow: hidden;
        padding: 0 14px;
        width: 100%;
    }

    .hero-media {
        margin-top: min(var(--hero-image-offset, 52px), 34px);
        max-width: 100%;
        min-height: clamp(320px, var(--hero-image-height, 62svh), 520px);
        min-width: 0;
        transform: translateX(clamp(-12px, var(--hero-image-shift, 0px), 12px));
    }

    .hero-image {
        object-position: center top;
    }

    .hero-copy {
        box-sizing: border-box;
        justify-self: center;
        margin-top: min(var(--hero-copy-offset, 138px), 48px);
        max-width: 100%;
        min-width: 0;
        overflow-wrap: break-word;
        padding: 24px 18px 30px;
        width: 100%;
        transform: none;
    }

    .hero-copy h1 {
        font-size: clamp(1.32rem, 6.15vw, 1.92rem);
        hyphens: manual;
        letter-spacing: -0.015em;
        line-height: 1.14;
        margin-bottom: 18px;
        overflow-wrap: normal;
        text-wrap: pretty;
        word-break: normal;
    }

    .hero-copy h1 .highlight {
        display: inline;
        white-space: normal;
    }

    .hero-copy p {
        font-size: clamp(0.92rem, 3.85vw, 1.02rem);
        hyphens: auto;
        line-height: 1.48;
        overflow-wrap: break-word;
        text-wrap: pretty;
        word-break: normal;
    }

    .hero-quote-rotator {
        grid-column: 1;
        justify-self: stretch;
        margin-top: min(var(--hero-quote-offset, -118px), 18px);
        max-width: 100%;
        min-width: 0;
        transform: none;
        width: 100%;
    }

    .hero-quote {
        border-radius: 24px;
        justify-self: stretch;
        max-width: 100%;
        hyphens: auto;
        overflow-wrap: break-word;
        padding: 16px 18px;
        text-wrap: pretty;
        white-space: normal;
        width: 100%;
    }
}
