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

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'PT Sans', Arial, sans-serif;
    color: #4d4d4d;
    background: #e8e0d4;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: #595959;
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover {
    color: #8c6d4d;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    font-family: 'Hammersmith One', 'PT Sans', sans-serif;
    color: #8c6d4d;
    line-height: 1.3;
}

h1 { font-size: 1.6em; margin-bottom: 15px; }
h2 { font-size: 1.3em; margin-bottom: 12px; }
h3 { font-size: 1.1em; margin-bottom: 10px; }

p { margin-bottom: 12px; }

ul, ol {
    margin: 10px 0 15px 25px;
}

li {
    margin-bottom: 6px;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}

td, th {
    padding: 5px 8px;
    vertical-align: top;
    text-align: left;
}

/* ===== BACKGROUND ===== */
.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('assets/background.jpg') center center / cover no-repeat;
    z-index: -1;
}

/* ===== HEADER ===== */
.site-header {
    background: rgba(199, 190, 169, 0.92);
    width: 100%;
    position: relative;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* === TOP NAV BAR === */
.top-nav {
    background: rgba(199, 190, 169, 0.95);
    border-bottom: 1px solid rgba(150, 140, 120, 0.3);
    position: relative;
    z-index: 110;
}

.top-nav .nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 0;
}

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

.top-nav ul li a {
    display: block;
    padding: 12px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8em;
    font-weight: 600;
    color: #4d4d4d;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.top-nav ul li a:hover,
.top-nav ul li a.active {
    color: #8c6d4d;
}

/* Dropdown indicator */
.top-nav > .nav-inner > ul > li.has-dropdown > a::after {
    content: ' ▾';
    font-size: 0.75em;
    opacity: 0.6;
}

/* Dropdown menus */
.top-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(199, 190, 169, 0.97);
    min-width: 240px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 120;
    padding: 5px 0;
    border-radius: 0 0 3px 3px;
}

.top-nav .dropdown li {
    margin: 0;
}

.top-nav .dropdown a {
    padding: 9px 18px;
    font-size: 0.75em;
}

.top-nav > .nav-inner > ul > li:hover > .dropdown {
    display: block;
}

/* === HEADER BRANDING === */
.header-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.site-title {
    font-family: 'Hammersmith One', sans-serif;
    font-size: 1.8em;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.site-subtitle {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.2em;
    color: #4d4d4d;
}

.site-subtitle a {
    color: #4d4d4d;
    text-decoration: none;
}

.site-subtitle a:hover {
    color: #8c6d4d;
}

/* ===== MAIN LAYOUT ===== */
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 0;
    background: rgba(255, 255, 255, 0.88);
    min-height: 500px;
    position: relative;
}

.main-content {
    padding: 30px 35px;
}

.main-content h1 {
    color: #8c6d4d;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-transform: uppercase;
}

/* ===== SIDEBAR ===== */
.sidebar {
    background: rgba(242, 242, 242, 0.95);
    padding: 25px 20px;
    border-left: 1px solid #e0d8cc;
}

.sidebar-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d4cdc0;
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.sidebar h2 .accent {
    color: #8c6d4d;
}

.sidebar h3 {
    font-family: 'Hammersmith One', sans-serif;
    color: #8c6d4d;
    font-size: 1em;
    margin-bottom: 8px;
}

.sidebar-separator {
    height: 2px;
    background: #8c6d4d;
    margin: 8px 0 15px;
    width: 60px;
}

.sidebar table {
    margin: 5px 0;
    font-size: 0.9em;
}

.sidebar table td {
    padding: 3px 6px;
    vertical-align: top;
}

.sidebar table td:first-child {
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    padding-right: 10px;
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav li a {
    display: block;
    padding: 6px 0;
    color: #595959;
    text-decoration: none;
    font-size: 0.9em;
    border-bottom: 1px solid #e8e2d8;
    transition: color 0.2s;
}

.sidebar-nav li a::before {
    content: '» ';
    color: #8c6d4d;
}

.sidebar-nav li a:hover,
.sidebar-nav li.active a {
    color: #8c6d4d;
}

.sidebar-leistungen {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-leistungen li {
    margin: 0;
}

.sidebar-leistungen li a {
    display: block;
    padding: 8px 0;
    color: #595959;
    text-decoration: none;
    font-size: 0.9em;
    border-bottom: 1px solid #e8e2d8;
    transition: color 0.2s;
}

.sidebar-leistungen li a::before {
    content: '» ';
    color: #8c6d4d;
}

.sidebar-leistungen li a:hover {
    color: #8c6d4d;
}

/* ===== HOME PAGE SPECIFIC ===== */
.home-intro {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.home-intro .seal-image {
    flex-shrink: 0;
    width: 120px;
}

.home-intro .seal-image img {
    width: 100%;
    height: auto;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.home-grid h2 {
    color: #8c6d4d;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.home-grid a {
    color: #595959;
    text-decoration: none;
}

.home-grid a:hover {
    color: #8c6d4d;
    text-decoration: underline;
}

.taetigkeitsfelder-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.taetigkeitsfelder-list li {
    margin-bottom: 4px;
}

.taetigkeitsfelder-list li a::before {
    content: '» ';
    color: #8c6d4d;
}

.separator {
    height: 1px;
    background: #999;
    margin: 20px 0;
}

/* ===== FOOTER ===== */
.site-footer {
    background: rgba(199, 190, 169, 0.6);
    padding: 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85em;
    color: #4d4d4d;
    margin-top: 0;
}

.site-footer a {
    color: #4d4d4d;
    text-decoration: none;
    margin: 0 5px;
}

.site-footer a:hover {
    color: #8c6d4d;
}

.footer-sep {
    margin: 0 5px;
    font-size: 1.1em;
}

.footer-copyright {
    margin-top: 5px;
    font-size: 0.9em;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 600px;
}

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    margin-top: 12px;
    font-size: 0.9em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #c7bea9;
    border-radius: 3px;
    font-family: 'PT Sans', sans-serif;
    font-size: 0.95em;
    background: #faf8f5;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #8c6d4d;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    margin-top: 15px;
    padding: 10px 30px;
    background: #8c6d4d;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: #6e5539;
}

/* Honeypot */
.contact-form .hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Math captcha */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.captcha-row label {
    margin: 0;
    white-space: nowrap;
}

.captcha-row input {
    width: 80px !important;
}

/* ===== OSM MAP ===== */
.osm-map {
    width: 100%;
    margin: 20px 0;
}

.osm-map iframe {
    width: 100%;
    height: 400px;
    border: 1px solid #c7bea9;
    border-radius: 3px;
}

.osm-map .map-link {
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(50, 45, 38, 0.97);
    color: #e8e0d4;
    padding: 18px 25px;
    z-index: 9999;
    font-size: 0.9em;
    display: none;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.3);
}

.cookie-banner.visible {
    display: block;
}

.cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-inner p {
    flex: 1;
    min-width: 250px;
    margin: 0;
    line-height: 1.5;
}

.cookie-inner a {
    color: #c7bea9;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.cookie-buttons button:active {
    transform: scale(0.97);
}

.btn-accept {
    background: #8c6d4d;
    color: #fff;
}

.btn-accept:hover {
    background: #6e5539;
}

.btn-reject {
    background: #666;
    color: #fff;
}

.btn-reject:hover {
    background: #555;
}

/* ===== BURGER MENU ===== */
.burger-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6em;
    cursor: pointer;
    color: #4d4d4d;
    padding: 10px 15px;
    font-family: 'Montserrat', sans-serif;
}

.burger-toggle span {
    font-size: 0.55em;
    margin-left: 8px;
    vertical-align: middle;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-left: none;
        border-top: 1px solid #e0d8cc;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .header-branding {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .burger-toggle {
        display: block;
    }

    .top-nav .nav-inner > ul {
        display: none;
        flex-direction: column;
    }

    .top-nav .nav-inner > ul.nav-open {
        display: flex;
    }

    .top-nav .dropdown {
        position: static;
        box-shadow: none;
        background: rgba(180, 170, 150, 0.5);
        display: none;
        padding-left: 15px;
    }

    .top-nav > .nav-inner > ul > li.has-dropdown.dropdown-open > .dropdown {
        display: block;
    }

    .top-nav > .nav-inner > ul > li:hover > .dropdown {
        display: none;
    }

    .top-nav > .nav-inner > ul > li.has-dropdown.dropdown-open:hover > .dropdown {
        display: block;
    }

    .main-content {
        padding: 20px 15px;
    }

    .home-intro {
        flex-direction: column;
        align-items: center;
    }

    .home-intro .seal-image {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.1em;
    }

    .site-subtitle {
        font-size: 0.95em;
    }

    .top-nav ul li a {
        padding: 10px 12px;
        font-size: 0.75em;
    }
}
