/*
Theme Name: Notar Brandt
Theme URI: https://www2.notar-brandt.de
Author: Migration
Description: Custom theme for Notar Dr. Andreas Brandt, Hückelhoven
Version: 1.0
*/

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

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    --primary:       #42597C;
    --primary-dark:  #2e3f59;
    --primary-light: #5a7299;
    --accent:        #827465;
    --accent-light:  #a09182;
    --nav-link:      #B3CAE3;
    --nav-bg:        #42597C;
    --footer-bg:     #42597C;
    --border:        #DCE1EA;
    --body-bg:       #f5f7fa;
    --content-bg:    #ffffff;
    --text:          #333333;
    --text-light:    #666666;
    --sidebar-bg:    #f0f3f8;
    --font-heading:  'Cinzel', serif;
    --font-body:     'Mulish', sans-serif;
    --max-width:     1200px;
    --header-height: 90px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--body-bg);
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}
h1 { font-size: 1.9rem; font-weight: 700; }
h2 { font-size: 1.4rem; font-weight: 600; border-bottom: 2px solid var(--border); padding-bottom: 0.4rem; margin-top: 1.5rem; }
h3 { font-size: 1.15rem; font-weight: 600; color: var(--accent); }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: 0.3rem; }

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.site-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-text {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1.3;
}

.logo-text strong {
    display: block;
    font-size: 1.15rem;
}

/* Main Navigation */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }

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

.main-nav > ul > li > a {
    display: block;
    color: var(--nav-link);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0 1rem;
    height: var(--header-height);
    line-height: var(--header-height);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-menu-ancestor > a {
    color: #ffffff;
    background: var(--primary-dark);
}

/* Dropdown */
.main-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-dark);
    min-width: 220px;
    border-top: 3px solid var(--accent);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    z-index: 999;
}

.main-nav ul ul li a {
    display: block;
    color: var(--nav-link);
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s, color 0.2s;
}

.main-nav ul ul li a:hover { background: var(--accent); color: #fff; }
.main-nav ul ul li:last-child a { border-bottom: none; }
.main-nav > ul > li:hover > ul { display: block; }

/* Burger Menu */
.burger { display: none; flex-direction: column; cursor: pointer; gap: 5px; background: none; border: none; padding: 8px; }
.burger span { display: block; width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Hero / Banner
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-slider { position: relative; width: 100%; height: 100%; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(42,57,91,0.55) 0%, rgba(42,57,91,0.2) 60%, rgba(0,0,0,0.4) 100%);
    display: flex;
    align-items: flex-end;
    padding: 3rem 2rem;
}

.hero-text {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.hero-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    border: none;
    margin: 0;
    padding: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 0.03em;
}

.hero-text p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0.5rem 0 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-dot.active { background: #fff; }

/* ============================================
   Page Layout (Content + Sidebar)
   ============================================ */
.content-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.content-inner {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}

.content-text { background: var(--content-bg); padding: 2rem; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.content-text img {
    max-width: 45%;
    float: right;
    margin: 0 0 1rem 1.5rem;
    border-radius: 4px;
}

.content-text img.full-width { float: none; max-width: 100%; margin: 1rem 0; }

.content-text h2 { clear: both; }
.content-text::after { content: ''; display: table; clear: both; }

.content-text table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.content-text table td, .content-text table th { padding: 0.5rem 0.75rem; border: 1px solid var(--border); vertical-align: top; }
.content-text table th { background: var(--sidebar-bg); color: var(--primary); font-weight: 600; }

/* ============================================
   Sidebar
   ============================================ */
.sidebar-right {
    background: var(--sidebar-bg);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.sidebar-section { padding: 1.25rem 1.5rem; }
.sidebar-section + .sidebar-section { border-top: 1px solid var(--border); }

.sidebar-section h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.sidebar-contact p { font-size: 0.88rem; margin-bottom: 0.4rem; color: var(--text-light); }
.sidebar-contact strong { color: var(--text); }
.sidebar-contact a { color: var(--primary); font-weight: 500; }

/* Sidebar Nav */
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar-nav li { border-bottom: 1px solid var(--border); }
.sidebar-nav li:last-child { border-bottom: none; }
.sidebar-nav a {
    display: block;
    padding: 0.55rem 0;
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
}
.sidebar-nav a:hover { color: var(--accent); padding-left: 6px; }
.sidebar-nav li.current a { color: var(--accent); font-weight: 700; }

/* ============================================
   Contact Form
   ============================================ */
.contact-form { margin-top: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 0.35rem; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(66,89,124,0.12);
}

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

.checkbox-label { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; cursor: pointer; }
.checkbox-label input { margin-top: 3px; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.form-success { background: #d4edda; color: #155724; padding: 1rem; border-radius: 4px; margin-bottom: 1rem; }
.form-error   { background: #f8d7da; color: #721c24; padding: 1rem; border-radius: 4px; margin-bottom: 1rem; }

/* ============================================
   OSM Map
   ============================================ */
.map-container { margin: 1.5rem 0; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
#osm-map { height: 420px; width: 100%; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--footer-bg);
    color: var(--border);
    margin-top: 3rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.footer-col p, .footer-col a { color: var(--border); font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col li a { color: var(--border); transition: color 0.2s; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ============================================
   Cookie Banner
   ============================================ */
#cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(42,57,91,0.97);
    color: #fff;
    padding: 1rem 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

#cookie-banner p { margin: 0; font-size: 0.88rem; color: rgba(255,255,255,0.9); }
#cookie-banner a { color: var(--nav-link); text-decoration: underline; }

.cookie-buttons { display: flex; gap: 0.75rem; flex-shrink: 0; }

.btn-cookie-accept {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
}

.btn-cookie-decline {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    cursor: pointer;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .content-inner { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .sidebar-right { position: static; }
    .hero { height: 320px; }
    .hero-text h2 { font-size: 1.8rem; }
}

@media (max-width: 700px) {
    .main-nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; background: var(--primary-dark); padding: 1rem 0; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
    .main-nav.open { display: block; }
    .main-nav > ul { flex-direction: column; }
    .main-nav > ul > li > a { height: auto; line-height: 1.5; padding: 0.7rem 1.5rem; }
    .main-nav ul ul { position: static; display: none; background: rgba(0,0,0,0.2); box-shadow: none; border: none; }
    .main-nav > ul > li.open > ul { display: block; }
    .burger { display: flex; }
    .footer-inner { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero { height: 240px; }
    .hero-text h2 { font-size: 1.4rem; }
    .content-text img { max-width: 100%; float: none; margin: 1rem 0; }
}
