@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&display=swap');

.wp-woche {
    --wp-border:      #dee2e8;
    --wp-text:        #1a1a2e;
    --wp-text-muted:  #6b7280;
    --wp-surface-2:   #eef0f3;
    --wp-mono:        'DM Mono', monospace;
    --wp-primary:     var(--color-primary, #3b6fc4);
    --wp-primary-bg:  rgba(59,111,196,.10);
    --wp-blue:        var(--wp-primary);
    --wp-blue-bg:     var(--wp-primary-bg);
    --wp-red:         #c0392b;
    --wp-red-bg:      rgba(192,57,43,.10);
    --wp-yellow:      #d4820a;
    --wp-yellow-bg:   rgba(212,130,10,.10);

    font-family: inherit;
    color: var(--wp-text);
    max-width: 1100px;
    margin: 0 auto;
}

.wp-grid {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--wp-border);
    border-radius: 8px;
    overflow: hidden;
}
@media (min-width: 900px) {
    .wp-grid { grid-template-columns: 1fr 360px; }
    .wp-left { display: flex; flex-direction: column; }
}

.wp-day-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    border-bottom: 1px solid var(--wp-border);
}
.wp-day-row:last-child { border-bottom: none; }

.wp-col-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border-right: 1px solid var(--wp-border);
    gap: 1px;
    min-height: 52px;
}
.wp-dayname {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.wp-daydate {
    font-family: var(--wp-mono);
    font-size: 11px;
    color: var(--wp-text-muted);
}
.wp-nextbadge {
    font-size: 9px;
    font-style: italic;
    color: var(--wp-text-muted);
    margin-top: 1px;
    white-space: nowrap;
}
.wp-today .wp-col-day {
    background-color: var(--wp-surface-2) !important;
    border-right: 3px solid var(--wp-border) !important;
}
.wp-today .wp-dayname { font-weight: 700; }

.wp-col-events {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
}
.wp-empty { color: var(--wp-text-muted); font-size: 13px; padding: 4px 2px; }

/* ── Event-Chip: alles mit !important um Theme zu überschreiben ── */
.wp-woche .wp-event {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    padding: 5px 8px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    color: var(--wp-text) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-left: 3px solid transparent !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-family: inherit !important;
    line-height: 1.35 !important;
    text-align: left !important;
    width: 100% !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.wp-woche .wp-event:hover { filter: brightness(.93) !important; }

.wp-woche .wp-event--mobile  { display: flex !important; }
.wp-woche .wp-event--desktop { display: none !important; }
@media (min-width: 900px) {
    .wp-woche .wp-event--mobile  { display: none !important; }
    .wp-woche .wp-event--desktop { display: flex !important; }
}

.wp-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
    background: var(--wp-border) !important;
}
@media (min-width: 900px) {
    .wp-dot { width: 7px; height: 7px; }
}
.wp-woche .wp-color-blue .wp-dot   { background: var(--wp-blue)   !important; }
.wp-woche .wp-color-red .wp-dot    { background: var(--wp-red)    !important; }
.wp-woche .wp-color-yellow .wp-dot { background: var(--wp-yellow) !important; }

.wp-etime {
    font-family: var(--wp-mono);
    font-size: 11px;
    color: var(--wp-text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}
.wp-etitle {
    font-size: 13px;
    font-weight: 500;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}
.wp-live-badge {
    font-size: 10px;
    background: rgba(220,38,38,.12) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(220,38,38,.3) !important;
    border-radius: 4px;
    padding: 1px 5px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}
.wp-series { font-size: 11px; color: var(--wp-text-muted); flex-shrink: 0; }

.wp-detail { display: none; }
@media (min-width: 900px) {
    .wp-detail {
        display: block;
        border-left: 1px solid var(--wp-border);
        overflow: hidden;
    }
}
.wp-detail-item { display: none; }

.wp-detail-img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--wp-border); }
.wp-detail-body { padding: 16px 18px 20px; transition: background .2s; }
.wp-detail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.wp-detail-badge { font-size: 11px; font-family: var(--wp-mono); font-weight: 500; color: var(--wp-text-muted); }
.wp-detail-badge.wp-color-blue   { color: var(--wp-blue); }
.wp-detail-badge.wp-color-red    { color: var(--wp-red); }
.wp-detail-badge.wp-color-yellow { color: var(--wp-yellow); }
.wp-badge-live   { color: #dc2626; }
.wp-badge-series { color: var(--wp-text-muted); }

.wp-detail-title { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 10px; word-break: break-word; }
.wp-detail-title.wp-color-blue   { color: var(--wp-blue); }
.wp-detail-title.wp-color-red    { color: var(--wp-red); }
.wp-detail-title.wp-color-yellow { color: var(--wp-yellow); }

.wp-detail-desc { font-size: 13px; line-height: 1.65; color: var(--wp-text-muted); margin-bottom: 14px; }
.wp-detail-desc * { font-size: 13px !important; color: var(--wp-text-muted) !important; }
.wp-detail-price { font-size: 14px; font-weight: 600; color: var(--wp-text); margin-bottom: 14px; }
.wp-detail-link {
    display: inline-block;
    background: var(--wp-primary) !important;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity .15s;
}
.wp-detail-link:hover { opacity: .85; }

.wp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 10px 4px 4px 0;
    margin-top: 4px;
    border-top: 1px solid var(--wp-border);
    padding-left: 72px;
}
.wp-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--wp-text-muted); }
.wp-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.wp-legend-dot-blue   { background: var(--wp-blue)   !important; }
.wp-legend-dot-red    { background: var(--wp-red)    !important; }
.wp-legend-dot-yellow { background: var(--wp-yellow) !important; }

/* ── Megamenü-Fix: Einträge untereinander statt nebeneinander ── */
li.wp-auto-event,
li.wp-auto-event-all {
    width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* ── Tabellarisches Menü-Layout ── */
li.wp-auto-event > a {
    display: grid !important;
    grid-template-columns: 14px 32px 42px 1fr !important;
    align-items: center !important;
    gap: 0 8px !important;
    padding: 5px 12px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Farbpunkt */
.wpe-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Wochentag */
.wpe-weekday {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: inherit;
}

/* Uhrzeit */
.wpe-time {
    font-size: 12px;
    color: #888;
    font-family: 'DM Mono', monospace;
}

/* Titel */
.wpe-title {
    font-size: 13px;
    font-weight: 500;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Livestream-Badge im Menü */
.wpe-live {
    display: inline-block;
    font-size: 10px;
    border: 1px solid rgba(59,111,196,.5);
    color: #3b6fc4;
    border-radius: 3px;
    padding: 1px 4px;
    margin-left: 5px;
    white-space: nowrap;
    vertical-align: middle;
}

/* "Alle Veranstaltungen" Link */
li.wp-auto-event-all > a {
    font-size: 12px !important;
    padding: 6px 12px !important;
    color: #888 !important;
    display: block !important;
}
li.wp-auto-event-all > a:hover {
    color: #3b6fc4 !important;
}
