/*
Theme Name: Notarin Schumacher-Hey
Theme URI: https://schumacher-hey.de
Author: ROX Media
Author URI: https://rox.net
Description: Custom WordPress-Theme für Notarin Ursula Schumacher-Hey, Düsseldorf
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: schumacher-hey-de
Tags: custom-menu, custom-logo, sidebar, responsive
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --primary-text: #133566;
    --heading-text: #133566;
    --accent-gold: #89744D;
    --accent-gold-hover: #a38541;
    --footer-bg: #4D4D4D;
    --footer-text: #F1EAE6;
    --bg-color: #EFEFEF;
    --content-bg: #EDEDED;
    --border-color: #d1d1d1;
    --font-heading: 'Open Sans', sans-serif;
    --font-body: 'Open Sans', 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);
}

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

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

p { margin-bottom: 1.2rem; }

ul, ol { margin-left: 1.5rem; margin-bottom: 1.2rem; }
li { margin-bottom: 0.3rem; }

/* ========================================
   Header / Navigation
   ======================================== */
.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;
}

.logo-wrapper {
    text-align: center;
    padding: 1rem 0 0.5rem;
}
.logo-wrapper img {
    max-height: 60px;
    width: auto;
}

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

.main-nav > ul,
.main-nav .nav-links {
    list-style: none;
    display: flex;
    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.8rem 1rem;
    color: var(--primary-text);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    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(--accent-gold);
    background-color: rgba(0,0,0,0.05);
}

/* Dropdown */
.main-nav ul li .sub-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 200;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background-color: #333;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    display: block;
    flex-direction: column;
}
.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.7rem 1.2rem;
    color: #fff;
    font-size: 0.88rem;
    text-transform: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.main-nav ul .sub-menu li a:hover {
    background-color: rgba(0,0,0,0.2);
    color: var(--accent-gold);
}

/* Burger Menu */
.burger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}
.burger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-text);
    margin: 5px 0;
    transition: 0.3s;
}

/* ========================================
   Hero Banner (100vw)
   ======================================== */
.hero-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
}
.hero-banner img {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: center 30%;
}

/* ========================================
   Content Layout
   ======================================== */
.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.08);
    min-height: 400px;
}

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

.content-text {
    flex: 1;
    min-width: 0;
}
.content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar-right {
    width: 280px;
    flex-shrink: 0;
}
.sidebar-right h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--accent-gold);
    color: var(--heading-text);
    text-transform: uppercase;
}
.sidebar-right .contact-block {
    margin-bottom: 1rem;
    font-size: 0.92rem;
}
.sidebar-right .contact-block span {
    color: var(--accent-gold);
    font-weight: 600;
}
.sidebar-right .btn-sidebar {
    display: inline-block;
    background-color: var(--accent-gold);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
.sidebar-right .btn-sidebar:hover {
    background-color: #2f3d4d;
    color: #fff;
}
.sidebar-right .map-thumbnail {
    width: 100%;
    height: 150px;
    border-radius: 4px;
    margin-top: 0.5rem;
    background-color: #ddd;
    overflow: hidden;
}
.sidebar-right .map-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Mitarbeiter Grid (schöne Porträts)
   ======================================== */
.mitarbeiter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}
.ma-card {
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ma-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.ma-card .ma-foto {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.ma-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--heading-text);
}
.ma-card p {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 0;
}

/* Mitarbeiter ohne Foto (Text-Liste) */
.ma-text-list {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.ma-text-list h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 0.5rem;
}
.ma-text-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ma-text-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}
.ma-text-list li:last-child { border-bottom: none; }
.ma-text-list li strong { color: var(--heading-text); }

/* Team-Gruppenfoto */
.team-group-photo {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.team-group-photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Tätigkeitsfelder Grid (Startseite)
   ======================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.service-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--primary-text);
    border-bottom: 3px solid transparent;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-bottom-color: var(--accent-gold);
    color: var(--accent-gold);
}
.service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.service-card p {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0;
}

/* ========================================
   Aktuelles / RSS-Feed Section
   ======================================== */
.aktuelles-section {
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--accent-gold);
}
.aktuelles-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}
.aktuelles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.aktuelles-item {
    background: #fff;
    padding: 1.2rem 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--accent-gold);
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}
.aktuelles-item:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
.aktuelles-item h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--heading-text);
}
.aktuelles-item h4 a {
    color: var(--heading-text);
}
.aktuelles-item h4 a:hover {
    color: var(--accent-gold);
}
.aktuelles-item .date {
    font-size: 0.8rem;
    color: #999;
    display: block;
    margin-bottom: 0.4rem;
}
.aktuelles-item .excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* ========================================
   OSM Map (Anfahrt)
   ======================================== */
#osm-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1;
}

/* ========================================
   Columns Layout (2-Spalten für Vita etc.)
   ======================================== */
.columns-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.columns-wrapper .column {
    flex: 1;
    min-width: 0;
}
.columns-wrapper .column img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-gold);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    color: #fff;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 0 0;
    margin-top: 2rem;
}
.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: 220px;
}
.footer-column h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-column p, .footer-column li {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #ccc;
}
.footer-column a { color: var(--accent-gold); }
.footer-column a:hover { text-decoration: underline; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }

.footer-bottom {
    max-width: var(--container-width);
    margin: 2rem auto 0 auto;
    padding: 1.2rem 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.82rem;
    color: #999;
}
.footer-nav {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.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: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}
.cookie-content {
    max-width: 700px;
    margin: 0 auto;
}
.cookie-content h3 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}
.cookie-content p {
    font-size: 0.88rem;
    color: #333;
    margin-bottom: 1rem;
}

/* ========================================
   WordPress Alignment Helpers
   ======================================== */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1.2rem auto; }
.wp-caption { max-width: 100%; margin-bottom: 1.2rem; }
.wp-caption-text { font-size: 0.85rem; color: #666; margin-top: 0.3rem; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* Downloads */
.downloads-list { list-style: none; padding: 0; }
.downloads-list li { padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.downloads-list li a::before { content: '📄 '; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
    .burger-menu { display: block; }

    .main-nav > ul {
        display: flex;
        flex-direction: column;
        background-color: var(--content-bg);
        position: absolute;
        top: 50px;
        right: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        z-index: 300;
    }
    .main-nav > ul.active {
        max-height: 1200px;
        overflow-y: auto;
    }
    .main-nav > ul > li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    .main-nav ul > li > a { padding: 0.8rem 1rem; }

    .main-nav ul li .sub-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        display: none;
        background-color: #f5f5f5;
        box-shadow: none;
    }
    .main-nav > ul.active li .sub-menu { display: block; }
    .main-nav ul .sub-menu li a { color: var(--primary-text); border-bottom: 1px solid #eee; }

    .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); }

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

    .mitarbeiter-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    .columns-wrapper { flex-direction: column; }

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

    .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 550px) {
    .mitarbeiter-grid { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .ma-card .ma-foto { width: 120px; height: 120px; }
    #osm-map { height: 280px; }
}
