:root {
    --hveps-yellow: #f6d900;
    --hveps-dark: #151515;
}

html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { overflow-x: hidden; color: #212529; background: #fff; }
section { position: relative; padding: 5rem 0; }
.bg-yellow { background: var(--hveps-yellow); }
.bg-white { background: #fff; }
.section-heading { margin-bottom: 1.5rem; font-weight: 800; text-transform: uppercase; }
.section-subheading { display: block; margin-bottom: 2rem; }
.text-Center { text-align: center; }

.video-hero {
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    background: #000 url('../images/BB_Stadion_edited.jpg') center / cover no-repeat;
}
.video-hero__media {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    min-width: 100%;
    height: 56.25vw;
    min-height: 100%;
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.video-hero .overlay {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 8rem 1rem 4rem;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, .48);
}
.video-hero h1 { font-size: clamp(2.2rem, 7vw, 5rem); font-weight: 800; text-shadow: 0 .2rem .8rem #000; }

.team-member, .thumbnail { height: 100%; text-align: center; }
.team-member img, .thumbnail img { max-width: 100%; height: auto; }
.img-center { display: block; margin-inline: auto; }
.service-heading { margin-top: 1rem; }

.world-fans-section { margin-top: 4rem; }
.world-fan-card {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: .75rem;
    box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .12);
}
.world-fan-card__image {
    display: block;
    width: 100%;
    height: auto;
}
.world-fan-card__body { padding: 1.25rem; }
.world-fan-card__body p:last-child { margin-bottom: 0; }

.verner-carousel,
.article-carousel {
    max-width: 960px;
    margin: 2rem auto;
    overflow: hidden;
    background: #111;
    border-radius: .85rem;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .25);
}
.verner-carousel .carousel-item img,
.article-carousel .carousel-item img {
    height: clamp(320px, 58vw, 650px);
    object-fit: contain;
}
.verner-carousel .carousel-caption,
.article-carousel .carousel-caption {
    right: 8%;
    bottom: 2.5rem;
    left: 8%;
    padding: .65rem 1rem;
    background: rgba(0, 0, 0, .72);
    border-radius: .5rem;
}
.verner-carousel .carousel-caption p,
.article-carousel .carousel-caption p { margin: 0; }

.merchandise-grid {
    width: 50%;
    margin-inline: auto;
}
.merchandise-grid .thumbnail {
    display: flex;
    width: 100%;
    flex-direction: column;
    padding: .75rem;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0;
    box-shadow: none;
}
.merchandise-grid .thumbnail > img {
    width: 100%;
    height: 240px;
    object-fit: contain;
}
.merchandise-grid .caption {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.merchandise-grid .badge {
    max-width: 100%;
    margin: .15rem;
    white-space: normal;
}

.board-flip-card {
    width: 100%;
    max-width: 300px;
    height: 380px;
    margin: 0 auto;
    background: transparent;
    cursor: pointer;
    perspective: 1000px;
}
.board-flip-card:focus-visible {
    outline: 4px solid #0d6efd;
    outline-offset: 4px;
    border-radius: 1rem;
}
.board-flip-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform .8s;
    transform-style: preserve-3d;
}
.board-flip-card:hover .board-flip-card__inner,
.board-flip-card.is-flipped .board-flip-card__inner {
    transform: rotateY(180deg);
}
.board-flip-card__face {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #fff;
    background: repeating-linear-gradient(90deg, #111 0 42px, #f2c300 42px 84px);
    border-radius: 1rem;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.board-flip-card__back { transform: rotateY(180deg); }
.board-flip-card__face .card-body {
    display: flex;
    height: 100%;
    padding: 1.25rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.board-flip-card__image {
    width: 170px;
    height: 170px;
    margin-bottom: 1rem;
    object-fit: cover;
    background: #fff;
    border: 4px solid #f2c300;
    border-radius: 50%;
}
.board-flip-card .card-title,
.board-flip-card .card-text,
.board-flip-card__back h3,
.board-flip-role {
    padding: .3rem .75rem;
    color: #fff;
    background: rgba(0, 0, 0, .84);
    border-radius: .35rem;
}
.board-flip-card .card-title { font-size: 1.2rem; }
.board-flip-card .card-text { font-weight: 700; }
.board-flip-icon { margin-bottom: 1rem; font-size: 3rem; }
.board-flip-email {
    max-width: 100%;
    margin: .75rem 0;
    padding: .65rem .8rem;
    color: #fff;
    overflow-wrap: anywhere;
    background: rgba(0, 0, 0, .88);
    border: 2px solid #f2c300;
    border-radius: .5rem;
    font-weight: 600;
    text-decoration: none;
}
.board-flip-email:hover,
.board-flip-email:focus { color: #111; background: #f2c300; }
.board-flip-instruction { font-weight: 600; }
.board-history {
    padding-top: 3rem;
    border-top: 2px solid rgba(0, 0, 0, .25);
}
.board-history img {
    width: 180px;
    height: 180px;
    object-fit: cover;
}

.busture-section {
    display: flex;
    min-height: 1080px;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.busture-content {
    width: min(100%, 820px);
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: rgba(0, 0, 0, .63);
    border: 3px solid var(--hveps-yellow);
    border-radius: 1rem;
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.busture-content .section-heading,
.busture-content h2 { color: #fff; }
.busture-updated { color: #ddd; font-weight: 600; }
.busture-details {
    max-width: 680px;
    margin: 2rem auto 0;
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.75;
}
.busture-content a {
    color: var(--hveps-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: .2em;
}
.busture-content a:hover,
.busture-content a:focus { color: #fff; }

/* Uses the site's original yellow and keeps the logo row seamless. */
#links { background-color: #f6d900; }
#links .row,
#links [class*="col-"] { background-color: transparent; }
#links img { background-color: #f6d900; }
#links .links-row {
    max-width: 1100px;
    margin: 0 auto;
}
#links .links-logo img {
    width: auto;
    max-width: 100%;
    max-height: 120px;
}

#arkiv {
    min-height: 600px;
    height: auto !important;
    text-align: center;
    background-image: url(../images/arkiv.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
#arkiv .archive-grid {
    max-width: 900px;
    margin: 0 auto;
}
#arkiv .panel {
    height: 100%;
    margin-bottom: 0;
    color: #212529;
}
#arkiv .panel-title a {
    display: block;
    padding: .25rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}
#arkiv .panel-body p:last-child { margin-bottom: 0; }
#arkiv a { color: inherit; }

audio { max-width: 100%; }
img { max-width: 100%; }

@media (max-width: 767.98px) {
    section { padding: 3.5rem 0; }
    .video-hero, .video-hero .overlay { min-height: 75vh; }
    .merchandise-grid { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .video-hero__media { display: none; }
}
