/*
 * 04.10.2026: Redesign "Mitternacht". Wird nach style.css geladen und überschreibt dessen Altlasten.
 * Aufbau: 1. Schriften, 2. Design-Tokens, 3. Allgemeines, 4. Buttons, 5. Header, 6. Hero (Startseite), 7. Suche
 */

/* 1. Schriften (lokal eingebunden, Google Fonts: Playfair Display und Poppins, Lizenz OFL) */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/playfair-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/poppins-300-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/poppins-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/poppins-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/poppins-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/poppins-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/poppins-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/poppins-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/poppins-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Design-Tokens */
:root {
    --bb-bg: #070b1f;
    --bb-bg-raised: #0d1330;
    --bb-text: #f6f0ff;
    --bb-text-dim: #c3bde0;
    --bb-violet: #a64dff;
    --bb-violet-deep: #5b2bd6;
    --bb-magenta: #e04ff0;
    --bb-rose: #f472b6;
    --bb-line: rgba(140, 100, 255, 0.35);
    --bb-glow: 0 0 10px rgba(166, 77, 255, 0.55), inset 0 0 12px rgba(166, 77, 255, 0.25);
    --bb-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --bb-font-text: 'Poppins', 'Segoe UI', Arial, sans-serif;
    --bb-header-height: 64px;
}

/* 3. Allgemeines */
body,
html {
    font-family: var(--bb-font-text);
}

body.homepage {
    background-color: var(--bb-bg);
}

html {
    scroll-padding-top: calc(var(--bb-header-height) + 16px);
}

/* 4. Buttons */
.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 26px;
    border: 2px solid var(--bb-violet);
    border-radius: 999px;
    background: rgba(40, 16, 96, 0.55);
    box-shadow: var(--bb-glow);
    color: var(--bb-text);
    font-family: var(--bb-font-text);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-glow:hover,
.btn-glow:focus-visible {
    background: rgba(88, 40, 190, 0.7);
    box-shadow: 0 0 18px rgba(166, 77, 255, 0.8), inset 0 0 14px rgba(166, 77, 255, 0.35);
    color: #fff;
}

/* 5. Header */
#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 11, 31, 0.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bb-line);
    color: var(--bb-text);
}

.site-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    box-sizing: border-box;
    max-width: 1366px;
    height: var(--bb-header-height);
    margin: 0 auto;
    padding: 0 20px;
}

#site-header #logo {
    position: static;
    font-family: var(--bb-font-display);
    font-size: 2.1rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
}

#site-header #logo a {
    color: #fff;
    text-decoration: none;
}

#site-header #main-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

#site-header #main-menu > div a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--bb-text-dim);
    font-size: 0.875rem;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

#site-header #main-menu > div a:hover {
    color: #fff;
}

#site-header #main-menu > div.active a {
    border-color: rgba(120, 100, 255, 0.7);
    background: rgba(70, 50, 190, 0.28);
    box-shadow: inset 0 0 10px rgba(120, 100, 255, 0.25);
    color: #fff;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.header-search-link {
    color: var(--bb-text);
    font-size: 1.1rem;
    text-decoration: none;
}

.header-search-link:hover {
    color: var(--bb-rose);
}

.header-divider {
    width: 1px;
    height: 26px;
    background: var(--bb-line);
}

#site-header #container-language-switcher {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
}

#site-header #container-language-switcher a,
#site-header .mobile-nav-languages a {
    display: block;
    padding: 0;
    line-height: 0;
}

#site-header #container-language-switcher img,
#site-header .mobile-nav-languages img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.2s;
}

#site-header #container-language-switcher a:hover img,
#site-header .mobile-nav-languages a:hover img {
    opacity: 1;
}

.btn-header {
    padding: 8px 20px;
    font-size: 0.875rem;
    white-space: nowrap;
}

#site-header #mobile-menu-burger {
    position: static;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

#site-header #mobile-menu-burger span {
    display: block;
    height: 2px;
    background: var(--bb-text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

#site-header.menu-open #mobile-menu-burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#site-header.menu-open #mobile-menu-burger span:nth-child(2) {
    opacity: 0;
}

#site-header.menu-open #mobile-menu-burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

#site-header #mobile-nav {
    display: none;
    position: static;
    border: 0;
    background: transparent;
}

@media (max-width: 1199px) {
    :root {
        --bb-header-height: 56px;
    }

    .site-header-inner {
        gap: 14px;
        padding: 0 14px;
    }

    #site-header #logo {
        font-size: 1.7rem;
    }

    #site-header #main-menu,
    .header-divider,
    #site-header .site-header-actions #container-language-switcher {
        display: none;
    }

    .site-header-actions {
        gap: 12px;
    }

    #site-header #mobile-menu-burger {
        display: flex;
    }

    #site-header.menu-open #mobile-nav {
        display: flex;
        flex-direction: column;
        padding: 6px 14px 16px;
        border-top: 1px solid var(--bb-line);
        background: rgba(7, 11, 31, 0.97);
    }

    #site-header #mobile-nav > a {
        padding: 14px 6px;
        border-bottom: 1px solid rgba(140, 100, 255, 0.18);
        color: var(--bb-text-dim);
        font-size: 1rem;
        text-decoration: none;
    }

    #site-header #mobile-nav > a.active {
        color: #fff;
    }

    .mobile-nav-languages {
        display: flex;
        gap: 14px;
        padding-top: 16px;
    }
}

@media (min-width: 1200px) {
    .mobile-nav-languages {
        display: none;
    }
}

@media (max-width: 479px) {
    .btn-header {
        padding: 8px 12px;
    }

    .btn-header span,
    .btn-header .fa-arrow-right {
        display: none;
    }
}

/* 6. Hero (Startseite) */
#hero {
    position: relative;
    z-index: 3;
    min-height: 340px;
    background-color: var(--bb-bg);
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-background img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 40%;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(7, 11, 31, 0.78) 0%, rgba(7, 11, 31, 0.35) 45%, rgba(7, 11, 31, 0) 70%),
        linear-gradient(to bottom, rgba(7, 11, 31, 0) 55%, var(--bb-bg) 100%);
}

.hero-content {
    position: relative;
    box-sizing: border-box;
    padding: 36px 20px 80px;
}

.hero-eyebrow,
.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--bb-text);
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
}

.hero-title {
    display: inline-block;
    margin: 6px 0 10px;
    font-family: var(--bb-font-display);
    font-size: clamp(3.25rem, 7vw, 5.25rem);
    font-weight: 500;
    line-height: 1.05;
    background: linear-gradient(to bottom, #ffffff 30%, #f2b6e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-sparkle {
    display: inline-block;
    width: 0.3em;
    height: 0.3em;
    margin-left: 0.08em;
    vertical-align: top;
    background: #fff;
    -webkit-text-fill-color: initial;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

.hero-tagline {
    font-size: 0.8125rem;
    margin-bottom: 18px;
}

.hero-text {
    margin: 0 0 22px;
    max-width: 34em;
    color: var(--bb-text);
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.5;
}

@media (max-width: 767px) {
    #hero {
        min-height: 0;
    }

    .hero-content {
        padding: 28px 16px 72px;
    }

    .hero-eyebrow,
    .hero-tagline {
        letter-spacing: 0.2em;
    }

    .hero-tagline {
        font-size: 0.6875rem;
    }

    .hero-background img {
        object-position: 62% 40%;
    }

    .hero-background::after {
        background:
            linear-gradient(to right, rgba(7, 11, 31, 0.8) 0%, rgba(7, 11, 31, 0.45) 100%),
            linear-gradient(to bottom, rgba(7, 11, 31, 0) 55%, var(--bb-bg) 100%);
    }
}

/* 7. Suche (im Hero, halb über dessen Unterkante) */
#hero #search-container {
    position: absolute;
    left: 50%;
    bottom: 0;
    float: none;
    width: min(440px, calc(100% - 32px));
    transform: translate(-50%, 50%);
    display: block;
}

#hero #search-form-container {
    position: relative;
    margin: 0;
}

#hero #search {
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    padding: 0 48px 0 46px;
    border: 1.5px solid rgba(140, 110, 255, 0.7);
    border-radius: 999px;
    background: rgba(10, 14, 42, 0.92);
    box-shadow: 0 0 14px rgba(120, 90, 255, 0.35);
    color: var(--bb-text);
    font-family: var(--bb-font-text);
    font-size: 0.875rem;
}

#hero #search:not(:placeholder-shown) {
    padding-right: 84px;
}

#hero #search::placeholder {
    color: var(--bb-text-dim);
    opacity: 1;
}

#hero #search:focus {
    outline: none;
    border-color: var(--bb-violet);
    box-shadow: 0 0 18px rgba(166, 77, 255, 0.55);
}

#hero #search-magnifying-glass,
#hero #search-cancel,
#hero #search-submit {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bb-text);
    font-size: 1rem;
    cursor: pointer;
}

#hero #search-magnifying-glass {
    left: 18px;
}

#hero #search-submit {
    right: 18px;
}

#hero #search-cancel {
    right: 48px;
    font-size: 1.125rem;
    color: var(--bb-text-dim);
}

/* Das Löschen-Symbol wird nur angezeigt, wenn etwas eingegeben wurde. */
#hero #search:placeholder-shown ~ #search-cancel {
    display: none;
}

#hero #search-results {
    display: none;
    position: absolute;
    z-index: 2;
    overflow: hidden;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: auto;
    border: 1px solid var(--bb-line);
    border-radius: 18px;
    background: var(--bb-bg-raised);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

#hero .search-result {
    padding: 8px 18px;
    color: var(--bb-text);
    font-size: 0.875rem;
}

#hero .search-result:hover,
#hero .search-result.selected {
    background-color: rgba(120, 90, 255, 0.28);
}

/* 8. Paket-Karten (Lover, Full Bliss, Slave) */
#package-cards {
    box-sizing: border-box;
    width: 100%;
    padding-top: 56px;
    padding-bottom: 28px;
    background: var(--bb-bg);
}

.package-cards {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 14px;
    align-items: stretch;
    max-width: 1366px;
    margin: 0 auto;
}

.package-card {
    --card-color: #8a5cf6;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1.5px solid var(--card-color);
    border-radius: 14px;
    background: var(--bb-bg-raised);
    box-shadow: 0 0 14px color-mix(in srgb, var(--card-color) 45%, transparent);
    color: var(--bb-text);
}

.package-card-lover {
    --card-color: #a55ae8;
}

.package-card-slave {
    --card-color: #5a6af0;
}

.package-card-featured {
    --card-color: #b25bff;
    margin: -8px 0;
    overflow: visible;
    box-shadow: 0 0 22px rgba(178, 91, 255, 0.75), inset 0 0 18px rgba(178, 91, 255, 0.3);
}

.package-card-main {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    min-height: 330px;
}

.package-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.package-card-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(7, 11, 31, 0.6) 0%, rgba(7, 11, 31, 0.15) 65%, rgba(7, 11, 31, 0) 100%),
        linear-gradient(to bottom, rgba(7, 11, 31, 0.15) 0%, rgba(7, 11, 31, 0) 40%, rgba(7, 11, 31, 0.45) 100%);
}

.package-card-text {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    padding: 32px 30px 30px;
}

.package-card-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 12px;
    font-family: var(--bb-font-display);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.05;
    color: #fff;
}

.package-card-title i {
    font-size: 0.5em;
}

.package-card-tags {
    margin-bottom: 18px;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.package-card-text p {
    max-width: 19em;
    margin: 0 0 22px;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.55;
}

.package-card-thumbs {
    --thumb-columns: 3;
    display: grid;
    grid-template-columns: repeat(var(--thumb-columns), minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--bb-line);
    background: rgba(7, 11, 31, 0.92);
}

.package-card-thumbs img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1.5px solid var(--card-color);
    border-radius: 10px;
}

.package-card-featured .package-card-thumbs {
    --thumb-columns: 4;
    border-radius: 0 0 12px 12px;
}

/* Bis 575px Breite zeigt auch "Full Bliss" nur drei Thumbnails. */
@media (max-width: 575px) {
    .package-card-featured .package-card-thumbs {
        --thumb-columns: 3;
    }

    .package-card-featured .package-card-thumbs img:nth-child(n+4) {
        display: none;
    }
}

/* "Full Bliss" in der Mitte: größer, zentriert, mit Badge */
.package-card-badge {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 24px;
    border: 1.5px solid var(--bb-violet);
    border-radius: 999px;
    background: #14083a;
    box-shadow: var(--bb-glow);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

.package-card-featured .package-card-text {
    padding-top: 44px;
    text-align: center;
}

.package-card-featured .package-card-title {
    justify-content: center;
    font-size: 4.25rem;
}

.package-card-featured .package-card-tags {
    font-size: 0.9375rem;
    letter-spacing: 0.3em;
}

.package-card-featured .package-card-text p {
    max-width: 22em;
    margin-right: auto;
    margin-left: auto;
    font-size: 0.9375rem;
}

/* 28.10.2026: Hintergrund der "Full Bliss"-Karte vergrößert (Ursprung oben), damit die Welle weiter unten liegt und nicht hinter der liegenden Acht. */
.package-card-featured .package-card-bg {
    transform: scale(1.2);
    transform-origin: 50% 0;
}

.package-card-featured .package-card-main::after {
    background: linear-gradient(to bottom, rgba(7, 11, 31, 0.1) 0%, rgba(7, 11, 31, 0) 60%, rgba(7, 11, 31, 0.4) 100%);
}

.package-card-featured .package-card-text p {
    margin-bottom: 12px;
}

/* 28.10.2026: Liegende Acht als eigene SVG-Grafik (Vorlage der Projektpartnerin): violetter Lichtschein plus helle, schlanke Kontur, direkt unter dem Text. */
.package-card-infinity {
    display: block;
    width: 90px;
    height: auto;
    margin: 0 auto 24px;
    overflow: visible;
    fill: none;
}

.package-card-infinity .infinity-glow {
    stroke: #b45cff;
    stroke-width: 5;
}

.package-card-infinity .infinity-line {
    stroke: #f3d9ff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-glow-large {
    padding: 14px 40px;
    font-size: 1.125rem;
    box-shadow: 0 0 16px rgba(166, 77, 255, 0.8), inset 0 0 14px rgba(166, 77, 255, 0.35);
}

.package-card-claim {
    margin-top: 22px;
    font-size: 0.6875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.sparkle {
    display: inline-block;
    width: 0.3em;
    height: 0.3em;
    margin-left: 0.08em;
    vertical-align: top;
    background: #fff;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

@media (max-width: 1199px) {
    .package-card-title {
        font-size: 2.5rem;
    }

    .package-card-featured .package-card-title {
        font-size: 3.5rem;
    }

    .package-card-text {
        padding: 28px 22px 24px;
    }
}

@media (max-width: 991px) {
    .package-cards {
        grid-template-columns: minmax(0, 560px);
        gap: 28px;
        justify-content: center;
    }

    .package-card-featured {
        order: -1;
        margin: 14px 0 0;
    }

    .package-card-main {
        min-height: 300px;
    }
}

@media (max-width: 479px) {
    #hero #search {
        font-size: 0.8125rem;
    }

    .btn-glow-large {
        gap: 8px;
        padding: 12px 18px;
        font-size: 1rem;
    }

    .package-card-claim {
        letter-spacing: 0.15em;
    }

    #package-cards {
        padding-top: 48px;
    }

    .package-card-title,
    .package-card-featured .package-card-title {
        font-size: 2.75rem;
    }

    .package-card-featured .package-card-title {
        font-size: 3.25rem;
    }
}

/* 9. Vorteilsleiste */
#benefits {
    box-sizing: border-box;
    width: 100%;
    padding-top: 14px;
    padding-bottom: 14px;
    background: var(--bb-bg);
}

.benefits {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 18px 12px;
    list-style: none;
    border: 1px solid var(--bb-line);
    border-radius: 14px;
    background: rgba(13, 19, 48, 0.75);
}

.benefit {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 4px 18px;
    border-left: 1px solid var(--bb-line);
    color: var(--bb-text);
}

.benefit:first-child {
    border-left: 0;
}

.benefit-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--bb-violet);
    border-radius: 50%;
    background: rgba(70, 30, 160, 0.45);
    box-shadow: var(--bb-glow);
    font-size: 1.0625rem;
    color: #fff;
}

.benefit-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.35;
}

.benefit-text strong {
    font-size: 0.8125rem;
    font-weight: 500;
}

.benefit-text span {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--bb-text-dim);
}

@media (max-width: 1199px) {
    .benefits {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 18px 8px;
        padding: 20px 16px;
    }

    .benefit,
    .benefit:first-child {
        padding: 0;
        border-left: 0;
    }
}

/* 10. Talk-Time (Platzhalter) */
#talk-time {
    box-sizing: border-box;
    width: 100%;
    padding-top: 14px;
    padding-bottom: 14px;
    background: var(--bb-bg);
}

.talk-time-box {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 300px;
    overflow: hidden;
    border: 2px solid var(--bb-violet);
    border-radius: 18px;
    background: linear-gradient(to right, #170a3d 0%, #24114f 45%, #1a0c40 100%);
    box-shadow: 0 0 18px rgba(166, 77, 255, 0.7), inset 0 0 22px rgba(166, 77, 255, 0.3);
    color: var(--bb-text);
    text-decoration: none;
}

/* Hintergrundbild: füllt die rechte Seite und läuft nach links in den Hintergrund aus. */
.talk-time-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 68%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%);
    mask-image: linear-gradient(to right, transparent 0%, #000 38%);
}

.talk-time-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.talk-time-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    max-width: 50%;
    padding: 28px 40px;
}

.talk-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 7px 20px;
    border: 1.5px solid var(--bb-violet);
    border-radius: 999px;
    background: rgba(20, 8, 58, 0.7);
    box-shadow: var(--bb-glow);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bb-text);
}

.talk-time-title {
    font-family: var(--bb-font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.05;
    background: linear-gradient(to bottom, #ffffff 30%, #e3b9f3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.talk-time-title .sparkle {
    -webkit-text-fill-color: initial;
}

.talk-time-subtitle {
    margin: 8px 0 12px;
    font-size: 0.8125rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--bb-text);
}

.talk-time-text {
    margin-bottom: 18px;
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--bb-text);
}

@media (max-width: 991px) {
    .talk-time-box {
        min-height: 340px;
    }

    .talk-time-media {
        width: 100%;
        -webkit-mask-image: none;
        mask-image: none;
    }

    /* Mobil liegt der Text über dem Bild. Der Ausschnitt zeigt die Mitte, damit die Handschrift am rechten Rand nicht unter dem Text liegt. */
    .talk-time-media img {
        object-position: 30% center;
    }

    .talk-time-media::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, rgba(23, 10, 61, 0.92) 0%, rgba(23, 10, 61, 0.7) 60%, rgba(23, 10, 61, 0.35) 100%);
    }

    .talk-time-content {
        max-width: 100%;
        padding: 24px 22px;
    }

    .talk-time-subtitle {
        letter-spacing: 0.2em;
    }
}

/* 11. Popular topics */
#popular-topics {
    box-sizing: border-box;
    width: 100%;
    padding-top: 14px;
    padding-bottom: 40px;
    background: var(--bb-bg);
}

.popular-topics {
    padding: 18px 22px 20px;
    border: 1px solid var(--bb-line);
    border-radius: 14px;
    background: rgba(13, 19, 48, 0.75);
}

.popular-topics-title {
    margin: 0 0 14px;
    font-family: var(--bb-font-text);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--bb-text);
}

.popular-topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.popular-topics-list li {
    flex: 1 1 auto;
    margin: 0;
}

.topic-pill {
    box-sizing: border-box;
    width: 100%;
    padding: 7px 18px;
    border: 1px solid rgba(140, 110, 255, 0.55);
    border-radius: 999px;
    background: rgba(10, 14, 42, 0.8);
    color: var(--bb-text);
    font-family: var(--bb-font-text);
    font-size: 0.8125rem;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.topic-pill:hover,
.topic-pill:focus-visible {
    border-color: var(--bb-violet);
    background: rgba(88, 40, 190, 0.5);
    box-shadow: 0 0 10px rgba(166, 77, 255, 0.5);
}

@media (max-width: 575px) {
    .popular-topics {
        padding: 16px 14px 18px;
    }

    .popular-topics-list {
        gap: 8px;
    }
}

/* 12. Footer (vorläufig nur auf Seiten im dunklen Design: Startseite und Explore-Seiten) */
footer {
    margin-top: 0;
    padding-top: 12px;
    padding-bottom: 24px;
    border-top: 1px solid var(--bb-line);
    background: var(--bb-bg);
}

.footer-menus li {
    border-bottom-color: rgba(140, 100, 255, 0.25);
}

.footer-menus li a,
.copyright {
    color: var(--bb-text-dim);
}

.footer-menus li a:hover {
    color: #fff;
}

/* Allgemeine Seiten ohne Hero (FAQ, Impressum, Konto, Galerie und so weiter): Grundfarben im Dark Mode. */
html[data-theme="dark"],
html[data-theme="dark"] body {
    background-color: var(--bb-bg);
    color: var(--bb-text);
}

html[data-theme="dark"] .top-container-small .content,
html[data-theme="dark"] #top-container-small .content,
html[data-theme="dark"] .gallery-name,
html[data-theme="dark"] .gallery-sitename {
    color: #e9deff;
}

html[data-theme="dark"] #main-container a:not(.button):not(.btn-glow):not(.booking-button-link) {
    color: #c3b2ff;
}

html[data-theme="dark"] #main-container a:not(.button):not(.btn-glow):not(.booking-button-link):hover {
    color: #fff;
}

html[data-theme="dark"] .back-link {
    color: var(--bb-text-dim);
}

html[data-theme="dark"] .back-link:hover {
    color: #fff;
}

/* 13. Explore-Seiten (Lover, Slave) */
.explore-hero {
    position: relative;
    z-index: 1;
    min-height: 300px;
    background-color: var(--bb-bg);
}

.explore-hero .hero-background img {
    object-position: 70% 40%;
}

.explore-hero .hero-content {
    padding-bottom: 36px;
}

.explore-back {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--bb-text);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
}

.explore-back:hover {
    color: var(--bb-rose);
}

.explore-hero .hero-title {
    margin-top: 0;
}

/* Filterleiste: Galerie-Pillen (am Rand abgeschnitten) und Such-Dummy */
#explore-filter,
#explore-galleries {
    box-sizing: border-box;
    width: 100%;
    background: var(--bb-bg);
}

#explore-filter {
    padding-top: 18px;
    padding-bottom: 14px;
}

.explore-filter {
    display: flex;
    align-items: center;
    gap: 20px;
}

.explore-pills {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 60px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 60px), transparent);
}

.explore-pills li {
    flex: 0 0 auto;
    margin: 0;
}

.explore-pills .topic-pill {
    display: block;
    width: auto;
    padding: 9px 20px;
    color: var(--bb-text);
    text-decoration: none;
}

.explore-search {
    position: relative;
    flex: 0 0 320px;
}

.explore-search-input {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 0 46px 0 44px;
    border: 1.5px solid rgba(140, 110, 255, 0.55);
    border-radius: 999px;
    background: rgba(10, 14, 42, 0.92);
    color: var(--bb-text);
    font-family: var(--bb-font-text);
    font-size: 0.8125rem;
}

.explore-search-input::placeholder {
    color: var(--bb-text-dim);
    opacity: 1;
}

.explore-search-input:focus {
    outline: none;
    border-color: var(--bb-violet);
    box-shadow: 0 0 14px rgba(166, 77, 255, 0.45);
}

.explore-search-icon,
.explore-search-submit {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bb-text);
    font-size: 0.9375rem;
}

.explore-search-icon {
    left: 17px;
}

.explore-search-submit {
    right: 17px;
}

/* Galerie-Karten */
#explore-galleries {
    padding-top: 10px;
    padding-bottom: 30px;
}

.explore-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.explore-card {
    overflow: hidden;
    border: 1px solid var(--bb-line);
    border-radius: 14px;
    background: rgba(13, 19, 48, 0.8);
    box-shadow: 0 0 12px rgba(120, 90, 255, 0.18);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.explore-card:hover {
    border-color: var(--bb-violet);
    box-shadow: 0 0 18px rgba(166, 77, 255, 0.5);
}

.explore-card-link {
    display: block;
    padding: 14px;
    color: var(--bb-text);
    text-decoration: none;
}

.explore-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.explore-card-titles {
    min-width: 0;
}

.explore-card-title {
    margin: 0;
    overflow: hidden;
    font-family: var(--bb-font-display);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}

.explore-card-arrow {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--bb-violet);
    border-radius: 50%;
    background: rgba(70, 30, 160, 0.45);
    box-shadow: var(--bb-glow);
    font-size: 0.8125rem;
}

.explore-card-image {
    position: relative;
    overflow: hidden;
    border: 1.5px solid rgba(140, 110, 255, 0.45);
    border-radius: 10px;
    line-height: 0;
}

.explore-card-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* 29.10.2026: "FRESH"-Emblem statt des Sterns (Entwurf der Projektpartnerin, an das Theme angepasst). */
.gallery-card-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.fresh-badge,
.post-preview-content-image.new::after,
.story-preview.new::after {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border: 1px solid rgba(255, 177, 230, 0.95);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(60, 24, 82, 0.9), rgba(23, 15, 48, 0.96));
    box-shadow: 0 0 5px rgba(255, 151, 219, 0.85), 0 0 13px rgba(228, 103, 218, 0.45), inset 0 0 8px rgba(255, 177, 230, 0.12);
    color: #ffe1f4;
    font-family: var(--bb-font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
    text-shadow: 0 0 5px rgba(255, 194, 233, 0.45);
    white-space: nowrap;
}

/* Zunächst nur die erste Zeile zeigen, der Rest wird per "more" clientseitig eingeblendet. */
.explore-cards:not(.is-expanded) .explore-card:nth-child(n+5) {
    display: none;
}

.explore-more-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.explore-more,
.explore-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 28px;
    border: 1px solid rgba(140, 110, 255, 0.55);
    border-radius: 999px;
    background: rgba(10, 14, 42, 0.8);
    color: var(--bb-text);
    font-family: var(--bb-font-text);
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.explore-more:hover,
.explore-more:focus-visible,
.explore-load-more:hover,
.explore-load-more:focus-visible {
    background: rgba(88, 40, 190, 0.5);
    box-shadow: 0 0 10px rgba(166, 77, 255, 0.5);
}

.explore-more i,
.explore-load-more i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.explore-more[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.explore-more-container.is-hidden {
    display: none;
}

@media (max-width: 1199px) {
    .explore-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .explore-cards:not(.is-expanded) .explore-card:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 991px) {
    .explore-filter {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 14px;
    }

    .explore-search {
        flex: 0 0 auto;
    }

    .explore-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .explore-cards:not(.is-expanded) .explore-card:nth-child(n+3) {
        display: none;
    }
}

@media (max-width: 575px) {
    .explore-hero {
        min-height: 0;
    }

    .explore-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .explore-cards:not(.is-expanded) .explore-card:nth-child(n+2) {
        display: none;
    }
}

/* Header auf schmaleren Desktops (1200 bis 1399 px) verdichten, damit alle Menüpunkte neben den Aktionen Platz haben. */
@media (min-width: 1200px) and (max-width: 1399px) {
    .site-header-inner {
        gap: 16px;
    }

    #site-header #main-menu {
        gap: 2px;
    }

    #site-header #main-menu > div a {
        padding: 8px 12px;
    }

    .site-header-actions {
        gap: 14px;
    }
}

/* 14. Latest Content (Explore-Seiten) */
#explore-latest {
    box-sizing: border-box;
    width: 100%;
    padding-top: 14px;
    padding-bottom: 40px;
    background: var(--bb-bg);
}

.explore-latest-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.explore-latest-title {
    margin: 0;
    font-family: var(--bb-font-display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
    color: #fff;
}

.explore-latest-line {
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(to right, var(--bb-line), transparent);
}

.explore-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--bb-text-dim);
}

.explore-sort select {
    padding: 9px 38px 9px 18px;
    border: 1px solid rgba(140, 110, 255, 0.55);
    border-radius: 12px;
    background: rgba(10, 14, 42, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f6f0ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: var(--bb-text);
    font-family: var(--bb-font-text);
    font-size: 0.8125rem;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.explore-sort select:focus {
    outline: none;
    border-color: var(--bb-violet);
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.latest-tile {
    position: relative;
    display: block;
    box-sizing: border-box;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--bb-line);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(60, 28, 130, 0.6), rgba(13, 19, 48, 0.9));
    color: var(--bb-text);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.latest-tile:hover,
.latest-tile:focus-visible {
    border-color: var(--bb-violet);
    box-shadow: 0 0 14px rgba(166, 77, 255, 0.5);
}

.latest-tile-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Verpixelte Vorschaubilder gesperrter Inhalte sind winzig und werden hochskaliert. Die leichte Vergrößerung verhindert helle Ränder. */
.latest-tile.is-locked img {
    transform: scale(1.06);
}

.latest-tile-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 26px;
    padding: 0 8px;
    box-sizing: border-box;
    border-radius: 8px;
    background: rgba(7, 11, 31, 0.78);
    font-size: 0.75rem;
    color: #fff;
}

.latest-tile-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1.5px solid rgba(166, 77, 255, 0.8);
    border-radius: 50%;
    background: rgba(7, 11, 31, 0.6);
    box-shadow: var(--bb-glow);
    font-size: 1rem;
    color: #fff;
    transform: translate(-50%, -50%);
}

.latest-tile-story {
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: radial-gradient(ellipse at 85% 100%, rgba(150, 60, 190, 0.35) 0%, rgba(40, 16, 96, 0.3) 45%, rgba(13, 19, 48, 0.9) 100%);
}

.latest-tile-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--bb-text-dim);
}

.latest-tile-title {
    margin: 8px 0 6px;
    overflow: hidden;
    font-family: var(--bb-font-display);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-tile-excerpt {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--bb-text-dim);
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.latest-tile-story .latest-tile-lock {
    top: 10px;
    right: 10px;
    left: auto;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    transform: none;
}

@media (max-width: 1199px) {
    .latest-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .latest-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .explore-latest-head {
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .explore-latest-title {
        font-size: 1.625rem;
    }

    .explore-latest-line {
        display: none;
    }

    .explore-sort {
        margin-left: auto;
    }

    .latest-tile-story {
        padding: 10px;
    }

    .latest-tile-title {
        font-size: 0.9375rem;
        margin: 6px 0 4px;
    }

    .latest-tile-excerpt {
        -webkit-line-clamp: 2;
    }
}

/* 15. Umschalter Dark Mode / Light Mode (im Hero rechts unten, mobil rechts oben) */
.mode-toggle {
    position: absolute;
    right: max(20px, calc((100% - 1366px) / 2 + 20px));
    bottom: 16px;
    z-index: 2;
    padding: 9px 18px;
    border: 1px solid rgba(140, 110, 255, 0.55);
    border-radius: 999px;
    background: rgba(10, 14, 42, 0.8);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--bb-text);
    font-family: var(--bb-font-text);
    font-size: 0.8125rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.mode-toggle:hover,
.mode-toggle:focus-visible {
    background: rgba(88, 40, 190, 0.5);
    box-shadow: 0 0 10px rgba(166, 77, 255, 0.5);
}

/* Angezeigt wird immer der Modus, zu dem gewechselt wird. */
.mode-toggle-to-light,
.mode-toggle-to-dark {
    display: none;
    align-items: center;
    gap: 8px;
}

html[data-theme="dark"] .mode-toggle-to-light,
html[data-theme="light"] .mode-toggle-to-dark {
    display: inline-flex;
}

@media (max-width: 767px) {
    .mode-toggle {
        right: 14px;
        top: 10px;
        bottom: auto;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* 16. Verzierungen für Seiten ohne Hero (Klasse "page-deco" am <body>) */

/* Zwei große Glow-Ringe links und rechts, die auf Desktop von außen hereinschweben und danach langsam treiben. Sie liegen hinter dem Inhalt. */
body.page-deco::before,
body.page-deco::after {
    content: '';
    position: fixed;
    z-index: -1;
    display: none;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    pointer-events: none;
}

body.page-deco::before {
    top: 18vh;
    left: -330px;
    border: 2px solid rgba(166, 77, 255, 0.5);
    background: radial-gradient(circle, rgba(166, 77, 255, 0.18) 0%, rgba(166, 77, 255, 0.06) 55%, transparent 72%);
    box-shadow: 0 0 70px rgba(166, 77, 255, 0.35), inset 0 0 70px rgba(166, 77, 255, 0.22);
}

body.page-deco::after {
    top: 52vh;
    right: -350px;
    width: 620px;
    height: 620px;
    border: 2px solid rgba(232, 120, 190, 0.45);
    background: radial-gradient(circle, rgba(232, 120, 190, 0.16) 0%, rgba(232, 120, 190, 0.05) 55%, transparent 72%);
    box-shadow: 0 0 70px rgba(232, 120, 190, 0.3), inset 0 0 70px rgba(232, 120, 190, 0.2);
}

@media (min-width: 992px) {
    body.page-deco::before,
    body.page-deco::after {
        display: block;
    }

    body.page-deco::before {
        animation: deco-in-left 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both, deco-float 11s ease-in-out 1.6s infinite alternate;
    }

    body.page-deco::after {
        animation: deco-in-right 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both, deco-float 13s ease-in-out 2s infinite alternate-reverse;
    }
}

@keyframes deco-in-left {
    from {
        opacity: 0;
        transform: translateX(-70%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes deco-in-right {
    from {
        opacity: 0;
        transform: translateX(70%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes deco-float {
    from {
        transform: translateY(-14px);
    }

    to {
        transform: translateY(18px);
    }
}

/* Neon-Linie mit Sparkle unter dem Seitentitel, die sich beim Laden von links aufzieht. */
body.page-deco .top-container-small .content::after {
    content: '';
    display: block;
    width: min(360px, 70%);
    height: 18px;
    margin-top: 8px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M9 0l2.2 6.8L18 9l-6.8 2.2L9 18l-2.2-6.8L0 9l6.8-2.2z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat right center / 18px 18px,
        linear-gradient(to right, #a64dff 0%, #e878be 60%, rgba(232, 120, 190, 0) 100%) no-repeat left center / calc(100% - 22px) 2px;
    filter: drop-shadow(0 0 5px rgba(166, 77, 255, 0.7));
    transform-origin: left center;
    animation: deco-line 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both;
}

@keyframes deco-line {
    from {
        opacity: 0;
        transform: scaleX(0);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-deco::before,
    body.page-deco::after,
    body.page-deco .top-container-small .content::after {
        animation: none;
    }
}

/* 17. Abstände und Footer auf Seiten ohne Hero */

/* Seitentitel: mehr Abstand zum Header. */
.top-container-small .content,
#top-container-small {
    padding-top: 36px;
}

/* Platz unter dem "Back"-Link. */
.back-link {
    display: inline-block;
    margin-bottom: 56px;
}

/* Der Footer steht immer am unteren Rand des Fensters, auch wenn der Inhalt kurz ist (der <body> ist eine Flex-Spalte mit mindestens Fensterhöhe). */
footer {
    margin-top: auto;
}

/* 18. Galerie-Seite: Überschrift. Die ID-Regel aus style-galerie.css (padding: 0 15px) wird später geladen, daher hier mit höherer Spezifität. Die Schrift "tequilaregular" gibt es nicht mehr, es gilt die Display-Schrift. */
body #top-container-small {
    padding-top: 48px;
}

.gallery-name,
.gallery-sitename {
    font-family: var(--bb-font-display);
    font-weight: 500;
}

/* 19. Suche auf den Explore-Seiten: Vorschläge und Ergebnisse */
.explore-search-submit {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 1;
}

.explore-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    overflow: hidden;
    border: 1px solid var(--bb-line);
    border-radius: 18px;
    background: var(--bb-bg-raised);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.explore-suggestion,
.explore-suggestion-empty {
    padding: 9px 18px;
    color: var(--bb-text);
    font-size: 0.875rem;
}

.explore-suggestion {
    cursor: pointer;
}

.explore-suggestion:hover,
.explore-suggestion.selected {
    background-color: rgba(120, 90, 255, 0.28);
}

.explore-suggestion-empty {
    color: var(--bb-text-dim);
}

.explore-results-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    margin-bottom: 14px;
}

.explore-results-actions form {
    margin: 0;
}

.explore-link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
    border: 0;
    background: transparent;
    color: var(--bb-text);
    font-family: var(--bb-font-text);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.explore-link-button:hover,
.explore-link-button:focus-visible {
    color: var(--bb-rose);
}

.explore-results-message {
    padding: 28px 0;
    color: var(--bb-text-dim);
    text-align: center;
}

/* Das Attribut "hidden" soll gegenüber den display-Regeln dieser Elemente gewinnen. */
.explore-results-actions[hidden],
.explore-results-message[hidden],
.explore-more-container[hidden],
#photos-more-error[hidden] {
    display: none;
}

/* 20. Links zu Secret, Costumes, Videos und Stories unter dem Suchfeld */
#quick-links {
    box-sizing: border-box;
    width: 100%;
    padding-top: 52px;
    padding-bottom: 24px;
    background: var(--bb-bg);
}

#quick-links + #package-cards {
    padding-top: 28px;
}

.quick-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quick-links-list li {
    position: relative;
    margin: 0;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: auto;
    padding: 9px 26px;
    font-size: 0.9375rem;
    text-decoration: none;
}

/* Mit Sternchen rechts vom Text weniger Abstand zum rechten Rand. */
.quick-link.has-new {
    padding-right: 16px;
}

/* Die Sternchen ragen über den Text hinaus, ohne den Button höher zu machen als die anderen. */
.quick-link .bb-new-stars {
    margin-top: -8px;
    margin-bottom: -8px;
}

/* 21. Formulare (Mein Konto, Kasse, Login) im Dark Mode: gedämpfte Eingabefelder statt weißer Flächen */
html[data-theme="dark"] .woocommerce form input[type="text"],
html[data-theme="dark"] .woocommerce form input[type="email"],
html[data-theme="dark"] .woocommerce form input[type="password"],
html[data-theme="dark"] .woocommerce form input[type="tel"],
html[data-theme="dark"] .woocommerce form input[type="number"],
html[data-theme="dark"] .woocommerce form input[type="url"],
html[data-theme="dark"] .woocommerce form textarea,
html[data-theme="dark"] .woocommerce form select,
html[data-theme="dark"] .woocommerce-input-wrapper input,
html[data-theme="dark"] .woocommerce-form-login input[type="text"],
html[data-theme="dark"] .woocommerce-form-login input[type="password"],
html[data-theme="dark"] .woocommerce-Input,
html[data-theme="dark"] .woocommerce .select2-container--default .select2-selection--single {
    border: 1px solid rgba(140, 100, 255, 0.35);
    background-color: #131a3d;
    color: var(--bb-text);
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

html[data-theme="dark"] .woocommerce form input::placeholder,
html[data-theme="dark"] .woocommerce form textarea::placeholder {
    color: rgba(195, 189, 224, 0.55);
}

html[data-theme="dark"] .woocommerce form input[type="text"]:focus,
html[data-theme="dark"] .woocommerce form input[type="email"]:focus,
html[data-theme="dark"] .woocommerce form input[type="password"]:focus,
html[data-theme="dark"] .woocommerce form input[type="tel"]:focus,
html[data-theme="dark"] .woocommerce form input[type="number"]:focus,
html[data-theme="dark"] .woocommerce form input[type="url"]:focus,
html[data-theme="dark"] .woocommerce form textarea:focus,
html[data-theme="dark"] .woocommerce form select:focus {
    outline: 0;
    border-color: var(--bb-violet);
    background-color: #182051;
    box-shadow: 0 0 0 3px rgba(166, 77, 255, 0.25);
}

/* Browser-Autofill soll die Felder nicht wieder hell färben. */
html[data-theme="dark"] .woocommerce form input:-webkit-autofill,
html[data-theme="dark"] .woocommerce form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--bb-text);
    caret-color: var(--bb-text);
    box-shadow: 0 0 0 1000px #131a3d inset;
}

html[data-theme="dark"] .woocommerce form .show-password-input::after,
html[data-theme="dark"] .woocommerce-page form .show-password-input::after {
    color: var(--bb-text-dim);
}

html[data-theme="dark"] .woocommerce-EditAccountForm fieldset {
    border-color: rgba(140, 100, 255, 0.3);
    border-radius: 10px;
}

html[data-theme="dark"] .woocommerce form label,
html[data-theme="dark"] .woocommerce-form-row label,
html[data-theme="dark"] .woocommerce-form-row span em {
    color: var(--bb-text-dim);
}

html[data-theme="dark"] .woocommerce form .required {
    color: var(--bb-rose);
}

html[data-theme="dark"] .woocommerce button.button:not(.alt),
html[data-theme="dark"] .woocommerce a.button:not(.alt),
html[data-theme="dark"] .woocommerce input.button:not(.alt) {
    border: 1px solid rgba(140, 110, 255, 0.7);
    background: linear-gradient(135deg, #5b2bd6, #8a3df0);
    color: #fff;
    text-shadow: none;
    box-shadow: 0 0 10px rgba(166, 77, 255, 0.35);
}

html[data-theme="dark"] .woocommerce button.button:not(.alt):hover,
html[data-theme="dark"] .woocommerce a.button:not(.alt):hover,
html[data-theme="dark"] .woocommerce input.button:not(.alt):hover {
    background: linear-gradient(135deg, #6c3ae8, #9d52ff);
    color: #fff;
    box-shadow: 0 0 14px rgba(166, 77, 255, 0.6);
}

/* 22. Shop-Seite (/pakete): Auf schmalen Bildschirmen die Produkte untereinander statt in drei Spalten anzeigen. WooCommerce setzt die Breite über "columns-3" fest. */
@media (max-width: 575px) {
    body .woocommerce.columns-3 ul.products li.product,
    body .woocommerce-page.columns-3 ul.products li.product {
        float: none;
        clear: both;
        width: 100%;
        margin-right: 0;
        margin-bottom: 40px;
    }
}

/* 23. Produktdetailseite: Auf schmalen Bildschirmen Bild und Beschreibung untereinander statt nebeneinander anzeigen (die Breiten in style.css sind mit !important gesetzt). */
@media (max-width: 575px) {
    .single-product .woocommerce-product-gallery,
    .single-product .summary.entry-summary {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        float: none !important;
    }

    .single-product .woocommerce-product-gallery {
        margin-bottom: 8px;
    }

    .single-product .woocommerce-product-gallery img {
        display: block;
        width: 100%;
        max-height: 360px;
        object-fit: cover;
    }
}

/* 24. Anker auf der Shop-Seite (z. B. /pakete/#product-full-bliss): Das Produkt soll beim Sprung nicht unter dem Header landen. */
ul.products li.product {
    scroll-margin-top: calc(var(--bb-header-height) + 16px);
}

/* 25. Galerie: Das Vollbild-Overlay (mit "Schließen"-Button) muss über dem sticky Header (z-index 100) und der WordPress-Admin-Leiste (99999) liegen. */
#image-full-size-container {
    top: 0;
    left: 0;
    z-index: 100000;
}

/* Die Light-Mode-Variante der liegenden Acht ist standardmäßig (Dark Mode) ausgeblendet; style-light.css schaltet sie um. */
.package-card-infinity-light {
    display: none;
}

/* 29.10.2026: Galerie-Seite: "FRESH" statt des Sterns, immer oben rechts im Bild (überschreibt den Stern aus style.css). */
.post-preview-content-image.new {
    position: relative;
}

.post-preview-content-image.new::after {
    content: 'FRESH';
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: auto;
    height: auto;
    background-image: linear-gradient(135deg, rgba(60, 24, 82, 0.9), rgba(23, 15, 48, 0.96));
    pointer-events: none;
}

/* 26. Geschichten (Detailansicht): Dunkle Karte statt weißer Fläche, damit die helle Schrift im Dark Mode lesbar ist. Im Light Mode liefern die Variablen weiße Karte und dunkle Schrift. */
.container-story {
    border-color: var(--bb-line);
    background-color: var(--bb-bg-raised);
    box-shadow: 0 0 18px rgba(120, 90, 255, 0.18);
    color: var(--bb-text);
}

.container-story h1,
.container-story-text h1 {
    color: var(--bb-text);
}

.container-story img {
    border-radius: 14px;
}

/* 27. Funkelnde Sternchen für neue Inhalte (Entwurf der Projektpartnerin). Standardfarben für den Dark Mode; die Light-Mode-Farben stehen in style-light.css. */
.bb-new-stars {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 30px;
    height: 28px;
    vertical-align: middle;
    pointer-events: none;
}

.bb-new-stars .star {
    position: absolute;
    display: block;
    font-family: Georgia, serif;
    font-weight: normal;
    line-height: 1;
    transform-origin: center;
    animation: bb-star-twinkle 3.6s ease-in-out infinite;
}

.bb-new-stars .star:nth-child(1) { left: 13px; top: 0; font-size: 17px; animation-delay: -0.7s; color: #fff0fb; }
.bb-new-stars .star:nth-child(2) { left: 1px; top: 10px; font-size: 9px; animation-delay: -2s; color: #ff9ed9; }
.bb-new-stars .star:nth-child(3) { left: 20px; top: 15px; font-size: 10px; animation-delay: -1.3s; color: #ce9dff; }
.bb-new-stars .star:nth-child(4) { left: 7px; top: 21px; font-size: 7px; animation-delay: -3s; color: #e9b7ff; }
.bb-new-stars .star:nth-child(5) { left: 24px; top: 2px; font-size: 5px; animation-delay: -2.6s; color: #ffa9e6; }

@keyframes bb-star-twinkle {
    0%, 100% {
        opacity: 0.55;
        transform: scale(0.7);
        filter: brightness(0.9);
    }

    38% {
        opacity: 1;
        transform: scale(1.17);
        filter: brightness(1.5) drop-shadow(0 0 4px currentColor);
    }

    65% {
        opacity: 0.75;
        transform: scale(0.9);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-new-stars .star {
        animation: none;
        opacity: 1;
    }
}

/* 28. Geschichten (Listenseite): "FRESH" oben rechts in der Karte für Geschichten der Kategorie "Neues", gleiche Logik wie bei den Galerien. */
.story-preview.new {
    position: relative;
}

.story-preview.new::after {
    content: 'FRESH';
    position: absolute;
    top: 14px;
    right: 14px;
    pointer-events: none;
}

/* Platz für das Emblem lassen, damit lange Titel nicht darunter laufen. */
.story-preview.new .story-preview-title {
    padding-right: 84px;
}

/* 29. Warteanimation des "more"-Buttons in "Alle Fotos" */
.explore-load-more.is-loading {
    cursor: progress;
    opacity: 0.75;
}
