/* ==========================================================================
   volt_events - Frontend im Volt-Kampagnen-Design (angelehnt an VoltCampaignMapper)
   Volt Purple #502379 | Volt Gelb #FDC220 | Umriss-Lila #6F2DBD

   WICHTIG: Alle Selektoren sind unter .ve-campaign gescoped. Grund: das Modul
   volt_einladung nutzt dieselben .ve-*-Klassennamen (.ve-band usw.). Ohne Scope
   leaken die Events-Regeln (u.a. clip-path, width:100vw) in fremde Module.
   ========================================================================== */

.ve-campaign { font-family: inherit; color: #222; }

/* ---- Keil-Band (Hero) --------------------------------------------------- */
.ve-campaign .ve-band
{
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #FDC220;
    color: #502379;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 38px));
}
.ve-campaign .ve-band::after
{
    content: '';
    position: absolute;
    inset: 0 0 0 auto;
    width: 50%;
    background: #502379;
    clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
}
.ve-campaign .ve-band-inner
{
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 300px;
    padding: 56px 28px 110px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}
.ve-campaign .ve-band-text { max-width: 60%; }
.ve-campaign .ve-kicker { font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
.ve-campaign .ve-band h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.1; margin: 0 0 14px; }
.ve-campaign .ve-band-meta { font-size: 1.05rem; line-height: 1.5; }
.ve-campaign .ve-band-meta strong { font-weight: 700; }
.ve-campaign .ve-frist
{
    display: inline-flex;
    align-items: center;
    gap: .5em;
    margin: 18px 0 0;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    background: rgba(80, 35, 121, .12);
}

/* ---- Karte: lila Matte + 1,5-Grad-Drehung ------------------------------- */
.ve-campaign .ve-wrap-map { max-width: 1600px; margin: auto; position: relative; z-index: 3; }
.ve-campaign .ve-map-clip
{
    margin-top: -110px;
    margin-bottom: 64px;
    overflow: hidden;
    position: relative;
    z-index: 4;
    background: #502379;
    padding: 26px;
    box-sizing: border-box;
    border-radius: 4px;
}
/* Drehung auf den Frame (NICHT auf #ve_map_f -> bricht sonst Leaflet-Hit-Testing).
   Die lila .ve-map-clip-Matte fuellt die entstehenden Eck-Dreiecke. */
.ve-campaign .ve-map-frame { transform: rotate(1.5deg); transform-origin: center center; }
.ve-campaign #ve_map_f
{
    height: 620px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
    background: #e9e4f0;
    border-radius: 2px;
}
/* Vollbild: #ve_map_f wird in den Top-Layer gehoben -> Ahnen-Drehung wirkt dort
   NICHT -> Karte im Vollbild ungedreht und pixelgenau. */
.ve-campaign #ve_map_f:fullscreen { height: 100% !important; width: 100% !important; }
.ve-campaign #ve_map_f:-webkit-full-screen { height: 100% !important; width: 100% !important; }

.ve-campaign .leaflet-tooltip { background: #502379; color: #fff; border: none; border-radius: 8px; padding: 6px 10px; font-weight: bold; }
.ve-campaign .leaflet-popup-content { font-family: inherit; font-size: 14px; line-height: 1.45; }

/* Legende */
.ve-campaign .ve-legende
{
    background: rgba(255, 255, 255, .93);
    padding: 8px 11px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
    font: 13px/1.3 inherit;
    color: #502379;
    font-weight: 700;
}
.ve-campaign .ve-leg-dot
{
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #502379;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(80, 35, 121, .4);
    vertical-align: -2px;
    margin-right: 4px;
}

/* ---- Termin-Kacheln ----------------------------------------------------- */
.ve-campaign .ve-list-wrap { max-width: 1200px; margin: 0 auto 64px; padding: 0 28px; }
.ve-campaign .ve-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }

.ve-campaign .ve-card
{
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-areas: "date body" "date acts";
    background: #fff;
    border: 2px solid #e3dcef;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(80, 35, 121, .08);
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.ve-campaign .ve-card[data-clickable] { cursor: pointer; }
.ve-campaign .ve-card[data-clickable]:hover
{
    box-shadow: 0 8px 26px rgba(80, 35, 121, .18);
    transform: translateY(-2px);
    border-color: #c9b8e6;
}

.ve-campaign .ve-card-date
{
    grid-area: date;
    background: #502379;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    text-align: center;
}
.ve-campaign .ve-d-wtag { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; opacity: .85; }
.ve-campaign .ve-d-num  { font-size: 1.7rem; font-weight: 800; line-height: 1.05; }
.ve-campaign .ve-d-mon  { font-size: .85rem; font-weight: 700; }

.ve-campaign .ve-card-body { grid-area: body; padding: 14px 16px 8px; min-width: 0; }
.ve-campaign .ve-card-ort  { font-size: 1.15rem; font-weight: 800; color: #502379; margin-bottom: 2px; }
.ve-campaign .ve-card-adr  { font-size: .95rem; color: #444; }
.ve-campaign .ve-card-zeit { font-size: .9rem; color: #6b6b6b; margin-top: 4px; }
.ve-campaign .ve-card-info { font-size: .85rem; color: #888; margin-top: 4px; font-style: italic; }

.ve-campaign .ve-card-acts
{
    grid-area: acts;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #82D0F4;
}
.ve-campaign .ve-b
{
    display: inline-block;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease;
}
.ve-campaign .ve-b.nav { background: #502379; }
.ve-campaign .ve-b.nav:hover { background: #3f1c60; }
.ve-campaign .ve-b.ics { background: #6F2DBD; }
.ve-campaign .ve-b.ics:hover { background: #5a2499; }

/* abgelaufen */
.ve-campaign .ve-card.ve-past { opacity: .6; filter: grayscale(0.5); }
.ve-campaign .ve-card.ve-past .ve-card-date { background: #b7add0; }
.ve-campaign .ve-card.ve-past .ve-card-ort { color: #777; }
.ve-campaign .ve-card.ve-past .ve-card-acts { background: #dfe7ea; }
.ve-campaign .ve-gone { font-size: .85rem; font-style: italic; color: #a0a0a0; }

.ve-campaign .ve-empty { grid-column: 1 / -1; text-align: center; color: #777; padding: 26px 12px; }

/* ---- Mobil: Drehung + Keil weg, Full-Bleed aufgeben --------------------- */
@media (max-width: 900px)
{
    .ve-campaign { overflow-x: hidden; }
    .ve-campaign .ve-band { width: auto; max-width: 100%; margin-left: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 22px)); }
    .ve-campaign .ve-band::after { display: none; }
    .ve-campaign .ve-band-inner { flex-direction: column; min-height: 0; padding: 32px 20px 64px; gap: 16px; }
    .ve-campaign .ve-band-text { max-width: 100%; }
    .ve-campaign .ve-map-clip { margin-top: -46px; margin-bottom: 40px; padding: 12px; }
    .ve-campaign .ve-map-frame { transform: none; }
    .ve-campaign #ve_map_f { height: 58vh; min-height: 340px; }
    .ve-campaign .ve-list-wrap { padding: 0 18px; }
}
@media (max-width: 560px)
{
    .ve-campaign .ve-card-acts { justify-content: stretch; }
    .ve-campaign .ve-b { flex: 1 1 auto; text-align: center; }
}
