/* ===== Tokens ===== */
:root {
    --bg: #09090b;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-subtle: #71717a;
    --brand-1: #8b5cf6;
    --brand-2: #06b6d4;
    --radius: 20px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', var(--font-body);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

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

:focus-visible {
    outline: 2px solid var(--brand-2);
    outline-offset: 3px;
    border-radius: 8px;
}

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

/* ===== Hintergrund ===== */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}

.bg-glow--1 {
    width: 620px;
    height: 620px;
    top: -260px;
    left: 50%;
    transform: translateX(-70%);
    background: var(--brand-1);
    animation: drift 18s ease-in-out infinite alternate;
}

.bg-glow--2 {
    width: 480px;
    height: 480px;
    top: -120px;
    left: 50%;
    transform: translateX(10%);
    background: var(--brand-2);
    opacity: 0.22;
    animation: drift 22s ease-in-out infinite alternate-reverse;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

@keyframes drift {
    to { margin-left: 80px; margin-top: 40px; }
}

/* ===== Navigation ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-display);
    font-weight: 600;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff;
}

.brand-name {
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface-hover);
}

/* ===== Hero ===== */
.hero {
    padding-top: 6.5rem;
    padding-bottom: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: rise 0.8s var(--ease) both;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.9rem 0.4rem 0.75rem;
    margin-bottom: 1.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: border-color 0.2s, color 0.2s;
}

.hero-pill:hover {
    color: var(--text);
    border-color: rgba(34, 197, 94, 0.5);
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
}

.gradient-text {
    background: linear-gradient(90deg, #c4b5fd, var(--brand-1) 35%, var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 34rem;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: var(--text-muted);
    margin-bottom: 2.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn--primary {
    background: var(--text);
    color: var(--bg);
    box-shadow: 0 8px 30px -8px rgba(139, 92, 246, 0.6);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -8px rgba(139, 92, 246, 0.8);
}

.btn--ghost {
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
}

.btn--ghost:hover {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.28);
}

/* ===== Sections ===== */
.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-head {
    margin-bottom: 2rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-2);
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

/* ===== Projekte: Filter & Kacheln ===== */
.section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
}

.anchor {
    display: block;
    height: 0;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font: 500 0.88rem var(--font-body);
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.filter span {
    min-width: 1.4rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
}

.filter:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.filter.on {
    background: var(--text);
    border-color: transparent;
    color: var(--bg);
}

.filter.on span {
    background: rgba(0, 0, 0, 0.12);
}

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

.tile {
    --accent: 139 92 246;
    --mx: 50%;
    --my: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s var(--ease), border-color 0.35s;
    animation: rise 0.5s var(--ease) both;
}

.tile[hidden] {
    display: none;
}

.tile::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(320px circle at var(--mx) var(--my), rgb(var(--accent) / 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}

.tile:hover {
    transform: translateY(-4px);
    border-color: rgb(var(--accent) / 0.45);
}

.tile:hover::before {
    opacity: 1;
}

.tile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.tile-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.5rem;
    background: rgb(var(--accent) / 0.12);
    border: 1px solid rgb(var(--accent) / 0.25);
}

.tile-arrow {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
}

.tile:hover .tile-arrow {
    color: var(--bg);
    background: rgb(var(--accent));
    border-color: transparent;
    transform: rotate(45deg);
}

.tile-title {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.tile-desc {
    flex-grow: 1;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.tile-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.tile-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--accent));
}

.tile-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.tile-meta--players::before {
    content: '';
    width: 10px;
    height: 10px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.4 0-9 2.2-9 5v3h18v-3c0-2.8-4.6-5-9-5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.4 0-9 2.2-9 5v3h18v-3c0-2.8-4.6-5-9-5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ===== Partner ===== */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.partner {
    position: relative;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s;
}

.partner:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.partner-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.partner-media {
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.partner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) brightness(0.9);
    transition: transform 0.6s var(--ease), filter 0.4s;
}

.partner:hover .partner-media img {
    transform: scale(1.05);
    filter: none;
}

.partner-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.partner-body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

.icon-btn {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    transition: all 0.25s;
}

.icon-btn:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
}

/* ===== CTA-Panel ===== */
.cta-panel {
    position: relative;
    text-align: center;
    padding: 3.5rem 1.5rem;
    border-radius: 28px;
    border: 1px solid var(--border);
    background:
        radial-gradient(60% 100% at 50% 0%, rgba(139, 92, 246, 0.18), transparent 70%),
        var(--surface);
    overflow: hidden;
}

.cta-panel p {
    max-width: 30rem;
    margin: 0.75rem auto 2rem;
    color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-subtle);
}

.footer a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--text);
}

/* ===== Animationen ===== */
@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 820px) {
    .tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .container,
    .nav-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .brand-name {
        display: none;
    }
    .nav-links a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    .nav-links a[href="#partner"] {
        display: none;
    }
    .hero {
        padding-top: 4rem;
        padding-bottom: 2.5rem;
    }
    .section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .partner-grid {
        grid-template-columns: 1fr;
    }
    .tiles {
        gap: 0.75rem;
    }
    .tile {
        padding: 1rem;
    }
    .tile-icon {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
    .footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 440px) {
    .tile-desc {
        font-size: 0.82rem;
    }
    .tile-foot {
        flex-wrap: wrap;
    }
}
