.atp-container {
    position: relative;
    box-sizing: border-box;
    padding: 30px 24px;
    border-radius: 0px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    border: 1px solid #e5e7eb;
}

.atp-header {
    margin-bottom: 16px;
}

.atp-title {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    max-width: 95%;
    text-wrap-style: balance;
}

.atp-speaker {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.atp-media-wrapper {
    margin-bottom: 12px;
}

.atp-audio-element {
    width: 100%;
    outline: none;
    border-radius: 30px;
}

/* Toggle Button */
.atp-toggle-wrapper {
    margin-bottom: 10px;
}

.atp-toggle-btn {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.atp-toggle-btn:hover {
    background-color: #e5e7eb;
    color: #111827;
}

/* Transkript Sektion */
.atp-transcript-section {
    border-top: 1px solid #f3f4f6;
    padding-top: 14px;
    margin-top: 14px;
}

.atp-transcript-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 12px;
}

.atp-hint {
    font-style: italic;
    font-weight: 400;
}

.atp-transcript-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 8px;
}

/* Scrollbar */
.atp-transcript-list::-webkit-scrollbar {
    width: 5px;
}
.atp-transcript-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.atp-transcript-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Transkript Cues */
.atp-cue {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-left-color 0.2s ease;
}

.atp-cue:hover {
    background-color: #f8fafc;
}

.atp-timestamp {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-family: monospace;
    color: #9ca3af;
    margin-top: 2px;
}

.atp-cue-text {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #374151;
}

/* Aktiver Cue */
.atp-cue.is-active {
    background-color: #a1d3d03b;
    border-left: 3px solid var(--Tuerkis);
}

.atp-cue.is-active .atp-cue-text {
    font-weight: 600;
    color: var(--Dunkelblau);
}

.atp-cue.is-active .atp-timestamp {
    color: var(--Dunkelblau);
    font-weight: 600;
}

.atp-loading, .atp-empty {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

/* ==========================================
   Sprechblasen Dreiecke
   ========================================== */
.atp-container.has-bubble {
    margin-bottom: 32px; /* Schafft Platz für die 32px hohe Spitze darunter */
}

.atp-container.has-bubble::after {
    content: '';
    display: block;
    position: absolute;
    width: 32px;
    height: 32px;
    bottom: -32px;
    background-color: #ffffff; /* Fallback, wird dynamisch via Elementor überschrieben */
    pointer-events: none;
}

/* Dreieck Rechts */
.atp-container.has-bubble.bubble-right::after {
    right: -1px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Dreieck Links */
.atp-container.has-bubble.bubble-left::after {
    left: -1px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}