/*
Theme Name: Fischer Notar
Theme URI: https://www2.fischer-notar.de
Description: Custom Theme fuer Notar Dirk Fischer, Riedlingen
Version: 1.0
Author: Web4Business
*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary:       #033a56;
    --primary-dark:  #02253a;
    --primary-light: #0a4f6e;
    --accent:        #627442;
    --accent-light:  #7a9255;
    --text:          #333;
    --text-light:    #666;
    --bg:            #fff;
    --bg-light:      #f8f9fa;
    --bg-sidebar:    #f1f2ec;
    --bg-nav:        #f1f2ec;
    --border:        #d8dcd0;
    --border-light:  #e8eedd;
    --radius:        4px;
    --shadow:        0 2px 8px rgba(0,0,0,0.1);
    --max-width:     1200px;
    --sidebar-width: 280px;
    --header-height: 90px;
    --banner-height: 240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; font-size: 15px; line-height: 1.7; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }
h1,h2,h3,h4,h5 { color: var(--primary); margin-bottom: 0.6em; line-height: 1.3; font-weight: 600; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.3rem; border-bottom: 2px solid var(--accent); padding-bottom: 0.3em; margin-top: 1.4em; }
h3 { font-size: 1.05rem; color: var(--accent); }
p  { margin-bottom: 1em; }
ul, ol { margin: 0 0 1em 1.6em; }
li { margin-bottom: 0.3em; }
strong { color: var(--primary-dark); }
table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
th, td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
th { background: var(--primary); color: #fff; font-weight: 600; }
tr:nth-child(even) { background: var(--bg-light); }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: #fff;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--primary);
}
.header-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; height: var(--header-height); gap: 24px;
}
.site-logo { flex-shrink: 0; }
.site-logo img {
    height: 60px; width: auto; display: block;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.35));
}
.site-title-group { flex: 1; }
.site-title-group .site-name {
    font-size: 1.25rem; font-weight: 700; color: var(--primary);
    display: block; line-height: 1.2;
}
.site-title-group .site-name a { color: inherit; }
.site-title-group .site-name a:hover { text-decoration: none; color: var(--accent); }
.site-title-group .site-sub { font-size: 0.83rem; color: var(--text-light); }
.header-contact {
    font-size: 0.84rem; color: var(--primary); text-align: right; line-height: 1.6;
}
.header-contact a { color: var(--primary); font-weight: 700; }
.header-contact a:hover { color: var(--accent); }
.burger-btn {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; flex-direction: column; gap: 5px; flex-shrink: 0;
}
.burger-btn span { display: block; width: 26px; height: 3px; background: var(--primary); border-radius: 2px; transition: all .3s; }

/* ── NAVIGATION ─────────────────────────────────────────── */
.site-nav { background: var(--bg-nav); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.nav-menu { list-style: none; display: flex; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block; padding: 13px 16px;
    color: var(--primary); font-weight: 600; font-size: 0.88rem; letter-spacing: .02em;
    border-bottom: 3px solid transparent; transition: background .2s, color .2s;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a,
.nav-menu > li.current-menu-ancestor > a {
    background: #fff; color: var(--accent);
    border-bottom-color: var(--accent); text-decoration: none;
}
/* Dropdown */
.nav-menu .sub-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; min-width: 210px;
    box-shadow: var(--shadow); border-top: 3px solid var(--accent);
    list-style: none; z-index: 999; padding: 0;
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu { display: block; }
.nav-menu .sub-menu li a {
    display: block; padding: 9px 16px;
    color: var(--primary); font-size: 0.86rem;
    border-bottom: 1px solid var(--border-light); transition: background .2s;
}
.nav-menu .sub-menu li a:hover { background: var(--bg-light); color: var(--accent); text-decoration: none; }
.nav-menu > li.menu-item-has-children > a::after { content: ' \25BE'; font-size: .7em; }

/* ── BANNER ─────────────────────────────────────────────── */
.site-banner {
    width: 100%; height: var(--banner-height);
    background:
        linear-gradient(to right, rgba(3,58,86,0.80) 0%, rgba(3,58,86,0.50) 50%, rgba(98,116,66,0.60) 100%),
        url('assets/banner.jpg') center/cover no-repeat;
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.banner-text { position: relative; text-align: center; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.banner-text h2 { font-size: 2rem; color: #fff; border: none; margin: 0; padding: 0; letter-spacing: .01em; }
.banner-text p  { font-size: .97rem; opacity: .92; margin: .35em 0 0; letter-spacing: .02em; }

/* ── CONTENT LAYOUT ─────────────────────────────────────── */
.content-wrap { max-width: var(--max-width); margin: 0 auto; padding: 32px 24px; }
.content-flex { display: flex; gap: 40px; align-items: flex-start; }
.content-main { flex: 1 1 auto; min-width: 0; }
.content-sidebar { flex: 0 0 var(--sidebar-width); width: var(--sidebar-width); }

/* ── SIDEBAR ────────────────────────────────────────────── */
.sidebar-widget {
    background: var(--bg-sidebar);
    border-top: 4px solid var(--primary);
    padding: 18px; margin-bottom: 22px;
    border-radius: 0 0 var(--radius) var(--radius);
}
.sidebar-widget h2 {
    font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--primary); border-bottom: 1px solid var(--border);
    padding-bottom: 7px; margin-bottom: 12px; margin-top: 0;
}
.sidebar-widget h3 { font-size: .88rem; color: var(--primary); margin-top: 0; }
.sidebar-widget p  { font-size: .86rem; margin-bottom: .6em; }
.sidebar-widget a  { color: var(--primary); font-weight: 600; }
.sidebar-widget a:hover { color: var(--accent); }
.sidebar-oez table { width: 100%; font-size: .83rem; margin: 0; }
.sidebar-oez td    { padding: 4px 6px; border: none; vertical-align: top; }
.sidebar-oez td:first-child { font-weight: 600; color: var(--primary); width: 40%; }
.sidebar-leistungen ul { list-style: none; margin: 0; padding: 0; }
.sidebar-leistungen li { border-bottom: 1px solid var(--border-light); }
.sidebar-leistungen li a { display: block; padding: 7px 0; font-size: .86rem; color: var(--primary); font-weight: 400; }
.sidebar-leistungen li a::before { content: '\203A '; color: var(--accent); font-weight: 700; }
.sidebar-leistungen li a:hover { color: var(--accent); text-decoration: none; }

/* ── AKTUELLES / BNOTK NEWS ─────────────────────────────── */
.news-section { margin-top: 2em; }
ul.news-list { list-style: none; margin: 0; padding: 0; }
ul.news-list li.rss-item { padding: 13px 0; border-bottom: 1px solid var(--border-light); }
ul.news-list li.rss-item h4 { margin: 0; font-size: .94rem; font-weight: 600; }
ul.news-list li.rss-item h4 a { color: var(--primary); }
ul.news-list li.rss-item h4 a:hover { color: var(--accent); }
.news-source { margin-top: 10px; font-size: .86rem; }

/* ── ANFAHRT ────────────────────────────────────────────── */
.anfahrt-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
    margin-bottom: 24px; background: var(--bg-light);
    padding: 20px; border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}
#map-anfahrt {
    height: 400px; border-radius: var(--radius);
    border: 1px solid var(--border); margin-bottom: 20px;
}

/* ── BUEROZEITEN ─────────────────────────────────────────── */
.buerozeiten-table { width: 100%; max-width: 480px; margin: 1em 0; }
.buerozeiten-table td { padding: 9px 14px; border: 1px solid var(--border); font-size: .88rem; }
.buerozeiten-table td:first-child { font-weight: 600; color: var(--primary); background: var(--bg-light); width: 36%; }

/* ── KONTAKTFORMULAR ────────────────────────────────────── */
.contact-form { max-width: 640px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: .86rem; font-weight: 600; color: var(--primary); }
.form-group input,
.form-group textarea {
    padding: 9px 11px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: .88rem;
    font-family: inherit; transition: border-color .2s; width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px rgba(3,58,86,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group-full { grid-column: 1 / -1; }
.form-privacy { display: flex; align-items: flex-start; gap: 10px; font-size: .83rem; margin-bottom: 14px; color: var(--text-light); }
.btn-submit {
    background: var(--primary); color: #fff; border: none;
    padding: 11px 28px; border-radius: var(--radius);
    font-size: .92rem; font-weight: 600; cursor: pointer;
    transition: background .2s, transform .1s;
}
.btn-submit:hover { background: var(--primary-light); transform: translateY(-1px); }
.form-success { background: #d4edda; color: #155724; padding: 14px; border-radius: var(--radius); margin-bottom: 16px; }
.form-error   { background: #f8d7da; color: #721c24; padding: 14px; border-radius: var(--radius); margin-bottom: 16px; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--primary); color: rgba(255,255,255,.85); margin-top: 40px; padding: 30px 0; }
.footer-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: repeat(3,1fr); gap: 30px;
}
.footer-col h4 {
    color: #fff; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase;
    margin-bottom: 12px; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.2);
}
.footer-col p, .footer-col a { font-size: .83rem; color: rgba(255,255,255,.8); line-height: 1.7; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li a { display: block; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-bottom { text-align: center; padding: 14px 20px 0; font-size: .79rem; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.15); margin-top: 22px; }

/* ── COOKIE-BANNER ──────────────────────────────────────── */
.cookie-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary-dark); color: #fff; padding: 14px 22px; z-index: 9999; box-shadow: 0 -3px 12px rgba(0,0,0,.2); }
.cookie-banner.active { display: block; }
.cookie-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: .86rem; flex: 1; }
.cookie-inner a { color: rgba(255,255,255,.8); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; }
.cookie-buttons button { padding: 8px 18px; border: none; border-radius: var(--radius); font-size: .86rem; cursor: pointer; font-family: inherit; font-weight: 600; }
.cookie-buttons button:first-child { background: var(--accent); color: #fff; }
.cookie-buttons button:last-child  { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }

/* ── MOBILE NAV ─────────────────────────────────────────── */
.mobile-nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--primary); z-index: 2000; padding: 70px 24px 30px; overflow-y: auto; }
.mobile-nav.active { display: block; }
.mobile-close { position: absolute; top: 18px; right: 18px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li > a { display: block; padding: 13px 0; color: #fff; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.15); }
.mobile-sub { display: none; padding-left: 16px; }
.mobile-sub a { display: block; padding: 9px 0; color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.mobile-has-sub > a::after { content: ' +'; float: right; }
.mobile-has-sub.open > a::after { content: ' \2212'; }
.mobile-has-sub.open .mobile-sub { display: block; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .content-flex { flex-direction: column; }
    .content-sidebar { width: 100%; flex: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .anfahrt-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .header-contact { display: none; }
}
@media (max-width: 768px) {
    .site-nav { display: none; }
    .burger-btn { display: flex; margin-left: auto; }
    .site-banner { height: 160px; }
    .banner-text h2 { font-size: 1.35rem; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .header-inner { height: 68px; gap: 12px; }
    .site-logo img { height: 44px; }
    h1 { font-size: 1.4rem; }
    :root { --banner-height: 130px; }
}
