:root {
    --bg-color: #0f172a; /* Slate 900 */
    --text-color: #cbd5e1; /* Slate 300 */
    --heading-color: #f8fafc; /* Slate 50 */
    --primary: #06b6d4; /* Cyan 500 */
    --secondary: #10b981; /* Emerald 500 */
    --tertiary: #3b82f6; /* Blue 500 */
    --card-bg: rgba(30, 41, 59, 0.6); /* Slate 800 semi-transparent */
    --card-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Colorful animated background mesh/aurora effect */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

body::before {
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

body::after {
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 5vh) scale(1.1); }
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--heading-color);
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header */
header {
    padding: 120px 0 80px;
    position: relative;
    text-align: center;
}

header h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--heading-color) 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-color);
    max-width: 650px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 28px;
    border-radius: 40px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Main Content Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    margin: 40px 0 120px; 
}

/* Glassmorphism Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--tertiary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
    background: rgba(30, 41, 59, 0.8);
}

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

.card-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.card h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card .date {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 24px;
    display: inline-block;
    font-family: 'Inter', monospace;
}

.card p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.card p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--card-border);
    text-align: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

footer p {
    font-size: 0.95rem;
    color: #94a3b8;
}

footer a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px dotted var(--heading-color);
}

footer a:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

/* Impressum Fix */
section.card[style*="max-width"] {
    margin: 80px auto;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 3rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 30px;
    }
}
