/*
Theme Name: MSK Theme
Template: Divi
Description:
Author: Medienwürfel
Version: 1.0
*/
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */


/* ACF Repeater "Termine" per Shortcode ausgeben */
.msk-termine-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 18px 26px;
    overflow: hidden;
}

.msk-termine-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0;
}

.entry-content table:not(.variations) {
    border: none;
    margin: 0 !important;
}

.entry-content tr td {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.msk-termine-table thead th {
    text-align: left;
    font-weight: 400;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.60);
    padding: 8px 0 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.msk-termine-table tbody td {
    text-align: left;
    font-weight: 400;
    font-size: 16px;
    color: white;
    padding: 18px 0 8px 0;
    vertical-align: top;
}

.msk-termine-table th:nth-child(1),
.msk-termine-table td:nth-child(1) {
    width: 17%;
}

.msk-termine-table th:nth-child(2),
.msk-termine-table td:nth-child(2) {
    width: 17%;
}

.msk-termine-table th:nth-child(3),
.msk-termine-table td:nth-child(3) {
    width: 18%;
}

.msk-termine-table th:nth-child(4),
.msk-termine-table td:nth-child(4) {
    width: 48%;
}

.msk-termine-table tbody tr + tr td {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Divi-Absätze im Modul neutralisieren */
.et_pb_code .msk-termine-box p,
.et_pb_text .msk-termine-box p {
    margin: 0;
    padding: 0;
}

/* Vortrags Übersicht */
.msk-termin-thema {
    display: block;
}

.msk-termin-parent {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.58);
}

.msk-termin-parent a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.2s ease;
}

.msk-termin-parent a:hover {
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.4);
}


/* Video & Gallery Styles */
.msk-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

.msk-video-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.msk-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.msk-gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.04);
}

.msk-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.msk-lightbox-open {
    overflow: hidden;
}

.msk-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 40px;
}

.msk-lightbox.is-open {
    display: flex;
}

.msk-lightbox-stage {
    width: 100%;
    height: 100%;
    max-width: min(1100px, 50vw);
    max-height: 30vh;
    display: flex;
    flex-direction: column!important;
    align-items: center;
    justify-content: center;
}

.msk-lightbox-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.msk-lightbox-meta {
    width: 100%;
    max-width: 100vw;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border-radius: 8px;
    box-sizing: border-box;
}

.msk-lightbox-caption {
    font-weight: 700;
    margin-bottom: 5px;
}

.msk-lightbox-description {
    white-space: pre-line;
    line-height: 1.5;
}

.msk-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msk-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msk-lightbox-prev {
    left: 24px;
}

.msk-lightbox-next {
    right: 24px;
}

.msk-lightbox-close:hover,
.msk-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}


/* Mobile */
@media (max-width: 980px) {
    .msk-termine-box {
        padding: 16px 18px;
    }

    .msk-termine-table,
    .msk-termine-table thead,
    .msk-termine-table tbody,
    .msk-termine-table tr,
    .msk-termine-table th,
    .msk-termine-table td {
        display: block;
        width: 100% !important;
    }

    .msk-termine-table thead {
        display: none;
    }

    .msk-termine-table tbody tr {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .msk-termine-table tbody tr:not(:last-child) {
        margin-bottom: 22px;
    }

    .msk-termine-table tbody tr:last-child {
        border-bottom: 0;
    }

    .msk-termine-table tbody td {
        padding: 4px 0;
    }

    .msk-termine-table tbody td:before {
        display: inline-block;
        min-width: 80px;
        color: rgba(255, 255, 255, 0.55);
        font-weight: 500;
    }

    .msk-termine-table tbody td:nth-child(1):before {
        content: "Datum: ";
    }

    .msk-termine-table tbody td:nth-child(2):before {
        content: "Stadt: ";
    }

    .msk-termine-table tbody td:nth-child(3):before {
        content: "Ort: ";
    }

    .msk-termine-table tbody td:nth-child(4):before {
        content: "Thema: ";
    }

    .msk-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .msk-lightbox {
        padding: 20px;
    }

    .msk-lightbox-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .msk-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .msk-lightbox-prev {
        left: 10px;
    }

    .msk-lightbox-next {
        right: 10px;
    }
}

@media (max-width: 640px) {
    .msk-gallery-grid {
        grid-template-columns: 1fr;
    }
}


/* FONT */
h3 {
    padding-bottom: 0 !important;
}


/* MENU STYLES */
.off-canvas-menu{
    display: none !important;
}
#menu-main{
    flex-wrap: nowrap;
    flex-direction: column;
}
#menu-main a {
    font-size: 26px;
    line-height: 32px;
    margin-bottom: 30px;
}
header .et_pb_column_1_tb_header {
    overflow: auto !important;
}
