/* ===================================
   ASV JUGEND - MAIN STYLES (OVERHAULED)
   =================================== */

:root {
    --primary: #00f2ea;
    --primary-dark: #00c2bb;
    --secondary: #ff0055;
    --accent: #7000ff;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-main: linear-gradient(135deg, #00f2ea 0%, #7000ff 50%, #ff0055 100%);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 100px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-cta {
    background: var(--gradient-main);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 242, 234, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 242, 234, 0.5);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: #fff;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* ===================================
   MAIN HERO SECTION (Index)
   =================================== */
.jugend-hero {
    position: relative;
    padding: 8rem 0 6rem;
    text-align: center;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jugend-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.jugend-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.jugend-hero-logo {
    max-width: 200px;
    margin: 0 auto 2rem;
}

.jugend-hero-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.jugend-hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.jugend-hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.jugend-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.jugend-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.jugend-blob-1 {
    top: -10%;
    left: 5%;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-emoji,
.why-icon,
.trust-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.activity-card h3,
.why-card h3,
.activity-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-level {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 242, 234, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===================================
   TEAM GRID SECTION (Overhaul)
   =================================== */
.team-grid-section {
    padding: 2rem 0 6rem;
    background: var(--dark-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.team-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.team-card-visual {
    height: 350px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.team-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-card-img {
    transform: scale(1.05);
}

.team-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.team-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-role {
    display: inline-block;
    align-self: flex-start;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.team-name {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.team-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ===================================
   FUN FACTS SECTION
   =================================== */
.jugend-facts {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #162033 100%);
}

.facts-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.fact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.fact-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fact-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.fact-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    vertical-align: super;
    margin-left: 5px;
}

.fact-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===================================
   MITMACHEN PAGE STYLES
   =================================== */
.step-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.requirement-not-needed .requirement-icon {
    color: #ef4444;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.requirement-needed .requirement-icon {
    color: #22c55e;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.requirement-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.requirement-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Download Card */
.download-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 6s infinite ease-in-out;
}

.download-info {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.download-info a {
    color: var(--primary);
    text-decoration: underline;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
    max-width: 250px;
    margin: 0 auto;
    width: 100%;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.benefit-icon {
    font-size: 2.5rem;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center;
}

.faq-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 380px;
}

.faq-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 1rem;
}

.faq-contact {
    text-align: center;
}

/* Steps Timeline */
.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .steps-timeline {
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
    }

    .step-card {
        flex: 1;
        margin-bottom: 0;
        max-width: 380px;
    }

    .step-connector {
        display: none;
    }
}

/* ===================================
   CALENDAR STYLES
   =================================== */
.jugend-calendar-section {
    padding: 6rem 0;
    min-height: 80vh;
}

.calendar-wrapper {
    background: rgba(16, 24, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-cal-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cal-nav:hover {
    background: var(--primary);
    color: black;
    transform: scale(1.1);
}

#calendar-month-year {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.calendar-matrix-header {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.calendar-matrix {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 8px;
}

.calendar-day {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    min-height: 120px;
    padding: 0.8rem;
    position: relative;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.06);
}

.calendar-day.today {
    background: rgba(0, 242, 234, 0.1);
    border-color: var(--primary);
}

.calendar-day.has-events {
    cursor: pointer;
}

.calendar-day.has-events:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.day-number {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
    display: block;
}

.today .day-number {
    color: var(--primary);
}

.day-event {
    background: var(--primary);
    color: black;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.calendar-export {
    text-align: center;
    margin-top: 2rem;
}

/* Calendar Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #1e1e2f;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-event-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-event-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-time {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-location,
.modal-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

/* ===================================
   LEGAL PAGES (Impressum & Datenschutz)
   =================================== */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

.legal-section {
    margin-bottom: 4rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.legal-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
    margin-top: 2rem;
}

.legal-section p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.legal-section ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-section a:hover {
    color: #fff;
}

/* ===================================
   UTILITY & MISC
   =================================== */
.team-intro-text {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.team-photo-section {
    padding: 4rem 0;
    background: var(--dark-bg);
}

.team-photo-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.photo-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    text-align: center;
    color: white;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.team-card-simple {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.team-card-simple:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.team-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.team-avatar-circle,
.team-img-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 242, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.team-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
}

.team-info span {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-info-box {
    margin-top: 3rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.1) 100%);
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.disclaimer-icon {
    font-size: 2rem;
}

.disclaimer-text h4 {
    margin: 0 0 0.5rem 0;
    color: #ffc107;
    font-size: 1.1rem;
}

.disclaimer-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .leader-content-wrapper,
    .leader-section.reverse .leader-content-wrapper {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .page-hero-title {
        font-size: 3rem;
    }
}

/* ===================================
   FISH GAME SECTION
   =================================== */
.jugend-game {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

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

.jugend-section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 242, 234, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.jugend-section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.jugend-section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.game-wrapper {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.game-stats-bar {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.game-stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 242, 234, 0.5);
}

.game-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #001e3c;
    /* Deep sea blue fallback */
    border-radius: 16px;
    overflow: hidden;
    cursor: crosshair;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.game-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
    text-align: center;
}

/* Overlays */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.game-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.overlay-content {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
}

.overlay-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

#player-name-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

#player-name-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.3);
}

.btn-jugend {
    background: var(--gradient-main);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 242, 234, 0.4);
}

.btn-jugend:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 234, 0.6);
}

/* Results Styles */
.results-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
}

.result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.result-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.result-rank-stat .result-value {
    color: #fbbf24;
    /* Gold */
}

.leaderboard {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    max-height: 150px;
    overflow-y: auto;
}

.leaderboard h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leaderboard-entry {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
}

.leaderboard-entry.highlight {
    background: rgba(0, 242, 234, 0.2);
    border: 1px solid rgba(0, 242, 234, 0.3);
}

/* Game Tips & Legend */
.game-tips {
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-rare {
    border: 1px solid rgba(112, 0, 255, 0.3);
    color: #d8b4fe;
}

.legend-legendary {
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fcd34d;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
}

.fish-emoji {
    font-size: 1.2rem;
}

/* ===================================
   CALENDAR & UPCOMING EVENTS STYLES
   =================================== */
.jugend-calendar-section {
    padding: 6rem 0;
    min-height: 80vh;
}

.calendar-wrapper {
    background: rgba(16, 24, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-cal-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cal-nav:hover {
    background: var(--primary);
    color: black;
    transform: scale(1.1);
}

#calendar-month-year {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.calendar-matrix-header {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.calendar-matrix {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 8px;
}

.calendar-day {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    min-height: 120px;
    padding: 0.8rem;
    position: relative;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.06);
}

.calendar-day.today {
    background: rgba(0, 242, 234, 0.1);
    border-color: var(--primary);
}

.calendar-day.has-events {
    cursor: pointer;
}

.calendar-day.has-events:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.day-number {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
    display: block;
}

.today .day-number {
    color: var(--primary);
}

.day-event {
    background: var(--primary);
    color: black;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.calendar-export {
    text-align: center;
    margin-top: 2rem;
}

/* UPCOMING WIDGET STYLES */
.jugend-events-preview {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.events-grid-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.event-date-badge {
    background: linear-gradient(135deg, #00ff94 0%, #00b8ff 100%);
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 255, 148, 0.3);
}

.event-day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.event-month {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #fff;
}

.event-meta {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    gap: 0.25rem;
}

.events-more-link {
    text-align: center;
    margin-top: 3rem;
}

.btn-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-link:hover {
    color: white;
    letter-spacing: 1px;
}

.no-events,
.error-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    padding: 2rem;
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #1e1e2f;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-event-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-event-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-time {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-location,
.modal-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

/* Loader */
.loader-spinner {
    text-align: center;
    font-size: 2rem;
    padding: 2rem;
    animation: rotate 2s linear infinite;
    grid-column: 1 / -1;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}