/* Base Styles */
:root {
    /* Miami Vice/Sunset Farbschema */
    --primary-color: #ff006e; /* Pink als Hauptfarbe vom Logo */
    --secondary-color: #ff8500; /* Orange für Gradienten */
    --accent-color: #7209b7; /* Purple für Hover-Effekte */
    --dark-bg: #0a0a0f; /* Dunkler Hintergrund für besseren Kontrast */
    --darker-bg: #050508;
    
    /* Regelwerk-Farben */
    --rulebook-title-color: #ff006e;
    --rulebook-section-title-color: #ff006e;
    --rule-title-color: #ff006e;
    --rule-text-color: #ffffff;
    
    /* Weitere Farbvariablen */
    --glass-bg: rgba(10, 10, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --text-color: #F8FAFC;
    --text-secondary: #cccccc;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --glow-effect: 0 0 15px rgba(255, 0, 110, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section:nth-child(odd) {
    background-color: var(--darker-bg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px rgba(255, 0, 110, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Glass Effect */
.glass {
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--box-shadow);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-effect);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--darker-bg);
    border-top: 1px solid var(--glass-border);
    padding: 1rem;
}

.mobile-nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(255, 0, 110, 0.05);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('../img/hero-bg.jpg') no-repeat center center/cover;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: white;
    animation: glitch 2s linear infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }
    5% {
        clip: rect(70px, 9999px, 71px, 0);
    }
    10% {
        clip: rect(29px, 9999px, 83px, 0);
    }
    15% {
        clip: rect(16px, 9999px, 91px, 0);
    }
    20% {
        clip: rect(2px, 9999px, 23px, 0);
    }
    25% {
        clip: rect(60px, 9999px, 73px, 0);
    }
    30% {
        clip: rect(14px, 9999px, 56px, 0);
    }
    35% {
        clip: rect(89px, 9999px, 25px, 0);
    }
    40% {
        clip: rect(32px, 9999px, 26px, 0);
    }
    45% {
        clip: rect(67px, 9999px, 96px, 0);
    }
    50% {
        clip: rect(7px, 9999px, 13px, 0);
    }
    55% {
        clip: rect(14px, 9999px, 76px, 0);
    }
    60% {
        clip: rect(67px, 9999px, 66px, 0);
    }
    65% {
        clip: rect(96px, 9999px, 58px, 0);
    }
    70% {
        clip: rect(78px, 9999px, 81px, 0);
    }
    75% {
        clip: rect(20px, 9999px, 55px, 0);
    }
    80% {
        clip: rect(2px, 9999px, 47px, 0);
    }
    85% {
        clip: rect(31px, 9999px, 46px, 0);
    }
    90% {
        clip: rect(99px, 9999px, 78px, 0);
    }
    95% {
        clip: rect(91px, 9999px, 21px, 0);
    }
    100% {
        clip: rect(45px, 9999px, 45px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }
    5% {
        clip: rect(52px, 9999px, 74px, 0);
    }
    10% {
        clip: rect(79px, 9999px, 85px, 0);
    }
    15% {
        clip: rect(75px, 9999px, 5px, 0);
    }
    20% {
        clip: rect(67px, 9999px, 61px, 0);
    }
    25% {
        clip: rect(14px, 9999px, 79px, 0);
    }
    30% {
        clip: rect(1px, 9999px, 66px, 0);
    }
    35% {
        clip: rect(86px, 9999px, 30px, 0);
    }
    40% {
        clip: rect(23px, 9999px, 98px, 0);
    }
    45% {
        clip: rect(85px, 9999px, 72px, 0);
    }
    50% {
        clip: rect(71px, 9999px, 75px, 0);
    }
    55% {
        clip: rect(2px, 9999px, 48px, 0);
    }
    60% {
        clip: rect(30px, 9999px, 16px, 0);
    }
    65% {
        clip: rect(59px, 9999px, 50px, 0);
    }
    70% {
        clip: rect(41px, 9999px, 62px, 0);
    }
    75% {
        clip: rect(2px, 9999px, 82px, 0);
    }
    80% {
        clip: rect(47px, 9999px, 73px, 0);
    }
    85% {
        clip: rect(3px, 9999px, 27px, 0);
    }
    90% {
        clip: rect(26px, 9999px, 55px, 0);
    }
    95% {
        clip: rect(42px, 9999px, 97px, 0);
    }
    100% {
        clip: rect(38px, 9999px, 49px, 0);
    }
}

/* About Section */
.cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(114, 9, 183, 0.1), rgba(255, 0, 110, 0.1));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 0, 110, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Feature Cards */
.feature-card, .economy-card, .crime-card, .institution-card, .position-card {
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover, .economy-card:hover, .crime-card:hover, .institution-card:hover, .position-card:hover {
    transform: translateY(-10px);
}

.feature-icon, .economy-icon, .crime-icon, .institution-icon, .position-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-icon {
    color: var(--secondary-color);
}

.economy-icon {
    color: var(--accent-color);
}

.crime-icon {
    color: #ff0000;
}

.institution-icon {
    color: #4169e1;
}

.position-icon {
    color: #32cd32;
}

.feature-card h3, .economy-card h3, .crime-card h3, .institution-card h3, .position-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Positions Section */
.positions .accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.accordion-item {
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.accordion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(255, 165, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.accordion-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 105, 180, 0.2);
    border-color: rgba(255, 105, 180, 0.3);
}

.accordion-item:hover::before {
    opacity: 1;
}

.accordion-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.position-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: #ff69b4;
    flex-shrink: 0;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.5rem;
    flex-grow: 1;
}

.accordion-toggle {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #ff69b4;
}

.accordion-item.active .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.job-requirements {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.job-requirements li {
    margin-bottom: 0.5rem;
}

.apply-button {
    text-align: center;
    margin-top: 2rem;
}

.positions-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1rem;
}

.positions-footer a {
    color: var(--secondary-color);
    font-weight: 600;
}

.positions-footer a:hover {
    text-decoration: underline;
}

/* Rulebook Section */
.rulebook-content {
    padding: 2rem;
    text-align: center;
}

.rulebook-button-container {
    margin-top: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    background-color: rgba(20, 20, 35, 0.95);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
}

.close-modal {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.rulebook-title {
    color: var(--rulebook-title-color);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 0, 102, 0.7);
}

.rulebook-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.rulebook-sections {
    margin-top: 20px;
}

.rulebook-section-title {
    color: var(--rulebook-section-title-color);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--rulebook-section-title-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rulebook-section {
    margin-bottom: 20px;
    text-align: left;
    background-color: rgba(30, 30, 50, 0.6);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rulebook-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.rule-title {
    color: var(--rule-title-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.rulebook-section p {
    color: var(--rule-text-color);
    line-height: 1.6;
    font-size: 1rem;
}

/* White Hero for Rulebook */
.rulebook-hero.white-hero {
    background: #ffffff;
    color: #111;
    padding: 80px 0;
    text-align: center;
}
.rulebook-hero .hero-overlay { display: none; }
.rulebook-hero.white-hero .hero-content h1 {
    font-size: 2.6rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #111;
}
.rulebook-hero.white-hero .subtitle {
    font-size: 1.2rem;
    color: #555;
}

/* Rules Grid & Cards */
.rulebook-sections { margin-top: 10px; }
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.rule {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.rule:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 105, 180, 0.5);
}
.rule-title { margin-bottom: 8px; }

/* Rulebook Hero - Dark Variant (Screenshot-Stil) */
.rulebook-hero.dark-hero {
    background: #0d0e12;
    padding: 64px 0 32px;
}

/* Abstand unter dem fixierten Header auf der Regelwerk-Seite */
.rulebook-page .rulebook-hero.dark-hero {
    margin-top: 80px;
}

.rulebook-hero.dark-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.rulebook-hero.dark-hero h1 {
    font-size: 64px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ff0080 0%, #ff4d4d 50%, #ff00e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rulebook-hero.dark-hero .subtitle {
    margin-top: 12px;
    color: #b0b7c9;
}

/* Lange Regelboxen (volle Breite, gestapelt) */
.rule.rule-long {
    width: 100%;
    background: #1a1f2b;
    border: 1px solid rgba(255, 0, 160, 0.35);
    border-top: 4px solid #ff0080;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 16px;
    color: #e6e8ef;
}

.rule.rule-long .rule-title {
    color: #ff87d6;
}

.rulebook-section { margin-top: 28px; }

/* Sichtbarkeit & Kontrast auf der Regelwerk-Seite sicherstellen */
.rulebook-page .rulebook-content {
    position: relative;
    z-index: 1;
    padding-top: 24px;
    opacity: 1 !important;
    transform: none !important;
}

.rulebook-page .rulebook-sections {
    position: relative;
    z-index: 2;
}

.rulebook-page .rulebook-section,
.rulebook-page .rule {
    background: rgba(20, 22, 30, 0.85);
    backdrop-filter: blur(8px);
    opacity: 1 !important;
    visibility: visible !important;
}

.rulebook-page .section-title,
.rulebook-page .rule-title {
    color: var(--rule-title-color);
}

.rulebook-page .rule-text,
.rulebook-page .rulebook-section p {
    color: #f4f6fb;
}

/* Responsive Styles for Rulebook */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    /* Footer mobil wieder stapeln */
    .footer-content {
        flex-wrap: wrap;
        gap: 30px;
    }
    .footer-logo, .footer-links, .footer-social { flex: 1 1 100%; }
    
    .rulebook-title {
        font-size: 1.8rem;
    }
    
    .rulebook-section-title {
        font-size: 1.5rem;
    }
    
    .rule-title {
        font-size: 1.1rem;
    }
    
    .rulebook-section {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .rulebook-title {
        font-size: 1.5rem;
    }
    
    .rulebook-section-title {
        font-size: 1.3rem;
    }
    
    .rule-title {
        font-size: 1rem;
    }
    
    .rulebook-section p {
        font-size: 0.9rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
    text-align: center;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-card {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo, .footer-links, .footer-social {
    flex: 0 0 300px;
}

.footer-logo p {
    color: #b0b7c9;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Social-Icons unten mittig ausrichten */
.footer-bottom .social-icons {
    justify-content: center;
    margin-bottom: 10px;
}

/* Rulebook page footer size reduction */
.rulebook-page .footer {
    padding: 30px 0 14px;
}

.rulebook-page .footer-content {
    gap: 20px;
    margin-bottom: 20px;
}

.footer-logo .logo-img {
    width: 48px;
    height: auto;
}
/* Regelwerk: Logo im Footer kleiner */
.rulebook-page .footer-logo .logo-img {
    width: 36px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 110, 0.1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover {
    transform: none;
    box-shadow: 0 0 0 2px rgba(255, 0, 110, 0.55), 0 0 18px rgba(255, 0, 110, 0.35);
}

.gallery-item:hover::before {
    opacity: 0;
}

.gallery-image {
    width: 100%;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img { transform: none; }

.gallery-caption {
    padding: 10px 12px;
    background: rgba(10, 10, 15, 0.8);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

.gallery-caption h3 {
    color: #fff;
    margin-bottom: 4px;
    font-size: 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-caption p {
    color: #ddd;
    font-size: 0.85rem;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption p { opacity: 1; }

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Tablet Responsive */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--darker-bg);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
        padding: 20px 0;
        gap: 15px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Responsive Gallery */
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .card, .feature-card, .economy-card, .crime-card, .institution-card, .position-card {
        min-width: auto;
    }
}

/* Global glow hover for all glass cards */
.glass {
    border: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glass:hover {
    box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.85), 0 0 18px rgba(255, 105, 180, 0.5);
    border-color: rgba(255, 105, 180, 0.85);
}

/* Footer layout improvements */
.footer .footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-col h4 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #ff69b4;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin: 0.4rem 0;
}

.footer-col a {
    color: var(--text-muted-color, #b5b5c3);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #ff69b4;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

/* Donation section polish */
.donation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.donation-button-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
}

.donation-button-container .btn {
    padding: 0.9rem 1.4rem;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(255, 105, 180, 0.35);
}

/* Prevent line breaks in Bewerbungen email */
.contact-card p a[href^="mailto:"] {
    white-space: nowrap;
}

/* Responsive footer */
@media (max-width: 900px) {
    .footer .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer .footer-content {
        grid-template-columns: 1fr;
    }
}