/* ============================================================
   .hk-page – Dunkler Seiten-Container
   Wird von front-page.php und page-templates/dark.php um
   the_content() gelegt. Überschreibt einzelne Variablen lokal.
   ============================================================ */

.hk-page {
    --hk-dark: #0f0c14;
    --hk-gray: #1e1826;
}

.hk-page * {
    box-sizing: border-box;
}

.hk-page {
    font-family: var(--hk-font-body);
    background: var(--hk-dark);
    color: var(--hk-white);
    overflow-x: hidden;
}

/* Buttons innerhalb .hk-page (dunkler Kontext) */
.hk-page .hk-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-family: var(--hk-font-body);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}
.hk-page .hk-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(189,9,147,0.45);
}
.hk-page .hk-btn.hk-btn-primary {
    background: linear-gradient(135deg, var(--hk-magenta), var(--hk-yellow));
    color: var(--hk-white);
}
.hk-page .hk-btn.hk-btn-outline {
    background: transparent;
    border: 2px solid var(--hk-white);
    color: var(--hk-white);
}
.hk-page .hk-btn.hk-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

.hk-label {
    font-family: var(--hk-font-display);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hk-yellow);
    margin-bottom: 0.6rem;
    display: block;
}

.hk-section-title {
    font-family: var(--hk-font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    color: var(--hk-white);
    margin-bottom: 1.2rem;
}


/* ============================================================
   HERO (nur Startseite, gerendert in header.php)
   ============================================================ */

.hk-hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0f0c14;
}
.hk-hero__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hk-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.hk-hero__video--mobile { display: none; }
@media (max-width: 768px) {
    .hk-hero__video--desktop { display: none; }
    .hk-hero__video--mobile  { display: block; }
}
.hk-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(189,9,147,0.55) 0%,
        rgba(248,180,24,0.30) 50%,
        rgba(15,12,20,0.85) 100%
    );
    z-index: 1;
}
.hk-hero__blobs {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.hk-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: hk-float 8s ease-in-out infinite alternate;
}
.hk-blob-1 { width:420px; height:420px; background:var(--hk-magenta); top:-100px; left:-100px; animation-duration:9s; }
.hk-blob-2 { width:350px; height:350px; background:var(--hk-yellow);  bottom:-80px; right:-80px; animation-duration:11s; animation-delay:-3s; }
.hk-blob-3 { width:200px; height:200px; background:var(--hk-magenta); top:50%; right:15%; animation-duration:7s; animation-delay:-1.5s; }
@keyframes hk-float {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(30px,20px) scale(1.08); }
}
.hk-hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 1.5rem;
    animation: hk-fadeup 1s ease both;
}
@keyframes hk-fadeup {
    from { opacity:0; transform:translateY(30px); }
    to   { opacity:1; transform:translateY(0); }
}
.hk-hero__title {
    font-family: var(--hk-font-display);
    font-size: clamp(2.8rem, 9vw, 6.5rem);
    font-weight: 400 !important;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    line-height: 1;
    background: linear-gradient(135deg, #fff 30%, var(--hk-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}
.hk-hero__sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    color: rgba(255,255,255,0.82);
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.hk-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}
.hk-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.6;
    animation: hk-fadeup 1.5s ease 0.6s both;
}
.hk-hero__scroll span { font-size:0.7rem; letter-spacing:0.15em; text-transform:uppercase; color:var(--hk-white); }
.hk-hero__scroll-line {
    width: 1.5px;
    height: 40px;
    background: linear-gradient(to bottom, var(--hk-yellow), transparent);
    animation: hk-scrollpulse 2s ease infinite;
}
@keyframes hk-scrollpulse {
    0%,100% { opacity:0.6; transform:scaleY(1); }
    50%      { opacity:1;   transform:scaleY(1.15); }
}
@media (max-width: 768px) {
    .hk-hero__scroll {
        bottom: 5rem;
        animation: none;
        opacity: 0.55;
    }
}
@media (max-width: 400px) {
    .hk-hero__title {
        font-size: clamp(1.6rem, 7.5vw, 2.4rem);
        letter-spacing: -0.02em;
    }
    .hk-hero__sub {
        font-size: 0.95rem;
    }
}

/* Buttons innerhalb der Hero (immer dunkler Kontext, auch außerhalb .hk-page) */
.hk-hero .hk-btn {
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
    font-family: var(--hk-font-body);
    display: inline-block;
    border-radius: 100px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.hk-hero .hk-btn:hover {
    transform: translateY(-2px);
}
.hk-hero .hk-btn.hk-btn-primary {
    background: linear-gradient(135deg, var(--hk-magenta), var(--hk-yellow));
    color: var(--hk-white);
    border: none;
    box-shadow: 0 4px 20px rgba(189,9,147,0.35);
}
.hk-hero .hk-btn.hk-btn-primary:hover {
    box-shadow: 0 8px 28px rgba(189,9,147,0.5);
    color: var(--hk-white);
}
.hk-hero .hk-btn.hk-btn-outline {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: var(--hk-white);
    backdrop-filter: blur(4px);
}
.hk-hero .hk-btn.hk-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.8);
    color: var(--hk-white);
    box-shadow: none;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.hk-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    background: rgba(15, 12, 20, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 24px rgba(0,0,0,0.4);
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Startseite: transparent über Hero – via JS-Klasse (Firefox-kompatibel) */
body.hk-has-hero .hk-nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* Nach dem Hero: wieder solid (via JS) */
.hk-nav--solid {
    background: rgba(15, 12, 20, 0.95) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 2px 24px rgba(0,0,0,0.4) !important;
}
.hk-nav--solid::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,0.07);
}

.hk-nav__brand {
    font-family: var(--hk-font-display);
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--hk-gold), var(--hk-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    flex-shrink: 0;
}

.hk-nav .menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0 0 0 auto; padding: 0;
}
.hk-nav .menu a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-family: var(--hk-font-body);
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.2s;
}
.hk-nav .menu a:hover { color: var(--hk-gold); }

.hk-nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.hk-nav__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.hk-nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hk-nav__burger.is-open span:nth-child(2) { opacity: 0; }
.hk-nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hk-mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    z-index: 998;
    background: rgba(15, 12, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.5rem clamp(1.5rem, 6vw, 3rem) 2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.hk-mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.hk-mobile-menu__list,
.hk-mobile-menu .menu {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.hk-mobile-menu__list li,
.hk-mobile-menu .menu li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hk-mobile-menu__list a,
.hk-mobile-menu .menu a {
    display: block;
    padding: 1rem 0;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-family: var(--hk-font-body);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s;
}
.hk-mobile-menu__list a:hover,
.hk-mobile-menu .menu a:hover { color: var(--hk-gold); }

@media (max-width: 768px) {
    .hk-nav .menu { display: none; }
    .hk-nav__burger { display: flex; }
    .hk-mobile-menu { display: block; }
}


/* ============================================================
   SITE-FOOTER (global, alle Seiten)
   ============================================================ */

.hk-site-footer {
    background: #1e1826;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 2rem clamp(1.5rem, 6vw, 5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.hk-site-footer__brand {
    font-family: var(--hk-font-display);
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--hk-magenta), var(--hk-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hk-site-footer__links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hk-site-footer__links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.hk-site-footer__links a:hover { color: var(--hk-yellow); }
.hk-site-footer__copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}
