/*
 * Öffentliche Konzertseite im Layout der Band (views/concerts/public-concert.php).
 * Baut auf public-band-layouts.css auf (Farben über --bpl-*).
 */

.public-band--buehne.has-band-colors { --bpl-accent: color-mix(in srgb, var(--bpl-brand-1) 70%, #fff); }
.public-band--buehne.has-band-colors .bpl-b-label { color: color-mix(in srgb, var(--bpl-brand-1) 55%, #fff); }
.kc-muted { color: var(--bpl-muted); }

/* ---------- Bausteine aller Layouts ---------- */

/* Datumsblock */
.kc-date {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    width: 84px; height: 92px; flex: 0 0 84px; border-radius: .8rem;
    background: #fff; color: var(--bpl-brand-2); line-height: 1; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.kc-date-wd { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bpl-brand-1); }
.kc-date-day { font-size: 2.3rem; font-weight: 800; margin: .15rem 0; }
.kc-date-mon { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.kc-title { font-size: clamp(1.9rem, 4.6vw, 2.9rem); font-weight: 800; margin: 0; line-height: 1.05; overflow-wrap: anywhere; }
.kc-lineup-line { font-size: 1.1rem; opacity: .92; margin: .35rem 0 0; }
.kc-countdown {
    display: inline-flex; align-items: center; gap: .6rem; font-size: clamp(1rem, 2.4vw, 1.25rem); font-weight: 700;
    padding: .4rem 1.1rem; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; line-height: 1.2;
}
.kc-countdown::before { content: ""; width: .7rem; height: .7rem; flex: 0 0 .7rem; border-radius: 50%; background: #7dffb0; box-shadow: 0 0 0 4px rgba(125, 255, 176, .25); }

/* Lineup */
.kc-act { display: flex; align-items: center; gap: .85rem; padding: .75rem; border: 1px solid var(--bpl-border); border-radius: .75rem; background: var(--bpl-surface); color: inherit; text-decoration: none; }
.kc-act + .kc-act { margin-top: .6rem; }
a.kc-act:hover { border-color: var(--bpl-accent); color: inherit; }
.kc-act img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 56px; background: #fff; }
.kc-act-name { font-weight: 700; }
.kc-act-meta { font-size: .85rem; color: var(--bpl-muted); }
.kc-act-time { margin-left: auto; text-align: right; font-size: .85rem; color: var(--bpl-muted); white-space: nowrap; }
.kc-role { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bpl-accent); }

/* Tickets */
.kc-ticket { border-radius: .9rem; padding: 1.25rem; color: #fff; background: linear-gradient(135deg, var(--bpl-brand-1), var(--bpl-brand-2)); }
.kc-ticket .btn-light { color: var(--bpl-brand-2); font-weight: 700; }
.kc-price { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(255, 255, 255, .35); padding: .35rem 0; }
.kc-price:last-of-type { border-bottom: 0; }

/* Ort */
.kc-map {
    position: relative; height: 180px; border-radius: .7rem; margin-bottom: .75rem; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
    background:
        repeating-linear-gradient(35deg, transparent 0 34px, rgba(0, 0, 0, .06) 34px 37px),
        repeating-linear-gradient(-55deg, transparent 0 52px, rgba(0, 0, 0, .05) 52px 56px),
        #e9ecef;
}
.kc-map.is-loaded { display: block; }
.kc-map-note { font-size: .72rem; color: #6c757d; }
.public-band--buehne .kc-map:not(.is-loaded) { filter: invert(.88) hue-rotate(180deg); }
.public-band--buehne .kc-map.is-loaded .leaflet-tile-pane { filter: invert(.9) hue-rotate(180deg) brightness(.95); }

.kc-flyer img { width: 100%; border-radius: .6rem; display: block; }
.kc-dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; margin: 0; }
.kc-dl dt { font-weight: 500; color: var(--bpl-muted); font-size: .9rem; }
.kc-dl dd { margin: 0; }

/* ---------- Feinschliff ---------- */
.kc-a-hero { padding-bottom: 2.5rem; }
.kc-a-hero .kc-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .9rem; font-size: .95rem; }
.kc-a-hero .kc-meta i { opacity: .8; margin-right: .35rem; }

/* ---------- Bühne ---------- */
.kc-b-kicker { font-size: .9rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #ffb3c0; margin-bottom: .75rem; }
.kc-b-title { font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-weight: 600; color: #e9e4f6; margin: .6rem 0 0; }
.public-band--buehne .kc-act { background: rgba(255, 255, 255, .04); }
.kc-b-big-time { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.kc-b-ticketbar {
    position: sticky; bottom: 0; z-index: 1010; background: rgba(15, 14, 19, .94); backdrop-filter: blur(6px);
    border-top: 1px solid var(--bpl-border); padding: .7rem 0;
}

/* ---------- Pressemappe ---------- */
.kc-c-copy { position: relative; background: #fff; border: 1px solid var(--bs-border-color); border-radius: .6rem; padding: 2.75rem 1rem 1rem; font-size: .95rem; }
.kc-c-copy .btn { position: absolute; top: .5rem; right: .5rem; }
.kc-c-asset { border: 1px solid var(--bs-border-color); border-radius: .7rem; overflow: hidden; background: #fff; height: 100%; }
.kc-c-asset img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #f1f0f4; }

@media (max-width: 575.98px) {
    .kc-date { width: 68px; height: 76px; flex-basis: 68px; }
    .kc-date-day { font-size: 1.8rem; }
    .kc-act-time { display: none; }
}

.kc-act-placeholder { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bpl-surface-2); color: var(--bpl-muted); }
.kc-price-info { font-size: .88rem; opacity: .9; margin-top: .35rem; }
.kc-b-lead { font-size: 1.35rem; }
.kc-b-unit { font-size: .78rem; text-transform: uppercase; color: var(--bpl-muted); }
.public-band--buehne .kc-c-copy { background: rgba(255, 255, 255, .04); border-color: var(--bpl-border); color: var(--bpl-text); }
.public-band--buehne .kc-c-asset { background: rgba(255, 255, 255, .04); border-color: var(--bpl-border); color: var(--bpl-text); }
.public-band--buehne .kc-c-asset .text-muted { color: var(--bpl-muted) !important; }
a.kc-c-asset { display: block; color: inherit; text-decoration: none; }
a.kc-c-asset:hover { border-color: var(--bpl-accent); color: inherit; }
.kc-c-asset > span { display: block; padding: .55rem .7rem; font-size: .88rem; }
.kc-c-copy .btn { z-index: 1; }

/* Abgesagt / vorbei */
.kc-status { background: #fff3cd; color: #664d03; padding: .65rem 0; font-weight: 600; }
.kc-status--cancelled { background: #dc3545; color: #fff; }
.kc-status a { color: inherit; }

/* Bühne: Ticket-Leiste unten, Footer nicht verdecken */
.public-concert.public-band--buehne .site-footer, .public-concert.public-band--buehne footer { position: relative; z-index: 1011; }

/* Downloads */
.kc-downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.kc-c-asset.is-logo img { object-fit: contain; padding: 1rem; }

/* Handy: Seitenrand wie auf der Plattform */
@media (max-width: 575.98px) {
    .public-concert .container { padding-left: 16px; padding-right: 16px; }
    .kc-downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Vorschau privater Konzerte */
.concert-preview-banner { position: relative; z-index: 3; background: #ffc107; color: #1d1b22; padding: .55rem 0; font-size: .92rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }

/* Eintritt, Venue-Links, „Gut zu wissen“ (PublicConcertInfo) */
.kc-admission-label { font-size: 1.35rem; font-weight: 800; line-height: 1.2; margin-bottom: .35rem; }
.kc-venue-links .btn { white-space: nowrap; }
.kc-b-prices { font-size: 1.05rem; font-weight: 600; }
.kc-infos { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.25rem; }
.kc-infos dt { font-weight: 500; color: var(--bpl-muted); font-size: .9rem; white-space: nowrap; }
.kc-infos dt .bi { margin-right: .4rem; }
.kc-infos dd { margin: 0; }
.kc-infos a { color: var(--bpl-accent); }
@media (max-width: 575.98px) {
    .kc-infos { grid-template-columns: 1fr; gap: .15rem; }
    .kc-infos dd { margin-bottom: .6rem; }
}

/* Flyer & Bilder */
.kc-gallery figure { margin: 0; }
.kc-gallery-link { display: block; border-radius: .6rem; overflow: hidden; background: var(--bpl-surface-2, #f1f0f4); }
.kc-gallery-link img { display: block; width: 100%; height: auto; transition: transform .2s ease; }
.kc-gallery .col-6 .kc-gallery-link img,
.kc-gallery [class*="col-md-"] .kc-gallery-link img { aspect-ratio: 3 / 4; object-fit: cover; }
.kc-gallery-link:hover img, .kc-gallery-link:focus-visible img { transform: scale(1.03); }
.kc-gallery-caption { font-size: .8rem; color: var(--bpl-muted); margin-top: .3rem; line-height: 1.3; }
.kc-lightbox .modal-content { background: #111 !important; }
.kc-lightbox-img { max-width: 100%; max-height: 78vh; object-fit: contain; display: inline-block; }
.kc-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; font-size: 1.3rem;
}
.kc-lightbox-nav:hover, .kc-lightbox-nav:focus-visible { background: rgba(0, 0, 0, .8); }
.kc-lightbox-prev { left: .5rem; }
.kc-lightbox-next { right: .5rem; }
/* Layout „Klassisch“ hat keine --bpl-Farben */
body:not(.public-band) .kc-infos dt, body:not(.public-band) .kc-gallery-caption { color: #6c757d; }
body:not(.public-band) .kc-infos a { color: var(--bs-link-color); }

/* Schriftzug der Band statt des Namens */
.kc-wordmark-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .6rem; }
.kc-wordmark { display: block; max-height: 72px; max-width: min(340px, 70vw); width: auto; height: auto; object-fit: contain; }
.kc-wordmark--press { max-height: 64px; max-width: min(220px, 40vw); }
