html{
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

/* Header & Navigation */
header {
    background: rgba(15, 20, 45, 0.95);
    border-bottom: 2px solid #6366f1;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

nav .nav-btn {
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;

    /* neu, damit <a> auch wie ein Button aussieht */
    text-decoration: none;
    display: inline-block;
}

nav .nav-btn:hover {
    color: #6366f1;
}

nav .nav-btn.active {
    color: #a855f7;
    border-bottom-color: #a855f7;
    cursor: default;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Home Section */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero-content {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid #6366f1;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #a0a0a0;
    margin-bottom: 1.5rem;
}

.cta-button {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid #6366f1;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: #a855f7;
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #a855f7;
}

.card-text {
    color: #b0b0b0;
    line-height: 1.6;
}

/* Game Carousel */
.carousel {
    display: flex;
    flex-direction: column;
}

.carousel-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.carousel-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.carousel-viewport {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    will-change: transform;
    transition: transform 0.5s ease;
}

.carousel-track.no-transition {
    transition: none;
}

.game-card {
    position: relative;
    flex: 0 0 calc((100% - 3rem) / 3);
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid #6366f1;
    border-bottom: 3px solid #6366f1;
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    cursor: default;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.game-card:hover,
.game-card:focus-within,
.game-card.active {
    border-color: #a855f7;
    border-bottom-color: #a855f7;
    background: rgba(30, 30, 50, 1);
}

.game-card .card-title {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.card-text-short {
    color: #b0b0b0;
    line-height: 1.4;
    font-size: 0.9rem;
}

.carousel-detail-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid #6366f1;
    border-radius: 8px;
    margin-top: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease;
}

.carousel-detail-panel.open {
    max-height: 320px;
    opacity: 1;
    margin-top: 1rem;
}

.carousel-detail-content {
    padding: 1.5rem;
}

.carousel-arrow {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin-top: 1.05rem;
    border-radius: 50%;
    border: 1px solid #6366f1;
    background: rgba(30, 30, 50, 0.8);
    color: #e0e0e0;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    border-color: #a855f7;
    color: #a855f7;
}

@media (max-width: 900px) {
    .game-card {
        flex-basis: calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 600px) {
    .game-card {
        flex-basis: 100%;
    }
}

/* Setup Section */
.setup-group {
    margin-bottom: 2.5rem;
}

.setup-group-title {
    color: #a0a0a0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.setup-tile {
    background: rgba(30, 30, 50, 0.8);
    border-left: 4px solid #6366f1;
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.setup-tile:hover {
    border-left-color: #a855f7;
    background: rgba(30, 30, 50, 1);
    transform: translateY(-3px);
}

.setup-label {
    color: #6366f1;
    font-weight: 600;
    font-size: 0.9rem;
}

.setup-value {
    color: #e0e0e0;
    margin-top: 0.3rem;
    font-size: 1rem;
}

.setup-sub {
    color: #7a7a9a;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* About Section */
.about-content {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid #6366f1;
    border-radius: 12px;
    padding: 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: #c0c0c0;
}

/* Clips Section */
.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.clip-card {
    position: relative;
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid #6366f1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clip-card:hover {
    border-color: #a855f7;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15);
}

.clip-placeholder {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.clip-info {
    padding: 1rem;
}

.clip-title {
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.clip-date {
    color: #7a7a9a;
    font-size: 0.85rem;
}

/* Friends Section */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.friend-card {
    background: rgba(30, 30, 50, 0.8);
    border: 2px solid #6366f1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.friend-card:hover {
    border-color: #a855f7;
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

.friend-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 2px solid #a855f7;
}

.friend-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #a855f7;
    margin-bottom: 0.5rem;
}

.friend-role {
    color: #6366f1;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.friend-desc {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.friend-link {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.friend-link:hover {
    transform: scale(1.08);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #7a7a9a;
    border-top: 1px solid #6366f1;
    margin-top: 3rem;
}

@media (max-width: 900px) {
    .setup-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    nav ul {
        gap: 0.5rem;
    }

    nav button {
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
    }

    .setup-grid {
        grid-template-columns: 1fr;
    }
}

.about-content a {
    text-decoration: none;
    color: #a855f7;
}