/* BWare Konzerte - Custom UI matching demo */

:root {
    --bware-primary: #f59e0b; /* Standard – überschrieben durch Konzerte → Einstellungen */
}

/* --- SHORTCODE LIST STYLES --- */

.bware-section-konzerte {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    width: min(1160px, 92vw);
    margin: 20px auto;
}

.bware-konzerte-header {
    text-align: left;
    margin-bottom: 30px;
}

.bware-section-tag {
    display: inline-block;
    background-color: color-mix(in srgb, var(--bware-primary) 12%, #fff);
    color: var(--bware-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.bware-section-title {
    font-family: 'Special Elite', 'Courier New', Courier, monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.bware-konzerte-liste {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.bware-konzert-item {
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bware-konzert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.bware-konzert-item.bware-vergangen {
    opacity: 0.6;
}

.bware-konzert-item.bware-vergangen:hover {
    transform: none;
    box-shadow: none;
}

.bware-konzert-date {
    background-color: var(--bware-primary);
    color: #141414; /* dunkle Schrift auf Gelb (Kontrast) */
    border-radius: 8px;
    text-align: center;
    padding: 12px 15px;
    min-width: 80px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bware-day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.bware-month {
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

.bware-konzert-info {
    flex-grow: 1;
    padding: 0 20px;
}

.bware-konzert-list-image {
    margin: 0 0 0 20px;
    border-radius: 6px;
    overflow: hidden;
    width: 220px;
    flex-shrink: 0;
}

.bware-konzert-list-image a {
    display: block;
}

.bware-konzert-list-image img {
    width: 100%;
    height: 140px;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bware-konzert-list-image a:hover img {
    transform: scale(1.05);
}

.bware-konzert-info h3 {
    font-family: 'Special Elite', 'Courier New', Courier, monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

.bware-konzert-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.bware-konzert-info h3 a:hover {
    color: var(--bware-primary);
}

.bware-konzert-info p {
    margin: 0 0 10px 0;
    color: #64748b;
    font-size: 0.95rem;
}

.bware-read-more-btn {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--bware-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.bware-read-more-btn:hover {
    color: color-mix(in srgb, var(--bware-primary) 78%, #000);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bware-konzert-hint {
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 30px;
}

.bware-konzert-hint a {
    color: var(--bware-primary);
    text-decoration: none;
    font-weight: 600;
}

.bware-konzert-hint a:hover {
    text-decoration: underline;
}

.bware-past-events-separator {
    text-align: center;
    margin: 30px 0 10px 0;
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
}

.bware-past-events-separator::before,
.bware-past-events-separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.bware-past-events-separator::before {
    margin-right: 15px;
}

.bware-past-events-separator::after {
    margin-left: 15px;
}


/* --- SINGLE EVENT PAGE STYLES --- */

.bware-single-teaser-image {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    display: flex;
    flex-direction: column;
}

.bware-single-teaser-image .bware-single-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: color-mix(in srgb, var(--bware-primary) 80%, transparent);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 2;
}

.bware-single-teaser-no-image {
    margin-bottom: 30px;
}

.bware-single-teaser-no-image .bware-single-date-badge {
    background-color: color-mix(in srgb, var(--bware-primary) 80%, transparent);
}

.bware-single-teaser-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
    object-fit: cover;
}

.bware-single-event-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.bware-single-date-badge {
    background-color: var(--bware-primary);
    color: #141414;
    border-radius: 12px;
    text-align: center;
    padding: 15px 25px;
    min-width: 100px;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--bware-primary) 30%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bware-single-date-badge .bware-day {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.bware-single-date-badge .bware-month {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bware-single-date-badge .bware-year {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 2px;
}

.bware-single-action, .bware-single-action-bottom {
    display: flex;
    align-items: center;
}

.bware-single-action-bottom {
    margin-top: 50px;
    justify-content: center;
}

.bware-ticket-btn {
    display: inline-flex;
    align-items: center;
    background: var(--bware-primary);
    color: #141414 !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--bware-primary) 20%, transparent);
}

.bware-single-action-bottom .bware-ticket-btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 10px;
}

.bware-ticket-btn svg {
    margin-right: 10px;
}

/* Ticket-Button in der Konzertliste */
.bware-list-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 4px;
}

.bware-ticket-btn--list {
    padding: 9px 18px;
    font-size: 0.92rem;
    border-radius: 8px;
}

.bware-ticket-btn--list svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.bware-ticket-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px color-mix(in srgb, var(--bware-primary) 30%, transparent);
    color: #141414 !important;
}

.bware-single-event-info {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8fafc;
    border-left: 4px solid var(--bware-primary);
    border-radius: 0 8px 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.bware-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.bware-info-item svg {
    color: var(--bware-primary);
    margin-top: 3px;
}

.bware-info-item strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 3px;
    letter-spacing: 0.05em;
}

.bware-info-item span {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 500;
}

.bware-single-event-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 40px;
}

.bware-single-event-content a {
    color: var(--bware-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.bware-single-event-content a:hover {
    color: color-mix(in srgb, var(--bware-primary) 78%, #000);
}

.bware-single-event-gallery {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.bware-single-event-gallery a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background: #f1f5f9;
}

.bware-single-event-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bware-single-event-gallery a:hover img {
    transform: scale(1.05);
}

.bware-event-navigation {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
}

.bware-nav-prev a, .bware-nav-next a {
    color: var(--bware-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.bware-nav-prev a:hover, .bware-nav-next a:hover {
    color: color-mix(in srgb, var(--bware-primary) 78%, #000);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.bware-nav-next {
    text-align: right;
}

.bware-list-meta-info {
    margin: 10px 0 15px 0;
    color: #475569;
    font-size: 0.95rem;
}

.bware-list-meta-info p {
    margin: 0 0 5px 0 !important;
}

.bware-list-meta-info strong {
    color: #1e293b;
    margin-right: 5px;
}

.bware-list-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px !important;
}

/* --- MODAL STYLES --- */

.bware-event-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

body.bware-modal-open {
    overflow: hidden;
}

.bware-event-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.bware-event-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    z-index: 10;
    animation: bwareModalFadeIn 0.3s ease-out;
}

.bware-event-modal-inner {
    padding: 40px;
}

.bware-event-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    z-index: 20;
}

.bware-event-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

@keyframes bwareModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Verstecke das automatische Theme-Beitragsbild auf Einzelseiten */
body.single-bware_event .wp-block-post-featured-image {
    display: none !important;
}

@media (max-width: 600px) {
    .bware-konzert-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .bware-konzert-date {
        order: 0;
        margin-bottom: 20px;
        flex-direction: row;
        width: 100%;
        justify-content: center;
        align-items: baseline;
        gap: 15px;
        padding: 15px;
    }
    .bware-konzert-date .bware-month {
        margin-top: 0;
        font-size: 1.2rem;
    }
    .bware-konzert-info {
        order: 1;
        padding: 0;
        width: 100%;
    }
    .bware-konzert-list-image {
        order: -1;
        margin: 0 0 20px 0;
        width: 100%;
        max-width: none;
    }
    .bware-konzert-list-image img {
        height: auto;
        max-height: 250px;
    }
    .bware-single-event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .bware-single-event-info {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Mobile Popup / Single Layout Modifications */
    .bware-single-teaser-image .bware-single-date-badge {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        border-radius: 0;
        flex-direction: row;
        justify-content: center;
        align-items: baseline;
        gap: 8px;
        padding: 8px 15px;
        background-color: color-mix(in srgb, var(--bware-primary) 80%, transparent);
    }
    .bware-single-teaser-image .bware-single-date-badge .bware-day,
    .bware-single-teaser-image .bware-single-date-badge .bware-month,
    .bware-single-teaser-image .bware-single-date-badge .bware-year {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1;
        margin: 0;
    }
    .bware-single-teaser-image img {
        border-radius: 12px 12px 0 0;
    }
}

/* Hinweis, wenn keine kommenden Konzerte eingetragen sind */
.bware-konzerte-leer {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    padding: 1.5rem 1.75rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, .04);
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}
.bware-konzerte-leer p { margin: 0; }
.bware-konzerte-leer a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Symbole in der Info-Box gleich breit (Wann/Wo/Tickets bündig) */
.bware-info-item > svg { width: 20px; height: 20px; flex: 0 0 20px; }

/* Links im Konzerttext: dunkle Schrift, Unterstrich in der Primärfarbe (Gelb auf Weiß wäre schwer lesbar) */
.bware-single-event-content a { color: #141414; text-decoration: underline; text-decoration-color: var(--bware-primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bware-single-event-content a:hover { color: #000; text-decoration-color: currentColor; }
