html,
body {
    height: 100%;
    font-size: 0.95rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
}

#main-wrapper {
    display: flex;
    height: 100%;
    padding-bottom: 35px;
}


#content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;

}

main#page-content {
    flex-grow: 1;
    /* Takes up all available vertical space, pushing the footer down */
    overflow-y: auto;
    /* Enables vertical scrolling ONLY for this element */
    padding: 1.5rem;
}

/* Navigation refinements */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    background-color: #ffffff !important;
    border-bottom: 3px solid var(--tsz-primary);
    /* Marken-Farbe als Akzent */
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--tsz-primary) !important;
    letter-spacing: -0.02em;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main) !important;
    padding: 0.75rem 1rem !important;
    transition: color 0.2s ease-in-out;
}

.nav-link img {
    transition: transform 0.2s ease-in-out;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.nav-link:hover img {
    transform: scale(1.15);
}

.nav-link:hover,
.nav-link.active {
    color: var(--tsz-primary) !important;
}

/* Dropdown-Menü Modernisierung */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius);
}



/* The footer, which will remain fixed at the bottom */
footer {
    flex-shrink: 0;
    /* Prevents the footer from shrinking */
    background-color: #f8f9fa;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    border-top: 1px solid #dee2e6;
}

.bg {
    background-image: url("/static/img/header_bg.jpg");
    background-size: cover;
    width: 100%;
    overflow: hidden;
}