@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

:root {
    --primary-color: #19375f;
    --text-color: #333333;
    --light-text: #727072;
    --bg-color: #ffffff;
    --footer-text: #456187;
    --max-width: 1200px;
    --padding-x: 20px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

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

a:hover {
    color: #456187;
}

.page-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-x);
}

/* Header & Logo */
header {
    margin-top: 30px;
    margin-bottom: 20px;
}

.head-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 100%;
    height: auto;
    max-height: 130px;
}

/* Navigation */
.mobile-navigation {
    display: none;
    text-align: right;
    padding: 10px 0;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
}

.main-navigation {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 10px;
    display: block;
}

/* Dropdown */
.has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    list-style: none;
    min-width: 200px;
    z-index: 100;
}

.has-dropdown:hover > .dropdown {
    display: block;
}

.dropdown li {
    border-bottom: 1px solid #f0f0f0;
}

.has-dropdown .dropdown .dropdown {
    top: 0;
    left: 100%;
}

/* Keyvisual */
.keyvisual-wrapper {
    margin-top: 20px;
    width: 100%;
    height: 300px; /* Fallback height */
}

.keyvisual-media {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    background-image: url('/assets/titelbild_05.jpg');
}

/* Main Layout */
.content-and-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.main-content {
    flex: 1 1 65%;
    min-width: 300px;
}

.sidebar-right {
    flex: 1 1 30%;
    min-width: 250px;
}

/* Typography styles inside content */
.main-content h1, .main-content h2, .main-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.main-content p {
    margin-bottom: 15px;
}

.main-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Columns in content (replicating cm_column) */
.cm_column_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    margin-bottom: 20px;
}

.cm_column {
    flex: 1;
    min-width: 300px;
}

/* Buttons inside content */
.cm-widget-button {
    display: inline-block;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 500px;
    margin-bottom: 10px;
}

.cm-widget-button:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.cm-widget-button-outline {
    background-color: transparent;
    color: var(--primary-color);
}
.cm-widget-button-outline:hover {
    box-shadow: inset 0px 0px 0px 1px var(--primary-color);
}

/* Images inside main */
.main-content img {
    max-width: 100%;
    height: auto;
}

/* Sidebar */
.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h1, .sidebar-widget h3 {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.sidebar-widget p {
    margin-bottom: 10px;
    font-size: 15px;
}

.sidebar-image img {
    max-width: 130px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    margin-top: 50px;
    padding-bottom: 30px;
}

.footer-separator {
    height: 1px;
    background-color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-content {
    text-align: center;
    font-size: 12px;
}

.footer-content p {
    margin-bottom: 10px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    padding: 20px;
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.cookie-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cookie-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    .main-navigation.active {
        display: block;
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    .mobile-navigation {
        display: block;
    }
    .has-dropdown .dropdown {
        position: static;
        box-shadow: none;
        border-left: 2px solid #eee;
        margin-left: 10px;
        display: none;
    }
    .content-and-sidebar {
        flex-direction: column;
    }
    .cm_column_wrapper {
        flex-direction: column;
    }
    .has-dropdown.active > .dropdown {
        display: block;
    }
}
