:root {
    --primary-bg: #051025;
    --secondary-bg: #0b1d3a;
    --accent: #ff7b00;
    --accent-hover: #ff9d00;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --card-bg: #0b1d3a;
    --transition: all 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&family=Inter:wght@400;600&display=swap');

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

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    background-color: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(5, 16, 37, 0.95);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
}

.logo-text .accent {
    color: var(--accent);
}

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

.ip-container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.ip-play {
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.ip-discord {
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.ip-container:hover {
    border-color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to bottom, rgba(5, 16, 37, 0.2), rgba(5, 16, 37, 0.4) 60%, var(--primary-bg) 100%), 
        url('../images/bg.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

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

.main-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: #fff;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

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

.description {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.5;
    font-weight: 500;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

.player-status {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(255, 123, 0, 0.05);
    top: 10%;
    left: -5%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    bottom: 10%;
    right: -5%;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 10px #2ecc71;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Features */
.features {
    padding: 10rem 0;
    background: var(--primary-bg);
}

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

.section-badge {
    background: rgba(255, 123, 0, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 123, 0, 0.2);
    margin-bottom: 1.5rem;
    display: none;
}

.section-title {
    font-size: 3.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    margin: 0;
}

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

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card-inner {
    padding: 4rem 2.5rem;
    z-index: 2;
    position: relative;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 123, 0, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 123, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card.highlighted {
    background: var(--accent);
    border-color: var(--accent);
}

.feature-card.highlighted h3,
.feature-card.highlighted p {
    color: #fff;
}

.feature-card.highlighted .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 123, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0 auto 2rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 123, 0, 0.4);
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Footer */
footer {
    padding: 4rem 0 2rem 0;
    background: #040d1c;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col.footer-brand .logo {
    position: static;
    transform: none;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: white;
}

.footer-col h4 {
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: flex-start;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
    bottom: -50px;
}

@media (max-width: 1100px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 1.5rem 0;
    }

    .nav-content {
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links.left {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s ease;
        z-index: 1050;
        padding: 2rem;
    }

    .nav-links.left.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .logo {
        position: static;
        transform: none;
        order: 2;
    }

    .nav-right {
        order: 3;
        display: flex;
        align-items: center;
    }

    .ip-container .btn-join-server {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .ip-container .ip-discord {
        padding: 0.5rem 0.7rem;
    }

    .hero {
        padding: 8rem 0 4rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .main-title {
        font-size: 3rem;
    }

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

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

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

@media (max-width: 480px) {
    .btn-join-server {
        padding: 0.5rem;
    }
    
    .btn-join-server span {
        display: none; /* Hide "Tricosia.de" text, only show icon or keep it very small */
    }

    .main-title {
        font-size: 2rem;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }
}

/* Wiki Page */
.wiki-hero {
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, rgba(5, 16, 37, 0.8), var(--primary-bg)), url('bg.png');
    background-size: cover;
    background-position: center;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 2rem auto 0;
}

.search-container input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    background: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-container input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 123, 0, 0.2);
}

.search-container i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.wiki-content {
    padding: 4rem 0 8rem;
}

.wiki-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

.wiki-sidebar h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.wiki-sidebar ul {
    list-style: none;
}

.wiki-sidebar li {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.wiki-sidebar li:hover,
.wiki-sidebar li.active {
    background: rgba(255, 123, 0, 0.1);
    color: var(--accent);
}

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

.wiki-card {
    background: var(--secondary-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.wiki-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.wiki-card-header {
    padding: 1.5rem 1.5rem 0;
}

.wiki-category-tag {
    background: rgba(255, 123, 0, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.wiki-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.wiki-card-body h3 {
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.wiki-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.wiki-card-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-read {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-read:hover {
    background: var(--accent);
    color: #fff;
}

.loader,
.error,
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
}

.error {
    color: #ff4d4d;
}

@media (max-width: 992px) {
    .wiki-layout {
        grid-template-columns: 1fr;
    }

    .wiki-sidebar {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .wiki-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}

/* Admin Page */
.admin-hero {
    padding: 6rem 0 3rem;
    text-align: center;
}

.admin-navbar-unified .nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.admin-inline-nav {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sub-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sub-nav-btn:hover {
    color: #4db8ff;
    background: rgba(77, 184, 255, 0.1);
}

.sub-nav-btn.active {
    color: #fff;
    background: rgba(77, 184, 255, 0.25);
    box-shadow: 0 4px 15px rgba(77, 184, 255, 0.15);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem 0.3rem 0.3rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-pill img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.btn-logout-icon {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.1);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout-icon:hover {
    background: #ff4d4d;
    color: #fff;
}



.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.admin-form-container,
.admin-list-container {
    background: var(--secondary-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-form-container h2,
.admin-list-container h2 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--accent);
}

.type-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.4rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.type-btn {
    flex: 1;
    padding: 0.7rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.type-btn i {
    font-size: 1rem;
}

.type-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.type-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.admin-wiki-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.4rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-tab-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.admin-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.admin-tab-btn.active {
    background: var(--accent);
    color: #fff;
}

.admin-wiki-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-wiki-item .info {
    display: flex;
    flex-direction: column;
}

.admin-wiki-item strong {
    font-size: 1rem;
}

.admin-wiki-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-wiki-item .actions {
    display: flex;
    gap: 0.6rem;
}

.btn-edit,
.btn-delete {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-edit {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-edit:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-delete {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.btn-delete:hover {
    background: #ff4d4d;
    color: #fff;
    border-color: #ff4d4d;
}

#auth-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 30px;
}

@media (max-width: 992px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Gallery Section ─────────────────────────────────────── */
.gallery-section {
    padding: 6rem 0;
    background: var(--primary-bg);
    overflow: hidden;
}

.gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.gallery-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 60s linear infinite;
}

.gallery-container:hover .gallery-track {
    animation-play-state: paused;
}

.gallery-slide {
    flex: 0 0 450px;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

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

.gallery-slide:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-450px * var(--image-count, 5) - 2rem * var(--image-count, 5)));
    }
}

@media (max-width: 768px) {
    .gallery-slide {
        flex: 0 0 300px;
        height: 180px;
    }
    
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-300px * var(--image-count, 5) - 2rem * var(--image-count, 5))); }
    }
}

/* --- Team Page --- */
.team-header {
    text-align: center;
    padding: 100px 0 60px;
}

.team-sections {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding-bottom: 80px;
}

.role-group-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.role-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, currentColor, transparent);
    opacity: 0.2;
}

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

.team-card {
    background: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.team-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
}

.team-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.team-avatar-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 3px solid #fff;
    z-index: 0;
    transition: var(--transition);
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.team-role {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.team-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 0.5rem;
    max-width: 250px;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* ─── Kontakt Page ─────────────────────────────────────── */
.kontakt-header {
    text-align: center;
    padding: 140px 0 60px;
    position: relative;
    background: linear-gradient(to bottom, rgba(5, 16, 37, 0.6), var(--primary-bg));
}

.kontakt-header h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.kontakt-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 500px;
    margin: 0 auto;
}

.kontakt-section {
    padding: 0 0 6rem;
}

.kontakt-card {
    max-width: 650px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.kontakt-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.kontakt-alert i {
    font-size: 1.2rem;
}

.kontakt-alert-error {
    background: rgba(255, 77, 77, 0.12);
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.25);
}

.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kontakt-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kontakt-form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kontakt-form-group label i {
    color: var(--accent);
    font-size: 0.85rem;
}

.kontakt-form-group input,
.kontakt-form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    resize: none;
}

.kontakt-form-group input::placeholder,
.kontakt-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.kontakt-form-group input:focus,
.kontakt-form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: none;
    background: rgba(0, 0, 0, 0.35);
}

.kontakt-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.kontakt-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .kontakt-header h1 {
        font-size: 2.5rem;
    }

    .kontakt-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .kontakt-submit {
        width: 100%;
        justify-content: center;
    }
}

