/* Jahreskalender – Termin-Karten (Homepage-Einbettung und Vorschau in der Adressverwaltung) */

.vwkc-wrap {
    max-width: 900px;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2933;
}

.vwkc-ev {
    display: flex;
    margin: 0 0 22px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.vwkc-ev:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

/* Farbige Datumsfläche links (Farbe pro Termin frei wählbar) */
.vwkc-ev-date {
    flex: 0 0 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 12px;
}
.vwkc-ev-date-main {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.15;
}
.vwkc-ev-date-sub {
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.92;
}

.vwkc-ev-body {
    flex: 1;
    min-width: 0;
    padding: 14px 18px 16px;
}
.vwkc-ev-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.vwkc-ev-head h3 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    line-height: 1.25;
    color: #111;
}
.vwkc-ev-chip {
    flex: 0 0 auto;
    background: rgba(0, 0, 0, 0.08);
    color: #33414d;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.vwkc-ev-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 8px;
}
.vwkc-ev-meta {
    list-style: none;
    margin: 6px 0;
    padding: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}
.vwkc-ev-links {
    margin: 8px 0 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.vwkc-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: #d6e6f7;
    color: #1f4d7a;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
}
.vwkc-pill:hover { background: #bcd7f1; }

.vwkc-ev-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.vwkc-btn {
    background: #4a90d9;
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}
.vwkc-btn:hover { background: #326199; }
.vwkc-link {
    color: #1f4d7a;
    font-size: 0.82rem;
    text-decoration: underline;
}

.vwkc-empty {
    padding: 24px;
    text-align: center;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    color: #444;
}

.vwkc-sub {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
}
.vwkc-sub a { color: #1f4d7a; }

/* Eigenständige Seite (ohne ?embed=1) */
.vwkc-page-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 auto 18px;
    max-width: 900px;
}
.vwkc-page-head h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #4a90d9;
}
.vwkc-page-intro {
    max-width: 900px;
    margin: 0 auto 22px;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 560px) {
    .vwkc-ev { flex-direction: column; }
    .vwkc-ev-date { flex-basis: auto; padding: 12px; }
    .vwkc-ev-date-main { font-size: 1.35rem; }
    .vwkc-ev-head { flex-direction: column; gap: 4px; }
}

/* ---------- Erweiterungen: Foto, Karten-Link, Monatsüberschriften, "Nächster Termin" ---------- */

.vwkc-month {
    margin: 30px 0 14px;
    padding-bottom: 6px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #326199;
    border-bottom: 2px solid rgba(50, 97, 153, 0.35);
}
.vwkc-month:first-child { margin-top: 4px; }

.vwkc-map {
    margin-left: 6px;
    font-size: 0.82rem;
    color: #1f4d7a;
    text-decoration: none;
    white-space: nowrap;
}
.vwkc-map:hover { text-decoration: underline; }

/* Foto rechts neben dem Text */
.vwkc-ev-img {
    flex: 0 0 210px;
    max-width: 210px;
    background: rgba(0, 0, 0, 0.08);
}
.vwkc-ev-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Der nächste anstehende Termin wird hervorgehoben */
.vwkc-ev--next {
    box-shadow: 0 0 0 2px #4a90d9, 0 6px 18px rgba(0, 0, 0, 0.2);
}
.vwkc-ev--next .vwkc-ev-date-main { font-size: 1.85rem; }
.vwkc-ev--next .vwkc-ev-chip { background: #4a90d9; color: #fff; }
.vwkc-ev-ribbon {
    display: inline-block;
    margin: 0 0 6px;
    padding: 2px 10px;
    border-radius: 4px;
    background: #4a90d9;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.vwkc-pdf {
    margin: 4px 0 18px;
    text-align: right;
    font-size: 0.85rem;
}
.vwkc-pdf a { color: #1f4d7a; }

@media (max-width: 560px) {
    .vwkc-ev-img { flex-basis: auto; max-width: none; height: 180px; }
}

/* ---------- Spezielle Anlässe (stehen zuoberst, Datum jetzt reservieren) ---------- */
.vwkc-month--special {
    color: #b36b00;
    border-bottom-color: rgba(208, 155, 0, 0.55);
}
.vwkc-special-intro {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff6dd;
    border: 1px solid #e2b93b;
    font-size: 0.95rem;
    line-height: 1.45;
}
.vwkc-ev--special {
    box-shadow: 0 0 0 2px #e2b93b, 0 4px 14px rgba(0, 0, 0, 0.16);
}
.vwkc-ev-ribbon--special {
    background: #d09b00;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.78rem;
}

/* Rechts oben in jeder Karte: Countdown-Chip und ganz rechts das Brief-Symbol (= Erinnerung per Mail) */
.vwkc-ev-tags {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vwkc-mail {
    font-size: 1.15rem;
    line-height: 1;
    color: #5b7391;
    cursor: help;
}
.vwkc-mail-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: help;
}
.vwkc-mail-date {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    color: #5b7391;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .vwkc-ev-tags { align-self: flex-end; }
}

/* Anmeldeschluss unten in der farbigen Datumsfläche */
.vwkc-ev-date-deadline {
    display: block;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid currentColor;
    border-top-color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 600;
}

/* Schulferien Kanton Luzern: gelber Hinweis in der Karte und gelbe Zeile in der Liste (gleiches Gelb wie im Käfer-Kalender) */
.vwkc-ev-date { position: relative; }
.vwkc-ev--school .vwkc-ev-date::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: #f2b84b;
}
.vwkc-ev-chip--school {
    background: #fdf1d8;
    color: #7a5200;
    box-shadow: inset 0 0 0 1px #f2b84b;
}
.vwkc-ev--next .vwkc-ev-chip--school { background: #fdf1d8; color: #7a5200; }
.vwkc-month {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
}
.vwkc-month > span:first-child { margin-right: auto; }
.vwkc-month-hol {
    padding: 2px 10px;
    border-radius: 999px;
    background: #fdf1d8;
    color: #7a5200;
    box-shadow: inset 0 0 0 1px #f2b84b;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: help;
}
.vwkc-month-hol-date { font-weight: 400; }
/* Monat ohne Club-Termin: Leiste etwas blasser, darunter ein kurzer Hinweis */
.vwkc-month--empty { margin-bottom: 6px; color: #5b7391; }
.vwkc-month-none {
    margin: 0 0 4px;
    font-size: 0.85rem;
    font-style: italic;
    color: #6b7680;
}
.vwkc-month-none + .vwkc-month { margin-top: 18px; }
