/* 
   ========================================
   Base Styles for notar-schwerd.de
   ========================================
*/
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600&family=Pontano+Sans&display=swap');

:root {
    --primary-text: #4a4a4a;
    --heading-text: #333333;
    --accent-gold: #c4a257; /* The golden/ocher color */
    --footer-bg: #3f3e3e;
    --footer-text: #f0f0f0;
    --bg-color: #f7f9fa; /* Outer background */
    --content-bg: #ffffff;
    --border-color: #e0e0e0;
    --font-heading: 'Muli, sans-serif', serif;
    --font-body: 'Muli, sans-serif', sans-serif;
    --container-width: 1060px;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-text);
    background-color: var(--bg-color); /* Removed the body background image */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-text);
    font-weight: 500;
    margin-bottom: 1rem;
}

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

a:hover {
    color: #a38541;
}

p {
    margin-bottom: 1.2rem;
}

.gold-text {
    color: var(--accent-gold) !important;
}

/* 
   ========================================
   Navigation (Header)
   ========================================
*/
.site-header {
    background-color: var(--content-bg);
    width: 100%;
    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links > li {
    position: relative;
    padding: 1.2rem 0;
}

.nav-links a {
    color: var(--primary-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold);
}

/* Dropdown Menu styling */
.has-dropdown > .dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--content-bg);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    transform: translateY(10px);
    z-index: 200;
}

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

.dropdown li a {
    display: block;
    padding: 0.5rem 1.5rem;
    text-transform: none;
    font-size: 0.95rem;
    color: var(--primary-text);
}

.dropdown li a:hover {
    background-color: #f5f5f5;
    color: var(--accent-gold);
}

/* Mobile Burger Menu */
.burger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.burger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-text);
    margin: 5px 0;
    transition: 0.3s;
}

/* 
   ========================================
   Hero / Key Visual Area (100vw requirement)
   ========================================
*/
.hero-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Forcing 100vw constraint */
    background-color: var(--content-bg);
    display: flex;
    justify-content: center;
    position: relative;
    padding: 0 1rem;
}

.hero-banner img {
    display: block;
    width: 100%;
    max-width: var(--container-width);
    height: 400px;
    object-fit: cover;
    object-position: center 30%;
}

/* 
   ========================================
   Content Layout Area
   ========================================
*/
.content-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    background-color: var(--content-bg);
    box-shadow: 0 0 20px rgba(0,0,0,0.1); /* As seen in the original */
    min-height: 500px;
}

.content-inner {
    padding: 4rem 3rem;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.content-text {
    flex: 1;
    min-width: 0;
}

/* Sidebar Styles */
.sidebar-right {
    width: 300px;
    flex-shrink: 0;
    font-family: var(--font-body);
}

.sidebar-right h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-gold);
    color: var(--heading-text);
    text-transform: uppercase;
}

.sidebar-right p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.sidebar-right .contact-block {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.sidebar-right .contact-block span {
    color: var(--accent-gold);
    font-weight: bold;
}

.sidebar-right .btn-sidebar {
    display: inline-block;
    background-color: var(--accent-gold);
    color: #fff;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    margin-top: 0.2rem;
    transition: background-color 0.3s ease;
}

.sidebar-right .btn-sidebar:hover {
    background-color: #2f3d4d;
    color: #fff;
    text-decoration: none;
}

/* Special formatting for inner titles, as seen in "NOTAR IN CHEMNITZ" */
.content-inner > h1.title-main {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
}

.content-inner > h3.title-sub {
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: -0.5rem;
}

/* Clean images */
.content-inner img {
    max-width: 100%;
    height: auto;
}

/* Strato Column Wrappers (Multi-column flexbox compatibility) */
.cm_column_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 2rem;
}
.cm_column {
    flex: 1;
    min-width: 300px;
}
.cm_column_gap {
    display: none;
}

/* Tables */
.cm_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.cm_table td {
    padding: 0.5rem;
    vertical-align: top;
}

/* Download Wrapper Layout */
.cm-download-widget table {
    width: 100%;
}

.cm-download-widget td:first-child {
    width: 40px;
    text-align: center;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-gold);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #a38541;
    color: #fff;
}

/* 
   ========================================
   Footer Area
   ========================================
*/
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 0 0;
    margin-top: 3rem;
    font-family: var(--font-body);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h4 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.footer-column p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #cccccc;
}

.footer-column a {
    color: var(--accent-gold);
}

.footer-column a:hover {
    text-decoration: underline;
}

/* Footer Bottom (Nav & Copyright) */
.footer-bottom {
    max-width: var(--container-width);
    margin: 3rem auto 0 auto;
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #999;
}

.footer-nav {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: #999;
}

.footer-nav a:hover {
    color: var(--accent-gold);
}

/* 
   ========================================
   Cookie Banner
   ========================================
*/
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #efefef;
    border-top: 2px solid var(--accent-gold);
    z-index: 9999;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

.cookie-content {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-content h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* 
   ========================================
   Responsive Design & Mobile Formatting
   ========================================
*/
@media (max-width: 900px) {
    .main-nav {
        justify-content: flex-end;
    }

    .burger-menu {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        background-color: var(--content-bg);
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        gap: 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        max-height: 600px; /* high enough to fit content */
        overflow: visible;
    }

    .nav-links > li {
        width: 100%;
        text-align: center;
        padding: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        display: block;
        padding: 1rem;
    }

    /* Mobile Dropdown adjustment */
    .has-dropdown > .dropdown {
        position: static;
        box-shadow: none;
        background-color: #f9f9f9;
        visibility: visible;
        opacity: 1;
        transform: none;
        display: none; /* Hide by default on mobile */
    }

    /* Simple interaction on mobile: visible when nav is active */
    .nav-links.active .has-dropdown > .dropdown {
        display: block;
    }

    .burger-menu.toggle .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .burger-menu.toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.toggle .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-banner {
        max-height: 300px;
    }
    
    .content-inner {
        flex-direction: column;
        padding: 2rem 1.5rem;
    }

    .sidebar-right {
        width: 100%;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid var(--border-color);
    }

    .footer-container {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
