/* ==========================================================================
   BC OETWIL AM SEE - STYLESHEET
   Brand Colors: Primary: #008cdb (Blue) | Secondary: #ffffff (White) | Text: Dark Gray
   ========================================================================== */

/* --- CSS VARIABLES --- */
:root {
    --primary-color: #008cdb;
    --primary-hover: #0076ba;
    --primary-light: rgba(0, 140, 219, 0.1);
    --secondary-color: #ffffff;
    --dark-bg: #0f1115;
    --dark-surface: #1a1d24;
    --text-primary: #2a2d34;
    --text-muted: #6c757d;
    --text-light: #f8f9fa;
    --accent-orange: #ff7a00; /* Basketball energy accent */
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 15px 35px rgba(0, 140, 219, 0.15);
}

/* --- RESET & GLOBAL STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #fcfcfc;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- BUTTONS & INTERACTIVE ELEMENTS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 140, 219, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-accent {
    background-color: var(--accent-orange);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.btn-accent:hover {
    background-color: #e06b00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.6rem 1.4rem;
    font-size: 0.75rem;
}

/* --- FIXED NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 140, 219, 0.2);
    padding: 1.15rem 0;
    transition: background-color var(--transition-speed) ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary-color);
}

.navbar-logo {
    height: 92px;
    width: auto;
    object-fit: contain;
    position: relative;
    top: 18px; /* Schiebt das Logo elegant über den unteren Navbar-Rand hinaus */
    margin-bottom: -20px; /* Verhindert, dass die Navigationsleiste vertikal gedehnt wird */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3)); /* Premium 3D-Schattenwurf auf den Hintergrund */
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar-logo:hover {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 6px 12px rgba(0, 140, 219, 0.45)); /* Stylischer blauer Glow-Effekt beim Hover */
}

.navbar-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.65rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.navbar-title .accent {
    color: var(--primary-color);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-links a {
    color: #cbd5e1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--secondary-color);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: var(--border-radius);
}

.nav-cta:hover {
    background-color: var(--primary-hover);
}

.nav-cta::after {
    display: none !important;
}

/* Hide toggle checkbox & menu button on desktop */
.menu-toggle,
.menu-button {
    display: none;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('./teamphoto.jpg') no-repeat center 75%/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    padding-top: 80px; /* Offset fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from brand blue to dramatic dark tone for text contrast and premium feel */
    background: linear-gradient(
        135deg,
        rgba(0, 140, 219, 0.45) 0%,
        rgba(15, 17, 21, 0.92) 80%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-subtitle {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease forwards;
}

.hero-title .highlight {
    color: var(--secondary-color);
    -webkit-text-stroke: 1.5px var(--primary-color);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #e2e8f0;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    animation: fadeInUp 1.2s ease forwards;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1.4s ease forwards;
}

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

/* --- NEXT GAME BANNER --- */
.next-game-banner {
    background-color: var(--dark-bg);
    border-bottom: 4px solid var(--primary-color);
    padding: 2rem 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    color: var(--secondary-color);
}

.banner-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.banner-badge {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-align: center;
}

.banner-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item i {
    color: var(--primary-color);
}

.training-message {
    text-align: center;
}

.training-message h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.training-message p {
    color: #cbd5e1;
}

.training-message p a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.training-message p a:hover {
    color: var(--secondary-color);
}

/* --- LATEST NEWS SECTION --- */
.news-section {
    padding: 6rem 0;
    background-color: #f8fafc;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    color: var(--text-primary);
}

.section-title .accent {
    color: var(--primary-color);
}

/* --- BOARD / VORSTAND GRID --- */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    text-align: center;
    align-items: start;
}

.board-member h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.3rem;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.board-member h3.wrap {
    word-break: break-word;
}

.board-member p {
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.7rem;
}

/* --- TEAM --- */
.team-showcase {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.team-photo {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.team-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.team-text p:last-child {
    margin-bottom: 0;
}

.team-text strong {
    color: var(--primary-color);
}

/* --- HISTORIE --- */
.history-content {
    max-width: 720px;
    margin: 0 auto;
}

.history-content p {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.8;
}

.history-content p.history-signature {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0;
    text-align: right;
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.news-card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.news-img-wrapper {
    position: relative;
    height: 220px;
    background-color: #e2e8f0;
}

.news-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Diagonal athletic style gradient */
    background: linear-gradient(135deg, var(--primary-color) 0%, #005687 100%);
    color: var(--secondary-color);
    font-size: 4rem;
}

.news-img-placeholder.coaching {
    background: linear-gradient(135deg, #2a2d34 0%, #111215 100%);
}

.news-img-placeholder.community {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #bf5c00 100%);
}

.news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--secondary-color);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

.news-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-readmore {
    margin-top: auto;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-readmore i {
    transition: transform var(--transition-speed) ease;
}

.news-card:hover .news-readmore i {
    transform: translateX(5px);
}

.news-card:hover .news-readmore {
    color: var(--primary-hover);
}

.news-footer {
    text-align: center;
}

/* --- STANDARD FOOTER --- */
.main-footer {
    background-color: var(--dark-bg);
    color: #cbd5e1;
}

.footer-top {
    padding: 5rem 0 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 90px;
    width: auto;
}

.footer-brand span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.35rem;
    text-transform: uppercase;
}

.footer-brand .accent {
    color: var(--primary-color);
}

.footer-arena-tagline {
    font-style: italic;
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}

.footer-heading {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    font-size: 0.92rem;
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact-info {
    display: flex;
    gap: 1rem;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #94a3b8;
}

.footer-contact-info i {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-top: 0.2rem;
}

.footer-contact-info strong {
    color: var(--secondary-color);
}

/* Footer Bottom Section */
.footer-bottom {
    background-color: #0b0c0f;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a:hover {
    color: var(--secondary-color);
}

.footer-legal-content {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-legal-content-inner {
    max-width: 700px;
    margin: 0 auto;
}

.footer-legal-content h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-legal-content p {
    margin-bottom: 0.85rem;
    color: #64748b;
    line-height: 1.7;
}

.footer-legal-content p:last-child {
    margin-bottom: 0;
}

.footer-legal-content a {
    color: #94a3b8;
    text-decoration: underline;
}

.footer-legal-content a:hover {
    color: var(--secondary-color);
}

.footer-impressum-row {
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-impressum {
    text-align: center;
    color: #64748b;
}

.footer-impressum a {
    color: #64748b;
}

.footer-impressum a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (BREAKPOINTS)
   ========================================================================== */

/* --- TABLET VIEW (Under 1024px) --- */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- MOBILE LANDSCAPE & SMALL TABLET VIEW (Under 768px) --- */
@media (max-width: 768px) {
    /* Team-Sektion: Bild und Text stapeln statt nebeneinander */
    .team-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Navbar etwas kompakter, damit der grössere Markenname nicht umbricht */
    .navbar-logo {
        height: 60px;
        top: 10px;
        margin-bottom: -12px;
    }

    .navbar-title {
        font-size: 1.2rem;
    }

    /* Responsive Navigation using Pure CSS Toggle Hack */
    .menu-button {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-button span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--secondary-color);
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* Transform burger lines to X on checked */
    .menu-toggle:checked + .menu-button span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle:checked + .menu-button span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .menu-toggle:checked + .menu-button span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .navbar-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        padding: 3rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 999;
    }

    .menu-toggle:checked ~ .navbar-links {
        right: 0;
    }

    .navbar-links a {
        font-size: 1.15rem;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    /* Hero layout adjust */
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Footer layout */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- MOBILE PORTRAIT VIEW (Under 480px) --- */
@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}
