/* =========================================================
   HEADER-INPLAYKALENDER
   ========================================================= */

#header_inplaykalender {
    width: 95%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;

    color: #e1c9a6;
    background: #160d08;

    border-top: 1px solid #50321d;
    border-right: 1px solid #3f2818;
    border-bottom: 1px solid #50321d;
    border-left: 4px solid #8c572a;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.28),
        inset 0 0 35px rgba(0, 0, 0, 0.18);
}

#header_inplaykalender *,
#header_inplaykalender *::before,
#header_inplaykalender *::after {
    box-sizing: border-box;
}


/* =========================================================
   KOPFZEILE
   ========================================================= */

.header_inplaykalender-headline {
    width: 100%;
    min-height: 45px;
    padding: 11px 18px;

    display: flex;
    align-items: center;
    gap: 14px;

    color: #d6a363;

    background:
        linear-gradient(
            90deg,
            rgba(58, 36, 22, 0.92),
            rgba(36, 20, 12, 0.92)
        );

    border-bottom: 1px solid #68401f;
}

.header_inplaykalender-title {
    flex-shrink: 0;

    font-family: Cinzel, Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.header_inplaykalender-year {
    position: relative;
    padding-left: 15px;

    color: #9f876b;

    font-family: Georgia, serif;
    font-size: 10px;
    font-style: italic;
    line-height: 1.2;
}

.header_inplaykalender-year::before {
    content: "◆";
    position: absolute;
    top: 2px;
    left: 0;

    color: #93602f;
    font-size: 7px;
    font-style: normal;
}

.header_inplaykalender-year strong {
    margin-left: 4px;

    color: #d9ad73;

    font-family: Cinzel, Georgia, serif;
    font-size: 10px;
    font-style: normal;
    letter-spacing: 0.8px;
}

.header_inplaykalender-headline::after {
    content: "";
    height: 1px;
    flex: 1;

    background:
        linear-gradient(
            90deg,
            rgba(197, 139, 69, 0.42),
            transparent
        );
}

.header_inplaykalender-link:link,
.header_inplaykalender-link:visited,
.header_inplaykalender-link:active {
    flex-shrink: 0;
    padding: 6px 9px;

    color: #bd8e54;
    background: rgba(22, 13, 8, 0.55);

    border: 1px solid #62401f;

    font-family: Cinzel, Georgia, serif;
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.header_inplaykalender-link::after {
    content: "  →";
}

.header_inplaykalender-link:hover {
    color: #160d08;
    background: #d1a267;
    border-color: #d1a267;
}


/* =========================================================
   MONATSÜBERSICHT
   ========================================================= */

.header_inplaykalender-months {
    width: 100%;
    padding: 14px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 8px;

    background:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 10px,
            rgba(197, 139, 69, 0.012) 10px,
            rgba(197, 139, 69, 0.012) 11px
        ),
        #1a0f09;
}

.header_inplaykalender-month {
    width: calc(var(--inplaykalender-month-width) - 8px);
    min-width: 230px;
    margin: 0;
}


/* =========================================================
   EINZELNER KALENDER
   ========================================================= */

#mini-kalender {
    width: 100%;
    height: 100%;
    table-layout: fixed;
    border-collapse: collapse;

    color: #cfb797;
    background: rgba(36, 20, 12, 0.78);

    border: 1px solid #4c2f1b;

    font-family: Arial, sans-serif;
    font-size: 9px;
}

#mini-kalender th,
#mini-kalender td {
    border: 1px solid rgba(111, 70, 35, 0.44);
}

.inplaykalender-month-title {
    height: 35px;
    padding: 8px 10px;

    color: #d2a064;

    background:
        linear-gradient(
            90deg,
            rgba(58, 36, 22, 0.88),
            rgba(42, 24, 14, 0.82)
        );

    border-bottom: 1px solid #70441f !important;

    font-family: Cinzel, Georgia, serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.3px;
    text-align: center;
    text-transform: uppercase;
}

.inplaykalender-weekdays th {
    height: 27px;
    padding: 5px 2px;

    color: #9f7b51;
    background: #20130c;

    font-family: Cinzel, Georgia, serif;
    font-size: 7px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
}

#mini-kalender td {
    position: relative;
    height: 34px;
    padding: 4px;

    color: #bda688;
    background: #24140c;

    text-align: center;
    vertical-align: middle;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

#mini-kalender td:hover {
    background-color: #301c10;
    border-color: #8a582b;
}

#mini-kalender td a:link,
#mini-kalender td a:visited,
#mini-kalender td a:active {
    color: inherit;
}

#mini-kalender td a:hover {
    color: #f0d3a7;
}


/* =========================================================
   KALENDERTAGE
   ========================================================= */

.inplaykalender_tag {
    position: relative;

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-align: center;
}

.inplaykalender_tag strong {
    position: relative;
    z-index: 2;

    font-family: Cinzel, Georgia, serif;
    font-size: 8px;
    font-weight: 600;
}


/* =========================================================
   EINZELNE EINTRAGSARTEN
   ========================================================= */

.szenen {
    background:
        linear-gradient(
            135deg,
            rgba(119, 76, 37, 0.72),
            rgba(58, 36, 22, 0.88)
        ) !important;

    box-shadow: inset 3px 0 0 #9e6833;
}

.szenen strong {
    color: #f0d5ad !important;
}

.geburtstag {
    background:
        linear-gradient(
            135deg,
            rgba(197, 139, 69, 0.78),
            rgba(105, 68, 33, 0.86)
        ) !important;

    box-shadow: inset 3px 0 0 #d3a369;
}

.geburtstag strong {
    color: #24140c !important;
}

.timeline {
    background:
        linear-gradient(
            135deg,
            rgba(138, 78, 34, 0.85),
            rgba(65, 34, 18, 0.9)
        ) !important;

    box-shadow: inset 3px 0 0 #a8622d;
}

.timeline strong {
    color: #efd2aa !important;
}

.event {
    background:
        linear-gradient(
            135deg,
            rgba(200, 168, 120, 0.82),
            rgba(116, 87, 52, 0.88)
        ) !important;

    box-shadow: inset 3px 0 0 #d9bd90;
}

.event strong {
    color: #24140c !important;
}


/* =========================================================
   ZWEI EINTRAGSARTEN
   ========================================================= */

.szenentimeline {
    background:
        linear-gradient(
            135deg,
            rgba(119, 76, 37, 0.88) 0 50%,
            rgba(138, 78, 34, 0.9) 50% 100%
        ) !important;
}

.szenentimeline strong {
    color: #f0d5ad !important;
}

.szenengeburtstag {
    background:
        linear-gradient(
            135deg,
            rgba(119, 76, 37, 0.9) 0 50%,
            rgba(197, 139, 69, 0.88) 50% 100%
        ) !important;
}

.szenengeburtstag strong {
    color: #f3d7ae !important;
}

.szenenevent {
    background:
        linear-gradient(
            135deg,
            rgba(119, 76, 37, 0.9) 0 50%,
            rgba(200, 168, 120, 0.88) 50% 100%
        ) !important;
}

.szenenevent strong {
    color: #f1d4ab !important;
}

.geburtstagtimeline {
    background:
        linear-gradient(
            135deg,
            rgba(197, 139, 69, 0.88) 0 50%,
            rgba(138, 78, 34, 0.9) 50% 100%
        ) !important;
}

.geburtstagtimeline strong {
    color: #24140c !important;
}

.geburtstagevent {
    background:
        linear-gradient(
            135deg,
            rgba(197, 139, 69, 0.88) 0 50%,
            rgba(200, 168, 120, 0.9) 50% 100%
        ) !important;
}

.geburtstagevent strong {
    color: #24140c !important;
}

.timelineevent {
    background:
        linear-gradient(
            135deg,
            rgba(138, 78, 34, 0.9) 0 50%,
            rgba(200, 168, 120, 0.88) 50% 100%
        ) !important;
}

.timelineevent strong {
    color: #f2d7b0 !important;
}


/* =========================================================
   DREI EINTRAGSARTEN
   ========================================================= */

.szenengeburtstagtimeline {
    background:
        linear-gradient(
            135deg,
            rgba(119, 76, 37, 0.9) 0 33.33%,
            rgba(197, 139, 69, 0.88) 33.33% 66.66%,
            rgba(138, 78, 34, 0.9) 66.66% 100%
        ) !important;
}

.szenengeburtstagtimeline strong {
    color: #f3d7ae !important;
}

.szenengeburtstagevent {
    background:
        linear-gradient(
            135deg,
            rgba(119, 76, 37, 0.9) 0 33.33%,
            rgba(197, 139, 69, 0.88) 33.33% 66.66%,
            rgba(200, 168, 120, 0.9) 66.66% 100%
        ) !important;
}

.szenengeburtstagevent strong {
    color: #f3d7ae !important;
}

.szenentimelineevent {
    background:
        linear-gradient(
            135deg,
            rgba(119, 76, 37, 0.9) 0 33.33%,
            rgba(138, 78, 34, 0.9) 33.33% 66.66%,
            rgba(200, 168, 120, 0.9) 66.66% 100%
        ) !important;
}

.szenentimelineevent strong {
    color: #f3d7ae !important;
}

.geburtstagtimelineevent {
    background:
        linear-gradient(
            135deg,
            rgba(197, 139, 69, 0.88) 0 33.33%,
            rgba(138, 78, 34, 0.9) 33.33% 66.66%,
            rgba(200, 168, 120, 0.9) 66.66% 100%
        ) !important;
}

.geburtstagtimelineevent strong {
    color: #24140c !important;
}


/* =========================================================
   VIER EINTRAGSARTEN
   ========================================================= */

.szenengeburtstagtimelineevent {
    background:
        linear-gradient(
            135deg,
            rgba(119, 76, 37, 0.9) 0 25%,
            rgba(197, 139, 69, 0.88) 25% 50%,
            rgba(138, 78, 34, 0.9) 50% 75%,
            rgba(200, 168, 120, 0.9) 75% 100%
        ) !important;
}

.szenengeburtstagtimelineevent strong {
    color: #f3d7ae !important;
}


/* =========================================================
   LEGENDE
   ========================================================= */

.header_inplaykalender-legend {
    width: 100%;
    padding: 8px 14px;

    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;

    color: #88715a;
    background: rgba(36, 20, 12, 0.8);

    border-top: 1px solid rgba(197, 139, 69, 0.18);

    font-family: Arial, sans-serif;
    font-size: 8px;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.inplaykalender-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.inplaykalender-legend-color {
    display: inline-block;
    width: 8px;
    height: 8px;

    border: 1px solid rgba(234, 208, 161, 0.15);
}

.legend-scenes {
    background: #76502e;
}

.legend-birthday {
    background: #c58b45;
}

.legend-timeline {
    background: #8a4e22;
}

.legend-event {
    background: #c8a878;
}


/* =========================================================
   KALENDER-POPUP
   ========================================================= */

.calpop {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 5vh 20px;

    overflow-y: auto;

    background: rgba(10, 5, 3, 0.78);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.calpop:target {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.calpop > .pop {
    position: relative;
    z-index: 1002;

    width: min(800px, 95%);
    max-height: 85vh;
    margin: 0;
    padding: 20px;

    overflow-y: auto;

    color: #dfc8a8;
    background: #1d110a;

    border-top: 1px solid #68401f;
    border-right: 1px solid #4a2d19;
    border-bottom: 1px solid #68401f;
    border-left: 4px solid #98602d;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.65),
        inset 0 0 35px rgba(0, 0, 0, 0.22);

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 170%;
    text-align: justify;
}

.calpop > .pop a:link,
.calpop > .pop a:visited,
.calpop > .pop a:active {
    color: #c9965a;
}

.calpop > .pop a:hover {
    color: #efd0a3;
}

.closepop {
    position: fixed;
    inset: 0;
    z-index: 1001;

    display: block;
}


/* =========================================================
   EVENTLISTE IM POPUP
   ========================================================= */

.inplaykalender-eventlist {
    max-height: 130px;
    padding-right: 7px;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color: #875326 #1a0f09;
}

.inplaykalender-eventlist::-webkit-scrollbar {
    width: 5px;
}

.inplaykalender-eventlist::-webkit-scrollbar-track {
    background: #1a0f09;
}

.inplaykalender-eventlist::-webkit-scrollbar-thumb {
    background: #875326;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media screen and (max-width: 850px) {

    .header_inplaykalender-month {
        width: calc(50% - 4px);
        min-width: 0;
    }

}

@media screen and (max-width: 560px) {

    #header_inplaykalender {
        width: 100%;
    }

    .header_inplaykalender-headline {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .header_inplaykalender-headline::after {
        display: none;
    }

    .header_inplaykalender-link {
        margin-left: auto;
    }

    .header_inplaykalender-months {
        padding: 10px;
    }

    .header_inplaykalender-month {
        width: 100%;
    }

    .header_inplaykalender-legend {
        justify-content: flex-start;
    }

    #mini-kalender td {
        height: 31px;
        padding: 3px 1px;
    }

    .inplaykalender_tag,
    .inplaykalender_tag strong {
        font-size: 7px;
    }

    .calpop {
        padding: 20px 10px;
    }

    .calpop > .pop {
        width: 100%;
        padding: 15px;
    }

}

/* =========================================================
   INPLAYKALENDER – SEITENLAYOUT
   ========================================================= */

.ipcal-layout {
    --ipcal-bg: #160d08;
    --ipcal-panel: #1c100a;
    --ipcal-panel-soft: #24140c;
    --ipcal-panel-light: #302014;
    --ipcal-line: #50321d;
    --ipcal-line-soft: #3f2818;
    --ipcal-accent: #98602d;
    --ipcal-accent-light: #c58b45;
    --ipcal-gold: #d6a363;
    --ipcal-text: #e1c9a6;
    --ipcal-muted: #9d866b;

    width: 100%;
    margin: 20px auto;

    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
    align-items: start;

    box-sizing: border-box;
}

.ipcal-layout *,
.ipcal-layout *::before,
.ipcal-layout *::after {
    box-sizing: border-box;
}


/* =========================================================
   HAUPTBEREICH
   ========================================================= */

#inplaykalender-page {
    width: 100%;
    min-width: 0;
    overflow: hidden;

    color: var(--ipcal-text);
    background: var(--ipcal-bg);

    border-top: 1px solid var(--ipcal-line);
    border-right: 1px solid var(--ipcal-line-soft);
    border-bottom: 1px solid var(--ipcal-line);
    border-left: 4px solid #8c572a;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 35px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   SEITENÜBERSCHRIFT
   ========================================================= */

.ipcal-page-headline {
    position: relative;
    width: 100%;
    min-height: 48px;
    padding: 13px 22px;

    display: flex;
    align-items: center;

    color: var(--ipcal-gold);

    background:
        linear-gradient(
            90deg,
            rgba(58, 36, 22, 0.92),
            rgba(36, 20, 12, 0.92)
        );

    border-bottom: 1px solid #68401f;

    font-family: Cinzel, Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.ipcal-page-headline::after {
    content: "";
    height: 1px;
    flex: 1;
    margin-left: 18px;

    background:
        linear-gradient(
            90deg,
            rgba(197, 139, 69, 0.55),
            transparent
        );
}

.ipcal-page-headline span {
    display: block;
}


/* =========================================================
   SEITENINHALT
   ========================================================= */

.ipcal-page-body {
    width: 100%;
    padding: 20px;

    background:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 10px,
            rgba(197, 139, 69, 0.012) 10px,
            rgba(197, 139, 69, 0.012) 11px
        ),
        #1a0f09;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.ipcal-sidebar {
    width: 100%;
    min-width: 0;
}

.ipcal-nav {
    width: 100%;
    overflow: hidden;

    background: var(--ipcal-bg);

    border-top: 1px solid var(--ipcal-line);
    border-right: 1px solid var(--ipcal-line-soft);
    border-bottom: 1px solid var(--ipcal-line);
    border-left: 3px solid #8c572a;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.ipcal-nav-headline {
    padding: 12px 14px;

    color: #d3a062;
    background: rgba(58, 36, 22, 0.82);

    border-bottom: 1px solid #68401f;

    font-family: Cinzel, Georgia, serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ipcal-nav-links {
    padding: 7px;
}

.ipcal-nav-link:link,
.ipcal-nav-link:visited,
.ipcal-nav-link:active {
    position: relative;
    width: 100%;
    min-height: 34px;
    margin-bottom: 5px;
    padding: 9px 10px 9px 24px;

    display: flex;
    align-items: center;

    color: #ae8b64;
    background: rgba(36, 20, 12, 0.72);

    border: 1px solid transparent;
    border-left: 2px solid #62401f;

    font-family: Cinzel, Georgia, serif;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.ipcal-nav-link:last-child {
    margin-bottom: 0;
}

.ipcal-nav-link::before {
    content: "◆";
    position: absolute;
    left: 10px;

    color: #8d5c2e;
    font-size: 6px;
}

.ipcal-nav-link:hover {
    color: #e7c89d;
    background: #2d1a0f;

    border-color: #5f3b20;
    border-left-color: #b97939;
}


/* =========================================================
   LEGENDE
   ========================================================= */

.ipcal-legend {
    width: 100%;
    margin-bottom: 16px;
    padding: 10px 13px;

    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 15px;

    color: #8f7961;
    background: rgba(36, 20, 12, 0.68);

    border-top: 1px solid rgba(197, 139, 69, 0.16);
    border-bottom: 1px solid rgba(197, 139, 69, 0.16);

    font-family: Arial, sans-serif;
    font-size: 8px;
    line-height: 1;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.ipcal-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ipcal-legend-color {
    display: inline-block;
    width: 11px;
    height: 11px;

    border: 1px solid rgba(234, 208, 161, 0.18);
}

.ipcal-legend-scenes {
    background: #62401f;
}

.ipcal-legend-events {
    background: #c8a878;
}

.ipcal-legend-plots {
    background: #8a4e22;
}

.ipcal-legend-birthdays {
    background: #c58b45;
}


/* =========================================================
   MONATSGRID
   ========================================================= */

.ipcal-month-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ipcal-month {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   MONATSKALENDER
   ========================================================= */

.ipcal-calendar {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;

    color: #cfb797;
    background: rgba(36, 20, 12, 0.82);

    border: 1px solid #4c2f1b;

    font-family: Arial, sans-serif;
    font-size: 9px;

    box-shadow: 0 7px 17px rgba(0, 0, 0, 0.18);
}

.ipcal-calendar th,
.ipcal-calendar td {
    border: 1px solid rgba(111, 70, 35, 0.42);
}

.ipcal-month-title {
    height: 42px;
    padding: 10px;

    color: #d2a064;

    background:
        linear-gradient(
            90deg,
            rgba(58, 36, 22, 0.9),
            rgba(42, 24, 14, 0.84)
        );

    border-bottom: 1px solid #70441f !important;

    font-family: Cinzel, Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.5px;
    text-align: center;
    text-transform: uppercase;
}

.ipcal-weekdays th {
    height: 29px;
    padding: 6px 2px;

    color: #9f7b51;
    background: #20130c;

    font-family: Cinzel, Georgia, serif;
    font-size: 7px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
}


/* =========================================================
   KALENDERTAGE
   ========================================================= */

.ipcal-calendar td.inplaykalender_tag {
    position: relative;
    width: 14.285%;
    height: 57px;
    padding: 0;

    color: #bda688;
    background: #24140c;

    text-align: center;
    vertical-align: middle;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.ipcal-day-content {
    position: relative;
    width: 100%;

    padding: 8px 4px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.ipcal-calendar .inplaykalender_tag strong {
    position: relative;
    z-index: 2;

    color: #d3b998;

    font-family: Cinzel, Georgia, serif;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
}

.ipcal-calendar .inplaykalender_tag a:link,
.ipcal-calendar .inplaykalender_tag a:visited,
.ipcal-calendar .inplaykalender_tag a:active {
    color: inherit;
}

.ipcal-calendar .inplaykalender_tag a:hover {
    color: #f0d3a7;
}

.ipcal-calendar .ipcal-empty {
    background: rgba(22, 13, 8, 0.76);
}


/* =========================================================
   EINZELNE MARKIERUNGEN
   ========================================================= */

.ipcal-calendar .szenen {
    background:
        linear-gradient(
            135deg,
            rgba(100, 62, 30, 0.88),
            rgba(58, 36, 22, 0.94)
        ) !important;

    box-shadow: inset 3px 0 0 #9e6833;
}

.ipcal-calendar .szenen strong {
    color: #f0d5ad !important;
}

.ipcal-calendar .geburtstag {
    background:
        linear-gradient(
            135deg,
            rgba(197, 139, 69, 0.86),
            rgba(105, 68, 33, 0.9)
        ) !important;

    box-shadow: inset 3px 0 0 #d3a369;
}

.ipcal-calendar .geburtstag strong {
    color: #24140c !important;
}

.ipcal-calendar .timeline {
    background:
        linear-gradient(
            135deg,
            rgba(138, 78, 34, 0.9),
            rgba(65, 34, 18, 0.94)
        ) !important;

    box-shadow: inset 3px 0 0 #a8622d;
}

.ipcal-calendar .timeline strong {
    color: #efd2aa !important;
}

.ipcal-calendar .event {
    background:
        linear-gradient(
            135deg,
            rgba(200, 168, 120, 0.88),
            rgba(116, 87, 52, 0.92)
        ) !important;

    box-shadow: inset 3px 0 0 #d9bd90;
}

.ipcal-calendar .event strong {
    color: #24140c !important;
}


/* =========================================================
   ZWEI MARKIERUNGEN
   ========================================================= */

.ipcal-calendar .szenentimeline {
    background:
        linear-gradient(
            135deg,
            #684220 0 50%,
            #8a4e22 50% 100%
        ) !important;
}

.ipcal-calendar .szenentimeline strong {
    color: #f0d5ad !important;
}

.ipcal-calendar .szenengeburtstag {
    background:
        linear-gradient(
            135deg,
            #684220 0 50%,
            #c58b45 50% 100%
        ) !important;
}

.ipcal-calendar .szenengeburtstag strong {
    color: #f3d7ae !important;
}

.ipcal-calendar .szenenevent {
    background:
        linear-gradient(
            135deg,
            #684220 0 50%,
            #c8a878 50% 100%
        ) !important;
}

.ipcal-calendar .szenenevent strong {
    color: #f3d7ae !important;
}

.ipcal-calendar .geburtstagtimeline {
    background:
        linear-gradient(
            135deg,
            #c58b45 0 50%,
            #8a4e22 50% 100%
        ) !important;
}

.ipcal-calendar .geburtstagtimeline strong {
    color: #24140c !important;
}

.ipcal-calendar .geburtstagevent {
    background:
        linear-gradient(
            135deg,
            #c58b45 0 50%,
            #c8a878 50% 100%
        ) !important;
}

.ipcal-calendar .geburtstagevent strong {
    color: #24140c !important;
}

.ipcal-calendar .timelineevent {
    background:
        linear-gradient(
            135deg,
            #8a4e22 0 50%,
            #c8a878 50% 100%
        ) !important;
}

.ipcal-calendar .timelineevent strong {
    color: #f2d7b0 !important;
}


/* =========================================================
   DREI MARKIERUNGEN
   ========================================================= */

.ipcal-calendar .szenengeburtstagtimeline {
    background:
        linear-gradient(
            135deg,
            #684220 0 33.33%,
            #c58b45 33.33% 66.66%,
            #8a4e22 66.66% 100%
        ) !important;
}

.ipcal-calendar .szenengeburtstagtimeline strong {
    color: #f3d7ae !important;
}

.ipcal-calendar .szenengeburtstagevent {
    background:
        linear-gradient(
            135deg,
            #684220 0 33.33%,
            #c58b45 33.33% 66.66%,
            #c8a878 66.66% 100%
        ) !important;
}

.ipcal-calendar .szenengeburtstagevent strong {
    color: #f3d7ae !important;
}

.ipcal-calendar .szenentimelineevent {
    background:
        linear-gradient(
            135deg,
            #684220 0 33.33%,
            #8a4e22 33.33% 66.66%,
            #c8a878 66.66% 100%
        ) !important;
}

.ipcal-calendar .szenentimelineevent strong {
    color: #f3d7ae !important;
}

.ipcal-calendar .geburtstagtimelineevent {
    background:
        linear-gradient(
            135deg,
            #c58b45 0 33.33%,
            #8a4e22 33.33% 66.66%,
            #c8a878 66.66% 100%
        ) !important;
}

.ipcal-calendar .geburtstagtimelineevent strong {
    color: #24140c !important;
}


/* =========================================================
   VIER MARKIERUNGEN
   ========================================================= */

.ipcal-calendar .szenengeburtstagtimelineevent {
    background:
        linear-gradient(
            135deg,
            #684220 0 25%,
            #c58b45 25% 50%,
            #8a4e22 50% 75%,
            #c8a878 75% 100%
        ) !important;
}

.ipcal-calendar .szenengeburtstagtimelineevent strong {
    color: #f3d7ae !important;
}


/* =========================================================
   KALENDER-POPUP
   ========================================================= */

.calpop {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 999999 !important;

    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 5vh 20px !important;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    overflow-y: auto;
    overflow-x: hidden;

    background: rgba(9, 5, 3, 0.82);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    filter: none !important;
    transform: none !important;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.calpop:target {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.calpop > .pop {
    position: relative !important;
    z-index: 1000001 !important;

    width: min(900px, 96%) !important;
    max-height: 88vh;
    margin: 0 auto !important;

    overflow-y: auto;
    overflow-x: hidden;

    color: #dfc8a8;
    background: #1a0f09;

    border-top: 1px solid #68401f;
    border-right: 1px solid #4a2d19;
    border-bottom: 1px solid #68401f;
    border-left: 4px solid #98602d;

    box-shadow:
        0 22px 65px rgba(0, 0, 0, 0.7),
        inset 0 0 35px rgba(0, 0, 0, 0.2);

    filter: none !important;
    transform: none !important;
}

.closepop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000000 !important;

    display: block;
    width: 100vw;
    height: 100vh;
}

.calpop > .pop {
    position: relative;
    z-index: 1002;

    width: min(900px, 96%);
    max-height: 88vh;
    margin: 0;

    overflow-y: auto;

    color: #dfc8a8;
    background: #1a0f09;

    border-top: 1px solid #68401f;
    border-right: 1px solid #4a2d19;
    border-bottom: 1px solid #68401f;
    border-left: 4px solid #98602d;

    box-shadow:
        0 22px 65px rgba(0, 0, 0, 0.7),
        inset 0 0 35px rgba(0, 0, 0, 0.2);

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 165%;
    text-align: left;
}

.ipcal-popup-head {
    position: sticky;
    top: 0;
    z-index: 5;

    min-height: 65px;
    padding: 13px 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    background:
        linear-gradient(
            90deg,
            rgba(58, 36, 22, 0.98),
            rgba(36, 20, 12, 0.98)
        );

    border-bottom: 1px solid #68401f;
}

.ipcal-popup-label {
    display: block;
    margin-bottom: 5px;

    color: #8e7459;

    font-family: Arial, sans-serif;
    font-size: 7px;
    line-height: 1;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.ipcal-popup-date h4 {
    margin: 0;
    padding: 0;

    color: #d5a365;

    font-family: Cinzel, Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.ipcal-popup-close:link,
.ipcal-popup-close:visited,
.ipcal-popup-close:active {
    width: 30px;
    height: 30px;
    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #b88a54;
    background: #24140c;

    border: 1px solid #68401f;

    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: normal;
    line-height: 1;
}

.ipcal-popup-close:hover {
    color: #160d08;
    background: #d1a267;
    border-color: #d1a267;
}

.ipcal-popup-grid {
    padding: 18px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ipcal-popup-section {
    min-width: 0;

    background: rgba(36, 20, 12, 0.72);

    border-top: 1px solid rgba(197, 139, 69, 0.2);
    border-right: 1px solid rgba(197, 139, 69, 0.12);
    border-bottom: 1px solid rgba(197, 139, 69, 0.2);
    border-left: 3px solid #875326;
}

.ipcal-popup-section-headline {
    padding: 9px 12px;

    color: #c79559;
    background: rgba(58, 36, 22, 0.5);

    border-bottom: 1px solid rgba(197, 139, 69, 0.2);

    font-family: Cinzel, Georgia, serif;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.ipcal-popup-list {
    min-height: 60px;
    max-height: 220px;
    padding: 12px;

    overflow-y: auto;
    overflow-x: hidden;

    color: #bca488;

    scrollbar-width: thin;
    scrollbar-color: #875326 #1a0f09;
}

.ipcal-popup-list a:link,
.ipcal-popup-list a:visited,
.ipcal-popup-list a:active {
    color: #c8965c;
}

.ipcal-popup-list a:hover {
    color: #efd0a3;
}

.ipcal-popup-list::-webkit-scrollbar,
.calpop > .pop::-webkit-scrollbar {
    width: 5px;
}

.ipcal-popup-list::-webkit-scrollbar-track,
.calpop > .pop::-webkit-scrollbar-track {
    background: #1a0f09;
}

.ipcal-popup-list::-webkit-scrollbar-thumb,
.calpop > .pop::-webkit-scrollbar-thumb {
    background: #875326;
}

.inplaykalender-eventlist {
    max-height: 220px;
    padding-right: 12px;
}


/* =========================================================
   FORMULAR
   ========================================================= */

.ipcal-form {
    width: 100%;
    padding: 0 18px 18px;

    background: rgba(28, 16, 10, 0.9);

    border-top: 1px solid #50321d;
    border-right: 1px solid #3f2818;
    border-bottom: 1px solid #50321d;
    border-left: 3px solid #98602d;
}

.ipcal-form-intro {
    margin: 0 -18px 16px;
    padding: 11px 18px;

    color: #9f876b;
    background: rgba(58, 36, 22, 0.48);

    border-bottom: 1px solid #57361f;

    font-family: Georgia, serif;
    font-size: 10px;
    font-style: italic;
    line-height: 150%;
}

.ipcal-form-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.ipcal-form-field {
    min-width: 0;
}

.ipcal-form-field-wide {
    grid-column: 1 / -1;
}

.ipcal-form-field label {
    display: block;
    margin: 0;
    padding: 8px 10px;

    color: #b88750;
    background: rgba(58, 36, 22, 0.5);

    border: 1px solid #422919;
    border-bottom: 0;

    font-family: Cinzel, Georgia, serif;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ipcal-form input[type="text"],
.ipcal-form input[type="date"],
.ipcal-form textarea,
.ipcal-form select {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 9px 10px;

    color: #dbc4a6;
    background: #160d08;

    border: 1px solid #57361f;
    border-radius: 0;

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.4;

    outline: none;
}

.ipcal-form textarea {
    min-height: 130px;

    resize: vertical;

    font-family: Georgia, serif;
    line-height: 165%;
}

.ipcal-form input:focus,
.ipcal-form textarea:focus,
.ipcal-form select:focus {
    border-color: #9e6935;
}

.ipcal-form-actions {
    margin-top: 15px;
    text-align: right;
}

#ipcal-submit {
    min-height: auto;
    padding: 8px 14px;

    color: #d8af78;
    background: #2f1c10;

    border: 1px solid #70451f;
    border-radius: 0;

    font-family: Cinzel, Georgia, serif;
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;

    cursor: pointer;
}

#ipcal-submit:hover {
    color: #160d08;
    background: #d1a267;
    border-color: #d1a267;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media screen and (max-width: 950px) {

    .ipcal-layout {
        grid-template-columns: 175px minmax(0, 1fr);
    }

    .ipcal-month-grid {
        grid-template-columns: 1fr;
    }

}

@media screen and (max-width: 700px) {

    .ipcal-layout {
        display: block;
    }

    .ipcal-sidebar {
        margin-bottom: 14px;
    }

    .ipcal-nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .ipcal-nav-link:link,
    .ipcal-nav-link:visited,
    .ipcal-nav-link:active {
        width: auto;
        flex: 1;
        min-width: 150px;
        margin: 0;
    }

    .ipcal-popup-grid {
        grid-template-columns: 1fr;
    }

    .ipcal-form-grid {
        grid-template-columns: 1fr;
    }

    .ipcal-form-field-wide {
        grid-column: auto;
    }

}

@media screen and (max-width: 480px) {

    .ipcal-page-body {
        padding: 12px;
    }

    .ipcal-page-headline {
        padding: 12px 15px;

        font-size: 12px;
        letter-spacing: 1.6px;
    }

    .ipcal-legend {
        justify-content: flex-start;
    }

    .ipcal-calendar td.inplaykalender_tag {
        height: 45px;
    }

    .ipcal-day-content {
        min-height: 44px;
        padding: 5px 1px;
    }

    .ipcal-calendar .inplaykalender_tag strong {
        font-size: 7px;
    }

    .calpop {
        padding: 15px 8px;
    }

    .calpop > .pop {
        width: 100%;
        max-height: calc(100vh - 30px);
    }

    .ipcal-popup-head {
        padding: 11px 12px;
    }

    .ipcal-popup-date h4 {
        font-size: 11px;
        letter-spacing: 0.8px;
    }

    .ipcal-popup-grid {
        padding: 11px;
    }

    .ipcal-form {
        padding-right: 12px;
        padding-left: 12px;
    }

    .ipcal-form-intro {
        margin-right: -12px;
        margin-left: -12px;
    }

}