/* ===========================================================
   DESKTOP.CSS
   Desktop-/Tablet Layouts und Komponenten
   =========================================================== */

/* ===========================================================
   ÜBER UNS
   =========================================================== */

.about-hero {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.about-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 30px;
    text-align: center;
    color: white;
}

.about-hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
}

.about-intro {
    max-width: 1500px;
    margin: 20px auto 0;
    font-size: 21px;
    line-height: 1.7;
}

.about-section {
    max-width: 1500px;
    margin: 0 auto;
}

.about-section p {
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-leadership {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 35px auto;
    max-width: 800px;
}

.about-person {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.about-person h3 {
    margin: 0 0 8px 0;
}

.about-person p {
    margin: 0;
}

.leadership-history {
    display: grid;
    gap: 10px;
    max-width: 600px;
    margin: 25px auto 0;
}


.leadership-history span {
    opacity: 0.7;
}

.helpers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.helper-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.helper-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 22px;
}

.helper-card p {
    margin: 0;
    line-height: 1.65;
}

.about-person,
.helper-card,
.leadership-history div {
    background: #e1e1e1e1;
    border: 1px solid rgba(0,0,0,.1);
    box-shadow: none;
}

.about-end {
    max-width: 800px;
    padding-top: 55px;
    padding-bottom: 75px;
}

.about-highlight {
    font-size: 21px;
    font-weight: 600;
    margin: 35px auto !important;
}

/* ===========================================================
   SCROLL BUTTON
   =========================================================== */

#scrollTopBtn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--color-current-sub);
    color: var(--color-current-main);
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    transition: .2s ease;
    z-index: 1000;
}

#scrollTopBtn:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* ===========================================================
   TIMELINE
   =========================================================== */

.leadership-view-toggle {
    display: grid;
    grid-template-columns:
        fr
        auto
        fr;
    align-items: center;
    width: 100%;
    margin: 35px auto;
}

.toggle-label {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    width: 200px;
    color: var(--color-current-sub);
}

.toggle-switch {
    display: flex;
    justify-content: center;
}

.switch {
    position: relative;
    width: 80px;
    height: 34px;
    display: inline-block;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background: #d8d8d8;
    border-radius: 999px;
    cursor: pointer;
    transition: .3s;
}

.slider::before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    left: 4px;
    top: 4px;
    background: white;
    border-radius: 50%;
    transition: .3s;
}

.switch input:checked + .slider {
    background: var(--color-current-sub);
}

.switch input:checked + .slider::before {
    transform: translateX(46px);
}



.leader-preview {
    margin-top: 15px;
}

.leader-preview:empty {
    display: none;
}

.leader-preview .timeline-preview {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.leader-preview .timeline-preview img {
    width: 180px;
    max-width: 100%;
    display: block;
    margin: 0 auto 12px;
    border-radius: 10px;
}

.leader-preview .jahr {
    display: block;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-current-sub);
    text-align: center;
    margin-bottom: 25px;
}

.leadership-view-toggle {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.view-btn {
    padding: 10px 18px;
    border: 2px solid var(--color-current-sub);
    background: white;
    color: var(--color-current-sub);
    border-radius: 8px;
    font-weight: 1000;
    cursor: pointer;
}

.view-btn.active {
    background: var(--color-current-sub);
    color: white;
}

.leader-entry {
    display: block !important;
}

.leader-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.leader-header strong {
    flex: 1;
}
 
.leader-header span {
    min-width: 120px;
    text-align: right;
}

.mobile-years {
    display: block !important;
    width: 200px;
    margin-top: 12px;
    margin: 10px auto;
}

.mobile-years summary {
    width: fit-content;
    margin: 0 auto;
    padding: 8px 14px;
    background: var(--color-current-sub);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.mobile-years summary::-webkit-details-marker {
    display: none;
}

.mobile-year-list {
    display: flex !important;
    flex-direction: column !important;
    margin-top: 8px;
}

.mobile-year-list .year-dot {
    width: 100%;
    padding: 5px 10px;
    background:  white;
    border: 2px solid var(--color-current-sub);
    border-radius: 8px;
    color: var(--color-current-sub);
    font-weight: 700;
    cursor: pointer;
}

.mobile-year-list .year-dot:hover {
    background: var(--color-current-main);
    color: var(--color-current-sub);
}

.mobile-year-list .year-dot.active {
    background: var(--color-current-main);
    color: var(--color-current-sub);
}


.leadership-wrapper {
    margin-top: 40px;
   background: white;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow:
        0 4px 15px rgba(0,0,0,.08);
}

.leadership-scroll {
    overflow-x: auto;
    color: var(--color-current-sub);
}

.leadership-table {
    min-width: 1400px;
}

.leader-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: center;
    margin-bottom: 15px;
}

.leader-name {
    position: sticky;
    left: 0;
    background: white;
    z-index: 10;
    font-weight: 700;
    color: var(--color-current-sub);
    padding-right: 20px;
    padding-left: 10px;
    text-align: right;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.timeline-track {
    display: grid;
    grid-template-columns: repeat(15, 90px);
    position: relative;
    height: 32px;
    background-image:
        repeating-linear-gradient(
            to right,
            rgba(0,0,0,.08),
            rgba(0,0,0,.08) 1px,
            transparent 1px,
            transparent 90px
        );
}

.bar {
    height: 32px;
    background: var(--color-current-sub);
    border-radius: 999px;
}

.vinzenz {
    grid-column: 1 / 3;
}

.johannes {
    grid-column: 3 / 7;
}

.leonhard {
    grid-column: 7 / 12;
}

.klara {
    grid-column: 12 / 14;
}

.marlies {
    grid-column: 14 / -1;

    background:
        linear-gradient(
            90deg,
            var(--color-current-sub),
            var(--color-current-main)
        );
}

.year-row {
    display: grid;
    grid-template-columns:
        280px
        repeat(15, 90px);
    min-width: 1540px;
    margin-top: 30px;
    border-top: 3px solid var(--color-current-sub);
    padding-top: 15px;
}

.year-spacer {
    position: sticky;
    left: 0;
    background: white;
    z-index: 10;
}

.year-dot {
    border: none;
    background: none;
    color: var(--color-current-sub);
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

.year-dot:hover {
    color: var(--color-current-main);
    transform: translateY(-3px);
}

#timeline-piece-info {
    width: 70%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
}

#timeline-piece-info:empty {
    display: none;
}

.timeline-preview {
    width: 70%;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,.1);
}

.timeline-preview img {
    width: 220px;
    max-width: 100%;
    display: block;
    margin: 0 auto 20px;
    border-radius: 10px;
}

.timeline-preview h3 {
    margin-bottom: 5px;
}

.timeline-preview .jahr {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-current-sub);

    margin: 10px 0 20px;

    text-align: center;
}

.timeline-preview .beschreibung {
    max-width: 500px;
    margin: 0 auto 20px;

    line-height: 1.6;
}

.timeline-preview .btn {
    display: inline-block;
    margin-top: 10px;
}

.timeline-preview .btn:hover {
    background: var(--color-current-main);
    color: var(--color-current-sub);
}

/* ===========================================================
   STARTSEITE / AKTUELLES STÜCK
   =========================================================== */

.stueck {
    display: flex;
    gap: 40px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    align-items: center;
}

.stueck img {
    width: 300px;
    flex: 0 0 300px;
    border-radius: 10px;
}

.stueck > div {
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.stueck a.btn {
    display: block;
    margin: 20px auto 0;
    text-align: center;
    width: fit-content;
}

.dates {
    color: var(--color-current-sub);
    text-align: center;
    margin-top: 10px;
    line-height: 1.6;
}

#aktuelles-stueck .dates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 1000px;
    margin: 15px auto 0;
}

#aktuelles-stueck .dates span {
    margin: 0;
    text-align: center;
}

.dates span {
    display: inline-block;
    background: var(--color-current-main);
    padding: 6px 10px;
    margin: 5px;
    border-radius: 6px;
    font-size: 16px;
    box-shadow: 0 3px 3px rgba(0,0,0,.1);
}

.highlight-termin {
    text-decoration: underline;
    color: var(--color-current-sub);
}

.u18 {
    text-decoration: underline;
}

#aktuelles-stueck .beschreibung {
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}

/* ===========================================================
   ARCHIV
   =========================================================== */

.jahr-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    justify-content: center;
}

#jahr-filter {
    display: flex;
    gap: 11px;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 450px;
}

#jahr-filter button {
    width: 100px;
    flex: 0 0 80px;
    padding: 12px 0;
    border: 3px solid #fff;
    font-weight: 700;
    font-size: 17px;
    background: var(--color-current-sub);
    color: white;
    cursor: pointer;
    border-radius: 6px;
}

#jahr-filter button.active {
    background: #fff;
    color: var(--color-current-sub);
    border: 3px solid var(--color-current-sub);
    cursor: default;
}

#jahr-filter button:not(.active):hover {
    background: #fff;
    color: var(--color-current-sub);
    border: 3px solid var(--color-current-sub);
    transition: .2s ease;
}

.scroll-btn {
    background: var(--color-current-sub);
    color: white;
    border: 2px solid #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 1000;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background: #fff;
    color: var(--color-current-sub);
    border: 3px solid var(--color-current-sub);
}

#archiv-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.card {
    width: 400px;
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,.1);
}

.card img {
    width: 100%;
    border-radius: 8px;
}

.card h3 {
    margin: 15px 0 5px;
}

/* ===========================================================
   TABS
   =========================================================== */

.tabs {
    margin-top: 20px;
    text-align: center;
}

.tabs button {
    margin: 5px;
    padding: 10px 20px;
    border: 3px solid #fff;
    font-weight: 700;
    font-size: 17px;
    border-radius: 6px;
    color: white;
    background: var(--color-current-sub);
    cursor: pointer;
    transition:
        background .2s ease,
        color .2s ease,
        border .2s ease;
}

.tabs button.active {
    background: #fff;
    color: var(--color-current-sub);
    border: 3px solid var(--color-current-sub);
    cursor: default;
}

.tabs button:not(.active):hover {
    background: #fff;
    color: var(--color-current-sub);
    border: 3px solid var(--color-current-sub);
}

.tab-content {
    background: white;
    padding: 25px;
    margin-top: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,.1);
}

/* ===========================================================
   DETAILSEITEN
   =========================================================== */

.poster-img {
    max-width: 420px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,.2);
}

.trailer-container {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.trailer-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.instagram-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.instagram-wrapper .instagram-media {
    width: 50% !important;
    max-width: 600px !important;
    min-width: 250px !important;
    margin: 0 auto !important;
}

.instagram-wrapper blockquote.instagram-media {
    margin: 0 auto !important;
}

/* ===========================================================
   BESETZUNG
   =========================================================== */

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 200px);
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.cast-card {
    background: white;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,.1);
}

.cast-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #eee;
    border-radius: 8px;
    margin-bottom: 5px;
}

.cast-role {
    font-size: 16px;
    color: #666;
}

.cast-name {
    font-weight: bold;
    color: var(--color-current-sub);
}

/* ===========================================================
   GALERIE
   =========================================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px);
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.gallery img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background: #eee;
    border-radius: 8px;
    padding: 5px;
    transition: .2s;
}

.gallery img:hover {
    opacity: .85;
}

.gallery-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px;
}

.gallery-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #ddd;
    border-top-color: var(--color-current-sub);
    border-radius: 50%;
    animation: gallerySpin 1s linear infinite;
}

@keyframes gallerySpin {
    to {
        transform: rotate(360deg);
    }
}

/* ===========================================================
   LIGHTBOX
   =========================================================== */

#lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.9);
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

#lightbox button {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
}

#lightbox .close {
    top: 20px;
    right: 30px;
}

#lightbox .prev,
#lightbox .next {
    top: 50%;
    transform: translateY(-50%);
    z-index: 3001;
}

#lightbox .prev {
    left: 30px;
}

#lightbox .next {
    right: 30px;
}

/* ===========================================================
   KONTAKT
   =========================================================== */

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 1500px;
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,.1);
}

.contact-info p strong {
    font-weight: 800;
    font-size: 17px;
    line-height: 1;
}

.contact-map {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,.1);
}

.footer {
    text-align: center;
    padding: 2px;
    color: var(--color-current-sub);
}

