:root {
    --primary: #4287f5; /* Blau */
    --primary-dark: #2b5db5; /* dunkleres Blau */
    --primary-light: #7aa9ff; /* helles Blau */
    --secondary: #0e0e10;
    --secondary-light: #1f1f23;
    --accent: #f542a7; /* Pink */
    --accent-light: #ff7ab3; /* helles Pink */
    --text: #efeff1;
    --text-light: #ffffff;
    --text-dark: #adadb8;
    --background: #18181b;
    --background-light: #26262c;
    --success: #4CAF50;
    
    /* Gradient für Akzente (Blau → Lila → Pink) */
    --gradient-primary: linear-gradient(90deg, #4287f5, #b83df5, #f542a7);
    --gradient-accent: linear-gradient(90deg, #b83df5, #f542a7, #ff7ab3);
    
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Arial', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Arial', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    will-change: auto;
}

#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Header */
header {
    background: linear-gradient(180deg, rgba(14, 14, 16, 0.98) 0%, rgba(20, 20, 25, 0.95) 100%);
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(66, 135, 245, 0.15);
    gap: 0;
    will-change: transform;
    contain: layout;
}

@media (min-width: 1200px) {
    header {
        padding: 1rem 4rem;
    }
}

.logo-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    will-change: transform;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.85;
}

.logo {
    height: 48px;
    width: 48px;
    min-width: 48px;       /* prevent shrinking */
    border-radius: 50%;
    object-fit: cover;     /* fill circle */
    object-position: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(66, 135, 245, 0.6);
    box-shadow: 0 2px 8px rgba(66, 135, 245, 0.2), inset 0 0 10px rgba(66, 135, 245, 0.1);
    will-change: transform, filter;
    filter: brightness(1);
    animation: logoEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logoEntrance {
    0% { transform: scale(0.3) rotateZ(-45deg); opacity: 0; filter: brightness(0.5); }
    60% { transform: scale(1.1) rotateZ(5deg); }
    100% { transform: scale(1) rotateZ(0deg); opacity: 1; filter: brightness(1); }
}

.logo:hover {
    transform: scale(1.15) rotate(12deg) translateY(-2px);
    box-shadow: 0 8px 24px rgba(66, 135, 245, 0.4), inset 0 0 15px rgba(245, 66, 167, 0.2);
    border-color: var(--accent);
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(245, 66, 167, 0.5));
}

/* Status Anzeige */
#status-display {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

#status-display .status-text {
    font-weight: 600;
}

#status-display.live-status {
    background: rgba(245, 66, 167, 0.15); /* Pink */
    border: 1px solid var(--accent);
    animation: pulse 2s infinite;
}

#status-display.live-status .status-text {
    color: var(--accent);
}

#status-display.offline-status {
    background: rgba(173, 173, 184, 0.1);
    border: 1px solid var(--text-dark);
}

#status-display.offline-status .status-text {
    color: var(--text-dark);
}

/* Live Popup Overlay */
#live-popup {
    display: none;
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

#live-popup-content {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#live-popup-content button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

.live-indicator {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    height: 12px;
    width: 12px;
    background-color: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--secondary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { 
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(245, 66, 167, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 66, 167, 0);
    }
    100% { 
        opacity: 0.7;
        box-shadow: 0 0 0 0 rgba(245, 66, 167, 0);
    }
}

/* Inhalt in der Notification */
.notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
}

/* Pulsierender Punkt links */
.live-pulse {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.live-pulse {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

/* Puls-Animation */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    transition: transform 0.2s ease;
    will-change: transform;
}

.menu-toggle:hover span {
    background: var(--primary);
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 5px;
    transition: all 0.2s ease;
    position: relative;
    transform-origin: center;
    will-change: transform;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--primary);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: var(--primary);
}

.live-badge {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent);
    color: white;
    padding: 10px 15px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9999;
    animation: pulse-badge 1.5s infinite;
}

@keyframes pulse-badge {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Navigation */
nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-left: auto;
    will-change: transform;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    padding-right: 1rem;
}

.nav-dropdown .nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 0px solid transparent;
    border-top: 4px solid currentColor;
    transition: 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 1px; /* smaller gap so pointer doesn't slip out */

    background: linear-gradient(
        135deg,
        rgba(14,14,16,0.95),
        rgba(31,31,35,0.95)
    );

    border-left: 3px solid var(--primary);
    border-radius: 8px;

    padding: 12px 0;
    min-width: 220px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);

    /* small delay when hiding so moving cursor quickly doesn't collapse immediately */
    transition: 
        opacity 0.3s cubic-bezier(0.34,1.56,0.64,1) 0.1s,
        transform 0.3s cubic-bezier(0.34,1.56,0.64,1) 0.1s;

    pointer-events: none;
    z-index: 1000;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown .dropdown-menu:hover {
    /* when hovering over the parent OR the menu itself keep it visible */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

@media (min-width: 769px) {
    /* Desktop only: enable hover dropdown */
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    width: 100%;
    text-align: left;
    transition: background 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item:hover {
    background: rgba(66, 135, 245, 0.15);
    transform: translateX(4px);
}

.dropdown-item:active {
    background: rgba(66, 135, 245, 0.25);
    transform: translateX(0);
}

/* Dropdown Item Stagger Animation */
@keyframes dropdown-item-appear {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-dropdown:hover .dropdown-item {
    animation: dropdown-item-appear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.dropdown-item:nth-child(1) { animation-delay: 0.05s; }
.dropdown-item:nth-child(2) { animation-delay: 0.1s; }
.dropdown-item:nth-child(3) { animation-delay: 0.15s; }
.dropdown-item:nth-child(4) { animation-delay: 0.2s; }

/* ===============================
   SUBMENU (Nested Dropdown)
================================= */

.nav-dropdown.submenu {
    position: relative;
}

.nav-dropdown.submenu > .dropdown-item::after {
    content: "▶";
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.nav-dropdown.submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown.submenu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: -15px;
    right: auto;
    background: linear-gradient(135deg, rgba(14, 14, 16, 0.95) 0%, rgba(31, 31, 35, 0.95) 100%);
    border-left: 3px solid var(--primary);
    border-top: 1px solid rgba(66, 135, 245, 0.2);
    box-shadow: 0 12px 32px rgba(66, 135, 245, 0.2);
    padding: 12px 0;
    min-width: 100%;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 1001;
}

/* Streamer Status Badge */
.streamer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(220, 20, 60, 0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    transition: background 0.2s ease;
}

.streamer-status.live {
    background: rgba(220, 20, 60, 0.3);
}

.streamer-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #dc143c;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    position: relative;
    padding: 0.6rem 0.8rem;
    transition: color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border-radius: 8px;
    will-change: color, transform;
    display: inline-block;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(66, 135, 245, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(66, 135, 245, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

.nav-link:hover::before {
    width: 100%;
    left: 0;
}

.nav-link:hover::after {
    opacity: 1;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::before {
    width: 100%;
    left: 0;
}

.nav-link.active::after {
    opacity: 1;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem 3rem;
    margin-bottom: 1rem;
}

.gradient-text {
    position: relative;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textPulse 2s ease-in-out infinite, gradientShift 4s linear infinite;
    background-size: 200% 100%;
}

@keyframes textPulse {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.05) translateY(-5px); }
}

@keyframes gradientShift {
    0% { background-position: 200% 0; }
    100% { background-position: 0% 0; }
}

.gradient-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    z-index: -1;
    text-shadow:
        0 0 10px #ff00ff,
        0 0 20px #ff00ff,
        0 0 30px #00ffff,
        0 0 40px #ff00ff;
}

@keyframes textShine {
    0%, 100% {
        text-shadow: 0 0 10px rgba(66, 135, 245, 0.1);
    }
    50% {
        text-shadow: 0 0 20px rgba(184, 61, 245, 0.15);
    }
}

.highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(66, 135, 245, 0.3); /* Blau */
    z-index: -1;
    border-radius: 5px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.subtitle {
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: subtitleFade 0.8s ease-out 0.3s both, subtitleSlide 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes subtitleFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes subtitleSlide {
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
}

/* Live Notification (unten rechts) */
.live-notification {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-accent);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(245, 66, 167, 0.3);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    will-change: transform, opacity;
}

.live-notification.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.live-notification:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 8px 20px rgba(245, 66, 167, 0.4);
}

.notification-content {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

/* Stream Container */
.stream-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 3rem 0;
}

/* Cards */
.twitch-card, .youtube-card {
    background: rgba(31, 31, 35, 0.6);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(66, 135, 245, 0.15);
    backdrop-filter: blur(2px);
    will-change: auto;
    animation: cardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.twitch-card { animation-delay: 0.2s; }
.youtube-card { animation-delay: 0.4s; }

@keyframes cardEntrance {
    0% { opacity: 0; transform: translateY(30px) rotateX(10deg); }
    70% { transform: translateY(-8px) rotateX(-2deg); }
    100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

.twitch-card:hover, .youtube-card:hover {
    box-shadow: 0 15px 40px rgba(66, 135, 245, 0.25);
    border-color: rgba(66, 135, 245, 0.4);
    transform: translateY(-8px) scale(1.02);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(66, 135, 245, 0.1) 0%, rgba(184, 61, 245, 0.05) 100%);
    border-bottom: 2px solid rgba(66, 135, 245, 0.15);
}

.card-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.viewer-count, .video-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-light);
    background: rgba(245, 66, 167, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

@media (max-width: 640px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem 1.5rem;
    }
    
    .card-header h2 {
        font-size: 1.2rem;
        width: 100%;
    }
    
    .viewer-count, .video-date {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }
}

/* Embeds */
.twitch-embed, .youtube-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    min-height: 500px;
}

.twitch-embed iframe, .youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Offline Content - FIXED BANNER */
.offline-content {
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
    border-radius: 8px;
}

.offline-content img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.offline-content h2,
.offline-content p,
.offline-content .follow-button {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.offline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

@media (max-width: 768px) {
    .offline-content {
        min-height: 250px;
        padding: 1.5rem;
    }
    
    .offline-content h2 {
        font-size: 1.5rem;
    }
}

/* Buttons */
@keyframes buttonPulse {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.02) translateY(-3px); }
    100% { transform: scale(1) translateY(0); }
}

@keyframes buttonGlow {
    0%, 100% { box-shadow: 0 4px 12px rgba(66, 135, 245, 0.25), 0 0 20px rgba(66, 135, 245, 0); }
    50% { box-shadow: 0 8px 20px rgba(66, 135, 245, 0.35), 0 0 30px rgba(66, 135, 245, 0.5); }
}

.follow-button, .retry-button, .project-button {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(66, 135, 245, 0.25);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    animation: buttonGlow 3s ease-in-out infinite;
}

.follow-button::before, .retry-button::before, .project-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.follow-button:hover::before, .retry-button:hover::before, .project-button:hover::before {
    left: 100%;
}

.follow-button:hover, .retry-button:hover, .project-button:hover {
    background: linear-gradient(135deg, #2b5db5, #9b30b3, #d4348b, #ff006e);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(66, 135, 245, 0.45), 0 0 40px rgba(155, 48, 179, 0.4);
    animation: buttonPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Social Media Section */
.social-section {
    margin: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-light);
    font-weight: 800;
    letter-spacing: -1px;
    animation: titleEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes titleEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scaleY(0.8);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scaleY(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.section-title:hover::after {
    width: 140px;
    box-shadow: 0 0 20px rgba(66, 135, 245, 0.6);
}

.social-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

@media (max-width: 768px) {
    .social-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .social-grid {
        gap: 1.2rem;
    }
}

.social-card {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: white;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    will-change: transform, filter;
    cursor: pointer;
    animation: socialCardBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.social-card:nth-child(1) { animation-delay: 0.2s; }
.social-card:nth-child(2) { animation-delay: 0.3s; }
.social-card:nth-child(3) { animation-delay: 0.4s; }
.social-card:nth-child(4) { animation-delay: 0.5s; }

@keyframes socialCardBounce {
    0% { opacity: 0; transform: translateY(40px) scale(0.6); }
    70% { transform: translateY(-8px) scale(1.08); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.4;
    }
}

.social-card::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid rgba(66, 135, 245, 0.3);
}

.social-card:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.social-card i {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.social-card:hover i {
    transform: scale(1.3) rotate(12deg);
    filter: drop-shadow(0 0 8px currentColor);
}

.social-card:hover {
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 20px currentColor;
    filter: brightness(1.2);
}

/* Platform Colors */
.twitch { background: #9147ff; }
.youtube { background: #ff0000; }
.twitter { background: #1da1f2; }
.instagram { 
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    background-size: 300% 300%;
    background-position: 0% 0%;
    transition: background-position 0.5s ease;
}
.discord { background: #5865f2; }

/* KEINE Animation für Instagram - nur sanfter Übergang */
.social-card.instagram:hover {
    background-position: 100% 100%;
}

/* Icon Hover für Instagram */
.social-card.instagram:hover i {
    transform: scale(1.3) rotate(12deg);
    filter: drop-shadow(0 0 8px currentColor);
}

/* YouTube Zoom */
@keyframes zoom-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.social-card.youtube:hover i {
    animation: zoom-pulse 0.6s ease-in-out infinite;
}

/* Die allgemeine Hover-Klasse */
.social-card:hover {
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 20px currentColor;
    filter: brightness(1.2);
}

/* WICHTIG: Basis-Styles mit korrektem Übergang */
.social-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 32px;
    color: white;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    
    /* NUR diese Eigenschaften sollen animiert werden */
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, background-position 0.5s ease;
    
    /* Fixe Startposition */
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    
    /* Verhindert das "von unten kommen" */
    animation: none !important;
}

/* Explizit sicherstellen, dass keine Animation die Position beeinflusst */
.social-card.instagram {
    animation: none !important;
}

.social-card.instagram i {
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Tooltip bleibt gleich */
.social-card::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid rgba(66, 135, 245, 0.3);
}

.social-card:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Projects Section */
.projects-section {
    margin: 4rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background: rgba(31, 31, 35, 0.5);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(66, 135, 245, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
    will-change: transform, box-shadow;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(66, 135, 245, 0.2);
    border-color: rgba(66, 135, 245, 0.25);
    background: rgba(31, 31, 35, 0.7);
}

.project-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.project-card p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Stream Plan Styles */
.content-plan {
    margin: 4rem 0;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) {
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .schedule-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.schedule-card {
    background: linear-gradient(
        135deg,
        rgba(31, 31, 35, 0.6),
        rgba(66, 135, 245, 0.05)
    );
    border-radius: 14px;
    padding: 1.5rem;
    color: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    border: 1.5px solid rgba(66, 135, 245, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    position: relative;
    overflow: hidden;
    perspective: 1000px;
    will-change: transform, box-shadow;

    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease,
        background 0.4s ease;

    animation: slideInBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* stagger animation */
.schedule-card:nth-child(1) { animation-delay: 0.1s; }
.schedule-card:nth-child(2) { animation-delay: 0.2s; }
.schedule-card:nth-child(3) { animation-delay: 0.3s; }
.schedule-card:nth-child(4) { animation-delay: 0.4s; }
.schedule-card:nth-child(5) { animation-delay: 0.5s; }
.schedule-card:nth-child(6) { animation-delay: 0.6s; }
.schedule-card:nth-child(7) { animation-delay: 0.7s; }
.schedule-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideInBounce {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.8) rotateX(45deg);
    }
    70% {
        transform: translateY(-5px) scale(1.02) rotateX(0deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* shimmer overlay */
.schedule-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 50%
    );
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.schedule-card:hover::before {
    animation: shimmer 0.6s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* animated border */
.schedule-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1.5px;
    background: linear-gradient(
        90deg,
        var(--primary),
        var(--accent),
        var(--primary-light)
    );
    background-size: 200% 100%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.schedule-card:hover::after {
    opacity: 1;
    animation: borderShift 1.5s linear infinite;
}

@keyframes borderShift {
    0% { background-position: 200% 0; }
    100% { background-position: 0% 0; }
}

/* hover state */
.schedule-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(-3deg) scale(1.03);
    box-shadow:
        0 20px 40px rgba(66, 135, 245, 0.3),
        0 0 40px rgba(245, 66, 167, 0.1);
    border-color: rgba(66, 135, 245, 0.6);
    background: linear-gradient(
        135deg,
        rgba(31, 31, 35, 0.8),
        rgba(66, 135, 245, 0.15)
    );
}

/* live state */
.schedule-card.live {
    border-color: rgba(245, 66, 167, 0.6);
    box-shadow: 0 0 20px rgba(245, 66, 167, 0.3);
}

/* date text */
.schedule-date {
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.schedule-game {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.schedule-banner {
    width: 100%;
    border-radius: 8px;
    max-height: 120px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.no-stream {
    font-style: italic;
    opacity: 0.7;
}

/* Goals Section */
.goals-section {
    margin: 4rem 0;
}

.goals-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .goals-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .goals-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.goal-card {
    background: var(--secondary-light);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s;
}

.goal-card:hover {
    transform: translateY(-5px);
}

.goal-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.goal-info {
    flex: 1;
}

.goal-info h3 {
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.goal-progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Bits-Balken mit Gradient */
#bits-progress {
    background: var(--gradient-primary) !important;
}

.goal-stats {
    display: flex;
    gap: 5px;
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--secondary) 0%, rgba(14, 14, 16, 0.95) 100%);
    padding: 3rem 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(66, 135, 245, 0.1);
    animation: footerEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    position: relative;
}

@keyframes footerEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    text-align: center;
}

.footer-logo img {
    height: 65px;
    width: 65px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
    opacity: 0.85;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(66, 135, 245, 0.2);
    animation: logoHoverFloat 3s ease-in-out infinite;
}

@keyframes logoHoverFloat {
    0%, 100% { transform: translateY(0) rotateZ(0deg); box-shadow: 0 4px 15px rgba(66, 135, 245, 0.2); }
    50% { transform: translateY(-8px) rotateZ(2deg); box-shadow: 0 10px 25px rgba(66, 135, 245, 0.4); }
}

.footer-logo img:hover {
    opacity: 1;
    transform: translateY(-10px) rotateZ(5deg) scale(1.08);
    box-shadow: 0 12px 35px rgba(66, 135, 245, 0.6);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 8px rgba(66, 135, 245, 0.5);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-links a:hover::after {
    width: 100%;
    box-shadow: 0 0 12px rgba(66, 135, 245, 0.8);
}

.footer-copyright {
    color: var(--text-dark);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    footer {
        padding: 3.5rem 4rem;
    }
    
    .footer-content {
        grid-template-columns: auto 1fr auto;
        text-align: left;
    }
    
    .footer-links {
        justify-content: center;
        gap: 2.5rem;
    }
    
    .footer-copyright {
        text-align: right;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2rem 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-logo img {
        height: 55px;
        width: 55px;
    }
    
    .footer-links {
        gap: 1.5rem;
        flex-direction: column;
    }
    
    .footer-links a {
        font-size: 0.95rem;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
}

/* ===============================
   MOBILE NAVIGATION
================================= */
@media (max-width: 768px) {

    header {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }

    .logo { height: 44px; width: 44px; min-width: 44px; }
    .menu-toggle { display: flex; }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--secondary);
        flex-direction: column;
        align-items: stretch;
        transition: right 0.3s ease;
        z-index: 999;
        padding: 6rem 0 2rem;
    }

    nav.active { right: 0; }

    .nav-link {
        padding: 1.2rem 2rem;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-dropdown { width: 100%; }

    .dropdown-menu {
        position: static;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        background: rgba(66,135,245,0.05);
        border: none;
        box-shadow: none;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 400px;
        opacity: 1;
    }

    .dropdown-item {
        padding: 0.8rem 2rem 0.8rem 3rem;
    }
    
    .gradient-text {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }
    
    .logo-container {
        min-width: 44px;
    }
    
    .logo {
        height: 40px;
        width: 40px;
        min-width: 40px;
    }
    
    .menu-toggle {
        width: 28px;
        height: 24px;
        flex-shrink: 0;
    }
    
    .menu-toggle span {
        height: 2.5px;
    }
    
    nav {
        padding: 5.5rem 0 2rem 0;
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .gradient-text {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .stream-container {
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .twitch-card, .youtube-card {
        border-radius: 12px;
    }
    
    .twitch-embed, .youtube-embed {
        min-height: 300px;
    }
    
    .social-grid {
        gap: 1rem;
    }
    
    .social-card {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    main {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .social-grid {
        gap: 1rem;
    }
    
    .social-card {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Animationen */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.6s ease forwards;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 995;
    box-shadow: 0 4px 12px rgba(66, 135, 245, 0.3);
    font-size: 1.5rem;
    will-change: opacity, transform;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(90deg, #2b5db5, #9b30b3, #d4348b);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 6px 18px rgba(66, 135, 245, 0.4);
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* Content Cards für Unterseiten */
.content-card {
    background: var(--secondary-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-card h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.content-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
}

.content-card h3 {
    color: var(--text-light);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-text {
    background: rgba(0,0,0,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.content-text p {
    margin-bottom: 1rem;
}

/* Aktive Navigation */
nav .active {
    color: var(--primary);
}

nav .active::after {
    width: 100%;
}

/* Kontaktformular-Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info, .contact-form {
    background: var(--secondary-light);
    border-radius: 12px;
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.contact-text h3 {
    margin: 0;
    color: var(--text-light);
}

.contact-text p {
    margin: 5px 0 0;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--background);
    color: var(--text);
    font-family: var(--font-main);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background: var(--gradient-primary);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    background: linear-gradient(90deg, #2b5db5, #9b30b3, #d4348b);
    transform: translateY(-3px);
}

/* Dark Mode Toggle (optional) */
.dark-mode-toggle {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-light);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Browser-spezifische Optimierungen */
@supports (-webkit-touch-callout: none) {
    .hero h1 {
        background-clip: text !important;
        -webkit-background-clip: text !important;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* === Streamer Features === */

/* Viewer/Subscriber Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    background: rgba(66, 135, 245, 0.08);
    border: 1px solid rgba(66, 135, 245, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: rgba(66, 135, 245, 0.15);
    border-color: rgba(66, 135, 245, 0.4);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Stream Alert/Notification */
.stream-alert {
    background: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.15) 0%,
        rgba(66, 135, 245, 0.1) 100%
    );
    border-left: 4px solid #dc143c;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slide-in 0.4s ease;
}

@keyframes slide-in {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.stream-alert-icon {
    font-size: 1.5rem;
    color: #dc143c;
}

.stream-alert-content {
    flex: 1;
}

.stream-alert-title {
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.stream-alert-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Discord/Social Quick Links */
.quick-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.quick-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(66, 135, 245, 0.1);
    border: 1px solid rgba(66, 135, 245, 0.3);
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-link-btn:hover {
    background: rgba(66, 135, 245, 0.2);
    border-color: rgba(66, 135, 245, 0.5);
    transform: translateY(-2px);
}

/* Featured Content Box */
.featured-box {
    background: linear-gradient(
        135deg,
        rgba(66, 135, 245, 0.12) 0%,
        rgba(184, 61, 245, 0.08) 100%
    );
    border: 1px solid rgba(66, 135, 245, 0.25);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.featured-box::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(66, 135, 245, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.featured-box-content {
    position: relative;
    z-index: 2;
}

.featured-label {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.featured-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Responsive Stats */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
        margin: 2rem 0;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .featured-box {
        padding: 1.5rem;
    }
}

/* ================================================
   COOKIE CONSENT BANNER
================================================ */

/* Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 11000;
    background: linear-gradient(135deg, rgba(14, 14, 16, 0.97), rgba(31, 31, 35, 0.97));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(66, 135, 245, 0.25);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    padding: 1.5rem 2rem;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.cookie-banner-visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-banner-icon {
    font-size: 2rem;
    color: var(--accent);
    flex-shrink: 0;
    line-height: 1;
    animation: cookieWiggle 2s ease-in-out infinite;
}

@keyframes cookieWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

.cookie-banner-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.cookie-banner-text p {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
}

.cookie-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Buttons */
.cookie-btn {
    padding: 0.7rem 1.4rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    font-family: var(--font-main);
    white-space: nowrap;
}

.cookie-btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 135, 245, 0.3);
}

.cookie-btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(66, 135, 245, 0.45);
}

.cookie-btn-secondary {
    background: rgba(66, 135, 245, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(66, 135, 245, 0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(66, 135, 245, 0.25);
    transform: translateY(-2px);
    border-color: rgba(66, 135, 245, 0.5);
}

.cookie-btn-ghost {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(173, 173, 184, 0.25);
}

.cookie-btn-ghost:hover {
    background: rgba(173, 173, 184, 0.1);
    color: var(--text);
    transform: translateY(-2px);
}

/* Settings Modal Overlay */
.cookie-settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.cookie-settings-visible {
    opacity: 1;
}

.cookie-settings-modal {
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.98), rgba(36, 36, 42, 0.98));
    border: 1px solid rgba(66, 135, 245, 0.2);
    border-radius: 16px;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(66, 135, 245, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-settings-visible .cookie-settings-modal {
    transform: scale(1) translateY(0);
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(66, 135, 245, 0.15);
    background: linear-gradient(135deg, rgba(66, 135, 245, 0.08), rgba(184, 61, 245, 0.05));
}

.cookie-settings-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.cookie-settings-header h3 i {
    color: var(--primary);
}

.cookie-settings-close {
    background: rgba(173, 173, 184, 0.1);
    border: 1px solid rgba(173, 173, 184, 0.2);
    color: var(--text-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.cookie-settings-close:hover {
    background: rgba(245, 66, 167, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(90deg);
}

.cookie-settings-body {
    padding: 1.25rem 1.5rem;
}

.cookie-settings-intro {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.cookie-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(31, 31, 35, 0.5);
    border: 1px solid rgba(66, 135, 245, 0.08);
    margin-bottom: 0.75rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cookie-setting-row:hover {
    border-color: rgba(66, 135, 245, 0.2);
    background: rgba(31, 31, 35, 0.7);
}

.cookie-setting-info {
    flex: 1;
}

.cookie-setting-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
}

.cookie-badge-required {
    display: inline-block;
    background: rgba(66, 135, 245, 0.15);
    color: var(--primary-light);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.cookie-setting-desc {
    font-size: 0.82rem;
    color: var(--text-dark);
    margin-top: 0.3rem;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(173, 173, 184, 0.25);
    border-radius: 26px;
    transition: all 0.3s ease;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--gradient-primary);
    box-shadow: 0 0 12px rgba(66, 135, 245, 0.3);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(22px);
    box-shadow: 0 2px 8px rgba(66, 135, 245, 0.4);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(66, 135, 245, 0.15);
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Blocked Content Placeholder */
.cookie-blocked-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 24, 0.95);
    border-radius: 8px;
    border: 1px dashed rgba(66, 135, 245, 0.35);
    z-index: 5;
}

.cookie-blocked-inner {
    text-align: center;
    padding: 2rem;
}

.cookie-blocked-inner i {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: block;
}

.cookie-blocked-inner p {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin: 0;
}

.cookie-blocked-sub {
    font-size: 0.85rem !important;
    margin-top: 0.5rem !important;
}

.cookie-blocked-btn {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    background: rgba(66, 135, 245, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(66, 135, 245, 0.3);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.cookie-blocked-btn:hover {
    background: rgba(66, 135, 245, 0.25);
    transform: translateY(-2px);
}

/* Footer Cookie Link */
.footer-cookie-link {
    cursor: pointer;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.footer-cookie-link:hover {
    color: var(--primary);
}

/* Cookie Banner Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem 1rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 1.25rem;
    }

    .cookie-banner-text {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 0;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .cookie-settings-modal {
        max-height: 90vh;
        border-radius: 12px;
    }

    .cookie-setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cookie-settings-footer {
        justify-content: center;
    }
}