/*
 Theme Name:   Understrap Child
 Theme URI:    https://understrap.com
 Description:  Understrap Child Theme
 Author:       the Understrap Contributors
 Author URI:   https://github.com/understrap/understrap-child/graphs/contributors
 Template:     understrap
 Version:      1.0.1
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  understrap-child
 Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
 GitHub Theme URI: understrap/understrap-child
*/

/* Startseite: Navigation, Einstieg und Direktlinks. */
.home, #wrapper-navbar {
    --bvss-red: #b62223;
    --bvss-ink: #202827;
    --bvss-muted: #475351;
    --bvss-line: #dce2df;
    --bvss-gutter: clamp(1rem, 3.5vw, 3rem);
    --bvss-width: 1220px;
}
#wrapper-navbar {
    position: relative;
    z-index: 5;
    background: white;
    border-bottom: 1px solid var(--bvss-line);
}
#main-nav {
    padding: .7rem 0;
    background-color: #fff !important;
}
#main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath fill='none' stroke='%23363e3b' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
#main-nav > .container {
    max-width: var(--bvss-width);
    width: calc(100% - 2 * var(--bvss-gutter));
    padding: 0;
}
#main-nav .navbar-brand { padding: 0; }
#main-nav .navbar-brand img { width: 109px; height: auto; }
#main-menu { align-items: center; gap: clamp(.04rem,.45vw,.5rem); }
#main-menu > .menu-item { background: transparent; margin: 0; }
#main-menu > .menu-item > .nav-link {
    border-radius: .4rem;
    padding: .64rem clamp(.45rem,.72vw,.78rem) !important;
    color: var(--bvss-ink);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.28;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}
#main-menu > .menu-item > .nav-link:hover,
#main-menu > .show > .nav-link { background: #f2f4f2; color: var(--bvss-red); }
#main-menu > .member > .nav-link { background: var(--bvss-red); color: white !important; }
#main-menu > .member > .nav-link:hover { background: #911b1b; }
#main-menu .dropdown-menu {
    padding: .4rem;
    border: 1px solid var(--bvss-line);
    border-radius: .5rem;
    box-shadow: 0 9px 20px rgb(30 45 40 / 10%);
}
#main-menu .dropdown-item {
    padding: .55rem .7rem;
    border-radius: .25rem;
    font-size: .96rem;
    font-weight: 500;
    line-height: 1.4;
    font-family: inherit;
}
#main-menu .dropdown-item:hover { color: var(--bvss-red); background: #f2f4f2; }
#main-nav .navbar-toggler { border: 1px solid var(--bvss-line); border-radius: .4rem; min-height: 44px; }
#main-nav :focus-visible,
.bvss-home-content :focus-visible { outline: 3px solid #147369; outline-offset: 3px; }

.home .bvss-home-content {
    width: calc(100% - 2 * var(--bvss-gutter));
    max-width: var(--bvss-width);
    margin: clamp(1.15rem,2.7vw,2.5rem) auto clamp(2rem,4vw,4rem);
    color: var(--bvss-ink);
    font-family: inherit;
}
.bvss-intro {
    display: grid;
    grid-template-columns: minmax(0,1.14fr) minmax(0,1fr);
    background: #f3f4ee;
    border-radius: .65rem;
    overflow: hidden;
}
.bvss-gallery { position: relative; isolation: isolate; min-width: 0; }
.bvss-slides { position: relative; height: 100%; min-height: clamp(340px,30vw,445px); }
.bvss-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .75s ease-in-out;
    pointer-events: none;
}
.bvss-slide.is-active { opacity: 1; z-index: 2; }
.bvss-slide.is-previous { opacity: 1; z-index: 1; }
.bvss-gallery[hidden] { display: none; }
.bvss-gallery[hidden] + .bvss-intro-copy, .bvss-intro-copy:only-child { grid-column: 1 / -1; }
.bvss-slide-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.bvss-slide[data-attachment-id="2801"] .bvss-slide-image { object-position: 76% center; }
.bvss-photo-credit {
    position: absolute;
    z-index: 1;
    top: .6rem;
    left: .6rem;
    max-width: calc(100% - 1.2rem);
    padding: .18rem .45rem;
    border-radius: .28rem;
    background: rgb(20 27 25 / 88%);
    color: white;
    font: 500 .75rem/1.35 "Open Sans", sans-serif;
    overflow-wrap: anywhere;
}
.bvss-gallery-controls {
    position: absolute;
    z-index: 3;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 1px 4px;
    border-radius: 24px;
    background: rgb(20 27 25 / 90%);
    color: white;
}
.bvss-gallery-controls[hidden] { display: none !important; }
.bvss-counter {
    min-width: 3ch;
    color: white;
    font: 600 .85rem/1 "Open Sans", sans-serif;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: center;
}
.bvss-announcement {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.bvss-gallery-controls button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: white;
    cursor: pointer;
}
.bvss-gallery-controls button:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.bvss-prev span, .bvss-next span { font: 400 1.75rem/1 "Open Sans", sans-serif; }
.bvss-play-icon { font: 700 .8rem/1 "Open Sans", sans-serif; }
.bvss-intro-copy.entry-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: clamp(1.75rem,3.35vw,3.4rem);
    margin: 0;
}
.bvss-intro-copy::before { content: ""; width: 2.75rem; height: 4px; margin: 0 0 1.25rem; background: var(--bvss-red); }
.bvss-intro-copy h1 {
    max-width: 100%;
    margin: 0;
    color: var(--bvss-ink);
    font-family: inherit;
    font-size: clamp(2.45rem,3.7vw,3.7rem);
    font-weight: 400;
    line-height: 1.015;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.bvss-intro-copy h2, .bvss-intro-copy p {
    margin: 1.15rem 0 0;
    color: var(--bvss-muted);
    font-family: inherit;
    font-size: clamp(1.03rem,1.36vw,1.22rem);
    font-weight: 400;
    line-height: 1.52;
    letter-spacing: -.012em;
}
.bvss-quicklinks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.7rem,1.35vw,1.2rem); margin-top: clamp(.9rem,1.75vw,1.4rem); }
a.bvss-quicklink {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .33rem;
    padding: 1.1rem 3rem 1.1rem clamp(1rem,1.6vw,1.6rem);
    min-height: 6.15rem;
    border: 1px solid var(--bvss-line);
    border-radius: .5rem;
    background: white;
    color: var(--bvss-ink);
    text-decoration: none;
}
a.bvss-quicklink:hover, a.bvss-quicklink:focus { text-decoration: none; color: var(--bvss-ink); border-color: #b6c1bc; background: #f8f9f6; }
.bvss-quick-title { font-family: inherit; font-size: clamp(1.15rem,1.65vw,1.4rem); font-weight: 500; line-height: 1.18; }
.bvss-quick-action { color: var(--bvss-red); font: 500 .87rem/1.3 "Open Sans", sans-serif; }
.bvss-quicklink::after {
    content: "→";
    position: absolute;
    right: clamp(.9rem,1.45vw,1.4rem);
    top: 50%;
    transform: translateY(-50%);
    color: var(--bvss-red);
    font: 400 1.6rem/1 "Open Sans", sans-serif;
}
/* At tablet widths the signed-in WordPress toolbar can wrap over the menu button. */
@media (min-width: 783px) and (max-width: 991.98px) {
    body.admin-bar #wrapper-navbar { padding-top: 32px; }
}

/* Keep the full German and French menus behind the toggle on tablets. */
@media (min-width: 768px) and (max-width: 991.98px) {
    #main-nav.navbar-expand-md, #main-nav.navbar-expand-md > .container { flex-wrap: wrap; }
    #main-nav.navbar-expand-md .navbar-toggler { display: block; }
    #main-nav.navbar-expand-md .navbar-collapse { flex-basis: 100%; }
    #main-nav.navbar-expand-md .navbar-collapse.collapse:not(.show) { display: none !important; }
    #main-nav.navbar-expand-md .navbar-collapse.show { display: block !important; }
    #main-nav.navbar-expand-md .navbar-nav { flex-direction: column; }
    #main-nav.navbar-expand-md .navbar-nav .dropdown-menu { position: static; }
}
@media (max-width: 991.98px) {
    #main-nav { padding: .48rem 0; }
    #main-nav .navbar-brand img { width: 94px; }
    #main-menu { align-items: stretch; padding: .8rem 0 .35rem; gap: .15rem; }
    #main-menu > .menu-item > .nav-link { padding: .72rem .75rem !important; white-space: normal; }
    #main-menu .dropdown-menu { box-shadow: none; }
    #main-menu > .member { align-self: flex-start; margin: .4rem 0; }
}
@media (max-width: 767.98px) {
    .bvss-intro { grid-template-columns: minmax(0,1fr); }
    .bvss-slides { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
    .bvss-intro-copy.entry-content { padding: 1.5rem clamp(1.25rem,5.5vw,2rem) 1.75rem; }
    .bvss-intro-copy::before { width: 2rem; height: 3px; margin-bottom: .85rem; }
    .bvss-intro-copy h1 { font-size: clamp(2.08rem,7vw,3rem); line-height: 1.045; }
    .bvss-intro-copy h2, .bvss-intro-copy p { margin-top: .85rem; }
    .bvss-quicklinks { grid-template-columns: minmax(0,1fr); gap: .48rem; }
    a.bvss-quicklink { min-height: 4.4rem; padding-top: .78rem; padding-bottom: .78rem; }
    .bvss-gallery-controls { right: .6rem; bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
    .bvss-slide { transition: none; }
}
