/* ==========================================================================
   BNI Chapter Landing Page
   Palette: BNI-Rot #C8102E, Dunkelblau #1A2B4A, Hellgrau #F5F5F7
   ========================================================================== */

:root {
    --bni-red: #C8102E;
    --bni-red-dark: #a20d25;
    --bni-navy: #1A2B4A;
    --bni-navy-light: #2d4066;
    --text: #18212f;
    --text-muted: #5a6577;
    --bg: #ffffff;
    --bg-soft: #f5f5f7;
    --bg-card: #ffffff;
    --border: #e6e8ec;
    --shadow-sm: 0 1px 3px rgba(16,24,40,0.04), 0 1px 2px rgba(16,24,40,0.06);
    --shadow-md: 0 4px 12px rgba(16,24,40,0.06), 0 2px 4px rgba(16,24,40,0.04);
    --shadow-lg: 0 16px 40px rgba(16,24,40,0.08), 0 4px 12px rgba(16,24,40,0.06);
    --radius: 14px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

/* -------- Animations -------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 16px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideDown {
    from { opacity: 0; transform: translate3d(0, -12px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes heroGlow {
    0%, 100% { transform: scale(1); opacity: .85; }
    50%      { transform: scale(1.1); opacity: 1; }
}
@keyframes popIn {
    0%   { opacity: 0; transform: scale(.92); }
    60%  { opacity: 1; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes notFoundFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; color: var(--bni-navy); margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.15rem; }
a { color: var(--bni-red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* -------- Header / Nav -------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
    animation: slideDown .5s cubic-bezier(.2,.7,.2,1) both;
}
.brand-logo { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .8rem; font-weight: 700; color: var(--bni-navy); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 42px; width: auto; }
.brand-name { font-size: 1.05rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { color: var(--text); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--bni-red); text-decoration: none; }

.btn-visit, .btn-primary {
    display: inline-block;
    padding: .7rem 1.3rem;
    background: var(--bni-red);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background .15s, transform .15s;
}
.btn-visit:hover, .btn-primary:hover { background: var(--bni-red-dark); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-visit:active, .btn-primary:active { transform: translateY(0) scale(.98); }
.btn-action:active { transform: translateY(0) scale(.98); }

.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
    display: block; height: 2px; width: 22px; background: var(--bni-navy); margin: 0 auto;
    transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .2s;
    transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------- Hero -------- */
.hero {
    background: linear-gradient(135deg, var(--bni-navy) 0%, var(--bni-navy-light) 100%);
    color: #fff;
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(200,16,46,0.4) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 6s ease-in-out infinite;
    transform-origin: center;
}
.hero::after {
    content: ''; position: absolute; bottom: -50%; left: -20%;
    width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(200,16,46,0.45) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 7s ease-in-out infinite;
    transform-origin: center;
}
.hero-greeting {
    color: #fff; opacity: .5;
    font-size: 1.05rem; font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase;
    margin: 0 0 .4rem; position: relative;
    animation: fadeInUp .7s cubic-bezier(.2,.7,.2,1) .05s both;
}
.hero-title {
    color: #fff; font-size: 2.8rem; margin-bottom: .5rem; position: relative;
    animation: fadeInUp .7s cubic-bezier(.2,.7,.2,1) .15s both;
}
.hero-name { display: block; color: var(--bni-red); }
.hero-subtitle {
    font-size: 1.2rem; color: rgba(255,255,255,.85); margin-bottom: 2.5rem; max-width: 800px; position: relative;
    animation: fadeInUp .7s cubic-bezier(.2,.7,.2,1) .25s both;
}
.hero-count {
    display: inline-block;
    position: relative;
    color: #fff;
    font-weight: 800;
    font-size: 1.1em;
    padding: 0 .12em;
    letter-spacing: .005em;
    white-space: nowrap;
}
.hero-count::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--bni-red) 0%, #ff4b6b 50%, var(--bni-red) 100%);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left center;
    box-shadow: 0 0 10px rgba(200,16,46,.65), 0 0 22px rgba(200,16,46,.3);
    animation:
        heroCountDraw 1s cubic-bezier(.2,.7,.2,1) 1s forwards,
        heroCountShimmer 3.2s ease-in-out 2.2s infinite;
}
@keyframes heroCountDraw {
    0% { transform: scaleX(0); transform-origin: left center; }
    100% { transform: scaleX(1); transform-origin: left center; }
}
@keyframes heroCountShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-count::after {
        animation: none;
        transform: scaleX(1);
    }
}

.meeting-card {
    display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
    background: #fff; color: var(--text);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-width: 900px;
    animation: fadeInUp .7s cubic-bezier(.2,.7,.2,1) .4s both;
}
.meeting-item { flex: 1; min-width: 150px; }
.meeting-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem; }
.meeting-value { font-size: 1.05rem; font-weight: 600; color: var(--bni-navy); }
.meeting-cta { margin-left: auto; }

/* -------- Members Section -------- */
.members-section { padding: 4rem 0 5rem; background: var(--bg-soft); }
.section-head {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    margin-bottom: 2rem;
}
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; }
.filter-bar input, .filter-bar select {
    padding: .65rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: #fff; font: inherit; color: var(--text); min-width: 200px;
}
.filter-bar input:focus, .filter-bar select:focus { outline: 2px solid var(--bni-red); outline-offset: -1px; }

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.member-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .35s cubic-bezier(.2,.7,.2,1), opacity .35s;
    color: var(--text);
    display: flex; flex-direction: column;
    text-decoration: none !important;
    border: 1px solid transparent;
    position: relative;
    cursor: pointer;
    will-change: transform;
}
/* Animierter Conic-Gradient-Rand beim Hover (via @property --card-angle).
   Ring wird per mask-composite aus zwei Layern "ausgestanzt". */
@property --card-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.member-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--card-angle),
        var(--bni-red) 0deg,
        #ff5577 90deg,
        #fff 180deg,
        #ff5577 270deg,
        var(--bni-red) 360deg);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transform: scale(.985);
    transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1);
    pointer-events: none;
    z-index: 3;
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 14px 34px -12px rgba(200,16,46,0.35); }
.member-card:hover::before {
    opacity: 1;
    transform: scale(1);
    animation: cardBorderSpin 4s linear infinite;
}
@keyframes cardBorderSpin {
    to { --card-angle: 360deg; }
}
.member-card:active { transform: translateY(-2px) scale(.99); }
.member-card:focus-within { outline: 2px solid var(--bni-red); outline-offset: 2px; }
.member-card.hidden { display: none; }

/* Scroll-Reveal (aktiviert via JS IntersectionObserver) */
.reveal { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }

/* Filter-Animation: smooth ein-/ausblenden statt hartem display:none */
.member-card.is-filtered-out { opacity: 0; transform: scale(.96); pointer-events: none; }

.member-category {
    background: var(--bni-red);
    color: #fff;
    padding: .55rem 1rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    position: absolute;
    width: 100%;
    z-index: 1;
}
.member-photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-soft);
    display: flex; align-items: center; justify-content: center;
    margin-top: 35px;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.member-card:hover .member-photo img { transform: scale(1.04); }
.photo-placeholder {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--bni-navy); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700;
}
.photo-placeholder.large { width: 140px; height: 140px; font-size: 3rem; }

.member-body { padding: 1rem 1.2rem 1.3rem; }
.member-name {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
    color: var(--bni-navy); font-size: 1.1rem; margin-bottom: .2rem;
    text-decoration: none;
}
.member-name:hover { color: var(--bni-red); text-decoration: none; }
.member-company { color: var(--text-muted); font-size: .92rem; margin-bottom: .3rem; }
.member-city { color: var(--text-muted); font-size: .82rem; }

.member-meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: .6rem; flex-wrap: wrap;
    margin-top: .3rem;
}
.member-meta .member-city { margin: 0; flex: 1; min-width: 0; }
.member-links {
    display: inline-flex; align-items: center; gap: .35rem;
    flex-wrap: wrap;
}
.member-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    color: var(--text-muted);
    transition: color .15s, transform .15s;
    flex-shrink: 0;
}
.member-link svg { width: 14px; height: 14px; }
.member-link:hover { color: var(--bni-red); text-decoration: none; transform: translateY(-1px); }

/* -------- Member Detail -------- */
.member-detail { padding: 3rem 0 5rem; background: var(--bg-soft); min-height: 70vh; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 500; }

.detail-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    max-width: 900px; margin: 0 auto;
    animation: fadeInUp .6s cubic-bezier(.2,.7,.2,1) both;
}
.back-link { transition: transform .2s; }
.back-link:hover { transform: translateX(-3px); }
.detail-head {
    display: flex; gap: 2rem; align-items: flex-start;
    flex-wrap: wrap; margin-bottom: 2rem;
    padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.detail-photo img { width: 180px; height: 180px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.detail-heading {
    flex: 1; min-width: 250px;
    display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.detail-heading-text { flex: 1; min-width: 200px; }
.detail-company a { color: inherit; }
.detail-company a:hover { color: var(--bni-red); }
.detail-category {
    display: inline-block; background: var(--bni-red); color: #fff;
    padding: .35rem .8rem; border-radius: 100px;
    font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: .8rem;
}
.detail-company { font-size: 1.15rem; color: var(--bni-navy-light); font-weight: 500; margin-top: -.3rem; margin-bottom: 1rem; }
.detail-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .4rem; }
.btn-action {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem 1.05rem;
    background: var(--bni-navy);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-size: .92rem; font-weight: 600;
    transition: background .15s, transform .15s, box-shadow .15s;
    line-height: 1;
}
.btn-action svg { width: 16px; height: 16px; }
.btn-action:hover { background: var(--bni-navy-light); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.detail-logo-link { display: inline-block; flex-shrink: 0; }
.detail-logo { max-width: 150px; max-height: 150px; width: auto; height: auto; object-fit: contain; }

.detail-section { margin-bottom: 2rem; }
.detail-section h2 { font-size: 1.3rem; margin-bottom: .8rem; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}
.detail-block h3 { font-size: 1rem; color: var(--bni-navy); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--bni-red); display: inline-block; }
.contact-row {
    display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem;
    font-size: .95rem;
}
.contact-row a { color: var(--text); }
.contact-row a:hover { color: var(--bni-red); }
.contact-icon { color: var(--bni-red); display: inline-flex; width: 18px; height: 18px; flex-shrink: 0; }
.contact-icon svg { width: 18px; height: 18px; }
.contact-label { color: var(--text-muted); font-size: .88rem; }
.map-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; }
.map-link svg { width: 16px; height: 16px; }
.qr-download {
    display: inline-flex; align-items: center; gap: .5rem;
    margin-top: 1.2rem; font-size: .9rem; color: var(--text-muted);
    transition: color .15s;
}
.qr-download:hover { color: var(--bni-red); }
.qr-download svg { width: 18px; height: 18px; color: var(--bni-red); }
.site-footer .qr-download { color: #c8cfdb; }
.site-footer .qr-download:hover { color: #fff; }
.site-footer .qr-download svg { color: #fff; }
address { font-style: normal; color: var(--text); line-height: 1.7; }

/* -------- Social Icons -------- */
.social-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.social-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-soft);
    color: var(--bni-navy);
    transition: all .15s;
}
.social-icon:hover { background: var(--bni-red); color: #fff; transform: translateY(-3px) scale(1.08); text-decoration: none; box-shadow: var(--shadow-sm); }
.social-icon:active { transform: translateY(-1px) scale(.98); }
.social-icon svg { width: 18px; height: 18px; }

/* -------- Contact Page -------- */
.contact-hero {
    background: linear-gradient(135deg, var(--bni-navy) 0%, var(--bni-navy-light) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.contact-hero h1 { color: #fff; animation: fadeInUp .7s cubic-bezier(.2,.7,.2,1) .1s both; }
.contact-hero .lead { font-size: 1.15rem; opacity: .9; max-width: 600px; margin: 0 auto; animation: fadeInUp .7s cubic-bezier(.2,.7,.2,1) .25s both; }
.contact-info { padding: 4rem 0; background: var(--bg-soft); }
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1000px; margin: 0 auto;
}
.contact-box {
    background: #fff; padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.contact-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-box.highlight { background: var(--bni-navy); color: #fff; }
.contact-box.highlight h3 { color: #fff; }
.contact-box h3 { margin-bottom: .8rem; }
.contact-box .big { font-size: 1.2rem; font-weight: 600; color: var(--bni-navy); }
.contact-box.highlight .big { color: #fff; }

/* -------- 404 -------- */
.not-found-hero {
    background: linear-gradient(135deg, var(--bni-navy) 0%, var(--bni-navy-light) 100%);
    color: #fff;
    padding: 10rem 0;
    text-align: center;
}
.not-found-hero h1 { color: #fff; font-size: 2.2rem; margin-bottom: .75rem; animation: fadeInUp .7s cubic-bezier(.2,.7,.2,1) .3s both; }
.not-found-hero .lead {
    font-size: 1.1rem; opacity: .9;
    max-width: 520px; margin: 0 auto 2rem;
    animation: fadeInUp .7s cubic-bezier(.2,.7,.2,1) .4s both;
}
.not-found-code {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin: 0 0 .5rem;
    color: var(--bni-red);
    letter-spacing: -.02em;
    animation: popIn .6s cubic-bezier(.2,.7,.2,1) both, notFoundFloat 4s ease-in-out .8s infinite;
}

/* -------- Footer -------- */
.site-footer {
    background: var(--bni-navy);
    color: #c8cfdb;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}
.site-footer a { color: #fff; }
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-title { font-weight: 700; color: #fff; margin-bottom: .8rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.footer-meta { font-size: .92rem; line-height: 1.8; }
.site-footer .social-icon { background: rgba(255,255,255,0.08); color: #fff; }
.site-footer .social-icon:hover { background: var(--bni-red); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: .85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
}
.footer-bottom .footer-copyright { opacity: .7; }
.footer-made-with { flex: 1; text-align: center; color: rgba(255,255,255,0.7); }
.footer-made-with a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-made-with a:hover { color: #fff; }
.footer-heart { color: var(--bni-red); }
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-left: auto;
}
.footer-legal a {
    color: #fff;
    opacity: .7;
    text-decoration: none;
}
.footer-legal a:hover { opacity: 1; }
@media (max-width: 600px) {
    .footer-bottom { justify-content: flex-start; }
    .footer-legal { margin-left: 0; }
}

.empty { text-align: center; padding: 3rem; color: var(--text-muted); }

/* -------- Visit Modal -------- */
.visit-modal {
    position: fixed; inset: 0;
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.visit-modal[hidden] { display: none; }
.visit-modal.is-open { opacity: 1; pointer-events: auto; }
.visit-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(16, 24, 40, 0.65);
    backdrop-filter: blur(2px);
}
.visit-modal__dialog {
    position: relative;
    width: 100%; max-width: 960px;
    height: min(85vh, 820px);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column;
    overflow: hidden;
    transform: translateY(16px) scale(.98);
    transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.visit-modal.is-open .visit-modal__dialog { transform: translateY(0) scale(1); }
.visit-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.visit-modal__title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--bni-navy);
}
.visit-modal__close {
    background: none; border: 0; cursor: pointer;
    font-size: 1.8rem; line-height: 1;
    width: 36px; height: 36px;
    border-radius: 50%;
    color: var(--text-muted);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.visit-modal__close:hover { background: var(--bg-soft); color: var(--bni-red); }
.visit-modal__body { flex: 1; min-height: 0; background: var(--bg-soft); }
.visit-modal__iframe {
    width: 100%; height: 100%;
    border: 0; display: block;
    background: #fff;
}
body.visit-modal-open { overflow: hidden; }

@media (max-width: 600px) {
    .visit-modal { padding: 0; }
    .visit-modal__dialog {
        height: 100dvh; max-width: none;
        border-radius: 0;
    }
}

/* -------- Responsive -------- */
@media (max-width: 800px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; flex-direction: column; gap: 0;
        padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { width: 100%; padding: .8rem 0; border-bottom: 1px solid var(--border); }
    .nav-links a:last-child { border-bottom: 0; }
    .btn-visit { text-align: center; margin-top: .5rem; }

    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .meeting-card { flex-direction: column; align-items: stretch; }
    .meeting-cta { margin-left: 0; margin-top: .5rem; text-align: center; }
    .detail-card { padding: 1.5rem; }
    .detail-head { flex-direction: column; }
    .section-head { flex-direction: column; align-items: stretch; }
    .filter-bar input, .filter-bar select { min-width: 0; flex: 1; }
}

/* -------- Reduced Motion -------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}