/* dashboard.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* =========================================
   GLOBAL & BACKGROUND ANIMATION
   ========================================= */
body {
    min-height: 100vh;
    /* Beweglicher Gradient im Hintergrund */
    background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #1a1a2e);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    
    color: #ffffff;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
    
    /* Selektionsschutz */
    user-select: none;
    -webkit-user-select: none;
}

/* Text darf markiert werden */
p, h1, h2, h3, h4, span, li, a {
    user-select: text;
    -webkit-user-select: text;
    cursor: default;
}

a { cursor: pointer; }

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

/* Hintergrund-Blobs (Bewegen sich) */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(130px);
    opacity: 0.4;
    animation: floatBlob 10s ease-in-out infinite alternate;
}

body::before {
    background: #7b2cbf;
    top: -150px;
    left: -150px;
}

body::after {
    background: #00b4d8;
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* =========================================
   NEUER LOADER (3 KUGELN)
   ========================================= */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0c29;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out;
}

.loader-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.ball {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: bounce 0.6s alternate infinite;
}

.ball:nth-child(1) { background: #7b2cbf; animation-delay: 0s; }
.ball:nth-child(2) { background: #00b4d8; animation-delay: 0.2s; }
.ball:nth-child(3) { background: #ffffff; animation-delay: 0.4s; }

@keyframes bounce {
    0% { transform: translateY(0); opacity: 0.7; }
    100% { transform: translateY(-20px); opacity: 1; }
}

.loading-text {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
}

/* =========================================
   MOBILE BLOCKER
   ========================================= */
.mobile-blocker {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #0f0c29, #24243e);
    z-index: 9999;
    flex-direction: column; justify-content: center; align-items: center;
    padding: 30px; text-align: center;
}
.mobile-blocker h2 { font-size: 2rem; color: #ff4d4d; margin-bottom: 20px; }
.mobile-blocker p { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 40px; max-width: 500px; }
.btn-back-home {
    padding: 15px 30px; background: linear-gradient(90deg, #00b4d8, #0077b6);
    color: white; text-decoration: none; font-weight: 600; border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3); transition: 0.3s;
}

/* =========================================
   MAIN DASHBOARD
   ========================================= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    perspective: 1200px;
}

/* Standardzustand: Alles unsichtbar, damit es nicht "vorher" schon da ist */
header, .section-title, .card {
    opacity: 0; 
    transform: translateY(30px); /* Leichte Verschiebung */
}

/* Animationen wenn geladen */
.anim-active {
    animation: entrance3D 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes entrance3D {
    0% {
        opacity: 0;
        transform: translateY(100px) rotateX(20deg) scale(0.9);
        filter: blur(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
        filter: blur(0);
    }
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 180, 216, 0.3);
}

.intro-text {
    max-width: 700px; margin: 0 auto; font-size: 1.1rem; line-height: 1.6;
    color: rgba(255, 255, 255, 0.8); background: rgba(0, 0, 0, 0.2);
    padding: 20px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Kategorien Titel */
.section-title {
    text-align: left;
    font-size: 1.8rem;
    color: #fff;
    margin-top: 60px;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 5px solid #00b4d8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 10px;
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    /* WICHTIG: Hier ist die Transition für den Hover */
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
    color: white;
    display: flex; flex-direction: column; position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
}

/* Hover: Smooth Scale */
.card:not(.coming):hover {
    transform: translateY(-10px) scale(1.02); 
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 180, 216, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 180, 216, 0.2);
}

.card-image {
    width: 100%; height: 160px; overflow: hidden; position: relative; pointer-events: none;
}
.card-image img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.card:not(.coming):hover .card-image img { transform: scale(1.1); }
.card-image::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(15, 12, 41, 0.9), transparent);
}

.card-content {
    padding: 20px; text-align: left; flex-grow: 1; display: flex; flex-direction: column;
}
.card h2 { font-size: 1.3rem; margin-bottom: 10px; color: #00b4d8; }
.card p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; flex-grow: 1; }

.btn-start {
    margin-top: auto; padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px; text-align: center; font-weight: 600; transition: 0.3s;
}
.card:not(.coming):hover .btn-start {
    background: #00b4d8; color: #0f0c29; border-color: #00b4d8;
}

/* Coming Soon Style */
.card.coming { opacity: 0.7; }
.card.coming .card-image img { filter: grayscale(80%) contrast(80%); }
.card.coming h2 { color: rgba(255, 255, 255, 0.6); }
.card.coming .btn-start {
    background: transparent; color: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.1); cursor: default;
}

@media (max-width: 768px) {
    .container { display: none; }
    .mobile-blocker { display: flex; }
    body { overflow: hidden; }
}