/* ============================================================
   Radio Tell Veranstaltungskalender - Frontend CSS v1.2.0
   Design: dunkle Header, rote Akzente, ECKIGE Raender ueberall
   Schrift: Source Sans 3 (Body) + Rockwell (Headlines)
   ============================================================ */

:root {
    --rtv-red:       #cc2200;
    --rtv-red-h:     #aa1a00;
    --rtv-red-light: #fff0ee;
    --rtv-dark:      #2c3038;
    --rtv-dark-h:    #1e2228;
    --rtv-gray:      #f4f4f4;
    --rtv-row-even:  #ffffff;
    --rtv-row-odd:   #f7f3f2;
    --rtv-row-hover: #ffe8e4;
    --rtv-border:    #e0e0e0;
    --rtv-text:      #333;
    --rtv-muted:     #777;
    --rtv-radius:    0;          /* ECKIG ueberall */
    --rtv-shadow:    0 1px 4px rgba(0,0,0,.08);
    --rtv-font-body: 'Source Sans Pro', 'Source Sans 3', Arial, sans-serif;
    --rtv-font-head: Rockwell, 'Rockwell Nova', 'Courier Bold', Georgia, serif;
}

.rtv-wrap {
    font-family: var(--rtv-font-body);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--rtv-text);
}

/* Headlines mit Rockwell */
.rtv-wrap h1,
.rtv-wrap h2,
.rtv-wrap h3,
.rtv-wrap h4,
.rtv-popup-title,
.rtv-event-title,
.rtv-submit-wrap h3,
.rtv-preview-box h3,
.rtv-form-section h3 {
    font-family: var(--rtv-font-head);
    letter-spacing: .01em;
}

/* -- Count -- */
.rtv-count { font-size:.95rem; color:var(--rtv-muted); margin:16px 0 8px; }
.rtv-count strong { color:var(--rtv-red); font-size:1.1rem; }

/* ========================================
   FILTER CARD
======================================== */
.rtv-filter-card {
    background:#fff;
    border:1px solid var(--rtv-border);
    border-radius:var(--rtv-radius);
    padding:24px 28px;
    margin-bottom:28px;
    box-shadow:var(--rtv-shadow);
}
.rtv-filter-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
    gap:20px;
    margin-bottom:20px;
}

/* Labels */
.rtv-filter-field label,
.rtv-field > label:first-child {
    display:block;
    font-family: var(--rtv-font-body);
    font-size:.72rem;
    font-weight:700;
    letter-spacing:.06em;
    color:var(--rtv-muted);
    margin-bottom:6px;
    text-transform:uppercase;
}

/* Inputs - Unterstriche, kein Box-Border */
.rtv-filter-field input,
.rtv-field input[type="text"],
.rtv-field input[type="date"],
.rtv-field input[type="time"],
.rtv-field input[type="tel"],
.rtv-field input[type="url"],
.rtv-field input[type="email"],
.rtv-field input[type="number"],
.rtv-field input[type="file"],
.rtv-field select {
    width:100%;
    border:none;
    border-bottom:2px solid #ccc;
    background:transparent;
    padding:6px 0;
    font-size:1rem;
    font-family: var(--rtv-font-body);
    color:var(--rtv-text);
    outline:none;
    border-radius:0;
    transition:border-color .2s;
    box-sizing:border-box;
}
.rtv-filter-field input:focus,
.rtv-field input:focus { border-bottom-color:var(--rtv-red); }

.rtv-field textarea {
    width:100%;
    border:1px solid var(--rtv-border);
    border-radius:0;
    padding:8px;
    font-size:1rem;
    font-family: var(--rtv-font-body);
    resize:vertical;
    box-sizing:border-box;
    outline:none;
    transition:border-color .2s;
}
.rtv-field textarea:focus { border-color:var(--rtv-red); }

/* Alle Buttons + Inputs explizit mit Schrift versorgen */
.rtv-wrap input,
.rtv-wrap textarea,
.rtv-wrap select,
.rtv-wrap button,
.rtv-wrap .rtv-btn-primary,
.rtv-wrap .rtv-btn-secondary {
    font-family: var(--rtv-font-body);
}

/* Kategorie-Filter-Labels */
.rtv-filter-cats { margin-bottom:20px; }
.rtv-filter-cats > label {
    display:block;
    font-size:.72rem;
    font-weight:700;
    letter-spacing:.06em;
    color:var(--rtv-muted);
    text-transform:uppercase;
    margin-bottom:10px;
}

/* Category Pills - ECKIG */
.rtv-cat-pills { display:flex; flex-wrap:wrap; gap:8px; }
.rtv-pill input { display:none; }
.rtv-pill span {
    display:inline-block;
    padding:5px 14px;
    border:1.5px solid var(--rtv-border);
    border-radius:0;            /* ECKIG */
    font-size:.82rem;
    cursor:pointer;
    transition:all .15s;
    background:#fff;
    color:var(--rtv-text);
    user-select:none;
}
.rtv-pill input:checked + span { background:var(--rtv-red); border-color:var(--rtv-red); color:#fff; }
.rtv-pill span:hover { border-color:var(--rtv-red); color:var(--rtv-red); }
.rtv-pill input:checked + span:hover { color:#fff; }

.rtv-filter-actions { display:flex; gap:12px; align-items:center; justify-content:flex-end; }

/* ========================================
   BUTTONS - ALLE ECKIG
======================================== */
.rtv-btn-primary {
    background:var(--rtv-dark); color:#fff;
    border:none; padding:9px 22px;
    border-radius:0;            /* ECKIG */
    font-size:.9rem; font-weight:600;
    cursor:pointer; transition:background .15s;
}
.rtv-btn-primary:hover { background:var(--rtv-dark-h); }
.rtv-btn-primary:disabled { opacity:.6; cursor:not-allowed; }

.rtv-btn-reset {
    background:transparent; color:var(--rtv-muted);
    border:1.5px solid var(--rtv-border);
    padding:9px 22px; border-radius:0;  /* ECKIG */
    font-size:.9rem; cursor:pointer; transition:all .15s;
}
.rtv-btn-reset:hover { border-color:var(--rtv-red); color:var(--rtv-red); }

.rtv-btn-secondary {
    background:transparent; color:var(--rtv-dark);
    border:1.5px solid var(--rtv-border);
    padding:7px 16px; border-radius:0;  /* ECKIG */
    font-size:.85rem; cursor:pointer; transition:all .15s;
    margin-top:8px;
}
.rtv-btn-secondary:hover { border-color:var(--rtv-dark); }

.rtv-btn-details {
    background:transparent; color:var(--rtv-red);
    border:1.5px solid var(--rtv-red);
    padding:4px 14px; border-radius:0;  /* ECKIG */
    font-size:.82rem; font-weight:600;
    cursor:pointer; transition:all .15s;
}
.rtv-btn-details:hover { background:var(--rtv-red); color:#fff; }

/* ========================================
   TABELLE - abwechselnde Zeilen + Hover Hellrot
======================================== */
.rtv-table { width:100%; border-collapse:collapse; font-size:.9rem; }

.rtv-table thead tr { background:var(--rtv-dark); color:#fff; }
.rtv-table thead th {
    padding:12px 14px; text-align:left;
    font-size:.78rem; font-weight:700;
    letter-spacing:.04em; text-transform:uppercase;
}

.rtv-table tbody tr.rtv-row-even { background:var(--rtv-row-even); }
.rtv-table tbody tr.rtv-row-odd  { background:var(--rtv-row-odd); }
.rtv-table tbody tr              { border-bottom:1px solid var(--rtv-border); transition:background .12s; }
.rtv-table tbody tr:hover        { background:var(--rtv-row-hover) !important; }

.rtv-table td { padding:11px 14px; vertical-align:middle; }

.rtv-table .rtv-date { white-space:nowrap; color:var(--rtv-muted); font-size:.85rem; }
.rtv-table .rtv-date small { display:block; color:var(--rtv-red); font-weight:600; }

/* Quellen-Spalte */
.rtv-src-col { white-space:nowrap; text-align:center; width:54px; }
.rtv-src-icon { height:20px; width:auto; vertical-align:middle; }
.rtv-src-badge {
    display:inline-block; padding:2px 6px;
    font-size:.7rem; font-weight:700; letter-spacing:.04em;
    border-radius:0;
}
.rtv-src-vsv  { background:#e3f0ff; color:#1a6abf; }
.rtv-src-tell { background:var(--rtv-red-light); color:var(--rtv-red); }
.rtv-src-ejv  { background:#e8e8e8; color:#444; }

/* Source-Filter-Pills */
.rtv-filter-sources { margin-top:12px; }
.rtv-filter-sources label { display:block; font-size:.68rem; font-weight:700; letter-spacing:.08em; color:var(--rtv-muted); margin-bottom:6px; }
.rtv-source-pills { display:flex; flex-wrap:wrap; gap:6px; }
.rtv-source-pill {
    background:#fff; border:1.5px solid var(--rtv-border);
    padding:5px 14px; border-radius:0; cursor:pointer;
    font-size:.8rem; font-weight:600; color:var(--rtv-muted);
    transition:all .15s; font-family:inherit;
}
.rtv-source-pill:hover { border-color:var(--rtv-red); color:var(--rtv-red); }
.rtv-source-pill.active { background:var(--rtv-red); border-color:var(--rtv-red); color:#fff; }

/* Pagination */
.rtv-loading { text-align:center; padding:40px; color:var(--rtv-muted); }
.rtv-pagination { display:flex; gap:4px; margin-top:20px; flex-wrap:wrap; }
.rtv-pagination button {
    background:#fff; border:1.5px solid var(--rtv-border);
    padding:5px 11px; border-radius:0;  /* ECKIG */
    cursor:pointer; font-size:.82rem; transition:all .15s;
}
.rtv-pagination button:hover,
.rtv-pagination button.active { background:var(--rtv-red); border-color:var(--rtv-red); color:#fff; }

/* ========================================
   DETAIL-POPUP - Groesser + mehr Raum
======================================== */
.rtv-popup-overlay {
    position:fixed; inset:0;
    background:rgba(0,0,0,.55);
    z-index:99999;
    display:flex; align-items:center; justify-content:center;
    opacity:0; pointer-events:none;
    transition:opacity .2s;
    padding:16px;
    box-sizing:border-box;
}
.rtv-popup-overlay.open { opacity:1; pointer-events:all; }

.rtv-popup {
    background:#fff;
    border-radius:0;            /* ECKIG */
    width:100%; max-width:780px;    /* Breiter */
    max-height:90vh;
    overflow-y:auto; padding:40px 44px;
    position:relative;
    box-shadow:0 8px 40px rgba(0,0,0,.25);
}

.rtv-popup-close {
    position:absolute; top:16px; right:20px;
    background:none; border:none;
    font-size:1.4rem; cursor:pointer;
    color:var(--rtv-muted); line-height:1; padding:4px 8px;
    transition:color .15s;
}
.rtv-popup-close:hover { color:var(--rtv-red); }

/* Popup-Inhalt - groesszuegiger Zeichensatz */
.rtv-popup-title { font-size:1.5rem; font-weight:700; margin:0 0 10px; padding-right:40px; line-height:1.3; }

.rtv-popup-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.rtv-popup-tag {
    background:var(--rtv-gray); color:var(--rtv-muted);
    padding:4px 12px; border-radius:0; font-size:.82rem;
}
.rtv-popup-tag.red { background:var(--rtv-red-light); color:var(--rtv-red); }

.rtv-popup-map {
    height:240px; border-radius:0;
    overflow:hidden; margin:18px 0;
    border:1px solid var(--rtv-border);
}

/* Popup-Links - alle mit gleichem neutralem Design (kein Rot) */
.rtv-popup-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.rtv-popup-links a {
    display:inline-flex; align-items:center; gap:5px;
    background:var(--rtv-gray); color:var(--rtv-text);
    padding:8px 16px; border-radius:0;   /* ECKIG, KEIN ROT */
    font-size:.85rem; text-decoration:none; transition:background .15s;
    border:1.5px solid var(--rtv-border);
}
.rtv-popup-links a:hover { background:var(--rtv-border); }

.rtv-popup-section { margin-top:18px; padding-top:18px; border-top:1px solid var(--rtv-border); }
.rtv-popup-section h4 {
    font-size:.78rem; font-weight:700;
    letter-spacing:.05em; text-transform:uppercase;
    color:var(--rtv-muted); margin:0 0 8px;
}
.rtv-popup-section p { margin:0; font-size:1rem; line-height:1.6; }  /* Groesserer Text im Popup */

/* ========================================
   EINTRAGSFORMULAR
======================================== */
.rtv-submit-wrap .rtv-form-section {
    background:#fff;
    border:1px solid var(--rtv-border);
    border-radius:0;            /* ECKIG */
    padding:24px 28px; margin-bottom:20px;
    box-shadow:var(--rtv-shadow);
}
.rtv-submit-wrap .rtv-form-section h3 {
    font-size:1rem; font-weight:700;
    margin:0 0 20px; padding-bottom:10px;
    border-bottom:2px solid var(--rtv-dark);
}

.rtv-field { margin-bottom:18px; }
.rtv-field-row {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
    gap:16px;
}
.rtv-field--small { max-width:120px; }

.rtv-form-actions { display:flex; align-items:center; gap:16px; margin-top:8px; }
.rtv-required-note { margin:0; font-size:.8rem; color:var(--rtv-muted); }

/* Meldungen */
.rtv-success-msg {
    background:#f0fff4; border:1.5px solid #68d391;
    border-radius:0; padding:24px 28px; margin-bottom:24px;
}
.rtv-success-msg h3 { margin:0 0 8px; }
.rtv-success-msg p  { margin:0; }

.rtv-error-msg {
    background:#fff5f5; border:1.5px solid #fc8181;
    border-radius:0; padding:14px 18px;
    color:#c53030; font-size:.9rem; margin-bottom:12px;
}

/* Kategorie-Pills im Formular */
.rtv-cat-pills--form .rtv-pill span { font-size:.8rem; padding:4px 12px; }

/* ========================================
   RESPONSIVE
======================================== */
/* Mobile source badge: nur auf Mobile sichtbar */
.rtv-mobile-src { display: none; }
.rtv-table td.rtv-td-meta { display: none; } /* nur auf Mobile */

/* Zeit: auf Desktop mit "Uhr" */
.rtv-table .rtv-date small.rtv-time::after { content: ' Uhr'; }

@media (max-width:640px) {
    .rtv-filter-card,
    .rtv-submit-wrap .rtv-form-section { padding:16px; }
    .rtv-popup { padding:22px 16px; }

    /* ── 2-Zeilen Kompakt-Layout ── */
    .rtv-table thead { display:none; }

    .rtv-table tbody tr {
        display:grid;
        grid-template-columns: 48px 1fr auto;
        grid-template-rows: 1fr 1fr;
        column-gap: 10px;
        row-gap: 0;
        align-items: stretch;
        min-height: 56px;
        padding: 0;
        margin-bottom: 5px;
        border: 1px solid var(--rtv-border);
        border-bottom: 1px solid var(--rtv-border) !important;
    }

    /* Alle td: Borders und Padding zurücksetzen, ausblenden */
    .rtv-table td {
        display: none;
        padding: 0;
        border: none !important;
        border-bottom: none !important;
    }
    .rtv-table td::before { display: none; }

    /* ── Datum: linke Spalte, beide Zeilen, vertikal zentriert ── */
    .rtv-table td.rtv-date {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        grid-column: 1;
        grid-row: 1 / 3;
        text-align: center;
        white-space: nowrap;
        font-size: .8rem;
        font-weight: 600;
        color: var(--rtv-muted);
        border-right: 1px solid var(--rtv-border) !important;
        padding: 6px 8px 6px 4px;
        line-height: 1.35;
    }
    .rtv-table .rtv-date small.rtv-time {
        display: block;
        color: var(--rtv-red);
        font-weight: 700;
        font-size: .82rem;
        line-height: 1.3;
    }
    /* Kein "Uhr" auf Mobile */
    .rtv-table .rtv-date small.rtv-time::after { content: ''; }

    /* Source-Badge in der Datumszelle */
    .rtv-mobile-src {
        display: block;
        margin-top: 5px;
        line-height: 1;
    }
    .rtv-mobile-src img { height: 16px !important; width: auto; }
    .rtv-mobile-src .rtv-src-badge { font-size: .65rem; padding: 1px 5px; }
    .rtv-table td.rtv-src-col { display: none; }

    /* ── Titel: Zeile 1, mittlere Spalte ── */
    .rtv-table td.rtv-td-title {
        display: flex;
        align-items: flex-end;
        grid-column: 2;
        grid-row: 1;
        font-size: .88rem;
        padding: 8px 0 3px 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        min-width: 0;
    }
    .rtv-table td.rtv-td-title strong {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;
        width: 100%;
    }

    /* ── Ort + Kategorie: Zeile 2, mittlere Spalte ── */
    .rtv-table td.rtv-td-meta {
        display: flex;
        align-items: flex-start;
        grid-column: 2;
        grid-row: 2;
        font-size: .76rem;
        color: var(--rtv-muted);
        padding: 0 0 8px 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        min-width: 0;
    }
    .rtv-table td.rtv-td-meta > * {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .rtv-table td.rtv-td-meta small { font-size: .76rem; color: var(--rtv-muted); }
    .rtv-table td.rtv-td-meta small::before { content: " · "; }

    /* Kategorie-Spalte und Desktop-Ort ausblenden (Mobile nutzt rtv-td-meta) */
    .rtv-table td.rtv-td-cat  { display: none; }
    .rtv-table td.rtv-city    { display: none; }

    /* ── Details-Button: rechte Spalte, beide Zeilen ── */
    .rtv-table tbody tr td:last-child {
        display: flex;
        align-items: center;
        justify-content: center;
        grid-column: 3;
        grid-row: 1 / 3;
        padding: 0 8px 0 4px;
    }
    .rtv-btn-details {
        padding: 5px 10px;
        font-size: .78rem;
        white-space: nowrap;
    }
}
}

/* ══ Werbe-Pakete ══════════════════════════════════════════════════ */
.rtv-package-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 4px;
}

.rtv-pkg-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    position: relative;
}

.rtv-pkg-card:hover {
    border-color: #cc2200;
}

.rtv-pkg-card--selected {
    border-color: #cc2200;
    box-shadow: 0 0 0 3px rgba(204,34,0,.12);
    background: #fff8f6;
}

.rtv-pkg-badge {
    display: inline-block;
    background: #cc2200;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 10px;
    align-self: flex-start;
    letter-spacing: .03em;
}

.rtv-pkg-card--selected .rtv-pkg-badge {
    background: #a01a00;
}

.rtv-pkg-name {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 2px;
}

.rtv-pkg-desc {
    font-size: .82rem;
    color: #555;
    line-height: 1.5;
}

/* Werbewunsch-Sektion Trennlinie */
.rtv-ad-section {
    border-top: 2px solid #f0f0f0;
    padding-top: 24px;
    margin-top: 8px;
}

/* ══ Formular-Vorschau ═══════════════════════════════════════════ */
.rtv-preview-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #cc2200;
    border-radius: 4px;
    padding: 24px 28px;
}

.rtv-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.rtv-preview-table th {
    width: 38%;
    padding: 8px 10px 8px 0;
    font-weight: 600;
    color: #555;
    vertical-align: top;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}
.rtv-preview-table td {
    padding: 8px 0;
    color: #1a1a1a;
    border-bottom: 1px solid #f0f0f0;
    word-break: break-word;
}

/* ══ Event-Bild im Popup ═════════════════════════════════════════ */
.rtv-popup-event-img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin-bottom: 4px;
    border: 1px solid #e0e0e0;
}


/* ══════════════════════════════════════════════════════════════════
   [rtv_werbung] + [rtv_werbung_widget]
   Alle Theme-Konflikte mit .rtv-wrap-Kontext und !important gelöst
══════════════════════════════════════════════════════════════════ */

/* ─── Abschnitts-Kopf ─────────────────────────────────────── */
.rtv-werbung-wrap { margin: 24px 0 32px !important; }

.rtv-werbung-head {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    border: none !important;
}
.rtv-werbung-head-label {
    font-family: var(--rtv-font-head) !important;
    font-size: 1.35rem !important;
    font-weight: 400 !important;
    color: #232323 !important;
    white-space: nowrap !important;
    letter-spacing: .01em !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.rtv-werbung-head-rule {
    flex: 1 !important;
    height: 1px !important;
    background: #ccc !important;
    position: relative !important;
    display: block !important;
}
.rtv-werbung-head-rule::before {
    content: '' !important;
    position: absolute !important;
    left: 0; top: -1px !important;
    width: 48px !important; height: 3px !important;
    background: var(--rtv-red) !important;
}

/* ─── Grid ─────────────────────────────────────────────────── */
.rtv-werbung-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
@media (max-width: 860px) {
    .rtv-werbung-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
    .rtv-werbung-grid { grid-template-columns: 1fr !important; }
}

/* ─── Einzelne Kachel ───────────────────────────────────────── */
.rtv-ecard {
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    cursor: pointer !important;
    border-bottom: 3px solid transparent !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
    overflow: hidden !important;
}
.rtv-ecard:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.15) !important;
    border-bottom-color: var(--rtv-red) !important;
}

/* ─── Bild-Block ─────────────────────────────────────────────── */
.rtv-ecard-img {
    position: relative !important;
    padding-top: 56.25% !important;
    overflow: hidden !important;
    background: #1a1a1a !important;
    flex-shrink: 0 !important;
    width: 100% !important;
}
.rtv-ecard-img-bg {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    height: 100% !important;
    transition: transform .4s ease !important;
}
.rtv-ecard:hover .rtv-ecard-img-bg { transform: scale(1.06) !important; }
.rtv-ecard-img-bg--nophoto {
    background: linear-gradient(135deg, #1c1c1c 0%, #2e0808 55%, var(--rtv-red) 130%) !important;
}
.rtv-ecard-img-grad {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: linear-gradient(to bottom, transparent 25%, rgba(20,10,10,.88) 100%) !important;
    pointer-events: none !important;
}

/* Paket-Badge */
.rtv-ecard-badge {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    background: var(--rtv-red) !important;
    color: #fff !important;
    font-family: var(--rtv-font-body) !important;
    font-size: .6rem !important;
    font-weight: 700 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    padding: 4px 10px !important;
    line-height: 1.5 !important;
    z-index: 2 !important;
    display: inline-block !important;
    margin: 0 !important;
    border: none !important;
}

/* Datum auf Bild */
.rtv-ecard-imgdate {
    position: absolute !important;
    bottom: 10px !important; left: 12px !important; right: 12px !important;
    z-index: 2 !important;
}
.rtv-ecard-date {
    font-family: var(--rtv-font-head) !important;
    font-size: 1rem !important;
    color: #fff !important;
    font-weight: 400 !important;
    text-shadow: 0 1px 6px rgba(0,0,0,.6) !important;
    line-height: 1.15 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}
.rtv-ecard-time {
    display: block !important;
    font-family: var(--rtv-font-body) !important;
    font-size: .72rem !important;
    color: rgba(255,255,255,.78) !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.6) !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
}

/* ─── Kachel-Body ─────────────────────────────────────────── */
.rtv-ecard-body {
    padding: 14px 16px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    flex: 1 !important;
}
.rtv-ecard-title {
    font-family: var(--rtv-font-head) !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    color: #232323 !important;
    line-height: 1.2 !important;
    letter-spacing: .01em !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.rtv-ecard:hover .rtv-ecard-title { color: var(--rtv-red) !important; }

/* Ort-Zeile — SVG-Icon explizit klein halten */
.rtv-ecard-location {
    font-size: .78rem !important;
    color: #888 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 4px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.rtv-ecard-location svg,
svg.rtv-ecard-location-icon {
    width: 9px !important;
    height: 12px !important;
    min-width: 9px !important;
    max-width: 9px !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
    fill: var(--rtv-red) !important;
    display: inline-block !important;
    vertical-align: baseline !important;
}

/* Kategorien-Tags */
.rtv-ecard-cats {
    display: flex !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.rtv-ecard-cat {
    font-size: .62rem !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: var(--rtv-red) !important;
    border: 1px solid rgba(221,51,51,.35) !important;
    padding: 2px 7px !important;
    line-height: 1.4 !important;
    display: inline-block !important;
    background: transparent !important;
}

/* Kurzbeschrieb — kein p-margin */
.rtv-ecard-desc {
    font-size: .82rem !important;
    color: #666 !important;
    line-height: 1.5 !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ─── Footer-Leiste mit Buttons ──────────────────────────── */
.rtv-ecard-footer {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    border-top: 1px solid #f0f0f0 !important;
    padding: 11px 0 0 !important;
    margin: auto 0 0 !important;
    list-style: none !important;
    align-items: center !important;
}

/* Buttons — alle Selektoren mit hoher Spezifität */
.rtv-wrap .rtv-ecard-footer a.rtv-ecard-btn,
.rtv-wrap a.rtv-ecard-btn,
a.rtv-ecard-btn {
    display: inline-block !important;
    font-family: var(--rtv-font-body) !important;
    font-size: .7rem !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 5px 11px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background .15s, color .15s, border-color .15s !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    margin: 0 !important;
}
.rtv-wrap .rtv-ecard-footer a.rtv-ecard-btn-red,
.rtv-wrap a.rtv-ecard-btn-red,
a.rtv-ecard-btn-red {
    background: var(--rtv-red) !important;
    color: #fff !important;
    border: 1px solid var(--rtv-red) !important;
}
a.rtv-ecard-btn-red:hover {
    background: #bb1a1a !important;
    border-color: #bb1a1a !important;
    color: #fff !important;
}
.rtv-wrap .rtv-ecard-footer a.rtv-ecard-btn-ghost,
.rtv-wrap a.rtv-ecard-btn-ghost,
a.rtv-ecard-btn-ghost {
    background: transparent !important;
    color: #555 !important;
    border: 1px solid #d0d0d0 !important;
}
a.rtv-ecard-btn-ghost:hover {
    border-color: var(--rtv-red) !important;
    color: var(--rtv-red) !important;
}


/* ══════════════════════════════════════════════════════════════════
   [rtv_werbung_widget] — Sidebar-Widget
══════════════════════════════════════════════════════════════════ */

.rtv-adw {
    background: #fff !important;
    border: 1px solid #ddd !important;
    overflow: hidden !important;
    font-family: var(--rtv-font-body) !important;
    padding: 0 !important;
    margin: 0 0 20px !important;
}

/* Widget-Kopf */
.rtv-adw-head {
    background: #232323 !important;
    display: flex !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    list-style: none !important;
}
.rtv-adw-headlabel {
    font-family: var(--rtv-font-head) !important;
    font-size: .95rem !important;
    font-weight: 400 !important;
    color: #fff !important;
    letter-spacing: .01em !important;
    line-height: 1.3 !important;
    padding: 9px 14px !important;
    border-left: 4px solid var(--rtv-red) !important;
    display: block !important;
    margin: 0 !important;
}

/* Einträge */
.rtv-adw-item {
    display: flex !important;
    align-items: stretch !important;
    min-height: 72px !important;
    border-bottom: 1px solid #eee !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    transition: background .12s !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}
.rtv-adw-item:last-of-type { border-bottom: none !important; }
.rtv-adw-item:hover { background: #fff8f8 !important; }

/* Datum-Säule */
.rtv-adw-cal {
    width: 50px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f7f7f7 !important;
    border-right: 1px solid #eee !important;
    gap: 1px !important;
    transition: background .12s !important;
    padding: 8px 4px !important;
}
.rtv-adw-item:hover .rtv-adw-cal { background: var(--rtv-red) !important; }
.rtv-adw-cal-day {
    font-family: var(--rtv-font-head) !important;
    font-size: 1.15rem !important;
    color: #232323 !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    display: block !important;
    margin: 0 !important;
}
.rtv-adw-cal-mon {
    font-size: .6rem !important;
    font-weight: 700 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
    color: var(--rtv-red) !important;
    line-height: 1.2 !important;
    display: block !important;
    margin: 0 !important;
}
.rtv-adw-item:hover .rtv-adw-cal-day,
.rtv-adw-item:hover .rtv-adw-cal-mon { color: #fff !important; }

/* Text */
.rtv-adw-text {
    flex: 1 !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 3px !important;
    min-width: 0 !important;
}
.rtv-adw-sub {
    font-size: .66rem !important;
    font-weight: 700 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
    color: #bbb !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    margin: 0 !important;
}
.rtv-adw-title {
    font-family: var(--rtv-font-head) !important;
    font-size: .88rem !important;
    color: #232323 !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin: 0 !important;
    padding: 0 !important;
}
.rtv-adw-item:hover .rtv-adw-title { color: var(--rtv-red) !important; }
.rtv-adw-title a,
.rtv-wrap .rtv-adw-title a {
    color: #232323 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
}
.rtv-adw-item:hover .rtv-adw-title a { color: var(--rtv-red) !important; }

/* Thumbnail */
.rtv-adw-thumb {
    width: 72px !important;
    flex-shrink: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: #232323 !important;
    overflow: hidden !important;
    min-height: 72px !important;
}
.rtv-adw-thumb--noimg {
    background: linear-gradient(135deg, #1c1c1c 0%, var(--rtv-red) 150%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    opacity: .75 !important;
}

/* Footer */
.rtv-adw-foot {
    padding: 9px 14px !important;
    background: #f9f9f9 !important;
    border-top: 1px solid #eee !important;
    text-align: right !important;
    margin: 0 !important;
}
.rtv-adw-foot a,
.rtv-wrap .rtv-adw-foot a {
    font-family: var(--rtv-font-body) !important;
    font-size: .75rem !important;
    font-weight: 700 !important;
    color: var(--rtv-red) !important;
    text-decoration: none !important;
    letter-spacing: .03em !important;
    display: inline !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.rtv-adw-foot a:hover { text-decoration: underline !important; }

/* ══ Werbung Kanton-Heatmap ═══════════════════════════════════ */
.rtv-werbung-map-wrap {
    margin: 0 0 20px;
    border: 1px solid var(--rtv-border);
    border-radius: 0;
    overflow: hidden;
}
.rtv-werbung-map-wrap #rtv-werbung-map {
    width: 100%;
    height: 280px;
}
.rtv-werbung-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 12px;
    background: var(--rtv-gray);
    border-top: 1px solid var(--rtv-border);
    font-size: .8rem;
}
.rtv-werbung-map-info {
    color: var(--rtv-muted);
    font-size: .82rem;
    min-height: 1.2em;
}
/* Legende (gemeinsam mit Formationen-Stil) */
.rtv-map-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .78rem;
    color: var(--rtv-muted);
}
.rtv-map-legend-label { font-weight: 600; margin-right: 2px; }
.rtv-map-legend-item  { display: flex; align-items: center; gap: 3px; }
.rtv-map-legend-color {
    display: inline-block;
    width: 14px; height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
}
/* Leaflet Tooltip */
.rtv-leaflet-tooltip {
    background: rgba(35,35,35,.9);
    color: #fff;
    border: none;
    font-size: .82rem;
    padding: 4px 8px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.rtv-leaflet-tooltip::before { border-top-color: rgba(35,35,35,.9); }

/* Lade-Zustand während AJAX */
#rtv-werbung-grid[style*="opacity"] .rtv-ecard { pointer-events: none; }

/* Aktiver Kanton-Filter Indikator */
.rtv-canton-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--rtv-red-light);
    color: var(--rtv-red);
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid var(--rtv-red);
}

/* ══ Suchkarte (rtv_suche) ═══════════════════════════════════ */
.rtv-search-map-wrap {
    margin-bottom: 20px;
    border: 1px solid var(--rtv-border);
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.rtv-search-map-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 12px;
    background: var(--rtv-dark);
    color: #fff;
    font-size: .8rem;
}
.rtv-search-map-toolbar .rtv-map-legend { color: #ccc; }
.rtv-search-map-toolbar .rtv-map-legend-label { color: #fff; }
.rtv-search-map-info {
    flex: 1;
    color: #ddd;
    font-size: .82rem;
    min-height: 1em;
}
.rtv-search-map-toolbar #rtv-search-map-reset-zoom {
    padding: 3px 10px;
    font-size: .78rem;
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.4);
}
.rtv-search-map-toolbar #rtv-search-map-reset-zoom:hover {
    border-color: var(--rtv-red);
    color: var(--rtv-red);
}

/* ══ Werbungstipps eingebettet in [rtv_suche werbung="N"] ══ */
.rtv-suche-werbung .rtv-werbung-wrap {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

/* ══ [rtv_suche_karte] — Liste/Karte-Tabs ═══════════════════ */
.smap-tabs {
    display: flex;
    border-bottom: 2px solid var(--rtv-border);
    margin: 0;
    background: var(--rtv-gray);
}
.smap-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--rtv-muted);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.smap-tab.active {
    color: var(--rtv-red);
    border-bottom-color: var(--rtv-red);
    background: var(--color-background-primary, #fff);
}
.smap-tab:hover:not(.active) { color: var(--rtv-dark); }
.smap-tab svg { flex-shrink: 0; }
.smap-tab-count {
    background: var(--rtv-gray);
    color: var(--rtv-muted);
    font-size: .75rem;
    font-weight: 500;
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}
.smap-tab.active .smap-tab-count { background: #fde8e8; color: var(--rtv-red); }

.smap-panel { padding-top: 12px; }

/* Karten-Toolbar */
.smap-map-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 14px;
    background: var(--rtv-dark);
    color: #fff;
    font-size: .8rem;
}
.smap-map-info { flex: 1; color: #ccc; font-size: .82rem; min-height: 1em; }
.smap-map-toolbar .rtv-map-legend { color: #ccc; }
.smap-map-toolbar .rtv-map-legend-label { color: #fff; }
.smap-reset-btn {
    padding: 3px 10px !important;
    font-size: .78rem !important;
    background: transparent !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.4) !important;
}
.smap-reset-btn:hover { border-color: var(--rtv-red) !important; color: var(--rtv-red) !important; }
.smap-map-note {
    font-size: .75rem;
    color: var(--rtv-muted);
    padding: 6px 14px;
    border-top: 1px solid var(--rtv-border);
}

/* Leaflet Tooltip (wiederverwendet) */

/* Zoom-Slider Footer */
.smap-map-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 14px;
    background: var(--rtv-gray);
    border-top: 1px solid var(--rtv-border);
    flex-wrap: wrap;
}
.smap-zoom-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.smap-zoom-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--rtv-border);
    background: var(--color-background-primary, #fff);
    color: var(--rtv-dark);
    border-radius: 4px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.smap-zoom-btn:hover { background: var(--rtv-red); color: #fff; border-color: var(--rtv-red); }
.smap-zoom-slider {
    width: 120px;
    cursor: pointer;
}
.smap-map-footer .smap-map-note {
    flex: 1;
    font-size: .75rem;
    color: var(--rtv-muted);
    padding: 0;
    border: none;
    margin: 0;
}
@media (max-width: 640px) {
    .smap-zoom-ctrl { display: none; } /* Mobile nutzt Pinch-Zoom */
}

/* ══ Leaflet Zoom-Controls: Radio Tell Rot ══ */
#smap-leaflet-map .leaflet-bar a,
#smap-leaflet-map .leaflet-bar a:hover {
    color: var(--rtv-red, #dd3333);
    border-bottom-color: #e8e8e8;
}
#smap-leaflet-map .leaflet-bar a:hover {
    background: var(--rtv-red, #dd3333);
    color: #fff;
}
