/* ===================================
   H.Holtkamp — Cinematic Video-Hero Layer
   Ergänzt styles.css: transparenter Header über dem Video,
   Vollbild-Video-Hero, ruhige Einblendungen.
   =================================== */

/* Kein 100px-Versatz mehr – der Video-Hero liegt unter dem Header */
main { margin-top: 0; }

/* WICHTIG: overflow-x:hidden am body macht ihn zum Scroll-Container und
   killt position:sticky. 'clip' verhindert Querscrollen OHNE Scroll-Container. */
html, body { overflow-x: clip; }

/* ---------- Header: transparent über dem Hero, weiss beim Scrollen ---------- */
header#main-header {
    background: transparent;
    box-shadow: none;
}
header#main-header .nav-links a {
    color: #fff;
    text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
header#main-header .nav-links a.active,
header#main-header .nav-links a:hover { color: #fff; }
header#main-header .nav-links a::after { background: #fff; }

/* Logo im transparenten Zustand weiss ausspielen */
header#main-header #header-logo img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0,0,0,.35));
    transition: filter .35s ease, height .35s ease;
}
header#main-header .mobile-menu-toggle span { background: #fff !important; }

/* Gescrollter Zustand: solides Weiss, Original-Look */
header#main-header.scrolled {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,.10);
}
header#main-header.scrolled .nav-links a {
    color: var(--text-primary);
    text-shadow: none;
}
header#main-header.scrolled .nav-links a.active,
header#main-header.scrolled .nav-links a:hover { color: var(--primary); }
header#main-header.scrolled .nav-links a::after { background: var(--primary); }
header#main-header.scrolled #header-logo img { filter: none; }
header#main-header.scrolled .mobile-menu-toggle span { background: var(--text-primary) !important; }

/* Geöffnetes Mobilmenü: Header solide weiss, damit das X und das Logo
   auch über dem Hero-Video gut lesbar sind. */
header#main-header.menu-open {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,.10);
}
header#main-header.menu-open .nav-links a { color: var(--text-primary); text-shadow: none; }
header#main-header.menu-open #header-logo img { filter: none; }
header#main-header.menu-open .mobile-menu-toggle span { background: var(--text-primary) !important; }

/* Das Dropdown-Panel ist immer weiss – der Text darin bleibt dunkel,
   auch solange der Header über dem Hero transparent ist. */
header#main-header .nav-links .dropdown a {
    color: var(--text-primary);
    text-shadow: none;
}
header#main-header .nav-links .dropdown a:hover,
header#main-header .nav-links .dropdown a:focus-visible,
header#main-header .nav-links .dropdown a.active {
    color: var(--primary);
}

/* ---------- Scroll-Scrub-Wrapper: Video läuft mit dem Scrollen ---------- */
.hero-scroll-wrap {
    position: relative;
    /* Startwert: zwei Bildschirmhöhen = erster Bildschirm + "Vorhang" (Leistungen
       schiebt sich über das Video). main.js verlängert die Strecke erst, wenn das
       Video komplett geladen ist. Vorher würde man bei langsamem Netz durch
       mehrere Bildschirmhöhen Standbild scrollen – die Seite wirkt dann "hängend". */
    /* Der Vorhang (#leistungen, margin-top: -100dvh) beginnt damit bei
       100lvh + 140px – samt seinem Schatten (box-shadow reicht ~135 px nach oben,
       Chrome zählt ihn bei Layout-Verschiebungen mit) IMMER unter dem sichtbaren Bereich, egal wie weit die
       Browserleiste ein- oder ausgefahren ist (svh/dvh/lvh unterscheiden sich
       dann). So ist das spätere Verlängern garantiert unsichtbar. Gemessen
       vorher: mit 200svh ragte der Vorhang bis zu 95 px ins Bild und sprang. */
    height: calc(200vh + 140px);
    height: calc(100lvh + 100dvh + 140px);
    background: #0a140d;      /* dunkel: falls je eine Lücke entsteht, kein weißer Balken */
}
/* Höhere Spezifität als .hero-cinematic, damit sticky NICHT von relative überschrieben wird */
.hero-scroll-wrap .hero-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100svh;
    height: 100dvh;           /* dvh füllt IMMER den sichtbaren Bereich (iOS-Adressleiste) */
}

/* ---------- Cinematic Video-Hero ---------- */
.hero-cinematic {
    position: relative;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #10331a; /* Fallback bevor das Video lädt */
}

.hero-cinematic video,
.hero-cinematic .hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Poster-Bild liegt unter dem Video und deckt die Ladezeit ab */
.hero-cinematic .hero-poster {
    background-position: center;
    background-size: cover;
}

/* Cinematic-Abdunklung: oben grünstichig, unten satt dunkel für Lesbarkeit */
.hero-cinematic::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(16,51,26,.55) 0%,
            rgba(11,30,17,.28) 32%,
            rgba(8,20,12,.55) 68%,
            rgba(6,16,10,.86) 100%),
        radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(0,0,0,.35) 100%);
}

.hero-cinematic .container { position: relative; z-index: 2; }

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 7rem 0 5rem;
    color: #fff;
    animation: heroRise 1.1s cubic-bezier(.2,.7,.2,1) both;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #cdefd3;
    margin-bottom: 1.6rem;
}
.hero-kicker::before,
.hero-kicker::after {
    content: "";
    width: 26px;
    height: 1px;
    background: rgba(205,239,211,.6);
}

.hero-cinematic h1 {
    font-size: clamp(2.4rem, 6vw, 4.1rem);
    line-height: 1.06;
    color: #fff;
    font-weight: 800;
    margin: 0 0 1rem;
    text-shadow: 0 2px 30px rgba(0,0,0,.4);
}

.hero-cinematic .hero-sub {
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    font-weight: 500;
    color: #fff;
    margin: 0 0 .9rem;
    text-shadow: 0 1px 16px rgba(0,0,0,.45);
}

.hero-cinematic .hero-services {
    font-size: 1rem;
    color: rgba(255,255,255,.9);
    margin: 0 0 2.4rem;
    letter-spacing: .01em;
    text-shadow: 0 1px 14px rgba(0,0,0,.5);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.6rem;
}

.hero-cta .btn-call {
    background: #fff;
    color: var(--primary-dark);
    padding: 1rem 2.1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
    transition: transform .25s ease, box-shadow .25s ease;
}
.hero-cta .btn-call:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,.34);
}

.hero-cta .btn-ghost {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.7);
    padding: 1rem 2.1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    backdrop-filter: blur(4px);
    transition: background .25s ease, transform .25s ease;
}
.hero-cta .btn-ghost:hover {
    background: rgba(255,255,255,.18);
    transform: translateY(-3px);
}

/* Vertrauens-Zeile */
.hero-trust {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.8rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.92);
    font-size: .95rem;
    font-weight: 500;
    text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.hero-trust li strong { font-weight: 700; color: #fff; }
.hero-trust .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 10px rgba(102,187,106,.9);
}

@media (prefers-reduced-motion: reduce) {
    .hero-inner { animation: none; }
    /* Kein Scrubbing: Hero auf eine normale Bildschirmhöhe reduzieren */
    .hero-scroll-wrap { height: calc(200vh + 140px); height: calc(100lvh + 100dvh + 140px); }   /* kurz: erster Bildschirm + Vorhang */
}

/* ---------- „Vorhang": Leistungen fährt beim Scrollen über den Video-Hero ---------- */
.hero-scroll-wrap { z-index: 1; }
#leistungen {
    position: relative;
    z-index: 5;
    margin-top: -100vh;               /* Fallback */
    margin-top: -100dvh;              /* fährt komplett über den Hero und deckt ihn ganz ab */
    border-radius: 34px 34px 0 0;
    box-shadow: 0 -30px 70px rgba(0,0,0,.30);
}
@media (max-width: 768px) {
    #leistungen { border-radius: 22px 22px 0 0; }
}

/* ---------- Scroll-Parallax-Band ---------- */
.parallax {
    position: relative;
    min-height: 62vh;
    min-height: 62svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
}
.parallax__img {
    position: absolute;
    top: -18%;
    left: 0;
    right: 0;
    height: 136%;                 /* Überhöhe, damit beim Parallax keine Kanten auftauchen */
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 0;
}
.parallax::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(16,51,26,.62) 0%, rgba(8,20,12,.55) 50%, rgba(6,16,10,.72) 100%);
}
.parallax .container { position: relative; z-index: 2; padding: 4rem 1rem; }
.parallax .p-kicker {
    display: inline-block;
    font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: #cdefd3; margin-bottom: 1.1rem;
}
.parallax h2 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.12;
    max-width: 780px; margin: 0 auto 1.2rem;
    text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.parallax p {
    color: rgba(255,255,255,.92);
    font-size: 1.1rem; max-width: 620px; margin: 0 auto 2rem;
    text-shadow: 0 1px 14px rgba(0,0,0,.5);
}
.parallax .btn-call {
    background: #fff; color: var(--primary-dark);
    padding: 1rem 2.1rem; border-radius: 50px; font-weight: 700; font-size: 1.05rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: .55rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.28); transition: transform .25s ease;
}
.parallax .btn-call:hover { transform: translateY(-3px); }

@media (max-width: 768px) {
    .parallax { min-height: 70vh; min-height: 70svh; }
    .parallax .container { padding: 3rem 1rem; }
}

/* ---------- Kontaktformular ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Select passend zu Input/Textarea + eigener Pfeil (native Optik war uneinheitlich) */
.contact-form select {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    border: 2px solid var(--bg-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232E7D32' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 15px;
    cursor: pointer;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.contact-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46,125,50,.1);
}

.form-consent { display: flex; align-items: flex-start; gap: .6rem; margin: .25rem 0 1.25rem; font-size: .85rem; color: var(--text-light); line-height: 1.5; }
.form-consent input { width: auto; margin-top: .2rem; flex: 0 0 auto; }
.contact-info-card a { color: #fff; text-decoration: none; }
.contact-info-card .ci-row { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; font-size: 1.02rem; }
.contact-info-card .ci-row .ci-ic { font-size: 1.2rem; width: 1.6rem; text-align: center; }
.contact-grid .contact-info-card { align-self: start; }   /* kein Strecken → kein totes Grün */
.ci-divider { border: 0; border-top: 1px solid rgba(255,255,255,.22); margin: 1.4rem 0; }
.ci-usp { display: flex; align-items: flex-start; gap: .55rem; color: rgba(255,255,255,.95); font-size: .98rem; line-height: 1.4; margin-bottom: .7rem; }
.ci-usp::before { content: "✓"; color: #cdefd3; font-weight: 700; flex: 0 0 auto; }
.contact-info-card .ci-route {
    display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem;
    background: #fff; color: var(--primary-dark) !important; font-weight: 700;
    padding: .85rem 1.5rem; border-radius: 50px; text-decoration: none;
    box-shadow: 0 8px 22px rgba(0,0,0,.18); transition: transform .2s ease;
}
.contact-info-card .ci-route:hover { transform: translateY(-2px); }

/* ---------- Standort-Karte ---------- */
.kontakt-map {
    margin-top: 2.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--bg-gray);
    position: relative;
}
.kontakt-map iframe { display: block; width: 100%; height: 360px; border: 0; }
@media (max-width: 768px) { .kontakt-map iframe { height: 260px; } }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Referenzen-Galerie ---------- */
.projekt-grid {
    display: flex;
    gap: 1.25rem;
    margin-top: 2.75rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(46,125,50,.55) transparent;
    /* am rechten Rand ausblenden = Hinweis auf mehr Projekte */
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 44px), transparent 100%);
            mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 44px), transparent 100%);
}
.projekt-grid::-webkit-scrollbar { height: 8px; }
.projekt-grid::-webkit-scrollbar-thumb { background: rgba(46,125,50,.5); border-radius: 4px; }
.projekt-grid::-webkit-scrollbar-track { background: transparent; }
.projekt-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 3 / 4;
    box-shadow: var(--shadow-sm);
    margin: 0;
    flex: 0 0 clamp(230px, 24vw, 300px);
    scroll-snap-align: start;
}
/* In der horizontalen Leiste immer sichtbar (Reveal-Observer greift nur bei vertikaler Sichtbarkeit) */
.projekt-grid .projekt-item.reveal { opacity: 1; transform: none; }
.projekt-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .5s ease;
}
.projekt-item:hover img { transform: scale(1.06); }
.projekt-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.5rem 1rem .9rem;
    color: #fff; font-weight: 600; font-size: .95rem;
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
}
@media (max-width: 600px) {
    .projekt-item { flex-basis: 72vw; }
    .projekt-item figcaption { font-size: .82rem; padding: 1rem .7rem .6rem; }
}

/* ---------- Kundenstimmen (Google-Reviews-Stil + Slider) ---------- */
.google-reviews-head {
    display: inline-flex; align-items: center; gap: .9rem;
    background: #fff; border: 1px solid var(--bg-gray); border-radius: 14px;
    padding: .75rem 1.3rem; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem;
    text-align: left;
}
.google-reviews-head .g-logo { width: 30px; height: 30px; flex: 0 0 auto; }
.gr-stars { color: #f5a623; letter-spacing: 1px; line-height: 1; font-size: 1.05rem; }
.gr-stars strong { color: var(--text-primary); margin-left: .4rem; font-size: 1.1rem; }
.gr-sub { font-size: .82rem; color: var(--text-light); margin-top: .28rem; }
.gr-verified { color: var(--primary); font-weight: 600; }

.reviews-slider-wrap { position: relative; margin-top: 2.5rem; }
.reviews-slider {
    display: flex; gap: 1.25rem; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    padding: .4rem .2rem 1.4rem; scrollbar-width: thin; scrollbar-color: var(--bg-gray) transparent;
}
.reviews-slider::-webkit-scrollbar { height: 6px; }
.reviews-slider::-webkit-scrollbar-thumb { background: var(--bg-gray); border-radius: 6px; }
.rev-card {
    scroll-snap-align: start; flex: 0 0 340px; max-width: 84vw;
    background: #fff; border: 1px solid var(--bg-gray); border-radius: 14px;
    padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; text-align: left;
}
.rev-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .85rem; }
.rev-avatar { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; color: #fff; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; }
.rev-meta { flex: 1; min-width: 0; }
.rev-name { font-weight: 600; color: var(--text-primary); font-size: .95rem; line-height: 1.2; }
.rev-date { font-size: .8rem; color: var(--text-light); }
.rev-g { width: 20px; height: 20px; flex: 0 0 auto; }
.rev-stars { color: #f5a623; letter-spacing: 2px; margin-bottom: .7rem; font-size: .95rem; }
.rev-text { color: var(--text-secondary); line-height: 1.65; font-size: .95rem; margin: 0; }

.rev-arrow {
    position: absolute; top: 44%; transform: translateY(-50%); z-index: 3;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bg-gray);
    background: #fff; color: var(--primary-dark); font-size: 1.5rem; line-height: 1; cursor: pointer;
    box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center;
    transition: background .2s ease, transform .2s ease;
}
.rev-arrow:hover { background: var(--pale-green); transform: translateY(-50%) scale(1.06); }
.rev-prev { left: -12px; }
.rev-next { right: -12px; }
@media (max-width: 768px) {
    .rev-arrow { display: none; }         /* mobil: swipen */
    .rev-card { flex-basis: 300px; padding: 1.4rem; }
}

/* ---------- Sanfte Section-Reveals ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Service-Karten zu klickbaren Links (führen auf die Leistungs-Unterseiten) */
.service-card { position: relative; }
.svc-link {
    display: inline-block; margin-top: 1.1rem;
    color: var(--primary); font-weight: 600; text-decoration: none; font-size: .95rem;
}
.svc-link::after { content: ""; position: absolute; inset: 0; }  /* macht die ganze Karte klickbar */
.service-card:hover .svc-link { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    /* Header entschlacken: nur Logo + Hamburger (Nummer steht im Menü + Hero-Button) */
    header#main-header .call-button { display: none; }
    header#main-header #header-logo img { height: 54px !important; }
    header#main-header nav { min-height: 72px; }

    /* Hero kompakt, klar unter dem Header, ohne Kollisionen */
    .hero-inner { padding: 6.5rem 0 4rem; }
    .hero-kicker { margin-bottom: 1.1rem; font-size: .72rem; }
    .hero-cinematic h1 { margin-bottom: .75rem; }
    .hero-cinematic .hero-services { margin-bottom: 1.8rem; }
    .hero-cta { flex-direction: column; align-items: center; margin-bottom: 1.8rem; }
    .hero-cta .btn-call, .hero-cta .btn-ghost { width: 100%; max-width: 330px; justify-content: center; }
    .hero-trust { gap: .55rem 1.3rem; font-size: .85rem; }
    .hero-poster { background-image: url('../hero-poster-mobile.jpg?v=19') !important; } /* leichtes Hochkant-Poster */
}


/* ---------- Handy: teure Effekte aus (spart Rechenzeit beim Scrollen) ---------- */
@media (max-width: 768px) {
    .hero-cta .btn-ghost,
    .leistung-hero .l-cta .btn-ghost,
    .uh-text .l-cta .btn-ghost { backdrop-filter: none; }

    /* Parallax-Bild bleibt stehen: das Verschieben bei jedem Scroll-Frame
       kostet auf schwächeren Geräten spürbar Leistung. */
    .parallax__img { transform: none !important; will-change: auto; }
}
