:root {
    --bg-primary: #08090b;
    --bg-secondary: #0f1017;
    --text-primary: #ffffff;
    --text-secondary: #9aa0b5;
    --accent: #818cf8;
    --accent-hover: #6366f1;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(129, 140, 248, 0.35);
    --card-bg: rgba(15, 16, 23, 0.75);
    --available: #34d399;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Ambient glow behind the content */
.glow {
    position: fixed;
    top: -18vh;
    left: 0;
    right: 0;
    height: 75vh;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(520px 340px at 50% 45%, rgba(99, 102, 241, 0.16) 0%, transparent 70%),
        radial-gradient(420px 300px at 66% 32%, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    filter: blur(20px);
}

/* Grain texture overlay */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 9, 11, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.brand-mark {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 18px;
    display: block;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

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

/* Container */
.container {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 9rem 2rem 5rem;
    position: relative;
    z-index: 2;
    flex: 1;
}

/* Hero */
.hero-section {
    text-align: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Collapsible collaboration badge (native <details>) */
.collab {
    margin-bottom: 1.75rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    cursor: pointer;
    list-style: none;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.hero-badge::-webkit-details-marker {
    display: none;
}

.hero-badge:hover,
.hero-badge:focus-visible {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.hero-badge:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.badge-chevron {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.collab[open] .badge-chevron {
    transform: rotate(180deg);
}

/* Contact panel revealed by the badge */
.collab-panel {
    margin-top: 0.9rem;
}

.collab[open] .collab-panel {
    animation: fadeInUp 0.35s ease both;
}

.collab-panel p {
    display: inline-block;
    padding: 0.6rem 1.15rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.collab-panel a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
    overflow-wrap: anywhere;
}

.collab-panel a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--available);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 12vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #818cf8 45%, #a78bfa 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShift 9s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* Social links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover::before,
.social-card:focus-visible::before {
    opacity: 1;
}

.social-card:hover,
.social-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}

.social-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-size: 1.4rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    color: #fff;
}

.youtube .social-icon {
    background: linear-gradient(135deg, #ff0000, #b80000);
}

.instagram .social-icon {
    background: linear-gradient(135deg, #feda75, #d62976 55%, #962fbf 100%);
}

.tiktok .social-icon {
    background: linear-gradient(135deg, #25f4ee 0%, #111111 55%, #fe2c55 100%);
}

.x .social-icon {
    background: linear-gradient(135deg, #2b2b2b, #000000);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.social-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: left;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.social-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.social-handle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-arrow {
    font-size: 1.05rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-card:hover .social-arrow,
.social-card:focus-visible .social-arrow {
    transform: translateX(5px);
    color: var(--accent);
}

/* Impressum */
.impressum-section {
    animation: fadeInUp 0.8s ease both;
}

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -0.03em;
}

.impressum-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 3rem;
    margin-bottom: 2rem;
}

.impressum-block {
    margin-bottom: 2.5rem;
}

.impressum-block:last-child {
    margin-bottom: 0;
}

.impressum-block h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
    letter-spacing: -0.01em;
}

.impressum-block p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.impressum-block a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.impressum-block a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.back-button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.9rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.back-button:hover,
.back-button:focus-visible {
    background: var(--card-bg);
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.75rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1.25rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-content {
        padding: 1rem 1.5rem;
    }

    .container {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-subtitle {
        margin-bottom: 2.25rem;
    }

    .social-card {
        padding: 1.1rem 1.35rem;
        gap: 1rem;
    }

    .social-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .social-name {
        font-size: 1rem;
    }

    .social-handle {
        font-size: 0.85rem;
    }

    .impressum-content {
        padding: 2rem 1.5rem;
    }

    .impressum-block h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .nav-content {
        padding: 0.9rem 1rem;
    }

    .logo {
        font-size: 1.35rem;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .container {
        padding: 6rem 1rem 2.5rem;
    }

    .social-card {
        padding: 1rem 1.1rem;
    }

    .impressum-content {
        padding: 1.5rem 1.15rem;
    }

    .footer {
        padding: 1.5rem 0.75rem;
        gap: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
