/* ============================================================
   OAG KONTAKT-BUBBLE - FULL STACK CSS
   ============================================================ */

/* 1. POSITIONIERUNG AM BILDSCHIRMRAND */
.oag-bubble-wrapper { 
    position: fixed; 
    top: 50%; 
    left: 15px; 
    transform: translateY(-50%); 
    z-index: 9999; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 2. DIE BUBBLE (AUSLÖSER) */
.oag-bubble-trigger { 
    display: block; 
    width: 75px; 
    height: 75px; 
    border-radius: 50%; 
    background: #fff; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.25); 
    cursor: pointer; 
    border: 3px solid #007bff; 
    position: relative; 
    animation: oagWiggle 4s infinite; 
    transition: transform 0.3s ease;
}

.oag-bubble-trigger:hover {
    transform: scale(1.05);
}

.oag-bubble-trigger img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 50%; 
    display: block;
}

/* Der blinkende Live-Punkt */
.oag-live-dot { 
    position: absolute; 
    top: 2px; 
    right: 2px; 
    width: 15px; 
    height: 15px; 
    background: #ff0000; 
    border-radius: 50%; 
    border: 2px solid #fff; 
    animation: blink 1.2s infinite; 
    z-index: 10;
}

/* 3. DIE KONTAKT-BOX (DAS PANEL) */
.oag-bubble-box { 
    position: absolute; 
    left: 95px; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 330px; 
    background: #fff; 
    border-radius: 18px; 
    box-shadow: 0 15px 50px rgba(0,0,0,0.3); 
    display: none; /* Steuerung via JS oder Checkbox */
    max-height: 85vh; 
    overflow-y: auto; 
    overflow-x: hidden;
    scrollbar-width: thin;
}

/* Öffnen-Logik via Checkbox */
.oag-bubble__toggle:checked ~ .oag-bubble-box { 
    display: block; 
    animation: oagSlideIn 0.4s ease-out;
}

/* Schließen-Button */
.oag-bubble-box__close { 
    position: absolute; 
    top: 10px; 
    right: 15px; 
    font-size: 32px; 
    cursor: pointer; 
    z-index: 30; 
    color: #fff; 
    text-shadow: 0 0 10px rgba(0,0,0,0.9); 
    line-height: 1;
}

/* 4. VIDEO-CONTAINER & GROSSES POSTERBILD */
.oag-video-container { 
    position: relative;
    width: 100%; 
    background: #000; 
    line-height: 0;
    cursor: pointer;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.oag-video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* VIDEO-OVERLAY & PLAY-BUTTON UNTEN RECHTS */
.oag-video-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    display: flex; 
    align-items: flex-end;    /* Button nach unten */
    justify-content: flex-end; /* Button nach rechts */
    padding: 15px;            /* Sicherheitsabstand zur Ecke */
    background: rgba(0,0,0,0.15); 
    transition: background 0.3s; 
    z-index: 5; 
}

.oag-video-overlay:hover { 
    background: rgba(0,0,0,0.05); 
}

.oag-play-button { 
    width: 55px; 
    height: 55px; 
    background: rgba(255, 255, 255, 0.95); 
    border-radius: 50%; 
    position: relative; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); 
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.oag-play-button::after { 
    content: ''; 
    position: absolute; 
    top: 50%; 
    left: 55%; 
    transform: translate(-50%, -50%); 
    border-style: solid; 
    border-width: 10px 0 10px 18px; 
    border-color: transparent transparent transparent #007bff; 
}

.oag-play-button:hover {
    transform: scale(1.15);
}

/* 5. INTERAKTIONS-BUTTONS (Call, WA, Video) */
.oag-btn-group { 
    padding: 20px 15px 10px 15px; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.oag-call-btn, .oag-whatsapp-btn, .oag-video-call-btn { 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px; 
    border-radius: 10px; 
    font-weight: bold; 
    text-decoration: none !important; 
    color: #fff !important; 
    transition: all 0.2s ease; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.oag-call-btn { background: #007bff; }
.oag-whatsapp-btn { background: #25D366; }
.oag-video-call-btn { background: #6e41e2; } /* Video-Call Violett */

.oag-call-btn:hover, .oag-whatsapp-btn:hover, .oag-video-call-btn:hover { 
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 6. CONTENT-BEREICHE */
.oag-intro { 
    padding: 10px 18px 20px 18px; 
    font-size: 14px; 
    line-height: 1.6; 
    color: #444;
}

.oag-form-container { 
    padding: 20px 15px; 
    border-top: 1px solid #f0f0f0; 
    background: #fafafa;
}

/* 7. ANIMATIONEN & KEYFRAMES */
@keyframes oagWiggle { 
    0%, 90% { transform: rotate(0); } 
    92% { transform: rotate(-10deg); } 
    95% { transform: rotate(10deg); } 
    98% { transform: rotate(-6deg); } 
}

@keyframes blink { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0.2; } 
}

@keyframes oagSlideIn {
    from { opacity: 0; transform: translateY(-45%) translateX(-20px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* RESPONSIVE ANPASSUNGEN (Handy unten links + zentrierter Look) */
@media (max-width: 480px) {
    
    /* 1. Wrapper Position */
    .oag-bubble-wrapper {
        top: auto;
        bottom: 25px;
        left: 20px;
        transform: none;
    }

    /* 2. Bubble etwas kleiner */
    .oag-bubble-trigger {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }

    /* 3. Box kompakter & besser positioniert */
    .oag-bubble-box {
        left: -5px;      /* Leicht versetzt für optische Zentrierung über Bubble */
        bottom: 75px;    /* Abstand zur Bubble */
        top: auto;
        width: 260px;    /* Box-Breite reduziert */
        transform: none;
        max-height: 70vh; /* Etwas kürzer, damit man oben noch die Seite sieht */
        border-radius: 12px;
    }

    /* 4. Abstände innerhalb der Box reduzieren */
    .oag-btn-group {
        padding: 12px;
        gap: 8px;
    }

    .oag-call-btn, .oag-whatsapp-btn, .oag-video-call-btn {
        padding: 10px;
        font-size: 14px; /* Text etwas kleiner für Handy */
    }

    .oag-intro {
        padding: 5px 12px 15px 12px;
        font-size: 13px;
    }

    /* 5. Animation (kommt sanft von unten hoch) */
    @keyframes oagSlideIn {
        from { opacity: 0; transform: translateY(15px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
