/* H-V2 — Homepage-Conversion-Layer. Nur neue hv2-Klassen, nichts Bestehendes überschrieben. */

/* ---- Subline + Schnupper-Link unter dem Hero-CTA ---- */
.hv2-under-cta { margin-top: 6px; }
.hv2-subline { font-size: 14px; color: #d8cdb9; margin: 8px 0 0; }
.hv2-micro { margin: 6px 0 0; font-size: 13px; }
.hv2-micro a { color: #cfc4ae; text-decoration: underline; text-underline-offset: 3px; }
.hv2-micro a:hover { color: #ece5d8; }

/* ---- Live-Restplätze-Widget ---- */
.hv2-next {
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
    max-width: 560px; margin: 16px auto 0; padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(203, 180, 148, 0.45);
    border-radius: 999px; cursor: pointer; transition: border-color 0.15s ease;
}
.hv2-next:hover { border-color: #cbb494; }
.hv2-next-label {
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #cfc4ae;
}
.hv2-next-main { font-size: 14px; color: #ece5d8; }
.hv2-next-spots {
    font-size: 13px; color: #0c1510; background: #cbb494;
    padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.hv2-next-spots.is-low { background: #e08a5b; }

/* ---- Social-Proof-Zeile ---- */
.hv2-proof { font-size: 13px; color: #cfc4ae; margin: 12px 0 0; }
.hv2-proof a { color: #cbb494; text-decoration: underline; text-underline-offset: 3px; }
.hv2-stars { color: #e6c78f; letter-spacing: 2px; }

/* ---- Mobile Sticky-Buchungsleiste ---- */
.hv2-sticky-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #cbb494;
}
.hv2-sticky-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.hv2-sticky-title { font-size: 14px; font-weight: 600; color: #0c1510; }
.hv2-sticky-sub { font-size: 11px; color: rgba(12, 21, 16, 0.7); }
.hv2-sticky-btn {
    background: #0c1510 !important; border: 1px solid #0c1510 !important;
    color: #ece5d8 !important; white-space: nowrap; flex-shrink: 0;
    border-radius: 999px; padding: 9px 18px; font-size: 13px;
}
.hv2-sticky-btn:hover { color: #cbb494 !important; }
@media (min-width: 768px) { .hv2-sticky-bar { display: none !important; } }
@media (max-width: 767.98px) {
    #section_index { padding-bottom: 76px; }
    /* WhatsApp-Button über die Sticky-Leiste heben, sonst verdeckt sie ihn */
    /* Owner 08.07.: Icon exakt 20px über dem unteren Screenrand — margin-bottom raus,
       sonst addiert das 15px-margin aus cinematic-v2.css auf 35px. */
    .whatsAppBtn { bottom: 20px !important; margin-bottom: 0 !important; }
    .hv2-next { margin-top: 12px; padding: 9px 14px; }
    .hv2-next-main { font-size: 13px; }
}

/* ---- H-V2 Paket 2: Exit-Intent-Popup ---- */
.hv2-exit { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; }
.hv2-exit[hidden] { display: none; }
.hv2-exit-backdrop { position: absolute; inset: 0; background: rgba(5, 10, 7, 0.72); }
.hv2-exit-card {
    position: relative; max-width: 400px; width: calc(100% - 32px);
    background: #16281d; border: 1px solid #cbb494; border-radius: 14px;
    padding: 26px 22px 20px; text-align: center;
}
.hv2-exit-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #cfc4ae; font-size: 17px; cursor: pointer; }
.hv2-exit-eyebrow { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #cbb494; margin: 0 0 8px; }
.hv2-exit-title { font-size: 20px; color: #ece5d8; margin: 0 0 8px; line-height: 1.3; }
.hv2-exit-text { font-size: 14px; color: #d8cdb9; margin: 0 0 16px; line-height: 1.5; }
.hv2-exit-cta {
    display: block; background: #cbb494 !important; color: #0c1510 !important;
    border: 1px solid #cbb494 !important; border-radius: 999px; padding: 11px 0;
    font-size: 14px; letter-spacing: 1px;
}
.hv2-exit-cta:hover { background: #e6c78f !important; text-decoration: none; }
.hv2-exit-later { background: none; border: 0; color: #a8b5a8; font-size: 12px; margin-top: 10px; cursor: pointer; text-decoration: underline; }

/* ---- H-V2 Paket 2: Painpoint-Finder ---- */
.hv2-finder { padding: 8px 16px 28px; }
.hv2-finder-q { font-size: 16px; color: #ece5d8; margin: 0 0 12px; }
.hv2-finder-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hv2-chip {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(203, 180, 148, 0.45);
    color: #d8cdb9; border-radius: 999px; padding: 10px 18px; font-size: 14px; cursor: pointer;
    transition: border-color 0.15s ease;
}
.hv2-chip:hover { border-color: #cbb494; }
.hv2-chip.is-active { background: #cbb494; color: #0c1510; border-color: #cbb494; }
.hv2-reco {
    max-width: 520px; margin: 16px auto 0; text-align: center;
    background: rgba(255, 255, 255, 0.04); border: 1px solid #cbb494;
    border-radius: 12px; padding: 16px 18px;
}
.hv2-reco[hidden] { display: none; }
.hv2-reco-title { font-size: 17px; color: #ece5d8; margin: 0 0 4px; }
.hv2-reco-text { font-size: 14px; color: #d8cdb9; margin: 0 0 12px; }
@media (max-width: 767.98px) { .hv2-chip { flex: 1 1 45%; padding: 11px 8px; } }

/* ---- H-V2 mobil: Hero entquetschen (nur Cinematic-Landing, #body_cinematic) ---- */
@media (max-width: 767.98px) {
    /* Restplätze-Widget: einzeilig-kompakt statt dreizeiliger Block */
    #body_cinematic .hv2-next {
        margin: 10px auto 0; padding: 7px 12px; gap: 6px 10px;
        max-width: 94%; border-radius: 14px;
    }
    #body_cinematic .hv2-next-label { display: none; }
    #body_cinematic .hv2-next-main { font-size: 13px; line-height: 1.3; }
    #body_cinematic .hv2-next-spots { font-size: 12px; padding: 2px 10px; }

    /* Offer-Zeile + Subtext: kleiner, engere Abstände — weniger Konkurrenz zum CTA */
    #body_cinematic .hero-offer { font-size: 13px; line-height: 1.45; margin: 8px 14px 0; }
    #body_cinematic .hero-sub { font-size: 13px; line-height: 1.5; margin-top: 8px; }

    /* Luft zwischen CTA-Reihe und Widget */
    #body_cinematic .actions { margin-bottom: 2px; }
}

/* ---- H-V2 Runde 3: CTA-UX (Heat-Puls statt Pfeil) + Live-Zeile statt Widget-Kasten ---- */
#body_cinematic .jbtn { transition: transform .15s ease, box-shadow .3s ease, filter .2s ease; }
#body_cinematic .jbtn:hover { filter: brightness(1.08); box-shadow: 0 0 22px rgba(203, 180, 148, 0.45); }
#body_cinematic .jbtn:active { transform: scale(0.97); }
@keyframes hv2Heat { 0%, 100% { box-shadow: 0 0 0 0 rgba(203, 180, 148, 0); } 50% { box-shadow: 0 0 18px 2px rgba(203, 180, 148, 0.35); } }
#body_cinematic .actions .jbtn { animation: hv2Heat 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { #body_cinematic .actions .jbtn { animation: none; } }

.hv2-live {
    background: none; border: 0; display: flex; width: fit-content;
    align-items: center; gap: 8px; margin: 12px auto 0; padding: 4px 8px;
    color: #d8cdb9; font-size: 13.5px; cursor: pointer;
}
.hv2-live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #e08a5b; flex-shrink: 0;
    animation: hv2Dot 1.6s ease-in-out infinite;
}
@keyframes hv2Dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
.hv2-live-low { color: #e08a5b; }
.hv2-live:hover .hv2-live-txt { color: #ece5d8; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hv2-live-dot { animation: none; } }

@media (max-width: 767.98px) {
    .hv2-live { font-size: 12.5px; margin-top: 8px; }
    .hv2-live-name { display: none; }
    /* (Runde 5: Offer-Zeile bleibt sichtbar — Owner will sie behalten) */
}

/* ---- H-V2 Runde 4: echter Heat-Effekt am CTA + Live-Zeile unter dem Subtext ---- */
#body_cinematic .actions .jbtn {
    position: relative; overflow: hidden; isolation: isolate;
    animation: hv2Glow 2.8s ease-in-out infinite;
}
@keyframes hv2Glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(224, 138, 91, 0), 0 0 0 0 rgba(203, 180, 148, 0); }
    50% { box-shadow: 0 0 26px 4px rgba(224, 138, 91, 0.6), 0 0 52px 10px rgba(224, 138, 91, 0.28); }
}
#body_cinematic .actions .jbtn::after {
    content: ''; position: absolute; inset: -2px; z-index: 1; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(224, 138, 91, 0.28) 45%, rgba(193, 108, 44, 0.5) 50%, rgba(224, 138, 91, 0.28) 55%, transparent 70%);
    transform: translateX(-130%) skewX(-8deg);
    animation: hv2Sweep 2.8s ease-in-out infinite;
}
@keyframes hv2Sweep {
    0%, 55% { transform: translateX(-130%) skewX(-8deg); }
    88%, 100% { transform: translateX(130%) skewX(-8deg); }
}
#body_cinematic .actions .jbtn:active { transform: scale(0.96); }
@media (prefers-reduced-motion: reduce) {
    #body_cinematic .actions .jbtn, #body_cinematic .actions .jbtn::after { animation: none; }
}

/* Live-Zeile sitzt jetzt UNTER dem Hero-Subtext — eigener Raum, keine Überlappung */
#body_cinematic .hv2-live { margin: 14px auto 0; position: relative; z-index: 2; }
@media (max-width: 767.98px) { #body_cinematic .hv2-live { margin-top: 10px; } }


/* ---- H-V2 Runde 5: Live-Zeile als eigene Sektion unter dem 100svh-Hero ---- */
.hv2-live-wrap { text-align: center; padding: 14px 12px 4px; position: relative; z-index: 3; }
.hv2-live-wrap .hv2-live { margin: 0 auto; }
@media (max-width: 767.98px) { .hv2-live-wrap { padding-top: 10px; } }

/* ---- H-V2 Runde 6: Live-Zeile unter der Headline, CTA 85vw mobil, Einzeiler-Offer ---- */
#body_cinematic .hv2-live-hero { margin: 10px auto 0; position: relative; z-index: 6; padding: 2px 8px; }
.hv2-sticky-bar { transition: transform 0.25s ease; }
@media (max-width: 767.98px) {
    #body_cinematic .hv2-live-hero { margin-top: 8px; font-size: 12.5px; }
    /* CTA-GRUPPE (Button + Kurse-Link + Gold-Border zusammen) = 85% Screenbreite */
    #body_cinematic .actions { width: 85vw; max-width: 420px; justify-content: space-between; gap: 8px; }
    #body_cinematic .actions .jbtn { flex: 1 1 auto; justify-content: center; padding: 14px 10px; font-size: 13px; }
    #body_cinematic .actions .ghost-link { white-space: nowrap; padding-right: 12px; }
    /* Offer-Zeile: garantiert einzeilig */
    #body_cinematic .hero-offer { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96vw; margin-left: auto; margin-right: auto; }
}


/* ---- H-V2 Runde 8: Cookie-Banner rueckt UEBER die Deal-Leiste (beide sichtbar).
   !important noetig: der Banner traegt Inline-Styles. Nur mobil — Desktop hat keine Leiste. ---- */
@media (max-width: 767.98px) {
    #wy-consent {
        bottom: calc(74px + env(safe-area-inset-bottom)) !important;
        left: 8px !important; right: 8px !important; width: auto !important;
        border-radius: 12px !important;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    }
}
