/* =============================================================================
   Aktuelles Startseite – Frontend Widget Styles
   ============================================================================= */

.ota-widget {
    background-color: #f2f7e8;
    border-left: 4px solid #6D952A;
    border-radius: 0 10px 10px 0;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(109, 149, 42, 0.12);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Header ── */
.ota-widget__header {
    background-color: #6D952A;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ota-widget__header-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
}

.ota-widget__header-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    flex: 1;
}

.ota-widget__counter {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.18);
    padding: 2px 8px;
    border-radius: 100px;
    white-space: nowrap;
}

/* ── Body ── */
.ota-widget__body {
    padding: 20px 20px 16px;
}

/* ── Slider ── */
.ota-slider {
    display: grid;        /* alle Slides übereinander */
}

.ota-slide {
    grid-area: 1 / 1;    /* gleiche Rasterzelle → kein Höhensprung */
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
}

.ota-slide--active {
    opacity: 1;
    pointer-events: auto;
}

/* ── Slide content ── */
.ota-slide__inner {
    padding: 0;
}

.ota-slide__title-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 10px;
}

.ota-slide__icon {
    color: #6D952A;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    margin-top: 1px;
}

.ota-slide__title {
    font-size: 19px;
    font-weight: 700;
    color: #3a5216;
    margin: 0;
    line-height: 1.3;
}

.ota-slide__content {
    font-size: 18px;
    color: #374151;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .ota-slide__title   { font-size: 18px; }
    .ota-slide__content { font-size: 17px; }
}

.ota-slide__content p {
    margin: 0 0 8px;
}
.ota-slide__content p:last-child { margin-bottom: 0; }

.ota-slide__content strong { font-weight: 700; color: #1e293b; }
.ota-slide__content em     { font-style: italic; }
.ota-slide__content a      { color: #6D952A; text-decoration: underline; }
.ota-slide__content a:hover{ color: #5a7d22; }

.ota-slide__content ul,
.ota-slide__content ol {
    margin: 6px 0 8px 18px;
    padding: 0;
}
.ota-slide__content li { margin-bottom: 3px; }

.ota-slide__date {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 12px;
}

/* ── Dots ── */
.ota-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
}

.ota-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #c5dea0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
    outline: none;
}

.ota-dot--active {
    background-color: #6D952A;
    transform: scale(1.35);
}

.ota-dot:hover:not(.ota-dot--active) {
    background-color: #a8c870;
    transform: scale(1.15);
}

/* ── Navigation bar ── */
.ota-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.ota-nav__btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #c5dea0;
    color: #6D952A;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
}

.ota-nav__btn:hover {
    background-color: #6D952A;
    border-color: #6D952A;
    color: #fff;
    transform: scale(1.05);
}

.ota-nav__btn .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

/* ── Progress bar ── */
.ota-progress {
    flex: 1;
    height: 3px;
    background-color: #c5dea0;
    border-radius: 3px;
    overflow: hidden;
}

.ota-progress__bar {
    height: 100%;
    width: 0;
    background-color: #6D952A;
    border-radius: 3px;
    animation: ota-progress linear forwards;
}

@keyframes ota-progress {
    from { width: 0%;   }
    to   { width: 100%; }
}

/* ── Empty state in editor ── */
.ota-widget--empty .ota-widget__body {
    padding: 28px 20px;
    text-align: center;
}
