/* Global Styles */
:root {
    --gold: #c8aa6e;
    --gold-dark: #a88a4e;
    --dark: #0a0a0a;
    --light: #f0f0f0;
    --accent: #1a1a1a;
    --cal-bg: rgba(30, 30, 30, 0.95);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background/Overlay */
/* Background/Overlay */
.overlay {
    position: relative;
    min-height: 100vh;
    /* Background image removed in favor of video */
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    /* Darker tint */
    z-index: 1;
    /* Above video */
}

.container {
    max-width: 87.5rem;
    /* 1400px / 16 = 87.5rem */
    width: 95%;
    /* Fluid width for all screens */
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    /* Fluid padding */
    position: relative;
    z-index: 1;
}

/* Navigation Base */
.page-nav {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 0.0625rem solid var(--gold-dark);
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.5);
}

.page-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Electrolize', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
}

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

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.3s ease;
    font-family: 'Electrolize', sans-serif;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown>a {
    cursor: default;
    /* Keep cursor but don't imply click-nav */
    padding-bottom: 15px;
    /* Bridge the gap */
    margin-bottom: -15px;
    /* Compensate layout */
}

/* Dropdown Content - FIXED: Removed margin-top to prevent layout jump */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(10, 10, 10, 0.98);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    border: 1px solid var(--gold);
    border-radius: 4px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    /* margin-top: 10px;  <-- REMOVED THIS CAUSE OF FLICKER */
}

/* Invisible bridge to prevent closing when moving mouse */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Dropdown link styling */
.dropdown-content a {
    color: var(--light);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    border-bottom: 1px solid rgba(200, 170, 110, 0.2);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(200, 170, 110, 0.1);
    color: var(--gold);
}

/* Show dropdown on hover with CORRECT animation */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDropdown 0.2s ease-out forwards;
}

/* Specific Dropdown Animation to preserve X-centering and fix Jitter */
@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-family: 'Electrolize', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(200, 170, 110, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--light);
    max-width: 800px;
    /* Widened from 600px */
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
    color: var(--dark);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Electrolize', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gold);
    box-shadow: 0 0 10px rgba(200, 170, 110, 0.3);
}

.btn:hover {
    background: linear-gradient(to bottom, var(--gold-dark), var(--gold));
    box-shadow: 0 0 20px rgba(200, 170, 110, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: rgba(200, 170, 110, 0.1);
    color: var(--gold);
}

/* Section Styles */
section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-title {
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    color: var(--gold);
    font-family: 'Electrolize', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

/* Content Boxes */
.content-box {
    background-color: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--gold-dark);
    padding: 2.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    /* Ensure full width usage */
}

.content-box:hover {
    box-shadow: 0 0 20px rgba(200, 170, 110, 0.2);
    transform: translateY(-2px);
}

.content-box h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-family: 'Electrolize', sans-serif;
}

.content-box p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #ddd;
}

/* Rules List */
.rules-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr));
    /* 300px = 18.75rem, with min() for small screens */
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: 2rem;
}

.rule-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-left: 3px solid var(--gold);
    transition: background 0.3s ease;
}

.rule-card:hover {
    background: rgba(200, 170, 110, 0.05);
}

.rule-card h4 {
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: rgba(26, 26, 26, 0.8);
    color: var(--light);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--gold-dark);
    backdrop-filter: blur(5px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 5;
}

.footer-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: 3rem;
    text-align: center;
}

.footer-column {
    flex: 0 1 min(100%, 18.75rem);
}

.footer-column h3 {
    text-align: center;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #888;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-active {
    opacity: 1;
    transform: translateY(0);
}

.split-text span {
    display: inline-block;
    opacity: 0;
}

.split-text span.animate-text {
    animation: fadeIn 0.5s forwards;
}

/* Utility Classes */
.holo-effect {
    color: var(--gold) !important;
    text-shadow: 0 0 8px rgba(200, 170, 110, 0.8) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.holo-effect:hover {
    text-shadow: 0 0 15px rgba(200, 170, 110, 1) !important;
    color: #fff !important;
}

/* Stat Calculator Styles */
.stat-calculator-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
    /* Restored Container Styling */
    margin-top: 40px;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid var(--gold-dark);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.stat-calculator-column h2 {
    font-family: 'Electrolize', sans-serif;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--gold-dark);
    padding-bottom: 0.5rem;
}

#equipment-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.item-slot-card {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(200, 170, 110, 0.3);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.item-slot-card label {
    margin-bottom: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--light);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.item-slot-card select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--gold-dark);
    color: var(--light);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.item-slot-card select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 5px rgba(200, 170, 110, 0.5);
}

.stat-table th,
.stat-table td {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.stat-table th {
    color: var(--gold);
    font-weight: normal;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Responsive Stat Calculator */
@media (max-width: 900px) {
    .stat-calculator-grid-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Fix Dropdown Readability - Dark Theme */
.stat-calculator-grid-wrapper select option {
    background-color: #000000;
    color: var(--gold);
    padding: 10px;
}

/* Message Box Styles */
.message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(10, 10, 10, 0.95);
    padding: 2rem;
    border-radius: 8px;
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    text-align: center;
    max-width: 90%;
    min-width: 300px;
    color: var(--light);
    border: 1px solid var(--gold);
}

.message-box p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--light);
}

.message-box button {
    background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 1px solid var(--gold);
}

.message-box button:hover {
    background: linear-gradient(to bottom, var(--gold-dark), var(--gold));
}

/* Gallery Styles */
.gallery-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-button {
    padding: 0.7rem 1.5rem;
    background-color: var(--accent);
    color: var(--light);
    border: 1px solid var(--gold);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Electrolize', sans-serif;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.category-button.active,
.category-button:hover {
    background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
    color: var(--dark);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(200, 170, 110, 0.5);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background-color: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--gold);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .item-info {
    padding: 1.5rem;
    text-align: center;
}

.gallery-item .item-info h3 {
    color: var(--gold);
    font-family: 'Electrolize', sans-serif;
    margin-bottom: 0.5rem;
}

/* Member Portrait Styling */
.gallery-item[data-category="mitglieder"] img {
    height: 500px;
    /* Portrait format */
    object-position: top center;
    /* Focus on face/upper body */
}

/* =========================================
   CALENDAR PAGE STYLES (GOLD THEME)
   ========================================= */

.calendar-page-container {
    max-width: 100%;
    /* fluid */
    width: 95%;
    /* Match container style */
    margin: 8rem auto 4rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Title in Gold */
.calendar-page-title {
    text-align: center;
    color: var(--gold) !important;
    /* Gold */
    font-family: 'Electrolize', sans-serif;
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(200, 170, 110, 0.6);
    margin-bottom: 30px;
    font-weight: 300;
}

/* Season Info Box */
.season-info {
    background: linear-gradient(135deg, rgba(200, 170, 110, 0.1), rgba(0, 0, 0, 0.8));
    border: 1px solid var(--gold);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 0 20px rgba(200, 170, 110, 0.2);
}

.season-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.3em;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    font-family: 'Electrolize', sans-serif;
    text-transform: uppercase;
    border: 1px solid var(--gold);
}

/* Controls */
.calendar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.date-input {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--gold);
    color: #fff;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 1.1em;
    font-family: 'Electrolize', sans-serif;
    outline: none;
}

.cal-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    color: var(--dark);
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    font-family: 'Electrolize', sans-serif;
    text-transform: uppercase;
    border: 1px solid var(--gold);
}

.cal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 170, 110, 0.4);
    filter: brightness(1.1);
}

/* Main Grid */
.calendar-main-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

@media (max-width: 1024px) {
    .calendar-main-grid {
        grid-template-columns: 1fr;
    }
}

/* Month View */
.month-view,
.month-list {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--gold-dark);
}

.month-view {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gold-dark);
    padding-bottom: 10px;
}

.month-title {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--gold);
    font-family: 'Electrolize', sans-serif;
}

.event-count {
    background: var(--gold);
    color: var(--dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.period-info {
    background: rgba(200, 170, 110, 0.1);
    border: 1px solid var(--gold-dark);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    color: #ccc;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    /* Fix: Prevent long text from expanding columns */
    gap: 4px;
}

.day-header {
    background: var(--gold-dark);
    color: var(--light);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-radius: 6px;
    margin-bottom: 4px;
}

/* Day Cell acts as background and container for Day Number */
.day-cell {
    background: rgba(50, 50, 50, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 120px;
    padding: 5px;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    /* No overflow hidden - but we don't need it with new logic */
}

.day-cell:hover {
    background: rgba(200, 170, 110, 0.1);
    border-color: var(--gold);
}

.day-cell.other-month {
    opacity: 0.3;
}

.day-cell.today {
    border: 1px solid var(--gold);
    background: rgba(200, 170, 110, 0.05);
}

.day-number {
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 5px;
}

/* New: Absolute Grid Spanning Event Segments */
/* New: Absolute Grid Spanning Event Segments */
.month-event-segment {
    background: var(--gold-dark);
    color: var(--dark);
    font-size: 0.75rem;
    padding: 2px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    height: 23px;
    line-height: 21px;
    font-weight: 600;
    text-align: center;
    /* Center text as requested */

    border-radius: 4px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 10;

    /* Positioning */
    align-self: start;
    pointer-events: auto;

    /* Symmetrical margins to pull slightly in from cell edges */
    margin-left: 2px;
    margin-right: 2px;
    /* Since width is automatic via gridspan, margins reduce it symmetrically from edges */

    transition: transform 0.1s ease, background 0.2s;
}

.month-event-segment:hover,
.month-event-segment.event-highlight {
    background-color: var(--gold) !important;
    color: #000 !important;
    z-index: 50;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(200, 170, 110, 0.9);
    border: 1px solid #fff;
}

/* Hide text on mobile if too small? Or just ellipsis */
@media (max-width: 600px) {
    .month-event-segment {
        font-size: 0.65rem;
        padding: 2px 2px;
    }
}

/* Event List Side Panel */
.month-list {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--gold-dark);
    align-self: start;
}

.event-list {
    list-style: none;
}

.event-list .event {
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    transition: transform 0.2s ease;
}

.event-list .event:hover {
    transform: translateX(5px);
    background: rgba(200, 170, 110, 0.1);
}

.event-time {
    color: var(--gold);
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: bold;
}

.event-title {
    color: #fff;
    font-weight: 600;
}

/* Status Toast */
.status-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--gold);
    padding: 15px 25px;
    border-radius: 8px;
    color: var(--gold);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 2000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.status-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* =========================================
   HAMBURGER MENU STYLES (Mobile Only)
   ========================================= */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animate hamburger to X when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================================
   RESPONSIVE STYLES (Mobile & Tablet)
   ========================================= */

@media (max-width: 900px) {

    /* Show Hamburger */
    .hamburger {
        display: flex;
    }

    /* Mobile Navigation Styling */
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        background-color: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 0;
        gap: 0;
        transition: height 0.4s ease, padding-top 0.4s ease;
        z-index: 1050;
        border-bottom: 1px solid var(--gold-dark);
    }

    .nav-links.nav-active {
        height: auto;
        max-height: calc(100vh - 60px);
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        overflow-y: auto;
    }

    .nav-links a {
        padding: 1rem 0;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(200, 170, 110, 0.2);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Dropdown styling for mobile */
    .dropdown {
        width: 100%;
    }

    .dropdown>a {
        width: 100%;
        display: block;
    }

    .dropdown-content {
        position: static;
        display: none;
        transform: none;
        width: 100%;
        left: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(200, 170, 110, 0.2);
        background-color: rgba(0, 0, 0, 0.5);
    }

    .dropdown:hover .dropdown-content,
    .dropdown.open .dropdown-content {
        display: block;
        animation: none;
    }

    .dropdown-content a {
        border-bottom: 1px solid rgba(200, 170, 110, 0.1);
    }

    /* Hero adjustments */
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .hero-content {
        padding: 0 1rem;
    }

    /* Buttons stacking */
    .hero .fade-in {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn-outline {
        margin-left: 0;
    }

    /* Section titles */
    .section-title {
        font-size: 1.8rem;
    }

    /* Content boxes */
    .content-box {
        padding: 1.5rem;
    }

    .content-box h3 {
        font-size: 1.4rem;
    }

    /* Rules grid */
    .rules-list {
        grid-template-columns: 1fr;
    }

    /* Footer stacking */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-column {
        flex: 1 1 100%;
    }

    /* Gallery grid adjustment */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .gallery-item img {
        height: 200px;
    }

    .gallery-item[data-category="mitglieder"] img {
        height: 400px;
    }

    /* Category buttons scrollable */
    .gallery-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .category-button {
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    /* Calendar adjustments */
    .calendar-page-title {
        font-size: 2rem;
    }

    .calendar-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        /* Reset flex */
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cal-btn,
    .date-input {
        width: 100%;
        /* Fill grid cell */
        padding: 8px 5px;
        font-size: 0.85rem;
        text-align: center;
        margin: 0;
    }

    .season-badge {
        font-size: 0.9rem;
        padding: 5px 15px;
        line-height: 1.2;
    }

    .day-cell {
        min-height: 80px;
    }

    .day-header {
        font-size: 0.75rem;
        padding: 5px;
    }

    .month-event-segment {
        font-size: 0.65rem;
        padding: 1px 3px;
        height: 16px;
        line-height: 14px;
    }

    /* Status toast */
    .status-toast {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(100px);
        width: 90%;
        max-width: 350px;
        text-align: center;
    }

    .status-toast.show {
        transform: translateX(-50%) translateY(0);
    }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .btn {
        font-size: 0.95rem;
        padding: 0.7rem 1.5rem;
    }

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

    .gallery-item img {
        height: 180px;
    }

    .gallery-item[data-category="mitglieder"] img {
        height: 350px;
    }

    /* Calendar: hide day names abbreviation */
    .day-header {
        font-size: 0.6rem;
    }

    .day-number {
        font-size: 0.85rem;
    }

    .month-grid {
        gap: 2px;
    }

    .day-cell {
        min-height: 60px;
        padding: 1px 0;
    }

    .month-event-bar {
        font-size: 0.55rem;
        height: 14px;
        line-height: 12px;
    }
}

/* =========================================
   HIERARCHY PAGE STYLES
   ========================================= */

.hierarchy-wrapper {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid var(--gold-dark);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure font alignment */
/* Hierarchy Styles Cleaned */

.hierarchy-section {
    margin-bottom: 3rem;
    /* Increased for better separation */
    padding-top: 0;
    padding-bottom: 0;
}

.hierarchy-section h2 {
    font-family: 'Electrolize', sans-serif;
    color: var(--gold);
    font-size: 1.4rem;
    border-bottom: 1px solid var(--gold-dark);
    padding-bottom: 0.2rem;
    margin-bottom: 1.5rem;
    /* Increased spacing between title and grid */
    margin-top: 0;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.hierarchy-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .hierarchy-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hierarchy-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .hierarchy-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hierarchy-grid.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.rank-card {
    background: linear-gradient(180deg, #121212 0%, #080808 100%);
    border: 1px solid #222;
    padding: 1rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rank-card:hover {
    border-color: var(--gold-dark);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.rank-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.icon-container {
    width: 60px;
    height: 60px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(200, 170, 110, 0.2);
    flex-shrink: 0;
}

.rank-info h3 {
    font-size: 1.15rem;
    margin-bottom: 0.1rem;
    font-family: 'Electrolize', sans-serif;
    letter-spacing: 0.05em;
    text-transform: none;
    /* Changed from uppercase to match standard */
    line-height: 1.2;
}

.rank-info .rank-subtitle {
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
}

.rank-card .rank-desc {
    font-size: 0.85rem;
    color: #9ca3af;
    font-style: italic;
    line-height: 1.3;
}

.rank-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    display: block;
}

.border-red {
    border-left: 4px solid #dc2626;
}

.border-darkred {
    border-left: 4px solid #991b1b;
}

.border-orange {
    border-top: 2px solid #ea580c;
}

.border-darkorange {
    border-top: 2px solid #9a3412;
}

.border-purple {
    border-top: 2px solid #9333ea;
}

.border-dashed {
    border: 1px dashed #333;
}

.color-red {
    color: #ef4444;
}

.color-darkred {
    color: #991b1b;
}

.color-gold {
    color: var(--gold);
}

.color-blue {
    color: #60a5fa;
}

.color-green {
    color: #22c55e;
}

.color-purple {
    color: #c084fc;
}

.color-gray {
    color: #9ca3af;
}

.glow-red {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    border-color: #ef4444;
}

.glow-gold {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(200, 170, 110, 0.5);
}

.glow-purple {
    color: #a855f7;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.glow-gray {
    color: #888;
}

.text-gold-dark {
    color: var(--gold-dark);
}