/* ════════════════════════════════════════════════════════
   custom2.css – Klassisches Layout (Migrationsbasis)
   Buse Mentzel Ludewig – Patentanwaltskanzlei Wuppertal
   Orientiert am bisherigen Erscheinungsbild der Kanzlei.
   Eingebunden in: index2.html
   ════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
    --bml-blue: #0000cc;
    --bml-blue-dark: #000099;
    --bml-blue-hover: #3333ff;
    --bml-page-bg: #eee;
    --bml-font: 'Times New Roman', Times, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--bml-font);
    font-size: 13px;
    color: #000;
    background: var(--bml-page-bg);
    margin: 0;
    padding: 24px 0 48px;
}

/* Verlauf BG */
.back {
    position: absolute;
    z-index: -999;
    left: 0;
    top: 0;
    width: 100%;
    height: 600px;
    background: #8FEFFF;
    background-image: -webkit-linear-gradient(bottom, rgb(238, 238, 238), rgb(120, 180, 255));
}

/* ── Page Card – 1000px fest, passend zum Header-Bild ── */
.page-wrap {
    background: #fff;
    width: 1000px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.header-brand {
    background: #1050FF;
    color: #FFFFFF;
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.7);
    box-shadow: inset 0px -70px 50px 0px rgba(50, 0, 255, 1);
    border-bottom: solid 1px #1A5DFF;
    border-top: solid 1px #1A5DFF;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 14px;
    min-height: 140px;
}

.header-logo-wrap {
    padding: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
}

.header-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.header-title {
    font-family: var(--bml-font);
    font-size: 2rem;
    font-weight: normal;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.3;
    text-transform: uppercase;
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.7);
}

/* Hero-Bild: echtes banner.png – kein CSS-Fallback nötig */
.header-hero {
    width: 100%;
    height: 250px;
    overflow: hidden;
    line-height: 0;
}

.header-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ═══════════════════════════════════════
   HAUPTNAVIGATION
═══════════════════════════════════════ */
.navbar-bml {
    background: #1050FF !important;
    box-shadow: inset 0px -35px 20px 0px rgba(40, 0, 255, 1);
    padding: 0 !important;
    border-radius: 0;
}

.navbar-bml .nav-link {
    font-family: var(--bml-font);
    font-size: 0.875rem;
    font-weight: bold;
    color: #fff !important;
    padding: 10px 13px !important;
    letter-spacing: 0.04em;
    border-right: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.navbar-bml .nav-link:hover,
.navbar-bml .nav-link.active {
    background: var(--bml-blue-dark);
}

/* Dropdown */
.navbar-bml .dropdown-menu {
    background: var(--bml-blue);
    border: 1px solid #000077;
    border-radius: 0;
    padding: 3px 0;
    margin-top: 0;
    min-width: 200px;
    box-shadow: 3px 5px 14px rgba(0, 0, 0, 0.30);
}

.navbar-bml .dropdown-item {
    font-family: var(--bml-font);
    font-size: 1rem;
    color: #fff;
    padding: 7px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-bml .dropdown-item:last-child {
    border-bottom: none;
}

.navbar-bml .dropdown-item:hover {
    background: var(--bml-blue-dark);
    color: #fff;
}

/* Mobile Toggler – Desktop: in Navbar */
.navbar-bml .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    margin: 6px 10px;
}

.navbar-bml .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile aufgeklappte Nav */
@media (max-width: 991.98px) {
    .navbar-bml .navbar-collapse {
        background: var(--bml-blue);
    }

    .navbar-bml .nav-link {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .navbar-bml .dropdown-menu {
        border: none;
        box-shadow: none;
        background: #000088;
        padding-left: 14px;
    }
}

/* Sprachumschalter in der Navbar */
.lang-switch .nav-link {
    border-right: none;
    border-left: none;
    padding: 10px 10px !important;
    opacity: 0.75;
}

.lang-switch .nav-link:hover,
.lang-switch .nav-link.lang-active {
    opacity: 1;
    background: transparent;
    font-weight: bold;
}

/* ═══════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════ */
.main-content {
    padding: 22px 28px 32px 22px;
    background: #fff;
}

.main-content h1 {
    font-family: var(--bml-font);
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #000;
    margin-bottom: 16px;
}

.main-content h2 {
    font-family: var(--bml-font);
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 8px;
}

.main-content h3 {
    font-family: var(--bml-font);
    font-size: 1rem;
    font-weight: bold;
    margin-top: 14px;
    margin-bottom: 6px;
}

.main-content p {
    font-family: var(--bml-font);
    font-size: 1rem;
    line-height: 1.62;
    text-align: left;
    margin-bottom: 12px;
}

.main-content ul {
    font-family: var(--bml-font);
    font-size: 1rem;
    line-height: 1.7;
    padding-left: 1.1rem;
    margin-bottom: 12px;
}

.main-content li {
    list-style: square;
}

.main-content a {
    color: #000099;
}

.main-content a:hover {
    color: var(--bml-blue-hover);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
    background: #fff;
    border-top: 1px solid #dde2ea;
    padding: 0;
    height: 41px;
}

.site-footer .row {
    height: 41px;
}

.footer-col {
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 0 14px;
}

.site-footer p {
    font-family: var(--bml-font);
    font-size: 1rem;
    color: #333;
    margin: 0;
    line-height: 1;
}

.site-footer a {
    color: #333;
    text-decoration: none;
}

.site-footer a:hover {
    color: #000099;
    text-decoration: none;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 767.98px) {
    body {
        padding: 0;
    }

    .page-wrap {
        border-left: none;
        border-right: none;
    }

    .main-content {
        padding: 16px 14px 24px;
    }

    .header-hero {
        height: 110px;
    }

    /* Header-Brand: Logo kleiner, Titel kleiner,
       Toggler wandert in die rechte Ecke des Headers */
    .header-brand {
        min-height: 64px;
        padding: 6px 10px;
        gap: 8px;
        flex-wrap: nowrap;
        overflow: visible;
    }

    .header-logo-wrap {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .header-logo {
        width: 40px;
        height: 40px;
    }

    .header-title {
        font-size: 0.78rem;
        letter-spacing: 0;
        flex: 1;
        min-width: 0;
    }

    /* Original Navbar-Toggler auf Mobil ausblenden */
    .navbar-bml .navbar-toggler {
        display: none;
    }

    /* Header-Toggler: sichtbar, rechts im Header */
    .header-toggler {
        flex-shrink: 0;
        margin-left: 4px;
        width: 40px;
        height: 40px;
        padding: 6px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 4px;
        cursor: pointer;
    }

    .header-toggler .navbar-toggler-icon {
        display: block;
        width: 24px;
        height: 24px;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-size: contain;
    }

    .footer-col {
        border: none !important;
    }
}

/* ═══════════════════════════════════════
   2-SPALTEN-LAYOUT (.content-row)
═══════════════════════════════════════ */
.content-row {
    display: flex;
    align-items: stretch;
}

/* Sidebar */
.content-row .content-sidebar {
    width: 280px;
    min-width: 280px;
    background: #f4f6fa;
    border-left: 1px solid #dde2ea;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sidebar-Box: Text & Adresse */
.content-row .sidebar-box p,
.content-row .sidebar-box address {
    font-family: var(--bml-font);
    font-size: 0.88rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
    font-style: normal;
}

/* Leistungen-Liste */
.content-row .sidebar-leistungen {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-row .sidebar-leistungen li {
    font-family: var(--bml-font);
    font-size: 0.88rem;
    color: #333;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-row .sidebar-leistungen li:last-child {
    border-bottom: none;
}

/* Footer – Footer-Row-Struktur für 2-Spalten */
.site-footer .footer-row {
    display: flex;
    height: 41px;
    align-items: center;
}

.footer-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 32px;
}

.footer-sidebar-col {
    width: 280px;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
}

/* Responsive */
@media (max-width: 767.98px) {
    .content-row {
        flex-direction: column;
    }

    .content-row .content-sidebar {
        width: 100%;
        min-width: 0;
        border-left: none;
        border-top: 1px solid #dde2ea;
    }

    .site-footer .footer-row {
        flex-direction: column;
        height: auto;
    }

    .footer-sidebar-col {
        width: 100%;
        min-width: 0;
        border-top: 1px solid #eee;
        padding: 6px 14px;
    }
}

/* ═══════════════════════════════════════
   SIDEBAR (2-Spalten-Layout)
═══════════════════════════════════════ */

.sidebar-box {
    background: #fff;
    border: 1px solid #dde2ea;
    border-top: 3px solid #000099;
    padding: 18px 16px;
}

.sidebar-box h3 {
    font-family: var(--bml-font);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000099;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.sidebar-box a {
    color: #333;
    text-decoration: none;
    word-break: break-all;
}

.sidebar-box a:hover {
    color: #000099;
    text-decoration: underline;
}

.sidebar-leistungen li::before {
    content: '▶';
    color: #000099;
    font-size: 0.6rem;
    flex-shrink: 0;
    line-height: 1.7;
}

.sidebar-leistungen a {
    color: #333;
    text-decoration: none;
}

.sidebar-leistungen a:hover {
    color: #000099;
    text-decoration: underline;
}

/* ═══════════════════════════════════════
   CONTENT – Abstände & Ausrichtung
═══════════════════════════════════════ */

.main-content {
    padding-top: 28px;
}

/* Im 2-Spalten-Layout: main-content füllt den verfügbaren Platz */
.content-row .main-content {
    flex: 1 1 0;
    min-width: 0;
}

.main-content h1 {
    margin-bottom: 28px;
}

.main-content h2 {
    margin-top: 28px;
    margin-bottom: 14px;
}

.main-content h3 {
    margin-top: 16px;
    margin-bottom: 6px;
}

/* ── Accessibility ── */
:focus-visible {
    outline: 2px solid var(--bml-blue);
    outline-offset: 2px;
}