/* =========================================================
   EVENTS PAGE (3-col flyer grid + featured + modal)
   FULL FILE — 1:1 COPY/PASTE
   ========================================================= */

/* =========================================================
   BLOCK: HERO
   ========================================================= */
   .events-hero{
    position: relative;
    padding-top: 84px; /* space for fixed topbar */
    padding-bottom: 26px;
    overflow: hidden;
    isolation: isolate;
  }
  
  .events-hero::before{
    content:"";
    position:absolute; inset:0;
    background:
      radial-gradient(circle at 18% 22%, rgba(64,185,235,.07), transparent 55%),
      radial-gradient(circle at 82% 18%, rgba(216,245,255,.05), transparent 60%),
      radial-gradient(circle at 50% 115%, rgba(255,255,255,.03), transparent 65%),
      linear-gradient(to bottom, rgba(7,6,7,.75), rgba(7,6,7,1));
    z-index: 0;
  }
  
  .events-hero__inner{
    position: relative;
    z-index: 1;
    padding: 34px 0 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
  }
  
  .events-kicker{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .34em;
    color: rgba(255,255,255,.55);
  }
  
  .events-title{
    margin-top: 10px;
    font-size: 44px;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: .01em;
    color: rgba(255,255,255,.92);
  }
  
  .events-sub{
    margin-top: 12px;
    max-width: 68ch;
    color: rgba(255,255,255,.70);
    line-height: 1.75;
    font-size: 15px;
  }
  
  .events-badges{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .events-badge{
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.70);
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(64,185,235,.18);
    background: rgba(255,255,255,.02);
    backdrop-filter: blur(10px);
  }
  
  /* =========================================================
     BLOCK: TOOLBAR (Filter Chips)
     ========================================================= */
  .events-toolbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }
  
  .events-toolbar__left{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .events-chip{
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.66);
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.01);
    cursor: pointer;
    user-select: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .18s ease;
  }
  .events-chip:hover{
    transform: translateY(-1px);
    border-color: rgba(216,245,255,.20);
    color: rgba(255,255,255,.82);
  }
  .events-chip--active{
    border-color: rgba(64,185,235,.24);
    color: rgba(216,245,255,.90);
    background: rgba(64,185,235,.05);
  }
  
  .events-status{
    font-size: 13px;
    color: rgba(255,255,255,.62);
  }
  
  /* =========================================================
     BLOCK: FEATURED (Header Event)
     - Stellschrauben für 1366px: siehe A + B unten
     ========================================================= */
  
  /* Matcht dein HTML: <section class="featured-wrap"><div id="featuredEvent"></div></section> */
  .featured-wrap{
    margin-top: 10px;
    margin-bottom: 22px;
  }
  
  /* Featured Card */
  .featured-event{
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.02);
    box-shadow:
      0 26px 80px rgba(0,0,0,.60),
      inset 0 1px 0 rgba(255,255,255,.04);
  }
  
  .featured-event::before{
    content:"";
    position:absolute;
    inset:-2px;
    pointer-events:none;
    opacity:.30;
    background:
      radial-gradient(circle at 18% 22%, rgba(64,185,235,.10), transparent 58%),
      radial-gradient(circle at 82% 28%, rgba(216,245,255,.06), transparent 65%),
      radial-gradient(circle at 55% 120%, rgba(255,255,255,.03), transparent 70%);
    filter: blur(12px);
  }
  
  /* GRID: Flyer links, Infos + CTA rechts */
  .featured-inner{
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;  /* rechts sitzt sauber mittig */
    gap: 18px;
    padding: 16px;
  
    /* =======================================================
       STELLSCHRAUBE A (Flyer-Spalte):
       1366px: 320–360 ist meist ideal.
       kleiner: 300–340
       ======================================================= */
    grid-template-columns: minmax(260px, 340px) 1fr;
  }
  
  /* Flyer (genau die linke Spalte) */
  .featured-flyer{
    position: relative;
    width: 100%;
    justify-self: start;
  
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.25);
    box-shadow: 0 18px 60px rgba(0,0,0,.45);
    aspect-ratio: 3 / 4;
    cursor: pointer;
  
    /* =======================================================
       STELLSCHRAUBE B (Max-Flyer):
       falls er zu groß ist: 320
       falls zu klein ist: 360–380
       ======================================================= */
    max-width: 340px;
  }
  
  .featured-flyer img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(.98) contrast(1.04);
    transform: scale(1.01);
  }
  
  /* Badges */
  .featured-badge{
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .28em;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(64,185,235,.22);
    background: rgba(10,9,10,.55);
    color: rgba(216,245,255,.90);
    backdrop-filter: blur(10px);
  }
  
  .soldout-ribbon{
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .22em;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(0,0,0,.55);
    color: rgba(255,255,255,.82);
    backdrop-filter: blur(10px);
  }
  
  /* Right side */
  .featured-body{
    display:flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 4px 6px;
    min-width: 0;
  }
  
  .featured-kicker{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .32em;
    color: rgba(255,255,255,.55);
  }
  
  .featured-title{
    font-family: "Playfair Display", ui-serif, Georgia, serif;
    font-size: 34px;
    line-height: 1.06;
    font-weight: 500;
    color: rgba(255,255,255,.92);
    letter-spacing: .01em;
  }
  
  .featured-meta{
    margin-top: 6px;
    display:flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255,255,255,.70);
    font-size: 13px;
    line-height: 1.6;
  }
  
  .meta-pill{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.01);
  }
  
  .meta-pill strong{
    color: rgba(216,245,255,.90);
    font-weight: 900;
  }
  
  .featured-desc{
    margin-top: 8px;
    color: rgba(255,255,255,.70);
    line-height: 1.75;
    font-size: 14px;
    max-width: 72ch;
  }
  
  .featured-actions{
    margin-top: 12px;
    display:flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .featured-actions .btn-gold,
  .featured-actions .btn-ghost{
    border-radius: 18px;
    padding: 12px 14px;
    font-weight: 900;
  }
  
  .btn-disabled{
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
    filter: saturate(.7) contrast(.95);
  }
  
  /* Mobile stacking */
  @media (max-width: 900px){
    .featured-inner{
      grid-template-columns: 1fr;
      align-items: start;
    }
    .featured-flyer{
      max-width: 420px;
      margin: 0 auto;
    }
  }
  
  /* =========================================================
     BLOCK: SECTION HEADERS + COUNTERS (Upcoming/Past)
     ========================================================= */
  .events-section{
    margin-top: 18px;
  }
  
  .events-section__head{
    display:flex;
    align-items:flex-end;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 2px 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 14px;
  }
  
  .events-section__title{
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .02em;
    color: rgba(255,255,255,.90);
  }
  
  .events-section__meta{
    display:inline-flex;
    align-items:center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255,255,255,.58);
    border: 1px solid rgba(64,185,235,.12);
    background: rgba(255,255,255,.01);
    padding: 10px 12px;
    border-radius: 999px;
  }
  
  .events-dot{
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(64,185,235,.86);
    box-shadow: 0 0 0 3px rgba(64,185,235,.12);
  }
  .events-dot--dim{
    background: rgba(255,255,255,.30);
    box-shadow: 0 0 0 3px rgba(255,255,255,.08);
  }
  
  /* =========================================================
     BLOCK: PANELS (Dein Container-Style für Upcoming/Past)
     ========================================================= */
  .events-panel{
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 28px;
    border: 1px solid rgba(64,185,235,.09);
    background: rgba(255,255,255,.008);
    box-shadow:
      0 22px 70px rgba(0,0,0,.62),
      inset 0 1px 0 rgba(255,255,255,.04);
  }
  
  .events-panel__bg{
    position: absolute;
    inset: -2px;
    pointer-events: none;
    background:
      radial-gradient(circle at 18% 22%, rgba(64,185,235,.10), transparent 58%),
      radial-gradient(circle at 82% 28%, rgba(216,245,255,.06), transparent 65%),
      radial-gradient(circle at 55% 120%, rgba(255,255,255,.03), transparent 70%);
    opacity: .48;
    filter: blur(10px);
    transform: scale(1.05);
  }
  
  .events-panel__head{
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 14px;
  }
  
  .events-panel__kicker{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .34em;
    color: rgba(255,255,255,.55);
  }
  
  .events-panel__title{
    margin-top: 10px;
    font-size: 28px;
    line-height: 1.06;
    font-weight: 500;
    color: rgba(255,255,255,.92);
  }
  
  /* =========================================================
     BLOCK: GRIDS (3-col Flyer Grid)
     ========================================================= */
  .events-grid{
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
  }
  
  @media (min-width: 740px){
    .events-grid{ grid-template-columns: repeat(2, 1fr); }
  }
  @media (min-width: 1100px){
    .events-grid{ grid-template-columns: repeat(3, 1fr); }
  }
  
  /* =========================================================
     BLOCK: EVENT CARD (Portrait Flyer)
     - Kein "Flyer ansehen" Button: ganze Card ist klickbar (JS)
     ========================================================= */
  .event-card{
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.015);
    overflow: hidden;
    box-shadow:
      0 16px 50px rgba(0,0,0,.50),
      inset 0 1px 0 rgba(255,255,255,.05);
    transition: transform .18s ease, border-color .22s ease, box-shadow .25s ease;
    cursor: pointer; /* klickbar */
  }
  
  .event-card:hover{
    transform: translateY(-1px);
    border-color: rgba(216,245,255,.18);
    box-shadow:
      0 20px 64px rgba(0,0,0,.60),
      0 0 0 1px rgba(64,185,235,.08),
      inset 0 1px 0 rgba(255,255,255,.06);
  }
  
  .event-flyer{
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.25);
    aspect-ratio: 3 / 4; /* portrait */
  }
  
  .event-flyer img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display:block;
    filter: saturate(.98) contrast(1.04);
    transform: scale(1.01);
  }
  
  .event-flyer--placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    color: rgba(255,255,255,.55);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    background:
      radial-gradient(circle at 22% 24%, rgba(64,185,235,.08), transparent 60%),
      rgba(255,255,255,.015);
  }
  
  .event-ribbon{
    position:absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .22em;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(64,185,235,.22);
    background: rgba(10,9,10,.60);
    color: rgba(216,245,255,.90);
    backdrop-filter: blur(10px);
  }
  
  .event-ribbon--soldout{
    left: auto;
    right: 12px;
    border-color: rgba(255,255,255,.16);
    color: rgba(255,255,255,.82);
  }
  
  .event-body{
    padding: 14px 14px 16px;
  }
  
  .event-date{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(216,245,255,.90);
    border: 1px solid rgba(64,185,235,.16);
    background: rgba(64,185,235,.05);
    padding: 10px 12px;
    border-radius: 999px;
    white-space: nowrap;
  }
  
  .event-title{
    margin-top: 10px;
    font-family: "Playfair Display", ui-serif, Georgia, serif;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 500;
    color: rgba(255,255,255,.92);
  }
  
  .event-meta{
    margin-top: 8px;
    display:flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: rgba(255,255,255,.66);
    line-height: 1.6;
  }
  
  .event-tag{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.01);
  }
  
  .event-desc{
    margin-top: 10px;
    color: rgba(255,255,255,.70);
    line-height: 1.7;
    font-size: 14px;
  }
  
  /* =========================================================
     BLOCK: EMPTY STATES
     ========================================================= */
  .events-empty{
    position: relative;
    z-index: 1;
    border-radius: 18px;
    padding: 18px 16px;
    border: 1px dashed rgba(255,255,255,.14);
    background: rgba(255,255,255,.01);
    margin-top: 12px;
  }
  
  .events-empty__title{
    font-size: 18px;
    font-weight: 500;
    color: rgba(255,255,255,.90);
  }
  
  .events-empty__text{
    margin-top: 8px;
    color: rgba(255,255,255,.62);
    font-size: 14px;
    line-height: 1.7;
  }
  
  /* =========================================================
     BLOCK: FLYER MODAL (matcht dein HTML: #flyerModal)
     ========================================================= */
  .flyer-modal{
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 18px;
  }
  
  .flyer-modal.hidden{
    display: none;
  }
  
  .flyer-modal__overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(10px);
  }
  
  .flyer-modal__dialog{
    position: relative;
    z-index: 1;
    width: min(860px, 94vw);
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(10,9,10,.78);
    box-shadow: 0 30px 110px rgba(0,0,0,.75);
    overflow: hidden;
  }
  
  .flyer-modal__close{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.02);
    color: rgba(255,255,255,.82);
    cursor: pointer;
    transition: transform .18s ease, border-color .2s ease;
  }
  .flyer-modal__close:hover{
    transform: translateY(-1px);
    border-color: rgba(216,245,255,.20);
  }
  
  .flyer-modal__content{
    padding: 16px;
    display: grid;
    place-items: center;
  }
  
  .flyer-modal__content .flyer-modal__img{
    width: min(520px, 88vw);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.25);
    aspect-ratio: 3 / 4;
  }
  
  .flyer-modal__content .flyer-modal__img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display:block;
  }
  
  
  
  /* =========================================================
     BLOCK: CTA BUTTONS (Upcoming Grid)
     - macht "Jetzt teilnehmen" wieder in normaler Größe
     ========================================================= */
  
  .event-actions{
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* Button Größe im Grid (mehr "original") */
  .event-actions .btn-gold,
  .event-actions .btn-ghost{
    padding: 12px 18px;       /* <- Stellschraube: 12/16, 12/20 usw. */
    font-size: 14px;          /* <- Stellschraube: 13px / 14px / 15px */
    font-weight: 700;
    border-radius: 18px;
  }
  
  /* Ausgebucht (disabled) im Grid konsistent */
  .event-actions .btn-disabled{
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
    filter: saturate(.7) contrast(.95);
  }
  
  
  /* =========================================================
     BLOCK: RESPONSIVE FINETUNE
     ========================================================= */
  @media (max-width: 640px){
    .events-hero__inner{
      padding: 26px 0 10px;
      flex-direction: column;
      align-items: flex-start;
    }
    .events-title{ font-size: 38px; }
  
    .events-panel{
      padding: 24px;
      border-radius: 22px;
    }
  
    .featured-title{ font-size: 30px; }
  }
  
  
  #eventsStatus{ display:none !important; }
  .events-toolbar__right{ display:none !important; }
  
  
  #upcomingCount, #pastCount{ display:none !important; }
  
  
  /* Mobile: Wishlist in der Topbar hart ausblenden (falls Tailwind/hidden mal nicht greift) */
  @media (max-width: 767px){
    header.topbar a[href*="wishlist"]{
      display: none !important;
    }
  }