/* =============================================
   EVENTS COMBINED – Duden-Rodenbostel
   Eventkalender (Liste) + Monatskalender
   Einbinden via Blocs > Page File Attachments > CSS
   ============================================= */

/* --------------------------------------------------
   VIEW-UMSCHALTER
   -------------------------------------------------- */
.ev-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 12px;
}

.ev-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1.5px solid #d0cdc6;
  border-radius: 10px;
  cursor: pointer;
  color: #7A7A76;
  transition: all 0.15s;
  padding: 0;
}

.ev-switch-btn:hover {
  border-color: #3B6D11;
  color: #3B6D11;
  background: #EAF3DE;
}

.ev-switch-btn.aktiv {
  border-color: #3B6D11;
  border-width: 2px;
  color: #3B6D11;
  background: #EAF3DE;
}

.ev-switch-btn svg {
  fill: currentColor;
}


/* ==================================================
   EVENTKALENDER (LISTE)
   ================================================== */

.ek-liste {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'Manrope', sans-serif;
  background-color: #F7F5F1 !important;
  padding: 0;
  border-radius: 8px;
  line-height: 1.5 !important;
}

/* iCal-Hover in der Card */
.ek-card-ical {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  pointer-events: none;
  color: #7A7A76;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-decoration: none;
}

/* Desktop: Icon + Text beide sichtbar */
.ek-card-ical-icon { display: inline-flex; }
.ek-card-ical-text { display: inline; }

.ek-card-ical svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.ek-card:hover .ek-card-ical {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  color: #3B6D11;
}

.ek-card-ical:hover {
  color: #27500A !important;
}

/* Card braucht position:relative für absolute Kind-Element */
.ek-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  display: flex;
  align-items: stretch;
  padding: 16px 20px;
  gap: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  cursor: default;
  transition: background-color 0.3s ease;
  position: relative;
}

.ek-card:hover { background-color: #f2f2f2 !important; }

.ek-datum {
  min-width: 60px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.ek-datum-wt {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #BA7517;
  margin-bottom: 0;
}

.ek-datum-tag {
  display: block;
  font-family: "PlayfairDisplay-Regular", Georgia, serif;
  font-weight: 500;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  color: #3B6D11;
  line-height: 1;
  font-size: 3.5rem;
  margin-bottom: 6px;
}

.ek-datum-mo {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #BA7517;
}

.ek-datum-jahr {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #7A7A76;
  margin-top: 2px;
  letter-spacing: 0.03em;
}

.ek-strich {
  width: 1px;
  align-self: stretch;
  background: #e0ddd6;
  margin: 0 18px;
  flex-shrink: 0;
}

.ek-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ek-badge-top { display: none; margin-bottom: 10px; }

.ek-titel {
  font-size: 18px;
  font-weight: 600;
  color: #5C5C5C;
  margin-bottom: 4px;
}

.ek-meta { font-size: 16px; color: #5C5C5C; }

.ek-freitext {
  font-size: 14px;
  color: #9A9A96;
  margin-top: 6px;
  margin-bottom: 4px;
  font-style: italic;
}

.ek-badge-wrap {
  margin-left: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.ek-badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.kat-feuerwehr   { background: #FDECEA; color: #B91C1C; }
.kat-dorfleben   { background: #EAF3DE; color: #27500A; }
.kat-sport       { background: #FFF3E0; color: #C2410C; }
.kat-fest        { background: #FEF9C3; color: #854D0E; }
.kat-patenschaft { background: #EFF6FF; color: #1D4ED8; }
.kat-sonstiges   { background: #ECEAE4; color: #4A4A47; }

.ek-msg { font-size: 13px; color: #7A7A76; padding: 1rem 0; }

.ek-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FDECEA;
  color: #991B1B;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 500;
}

.ek-alert-icon { font-size: 20px; flex-shrink: 0; margin: 0 6px; }

/* Listen-Ansicht komplett in Rahmen */
#evViewListe {
  background: #F7F5F1;
  background: #e8e4d8 !important; 
  border-radius: 12px;
  padding: 16px;
  overflow: visible;  /* Dropdown nicht abschneiden */
  position: relative;
  z-index: 1;
}

/* Filter-Dropdown (Liste) */
.ek-filter-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
  font-family: 'Manrope', sans-serif;
}

.ek-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #ffffff;
  border: 1.5px solid #d0cdc6;
  border-radius: 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #3a3a37;
  cursor: pointer;
  transition: border-color 0.15s;
  white-space: nowrap;
}

.ek-filter-btn:hover  { border-color: #3B6D11; }
.ek-filter-btn.aktiv  { border-color: #3B6D11; border-width: 2px; font-weight: 600; }

.ek-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #ffffff;
  border: 1px solid #e0ddd6;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 8px;
  z-index: 9999;
  min-width: 200px;
}

.ek-dropdown.offen { display: block; }

.ek-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #3a3a37;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.ek-dropdown-item:hover  { background: #F7F5F1; }
.ek-dropdown-item.aktiv  { border-color: #3a3a37; font-weight: 600; }

.ek-dropdown-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Responsive Liste */
/* Responsive Kalender */
@media (max-width: 991px) {
  .ek-datum-wt   { font-size: 14px; }
  .ek-datum-tag  { font-size: 2.8rem; margin-bottom: 5px; }
  .ek-datum-mo   { font-size: 10px; }
  .ek-datum-jahr { font-size: 9px; }
  .ek-strich     { margin: 0 14px; }
  .ek-titel      { font-size: 16px; }
  .ek-meta       { font-size: 14px; }
  .ek-freitext   { font-size: 13px; }
  .ek-badge      { font-size: 9px; padding: 4px 11px; }
  .ek-badge-wrap { margin-left: 12px; }
}

/* Mobile: iCal oben rechts, nur Icon, kein Text */
@media (max-width: 767px) {
  .ek-card         { padding: 14px 16px; }
  .ek-card-ical    {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    color: #7A7A76;
    bottom: auto;
    top: 10px;
    right: 12px;
  }
  .ek-card-ical-icon { display: inline-flex; }  /* Icon einblenden */
  .ek-card-ical-text { display: none; }          /* Text ausblenden */
  .ek-card-ical svg  { width: 18px; height: 18px; }
}
  .ek-datum      { min-width: 54px; }
  .ek-datum-wt   { font-size: 13px; }
  .ek-datum-tag  { font-size: 2.8rem; margin-bottom: 5px; }
  .ek-datum-mo   { font-size: 12px; }
  .ek-datum-jahr { font-size: 11px; }
  .ek-strich     { margin: 0 14px; }
  .ek-badge-wrap { display: none; }
  .ek-badge-top  { display: block; }
  .ek-titel      { font-size: 16px; margin-bottom: 3px; }
  .ek-meta       { font-size: 14px; }
  .ek-freitext   { font-size: 13px; }
}

@media (max-width: 480px) {
  #evViewListe   { padding: 10px; }
  .ek-liste      { gap: 10px; }
  .ek-card       { padding: 12px; }
  .ek-datum      { min-width: 46px; }
  .ek-datum-wt   { font-size: 12px; }
  .ek-datum-tag  { font-size: 2.2rem; margin-bottom: 4px; }
  .ek-datum-mo   { font-size: 11px; letter-spacing: 0.05em; }
  .ek-datum-jahr { font-size: 10px; }
  .ek-strich     { margin: 0 12px; }
  .ek-badge-wrap { display: none; }
  .ek-badge-top  { display: block; }
  .ek-titel      { font-size: 15px; }
  .ek-meta       { font-size: 13px; }
  .ek-freitext   { font-size: 12px; }
}


/* ==================================================
   MONATSKALENDER
   ================================================== */

.kal-wrap {
  font-family: 'Manrope', sans-serif;
  background: #F7F5F1;
  background: #e8e4d8 !important; 
  border-radius: 12px;
  padding: 16px;
  line-height: 1.4;
}

.kal-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* Linke Seite: Kategorie-Dropdown */
.kal-header-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Mitte: Monat + Jahr */
.kal-monat-titel {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;      /* LG – identisch H3 */
  font-weight: 600;
  color: #27500A;         /* Waldkiefer */
  text-align: center;
  white-space: nowrap;
}

/* Rechte Seite: Pfeile + Heute */
.kal-header-rechts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.kal-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1.5px solid #d0cdc6;
  border-radius: 8px;
  cursor: pointer;
  font-size: 22px;
  color: #3a3a37;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
  line-height: 1;
  padding-bottom: 1px;
}
.kal-nav-btn:hover { border-color: #3B6D11; background: #EAF3DE; }

.kal-heute-btn {
  padding: 0 14px;
  height: 40px;          /* gleiche Höhe wie nav-btn */
  background: #ffffff;
  border: 1.5px solid #d0cdc6;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #3a3a37;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.kal-heute-btn:hover { border-color: #3B6D11; background: #EAF3DE; }

.kal-filter-wrap {
  position: relative;
  display: inline-block;
  font-family: 'Manrope', sans-serif;
}

.kal-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;     /* exakt wie ek-filter-btn */
  height: auto;           /* kein festes height mehr */
  background: #ffffff;
  border: 1.5px solid #d0cdc6;
  border-radius: 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;        /* exakt wie ek-filter-btn */
  font-weight: 500;
  color: #3a3a37;
  cursor: pointer;
  transition: border-color 0.15s;
  white-space: nowrap;
}
.kal-filter-btn:hover { border-color: #3B6D11; }
.kal-filter-btn.aktiv { border-color: #3B6D11; border-width: 2px; font-weight: 600; }

.kal-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e0ddd6;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 8px;
  z-index: 200;
  min-width: 200px;
}
.kal-dropdown.offen { display: block; }

.kal-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #3a3a37;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.kal-dropdown-item:hover { background: #F7F5F1; }
.kal-dropdown-item.aktiv { border-color: #3a3a37; font-weight: 600; }

.kal-dropdown-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));  /* minmax(0,1fr) verhindert Aufweiten */
  gap: 2px;
}

.kal-wt-header {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7A7A76;
  padding: 6px 0 10px;
  min-width: 0;        /* verhindert Aufweiten durch Text */
  overflow: hidden;
}

.kal-tag {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  min-height: 160px;
  padding: 6px 7px;
  position: relative;
  transition: background 0.15s;
  min-width: 0;
  overflow: hidden;
}

.kal-tag.anderer-monat { background: #F7F5F1; border-color: #e8e5de; }
.kal-tag.anderer-monat .kal-tag-zahl { color: #C0C0BA; }
.kal-tag.heute { border-color: #3B6D11; border-width: 2px; }

.kal-tag-zahl {
  font-size: 14px;
  font-weight: 500;
  color: #3a3a37;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-bottom: 4px;
  line-height: 1;
}

.kal-tag.heute .kal-tag-zahl {
  background: #3B6D11;
  color: #ffffff;
  font-weight: 700;
}

.kal-events { display: flex; flex-direction: column; gap: 3px; }

.kal-badge {
  display: block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  line-height: 1.5;
  max-width: 100%;     /* nie breiter als die Zelle */
  box-sizing: border-box;
}
.kal-badge:hover { opacity: 0.8; transform: scale(1.02); }

.kal-mehr {
  font-size: 10px;
  font-weight: 600;
  color: #7A7A76;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 3px;
  transition: background 0.12s;
  display: inline-block;
  margin-top: 1px;
}
.kal-mehr:hover { background: #ECEAE4; color: #3a3a37; }

@media (max-width: 767px) {
  .kal-ical-tooltip { display: none; }
}  /* MD */
  .kal-tag        { min-height: 130px; padding: 5px 6px; }
  .kal-tag-zahl   { font-size: 13px; width: 24px; height: 24px; }
  .kal-badge      { font-size: 10px; padding: 2px 5px; }
  .kal-monat-titel{ font-size: 1.5rem; }   /* MD = 1.5rem */
  .kal-wt-header  { font-size: 11px; }
}

@media (max-width: 768px) {  /* SM */
  .kal-wrap        { padding: 10px; }
  .kal-tag         { min-height: 80px; padding: 4px; }
  .kal-tag-zahl    { font-size: 12px; width: 22px; height: 22px; margin-bottom: 2px; }
  .kal-badge       { font-size: 9px; padding: 1px 4px; }
  .kal-mehr        { font-size: 9px; }
  .kal-monat-titel { font-size: 1.3rem; }  /* SM = 1.3rem */
  .kal-wt-header   { font-size: 10px; padding-bottom: 6px; }
  .kal-grid        { gap: 1px; }
  .kal-header      { gap: 6px; margin-bottom: 12px; }
  .kal-nav-btn     { width: 34px; height: 34px; font-size: 20px; }
  .kal-heute-btn   { height: 34px; font-size: 12px; padding: 0 10px; }
  .kal-filter-btn  { font-size: 13px; padding: 7px 13px; }
}

/* Kalender-Dropdown: auf XS nach links öffnen statt rechts */
@media (max-width: 576px) {
  .kal-dropdown {
    right: auto;
    left: 0;
  }
}
@media (max-width: 576px) {
  .kal-tag.hat-events {
    cursor: pointer;
    transition: background 0.15s;
  }
  .kal-tag.hat-events:hover,
  .kal-tag.hat-events:active {
    background: #EAF3DE;
  }
  .kal-tag.heute.hat-events:hover,
  .kal-tag.heute.hat-events:active {
    background: #d4eabd;
  }
}

/* Globale Defaults: Text + Chevron sichtbar, Icon + Zahl versteckt */
.kal-heute-zahl      { display: none; }
.kal-heute-text      { display: inline; }
.kal-filter-btn-text { display: inline; }
.kal-filter-chevron  { display: block; }
.kal-filter-icon     { display: none; }

@media (max-width: 576px) {  /* XS: Icon statt Text+Chevron */
  .kal-filter-btn-text { display: none; }
  .kal-filter-chevron  { display: none; }
  .kal-filter-icon     { display: block; }
  .kal-heute-text      { display: none; }
  .kal-heute-zahl      { display: inline; }
  /* Kategorie aktiv: Text + Chevron einblenden, Icon ausblenden */
  .kal-filter-btn.aktiv .kal-filter-btn-text { display: inline !important; }
  .kal-filter-btn.aktiv .kal-filter-chevron  { display: block !important; }
  .kal-filter-btn.aktiv .kal-filter-icon     { display: none !important; }
}

@media (max-width: 576px) {  /* XS */
  .kal-wrap        { padding: 8px; border-radius: 8px; }
  .kal-header        { grid-template-columns: auto 1fr auto; gap: 6px; margin-bottom: 10px; }
  .kal-header-links  { justify-content: flex-start; }
  .kal-header-rechts { justify-content: flex-end; }
  .kal-filter-btn  { padding: 8px; border-radius: 8px; gap: 0; }
  .kal-filter-btn.aktiv { padding: 8px 12px; gap: 6px; }
  .kal-monat-titel { font-size: 1.15rem; }
  .kal-nav-btn     { width: 30px; height: 30px; border-radius: 6px; font-size: 17px; }
  .kal-heute-btn   { height: 30px; min-width: 30px; font-size: 13px; font-weight: 600; color: #3B6D11; padding: 0 8px; }
  .kal-tag         { min-height: 58px; padding: 3px; border-radius: 4px; }
  .kal-tag-zahl    { font-size: 11px; width: 20px; height: 20px; }
  .kal-wt-header   { font-size: 9px; letter-spacing: 0; padding-bottom: 4px; }
  .kal-badge {
    width: 8px; height: 8px;
    border-radius: 50%;
    padding: 0; overflow: hidden;
    font-size: 0; flex-shrink: 0;
    display: inline-block;
  }
  .kal-badge.kat-feuerwehr   { background: #B91C1C; }
  .kal-badge.kat-dorfleben   { background: #27500A; }
  .kal-badge.kat-sport       { background: #C2410C; }
  .kal-badge.kat-fest        { background: #854D0E; }
  .kal-badge.kat-patenschaft { background: #1D4ED8; }
  .kal-badge.kat-sonstiges   { background: #4A4A47; }
  .kal-events { flex-direction: row; flex-wrap: wrap; gap: 3px; }
  .kal-mehr   { font-size: 8px; }
}


/* ==================================================
   POPUP (geteilt)
   ================================================== */

.kal-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: background 0.4s ease;  /* längerer Overlay-Fade */
}

.kal-popup-overlay.offen {
  display: flex;
  background: rgba(0,0,0,0.35);
}

@keyframes kalPopupIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes kalPopupOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}

.kal-popup {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  animation: kalPopupIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;  /* länger + Feder */
}

.kal-popup.schliessen {
  animation: kalPopupOut 0.25s ease forwards;  /* etwas länger beim Schließen */
}

.kal-popup-header {
  background: #27500A;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kal-popup-datum {
  color: #C0DD97;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.kal-popup-titel {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.kal-popup-schliessen {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 18px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
  line-height: 1;
}
.kal-popup-schliessen:hover { background: rgba(255,255,255,0.25); }

.kal-popup-body {
  padding: 16px 20px 20px;
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.kal-popup-zeile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #4A4A47;
  margin-bottom: 10px;
}
.kal-popup-zeile:last-child { margin-bottom: 0; }
.kal-popup-icon { flex-shrink: 0; margin-top: 1px; opacity: 0.55; }

.kal-popup-freitext {
  font-size: 13px;
  color: #7A7A76;
  font-style: italic;
  border-top: 1px solid #ECEAE4;
  padding-top: 12px;
  margin-top: 4px;
}

.kal-popup-liste .kal-popup-event {
  border-bottom: 1px solid #ECEAE4;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.kal-popup-liste .kal-popup-event:last-child {
  border-bottom: none; padding-bottom: 0; margin-bottom: 0;
}

/* iCal-Button im Popup */
.kal-popup-footer {
  padding: 0 20px 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.kal-ical-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #7A7A76;
  transition: color 0.2s, gap 0.3s;
  padding: 4px 0;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.kal-ical-btn:hover { color: #3B6D11; gap: 8px; }

.kal-ical-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.kal-ical-btn:hover svg { transform: scale(1.1); }

/* Label: standardmäßig komplett versteckt */
.kal-ical-label {
  display: none;
  white-space: nowrap;
}

/* Nur auf Desktop (≥992px) beim Hover einblenden */
@media (min-width: 992px) {
  .kal-ical-label {
    display: inline-block;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .kal-ical-btn:hover .kal-ical-label {
    opacity: 1;
    transform: translateX(0);
  }
}
