/* style.css for notar-gaentzsch.de */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Hind:wght@400;600&display=swap');

:root {
    --primary-dark: #296f95;
    --primary-light: #69a8ca;
    --accent-brown: #885b5b;
    --text-color: #333333;
    --bg-color: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Hind', sans-serif;
    --max-width: 1200px;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--primary-light);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: 15px;
}

/* Page Wrapper */
.page-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    background-color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    min-height: 100vh;
}

/* --- Header --- */
.site-header {
    padding: 30px 0;
    border-bottom: 2px solid var(--primary-light);
    margin-bottom: 30px;
}
.header-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.title-wrapper {
    text-align: left;
    font-family: var(--font-heading);
}
.title {
    font-weight: 700;
    font-size: 28px;
    color: var(--primary-dark);
}
.subtitle {
    font-weight: 700;
    font-size: 22px;
    color: var(--primary-light);
}

/* Global Image Fix */
img {
    max-width: 100%;
    height: auto;
}

/* --- Layout --- */
.page-body {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}
.left-nav {
    flex: 0 0 250px;
}
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.keyvisual {
    width: 100%;
    height: 300px;
    margin-bottom: 30px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.kv-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.kv-slide.active {
    opacity: 1;
}

.kv-slide-1 { background-image: url('assets/banner_1.jpg'); }
.kv-slide-2 { background-image: url('assets/banner_2.jpg'); }
.kv-slide-3 { background-image: url('assets/banner_3.jpg'); }
.kv-slide-4 { background-image: url('assets/banner_4.jpg'); }
.content-and-sidebar {
    display: flex;
    gap: 40px;
}
.main-content {
    flex: 3;
}
.sidebar-wrapper {
    flex: 1;
    min-width: 250px;
}

/* --- Vertical Navigation --- */
.main-navigation {
    background-color: transparent;
    display: block;
}
.main-navigation ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}
.main-navigation li {
    position: relative;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.main-navigation a {
    display: block;
    padding: 12px 15px;
    color: var(--primary-dark);
    font-weight: bold;
    font-family: var(--font-heading);
    transition: background-color 0.3s, color 0.3s;
}
.main-navigation a:hover,
.main-navigation li.active > a {
    background-color: var(--primary-light);
    color: #fff;
}

/* Vertical Flyout Menu */
.main-navigation ul li {
    position: relative;
}
.main-navigation ul ul {
    display: none;
    flex-direction: column;
    background-color: var(--primary-dark);
    position: absolute;
    top: 0;
    left: 100%;
    width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.main-navigation li:hover > ul {
    display: flex;
}
.main-navigation ul ul a {
    padding: 10px 15px;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}
.main-navigation ul ul a:hover {
    color: var(--primary-light);
    background-color: rgba(255,255,255,0.1);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background-color: var(--primary-dark);
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    font-family: var(--font-heading);
}

/* --- Widget Overrides --- */
.cm-widget_separatingline {
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

/* Opening Hours Widget Fixes */
.cm-w_oh-icon {
    width: 20px;
    height: 20px;
    fill: var(--primary-light);
}
.cm-w_oh-expander {
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
}

/* Form Styles */
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    font-family: var(--font-body);
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid #ccc;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #666;
}
.site-footer a {
    color: #666;
    margin: 0 5px;
}
.site-footer a:hover {
    color: var(--primary-dark);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.85);
    color: #fff;
    z-index: 9999;
    padding: 20px;
    display: none;
    justify-content: center;
}
.cookie-banner-content {
    max-width: 800px;
    width: 100%;
}
.cookie-banner h4 {
    color: #fff;
    margin-top: 0;
}
.cookie-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}
.btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}
.btn-primary { background: var(--primary-light); color: white; }
.btn-secondary { background: #555; color: white; }

/* --- Mobile / Burger Menu --- */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
    cursor: pointer;
    background: var(--primary-dark);
    padding: 10px;
    border-radius: 4px;
}
.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    .title-wrapper {
        text-align: center;
        margin-top: 20px;
    }
    .page-body {
        flex-direction: column;
    }
    .content-and-sidebar {
        flex-direction: column;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .main-navigation {
        display: none;
    }
    .main-navigation.active {
        display: block;
    }
    .main-navigation ul ul {
        display: flex;
        position: relative;
        left: 0;
        width: 100%;
        box-shadow: none;
        padding-left: 20px;
        background-color: transparent;
    }
}
