/* === Site Header and Logo === */
.site-header {
    position: relative;
    background-color: var(--logo-header-bg);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}
.site-logo-large {
    display: inline-block;
    width: 120px;
    height: 100px;
    background-image: url("../images/placeholders/logo.5d997becf2aa.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    border: none;
}

[data-theme="dark"] .site-logo-large {
    background-image: url("../images/placeholders/logo_white.6010866fed0d.png");
}

/* === Slogan Styling === */
.site-slogan {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2em;
    color: var(--text-dark);
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0px;
}

/* === Navbar Height and Sticky Variables === */
:root {
    --navbar-height: 70px;
    --sticky-search-height: 0px;
    --sticky-filter-height: 0px;
}

/* === Main Navigation Bar === */
nav {
    background-color: var(--nav-bg);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--navbar-height);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}
.nav-links {
     display: flex;
     gap: 30px;
}
nav a {
    color: var(--nav-text);
    text-shadow: none;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 1.3em;
    transition: color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
nav a:hover {
    color: var(--accent-hover);
    text-shadow: none;
}
.nav-icon {
    width: 1.2em;
    height: 1.2em;
    stroke-width: 1.5;
    stroke: currentColor;
}

/* === Sticky Search Bar === */
.sticky-search-bar {
    position: sticky;
    top: var(--navbar-height);
    z-index: 99;
    background-color: var(--nav-bg);
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-height: 100px;
    overflow: hidden;
    transition: padding-top 0.3s ease, padding-bottom 0.3s ease, max-height 0.3s ease;
    border-bottom: 1px solid var(--border-light);
}
.sticky-search-bar:not(.visible) {
    padding-top: 0;
    padding-bottom: 0;
    max-height: 0;
    border: none;
}
.sticky-search-bar.visible {
    max-height: 100px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.search-input-wrapper {
    position: relative;
    flex-grow: 0;
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}
#sticky-search-input {
    flex-grow: 1;
    padding: 16px 15px;
    border: none;
    border-radius: 0;
    font-size: 1.2em;
    background-color: var(--primary-bg);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    -webkit-appearance: none;
    appearance: none;
    outline: 0;
    box-sizing: border-box;
}
#sticky-search-input::placeholder {
    color: var(--text-light);
}

/* === Sticky Filter Area === */
.sticky-filter-area {
    position: sticky;
    top: calc(var(--navbar-height) + var(--sticky-search-height));
    z-index: 98;
    background-color: var(--nav-bg);
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-light);
}

/* === Calendar Header Controls === */
.calendar-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.calendar-header-controls span.disabled {
    color: #ccc;
    cursor: default;
    pointer-events: none;
    padding: 5px 10px;
}

/* === Category Filter Labels === */
.category-filter-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    margin: 5px;
    height: 40px;
    box-sizing: border-box;
    border-radius: 20px;
    cursor: pointer;
    transition: background-image 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
    text-align: center;
    border: 2px solid white;
    background-color: black;
    color: #fff !important;
    line-height: 1;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-clip: padding-box;
}
.category-filter-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    margin: -1px;
    padding: 0;
    border: 0;
}
.category-filter-label:has(input[type="checkbox"]:checked) {
    color: white;
    border-color: #000;
    background-clip: padding-box;
}

/* === Gradient Definitions for Selected Category Labels === */
.category-filter-label.category-konzerte:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
}
.category-filter-label.category-party:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #0f2027 0%, #203a43 50%, #2c5364 100%);
}
.category-filter-label.category-theater:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #c31432 0%, #240b36 100%);
}
.category-filter-label.category-festival:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #ff4e50 0%, #f9d423 100%);
}
.category-filter-label.category-vortrag:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #1d6761 0%, #27ab9f 100%);
}
.category-filter-label.category-markt:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #874d00 0%, #c78c40 100%);
}
.category-filter-label.category-familie:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #00c6ff 0%, #0072ff 100%);
}
.category-filter-label.category-essen_trinken:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #FFA500, #FFDAB9);
    border-color: transparent;
}
.category-filter-label.category-sport:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #13803b 0%, #6DD5FA 100%);
}
.category-filter-label.category-kunst:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #4a00e0 0%, #8e2de2 100%);
}
.category-filter-label.category-fuehrung:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #525252 0%, #363636 100%);
}
.category-filter-label.category-workshop:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #ff512f 0%, #dd2476 100%);
}
.category-filter-label.category-social:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #ef473a 0%, #cb2d3e 100%);
}
.category-filter-label.category-flohmarkt:has(input[type="checkbox"]:checked) {
    background-color: var(--category-flohmarkt-active, #a17f64);
    color: var(--text-on-dark-accent, white);
    border-color: var(--category-flohmarkt-active, #a17f64);
}
.category-filter-label.category-comedy:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #FF8C00, #FFD700);
    color: white;
    border-color: transparent;
}
.category-filter-label.category-kino:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #4B0082, #4169E1);
    color: white;
    border-color: transparent;
}
.category-filter-label.category-tanzen:has(input[type="checkbox"]:checked) {
    background-image: linear-gradient(to right, #b24592 0%, #f15f79 100%);
    color: white;
    border-color: transparent;
}
.category-filter-label.category-sonstiges:has(input[type="checkbox"]:checked) {
    background-color: var(--category-sonstiges-active, #007adf);
    color: var(--text-on-dark-accent, white);
    border-color: var(--category-sonstiges-active, #007adf);
}
/* === End Category Filter Labels === */

/* === Filter Actions and Close Button === */
.filter-actions-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 15px;
    padding: 0 10px;
    min-height: 40px;
}
.apply-filters-btn {
    /* Ensuring it doesn't have margins that push it off-center */
}
.close-filter-pane-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: black;
    border: 1px solid white;
    color: white;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.close-filter-pane-btn:hover,
.close-filter-pane-btn:focus {
    background-color: #222;
    border-color: #f0f0f0;
}
.close-filter-pane-btn svg {
    stroke: white;
    width: 16px;
    height: 16px;
}

/* === Saved Events Heart Icon === */
.saved-events-heart {
    transition: fill 0.3s ease;
}

.saved-events-heart.has-saved {
    fill: red;
    animation: heartBeat 0.8s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}