/* Partyfax CSS - Authentic 1:1 Blocksy Child Theme Reproduction */

:root {
    --theme-palette-color-1: #e5d7a7;
    --theme-palette-color-2: #847a52;
    --theme-palette-color-3: #b42225;
    --theme-palette-color-4: #44422b;
    --theme-palette-color-5: #E2E7ED;
    --theme-palette-color-6: #edeff2;
    --theme-palette-color-7: #f8f9fb;
    --theme-palette-color-8: #ece5ca;
    --theme-text-color: #5e573b;
    --theme-link-initial-color: #7a6b3e;
    --theme-link-hover-color: #ffffff;
    --theme-selection-text-color: #ffffff;
    --theme-selection-background-color: #e5d7a7;
    --theme-border-color: var(--theme-palette-color-5);
    --theme-headings-color: #e5d7a7;
    --theme-heading-1-color: var(--theme-palette-color-2);
    --theme-heading-3-color: var(--theme-palette-color-4);
    --theme-heading-4-color: #847a52;
    --theme-heading-5-color: #847a52;
    --theme-normal-container-max-width: 1000px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-position: 0% 0%;
    background-repeat: repeat-x;
    background-color: #010003;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../images/bodybg.gif');
    color: var(--theme-text-color);
    font-family: var(--font-stack);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
    padding: 0;
}

body.drawer-open {
    overflow: hidden;
}

a {
    color: var(--theme-link-initial-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--theme-palette-color-4);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--theme-heading-3-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 20px; font-weight: 800; line-height: 1.5; color: var(--theme-palette-color-2); }
h2 { font-size: 35px; font-weight: 700; line-height: 2; }
h3 { font-size: 25px; font-weight: 700; line-height: 2; color: var(--theme-palette-color-4); }
h4 { font-size: 17px; font-weight: 700; line-height: 2; color: #847a52; }
h5 { font-size: 15px; font-weight: 700; line-height: 2; color: #847a52; }

/* Main Wrapper (Centered 1000px on bodybg.gif) */
.site-wrapper,
#main-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--theme-palette-color-8); /* #ece5ca */
    box-shadow: 0px 12px 18px -6px rgba(34, 56, 101, 0.08);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ct-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header Banner */
.ct-header {
    background-color: transparent;
    padding: 0;
    position: relative;
}

.site-branding {
    text-align: center;
    background-color: #ffffff;
}

.site-logo-container {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.site-logo-container img.default-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 290px;
    object-fit: cover;
}

/* Mobile Trigger Button in Header */
.mobile-header-top {
    display: none;
    background-color: var(--theme-palette-color-2);
    padding: 8px 15px;
    justify-content: flex-end;
    align-items: center;
}

.ct-header-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--theme-palette-color-1);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.ct-header-trigger:hover {
    background-color: var(--theme-palette-color-4);
    color: #ffffff;
}

/* Desktop Navigation Menu */
.main-navigation {
    background-color: var(--theme-palette-color-1); /* #e5d7a7 */
    height: 54px;
    display: flex;
    align-items: center;
    border-top: none;
    border-bottom: none;
}

.main-navigation .ct-container {
    height: 100%;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.nav-menu li {
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-menu li a.ct-menu-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 9px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11.5px;
    white-space: nowrap;
    line-height: 1.3;
    color: var(--theme-text-color);
    background-color: transparent;
    border-radius: 0;
    border-bottom: 3.5px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}

.nav-menu li a.ct-menu-link:hover {
    background-color: transparent;
    color: var(--theme-palette-color-4);
    border-bottom: 3.5px solid var(--theme-palette-color-2);
}

.nav-menu li.active a.ct-menu-link {
    background-color: transparent;
    color: var(--theme-palette-color-4);
    border-bottom: 3.5px solid var(--theme-palette-color-4);
}

.nav-menu li.admin-menu-link {
    margin-left: 6px;
}

.nav-menu li.admin-menu-link a.ct-menu-link {
    height: auto;
    padding: 5px 11px;
    background-color: #847a52;
    color: #ffffff !important;
    border-radius: 4px;
    border-bottom: none;
    font-size: 11px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
    transition: background-color 0.2s;
}

.nav-menu li.admin-menu-link a.ct-menu-link:hover {
    background-color: #44422b;
    border-bottom: none;
    color: #ffffff !important;
}

/* Mobile Offcanvas Drawer */
.ct-drawer-canvas {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.ct-drawer-canvas.active {
    visibility: visible;
    opacity: 1;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
}

#offcanvas {
    position: absolute;
    top: 0;
    right: 0;
    width: 82vw;
    max-width: 380px;
    height: 100%;
    background-color: var(--theme-palette-color-2);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    overflow-y: auto;
}

.ct-drawer-canvas.active #offcanvas {
    transform: translateX(0);
}

.ct-panel-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.ct-panel-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.ct-toggle-close {
    background: rgba(0,0,0,0.15);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.ct-toggle-close:hover {
    background: var(--theme-palette-color-3);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav-list li a {
    display: block;
    padding: 14px 10px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: padding-left 0.2s, color 0.2s;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li.active a {
    color: var(--theme-palette-color-1);
    padding-left: 16px;
}

/* Site Content Container */
.site-content {
    flex: 1;
    padding: 20px 0 40px 0;
    background-color: var(--theme-palette-color-8); /* #ece5ca */
}

/* App Hero Banner */
.app-banner-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--theme-palette-color-1);
    border-radius: 19px;
    margin: 0 auto 20px auto;
    padding: 2px 16px;
    width: fit-content;
}

/* Leaflet Map */
.map-container {
    height: 360px;
    width: 100%;
    z-index: 1;
    margin: 0;
    margin-bottom: 40px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Highlights (Volksfeste) Carousel & Day Sections */
.event-day-section,
.highlight-day-section {
    border: 2px solid #847a52;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 24px;
    background-color: var(--theme-palette-color-8);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.highlight-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fill, 225px);
    grid-auto-flow: column;
    background-color: var(--theme-palette-color-8);
    padding: 12px 14px;
    overflow-x: auto; 
    margin: 0;
    border-radius: 0;
}

.highlight-label {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 4px 0;
    display: block; 
    text-align: center;
    white-space: nowrap;      
    overflow: hidden;         
    text-overflow: ellipsis;  
    max-width: 100%;
    color: #44422b;
}

.highlight-card {
    background-color: white;
    border-radius: 0.5rem;
    width: 225px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.highlight-card:hover {
    opacity: 0.7;
}

.highlight-card .event-image {
    height: 150px;
    overflow: hidden;
}

.highlight-card .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-details--highlight-inner {
    position: relative;
    padding: 0.5rem;
    text-align: center;
    background: #ffffff;
}

.highlight-label--small {
    font-size: 16px;
    font-weight: bold;
    color: #44422b;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blinking-border {
    padding: 5px;
    position: relative;
    z-index: 1;
}

.blinking-border::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #7a6b3e;
    border-radius: 0.5rem;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    animation: blink-border 2s infinite;
    z-index: -1;
}

@keyframes blink-border {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Event List Day Grouping */
.event-list {
    display: flex;
    flex-direction: column;
}

.event-day {
    background-color: #847a52;
    border-radius: 0;
    box-shadow: none;
    padding: 7px 14px;
    margin: 0;
    border-bottom: 1.5px solid #756c48;
}

.day-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #E5D7A7;
    margin: 0;
    line-height: 1.3;
}

.event-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    background-color: var(--theme-palette-color-8);
    padding: 12px 14px;
    margin: 0;
}

@media (max-width: 640px) {
    .event-day-section,
    .highlight-day-section {
        margin-bottom: 16px;
        border-radius: 10px;
    }

    .event-day {
        padding: 6px 10px;
    }

    .day-title {
        font-size: 1.1rem;
    }

    .event-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 10px;
    }

    .highlight-grid {
        padding: 10px;
        gap: 10px;
    }
}

.event-card {
    position: relative;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 300px;
    line-height: normal;
    transition: opacity 0.2s ease;
}

.event-card:hover {
    opacity: 0.7;
}

.event-card--canceled {
    opacity: 0.4;
}

.event-image-bg {
    background-size: cover;
    background-position: center;
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.event-image-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
}

.time-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: #000000;
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    border-radius: 10px;
    padding: 0.25rem 0.5rem;
    z-index: 2;
}

.genre-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-weight: 600;
    font-size: 12px;
    border-radius: 10px;
    padding: 0.25rem 0.5rem;
    z-index: 2;
}

.event-details--highlight {
    position: relative;
    background-color: transparent;
    padding: 0.75rem;
    padding-top: 5px;
}

.event-title {
    font-size: 1.1rem;
    color: #847a52;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin: 0;
}

.event-band {
    float: right;
    width: 80px;
    position: absolute;
    padding-right: 4px;
    top: 10px;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100px;
}

.bandpic {
    max-height: 40px;
    max-width: 75px;
    object-fit: contain;
}

.event-location {
    font-size: 0.875rem;
    color: #4a4a4a;
    margin-bottom: 0;
    padding-top: 5px;
}

.event-description {
    font-size: 0.75rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.event-artists-text {
    font-size: 0.75rem;
    color: #666;
    font-weight: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Single Event Page Specifics (1:1 with termin.php) */
.event-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    border-radius: 10px;
    margin: 12px 0;
}

.event-badge {
    display: block;
    padding: 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #eaddba;
    color: #2f2f33;
    width: 100%;
    box-sizing: border-box;
}

.event-badge__label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #44422b;
    font-size: 0.95rem;
}

.event-badge__value {
    display: block;
    font-weight: 500;
    opacity: 0.95;
    color: #2f2f33;
    font-size: 0.95rem;
}

.event-badge__images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.event-badge__artist {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    gap: 6px;
}

.event-badge__artist-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
}

.event-map {
    background: #eaddba;
    padding: 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 12px 0;
    width: 100%;
    box-sizing: border-box;
}

.event-map__label {
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
    color: #44422b;
}

.event-description-badge {
    background: #eaddba;
    padding: 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0;
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
}

.event-description-badge .event-badge__value {
    display: block;
    font-weight: 500;
    color: #2f2f33;
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.event-content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 18px 0;
}

.event-content.no-description {
    justify-content: center;
}

.event-content.landscape {
    flex-direction: column;
}

.event-content.portrait {
    flex-direction: row;
}

.event-image-container {
    flex: 0 0 320px;
    max-width: 100%;
    box-sizing: border-box;
}

.event-image-container img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.event-content.landscape .event-image-container {
    flex: none;
    width: 100%;
    text-align: center;
}

.event-content.landscape .event-image-container img {
    max-height: 500px;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
}

.abgesagt {
    color: #d32f2f;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    padding: 4px 12px;
    border: 2px solid #d32f2f;
    border-radius: 6px;
    background: rgba(211, 47, 47, 0.08);
}

.abgesagt-badge-center {
    color: #d32f2f;
    font-size: 1.5rem;
    font-weight: 800;
    border: 2.5px solid #d32f2f;
    padding: 6px 24px;
    border-radius: 8px;
    background: rgba(211, 47, 47, 0.08);
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(211,47,47,0.15);
    margin: 0 auto;
}

/* Date List View (.eventdiv) */
.eventdiv {
    margin-bottom: 10px;
    padding: 10px 14px;
    position: relative;
    background-color: #EADFB9;
    color: #7a6b3e;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.eventdiv:hover {
    background-color: #dacea6;
}

/* Bands & DJs Grid */
.dj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 35px;
}

.dj-card {
    background: #ffffff;
    border: 1px solid #dcd4b8;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dj-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.dj-card-logo img {
    max-width: 100%;
    height: 75px;
    object-fit: contain;
    margin-bottom: 8px;
}

.dj-name-btn {
    display: inline-block;
    width: 100%;
    padding: 6px 0;
    background: var(--theme-palette-color-4);
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.dj-name-btn:hover {
    background: var(--theme-palette-color-2);
    color: #fff;
}

/* Forms */
.formtbl {
    width: 100%;
    border-collapse: collapse;
}

.formcol {
    padding: 10px 8px;
    vertical-align: middle;
}

.formtbl input[type="text"],
.formtbl input[type="email"],
.formtbl input[type="date"],
.formtbl input[type="time"],
.formtbl select,
.formtbl textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}

.btn-primary {
    display: inline-block;
    background-color: var(--theme-palette-color-2);
    color: #ffffff;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--theme-palette-color-4);
    color: #ffffff;
}

/* Footer */
.ct-footer {
    background-color: var(--theme-palette-color-2); /* #847a52 */
    color: var(--theme-palette-color-1);
    padding: 25px 0 20px 0;
    text-align: center;
    margin-top: auto;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 0 15px 0;
    padding: 0;
}

.footer-menu li a {
    color: var(--theme-palette-color-1);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.2s;
}

.footer-menu li a:hover {
    color: #ffffff;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(229, 215, 167, 0.85);
}

.more-events-footer {
    text-align: center;
    margin: 30px 0 10px 0;
}

.more-events-footer h4 {
    font-size: 18px;
    line-height: 0.8;
    color: var(--theme-palette-color-4);
}

.more-events-footer h1 a {
    font-size: 24px;
    color: var(--theme-palette-color-4);
    font-weight: 800;
}

.more-events-footer h1 a:hover {
    color: var(--theme-palette-color-2);
}

.divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    margin: 20px 0;
}

/* Modal Lightbox */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Responsive Media Queries */
@media (max-width: 999.98px) {
    .mobile-header-top {
        display: flex;
    }
    .main-navigation {
        display: none;
    }
    .map-container {
        height: 220px;
        margin-bottom: 24px;
    }
    .event-meta {
        grid-template-columns: 1fr;
    }
    .event-content {
        flex-direction: column !important;
    }
    .event-image-container {
        flex: none;
        width: 100%;
    }
    .event-description-badge {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 220px;
        margin-bottom: 20px;
    }
}

.abgesagt-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abgesagt-overlay span {
    color: #d32f2f;
    font-size: 1.4rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #d32f2f;
    border-radius: 8px;
    padding: 6px 18px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Google AdSense Styles */
.event-ad-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #cbcbcb;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 300px;
    min-width: 250px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.adsbygoogle-fluid {
    display: block;
    width: 100%;
    min-width: 250px;
    height: 100%;
}

.adsdiv {
    margin: 12px 0;
    text-align: center;
    background-color: #eaddba;
    border-radius: 18px;
    padding: 12px;
    overflow: hidden;
    width: 100%;
    min-width: 250px;
    box-sizing: border-box;
}

.adsdiv .adsbygoogle {
    min-width: 250px;
    border-radius: 12px;
}

/* Event Report Trigger & Modal */
.event-report-trigger-wrapper {
    text-align: center;
    margin: 14px 0 6px 0;
    width: 100%;
}

.btn-event-report-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eaddba;
    border: 1px solid #d4c49d;
    color: #44422b;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-event-report-link:hover {
    background: #847a52;
    border-color: #847a52;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.pf-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.72) !important;
    z-index: 9999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pf-modal-box {
    background: #ece5ca;
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid #847a52;
    overflow: hidden;
    animation: pfModalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pfModalFadeIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.pf-modal-header {
    background: #e5d7a7;
    padding: 12px 18px;
    border-bottom: 1.5px solid #dcd4b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pf-modal-title {
    margin: 0;
    font-size: 1.1rem;
    color: #44422b;
    font-weight: 800;
}

.pf-modal-close {
    background: none;
    border: none;
    font-size: 1.7rem;
    color: #44422b;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s;
}

.pf-modal-close:hover {
    color: #b42225;
}

.pf-modal-body {
    padding: 16px 18px 20px 18px;
}

.pf-modal-subtitle {
    margin: 0 0 14px 0;
    font-size: 0.88rem;
    color: #555;
    background: #f7f3e8;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #847a52;
}

/* ==========================================================================
   Homepage Filter & Location Radius Bar (Single Row with Combobox)
   ========================================================================== */
.pf-home-filter-box {
    background: #847a52;
    border: 1px solid #726843;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 15px 0 12px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.pf-filter-single-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* 1. Location Input */
.pf-location-input-group {
    position: relative;
    flex: 2 1 200px;
    display: flex;
    align-items: center;
    min-width: 170px;
}

.pf-location-icon {
    position: absolute;
    left: 12px;
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 2;
}

.pf-location-input {
    width: 100%;
    height: 40px;
    padding: 8px 64px 8px 34px;
    border-radius: 8px;
    border: 1.5px solid #d4c49d;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pf-location-input:focus {
    border-color: #847a52;
    box-shadow: 0 0 0 3px rgba(132, 122, 82, 0.18);
}

.pf-input-buttons {
    position: absolute;
    right: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

.pf-gps-btn {
    background: #eaddba;
    border: 1px solid #d4c49d;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #44422b;
    transition: background 0.15s, transform 0.1s;
    padding: 0;
}

.pf-gps-btn:hover {
    background: #847a52;
    color: #fff;
    transform: scale(1.05);
}

.pf-clear-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #888;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.pf-clear-btn:hover {
    color: #b42225;
}

.pf-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #847a52;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    max-height: 220px;
    overflow-y: auto;
    z-index: 99999;
}

.pf-suggestion-item {
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0ecdf;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pf-suggestion-item:last-child {
    border-bottom: none;
}

.pf-suggestion-item:hover {
    background: #f7f3e8;
    color: #847a52;
}

/* 2. Categories Combobox */
.pf-cat-combo-wrapper {
    position: relative;
    flex: 1 1 180px;
    min-width: 160px;
}

.pf-combo-btn {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1.5px solid #d4c49d;
    background: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    color: #44422b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.15s;
    user-select: none;
}

.pf-combo-btn:hover,
.pf-combo-btn.active {
    border-color: #847a52;
    background: #faf8f2;
}

.pf-cat-dropdown-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 230px;
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #847a52;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 99999;
    padding: 8px;
    box-sizing: border-box;
    animation: pfComboFadeIn 0.15s ease-out;
}

@keyframes pfComboFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.pf-cat-dropdown-header {
    display: flex;
    justify-content: space-between;
    padding: 2px 4px 6px 4px;
    border-bottom: 1px solid #ece5ca;
    margin-bottom: 6px;
}

.pf-cat-quick-btn {
    background: none;
    border: none;
    color: #847a52;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.pf-cat-quick-btn:hover {
    background: #eaddba;
    color: #44422b;
}

.pf-cat-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
}

.pf-cat-drop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #44422b;
    user-select: none;
    transition: background 0.12s;
}

.pf-cat-drop-item:hover {
    background: #f7f3e8;
}

.pf-cat-drop-item input[type="checkbox"] {
    accent-color: #847a52;
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin: 0;
}

/* 3. Radius Select */
.pf-radius-group {
    flex: 0 0 auto;
}

.pf-radius-select {
    height: 40px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1.5px solid #d4c49d;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    color: #44422b;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}

.pf-radius-select:focus {
    border-color: #847a52;
}

/* Filter Toggle Bar & Accordion */
.pf-filter-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 2px 0;
}

.pf-filter-toggle-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pf-filter-toggle-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pf-filter-toggle-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pf-filter-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.pf-filter-reset-btn {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    background: #b42225;
    border: 1px solid #9e1c1f;
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.pf-filter-reset-btn:hover {
    background: #9e1c1f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.pf-filter-toggle-arrow {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    transition: transform 0.2s ease;
    display: inline-block;
    line-height: 1;
    margin-left: 2px;
}

.pf-filter-toggle-arrow.expanded {
    transform: rotate(180deg);
}

.pf-filter-body {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

/* Event Card Distance Badge (Vorbereitet, derzeit ausgeblendet) */
.event-distance-badge {
    display: none !important;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    background: rgba(68, 66, 43, 0.92);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
    align-items: center;
    gap: 3px;
}

/* No events alert box */
.pf-no-events-notice {
    background: #ffffff;
    border: 1.5px dashed #847a52;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    color: #555;
    margin: 20px 0;
    font-size: 1rem;
    font-weight: 600;
}

/* ==========================================================================
   Mobile Responsive Optimizations for Homepage Filter (< 680px)
   ========================================================================== */
@media (max-width: 680px) {
    .pf-home-filter-box {
        padding: 10px 10px 8px 10px;
        margin: 10px 0 8px 0;
        border-radius: 10px;
    }

    .pf-filter-single-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    /* 1. Location Input: Spans full width */
    .pf-location-input-group {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        flex: none;
    }

    .pf-location-input {
        height: 42px;
        font-size: 14px;
        padding-right: 68px;
    }

    .pf-gps-btn {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    /* 2. Categories Combobox: Left column */
    .pf-cat-combo-wrapper {
        min-width: 0;
        flex: none;
        width: 100%;
    }

    .pf-combo-btn {
        height: 42px;
        font-size: 13px;
        padding: 8px 10px;
        justify-content: space-between;
    }

    .pf-cat-dropdown-panel {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        width: 270px;
        max-width: 85vw;
    }

    .pf-cat-drop-item {
        padding: 8px 10px;
        font-size: 13.5px;
    }

    .pf-cat-drop-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    /* 3. Radius Select: Right column */
    .pf-radius-group {
        min-width: 0;
        flex: none;
        width: 100%;
    }

    .pf-radius-select {
        width: 100%;
        height: 42px;
        font-size: 13.5px;
        padding: 6px 10px;
        text-align: center;
        text-align-last: center;
    }

    /* 4. Filter Toggle Bar (Mobil) */
    .pf-filter-toggle-bar {
        gap: 6px;
    }

    .pf-filter-toggle-title {
        font-size: 14.5px;
    }

    .pf-filter-toggle-right {
        gap: 6px;
    }

    .pf-filter-count-badge {
        font-size: 0.76rem;
        padding: 2.5px 7px;
    }

    .pf-filter-reset-btn {
        font-size: 0.76rem;
        padding: 2.5px 7px;
    }
}

.pf-app-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #191711;
    border-top: 2px solid #847a52;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
    padding: 8px 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    animation: pfSlideUp 0.35s ease-out;
}

@keyframes pfSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.pf-app-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.pf-app-banner-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-app-banner-close:hover {
    color: #fff;
}

.pf-app-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #847a52;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pf-app-banner-info {
    flex: 1;
    min-width: 0;
}

.pf-app-banner-title {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.pf-app-banner-desc {
    color: #bbb;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-top: 1px;
}

.pf-app-banner-btn {
    background: #847a52;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.15s ease;
}

.pf-app-banner-btn:hover {
    background: #968c60;
}

@media (min-width: 769px) {
    .pf-app-banner {
        display: none !important;
    }
}



