/* ============================================================
   Mondphase Plugin Styles
   ============================================================ */

/* Basis-Widget */
.mondphase-widget {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em 1em;
    padding: 0.8em 1.2em;
    border-radius: 8px;
    font-family: inherit;
    line-height: 1.4;
    margin-bottom: 0.6em;
    background: #f7f7f9;
    border-left: 4px solid #aaa;
    transition: background 0.2s;
}

/* Vollmond-Akzentfarbe */
.mondphase-vollmond {
    background: #fffbee;
    border-left-color: #f0b429;
}

/* Neumond-Akzentfarbe */
.mondphase-neumond {
    background: #f2f2f7;
    border-left-color: #333;
}

/* Icon */
.mondphase-icon {
    font-size: 2em;
    line-height: 1;
    flex-shrink: 0;
}

/* Inhaltsbereich */
.mondphase-name {
    font-weight: 700;
    font-size: 1.05em;
    color: #222;
    display: block;
    width: 100%;
    flex-basis: 100%;
}

.mondphase-datum {
    font-size: 0.95em;
    color: #444;
}

.mondphase-countdown {
    font-size: 0.88em;
    color: #777;
    font-style: italic;
}

/* -----------------------------------------------------------
   Kompaktes Stil
   ----------------------------------------------------------- */
.mondphase-stil-kompakt.mondphase-widget {
    padding: 0.4em 0.8em;
    gap: 0.3em 0.6em;
    border-radius: 4px;
}

.mondphase-stil-kompakt .mondphase-icon {
    font-size: 1.3em;
}

.mondphase-stil-kompakt .mondphase-name {
    font-size: 0.9em;
    flex-basis: auto;
    width: auto;
}

.mondphase-stil-kompakt .mondphase-datum {
    font-size: 0.85em;
}

.mondphase-stil-kompakt .mondphase-countdown {
    font-size: 0.8em;
}

/* -----------------------------------------------------------
   Karten-Stil (für Gutenberg / volle Breite)
   ----------------------------------------------------------- */
.mondphase-stil-karte.mondphase-widget {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5em;
    border-left: none;
    border-top: 4px solid #f0b429;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.mondphase-stil-karte.mondphase-neumond {
    border-top-color: #333;
}

.mondphase-stil-karte .mondphase-icon {
    font-size: 3em;
    margin-bottom: 0.2em;
}

.mondphase-stil-karte .mondphase-name {
    font-size: 1.2em;
    width: auto;
    flex-basis: auto;
    text-align: center;
}

/* -----------------------------------------------------------
   Liste mehrerer Termine
   ----------------------------------------------------------- */
.mondphase-liste {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

/* -----------------------------------------------------------
   Dark Mode
   ----------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    .mondphase-widget {
        background: #2a2a2e;
        border-left-color: #666;
    }
    .mondphase-vollmond {
        background: #2e2a1a;
        border-left-color: #f0b429;
    }
    .mondphase-neumond {
        background: #1e1e24;
        border-left-color: #aaa;
    }
    .mondphase-name    { color: #eee; }
    .mondphase-datum   { color: #ccc; }
    .mondphase-countdown { color: #999; }
}

/* Fehlermeldung */
.mondphase-error {
    color: #c00;
    font-style: italic;
}
