/* ── EINFÄRBUNGEN – unverändert ── */
.inplaykalender_tag { text-align: center; font-size: 9px; letter-spacing: 1px; padding: 3px;}
.szenen { background-color: #C8B6CC; }
.szenen strong { color: #543D59 !important; }
.geburtstag { background-color: #EBD39D; }
.geburtstag strong { color: #6E644E !important; }
.timeline { background-color: #BADBAF;}
.timeline strong { color: #3D4F37 !important; }
.event { background-color: #ABD9D8; }
.event strong { color: #4D6E6D !important; }
.szenentimeline { background: linear-gradient(to left top, #EBD39D 50%, #BADBAF 50%); }
.szenentimeline strong { color: #3D4F37 !important; }
.szenengeburtstag { background: linear-gradient(to left top, #EBD39D 50%, #C8B6CC 50%); }
.szenenevent { background: linear-gradient(to left top, #C8B6CC 50%, #ABD9D8 50%); }
.szenengeburtstag strong { color: #543D59 !important; }
.geburtstagtimeline { background: linear-gradient(to left top, #EBD39D 50%, #BADBAF 50%); }
.geburtstagtimeline strong { color: #6E644E !important; }
.geburtstagevent { background: linear-gradient(to left top, #C8B6CC 50%, #ABD9D8 50%); }
.timelineevent { background: linear-gradient(to left top, #BADBAF 50%, #ABD9D8 50%); }
.szenengeburtstagtimeline { background: linear-gradient(to left top, #EBD39D 33%, #C8B6CC 33%, #C8B6CC 66%, #BADBAF 66%); }
.szenengeburtstagtimeline strong { color: #543D59 !important; }
.szenengeburtstagevent { background: linear-gradient(to left top, #EBD39D 33%, #C8B6CC 33%, #C8B6CC 66%, #ABD9D8 66%); }
.szenentimelineevent { background: linear-gradient(to left top, #EBD39D 33%, #BADBAF 33%, #BADBAF 66%, #ABD9D8 66%); }
.geburtstagtimelineevent { background: linear-gradient(to left top, #EBD39D 33%, #BADBAF 33%, #BADBAF 66%, #ABD9D8 66%); }
.szenengeburtstagtimelineevent { background: linear-gradient(to left top, #EBD39D 25%, #C8B6CC 25%, #C8B6CC 50%, #BADBAF 50%, #BADBAF 75%, #ABD9D8 75%); }

/* ── KALENDER POPUP (original) ── */
.calpop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.5); z-index: 1000; opacity:0; transition: .5s ease-in-out; pointer-events: none; }
.calpop:target { opacity:1; pointer-events: auto; }
.calpop > .pop { text-align: justify; background: rgba(255,255,255,8); width: 800px; position: relative; margin: 5% auto; padding: 10px; z-index: 1002; font-size: 11px; }
.closepop { position: absolute; right: -5px; top:-5px; width: 100%; height: 100%; z-index: 999; }
.inplaykalender-eventlist { max-height: 140px; overflow: auto; padding-right: 5px;}

/* ── NEUES KALENDER LAYOUT ── */
.kal-wrap {
    border: 1px solid #e8d5e8;
    background: #fdf5fb;
    margin-bottom: 10px;
    overflow: hidden;
}

.kal-header {
    padding: 20px 28px;
    background: linear-gradient(190deg, rgba(255,221,224,0.76) 5%, rgba(128,108,154,0.43) 70%),
                url(../../../images_dust/background_footer.jpg) center/cover;
    background-attachment: fixed;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #e8d5e8;
}

.kal-header-title {
    font-family: 'Jost', sans-serif;
    font-size: 9px; letter-spacing: 4px; text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}
.kal-header-title strong { color: #ffdde0; font-size: 13px; }
.kal-header-link { color: rgba(255,221,224,0.7); font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 14px; text-decoration: none; }
.kal-header-map { color: rgba(255,221,224,0.6); font-size: 24px; text-decoration: none; transition: color 0.15s; }
.kal-header-map:hover { color: rgba(255,221,224,0.95); }

.kal-body {
    display: flex;
}

/* ── LINKE SPALTE: Kalender ── */
.kal-left {
    flex: 1;
    padding: 10px;
    overflow: hidden;
    border-right: 1px solid #e8d5e8;
}

/* Clearfix für die float-Monate */
.kal-months-container { overflow: hidden; }
.kal-months-container::after { content: ''; display: table; clear: both; }

/* Monatsheader */
#mini-kalender { font-size: 7px; width: 100%; }
#mini-kalender td { padding: 3px; }
.month_year { 
    color: #5d457b;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 5px;
} 

.month { font-family: 'Jost', sans-serif; color: #fff; font-size: 7px; letter-spacing: 1px; font-weight: 300; }

/* Monat-Container: width kommt vom PHP via {$width}% */
.kal-months-container > div { box-sizing: border-box; }

/* Monatsheader-Farbe */
.kal-months-container .tcat {
    background: linear-gradient(281deg, rgba(255,221,224,0.76) 5%, rgba(128,108,154,0.43) 70%) !important;
    padding: 6px !important;
}
.kal-months-container .thead {
    background: rgba(128,108,154,0.25) !important;
    padding: 3px !important;
}

/* ── LEGENDE ── */
.kal-legend { display: flex; gap: 12px; flex-wrap: wrap; padding: 8px 4px; border-top: 1px solid #e8d5e8; clear: both; margin-top: 6px; }
.kal-legend-item { display: flex; align-items: center; gap: 5px; font-size: 8px; color: #8a7090; letter-spacing: 0.1em; text-transform: uppercase; font-family: 'Jost', sans-serif; }
.kal-legend-dot { width: 10px; height: 10px; flex-shrink: 0; }

/* ── RECHTE SPALTE: Wetter + News ── */
.kal-right {
    width: 300px;
    flex-shrink: 0;
    padding: 14px;
    display: flex; flex-direction: column; gap: 12px;
    background: linear-gradient(170deg, #fff8fb 0%, #f3e8f5 100%);
}

.kal-right-label { font-size: 8px; letter-spacing: 0.25em; text-transform: uppercase; color: #b8a5d0; font-weight: 500; font-family: 'Jost', sans-serif; }

.kal-weather { background: #fff8fb; border: 1px solid #e8d5e8; padding: 10px; display: flex; align-items: center; gap: 10px; }
.kal-weather-icon { flex-shrink: 0; }
.kal-weather-icon img { display: block; }
.kal-weather-info { flex: 1; }
.kal-weather-temp { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 28px; color: #3a2a42; line-height: 1; }
.kal-weather-desc { font-size: 10px; color: #8a7090; margin-top: 3px; }
.kal-weather-details { display: flex; gap: 8px; margin-top: 5px; }
.kal-weather-detail { font-size: 9px; color: #8a7090; }

.kal-news { display: flex; flex-direction: column; gap: 8px; }
.kal-news-item { padding: 8px 10px; background: #fff8fb; border: 1px solid #e8d5e8; border-left: 2px solid #b8a5d0; text-decoration: none; display: block; transition: border-color 0.15s, background 0.15s; }
.kal-news-item:hover { border-left-color: #9d7aaa; background: rgba(184,165,208,0.07); }
.kal-news-date { font-size: 8px; letter-spacing: 0.15em; text-transform: uppercase; color: #b8a5d0; margin-bottom: 3px; font-family: 'Jost', sans-serif; }
.kal-news-text { font-size: 12px; color: #3a2a42; line-height: 1.5; }
.kal-news-more { font-size: 8px; color: #b8a5d0; margin-top: 4px; letter-spacing: 0.1em; font-family: 'Jost', sans-serif; }

/* ── NEWS POPUP ── */
.kal-popup { position: fixed; inset: 0; background: rgba(40,20,50,0.6); z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.5s ease-in-out; display: flex; align-items: center; justify-content: center; }
.kal-popup:target { opacity: 1; pointer-events: auto; }
.kal-popup-close { position: absolute; inset: 0; z-index: 1; }
.kal-popup-box { position: relative; z-index: 2; background: #fdf5fb; border: 1px solid #e8d5e8; border-top: 3px solid #9d7aaa; width: 500px; max-width: 90%; padding: 28px 30px; }
.kal-popup-close-btn { position: absolute; top: 12px; right: 14px; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: #8a7090; text-decoration: none; font-family: 'Jost', sans-serif; }
.kal-popup-close-btn:hover { color: #9d7aaa; }
.kal-popup-label { font-size: 8px; letter-spacing: 0.25em; text-transform: uppercase; color: #b8a5d0; margin-bottom: 6px; font-family: 'Jost', sans-serif; }
.kal-popup-title { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px; color: #3a2a42; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #e8d5e8; }
.kal-popup-text { font-size: 13px; color: #8a7090; line-height: 1.85; text-align: justify; padding: 10px; }

/* Wochentage im Kalender – eigene Klasse statt .thead */
.kal-weekday-cell {
    background: rgba(128,108,154,0.25);
    padding: 4px 2px;
    text-align: center;
}

.kal-weekday-cell .month {
    font-family: 'Jost', sans-serif;
    color: #fff;
    font-size: 7px;
    letter-spacing: 1px;
    font-weight: 300;
    float: none !important;
    gap: 0 !important;
    position: static !important;
    z-index: auto !important;
    text-align: center !important;
}