/*
 * Lions Club Bochum-Kemnade – Startseite „Löwen Kalender“ mit goldener Sternenkette
 * Wird nur für den Club Bochum geladen (siehe src/Template/Layout/page.ctp).
 * Inhalte: src/Template/Element/Pages/bochum/home.ctp
 * Dekoration (Schnee, Sterne): src/Template/Element/Pages/bochum/decor.ctp
 */

body.bochum {
    --bk-blue: #00468E;
    --bk-yellow: #FFD000;
    --bk-gold: #E8B923;
    position: relative;
    overflow-x: hidden;
    border-top: 4px solid var(--bk-yellow);
}

body.bochum header,
body.bochum main#wrapper,
body.bochum footer {
    position: relative;
    z-index: 2;
}

body.bochum header {
    padding: 72px 0 0 !important;
}

body.bochum .headerlogo img {
    width: 330px;
    max-width: 80vw;
    height: auto;
}

/* ---------- Schneefall ---------- */
.bk-snow {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bk-snow span {
    position: absolute;
    top: -20px;
    border-radius: 50%;
    background: #fff;
    opacity: .8;
    animation: bk-fall linear infinite;
}

@keyframes bk-fall {
    0% { transform: translate(0, -20px); }
    25% { transform: translate(18px, 27vh); }
    50% { transform: translate(-10px, 54vh); }
    75% { transform: translate(14px, 81vh); }
    100% { transform: translate(-4px, 110vh); }
}

/* ---------- Goldene Sternenkette ---------- */
.bk-corner {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.bk-sw {
    transform-box: view-box;
    animation: bk-swing 3.6s ease-in-out infinite;
}

@keyframes bk-swing {
    0%, 100% { transform: rotate(7deg); }
    50% { transform: rotate(-7deg); }
}

.bk-st {
    fill: var(--bk-yellow);
    animation: bk-sparkle 2.8s ease-in-out infinite;
}

@keyframes bk-sparkle {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 208, 0, .5)); }
    50% { filter: drop-shadow(0 0 9px rgba(255, 220, 90, 1)); }
}

.bk-gl {
    fill: #FFF3C4;
    animation: bk-glint 2.2s ease-in-out infinite;
}

@keyframes bk-glint {
    0%, 100% { opacity: .25; }
    50% { opacity: 1; }
}

body.bochum footer {
    background: var(--bk-blue) !important;
    padding: 84px 20px 22px !important;
    overflow: hidden;
}

/* Footer-Navigation: vorhandene Regel setzt width:100% + Footer-Padding -> versetzt */
body.bochum footer nav {
    position: static;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

body.bochum footer nav ul {
    margin: 0;
}

.bk-fchain {
    position: absolute;
    left: 0;
    top: -4px;
    display: flex;
    pointer-events: none;
}

.bk-fchain svg {
    flex: 0 0 160px;
}

/* ---------- Inhalte ---------- */
#bk26 {
    position: relative;
    /* Kalender im Hintergrund ragt rechts hinaus – kein seitliches Scrollen */
    overflow-x: hidden;
    overflow-x: clip;
    color: #fff;
    text-align: center;
    font-family: 'Merriweather Sans', sans-serif;
}

#bk26 .bk-wrap {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Vorhandene Regeln färben Fließtext dunkelblau – im Bochum-Design ist er weiß */
#bk26 .bk-wrap p,
#bk26 .bk-wrap p span {
    color: #fff !important;
}

#bk26 .bk-h1 {
    font-family: 'Darumadrop One', cursive;
    font-weight: 400;
    font-size: clamp(34px, 4.2vw, 60px);
    line-height: 1.15;
    text-wrap: balance;
    color: #fff !important;
    margin: 0;
    padding: 24px 0 18px;
}

/* Alte Trennlinie aus style-web.css (h1::before/::after) ausblenden – es gilt .bk-divider */
#bk26 .bk-h1::before,
#bk26 .bk-h1::after {
    display: none !important;
}

#bk26 .bk-divider {
    width: 104px;
    height: 2px;
    margin: 0 auto 44px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .35) 25%, var(--bk-yellow) 25%, var(--bk-yellow) 75%, rgba(255, 255, 255, .35) 75%);
}

#bk26 .bk-h2 {
    font-family: 'Darumadrop One', cursive;
    font-weight: 400;
    font-size: clamp(26px, 2.8vw, 40px);
    line-height: 1.2;
    text-wrap: balance;
    color: #fff !important;
    margin: 0 0 12px;
}

#bk26 .bk-h2.bk-y {
    color: var(--bk-yellow) !important;
}

#bk26 .bk-check {
    max-width: 760px;
    margin: 0 auto 48px;
}

#bk26 .bk-date {
    font-weight: 700;
    font-size: 22px;
    margin: 0 0 28px;
}

#bk26 .bk-sales {
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

#bk26 .bk-sales a {
    color: #fff !important;
    text-decoration: none;
}

#bk26 .bk-sales a:hover {
    color: var(--bk-yellow) !important;
}

/* Countdown-Box */
#bk26 .bk-countdown-box {
    max-width: 760px;
    margin: 0 auto 72px;
    border: 2px solid var(--bk-yellow);
    border-radius: 16px;
    padding: 34px 24px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    background: rgba(0, 70, 142, .55);
}

#bk26 .bk-countdown-box .bk-h2 {
    margin: 0;
}

#bk26 .bk-cd {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

#bk26 .bk-cdu {
    width: 112px;
    background: #fff;
    border-radius: 10px;
    padding: 14px 0 10px;
    box-shadow: 0 10px 24px rgba(0, 20, 60, .3);
    position: relative;
    overflow: hidden;
}

#bk26 .bk-cdu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(0, 70, 142, .15);
}

#bk26 .bk-cdn {
    display: block;
    font-family: 'Darumadrop One', cursive;
    font-size: 56px;
    line-height: 1;
    color: var(--bk-blue);
}

#bk26 .bk-cdl {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--bk-blue);
    margin-top: 6px;
}

#bk26 .bk-note {
    margin: 6px 0 0;
    font-size: 15px;
    opacity: .9;
}

/* Leuchtender Button */
#bk26 .bk-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bk-yellow);
    color: var(--bk-blue) !important;
    font-weight: 800;
    font-size: 24px;
    padding: 20px 46px;
    border-radius: 999px;
    text-decoration: none;
    animation: bk-glow 2s ease-in-out infinite;
    transition: background-color .2s;
}

#bk26 .bk-glow:hover,
#bk26 .bk-glow:focus {
    background: #fff;
    color: var(--bk-blue) !important;
    text-decoration: none;
}

#bk26 .bk-glow-sm {
    font-size: 20px;
    padding: 16px 36px;
}

@keyframes bk-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 208, 0, 0), 0 0 18px 2px rgba(255, 208, 0, .35); }
    50% { box-shadow: 0 0 0 8px rgba(255, 208, 0, .18), 0 0 44px 12px rgba(255, 208, 0, .55); }
}

/* Geschenk + Onlineshop */
#bk26 .bk-gift-row {
    padding: 100px 0 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

#bk26 .bk-gift-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 640px;
    text-align: center;
}

#bk26 .bk-gift-row .bk-gift {
    width: 150px;
    height: auto;
}

#bk26 .bk-gift-text .bk-h2 {
    margin: 0;
}

#bk26 .bk-gift-text p {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
}

#bk26 .bk-gift {
    flex: 0 0 auto;
    animation: bk-wiggle 3s ease-in-out infinite;
    transform-origin: 50% 100%;
}

#bk26 .bk-lid {
    animation: bk-hop 3s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: 50% 100%;
}

#bk26 .bk-spark {
    animation: bk-spark 3s ease-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes bk-wiggle {
    0%, 58%, 100% { transform: rotate(0); }
    64% { transform: rotate(-6deg); }
    70% { transform: rotate(5deg); }
    76% { transform: rotate(-3deg); }
    82% { transform: rotate(0); }
}

@keyframes bk-hop {
    0%, 62%, 100% { transform: translateY(0) rotate(0); }
    70% { transform: translateY(-22px) rotate(-8deg); }
    80% { transform: translateY(0) rotate(0); }
}

@keyframes bk-spark {
    0%, 64% { opacity: 0; transform: scale(.3); }
    72% { opacity: 1; transform: scale(1); }
    90%, 100% { opacity: 0; transform: scale(1.3); }
}

/* App-Box */
#bk26 .bk-app {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 8px;
    padding: 22px 18px;
}

#bk26 .bk-app h3 {
    font-family: 'Darumadrop One', cursive;
    color: var(--bk-blue) !important;
    font-size: 34px;
    font-weight: 400;
    margin: 0;
}

#bk26 .bk-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#bk26 .bk-badges img {
    height: 32px;
    width: auto;
    display: block;
}

/* Sponsoren */
#bk26 .bk-sponsors {
    padding: 100px 0 90px;
}

#bk26 .bk-sponsors p {
    max-width: 640px;
    margin: 0 auto 22px;
    font-weight: 700;
    font-size: 16px;
}

#bk26 .bk-btnw {
    display: inline-block;
    background: #fff;
    color: var(--bk-blue) !important;
    font-weight: 700;
    font-size: 17px;
    padding: 6px 28px;
    border-radius: 4px;
    text-decoration: none;
}

#bk26 .bk-btnw:hover {
    background: var(--bk-yellow);
    color: var(--bk-blue) !important;
}

/* Kalender mit sich öffnenden Türchen im Hintergrund */
#bk26 .bk-calbg {
    position: absolute;
    right: clamp(-160px, -4.5vw, -60px);
    bottom: clamp(110px, 7vw, 190px);
    width: clamp(360px, 27vw, 720px);
    z-index: 1;
    pointer-events: none;
    opacity: .32;
    transform: perspective(1400px) rotateY(-22deg) rotateZ(-9deg);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 45% 45%, #000 55%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 70% at 45% 45%, #000 55%, transparent 100%);
}

#bk26 .bk-calimg {
    position: relative;
    border-radius: 6px;
}

#bk26 .bk-calimg img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

#bk26 .bk-door {
    position: absolute;
    perspective: 600px;
}

#bk26 .bk-door-in {
    position: absolute;
    inset: 0;
    border-radius: 5px;
    background: var(--bk-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bk-blue);
    box-shadow: inset 0 0 18px rgba(0, 70, 142, .35);
}

#bk26 .bk-door-in svg {
    width: 42%;
    height: auto;
    max-width: 44px;
}

#bk26 .bk-door-flap {
    position: absolute;
    inset: 0;
    border-radius: 5px;
    background-repeat: no-repeat;
    transform-origin: 0 50%;
    backface-visibility: hidden;
    /* Goldener Rand, damit die Türchen auch geschlossen erkennbar sind */
    box-shadow: 0 0 0 2px rgba(255, 208, 0, .85), 0 0 10px rgba(255, 208, 0, .45);
    animation: bk-dooropen 10s ease-in-out infinite;
}

@keyframes bk-dooropen {
    0%, 8% { transform: rotateY(0); }
    22%, 42% { transform: rotateY(-110deg); }
    56%, 100% { transform: rotateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    #bk26 .bk-calbg {
        display: none;
    }

    .bk-corner {
        width: 200px;
        height: auto;
    }
}

@media (max-width: 760px) {
    #bk26 .bk-countdown-box {
        padding: 26px 12px 30px;
    }

    #bk26 .bk-cd {
        gap: 6px;
        flex-wrap: nowrap;
    }

    #bk26 .bk-cdu {
        width: 68px;
        padding: 10px 0 8px;
    }

    #bk26 .bk-cdn {
        font-size: 34px;
    }

    #bk26 .bk-cdl {
        font-size: 10px;
        letter-spacing: 0;
    }

    /* Vorverkaufsstellen: mehr Zeilenabstand, damit die Links mit dem Finger treffbar sind */
    #bk26 .bk-sales {
        line-height: 2;
    }

    body.bochum footer nav a {
        display: inline-block;
        padding: 8px 4px;
    }

    #bk26 .bk-glow,
    #bk26 .bk-glow-sm {
        font-size: 17px;
        padding: 14px 26px;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    /* Sternenkette oben links kleiner, damit sie das Logo nicht überdeckt */
    .bk-corner {
        width: 110px;
    }

    body.bochum header {
        padding-top: 100px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.bochum .bk-snow,
    body.bochum .bk-corner *,
    body.bochum .bk-fchain *,
    #bk26 * {
        animation: none !important;
    }

    body.bochum .bk-snow {
        display: none;
    }
}
