/* 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 */
.highlight-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, 225px);
    grid-auto-flow: column;
    background-color: #E5D7A7;
    padding: 10px;
    overflow-x: auto; 
    margin-top: 10px;
    margin-bottom: 30px;
    border-radius: 1rem;
}

.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;
    gap: 1rem;
}

.event-day {
    background-color: #847a52;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.2rem 1rem;
}

.day-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #E5D7A7;
    margin: 0;
}

.event-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-bottom: 30px;
}

@media (max-width: 640px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
}

.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;
}

/* 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;
}


