/* Critical CSS für Above-the-fold Performance */

/* Lato Font-Faces (kritisch für First Paint) */
@font-face {
    font-family: 'Lato';
    src: url('/static/fonts/Lato/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('/static/fonts/Lato/Lato-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Base Styles (kritisch) */
body {
    font-family: 'Lato', system-ui, sans-serif;
    background-color: #f9fafb;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header Styling (Above-the-fold) */
.header-green-bar {
    height: 6px;
    background-color: #4cb04d;
    width: 100%;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2492d1;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Logo Styling (kritisch für Header) */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 3rem;
    /* 48px */
    width: auto;
    transition: transform 0.2s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Navigation (Above-the-fold) */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #383f48;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #2492d1;
}

/* Button Styles (kritisch für CTA) */
.btn-primary {
    background-color: #2492d1;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #19b4e9;
}

/* Responsive (kritisch für Mobile) */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .logo-image {
        height: 2.5rem;
    }
}

/* Loading State (Performance) */
.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loaded {
    opacity: 1;
}

/* Preload Critical Resources */
.preload-hint {
    display: none;
}