/* WarnowFM Event Grid Layout CSS - Helles Design & Rot/Orange Akzente */

.wfm-events-grid {
    display: grid;
    gap: 24px;
    width: 100%;
    max-width: 1280px;
    margin: 30px auto;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wfm-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wfm-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wfm-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Helle Kachel */
.wfm-grid-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.wfm-grid-card:hover {
    transform: translateY(-6px);
    border-color: #ff3333;
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.15);
}

/* Highlight Kachel im Hellen */
.wfm-grid-card.is-highlight {
    border: 1.5px solid #ff1a40;
    box-shadow: 0 6px 22px rgba(255, 26, 64, 0.12);
    background: linear-gradient(180deg, #fff9fa 0%, #ffffff 100%);
}

.wfm-card-image-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
}

.wfm-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wfm-grid-card:hover .wfm-card-img {
    transform: scale(1.06);
}

.wfm-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Datum Badge (Hell mit starkem Kontrast) */
.wfm-card-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    min-width: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2;
}

.wfm-badge-day {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1;
}

.wfm-badge-month {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #e60000;
    text-transform: uppercase;
    margin-top: 2px;
}

.wfm-badge-weekday {
    display: block;
    font-size: 10px;
    color: #718096;
    text-transform: uppercase;
}

/* Highlight Badge oben rechts */
.wfm-card-highlight-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(90deg, #e60000 0%, #ff5500 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 20px;
    letter-spacing: 0.8px;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(230, 0, 0, 0.3);
}

.wfm-card-body {
    padding: 20px;
    flex-grow: 1;
}

.wfm-card-title {
    margin: 0 0 12px 0;
    font-size: 19px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.35;
}

.wfm-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.wfm-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4a5568;
}

.wfm-icon {
    color: #e60000;
    flex-shrink: 0;
}

.wfm-card-excerpt {
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
}

.wfm-card-footer {
    padding: 0 20px 20px 20px;
}

/* Button im WarnowFM Rot-Orange-Verlauf */
.wfm-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    background: linear-gradient(90deg, #e60000 0%, #ff5500 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 30px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
    box-sizing: border-box;
}

.wfm-card-btn:hover {
    background: linear-gradient(90deg, #ff0033 0%, #ff6600 100%);
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.5);
    transform: scale(1.02);
}

.wfm-card-btn.disabled {
    background: #edf2f7;
    color: #a0aec0 !important;
    box-shadow: none;
    cursor: not-allowed;
}

.wfm-events-empty {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #718096;
    text-align: center;
}

@media (max-width: 1024px) {
    .wfm-grid-cols-4, .wfm-grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .wfm-grid-cols-4, .wfm-grid-cols-3, .wfm-grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* --- Event Detailseite Layout (Zweispaltig) --- */
.wfm-single-event-wrapper {
    background-color: #f8fafc;
    padding: 40px 20px;
    box-sizing: border-box;
}

.wfm-single-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.wfm-single-main {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.wfm-single-poster {
    width: 100%;
    max-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #000;
}

.wfm-single-poster img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.wfm-single-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.wfm-single-content {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.7;
}

.wfm-single-content p {
    margin-bottom: 15px;
}

/* Sidebar Ticket Box */
.wfm-single-sidebar {
    position: sticky;
    top: 30px;
}

.wfm-ticket-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wfm-sb-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #2d3748;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2f7;
}

.wfm-sb-row:last-of-type {
    border-bottom: none;
}

.wfm-sb-icon {
    color: #e60000;
    flex-shrink: 0;
    margin-top: 2px;
}

.wfm-sb-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 0;
    font-weight: 700;
    font-size: 14px;
    border-radius: 30px;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.wfm-btn-win {
    background: #ede9fe;
    color: #6d28d9 !important;
    border: 1px solid #c4b5fd;
}

.wfm-btn-win:hover {
    background: #ddd6fe;
}

/* Tickets kaufen Button im WarnowFM Rot-Orange-Verlauf */
.wfm-btn-buy {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 0;
    background: linear-gradient(90deg, #e60000 0%, #ff5500 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    border-radius: 30px;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.35);
    border: none;
}

.wfm-btn-buy:hover {
    background: linear-gradient(90deg, #ff0033 0%, #ff6600 100%);
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.5);
    transform: translateY(-2px);
}

/* Responsive für Mobile */
@media (max-width: 900px) {
    .wfm-single-container {
        grid-template-columns: 1fr;
    }
    .wfm-single-sidebar {
        position: static;
    }
}

/* --- Ort & Karten Sektion (WarnowFM Rot/Orange) --- */
.wfm-location-section {
    margin-top: 40px;
}

.wfm-location-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
}

.wfm-location-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.wfm-loc-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wfm-loc-badge {
    display: inline-block;
    background: #fff1f2;
    color: #e60000;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 8px;
}

.wfm-loc-info h4 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}

.wfm-loc-info p {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #718096;
}

.wfm-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff1f2;
    color: #e60000 !important;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none !important;
    width: fit-content;
    transition: background 0.2s ease;
}

.wfm-nav-btn:hover {
    background: #ffe4e6;
}

.wfm-loc-map {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.wfm-map-open-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffff;
    color: #e60000 !important;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    text-decoration: none !important;
    z-index: 10;
    transition: all 0.2s ease;
    border: 1px solid rgba(230,0,0,0.2);
}

.wfm-map-open-btn:hover {
    background: #fff5f5;
    border-color: #e60000;
}

.wfm-loc-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}
/* --- Merken Button (Rot/Orange Akzent) --- */
.wfm-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 0;
    background: #ffffff;
    border: 2px solid #e60000;
    color: #e60000;
    font-weight: 700;
    font-size: 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.wfm-save-btn svg {
    color: #e60000;
    transition: transform 0.2s ease, color 0.2s ease;
}

.wfm-save-btn:hover {
    background: #fff5f5;
    border-color: #ff3300;
    color: #ff3300;
    transform: translateY(-1px);
}

/* Zustand wenn gemerkt */
.wfm-save-btn.is-saved {
    background: linear-gradient(90deg, #e60000 0%, #ff5500 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.25);
}

.wfm-save-btn.is-saved svg {
    color: #ffffff;
}

/* Erzwinge das 2-Spalten Layout für die Event-Detailseite */
.wfm-single-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 30px !important;
    align-items: start !important;
}

.wfm-single-sidebar {
    grid-column: 2 !important;
    position: sticky;
    top: 30px;
}

.wfm-single-main {
    grid-column: 1 !important;
}

@media (max-width: 900px) {
    .wfm-single-container {
        grid-template-columns: 1fr !important;
    }
    .wfm-single-sidebar {
        grid-column: 1 !important;
        position: static;
    }
}

/* --- Veranstaltungsvorschläge Sidebar Box --- */
.wfm-related-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-top: 24px;
}

.wfm-related-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 16px 0;
}

.wfm-related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wfm-related-item {
    display: flex;
    gap: 12px;
    text-decoration: none !important;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    transition: transform 0.2s ease;
}

.wfm-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wfm-related-item:hover {
    transform: translateX(3px);
}

.wfm-rel-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.wfm-rel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wfm-rel-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wfm-rel-date {
    font-size: 11px;
    font-weight: 700;
    color: #e60000;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.wfm-rel-info h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.wfm-rel-loc {
    font-size: 12px;
    color: #718096;
}

/* --- Einheitliche Beitragsbild-Höhe auf der Detailseite --- */
.wfm-single-poster {
    width: 100%;
    height: 420px; /* Feste, übersichtliche Höhe für das Detail-Plakat */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #101114;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wfm-single-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Füllt den Bereich perfekt aus, ohne dass das Plakat verzerrt wird */
    object-position: center center;
}

@media (max-width: 768px) {
    .wfm-single-poster {
        height: 280px; /* Auf Smartphones etwas kompakter */
    }
}

/* --- Dynamische Höhenanpassung an das Beitragsbild --- */
.wfm-card-image-wrap {
    position: relative;
    width: 100%;
    height: auto; /* Keine feste Höhe mehr – passt sich 1:1 dem Bild an */
    display: block;
    overflow: hidden;
    background: transparent; /* Entfernt den dunklen/grauen Hintergrund darunter */
}

.wfm-card-img {
    width: 100%;
    height: auto; /* Behält das originale Seitenverhältnis des Bildes bei */
    display: block;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.wfm-grid-card:hover .wfm-card-img {
    transform: scale(1.04);
}

.wfm-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}