/*
Theme Name: Notar Richter Luckau
Theme URI: https://notar-richter-luckau.de
Author: AI Theme Developer
Author URI: https://example.com
Description: Ein WordPress-Theme f&uuml;r Notar Dr. J&ouml;rg Richter in Luckau.
Version: 1.0
Text Domain: notar-richter
*/

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

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Muli', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #41556b;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2c3a49;
}

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

/* Header & Navigation */
.site-header {
    background-color: #41556b;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    color: #fff;
    padding: 15px 20px;
    display: block;
    font-weight: 600;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Dropdown */
.nav-links .dropdown,
.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #41556b;
    min-width: 200px;
    list-style: none;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-links .has-dropdown:hover > .dropdown,
.nav-links .has-dropdown:hover > .sub-menu,
.nav-links .menu-item-has-children:hover > .dropdown,
.nav-links .menu-item-has-children:hover > .sub-menu {
    display: block;
}

/* Hero Slider */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #41556b;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

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

.hero-overlay-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 300px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
}

.slider-dot.active {
    background-color: #fff;
}

/* Main Content Area */
.main-content {
    background-color: #fff;
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.entry-header h1 {
    color: #41556b;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
}

.entry-content {
    margin-bottom: 40px;
}

/* Front Page Specific Layout */
.front-intro {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.front-intro-img {
    flex: 0 0 14%;
}

.front-intro-text {
    flex: 1;
}

.separator {
    height: 1px;
    background-color: #eee;
    margin: 40px 0;
}

.front-columns {
    display: flex;
    gap: 40px;
}

.front-column {
    flex: 1;
}

.front-column h2 {
    color: #41556b;
    margin-bottom: 20px;
}

.front-column ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Forms */
.notar-contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.form-group button {
    background-color: #41556b;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.form-group button:hover {
    background-color: #2c3a49;
}

/* Footer */
.site-footer {
    background-color: #41556b;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}

.site-footer a {
    color: #fff;
    margin: 0 10px;
}

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

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    color: #333;
    padding: 20px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
}

#cookie-banner button {
    background-color: #41556b;
    color: #fff;
    border: none;
    padding: 8px 20px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #41556b;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links .dropdown,
    .nav-links .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 20px;
    }

    .nav-links .has-dropdown > a::after,
    .nav-links .menu-item-has-children > a::after {
        content: ' ▼';
        float: right;
    }
    
    .nav-links .has-dropdown.open > .dropdown,
    .nav-links .has-dropdown.open > .sub-menu,
    .nav-links .menu-item-has-children.open > .dropdown,
    .nav-links .menu-item-has-children.open > .sub-menu {
        display: block;
    }
    
    .front-intro,
    .front-columns {
        flex-direction: column;
    }
    
    .front-intro-img {
        max-width: 200px;
        margin: 0 auto 20px;
    }
}

@media (max-width: 480px) {
    .hero-slider-container {
        height: 250px;
    }
    
    .main-content {
        padding: 20px;
        margin: 20px auto;
    }
}

/* === FRONT PAGE ENHANCEMENTS === */
.front-intro h1 + .front-intro,
.main-content > .container > h1 {
    color: #41556b;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.4;
}

.front-column-narrow { flex: 0 0 20%; }
.front-column-wide { flex: 1; }

.taetigkeiten-list {
    list-style: none;
    padding: 0;
}

.taetigkeiten-list li {
    margin-bottom: 6px;
}

.taetigkeiten-list li a {
    color: #41556b;
    font-weight: 400;
    transition: color 0.2s;
}

.taetigkeiten-list li a:hover {
    color: #2c3a49;
    text-decoration: underline;
}

/* RSS Feed */
.feed-list {
    list-style: none;
    padding: 0;
}

.feed-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.feed-list li:last-child { border-bottom: none; }

.feed-list a {
    font-weight: 600;
    color: #41556b;
}

.feed-date {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

.feed-desc {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

/* Sidebar Info Section */
.sidebar-info {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.sidebar-section {
    flex: 1;
}

.sidebar-section h3 {
    color: #41556b;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
}

.contact-table,
.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.contact-table td,
.hours-table td {
    padding: 5px 10px 5px 0;
    vertical-align: top;
    font-size: 14px;
}

.contact-table td:first-child,
.hours-table td:first-child {
    color: #41556b;
    font-weight: 600;
    white-space: nowrap;
    width: 90px;
}

.hours-note {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background-color: #41556b;
    color: #fff;
}

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

.btn-secondary {
    background: transparent;
    color: #41556b;
    border: 1px solid #41556b;
}

.btn-secondary:hover {
    background: #41556b;
    color: #fff;
}

/* Enhanced Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-success {
    color: #2e7d32;
    font-weight: 700;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 4px;
    margin-bottom: 20px;
}

.form-error {
    color: #c62828;
    font-weight: 700;
    padding: 15px;
    background: #ffebee;
    border-radius: 4px;
    margin-bottom: 20px;
}

.form-hint {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

/* Cookie Banner Enhanced */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(65, 85, 107, 0.97);
    color: #fff;
    padding: 20px 30px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

#cookie-banner .cookie-text { flex: 1; }
#cookie-banner .cookie-text a { color: #c8d0e0; text-decoration: underline; }
#cookie-banner .cookie-buttons { display: flex; gap: 10px; }

/* Footer Enhanced */
.site-footer { background: #41556b; color: #fff; text-align: center; padding: 30px 20px; }
.site-footer a { color: #c8d0e0; }
.site-footer a:hover { color: #fff; }
.footer-copy { margin-top: 10px; font-size: 13px; color: #8899aa; }

/* Burger Menu Styling */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .sidebar-info { flex-direction: column; }
    .front-columns { flex-direction: column; }
    .front-column-narrow { flex: none; }
    .form-row { grid-template-columns: 1fr; }
    #cookie-banner { flex-direction: column; text-align: center; }
}
