/* =========================================================
   INSIDER-HAUPTNAVIGATION
   ========================================================= */

.insider-navigation {
    width: 100%;
    margin: 0;

    min-height: 18px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;

    background: #999999;

    padding: 0;
}


.insider-navigation a {
    display: flex;

    align-items: center;
    justify-content: center;

    height: 18px;

    padding: 0;

    color: #000000;

    font-size: 10px;

    text-decoration: none;

    white-space: nowrap;
}


.insider-navigation a img {
    display: block;

    height: 18px;
    width: auto;
}


.insider-navigation a:hover {
    color: #FFFFFF;

    background: transparent;

    text-decoration: none;
}


/* =========================================================
   ZENTRALES INSIDER-KATEGORIE-MENÜ
   ========================================================= */

#insider-category-navigation {
    width: 420px;

    flex: 0 0 420px;

    margin: 0;

    padding: 0;

    position: relative;
}


/* =========================================================
   KURZE TRENNLINIE
   ========================================================= */

#insider-category-navigation::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 350px;

    border-top: 1px solid #999999;
}


/* =========================================================
   INSIDER-UNTERSEITEN
   ========================================================= */

.insider-subpage-layout {
    display: flex;

    align-items: flex-start;

    width: 100%;

    margin: 0;
}


/* =========================================================
   AUSWAHLMENÜ
   ========================================================= */

.insider-submenu {
    width: 220px;

    flex: 0 0 220px;

    margin-left: 20px;

    margin-right: 140px;
}


/* =========================================================
   KATEGORIE-GIF
   ========================================================= */

.insider-submenu-category {
    display: block;

    width: 129px;
    height: 18px;

    margin: 0 0 10px 0;

    border: 0;
}


/* =========================================================
   UNTERSEITEN-LINKS
   ========================================================= */

.insider-submenu-links {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 2px;
}


.insider-submenu-links a {
    display: block;

    color: #CCCCCC;

    font-size: 13px;

    line-height: 18px;

    text-decoration: none;
}


.insider-submenu-links a:hover {
    color: #FFFFFF;

    text-decoration: underline;
}


.insider-submenu-links a.current {
    color: #FFFFFF;

    font-weight: bold;

    text-decoration: underline;
}


/* =========================================================
   TEXTBEREICH DER INSIDER-UNTERSEITEN
   ========================================================= */

.insider-subpage-text {
    flex: 1;

    min-width: 0;

    max-width: 1050px;

    color: #FFFFFF;

    line-height: 1.5;
}


.insider-subpage-text p {
    margin-top: 0;

    margin-bottom: 18px;
}


/* =========================================================
   RESPONSIVE ANPASSUNG
   ========================================================= */

@media (max-width: 1100px) {

    .insider-content {
        grid-template-columns: 1fr;

        row-gap: 35px;
    }


    .intro-image {
        text-align: center;
    }


    .intro-image img {
        max-width: 558px;

        width: 100%;

        height: auto;

        margin: 0 auto;
    }


    /* ---------------------------------------------
       INSIDER-UNTERSEITEN
       --------------------------------------------- */

    #insider-category-navigation {
        width: 300px;

        flex: 0 0 300px;
    }


    .insider-submenu {
        margin-left: 20px;

        margin-right: 80px;
    }


    .insider-subpage-text {
        max-width: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .insider-navigation {
        flex-wrap: wrap;

        justify-content: center;

        height: auto;
    }


    /* ---------------------------------------------
       INSIDER CONTENT
       --------------------------------------------- */

    .intro {
        padding: 25px;
    }


    .intro-text h1 {
        font-size: 21px;
    }


    /* ---------------------------------------------
       INSIDER-UNTERSEITEN
       --------------------------------------------- */

    .insider-subpage-layout {
        display: block;
    }


    #insider-category-navigation {
        width: auto;

        margin-bottom: 40px;
    }


    .insider-submenu {
        width: auto;

        margin-left: 20px;

        margin-right: 20px;

        margin-bottom: 0;
    }


    .insider-subpage-text {
        width: auto;

        margin-left: 20px;

        margin-right: 20px;
    }

}


/* =========================================================
   GEMEINSAMES LAYOUT FÜR INSIDER-RUBRIKEN
   ========================================================= */

body.insider-page {
    min-height: 100vh;
}

body.insider-page .content-panel {
    width: 100%;
    padding: 36px 42px;
}

body.insider-page .content-panel a {
    color: #FFFFFF;
}

body.insider-page .content-panel a:hover {
    color: #DDDDDD;
}

.insider-content {
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto;
}

.insider-heading {
    margin: 0 0 0.5rem;
    color: #FFFFFF;
}

.insider-lead {
    margin: 0 0 1.5rem;
    color: #FFFFFF;
}

.insider-years {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 380px));
    justify-content: center;
    gap: 1rem;
}

.insider-card {
    background: #333333;
    min-width: 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    
}

.insider-card h2 {
    margin: 0 0 0.8rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
}

.insider-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.insider-card li {
    margin: 0.55rem 0;
}

.insider-card a {
    text-underline-offset: 0.18em;
}

@media (max-width: 700px) {
    body.insider-page .content-panel {
        width: calc(100% - 1.25rem);
        margin: 1rem auto;
        padding: 1rem;
    }

    .insider-card {
        padding: 0.85rem;
    }
}

/* =========================================================
   INSIDER-GALERIEN
   ========================================================= */

.insider-gallery {
    width: min(1500px, 96%);
    margin: 2rem auto;
    color: #eee;
}

.insider-gallery h1 {
    margin: 0 0 .5rem;
}

.insider-gallery-intro {
    margin: 0 0 1.25rem;
    color: #ccc;
}

.insider-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
}

.insider-toolbar button,
.insider-toolbar select,
.insider-viewer button {
    border: 1px solid #666;
    border-radius: 6px;
    background: #292929;
    color: #f4f4f4;
    padding: .6rem .85rem;
    font: inherit;
    cursor: pointer;
}

.insider-toolbar button:hover,
.insider-viewer button:hover {
    background: #444;
}

.insider-status {
    margin-left: auto;
    color: #bbb;
    font-size: .95rem;
}

.insider-viewer {
    background: #111;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 1rem;
}

.insider-stage {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.insider-stage img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: min(68vh, 850px);
    object-fit: contain;
}

.insider-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: #ccc;
}

.insider-caption {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    justify-content: space-between;
    padding: .8rem .15rem;
    color: #ddd;
    overflow-wrap: anywhere;
}

.insider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .65rem;
    padding: .35rem 0 .8rem;
}

.insider-counter {
    min-width: 7rem;
    text-align: center;
    color: #eee;
}

.insider-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: .65rem;
    margin-top: 1rem;
}

.insider-thumb {
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 7px;
    background: #222;
    cursor: pointer;
    min-width: 0;
}

.insider-thumb[aria-current="true"] {
    border-color: #ddd;
}

.insider-thumb img {
    display: block;
    width: 100%;
    height: 82px;
    object-fit: cover;
    border-radius: 3px;
}

.insider-thumb:focus-visible,
.insider-toolbar button:focus-visible,
.insider-viewer button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.insider-error {
    color: #ffb5b5;
    white-space: pre-wrap;
}

@media (max-width: 600px) {

    .insider-gallery {
        width: 100%;
        margin: 1.2rem auto;
    }

    .insider-viewer {
        border-radius: 0;
        padding: .6rem;
    }

    .insider-stage {
        min-height: 220px;
    }

    .insider-stage img {
        max-height: 55vh;
    }

    .insider-status {
        width: 100%;
        margin-left: 0;
    }

    .insider-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
        gap: .4rem;
    }

    .insider-thumb img {
        height: 64px;
    }
}

.insider-stage:fullscreen {
    background: #000;
    padding: 1rem;
}

.insider-stage:fullscreen img {
    max-height: calc(100vh - 2rem);
}