@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --font-main: 'Hind', sans-serif;
    --font-heading: 'Hind', sans-serif;
    --text-color: rgba(0, 0, 0, 0.87);
    --text-color-light: #575757;
    --bg-color: #ffffff;
    --bg-alt: #f0f0f0;
    --link-color: #666464;
    --link-hover: #000000;
    --nav-color: #8c8c8c;
    --nav-active: rgba(0, 0, 0, 0.87);
    --border-radius: 2px;
    --content-width: 1200px;
}

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

body {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-color);
    background-color: var(--bg-color);
    position: relative;
}

/* Background image fixed to viewport */
.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-alt); /* removed bg.jpg to clean up visuals */
    z-index: -1;
}

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

a:hover {
    color: var(--link-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    color: var(--text-color-light);
    margin-bottom: 0.7em;
    line-height: normal;
}

h1 { font-size: 45px; }
h2 { font-size: 40px; }
h3 { font-size: 25px; }
h4, h5, h6 { font-size: 25px; }

/* LAYOUT */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-color);
    max-width: var(--content-width);
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

/* HEADER */
header {
    background-color: #ffffff;
    width: 100%;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 0;
}

.logo img {
    max-width: 300px;
    max-height: 80px;
    width: auto;
    height: auto;
    margin-bottom: 10px;
}

/* NAVIGATION */
.main-nav {
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #eee; /* subtle separator if needed */
    padding: 15px 0;
}

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

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    color: var(--nav-color);
    font-size: 20px;
    font-weight: 300;
    text-transform: none;
}

.main-nav li.active > a,
.main-nav a:hover {
    color: var(--nav-active);
}

/* DROPDOWN */
.main-nav li.has-dropdown {
    position: relative;
    padding-right: 15px;
}

.main-nav li.has-dropdown > a::after {
    content: '▾';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.main-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
}

.main-nav li.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .dropdown li {
    width: 100%;
}

.main-nav .dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--nav-color);
    white-space: nowrap;
}

.main-nav .dropdown a:hover {
    color: var(--nav-active);
    background-color: #f9f9f9;
}

/* KEYVISUAL / BANNER */
.keyvisual {
    width: 100%;
    /* 100vw implementation - break out of max-width container */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    height: 400px;
    background-color: #eee;
    background-image: url('assets/banner.jpg');
    background-size: cover;
    background-position: center;
}

.keyvisual-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.keyvisual .title {
    color: #ffffff;
    font-size: 60px;
    line-height: 1;
    font-weight: 300;
}

.keyvisual .subtitle {
    color: #ffffff;
    font-size: 50px;
    line-height: normal;
    font-weight: 300;
}

/* MAIN CONTENT AREA */
.content-area {
    display: flex;
    flex-direction: column;
}

.top-sidebar {
    background-color: var(--bg-alt);
    padding: 40px 20px;
    text-align: center;
}

.top-sidebar h1 {
    color: var(--text-color);
}

.main-content {
    padding: 40px 20px;
    background-color: #ffffff;
}

/* THEMES GRID (Cards) */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.theme-card {
    display: flex;
    flex-direction: column;
}

.theme-image {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
}

.theme-button {
    display: block;
    text-align: center;
    background-color: #f0f0f0;
    color: #8c8c8c !important;
    padding: 15px;
    font-size: 18px;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.theme-button:hover {
    background-color: #8c8c8c;
    color: #f0f0f0 !important;
}

/* WIDGETS AND IMAGES */
img {
    max-width: 100%;
    height: auto;
}

/* BOTTOM AREA */
.bottom-sidebar {
    background-color: var(--bg-alt);
    padding: 40px 20px;
}

.bottom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: var(--content-width);
    margin: 0 auto;
}

.bottom-col h3 {
    font-weight: 500;
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.bottom-col p {
    font-size: 16px; /* Often footers have slightly smaller text, but we'll use base size or smaller */
}

.small-text {
    font-size: 14px;
}

.wappen-container img {
    max-width: 134px;
}

/* FOOTER */
footer {
    background-color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    color: #8c8c8c;
    font-size: 16px;
}

footer a {
    color: #8c8c8c;
}

footer a:hover {
    color: var(--link-hover);
}

/* MOBILE NAV (Burger) */
.mobile-nav-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--nav-color);
    transition: all 0.3s;
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

#cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--content-width);
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}

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

.cookie-btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 16px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s, color 0.3s;
}

.cookie-btn-accept {
    background-color: var(--text-color);
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background-color: #000;
}

.cookie-btn-essential {
    background-color: #f0f0f0;
    color: var(--text-color);
    border: 1px solid #ccc;
}

.cookie-btn-essential:hover {
    background-color: #e0e0e0;
}

/* RESPONSIVE */
@media screen and (max-width: 1200px) {
    .keyvisual {
        /* Still 100vw but keep content inside safe */
    }
}

@media screen and (max-width: 992px) {
    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    .logo img {
        width: 200px;
        margin-bottom: 0;
    }
    
    .desktop-nav {
        display: none; /* Hide desktop nav */
    }

    .mobile-nav-toggle {
        display: flex;
        z-index: 1001; /* Above mobile menu */
    }

    /* Mobile Menu styles */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        padding-top: 80px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.open {
        right: 0;
        display: flex; /* Override desktop none via JS or classes if needed, but flex by default here with right transition */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
        gap: 0;
    }

    .main-nav > ul > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
    }

    .main-nav .dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 20px;
        background-color: #f9f9f9;
        border-top: 1px solid #eee;
    }

    .main-nav li.has-dropdown.open .dropdown {
        display: block;
    }

    .main-nav li.has-dropdown > a::after {
        content: '+';
        font-size: 20px;
    }

    .main-nav li.has-dropdown.open > a::after {
        content: '-';
    }

    /* Adjust layout */
    .keyvisual {
        height: 250px;
    }
    
    .keyvisual .title { font-size: 40px; }
    .keyvisual .subtitle { font-size: 30px; }

    .themes-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-grid {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Utility to ensure HTML from generator matches typical Strato content block styles */
main img {
    margin: 15px 0;
    display: block;
}

main p {
    margin-bottom: 15px;
}

/* Flexbox implementation for Strato Column Grids */
.cm_column_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.cm_column_wrapper > .cm_column {
    flex: 1 1 0px;
    min-width: 250px;
    width: auto !important; /* Override strato inline widths */
    box-sizing: border-box;
}

.cm_column_wrapper > .cm_column_gap {
    display: none !important;
}
