@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

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

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #f3e8ff 100%);
    position: relative;
    color: #1f2937;
}

/* Lighter animated background elements */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            circle at 15% 25%,
            rgba(59, 130, 246, 0.15) 0%,
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(139, 92, 246, 0.15) 0%,
            transparent 25%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(236, 72, 153, 0.1) 0%,
            transparent 30%
        );
    animation: backgroundFloat 30s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translate(15px, -15px) scale(1.02);
        opacity: 0.7;
    }
    66% {
        transform: translate(-10px, 10px) scale(0.98);
        opacity: 0.5;
    }
}

/* Header - Keep original dark color */
header {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    width: 100%;
    height: 110px;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent
    );
    animation: headerShimmer 6s infinite;
    pointer-events: none;
}

@keyframes headerShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

header h1 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    margin-left: 1rem;
}

#pfpImage {
    height: 90px;
    width: 90px;
    object-fit: cover;
    border-radius: 30%;
    margin: 20px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#pfpImage:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Burger Menu */
#burger {
    position: absolute;
    top: 0;
    right: 0;
    margin: 35px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

#burger:hover {
    transform: scale(1.1);
}

#burger.active .top {
    transform: translateX(8.5px) translateY(0.5px) rotate(45deg);
    transition: transform 0.5s ease;
}

#burger.active .middle {
    opacity: 0;
    transition: opacity 0.2s ease;
}

#burger.active .bottom {
    transform: translateY(16px) translateX(-20px) rotate(-45deg);
    transition: transform 0.5s ease;
}

.top,
.middle,
.bottom {
    transition: all 0.5s ease;
    fill: #ffffff !important;
}

#burgerMenu {
    position: fixed;
    top: 0;
    height: 100%;
    width: 300px;
    background: linear-gradient(135deg, #3663b1, #0c2c95) !important;
    backdrop-filter: blur(20px);
    transition: 0.4s ease;
    display: none;
    z-index: 99;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(59, 130, 246, 0.3);
}

#burgerMenu .list {
    margin-top: 150px;
    margin-left: 40px;
    margin-right: 20px;
    font-size: 18px;
}

#burgerMenu a:nth-child(1) {
    font-size: 24px;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 700;
}

#burgerMenu a {
    text-decoration: none;
    color: #e2e8f0;
    display: block;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

#burgerMenu a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

#burgerMenu a:hover::before {
    left: 100%;
}

#burgerMenu a:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(51, 108, 200, 0.4);
}

#burgerMenu.activeBox {
    position: fixed;
    right: 0;
    transition: 0.4s ease;
    display: block;
}

/* Content */
.content {
    margin-top: 120px;
    flex: 1 0 auto;
    padding: 2rem 0;
}

/* Unified Card Styling - Lighter theme */
.card,
.zeitplan,
.termine,
.nachrichten,
.trainer,
.sponsoren,
.newsBlock,
.trainerBlock,
.sponsorBlock,
.day-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    color: #1f2937 !important;
}

.card:hover,
.zeitplan:hover,
.termine:hover,
.nachrichten:hover,
.trainer:hover,
.sponsoren:hover,
.newsBlock:hover,
.trainerBlock:hover,
.sponsorBlock:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    background: rgba(255, 255, 255, 1) !important;
}

/* Unified shimmer effect */
.card::before,
.zeitplan::before,
.termine::before,
.nachrichten::before,
.trainer::before,
.sponsoren::before,
.newsBlock::before,
.trainerBlock::before,
.sponsorBlock::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent
    ) !important;
    animation: cardShimmer 8s infinite !important;
    pointer-events: none !important;
}

@keyframes cardShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Slider - Transparent Background */
.sliderBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
    background: transparent;
}

.slider {
    width: 90%;
    max-width: 1200px;
    background: transparent;
}

.slider img {
    width: 100%;
    border-radius: 20px;
    height: 300px;
    object-fit: cover;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.slider img:hover {
    transform: translateY(-3px);
}

.slick-slide {
    margin-right: 15px;
}

.slick-dots li button:before {
    color: #3b82f6;
    font-size: 12px;
}

.slick-dots li.slick-active button:before {
    color: #1e40af;
}

/* Main Site Content */
.mainSite {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.containerBlock {
    width: 100%;
}

.containerInfo {
    display: flex;
    gap: 0;
    flex-direction: row;
    position: relative;
    align-items: start;
}

#latest-news-panel {
    margin: 0 20px;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.ringenInfo {
    padding: 3rem;
    margin-bottom: 2rem;
    margin-right: 0;
    padding-right: 2rem;
    width: 70%;
}

.ringenInfo h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.ringenInfo h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.ringenInfo p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    text-align: justify;
    font-weight: 400;
}

/* Tournaments Section - Connecting with right side */
#wettbewerbe-list {
    flex: 0.5;
    background: linear-gradient(135deg, #3b82f6, #1e40af) !important;
    padding: 20px;
    color: white;
    margin-bottom: 2rem;
    height: 300px;
    border-radius: 20px 0 0 20px !important;
    margin-right: -2rem;
    padding-right: 4rem;
}

#wettbewerbe-list p {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tournament-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.tournament-list li {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
    color: white;
}

.tournament-list li:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tournament-list a {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* Footer - Plain text */
footer {
    width: 100%;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}
.info {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
    margin: 10px;
}
.adresseInfo {
    margin: 10px;
}
footer h4 {
    color: #60a5fa;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer p {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

.footer-impressum {
    margin: 60px 0 0 0;
    color: #e2e8f0;
    display: block;
}

/* Empty State Improvements - Lighter theme */
.noNewsMsg,
.noTrainerMsg,
.noSponsorMsg,
.no-training {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px dashed rgba(59, 130, 246, 0.3);
    animation: emptyStatePulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    color: #1f2937;
}

.noNewsMsg::before,
.noTrainerMsg::before,
.noSponsorMsg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(59, 130, 246, 0.05),
        transparent
    );
    animation: emptyStateShimmer 4s infinite;
    pointer-events: none;
}

@keyframes emptyStatePulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
    }
}

@keyframes emptyStateShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.noNewsMsg h2,
.noTrainerMsg h2,
.noSponsorMsg h2 {
    color: #1e40af;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: none;
    padding: 0;
}

.noNewsMsg p,
.noTrainerMsg p,
.noSponsorMsg p {
    color: #6b7280;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
}

.noNewsMsg::after {
    content: "📰";
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.4;
}

.noTrainerMsg::after {
    content: "👨‍🏫";
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.4;
}

.noSponsorMsg::after {
    content: "🤝";
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.4;
}

/* Responsive Design */
@media (max-width: 1200px) {
    /* Hide tournament list on smaller screens */
    #wettbewerbe-list {
        display: none;
    }

    /* Remove margin when tournament list is hidden */
    .containerInfo .ringenInfo {
        margin-right: 0;
        padding: 3rem;
    }
    .ringenInfo {
        width: 100%;
    }
    .containerInfo {
        gap: 2rem;
        padding: 0 2rem;
    }
    .leftColumn {
        width: 100%;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .leftColumn {
        width: 95%;
    }

    .content {
        margin-top: 130px;
        padding: 1rem 0;
    }
    footer p {
        font-size: smaller;
    }
    .containerInfo {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .ringenInfo {
        padding: 2rem;
        margin-right: 0;
        width: 100%;
    }

    .ringenInfo h2 {
        font-size: 2rem;
    }

    .ringenInfo p {
        font-size: 1rem;
    }

    footer {
        padding: 2rem 1rem;
    }

    .slider img {
        height: 250px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    #pfpImage {
        height: 70px;
        width: 70px;
    }

    #burgerMenu {
        width: 280px;
    }
    #rightsFooter {
        width: 80% !important;
    }
}

@media (max-width: 480px) {
    .leftColumn {
        width: 100%;
    }
    #rightsFooter {
        width: 100% !important;
    }
    #latest-news-panel {
        margin: 0;
    }
    footer p {
        font-size: smaller;
    }
    .content {
        margin-top: 120px;
    }

    .ringenInfo {
        padding: 1rem;
        width: 100%;
    }

    .ringenInfo h2 {
        font-size: 1.8rem;
    }

    .ringenInfo p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    footer {
        padding: 2rem 1rem;
    }

    header {
        height: 100px;
    }

    header h1 {
        font-size: 1.2rem;
        max-width: 10rem;
    }

    #pfpImage {
        height: 60px;
        width: 60px;
    }

    .slider img {
        height: 200px;
    }

    #burgerMenu {
        width: 260px;
    }

    #burgerMenu .list {
        margin-top: 130px;
        margin-left: 30px;
    }

    .noNewsMsg,
    .noTrainerMsg,
    .noSponsorMsg {
        padding: 3rem 1.5rem;
    }

    .noNewsMsg h2,
    .noTrainerMsg h2,
    .noSponsorMsg h2 {
        font-size: 1.8rem;
    }

    .noNewsMsg p,
    .noTrainerMsg p,
    .noSponsorMsg p {
        font-size: 1.1rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zeitplan,
.termine,
.nachrichten,
.trainer,
.sponsoren {
    animation: fadeInUp 0.6s ease forwards;
}

.zeitplan {
    animation-delay: 0.1s;
}
.termine {
    animation-delay: 0.2s;
}
.nachrichten {
    animation-delay: 0.3s;
}
.trainer {
    animation-delay: 0.4s;
}
.sponsoren {
    animation-delay: 0.5s;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}
