@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;900&family=Plus+Jakarta+Sans:wght@300;400;500;700&display=swap');

:root {
    --primary: hsl(250, 100%, 65%);
    --primary-alt: hsl(280, 100%, 60%);
    --accent: hsl(190, 100%, 50%);
    --bg-dark: hsl(240, 20%, 3%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-white: rgba(255, 255, 255, 0.1);

    --radius-xl: 32px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-dark);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- IMMERSIVE MESH BACKGROUND --- */
.mesh-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.mesh-gradient {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0.2) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0.2) 0, transparent 50%),
        radial-gradient(at 0% 50%, hsla(250, 100%, 65%, 0.1) 0, transparent 50%),
        radial-gradient(at 100% 50%, hsla(190, 100%, 50%, 0.1) 0, transparent 50%),
        radial-gradient(at 0% 100%, hsla(339, 49%, 30%, 0.2) 0, transparent 50%),
        radial-gradient(at 50% 100%, hsla(225, 39%, 30%, 0.2) 0, transparent 50%),
        radial-gradient(at 100% 100%, hsla(253, 16%, 7%, 1) 0, transparent 50%);
    animation: rotateMesh 40s linear infinite;
}

@keyframes rotateMesh {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

header {
    height: 35vh;
    max-width: 1020px;
    width: calc(100% - 80px);
    margin: 40px auto 35px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 35px 45px;
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(40px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-white);
}

header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.9;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

header p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    max-width: 600px;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 100px;
}

.section-card,
.card {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(40px);
    border-radius: var(--radius-xl);
    padding: 35px 45px;
    margin-bottom: 35px;
    border: 1px solid var(--border-white);
    overflow: hidden;
}

.section-card>*,
.card>* {
    position: relative;
    z-index: 1;
}

.section-card h2,
.card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-card h2 i,
.card h2 i {
    color: var(--primary);
    transition: all 0.3s ease;
}

/* --- DYNAMIC CARD COLORS --- */
.card:nth-of-type(1) { border-color: rgba(255,107,107,0.4); box-shadow: 0 0 30px rgba(255,107,107,0.08); }
.card:nth-of-type(1) h2 i { color: #FF6B6B; text-shadow: 0 0 15px rgba(255,107,107,0.4); }

.card:nth-of-type(2) { border-color: rgba(78,205,196,0.4); box-shadow: 0 0 30px rgba(78,205,196,0.08); }
.card:nth-of-type(2) h2 i { color: #4ECDC4; text-shadow: 0 0 15px rgba(78,205,196,0.4); }

.card:nth-of-type(3) { border-color: rgba(69,183,209,0.4); box-shadow: 0 0 30px rgba(69,183,209,0.08); }
.card:nth-of-type(3) h2 i { color: #45B7D1; text-shadow: 0 0 15px rgba(69,183,209,0.4); }

.card:nth-of-type(4) { border-color: rgba(249,168,38,0.4); box-shadow: 0 0 30px rgba(249,168,38,0.08); }
.card:nth-of-type(4) h2 i { color: #F9A826; text-shadow: 0 0 15px rgba(249,168,38,0.4); }

.card:nth-of-type(5) { border-color: rgba(155,89,182,0.4); box-shadow: 0 0 30px rgba(155,89,182,0.08); }
.card:nth-of-type(5) h2 i { color: #9B59B6; text-shadow: 0 0 15px rgba(155,89,182,0.4); }

.card:nth-of-type(6) { border-color: rgba(231,76,60,0.4); box-shadow: 0 0 30px rgba(231,76,60,0.08); }
.card:nth-of-type(6) h2 i { color: #E74C3C; text-shadow: 0 0 15px rgba(231,76,60,0.4); }

.card:nth-of-type(7) { border-color: rgba(47,204,113,0.4); box-shadow: 0 0 30px rgba(47,204,113,0.08); }
.card:nth-of-type(7) h2 i { color: #2FCC71; text-shadow: 0 0 15px rgba(47,204,113,0.4); }

.card:nth-of-type(8) { border-color: rgba(241,196,15,0.4); box-shadow: 0 0 30px rgba(241,196,15,0.08); }
.card:nth-of-type(8) h2 i { color: #F1C40F; text-shadow: 0 0 15px rgba(241,196,15,0.4); }

.card:nth-of-type(9) { border-color: rgba(230,126,34,0.4); box-shadow: 0 0 30px rgba(230,126,34,0.08); }
.card:nth-of-type(9) h2 i { color: #E67E22; text-shadow: 0 0 15px rgba(230,126,34,0.4); }

.card:nth-of-type(10) { border-color: rgba(52,152,219,0.4); box-shadow: 0 0 30px rgba(52,152,219,0.08); }
.card:nth-of-type(10) h2 i { color: #3498DB; text-shadow: 0 0 15px rgba(52,152,219,0.4); }

.card:nth-of-type(11) { border-color: rgba(26,188,156,0.4); box-shadow: 0 0 30px rgba(26,188,156,0.08); }
.card:nth-of-type(11) h2 i { color: #1ABC9C; text-shadow: 0 0 15px rgba(26,188,156,0.4); }

.card:nth-of-type(12) { border-color: rgba(211,84,0,0.4); box-shadow: 0 0 30px rgba(211,84,0,0.08); }
.card:nth-of-type(12) h2 i { color: #D35400; text-shadow: 0 0 15px rgba(211,84,0,0.4); }

/* --- ULTRA GRID --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.link-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-white);
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-card:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.link-card i {
    font-size: 2rem;
    color: var(--primary);
}

/* --- DECOR --- */
.merke {
    border-left: 0;
    background: linear-gradient(90deg, rgba(88, 101, 242, 0.1), transparent);
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.warnung,
.example {
    background: rgba(255, 95, 87, 0.05);
    border: 1px solid rgba(255, 95, 87, 0.2);
}

.example.good {
    background: rgba(52, 199, 89, 0.05);
    border: 1px solid rgba(52, 199, 89, 0.2);
}

/* --- FOOTER --- */
footer {
    padding: 50px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid var(--border-white);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}