/* css/layout.css - Styles für Header, Footer, Hero-Sections (Grundlagen) */

/* Header & Navigation */
.main-header {
    background-color: rgba(var(--primary-color-rgb), 0.85);
    padding: 0px 0; /* Wert von 15px 0 auf 10px 0 reduziert */
    box-shadow: 0 2px 10px rgba(var(--primary-color-rgb), 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: auto;
    overflow: visible;
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
}

.header-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    gap: 15px; /* Wert von 30px auf 15px reduziert */
    padding: 0 30px;
}

.site-logo {
    z-index: 1001;
    height: auto;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-right: 0;
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
    top: 5px;
}

.header-logo-img {
    max-height: 180px; /* VERGRÖSSERT: Logo für Desktop */
    width: auto;
    display: block;
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-start;
    padding-left: 0;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    position: relative;
    margin-left: 25px;
}

.nav-links a {
    background-color: transparent;
    border: 2px solid rgba(var(--text-color-light-rgb), 0.5);
    color: var(--text-color-light);
    padding: 8px 15px; /* Wert von 10px 20px auf 8px 15px reduziert */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color-light);
}

/* Dropdown-Menü (bleibt gleich, aber Farben angepasst) */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--light-bg-color);
    box-shadow: 0 8px 20px var(--shadow-medium);
    list-style: none;
    padding: 10px 0;
    margin-top: 10px;
    min-width: 200px;
    border-radius: 8px;
    left: 0;
    top: calc(100% + 5px);
    z-index: 9999;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 12px 20px;
    color: var(--text-color-dark);
    font-weight: normal;
    border: none;
    border-radius: 0;
}

.dropdown-menu li a:hover {
    background-color: rgba(var(--primary-color-rgb), 0.05);
    color: var(--primary-color);
}

.nav-arrow {
    font-size: 0.7em;
    vertical-align: middle;
    margin-left: 5px;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--primary-color-rgb), 0.98);
    z-index: 2000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-out;
}

.mobile-nav-overlay.active {
    display: flex;
    transform: translateX(0);
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 3.5em;
    color: var(--text-color-light);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.3s ease;
}

.close-menu:hover {
    color: var(--accent-color);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav-links li {
    margin-bottom: 25px;
}

.mobile-nav-links a {
    color: var(--text-color-light);
    font-size: 2em;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    border: none;
    border-radius: 0;
    font-weight: 700;
    transition: color 0.3s ease;
}
.mobile-nav-links a:hover {
    color: var(--accent-color);
}

.mobile-dropdown .mobile-dropdown-menu {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    display: none;
}

.mobile-dropdown-menu.active {
    display: block;
}

.mobile-nav-arrow {
    font-size: 0.7em;
    vertical-align: middle;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.mobile-dropdown > a .mobile-nav-arrow {
    transform: rotate(0deg);
}

.mobile-dropdown > a.active .mobile-nav-arrow {
    transform: rotate(90deg);
}

.main-header .menu-toggle {
    display: none !important;
}


/* Hero-Sektion (Basis-Stile, spezifische Animation in home.css) */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-light);
    text-align: center;
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 40px var(--shadow-medium);
    border-radius: 16px;
    margin-top: 10px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--primary-color-rgb), 0.6);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 1000px;
}

.hero-content h1 {
    font-size: 4.8em;
    margin-bottom: 25px;
    line-height: 1.1;
    color: var(--text-color-light);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.8em;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* Footer */
.main-footer {
    background-color: var(--dark-bg-color);
    color: var(--text-color-light);
    padding: 30px 0;
    text-align: center;
    font-size: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.main-footer .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 25px;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    font-weight: 600;
}

.footer-links a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: none;
}