* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

/* Discord Link */
.discord-link {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    border-radius: 10px;
    z-index: 3000;
    transition: all 0.3s ease;
}

.discord-link:hover {
    transform: scale(1.1);
    border-color: #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

.discord-icon {
    width: 28px;
    height: 28px;
    fill: #5865F2;
    transition: all 0.3s ease;
}

.discord-link:hover .discord-icon {
    fill: #7289da;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 3000;
}

.lang-btn {
    width: 40px;
    height: 28px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.lang-btn:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-btn.active {
    border-color: #00d4aa;
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.5);
}

.lang-btn .flag {
    width: 100%;
    height: 100%;
    display: block;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    gap: 20px;
}

/* Logo Container - GRÖSSER */
.logo-container {
    z-index: 10;
    flex-shrink: 0;
}

.logo {
    width: 420px;
    height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.4));
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}

/* Diamond Chain Container */
.diamond-chain {
    position: relative;
    width: 360px;
    height: 240px;
}

/* Diamond Base */
.diamond {
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    transform: rotate(45deg);
}

/* Linke Kette - W-Form: Kanten in Flucht mit Abstand */
.left-chain .diamond:nth-child(1) {
    top: 108px;
    left: 0;
}

.left-chain .diamond:nth-child(2) {
    top: 0;
    left: 108px;
}

.left-chain .diamond:nth-child(3) {
    top: 108px;
    left: 216px;
}

/* Rechte Kette - W-Form: Kanten in Flucht mit Abstand */
.right-chain .diamond:nth-child(1) {
    top: 108px;
    right: 216px;
}

.right-chain .diamond:nth-child(2) {
    top: 0;
    right: 108px;
}

.right-chain .diamond:nth-child(3) {
    top: 108px;
    right: 0;
}

.diamond-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d3a4a 0%, #1a2332 100%);
    border: 2px solid #00d4aa;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 0 15px rgba(224, 64, 251, 0.4),
        0 0 30px rgba(224, 64, 251, 0.2),
        inset 0 0 20px rgba(0, 212, 170, 0.05);
}

.diamond-title {
    transform: rotate(-45deg);
    color: #e040fb;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Diamond Hover Effect */
.diamond:hover .diamond-inner {
    background: linear-gradient(135deg, #3d4a5a 0%, #2a3342 100%);
    border-color: #00ffcc;
    box-shadow:
        0 0 20px rgba(224, 64, 251, 0.6),
        0 0 40px rgba(224, 64, 251, 0.4),
        0 0 60px rgba(224, 64, 251, 0.2),
        inset 0 0 30px rgba(0, 255, 204, 0.1);
}

.diamond:hover .diamond-title {
    color: #f06bff;
    text-shadow: 0 0 10px rgba(224, 64, 251, 0.5);
}

/* Diamond Click Animation - ausblenden */
.diamond.active {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Popover Overlay */
.popover-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    pointer-events: none;
    transition: background 0.5s ease;
}

.popover-overlay.active {
    background: rgba(0, 0, 0, 0.85);
    pointer-events: all;
}

/* Popover Content - Morph Animation */
.popover-content {
    position: fixed;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2d3a4a 0%, #1a2332 100%);
    border: 2px solid #00d4aa;
    border-radius: 0;
    padding: 0;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 1;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.2);
    overflow: hidden;
    visibility: hidden;
    will-change: transform, width, height, border-radius;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.popover-content .popover-inner {
    opacity: 0;
    transition: opacity 0.3s ease 0.4s;
}

.popover-overlay.active .popover-content {
    position: fixed;
    left: 50% !important;
    top: 50% !important;
    width: 90vw;
    max-width: 900px;
    height: auto;
    max-height: 80vh;
    max-height: 80dvh;
    transform: translate(-50%, -50%) rotate(0deg);
    pointer-events: all;
    border-radius: 20px;
    padding: 40px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, #1e2a3a 0%, #152030 100%);
    box-shadow:
        0 0 50px rgba(0, 212, 170, 0.3),
        inset 0 0 100px rgba(0, 212, 170, 0.05);
    overflow-y: auto;
    visibility: visible;
    -webkit-overflow-scrolling: touch;
}

.popover-overlay.active .popover-content .popover-inner {
    opacity: 1;
}

/* Popover Inner Content */
.popover-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Popover Close Button */
.popover-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #00d4aa;
    border-radius: 50%;
    color: #00d4aa;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.popover-close:hover {
    background: #00d4aa;
    color: #1a1a2e;
    transform: rotate(90deg);
}

/* Popover Title */
.popover-title {
    color: #00ffcc;
    font-size: 2.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 212, 170, 0.3);
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

/* Popover Body */
.popover-body {
    color: #b0c4d8;
    font-size: 1.1rem;
    line-height: 1.8;
    flex: 1;
    overflow-y: auto;
}

.popover-body p {
    margin-bottom: 20px;
}

.popover-body a {
    transition: all 0.3s ease;
}

.popover-body a:hover {
    filter: brightness(1.3);
    text-decoration: underline !important;
}

.popover-body h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Schedule Section */
.schedule-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 212, 170, 0.3);
}

.schedule-section h3 {
    color: #00d4aa;
    margin-bottom: 20px;
}

.schedule-loading {
    color: #6b8a9a;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.schedule-loading::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.schedule-error,
.schedule-empty {
    padding: 20px;
    background: rgba(255, 100, 100, 0.1);
    border-radius: 10px;
    border-left: 4px solid #ff6464;
    text-align: center;
}

.schedule-empty {
    background: rgba(0, 212, 170, 0.1);
    border-left-color: #00d4aa;
}

.schedule-link {
    display: inline-block;
    margin-top: 10px;
    color: #9146FF;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.schedule-link:hover {
    color: #b380ff;
    text-decoration: underline;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 212, 170, 0.08);
    border-radius: 10px;
    border-left: 4px solid #9146FF;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    background: rgba(0, 212, 170, 0.15);
    transform: translateX(5px);
}

.schedule-datetime {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.schedule-day {
    color: #00d4aa;
    font-weight: 600;
    font-size: 0.95rem;
}

.schedule-time {
    color: #9146FF;
    font-size: 1.1rem;
    font-weight: 700;
}

.schedule-title {
    color: #b0c4d8;
    font-size: 1rem;
    text-align: right;
    max-width: 60%;
}

/* Music Section */
.music-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 212, 170, 0.3);
}

.music-section h3 {
    color: #FF0000;
    margin-bottom: 20px;
}

.music-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

.music-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.music-player-placeholder {
    padding: 40px 20px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 12px;
    border-left: 4px solid #FF0000;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .logo {
        width: 340px;
        height: 340px;
    }

    .diamond {
        width: 100px;
        height: 100px;
    }

    .diamond-chain {
        width: 290px;
        height: 200px;
    }

    .left-chain .diamond:nth-child(1) { top: 90px; left: 0; }
    .left-chain .diamond:nth-child(2) { top: 0; left: 90px; }
    .left-chain .diamond:nth-child(3) { top: 90px; left: 180px; }

    .right-chain .diamond:nth-child(1) { top: 90px; right: 180px; }
    .right-chain .diamond:nth-child(2) { top: 0; right: 90px; }
    .right-chain .diamond:nth-child(3) { top: 90px; right: 0; }

    .diamond-title {
        font-size: 11px;
    }
}

@media (max-width: 1000px) {
    .container {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        width: 220px;
        height: 220px;
    }

    .diamond-chain {
        width: 220px;
        height: 140px;
    }

    .diamond {
        width: 70px;
        height: 70px;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .popover-content {
        -webkit-transform: translate(-50%, -50%) rotate(45deg);
        transform: translate(-50%, -50%) rotate(45deg);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Obere Kette: Pfeil nach oben ^ */
    .left-chain .diamond:nth-child(1) { top: 65px; left: 0; }
    .left-chain .diamond:nth-child(2) { top: 0; left: 75px; }
    .left-chain .diamond:nth-child(3) { top: 65px; left: 150px; }

    /* Untere Kette: Pfeil nach unten V */
    .right-chain .diamond:nth-child(1) { top: 0; right: 150px; }
    .right-chain .diamond:nth-child(2) { top: 65px; right: 75px; }
    .right-chain .diamond:nth-child(3) { top: 0; right: 0; }

    .diamond-title {
        font-size: 9px;
    }

    .popover-content {
        padding: 25px;
    }

    .popover-overlay.active .popover-content {
        top: 70px !important;
        left: 50% !important;
        height: auto;
        max-height: calc(100vh - 140px);
        max-height: calc(100dvh - 140px);
        -webkit-transform: translate(-50%, 0) rotate(0deg);
        transform: translate(-50%, 0) rotate(0deg);
        padding-top: 0;
        padding-bottom: 60px;
    }

    .popover-header {
        position: sticky;
        top: 0;
        background: linear-gradient(180deg, #1e2a3a 0%, #1e2a3a 90%, transparent 100%);
        margin: 0 -25px;
        padding: 25px 25px 15px 25px;
        z-index: 10;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .popover-title {
        color: #00ffcc;
        font-size: 1.8rem;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 2px solid rgba(0, 212, 170, 0.3);
        text-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
        flex: 1;
    }

    .popover-close {
        position: relative;
        top: auto;
        right: auto;
        width: 36px;
        height: 36px;
        background: transparent;
        border: 2px solid #00d4aa;
        border-radius: 50%;
        color: #00d4aa;
        font-size: 20px;
        flex-shrink: 0;
        margin-left: 15px;
    }

    .popover-body {
        padding-top: 10px;
    }
}

/* Global Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a2332;
}

::-webkit-scrollbar-thumb {
    background: #00d4aa;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ffcc;
}

/* Popover Scrollbar */
.popover-content {
    scrollbar-gutter: stable;
}

.popover-content::-webkit-scrollbar {
    width: 8px;
}

.popover-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 20px 0;
}

.popover-content::-webkit-scrollbar-thumb {
    background: #00d4aa;
    border-radius: 4px;
}

.popover-content::-webkit-scrollbar-thumb:hover {
    background: #00ffcc;
}

/* Footer */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 100;
    font-size: 0.9rem;
}

.copyright {
    color: #6b8a9a;
}

.footer-divider {
    color: #3d4a5a;
}

.impressum-link {
    color: #00d4aa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.impressum-link:hover {
    color: #00ffcc;
    text-decoration: underline;
}

/* Impressum Overlay */
.impressum-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2500;
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s ease;
}

.impressum-overlay.active {
    background: rgba(0, 0, 0, 0.85);
    pointer-events: all;
    opacity: 1;
}

.impressum-content {
    position: relative;
    width: 90vw;
    max-width: 700px;
    max-height: 85vh;
    background: linear-gradient(135deg, #1e2a3a 0%, #152030 100%);
    border: 2px solid #00d4aa;
    border-radius: 20px;
    padding: 40px;
    transform: translateY(30px);
    transition: transform 0.4s ease;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(0, 212, 170, 0.3);
}

.impressum-overlay.active .impressum-content {
    transform: translateY(0);
}

.impressum-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #00d4aa;
    border-radius: 50%;
    color: #00d4aa;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.impressum-close:hover {
    background: #00d4aa;
    color: #1a1a2e;
    transform: rotate(90deg);
}

.impressum-title {
    color: #00ffcc;
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 212, 170, 0.3);
}

.impressum-body {
    color: #b0c4d8;
    line-height: 1.8;
}

.impressum-body h3 {
    color: #00d4aa;
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.impressum-body h3:first-child {
    margin-top: 0;
}

.impressum-body p {
    margin-bottom: 15px;
}

/* Impressum Scrollbar */
.impressum-content::-webkit-scrollbar {
    width: 8px;
}

.impressum-content::-webkit-scrollbar-track {
    background: #1a2332;
    border-radius: 4px;
}

.impressum-content::-webkit-scrollbar-thumb {
    background: #00d4aa;
    border-radius: 4px;
}

.impressum-content::-webkit-scrollbar-thumb:hover {
    background: #00ffcc;
}

/* Responsive Footer */
@media (max-width: 600px) {
    .site-footer {
        flex-direction: column;
        gap: 8px;
        padding: 12px 15px;
        font-size: 0.8rem;
    }

    .footer-divider {
        display: none;
    }

    .impressum-content {
        padding: 25px;
    }

    .impressum-title {
        font-size: 1.5rem;
    }
}
