@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Colors - Adjusted for pure modern aesthetics */
    --color-primary: #741c30;      /* Deep Burgundy */
    --color-secondary: #76b3b2;    /* Seafoam / Mintgrün */
    --color-primary-light: #902c44;
    --color-secondary-light: #8cd6d4;
    
    /* Neutrals & Base */
    --color-bg: #f4f6fa;           
    --color-surface: rgba(255, 255, 255, 0.7);
    --color-text: #1d1d1f;
    --color-text-light: #5f6368;
    --color-border: rgba(255, 255, 255, 0.5);

    /* Layout Setup */
    --container-width: 1280px;
    --border-radius: 24px;
    --border-radius-sm: 16px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Modern Glass Shadows */
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    --shadow-float: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Background Blobs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
    animation: drift 20s infinite alternate ease-in-out;
}

body::before {
    background: radial-gradient(circle, var(--color-secondary) 0%, rgba(118,179,178,0) 70%);
    top: -100px;
    right: -100px;
}

body::after {
    background: radial-gradient(circle, var(--color-primary-light) 0%, rgba(144,44,68,0) 70%);
    bottom: -200px;
    left: -200px;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 1.2rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

/* Header & Nav (Floating Glassmorphism) */
html {
    scroll-padding-top: 90px;
}

header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed; /* Sticky everywhere */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    font-size: 1.4rem;
    color: #3c3c3a;
    letter-spacing: -0.02em;
}

.logo-area img {
    height: 40px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-primary);
}

/* Hero Section (Startseite) */
.hero {
    position: relative;
    padding: 8rem 2rem 4rem; /* Adjusted for fixed header */
    min-height: 100vh; /* Full screen */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    text-align: center;
    margin-bottom: 4rem; /* Add space below hero instead */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeUp 1s ease both;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: white; /* Override the gradient from before for clarity */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p.lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 2.5rem;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 2rem;
    margin-bottom: 6rem;
}

.bento-card {
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-float);
}

.bento-large {
    grid-column: span 2;
}

.bento-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
}
.bento-primary h2, .bento-primary p, .bento-primary h3, .bento-primary a { color: white; }
.bento-primary p { opacity: 0.9; }

.bento-secondary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    color: white;
}
.bento-secondary h2, .bento-secondary p, .bento-secondary h3, .bento-secondary h4, .bento-secondary a { color: white; }

/* Content Formatting inside Bento */
.bento-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0,0,0,0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(116, 28, 48, 0.4);
    letter-spacing: -0.01em;
}

.btn:hover {
    background-color: var(--color-primary-light);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(116, 28, 48, 0.5);
}

.btn-secondary {
    background-color: var(--color-secondary);
    box-shadow: 0 10px 20px -5px rgba(118, 179, 178, 0.4);
}
.btn-secondary:hover {
    background-color: var(--color-secondary-light);
    box-shadow: 0 15px 25px -5px rgba(118, 179, 178, 0.5);
}

/* Footer */
footer {
    background: var(--color-primary);
    color: white;
    padding: 2.5rem 0 1.5rem;
    border-radius: 20px 20px 0 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-brand {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    color: var(--color-primary);
}
.footer-brand h3, .footer-brand p {
    color: #3c3c3a !important;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Additional Bento Classes */
.bento-contact {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-glass);
}

/* Responsive Utilities */
.pt-page { padding-top: 8rem; }
.pt-page-xl { padding-top: 10rem; }
.pb-page { padding-bottom: 4rem; }

.bento-content-box {
    background-color: var(--color-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.news-search-form {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Media Queries */
@media (max-width: 992px) {
    header { position: relative; }
    .pt-page { padding-top: 3rem; }
    .pt-page-xl { padding-top: 4rem; }
    .pb-page { padding-bottom: 3rem; }

    .container {
        padding: 0 1.5rem;
    }
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .bento-large {
        grid-column: span 1;
    }
    .bento-contact {
        grid-column: span 1;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .bento-card {
        padding: 2rem;
    }
    .sponsors-grid {
        gap: 2rem;
        padding: 1.5rem;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem 3rem;
        min-height: auto;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p.lead {
        font-size: 1.1rem;
    }
    
    /* Mobile Menu */
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-float);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        font-size: 1.2rem;
        display: block;
        text-align: center;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .footer-brand {
        justify-content: center;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .pt-page { padding-top: 2rem; }
    .pt-page-xl { padding-top: 3rem; }
    .pb-page { padding-bottom: 2rem; }
    .bento-content-box { padding: 1.25rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .news-search-form { flex-wrap: wrap; }
    .news-search-form input, .news-search-form button, .news-search-form a { flex: unset; width: 100%; text-align: center; margin-bottom: 0.5rem; }

    .container {
        padding: 0 1rem;
    }
    .bento-card {
        padding: 1.5rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .logo-area {
        font-size: 1.2rem;
    }
    .logo-area img {
        height: 32px;
    }
    .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
    .hero-content > div {
        flex-direction: column;
    }
}

/* News List */
.news-article {
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-glass);
}
@media (max-width: 992px) {
    .news-article {
        padding: 1.5rem;
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
