@charset "UTF-8";
/*------------------------------------------------------------------
[Convention Schedule & Program Planner – WordPress Event Management Plugin Live Ticker Module Stylesheet]

Project:        Convention Schedule & Program Planner – WordPress Event Management
Version:        1.7.0
Author:         LitteraNovix
Primary use:    Event Management & Display

Table of Contents:

1. BASE COMPONENTS & SHARED ASSETS (Ticker Specific)
2. LIVE VIEW DESIGN (Layout & Containers)
3. TICKER ANIMATION LOGIC (Fades & Rotation)
4. STATUS INDICATORS (Badges & Countdowns)
5. FULLSCREEN BUTTON 
6. RESPONSIVE LOGIC (Mobile & Tablet Fixes)
7. VOLLBILD EXTRAS (Zoom Slider & Klick-Sperre)
8. CONTAINER QUERIES (Intelligente Sidebar-Anpassung)
9. KEYFRAME ANIMATIONS (Ticker Essentials)
-------------------------------------------------------------------*/


/* =========================================
   1. BASE COMPONENTS & SHARED ASSETS (Ticker Specific
   ========================================= */
   
html body .ec-event-calendar-app .ec-btn-fav-filter {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  cursor: pointer;
  font-weight: 700;
  border-radius: 4px;
  background-color: #fff;
  border: 2px solid var(--ec-primary);
  color: var(--ec-primary);
  white-space: nowrap;
}

/* Herz-Icon für den Favoriten-Button im Ticker */
html body .ec-event-calendar-app .ec-live-fav-toggle .ec-icon-heart {
  -webkit-mask-image: url("../icons/icon-heart.svg");
  mask-image: url("../icons/icon-heart.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: var(--ec-primary);
}

/* Wenn der Button aktiv ist oder gehovert wird: Weißes Herz */
html body .ec-event-calendar-app .ec-live-fav-toggle:hover .ec-icon-heart,
html body .ec-event-calendar-app .ec-live-fav-toggle.active .ec-icon-heart {
  background-color: #fff;
}

/* Hover-Effekt für den Ticker-Button */
html body .ec-event-calendar-app .ec-btn-fav-filter:hover,
html body .ec-event-calendar-app .ec-live-fav-toggle.active {
  background-color: var(--ec-primary);
  color: #fff;
}

/* =========================================
   3. TICKER ANIMATION LOGIC (ROTATION)
   ========================================= */

html body .ec-event-calendar-app .ec-live-grid, 
html body .ec-event-calendar-app .ec-upcoming-grid {
  position: relative;
  overflow: hidden;
  transition: height 0.4s ease-in-out;
  display: block;
}

/* optional KOmmentar entfernen, dann ganze Zeile fett                              */
/* .ec-event-calendar-app .ec-upcoming-grid .ec-meta-row-bottom {                   */
/*        font-weight: 700; /* Macht die gesamte untere Meta-Zeile fett             */
/*         color: #333;                                                             */
/*  }   */


/* Zustand: Transparent (während des JS-gesteuerten Wechsels) */
html body .ec-event-calendar-app .ec-compact-row.ec-roll-transparent {
    opacity: 0;
    transform: translateY(5px);
}

/* Zustand: Komplett versteckt (Ticker-Kontrolle) */
/* Hier behalten wir !important als Ausnahme für JS-State-Control, erhöhen aber die Spezifität */
html body .ec-event-calendar-app .ec-roll-hidden {
  display: none !important;
}

/* Zustand: Komplett versteckt (Ticker-Kontrolle) */
html body .ec-event-calendar-app .ec-roll-hidden {
  display: none !important;
}

/* Freigabe des Preloads, wenn Ticker aktiv ist. */
html body .ec-event-calendar-app .ec-live-view-container[data-ticker-active=true] .ec-is-preloaded {
  display: flex;
}

/*  LIVE VIEW TICKER / ROTATION (ENDE) */


/* =========================================
   4. STATUS INDICATORS (BADGES & COUNTDOWNS)
   ========================================= */
   
html body .ec-event-calendar-app .ec-blink {
  animation: ec-badge-blink 1.5s infinite ease-in-out;
}
   
html body .ec-event-calendar-app .ec-live-view-container {
  background: #fff;
  border: 1px solid var(--ec-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  will-change: height; /* Optimiert Performance auf Mobilgeräten */
  opacity: 1;
  min-height: 150px; /* Platzhalterhöhe für den Spinner */
  transition: opacity 0.4s ease-in-out, height 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  /*  transition: height 0.3s cubic-bezier(0.25, 0.1, 0.25, 1); Alte Variante:  Verhindert abruptes Springen beim Scrollen */
}
/* 2. Nur die tatsächlichen Ticker-Inhalte (Grids) sind anfangs unsichtbar */
html body .ec-event-calendar-app .ec-live-view-container .ec-live-section,
html body .ec-event-calendar-app .ec-live-view-container .ec-upcoming-section {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
/* 3. Wenn initialisiert, blenden wir die Sektionen ein und den Loader aus */
html body .ec-event-calendar-app .ec-live-view-container.ec-is-initialized .ec-live-section,
html body .ec-event-calendar-app .ec-live-view-container.ec-is-initialized .ec-upcoming-section {
    opacity: 1;
}
/* Wenn initialisiert, blenden wir die Sektionen ein und den Loader aus */
html body .ec-event-calendar-app .ec-live-view-container.ec-is-initialized .ec-live-loader {
    display: none;
}
/* Klasse für das JS zum Einblenden */
html body .ec-event-calendar-app .ec-live-view-container.ec-is-initialized {
    opacity: 1;
}
html body .ec-event-calendar-app .ec-live-section, .ec-event-calendar-app .ec-upcoming-section {
  padding: 15px;
}
/* Live Bereich (Aktuell laufend) */
html body .ec-event-calendar-app .ec-live-section {
  background-color: var(--ec-live-bg, #fff9f9);
  border-bottom: 1px dashed var(--ec-border);
}
/* Kommende Events (Upcoming) */
html body .ec-event-calendar-app .ec-upcoming-section {
  background-color: var(--ec-upcoming-bg, #ffffff);
}
html body .ec-event-calendar-app .ec-live-title, .ec-event-calendar-app .ec-upcoming-title {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #444;
  display: flex;
  align-items: center;
}

/* --- 3. TICKER ANIMATION & DESIGN (Consolidated) --- */

/* Basis-Zustand: Sichtbar & Gestylt */
html body .ec-event-calendar-app .ec-compact-row {
  /* Layout & Design */
  display: flex;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--ec-border);
  border-radius: 6px;
  margin-bottom: 12px;
  min-height: auto;
  height: auto;

  /* Animation Logic (500ms für Fade, 0.2s für Hover-Effekte) */
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms ease-in-out, transform 500ms ease-in-out, background-color 0.2s, border-color 0.2s;
  will-change: opacity, transform;
}

/* Animations-Zustand: Transparent (wird vom JS gesteuert) */
html body .ec-event-calendar-app .ec-compact-row.ec-roll-transparent {
  opacity: 0;
  transform: translateY(5px);
}

html body .ec-event-calendar-app .ec-compact-row:hover {
  border-color: var(--ec-primary);
  filter: brightness(0.95);
}
html body .ec-event-calendar-app .ec-compact-row:active {
  transform: scale(0.99);
}
html body .ec-event-calendar-app .ec-compact-row:not([onclick]) {
  cursor: default;
}
html body .ec-event-calendar-app .ec-row-img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  margin-right: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}
html body .ec-event-calendar-app .ec-row-img img,
html body .ec-event-calendar-app .ec-row-img .ec-is-placeholder,
html body .ec-event-calendar-app .ec-row-img .ec-row-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
html body .ec-event-calendar-app .ec-row-body {
  flex-grow: 1;
  min-width: 0;
  position: relative; /* Wichtig fÃƒÂ¼r die Desktop-Ausrichtung des Countdowns */
}

/* Header global auf die rechte Seite */
html body .ec-event-calendar-app .ec-row-status-header {
  position: absolute;
  top: 0;
  right: 0;
  text-align: right;
  line-height: 1;
  z-index: 5;
}
html body .ec-event-calendar-app .ec-row-title {
  font-weight: 700;
  color: #222;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* Info-Zeile (Meta) */
html body .ec-event-calendar-app .ec-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #333;
  margin-top: 4px;
}
html body .ec-event-calendar-app .ec-meta-sep {
  margin: 0 8px;
  color: var(--ec-border);
  font-weight: 300;
}
		

/* Veraltete Side-Spalte entfernen (da jetzt im Body integriert) */
html body .ec-event-calendar-app .ec-row-side {
  display: none;
}
/* Live Badge & Pulse Animation */
html body .ec-event-calendar-app .ec-badge-live {
  background: #d63638;
  color: #fff;
  border-radius: 4px;
  font-weight: 800;
  display: inline-block;
  text-transform: uppercase;
}
html body .ec-event-calendar-app .ec-pulse-dot {
  height: 10px;
  width: 10px;
  background-color: #d63638;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: ec-pulse-live 2s infinite;
}
html body .ec-event-calendar-app .ec-row-countdown {
  color: var(--ec-primary);
  display: inline-block;
  font-weight: 700;
}

/* Status-Meldungen & Leere Favoriten */
html body .ec-event-calendar-app .ec-empty-state, .ec-event-calendar-app .ec-live-view-container .ec-no-results {
  width: 100%;
  margin: 20px 0;
  font-style: italic;
  color: #888;
  font-size: 0.9rem;
  text-align: center;
}
html body .ec-event-calendar-app .ec-live-view-container .ec-no-results {
  display: none;
}
html body .ec-event-calendar-app .ec-live-grid, .ec-event-calendar-app .ec-upcoming-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
}
html body .ec-event-calendar-app .ec-show-only-favs .ec-compact-row:not(.is-favorite) {
  display: none;
}
html body .ec-event-calendar-app .ec-row-img .ec-is-placeholder {
  opacity: 0.6;
  filter: grayscale(20%);
}
html body .ec-event-calendar-app .ec-row-img .ec-placeholder-icon {
  font-size: 1.5rem;
  opacity: 0.3;
}
html body .ec-event-calendar-app .ec-compact-row:hover .ec-is-placeholder {
  opacity: 0.9;
}

/* --- PRELOAD & DYNAMISCHE FARBEN  --- */

/* Preload Logic */
html body .ec-event-calendar-app .ec-is-preloaded {
  display: none;
}
html body .ec-event-calendar-app .ec-show-only-favs .ec-compact-row.is-favorite.ec-is-preloaded {
  display: flex;
}

/* Dynamische Akzentfarbe (Venue Color) */
html body .ec-event-calendar-app .ec-compact-row {
  /* Nutzt die Variable aus dem PHP fÃƒÂ¼r den linken Rand */
  border-left: 5px solid var(--ec-row-accent, var(--ec-primary));
  /* Nutzt die RGB-Variable aus PHP fÃƒÂ¼r den Hintergrund (mit 12% Transparenz) */
  /* Fallback (255, 255, 255) ist WeiÃƒÅ¸, falls keine Variable da ist */
  background-color: rgba(var(--ec-row-bg-rgb, 255, 255, 255), 0.12);
  /* Damit Text auf farbigem Grund lesbar bleibt */
  color: inherit;
}

/* Hover-Effekt angepasst auf die dynamische Farbe */
html body .ec-event-calendar-app .ec-compact-row:hover {
  border-color: var(--ec-row-accent, var(--ec-primary));
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Countdown nutzt jetzt ebenfalls die Orts-Farbe */
html body .ec-event-calendar-app .ec-row-countdown {
  color: var(--ec-row-accent, var(--ec-primary));
}

/* Datums-Trenner zwischen den Tagen */
html body .ec-event-calendar-app .ec-date-separator {
  width: 100%;
  padding: 0 10px 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--ec-border);
  margin-bottom: 10px;
  display: block;
  line-height: 1.2;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}


/* Date Separator Logic */
html body .ec-event-calendar-app .ec-date-separator.ec-is-preloaded {
  display: none;
}

/* Im Favoriten-Modus wird der Trenner erst eingeblendet, wenn das JS ihn freigibt */
.ec-event-calendar-app .ec-show-only-favs .ec-date-separator {
  display: none;
}

html body .ec-event-calendar-app .ec-show-only-favs .ec-date-separator:not(.is-favorite) {
  display: none;
}
/* Trenner, die Favoriten enthalten, mÃƒÂ¼ssen im Favoriten-Modus sichtbar bleiben */
html body .ec-event-calendar-app .ec-show-only-favs .ec-date-separator.is-favorite {
  display: block;
}

/* Live Grid Meta */
html body .ec-event-calendar-app .ec-live-grid .ec-meta-time-live {
    display: inline-block;
    font-weight: 400;
    color: #333; 
    margin-right: 2px;
}

    /* Erzeugt den Trennstrich analog zu den kommenden Veranstaltungen */
    .ec-event-calendar-app .ec-live-grid .ec-meta-time-live::after {
        content: "|";
        display: inline-block;
        margin: 0 8px;
        color: var(--ec-border);
        font-weight: 300;
    }

    /* Verhindert, dass die Uhrzeit-Zeile unnötig umbricht */
html body .ec-event-calendar-app .ec-live-grid .ec-meta-row-top {
    display: inline;
}


/* RESPONSIVE LOGIK FÃƒÅ“R COUNTDOWN/BADGE POSITION */
/* --- Desktop-Variante (Ab 601px Breite) --- */

@media (min-width: 601px) {
    /* 1. Alten Trenner vor der Uhrzeit lÃ¶schen */
    html body .ec-event-calendar-app .ec-meta-row-bottom::before {
        content: none;
    }

/* 2.  Countdown (Rechts) braucht keinen Strich dahinter */
    html body .ec-event-calendar-app .ec-meta-time-live::after {
        content: "|";
        display: inline-block;
        margin: 0 8px;
        color: var(--ec-border);
        font-weight: 300;
    }

    /* 3. WICHTIG: Die mobilen Varianten auf Desktop "neutralisieren", 
       damit sie keinen Platz wegnehmen und keine Striche erzeugen. */
    html body .ec-event-calendar-app .ec-mobile-status-inline,
    html body .ec-event-calendar-app .ec-mobile-status-inline .ec-badge-live {
        display: none;
        content: none;
    }

    /* 4. Verhindert das Springen der Uhrzeitzeile */
    html body .ec-event-calendar-app .ec-meta-row-top {
        display: inline;
    }
	
  html body .ec-event-calendar-app .ec-desktop-only-status {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    text-align: right;
  }
  html body .ec-event-calendar-app .ec-row-title {
    padding-right: 150px;
  }
  html body .ec-event-calendar-app .ec-badge-live {
    font-size: 0.85rem !important;
    padding: 4px 10px;
  }
  html body .ec-event-calendar-app .ec-row-countdown {
    font-size: 0.85rem;
  }
}

/* Versteckt den hässlichen Standard-Rahmen von Browsern bei fehlenden Bildern */
html body .ec-event-calendar-app .ec-row-img img:not([src]), 
html body .ec-event-calendar-app .ec-row-img img[src=""] {
    opacity: 0;
}

/* Verhindert das Aufblitzen des "Broken Image" Icons während des Umschaltens */
html body .ec-event-calendar-app .ec-row-img img:-moz-broken,
html body .ec-event-calendar-app .ec-row-img img:broken {
    visibility: hidden;
}


/* =========================================
   5. FULLSCREEN BUTTON 
   ========================================= */

html body .ec-event-calendar-app .ec-live-fullscreen-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    margin-left: 10px;
}

html body .ec-event-calendar-app .ec-live-fullscreen-btn .ec-icon-fullscreen-svg {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

/* Identisches Icon-Styling zum Fav-Button */
html body .ec-event-calendar-app .ec-live-fullscreen-btn .ec-icon-fullscreen-svg svg {
    stroke: var(--ec-primary);
    width: 20px;
    height: 20px;
}

html body .ec-event-calendar-app .ec-live-fullscreen-btn:hover .ec-icon-fullscreen-svg svg {
    stroke: #fff;
}

/* Verstecken im Vollbild */
:fullscreen .ec-event-calendar-app .ec-live-fullscreen-btn { display: none !important; }
:-webkit-full-screen .ec-event-calendar-app .ec-live-fullscreen-btn { display: none !important; }

:fullscreen { background-color: #03235a; overflow-y: auto; }

/* Filter Bar Logic */
html body .ec-event-calendar-app .ec-live-filter-bar:not(:has(button:not([style*="display: none"]))) {
    display: none;
}

/* Hier ist !important für :fullscreen Context */
:fullscreen .ec-event-calendar-app .ec-live-filter-bar:not(:has(.ec-live-fav-toggle)) {
    display: none !important;
}

/* Fallback für Safari/ältere Chrome Versionen */
:-webkit-full-screen .ec-event-calendar-app .ec-live-fullscreen-btn {
    display: none !important;
}

/* FULLSCREEN SCROLLBAR
   Erlaubt das Scrollen/Wischen im Vollbild, versteckt aber die Balken.
*/

/* 1. Standard für Firefox */
html body .ec-event-calendar-app .ec-fullscreen-active {
    scrollbar-width: none;
}

/* 2. Für Internet Explorer und Edge */
html body .ec-event-calendar-app .ec-fullscreen-active {
    -ms-overflow-style: none;
}

/* 3. Für Chrome, Safari und Opera */
html body .ec-event-calendar-app .ec-fullscreen-active::-webkit-scrollbar {
    display: none;
}

/* 4. Sicherstellen, dass der Body im Vollbild nicht starr fixiert ist */
html body .ec-event-calendar-app .ec-fullscreen-active body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch; /* Sanftes Scrollen auf iOS */
}

/* OPTIMIERUNG FÜR FLÜSSIGEN VOLLBILD-ZOOM */
html body .ec-event-calendar-app .ec-live-view-container, 
html body .ec-event-calendar-app .ec-live-grid, 
html body .ec-event-calendar-app .ec-upcoming-grid,
html body .ec-event-calendar-app .ec-compact-row {
    /* Verhindert Ruckeln während des Zooms/Resizes */
    will-change: transform, opacity, height;
    /* Sorgt dafür, dass die Grafikkarte beim Skalieren hilft */
    transform: translateZ(0); 
    backface-visibility: hidden;
}

/* Deaktiviert Transitionen kurzzeitig, wenn der Vollbild-Wechsel stattfindet 
   (wird über die JS-Klasse gesteuert) */
html body .ec-event-calendar-app .ec-fullscreen-active .ec-live-grid,
html body .ec-event-calendar-app .ec-fullscreen-active .ec-upcoming-grid {
    transition: none !important;
}

/* =========================================
   7. VOLLBILD EXTRAS (Zoom Slider & Klick-Sperre)
   ========================================= */

/* A) Klick-Sperre im Vollbild */
html.ec-fullscreen-active .ec-live-grid .ec-compact-row,
html.ec-fullscreen-active .ec-upcoming-grid .ec-compact-row,
html.ec-fullscreen-active .ec-monitor-app .ec-event-row {
    pointer-events: none !important; /* Verhindert Klicks */
    cursor: default !important;      /* Zeigt normalen Mauszeiger statt Hand */
}

/* B) Zoom Slider Design */
html body .ec-zoom-overlay {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    padding: 15px 25px;
    border-radius: 50px;
    z-index: 2147483647; /* Muss über allem liegen */
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-family: sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    opacity: 0;
    visibility: hidden;
    pointer-events: auto !important; /* WICHTIG: Slider muss bedienbar bleiben! */
}

html body .ec-zoom-overlay.visible {
    opacity: 1;
    visibility: visible;
}

html body .ec-zoom-label {
    font-weight: bold;
    min-width: 45px;
    text-align: right;
}

/* Slider Input Styling */
html body .ec-zoom-range {
    -webkit-appearance: none;
    width: 200px;
    height: 6px;
    background: #555;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

html body .ec-zoom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--ec-primary, #f76b15);
    border-radius: 50%;
    border: 2px solid #fff;
    transition: transform 0.1s;
}

html body .ec-zoom-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
html body .ec-zoom-range::-moz-range-thumb { width: 20px; height: 20px; background: var(--ec-primary, #f76b15); border: 2px solid #fff; border-radius: 50%; }

/* =========================================
   8. MOBILE RESPONSIVE LOGIC
   ========================================= */

/* --- A. Desktop Fixes (min-width: 800px) --- */
@media (min-width: 800px) {
html body .ec-event-calendar-app .ec-live-filter-bar {
    position: absolute;
    top: 2px;
    right: 15px;
    height: 42px;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 10;
  }
  /* Falls die Bar leer ist, darf sie auch keine Maus-Events abfangen */
html body .ec-event-calendar-app .ec-live-filter-bar:empty {
      display: none;
  }
  .ec-event-calendar-app .ec-live-title, .ec-event-calendar-app .ec-upcoming-title {
    padding-right: 210px;
  }
  .ec-event-calendar-app .ec-live-view-container {
    padding-top: 0;
  }
}

/* --- B. Tablet/Mobile Mix (max-width: 799px) --- */
@media (max-width: 799px) {
html body .ec-event-calendar-app .ec-live-filter-bar {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;    
    justify-content: center;
    background: var(--ec-bg-light);
    border-bottom: 1px solid var(--ec-border);
    padding: 12px;
  }
  html body .ec-event-calendar-app .ec-live-fav-toggle,
  html body .ec-event-calendar-app .ec-live-fullscreen-btn {
    flex: 1 1 auto; 
    margin: 0;
  }
  .ec-event-calendar-app .ec-live-fav-toggle {
    width: 100%;
  }
}

/* --- C. Compact Mobile (max-width: 600px) --- */
@media (max-width: 600px) {
	/* Desktop-Status sofort hart ausblenden gegen das Flackern */
   html body .ec-event-calendar-app .ec-desktop-only-status { display: none; }
/* Reset alter Trenner vor der Uhrzeit */
html body .ec-event-calendar-app .ec-meta-row-bottom::before {
        content: none;
    }

/* Top Row standardmäßig unsichtbar */
html body .ec-event-calendar-app .ec-meta-row-top {
        display: none; 
    }

/* Einblenden wenn Inhalt da ist */
    html body .ec-event-calendar-app .ec-meta-row-top:not(.ec-is-empty) {
        display: inline-block;
        margin-right: 8px;
    }

/* Striche entfernen */
    html body .ec-event-calendar-app .ec-meta-row-top:not(.ec-is-empty)::after {
        content: none;
        display: none;
    }
    html body .ec-event-calendar-app .ec-live-grid .ec-meta-time-live::after {
        content: none;
        display: none;
    }

/* Textfluss */
    html body .ec-event-calendar-app .ec-row-meta {
        display: block;
        margin-top: 2px;
        line-height: 1.4;
    }
	
    /* Trenner innerhalb der zweiten Zeile im Textfluss halten */
  html body .ec-event-calendar-app .ec-meta-sep {
    display: inline;
    margin: 0 4px;
  }

    /* Status-Badge Integration (klein in der Zeile) */
  html body .ec-event-calendar-app .ec-mobile-status-inline {
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
  }

    /* Badge-GrÃƒÂ¶ÃƒÅ¸e (9px) fÃƒÂ¼r die Textzeile optimiert */
  html body .ec-event-calendar-app .ec-mobile-status-inline .ec-badge-live {
    margin-right: 8px;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 9px;
    padding: 1px 4px;
    position: relative;
    top: -3px;
  }

    /* Zeit & Countdown bÃƒÂ¼ndig im Textfluss halten */
  html body .ec-event-calendar-app .ec-row-countdown,
  html body .ec-event-calendar-app .ec-meta-time-live {
    font-size: 0.85rem;
	letter-spacing: 0.02em;
    display: inline;
  }
	html body .ec-event-calendar-app .ec-live-grid .ec-meta-time-live,
    html body .ec-event-calendar-app .ec-upcoming-grid .ec-meta-time-live {
        display: inline;
        color: #d63638;
        font-weight: 700;
        font-size: 0.85rem;
    }
}

/* =========================================
   8. RESPONSIVE SIDEBAR LOGIC (JS-Based)
   greift, wenn JS die Klasse .ec-is-narrow setzt (< 310px)
   ========================================= */

/* Basis-Sicherheit für Page Builder */
/* Hier behalten wir !important bei Width, um Flex-Collapse in Buildern zu verhindern */
html body .ec-event-calendar-app .ec-live-view-container {
    width: 100% !important; 
    max-width: 100% !important;
    box-sizing: border-box;
}

/* --------------------------------------------------------
   A) FILTER LEISTE (Buttons) - 1:1 Mobile Optik
   -------------------------------------------------------- */
html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-live-filter-bar {
    position: relative;
    top: auto;
    right: auto;
    height: auto;
    z-index: 1;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    background-color: var(--ec-bg-light, #fff8f0);
    border-bottom: 1px solid var(--ec-border, #eee);
    border-radius: 0;
    padding: 12px;
    margin: 0;
}

html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-live-fav-toggle {
    width: 100%;
    flex: 1 1 100%;
    margin: 0;
    display: inline-flex;
    justify-content: center;
    height: 42px;
}

html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-live-fullscreen-btn {
    flex: 1 1 auto;
}

html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-live-filter-bar .ec-btn-text {
    display: inline; 
}

html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-live-filter-bar .ec-btn-fav-filter .ec-icon-svg {
    margin-right: 8px; 
}

/* --------------------------------------------------------
   B) TITEL (Laufende / Kommende)
   -------------------------------------------------------- */
html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-live-title,
html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-upcoming-title {
    padding-right: 0;
    display: block; 
    width: 100%;
    hyphens: auto;
    word-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-top: 5px;
}

html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-pulse-dot {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    margin-bottom: 3px;
}

/* --------------------------------------------------------
   C) INHALT (ROW) - Bild weg, Text Platz geben
   -------------------------------------------------------- */
html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-compact-row .ec-row-img {
    display: none;
}

html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-compact-row .ec-row-title {
    padding-right: 0;
    font-size: 0.95rem; 
    white-space: normal;
    word-break: normal;
    margin-bottom: 2px;
}

/* Desktop-Badge verstecken */
html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-compact-row .ec-desktop-only-status {
    display: none;
}

/* --------------------------------------------------------
   D) LIVE STATUS (Pulsierender Punkt + Rote Uhrzeit)
   -------------------------------------------------------- */
html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-compact-row .ec-meta-row-top {
    display: block; 
    width: 100%;
    margin-top: 3px;
    margin-bottom: 2px;
    line-height: 1.2;
}

html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-compact-row .ec-mobile-status-inline {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

/* Transformation LIVE-TEXT -> ROTER PUNKT */
html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-compact-row .ec-mobile-status-inline .ec-badge-live {
    font-size: 0;
    color: transparent;
    padding: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d63638;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -1px;
    margin: 0;
    animation: ec-pulse-live 2s infinite ease-in-out;
    box-shadow: 0 0 0 0 rgba(214, 54, 56, 0.7);
}

/* Uhrzeit Rot & Fett */
html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-live-grid .ec-meta-time-live,
html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-upcoming-grid .ec-meta-time-live {
    display: inline-block;
    color: #d63638;
    font-weight: 700;
    font-size: 0.85rem;
    vertical-align: middle;
}

/* --------------------------------------------------------
   E) METADATEN (Uhrzeit | Ort | Sprecher)
   -------------------------------------------------------- */

/* 1. Die Zeile wieder als FLIESS-TEXT definieren (wie Mobile) */
html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-row-meta {
    display: block;
    margin-top: 2px;
    line-height: 1.4;
}

/* 2. Trennzeichen WIEDER SICHTBAR machen & INLINE setzen */
html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-meta-sep {
    display: inline;
    width: auto;
    height: auto;
    font-size: inherit;
    color: var(--ec-border, #ccc);
    margin: 0 4px;
    content: "|";
}

/* 3. Störende Pseudo-Elemente entfernen */
/* Pseudo-Elemente sind tricky, hier hilft html body oft nicht allein, 
   aber meist reicht es aus. */
html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-row-countdown::after,
html body .ec-event-calendar-app .ec-live-view-container.ec-is-narrow .ec-meta-time-live::after {
    content: none;
    display: none;
}
/* =========================================
   9. KEYFRAME ANIMATIONS
   ========================================= */

/* Pulsierender Punkt fÃƒÂ¼r Live-Events */
@keyframes ec-pulse-live {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(214, 54, 56, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(214, 54, 56, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(214, 54, 56, 0); }
}

/* Sanftes Blinken fÃƒÂ¼r das Live-Badge (Dimmer-Effekt) */
@keyframes ec-badge-blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; } 
    100% { opacity: 1; }
}

/* Fade-In fÃƒÂ¼r Modals und Popups */
@keyframes ec-fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}