/* Hauptnavigation mit Dropdown „Verein“ */
.sr-only{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}

.main-nav{
    overflow:visible;
}

.main-nav .nav-item{
    position:relative;
}

.main-nav .nav-main-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-height:42px;
    padding:10px 12px;
    border:0;
    border-radius:10px;
    background:transparent;
    color:var(--ink);
    font:inherit;
    font-weight:650;
    line-height:1.2;
    text-decoration:none;
    cursor:pointer;
    white-space:nowrap;
}

.main-nav .nav-main-link:hover,
.main-nav .nav-main-link:focus-visible,
.main-nav .nav-main-link.active,
.main-nav .nav-dropdown.active > .nav-dropdown-toggle{
    background:var(--soft);
    color:var(--blue);
    text-decoration:none;
}

.nav-dropdown-arrow{
    display:inline-block;
    font-size:.76rem;
    line-height:1;
    transition:transform .18s ease;
}

.nav-dropdown.is-open .nav-dropdown-arrow,
.nav-dropdown:focus-within .nav-dropdown-arrow,
.nav-dropdown:hover .nav-dropdown-arrow{
    transform:rotate(180deg);
}

.nav-dropdown-menu{
    position:absolute;
    z-index:120;
    top:calc(100% - 1px);
    left:0;
    min-width:230px;
    padding:8px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    box-shadow:0 18px 45px rgba(20,29,63,.16);
    opacity:0;
    visibility:hidden;
    transform:translateY(-6px);
    pointer-events:none;
    transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
}

/* Unsichtbare Hover-Brücke zwischen Hauptpunkt und Untermenü.
   Dadurch bleibt das Menü beim Bewegen der Maus zuverlässig offen. */
.nav-dropdown-menu::before{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:-10px;
    height:10px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
    pointer-events:auto;
}

.nav-dropdown-menu a{
    display:flex;
    align-items:center;
    width:100%;
    padding:10px 12px;
    border-radius:9px;
    color:var(--ink);
    font-weight:650;
    line-height:1.25;
    text-decoration:none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible,
.nav-dropdown-menu a[aria-current="page"]{
    background:var(--soft);
    color:var(--blue);
    text-decoration:none;
}

.nav-shop-link{
    gap:4px!important;
}

.nav-external-icon{
    color:var(--muted);
    font-size:.76rem;
    transform:translateY(-1px);
}

/* Bearbeitbare Vereinsseiten */
.editable-page-title-image{
    display:block;
    width:min(100%,980px);
    max-height:440px;
    margin:0 auto 30px;
    border-radius:18px;
    object-fit:contain;
    background:var(--soft);
    box-shadow:var(--shadow);
}

.contact-committee-link{
    margin-top:32px;
    padding-top:24px;
    border-top:1px solid var(--line);
}

@media(max-width:1100px){
    .main-nav .nav-main-link{
        padding-inline:9px;
        font-size:.92rem;
    }
}

@media(max-width:860px){
    .main-nav{
        max-height:calc(100dvh - 90px);
        overflow-y:auto;
    }

    .main-nav .nav-item,
    .main-nav .nav-main-link{
        width:100%;
    }

    .main-nav .nav-main-link{
        justify-content:flex-start;
        min-height:44px;
        padding:11px 12px;
    }

    .main-nav .nav-dropdown-toggle{
        justify-content:space-between;
    }

    .nav-dropdown-menu::before{
        display:none;
    }

    .nav-dropdown-menu{
        position:static;
        display:none;
        min-width:0;
        margin:2px 0 6px;
        padding:4px 4px 4px 14px;
        border:0;
        border-left:2px solid rgba(37,50,103,.14);
        border-radius:0;
        box-shadow:none;
        opacity:1;
        visibility:visible;
        transform:none;
        pointer-events:auto;
        transition:none;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu{
        display:none;
    }

    .nav-dropdown.is-open .nav-dropdown-menu{
        display:block;
    }

    .nav-dropdown-menu a{
        padding:10px 12px;
    }
}

/* Neue redaktionelle Seiten im bestehenden Viewport-Layout */
body.page-ueber-uns > main,
body.page-ausschuss > main,
body.page-berichte > main,
body.page-schiessstand > main,
body.page-kalender > main{
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

body.page-ueber-uns > main > .section,
body.page-ausschuss > main > .section,
body.page-berichte > main > .section,
body.page-schiessstand > main > .section,
body.page-kalender > main > .section{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    padding-top:28px;
    padding-bottom:28px;
}

.page-hero-intro{
    max-width:760px;
    font-size:.94rem;
    line-height:1.35;
}

.page-hero-intro p{
    margin:.25rem 0 0;
}

@media(max-width:900px){
    body.page-ueber-uns > main,
    body.page-ausschuss > main,
    body.page-berichte > main,
    body.page-schiessstand > main,
    body.page-kalender > main{
        display:block;
        overflow:visible;
    }

    body.page-ueber-uns > main > .section,
    body.page-ausschuss > main > .section,
    body.page-berichte > main > .section,
    body.page-schiessstand > main > .section,
    body.page-kalender > main > .section{
        overflow:visible;
    }
}
