/*
 * Stylesheet fuer das Mondphasen-Widget.
 * Der Hintergrund ist transparent, damit sich das Widget optisch an jedes
 * aktive WordPress-Theme anpasst. Textfarben werden ueber "inherit" bzw.
 * "currentColor" vom umgebenden Theme uebernommen.
 */

.mondphasen-widget {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-family: inherit;
    max-width: 420px;
    box-sizing: border-box;
}

.mondphasen-current {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid currentColor;
    opacity: 0.95;
}

.mondphasen-current-label {
    font-weight: 400;
    opacity: 0.8;
}

.mondphasen-current-value {
    font-weight: 700;
}

.mondphasen-illumination {
    font-size: 0.85em;
    opacity: 0.7;
}

.mondphasen-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mondphasen-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px dashed currentColor;
    background: transparent;
}

.mondphasen-item:last-child {
    border-bottom: none;
}

.mondphasen-phase-name {
    font-weight: 600;
    flex: 1 1 40%;
}

.mondphasen-phase-date {
    flex: 1 1 30%;
    opacity: 0.85;
    text-align: right;
}

.mondphasen-phase-days {
    flex: 1 1 100%;
    font-size: 0.85em;
    opacity: 0.7;
    text-align: right;
}

@media (min-width: 480px) {
    .mondphasen-phase-days {
        flex: 0 0 auto;
        text-align: left;
    }
}
