/*
Theme Name: Notarin Froeb
Theme URI: https://www2.notarin-froeb.de
Description: Custom Theme für Notarin Lena Froeb – Bad Langensalza
Version: 1.0
Author: Web4Business Migration
Text Domain: notarin-froeb
*/

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

/* === CSS Variables === */
:root {
    --primary: #0094cb;
    --primary-dark: #007aad;
    --primary-light: #e6f5fb;
    --accent: #005f82;
    --text: #333333;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light: #f7f7f7;
    --bg-footer: #2c3e50;
    --border: #e0e0e0;
    --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-white);
}

h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

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

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

p { margin-bottom: 1rem; }
.content-text ul, .content-text ol, .content-wrapper ul, .content-wrapper ol { margin-bottom: 1rem; padding-left: 1.5rem; }

/* === Site Header === */
.site-header {
    background: var(--bg-white);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: white;
    overflow: visible;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0;
}
.logo-link img {
    height: 70px;
    width: auto;
}

/* === Main Navigation === */
.main-nav {
    display: flex;
    align-items: center;
    position: relative;
}

.main-nav > ul,
.main-nav .nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
}

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

.main-nav ul > li > a {
    display: block;
    padding: 0.6rem 0.9rem;
    color: var(--primary);
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
}

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

/* Dropdown Menus */
.main-nav ul li .sub-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 9998;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background-color: var(--primary);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    display: block;
}
.main-nav ul li .sub-menu li {
    display: block;
    width: 100%;
}
.main-nav ul li:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
}
.main-nav ul .sub-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.main-nav ul .sub-menu li a:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

/* Burger Menu */
.burger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}
.burger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.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 === */
.hero-banner {
    position: relative;
    width: 100%;
    max-height: 550px;
    overflow: hidden;
}
.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 550px;
}
.hero-banner img.hero-portrait {
    object-position: center 20%;
}

/* === Content Area === */
.content-wrapper {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.content-inner {
    display: flex;
    gap: 2.5rem;
}
.content-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.content-text p {
    text-align: justify;
    font-weight: 300;
    font-size: 1rem;
}
.content-text h1 {
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}
/* Content images float right like original */
.content-text img {
    max-width: 45%;
    float: right;
    margin: 0 0 1rem 1.5rem;
    border-radius: 4px;
}
.content-text img.full-width,
.content-text img[width] {
    float: none;
    max-width: 100%;
    margin: 1rem 0;
}
.content-text .boris-images img {
    max-width: 100%;
    float: none;
    margin: 1rem 0;
}
/* Clear floats before new sections */
.content-text h2, .content-text h3 {
    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;
    border: 1px solid var(--border);
    vertical-align: top;
}
.content-text table th {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* === Sidebar === */
.sidebar-right {
    width: 280px;
    flex-shrink: 0;
}
.sidebar-right h3 {
    font-size: 1.1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.contact-block {
    margin-bottom: 1rem;
}
.contact-block span {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}
.contact-block p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.3rem;
}
.sidebar-right .btn-anfahrt {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: background 0.3s ease;
}
.sidebar-right .btn-anfahrt:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* === Front Page Sections === */
.front-intro {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.front-intro-text {
    flex: 2.5;
    font-size: 1.05rem;
}
.front-intro-badge {
    flex: 1;
    text-align: center;
}
.front-intro-badge img {
    max-width: 200px;
}
.front-intro-badge h1 {
    font-size: 1.6rem;
    text-align: center;
}
.front-intro-badge h1 span {
    font-weight: 300;
    display: block;
    font-size: 1.3rem;
}

.section-divider {
    border: none;
    border-top: 2px solid var(--primary);
    margin: 2rem auto;
    max-width: var(--max-width);
}

/* Service Grid */
.service-grid {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.service-grid h3.section-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 400;
}
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: var(--bg-light);
    padding: 10px 20px 25px;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 0.8rem;
}
.service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.service-card a.more-link {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}
.service-card a.more-link:hover {
    color: var(--primary-dark);
}

/* CTA Section */
.cta-section {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.cta-section h3 {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 2rem;
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-primary:hover {
    background: transparent;
    color: var(--primary);
}

/* Termin-Banner */
.termin-banner {
    background: var(--bg-light);
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin: 2rem 0;
}
.termin-banner h2 {
    margin-bottom: 1rem;
}
.termin-banner p {
    max-width: 600px;
    margin: 0 auto 0.5rem;
    text-align: center;
}
.termin-banner .btn-outline {
    display: inline-block;
    border: 2px solid var(--text);
    color: var(--text);
    padding: 0.7rem 2rem;
    border-radius: 5px;
    font-size: 0.95rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}
.termin-banner .btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* === Team Grid === */
.mitarbeiter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.ma-card {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    transition: transform 0.3s ease;
}
.ma-card:hover { transform: translateY(-3px); }
.ma-card img.ma-foto {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}
.ma-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--primary);
}
.ma-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

/* === OSM Map === */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 6px;
    overflow: hidden;
    margin: 1.5rem 0;
    border: 2px solid var(--border);
}
#osm-map { width: 100%; height: 100%; }

/* === Footer === */
.site-footer {
    background: var(--bg-footer);
    color: rgba(255,255,255,0.85);
    padding: 2rem 0 0;
    margin-top: 2rem;
}
.footer-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.footer-logo {
    flex-shrink: 0;
}
.footer-logo img {
    max-height: 80px;
    width: auto;
}
.footer-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.footer-info {
    flex: 1;
}

.footer-info h2 {
    margin: 0 0 1rem;
    height: 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.footer-info h2 span {
    font-weight: 300;
    display: block;
}
.footer-signet {
    flex-shrink: 0;
}
.footer-signet img {
    max-width: 80px;
}
.footer-bottom {
    text-align: center;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.85rem;
}
.footer-bottom a {
    color: rgba(255,255,255,0.7);
}
.footer-bottom a:hover {
    color: #fff;
}

/* === Cookie Banner === */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44,62,80,0.97);
    color: #fff;
    z-index: 9999;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-content h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.cookie-content p {
    font-size: 0.9rem;
    flex: 1;
    margin: 0;
    min-width: 250px;
}
#accept-cookies {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s ease;
    white-space: nowrap;
}
#accept-cookies:hover {
    background: var(--primary-dark);
}

/* === Contact Form === */
.contact-form {
    max-width: 700px;
    margin: 1.5rem 0;
}
.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.contact-form .form-group {
    flex: 1;
    margin-bottom: 1rem;
}
.contact-form .form-group.full-width {
    width: 100%;
}
.contact-form label {
    display: block;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,148,203,0.1);
}
.contact-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 300;
    font-size: 0.9rem;
    cursor: pointer;
}
.contact-form .checkbox-label input[type="checkbox"] {
    margin-top: 0.3rem;
    width: auto;
}
.form-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}
.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

/* === Responsive === */
@media (max-width: 900px) {
    .content-inner { flex-direction: column; }
    .sidebar-right { width: 100%; }
    .service-cards { grid-template-columns: repeat(2, 1fr); }
    .mitarbeiter-grid { grid-template-columns: repeat(2, 1fr); }
    .front-intro { flex-direction: column; }
    .footer-container { flex-direction: column; text-align: center; }
    .content-text img { max-width: 50%; }
    .contact-form .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 768px) {
    .burger-menu { display: block; }
    .main-nav .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-top: 2px solid var(--primary);
        z-index: 999;
    }
    .main-nav .nav-links.active { display: flex; }
    .main-nav ul > li > a { padding: 0.8rem 1.5rem; }
    .main-nav ul li .sub-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        box-shadow: none;
        background: var(--primary-light);
    }
    .main-nav ul .sub-menu li a {
        color: var(--primary);
        padding-left: 2.5rem;
        border-bottom-color: var(--border);
    }
    .service-cards { grid-template-columns: 1fr; }
    .mitarbeiter-grid { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: wrap; }
    .content-text img { max-width: 100%; float: none; margin: 1rem 0; }
}
