.tribe-button.tribe-button-small.tribe-upcoming.tribe-button-secondary,
.tribe-button.tribe-button-small.tribe-past.tribe-button-secondary {
  background-color: #8F723D;
  color: #ffffff !important;
   font-family: "Poppins";
  font-size: 14px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase;
  border: none;
  border-radius: 0 !important;
  box-shadow: none;
}

.tribe-button.tribe-button-small.tribe-upcoming.tribe-button-secondary:hover,
.tribe-button.tribe-button-small.tribe-past.tribe-button-secondary:hover {
  background-color: #8F723D;
  color: #ffffff;
}

.tribe-community-events-list-title,
.tribe-button.tribe-button-primary.add-new {
	display: none !important;
}

.tribe-button.tribe-button-small.tribe-past.tribe-button-tertiary,
.tribe-button.tribe-button-small.tribe-upcoming.tribe-button-tertiary {
  font-family: "Poppins";
  font-size: 14px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase;
	
	  display: inline-flex;
  align-items: center;
}

.tribe-button.tribe-button-small.tribe-past.tribe-button-tertiary:hover,
.tribe-button.tribe-button-small.tribe-upcoming.tribe-button-tertiary:hover {
  background-color: #f2f2f2;
  transition: background-color 300ms ease;
}

/* Pfeil komplett ausblenden */
.table-menu-wrapper.ce-top::after {
    display: none !important;
    content: none !important;
}

/* Suchfeld Styling */
input[type="search"][name="event-search"] {
    font-family: "Open_Sans_Regular", sans-serif; 
    font-size: 14px !important;
    padding: 12px 14% !important;

}

/* Mobile Anpassung */
@media (max-width: 767px) {
    input[type="search"][name="event-search"] {
        font-size: 13px !important;
    }
}

/* Grundlayout Desktop */
.tribe-button.tribe-button-small.tribe-upcoming.tribe-button-secondary,
.tribe-button.tribe-button-small.tribe-past.tribe-button-secondary,
.tribe-button.tribe-button-small.tribe-upcoming.tribe-button-tertiary,
.tribe-button.tribe-button-small.tribe-past.tribe-button-tertiary {
    text-align: left !important; /* linksbündig */
    line-height: 1.2 !important;  /* Zeilenhöhe */
}

/* Tablet Anpassung */
@media (max-width: 1024px) {
    .tribe-button.tribe-button-small.tribe-upcoming.tribe-button-secondary,
    .tribe-button.tribe-button-small.tribe-past.tribe-button-secondary,
    .tribe-button.tribe-button-small.tribe-upcoming.tribe-button-tertiary,
    .tribe-button.tribe-button-small.tribe-past.tribe-button-tertiary {
        font-size: 13px !important; /* Tablet Schriftgröße */
        width: 100% !important;     /* volle Breite */
        display: block !important;   /* untereinander */
        margin-bottom: 12px !important; /* Abstand zwischen Buttons */
    }
}

/* Mobile Anpassung */
@media (max-width: 767px) {
    .tribe-button.tribe-button-small.tribe-upcoming.tribe-button-secondary,
    .tribe-button.tribe-button-small.tribe-past.tribe-button-secondary,
    .tribe-button.tribe-button-small.tribe-upcoming.tribe-button-tertiary,
    .tribe-button.tribe-button-small.tribe-past.tribe-button-tertiary {
        font-size: 12px !important; /* Mobile Schriftgröße */
        width: 100% !important;     /* volle Breite */
        margin-bottom: 12px !important; /* Abstand beibehalten */
    }
}

h2.my-events {
    font-family: Baskerville_regular !important;
}

.tribe-button.tribe-button-secondary {
	 background-color: #8F723D;
  color: #ffffff !important;
   font-family: "Poppins";
  font-size: 14px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase;
  border: none;
  border-radius: 0 !important;
  box-shadow: none;
}


.tribe-button.tribe-button-secondary:hover {
  background-color: #8F723D; /* helleres Gold */
  color: #ffffff;
}

.events-community-post-title,
.tribe-section-header,
.tribe-section-content-label,
.tribe-change-timezone,
.tribe-section-content-field,
.recurrence-rules-header,
.tribe-section-content,
.tribe-section-header{
    font-family: 'Open Sans', sans-serif !important;
    text-transform: none !important;
		color: #666666 !important;
		line-height: 1.4 !important;
}

/* Desktop-Einstellungen */
.recurrence-exclusions-header {
    font-size: 14px !important;
    line-height: 1.4 !important; 
    display: block; 
    margin-bottom: 10px; 
}

/* Mobil-Optimierung (Bildschirme kleiner als 600px) */
@media screen and (max-width: 600px) {
    .recurrence-exclusions-header {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
}

#EventURL {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 400;
}

/* Optional: Falls du auch den Platzhalter-Text in Open Sans willst */
#EventURL::placeholder {
     font-family: 'Open Sans', sans-serif !important;
}

/* Grunddesign für alle Buttons (Tickets, Reservierung, Einstellungen, Virtuell, Wiederholung & Ausnahme) */
#ticket_form_toggle, 
#rsvp_form_toggle,
#settings_form_toggle,
.tribe-configure-virtual-button,
#tribe-add-recurrence,
#tribe-add-exclusion {
    font-family: 'Poppins_bold', sans-serif !important; 
    font-weight: 500 !important; /* 700 entspricht Bold */
    font-size: 14px !important;
    letter-spacing: 2px !important;
    color: #8F723D !important; /* Schriftfarbe Gold */
    background-color: transparent !important;
    border: 2px solid #8F723D !important; /* Rahmen Gold */
    border-radius: 0 !important; /* Keine Eckenabrundung */
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px !important;
}

/* Hover-Effekt für alle genannten Buttons */
#ticket_form_toggle:hover, 
#rsvp_form_toggle:hover,
#settings_form_toggle:hover,
.tribe-configure-virtual-button:hover,
#tribe-add-recurrence:hover,
#tribe-add-exclusion:hover {
    background-color: #f5f5f5 !important; /* Helles Grau */
    color: #8F723D !important;
}

/* Mobile Anpassung */
@media screen and (max-width: 768px) {
    #ticket_form_toggle, 
    #rsvp_form_toggle,
    #settings_form_toggle,
    .tribe-configure-virtual-button,
    #tribe-add-recurrence,
    #tribe-add-exclusion {
        font-size: 12px !important;
        display: flex;
        width: 100%;
    }
}

#wp-tcepostcontent-wrap {
    margin-top: 12px !important;
}

/* Styling für den Absende-Button */
input[type="submit"]#post.events-community-submit {
    font-family: 'Poppins' sans-serif, !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 2px !important;
    color: #ffffff !important; /* Schriftfarbe Weiss */
    background-color: #8F723D !important; /* Hintergrund Gold */
    border: none !important; 
    border-radius: 0 !important;
    text-transform: uppercase;
    padding: 18px 22px !important;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    appearance: none;
}

/* Hover-Effekt: Helleres Gold */
input[type="submit"]#post.events-community-submit:hover {
    background-color: #c2a775 !important;
    color: #ffffff !important;
}

/* Mobile Anpassung */
@media screen and (max-width: 768px) {
    input[type="submit"]#post.events-community-submit {
        font-size: 12px !important;
        width: 100%; 
    }
}

/* Wochentage im Datepicker (Tabellenköpfe) */
table.ui-datepicker-calendar thead th {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 400 !important; /* Regular */
    text-transform: none; /* Verhindert ungewollte Großbuchstaben, falls vom Theme erzwungen */
}

/* Falls die Buchstaben innerhalb eines Spans liegen */
table.ui-datepicker-calendar thead th span {
    font-family: 'Open_Sans_Regular', !important;
}

/* Monat und Jahr im Kalender-Header */
.ui-datepicker-title select.ui-datepicker-month,
.ui-datepicker-title select.ui-datepicker-year {
    font-family: 'Open_Sans_Regular', !important;
    font-weight: 500 !important;
    font-size: 14px; 
    color: #333; 
}

/* Stellt sicher, dass auch die Dropdown-Optionen die Schrift nutzen */
.ui-datepicker-title select option {
    font-family: 'Open_Sans_Regular', !important;
}

/* Button Löschen und Abbrechen */

.button.button-red,
.button.button-secondary {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 2px !important;
    color: #8F723D !important;
    background-color: #ffffff !important;
    border: 2px solid #8F723D !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px !important;
}

/* Hover-Effekt: Helles Grau Hintergrund */
.button.button-red:hover,
.button.button-secondary:hover {
    background-color: #f5f5f5 !important;
    color: #8F723D !important;
}

/* Mobile Anpassung */
@media screen and (max-width: 768px) {
    .button.button-red,
    .button.button-secondary {
        font-size: 12px !important;
        width: 100%;
    }
}

/* Entfernt die Rundungen bei Select2 Feldern */
.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single,
.select2-selection__rendered,
.select2-dropdown {
    border-radius: 0 !important;
}

/* Falls die Such-Eingabe im Feld auch eine Rundung hat */
.select2-search__field {
    border-radius: 0 !important;
}
/* Entfernt die Rundungen und setzt das Padding für Veranstalter & Orte */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-radius: 0 !important;
}

/* Spezielles Padding für die Textanzeige */
#select2-saved_tribe_venue-container,
#select2-saved_tribe_organizer-container {
    padding-right: 30px !important;
    padding-left: 10px !important; /* Optional: sorgt für einen sauberen Start links */
}

/* Schiebt das "X" (Clear-Button) etwas nach links vom Pfeil weg */
.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 15px !important;
}

/* 1. Einheitliche Breite (500px) für Ort/Veranstalter Felder & Dropdowns */
.select2-container--default, 
.select2-container--default .select2-selection--single,
.select2-container--default .select2-dropdown {
    width: 100% !important;
    max-width: 500px !important;
    min-width: 0 !important;
    border-radius: 0 !important;
}

/* 2. Den Button "Weitere hinzufügen" auf die gleiche Breite (500px) bringen */
td .tribe-add-post.tribe-button.tribe-button-secondary {
    display: block;
    width: 100% !important;
    max-width: 500px !important;
    text-align: center;
    box-sizing: border-box;
    border-radius: 0 !important;
    margin-top: 5px; /* Kleiner Abstand zum Feld drüber */
}

/* 3. Korrektur: Die kleinen Recurrence-Buttons (Täglich, Wöchentlich etc.) schützen */
.tribe-event-recurrence .tribe-button-field,
.tribe-event-recurrence .tribe-buttonset a,
.tribe-event-recurrence button.tribe-delete-this {
    width: auto !important;
    max-width: none !important;
    display: inline-block !important;
}

/* 4. Mobil-Optimierung: Auf Handys springen alle auf 100% Breite */
@media screen and (max-width: 600px) {
    .select2-container--default,
    .select2-container--default .select2-dropdown,
    td .tribe-add-post.tribe-button.tribe-button-secondary {
        max-width: 100% !important;
        width: 100% !important;
    }
}
    
    /* Verhindert horizontales Scrollen im Dropdown auf dem Handy */
    .select2-dropdown {
        left: 0 !important;
    }

/* Padding für das Suchfeld im geöffneten Dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 8px !important; /* Damit der Text nicht links klebt */
    margin-bottom: 5px !important; /* Kleiner Abstand zu den Ergebnissen darunter */
    border-radius: 0 !important;   /* Konsequent eckig halten */
}

/* Optional: Den Container des Suchfelds etwas polstern */
.select2-search--dropdown {
    padding: 8px !important;
}

.tribe-confirm-delete-this.tribe-delete-this.button-primary.button-red {
	display: none !important;
}

/* Schiebt das Feld visuell 10px nach unten, ohne den Inhalt zu stören */
.recurrence-time .select2-selection--single {
    position: relative;
    top: 10px !important; 
}

/* Falls das Feld nun andere Elemente überlappt, geben wir dem Container Platz */
.recurrence-time .select2-container {
    padding-bottom: 10px !important; 
}

.tec-events-pro-rule-type__pretext {
	display: none !important;
}

/* Erhöht den Abstand zwischen dem Label "Setze Status:" und dem Dropdown */
.tribe-events-status_metabox__container label[for="tribe-events-status-status"] {
    margin-right: 10px !important;
    display: inline-block; /* Stellt sicher, dass der Margin greift */
    vertical-align: middle;
}

/* Falls das Dropdown selbst noch eine Feinjustierung braucht, um auf gleicher Höhe zu sein */
.tribe-events-status_metabox__container .select2-container {
    vertical-align: middle !important;
}

/* Erzeugt den Abstand vom X zum Text */
.select2-selection__clear {
    padding-right: 3px !important; /* 5px plus ein kleiner Puffer, da das X selbst schmal ist */
    display: inline-block !important;
    float: none !important; /* Verhindert, dass das X aus dem Textfluss fällt */
}

/* Verhindert, dass der Text das X überlappt */
.select2-selection__rendered {
    display: flex !important;
    align-items: center;
}

/* Nur das Padding für das URL-Feld oben und unten */
#EventURL {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Nur Padding: oben/unten 8px, links 5px */
#EventURL {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 8px !important;
}

/* Tickets erstellen*/

/* Headline */
#ticket_title_add {
    font-size: 18px !important;
    text-transform: none !important;
    font-variant: normal !important; /* Deaktiviert eventuelle Kapitälchen */
}

/* Feld volle Breite */
#ticket_name {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Nur den aktuell sichtbaren Infotext anpassen */
.tribe_soft_note.tribe-active {
    display: block !important;
    font-size: 12px !important;
    margin-top: 2px !important; /* Der gewünschte Abstand zum Feld */
    text-transform: none !important;
}

/* Textfeld für die Ticket-Beschreibung auf volle Breite setzen */
#ticket_description {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Richtet Checkbox und Text horizontal mittig zueinander aus */
.input_block label.tribe_soft_note {
    display: flex !important;
    align-items: center !important;
    line-height: normal !important;
}

/* Schafft einen kleinen Abstand zwischen Checkbox und dem Text */
#tribe_tickets_show_description {
    margin-right: 8px !important;
    margin-top: 0 !important; /* Entfernt eventuellen Versatz nach oben */
    margin-bottom: 0 !important;
    cursor: pointer;
}

/* Gemeinsame Basis für beide Buttons (Poppins, 14px, Letter-Spacing, Kantig) */
#ticket_form_save, 
#ticket_form_cancel {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    border-radius: 0 !important; /* Absolut kantig */
    transition: all 0.3s ease;
    cursor: pointer;
}

/* --- PRIMÄRER BUTTON (Gold gefüllt) --- */
#ticket_form_save {
    background-color: #8F723D !important;
    color: #ffffff !important;
    border: 0px !important;
}

#ticket_form_save:hover {
    background-color: #bd9e62 !important; /* Etwas helleres Gold für Hover */
    border-color: 0px !important;
}

/* --- SEKUNDÄRER BUTTON (Goldener Rahmen) --- */
#ticket_form_cancel {
    background-color: transparent !important;
    color: #8F723D !important;
    border: 2px solid #8F723D !important;
}

#ticket_form_cancel:hover {
    background-color: #f5f5f5 !important;
    color: #8F723D !important;
}

/* Virtuelles Event */

/* 1. Schriftart Open Sans für alle Texte, Labels und Inputs */
#event_tribe_virtual,
#event_tribe_virtual label,
#event_tribe_virtual input,
#event_tribe_virtual select,
#event_tribe_virtual p,
#event_tribe_virtual td,
.tribe-events-virtual-video-source__title,
.tec-events-virtual-meetings-video-source__title {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 400 !important; /* Regular */
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* 2. Schriftgröße für Texte in Feldern und Labels */
#event_tribe_virtual input[type="text"],
#event_tribe_virtual label {
    font-size: 14px !important;
}

/* 3. Button "Find" im Sekundär-Style */
.tribe-events-virtual-video-source-autodetect__button {
    /* Dein gespeicherter Sekundär-Stil */
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    
    background-color: transparent !important;
    color: #8F723D !important;
    border: 2px solid #8F723D !important;
}

.tribe-events-virtual-video-source-autodetect__button:hover {
    background-color: #f5f5f5 !important;
    color: #8F723D !important;
}

/* 4. Optional: Radio- und Checkbox-Ausrichtung (wie vorhin besprochen) */
#event_tribe_virtual label {
    display: flex !important;
    align-items: center !important;
    gap: 8px; /* Abstand zwischen Box und Text */
    margin-bottom: 5px;
}

/* Container und Dropdown (Select2) auf volle Breite */
.tribe-events-virtual-video-sources-wrap,
.select2-container--default,
.select2-selection--single {
    width: 100% !important;
    display: block !important;
}

/* Das URL-Eingabefeld auf volle Breite */
#tribe-events-virtual-virtual-url {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 14px !important;
}

/* Den Button-Wrapper darunter ebenfalls ausrichten */
.tribe-events-virtual-video-source-autodetect__button-wrapper {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
}

/* Sicherstellen, dass die inneren Controls nicht begrenzt sind */
.tec-events-virtual-meetings-video-source__inner,
.tribe-events-virtual-video-source-autodetect__fields {
    width: 100% !important;
    max-width: 100% !important;
}

/* URL Eingabefeld mit spezifischem Padding und voller Breite */
#tribe-events-virtual-virtual-url {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important; /* Verhindert Überbreite durch Padding */
    padding: 8px 0 8px 8px !important; /* Oben 8px, Rechts 0, Unten 8px, Links 8px */
    font-family: 'Open Sans', sans-serif !important;
    font-size: 14px !important;
}

/* Erlaubt dem Listen-Element, Label und Icon in einer Zeile zu halten */
.tribe-events-virtual-show ul li {
    display: flex !important;
    align-items: center !important; /* Vertikal zentriert */
    gap: 8px !important; /* Abstand zwischen Text und Info-Icon */
    flex-wrap: wrap;
}

/* Verhindert, dass das Icon eine neue Zeile erzwingt */
.tribe-events-virtual-show ul li {
    display: block !important;
    line-height: 1.6 !important;
}

/* Erwirkt, dass Checkbox, Text und Icon in einer Zeile stehen */
.tribe-events-virtual-show ul li,
.tribe-events-virtual-display__list-item,
tr.tribe-events-virtual-show td ul li {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important; /* Vertikale Zentrierung aller Elemente */
    gap: 10px !important; /* Gleichmäßiger Abstand zwischen Box, Text und Icon */
    margin-bottom: 8px !important;
    padding: 0 !important;
}

/* Verhindert, dass das Label die ganze Breite einnimmt */
.tribe-events-virtual-show label,
.tec-events-virtual-display__list-item label {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    width: auto !important;
    font-family: 'Open Sans', sans-serif !important;
}

/* Positioniert das Info-Icon direkt hinter das Label */
.tribe-tooltip.event-helper-text {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    top: 0 !important;
    left: 0 !important;
}

/* Korrektur für das Icon selbst */
.tribe-tooltip.event-helper-text .dashicons-info {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Erhöht den Abstand zwischen den Tabellenzeilen (Datum, Ganztägig, Wiederholung) */
.tribe-section-content-row td {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    vertical-align: middle !important;
}

/* Bringt Datum, Zeit und Zeitzone in eine saubere, vermittelte Zeile */
.tribe-section-content-field {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important; /* Abstand zwischen den Inputs */
}

/* Abstand nach dem Zeitzonen-Link/Dropdown vergrößern */
.tribe-change-timezone, 
#event-timezone + .select2-container {
    margin-bottom: 15px !important;
   
}

/* Die Inputs (Datum/Zeit) mit angepasster Breite für das Padding */
.tribe-datepicker {
    padding: 6px 12px !important;
    width: 130px !important; /* Erhöhte Breite für das Datum nach rechts */
    box-sizing: border-box !important;
}

.tribe-timepicker {
    padding: 6px 12px !important;
    width: 100px !important; /* Erhöhte Breite für die Zeit nach rechts */
    box-sizing: border-box !important;
}

/* Zusätzlicher Abstand zwischen den Feldern in der Zeile */
.tribe-section-content-field input {
    margin-right: 10px !important;
}

/* Richtet Checkbox und Text in der Zelle exakt mittig aus */
.tribe-section-content-field {
    display: flex !important;
    align-items: center !important; /* Das vermittelt alles vertikal */
    gap: 10px !important; /* Sauberer Abstand zwischen Box und Text */
}

/* Entfernt störende Standard-Abstände der Checkbox */
#allDayCheckbox {
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    /* Falls die Box zu weit oben klebt: */
    position: relative;
    top: 1px; 
}

/* Sorgt dafür, dass das Label nicht als Block die Zeile bricht */
.tribe-section-content-field label[for="allDayCheckbox"] {
    display: inline-block !important;
    margin: 0 !important;
    line-height: 1 !important;
    cursor: pointer;
}

/* Den Zeitzonen-Link auf volle Breite setzen und Text zentrieren */
.tribe-change-timezone {
 
    margin-top: 12px !important;
}


/* Die Inputs (Datum/Zeit) wie gewünscht mit Platz */
.tribe-datepicker {
    padding: 6px 12px !important;
    width: 130px !important;
    box-sizing: border-box !important;
}

.tribe-timepicker {
    padding: 6px 12px !important;
    width: 100px !important;
    box-sizing: border-box !important;
}

/* Abstand zwischen den Feldern */
.tribe-section-content-field input {
    margin-right: 10px !important;
}

/* Container für das Select-Feld */
.select2-container--default .select2-selection--single {
    min-width: 200px !important;
    height: 38px !important; /* Feste Höhe für bessere Kontrolle */
    padding: 6px 8px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important; /* Zentriert den Text vertikal */
}

/* Den Dropdown-Pfeil vertikal exakt vermitteln */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
    right: 5px !important;
}

/* Abstand zum Label unter dem Feld um 3px erhöhen */
.tribe-section-content-field label {
    display: inline-block !important;
    margin-top: 5px !important; 
}

/* Mobil-Anpassung */
@media screen and (max-width: 768px) {
    .select2-container, 
    .select2-selection--single {
        width: 100% !important;
    }
}

/* Container: Label und Textarea zentrieren */
.tribe-events-status-components-textarea-control__container {
    display: flex !important;
    flex-direction: column !important; /* Stapelt Label über Textarea */
    align-items: center !important;    /* Vermittelt beide horizontal zur Mitte */
    width: 100% !important;
    margin-top: 15px !important;       /* Abstand nach oben */
}

/* Label: Abstand zum Textfeld unten (die gewünschten 3px) */
.tribe-events-status-components-textarea-control__label {
    display: block !important;
    margin-bottom: 3px !important;
    text-align: center !important;
}

/* Container: Label und Textarea nebeneinander und vertikal vermittelt */
.tribe-events-status-components-textarea-control__container {
    display: flex !important;
    flex-direction: row !important; /* Nebeneinander statt untereinander */
    align-items: center !important;    /* Vermittelt Label und Feld vertikal zur Mitte */
    justify-content: center !important; /* Zentriert die ganze Gruppe horizontal */
    gap: 15px !important;              /* Abstand zwischen Label und Feld */
    margin-top: 10px !important;
}

/* Label: Verhindert Zeilenumbruch und sorgt für Abstand */
.tribe-events-status-components-textarea-control__label {
    margin-bottom: 0 !important;       /* Reset, da sie jetzt nebeneinander stehen */
    white-space: nowrap !important;    /* Text bleibt in einer Zeile */
}

/* Textarea: Breite anpassen */
.tribe-events-status-components-textarea-control__input {
    width: 250px !important;           /* Feste Breite passend zu den anderen Feldern */
    padding: 8px !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}

/* Mobil: Untereinander, falls der Platz nicht reicht */
@media screen and (max-width: 600px) {
    .tribe-events-status-components-textarea-control__container {
        flex-direction: column !important;
        align-items: flex-start !important; /* Linksbuendig auf Mobilgeraeten */
    }
    .tribe-events-status-components-textarea-control__input {
        width: 100% !important;
    }
}

/* Styling für den RSVP-Speichern Button (Primärbutton) */
#rsvp_form_save.button-primary {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 12px 25px !important;
    border-radius: 0 !important;
    
    /* Farben & Rahmen */
    background-color: #8F723D !important;
    color: #ffffff !important;
    border: 2px solid #8F723D !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover-Zustand */
#rsvp_form_save.button-primary:hover {
    background-color: #bd9e62 !important;
    border-color: #bd9e62 !important;
    color: #ffffff !important;
}

.input_block.ticket_advanced_Tribe__Tickets__RSVP.tribe-dependent.tribe-active {
	display: none !important;
}

.button-secondary.tribe-button-icon.tribe-button-icon-settings {
	display: none !important;
}

/* Linke Seite: Icon und Label vermitteln */
.saved-organizer-table-cell {
    display: flex !important;
    align-items: center !important; /* Vertikale Zentrierung */
    gap: 8px !important;           /* Abstand zwischen Icon und Text */
    vertical-align: middle !important;
}

/* Rechte Seite: Select-Feld und Löschen-Icon vermitteln */
.tribe-section-content td:last-child {
    display: flex !important;
    align-items: center !important; /* Vertikale Zentrierung */
    gap: 10px !important;           /* Abstand zwischen Dropdown und Trash-Icon */
    vertical-align: middle !important;
}

/* Verhindert, dass die Tabelle sich wie ein Block verhält */
.tribe-section-content tr.saved-linked-post {
    display: table-row !important;
}

/* Linke Zelle: Icon und Label in einer Zeile vermitteln */
.saved-organizer-table-cell {
    display: table-cell !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.saved-organizer-table-cell .dashicons-screenoptions {
    vertical-align: middle !important;
    margin-right: 8px !important;
}

.saved-organizer-table-cell label {
    vertical-align: middle !important;
    display: inline-block !important;
    margin: 0 !important;
}

/* Rechte Zelle: Dropdown und Mülleimer vermitteln */
.tribe-section-content td:nth-child(2) {
    display: table-cell !important;
    vertical-align: middle !important;
}

/* Das Select2-Feld und das Löschen-Icon nebeneinander ausrichten */
.select2-container, 
.tribe-delete-this {
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Abstand für den Mülleimer, damit er nicht klebt */
.tribe-delete-this.dashicons-trash {
    margin-left: 15px !important;
    text-decoration: none !important;
}

/* Hintergrund des Toggles, wenn er aktiviert ist */
input.tribe-common-switch__input:checked + .tribe-common-switch__label {
    background-color: #8F723D !important;
}

/* Falls der Schalter eine eigene Klasse für den "Slider" hat */
input.tribe-common-switch__input:checked + .tribe-common-switch__label::after {
    background-color: #ffffff !important; /* Der Schiebe-Punkt bleibt weiß */
}

/* Fokus-Zustand (für Barrierefreiheit in Gold) */
input.tribe-common-switch__input:focus + .tribe-common-switch__label {
    box-shadow: 0 0 0 2px rgba(164, 134, 74, 0.5) !important;
}

/* Falls die CSS-Klasse direkt am Label bei Aktivierung wechselt */
.tribe-common-switch__label.tribe-common-switch__label--checked {
    background-color: #8F723D !important;
}

/* Spezifisches Padding für das YouTube Channel-ID Feld */
#tribe-events-virtual-youtube-channel-id.components-text-control__input {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 12px !important; /* Passend zur Optik der anderen Felder */
    padding-right: 12px !important;
    height: auto !important; /* Erlaubt dem Feld, mit dem Padding zu wachsen */
    box-sizing: border-box !important;
    border-radius: 0 !important; /* Falls es auch eckig sein soll wie deine Buttons */
}

/* Aktiver Zustand für Kalendertage / Datepicker */
.ui-state-default.ui-state-active,
.ui-state-default.ui-state-highlight.ui-state-active {
    background-color: #8F723D !important;
    background-image: none !important; /* Entfernt eventuelle Standard-Verläufe */
    color: #fff !important;
    font-weight: 700 !important; /* Macht die schwarze Schrift auf Gold besser lesbar */
}

/* Hintergrund beim Drüberfahren (Hover) in Hellgrau */
.ui-timepicker-list li:hover,
.ui-timepicker-list .ui-timepicker-hover {
    background-color: #f5f5f5 !important; /* Dein Hellgrau */
    color: #000000 !important; /* Text bleibt schwarz */
}

/* Der bereits ausgewählte Wert in der Liste (Active State) */
.ui-timepicker-list .ui-timepicker-selected {
    background-color: #8F723D !important; /* Dein Gold */
    color: #000000 !important; /* Text schwarz wie gewünscht */
}

/* Den Timepicker-Container an das Eingabefeld anpassen */
.ui-timepicker-wrapper {
    width: 130px !important; /* Hier den exakten Wert deiner tribe-timepicker Klasse eintragen */
    box-sizing: border-box !important;
}

/* Die Liste im Inneren auf volle Breite des Wrappers setzen */
.ui-timepicker-list {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Sicherstellen, dass die einzelnen Listeneinträge die volle Breite nutzen */
.ui-timepicker-list li {
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important; /* Text innerhalb der Liste zentrieren */
}

/* Die Tabellenzellen selbst mittig ausrichten */
.saved-venue-table-cell, 
.saved-organizer-table-cell,
.tribe-section-content td {
    vertical-align: middle !important;
}

/* Alle Elemente innerhalb der Zellen auf die Mittellinie zwingen */
.saved-venue-table-cell .dashicons,
.saved-organizer-table-cell .dashicons,
.saved-venue-table-cell label,
.saved-organizer-table-cell label,
.select2-container,
.tribe-delete-this.dashicons-trash {
    vertical-align: middle !important;
    display: inline-block !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: normal !important;
}

/* Icon-Korrektur: Verhindert das "Absinken" der Dashicons */
.dashicons-screenoptions, 
.dashicons-trash {
    line-height: 1 !important;
    height: 20px !important; /* Standardhöhe für Dashicons */
}  

/* Nur den Text innerhalb des Labels anpassen, nicht das span.req */
label[for="post_content"] {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

/* Den (erforderlich) Hinweis explizit auf 12px setzen */
label[for="post_content"] .req {
    font-size: 12px !important;
	    font-weight: 700 !important;
}

/* Blendet den Select2-Container für die Zeitzone komplett aus */
.select2-container.tribe-field-timezone {
    display: none !important;
}

/* Erzwingt den horizontalen Abstand zwischen Checkbox und Text */
#allDayCheckbox {
    margin-right: 15px !important; 
    display: inline-block !important;
    float: none !important; /* Verhindert, dass Floats den Margin ignorieren */
}

/* Falls das Label ein eigenes Padding hat, das wir nutzen können */
label[for="allDayCheckbox"] {
    padding-left: 5px !important;
    display: inline-block !important;
}

/* 1. Gesamter Container: Text vermitteln */
.tribe-community-notice.tribe-community-notice-success {
    text-align: center !important;
    display: block !important; /* Block sorgt für saubere Zentrierung per text-align */
}

/* 2. Der normale Text (Veranstaltung aktualisiert...) */
.tribe-community-notice-success p,
.tribe-community-notice-success p span {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #333 !important;
}


/* 3. Hover-Effekt Links */
.tribe-community-notice-success p a:hover {
    color: #bd9e62 !important;
}

/* Bonus: Den Trennstrich ( | ) optisch anpassen, falls er stört */
.tribe-community-notice-success .sep {
    font-family: sans-serif !important;
    color: #8F723D !important;
    margin: 0 5px !important;
}


/* 1. Abstände bei den Klammern und dem Trenner optimieren */
.tribe-community-notice-success p {
    word-spacing: 2px; /* Gibt dem gesamten Satz etwas mehr Luft */
}

/* Abstand NACH der öffnenden Klammer */
.tribe-community-notice-success p span + a.view-event,
.tribe-community-notice-success p:first-child::after {
    margin-left: 5px !important;
}

/* Abstand VOR und NACH dem Trenner | */
.tribe-community-notice-success .sep {
    margin: 0 12px !important; /* Erzeugt ordentlich Platz um den Strich */
    color: #8F723D !important;
}

/* Abstand VOR der schließenden Klammer */
.tribe-community-notice-success a.edit-event {
    margin-right: 5px !important;
}

/* 2. Blauen Rahmen (Outline) beim Klicken entfernen */
.tribe-community-notice-success,
.tribe-community-notice-success a,
.tribe-community-notice-success a:focus,
.tribe-community-notice-success:focus {
    outline: none !important;
    box-shadow: none !important; /* Manchmal ist es ein Schatten statt Outline */
}

#post.tribe-button.events-community-submit {
    /* Zentrierung des Textes */
    display: inline-block !important;
    text-align: center !important;
    
    /* Padding erzwingen */
    padding-left: 25px !important;
    padding-right: 25px !important;
    
    /* Breite auf Auto setzen, damit das Padding wirken kann */
    width: auto !important;
    min-width: fit-content !important;
    
    /* Sicherstellen, dass der Browser das Padding nicht schluckt */
    box-sizing: border-box !important;
}


/* Flyout-Menü breiter machen */
div#display-options-menu-0.table-menu {
    min-width: 250px !important; /* Standard ist oft ca. 150-180px */
    width: auto !important;
    padding: 15px !important;
}

/* Verhindert, dass die Texte (z.B. Veröffentlichungsstatus) umbrechen */
div#display-options-menu-0 ul li label {
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    padding: 5px 0 !important;
}

/* Horizontaler Abstand zwischen Checkbox und Text im Flyout */
div#display-options-menu-0 input[type="checkbox"] {
    margin-right: 12px !important;
}


/* Button Anzeigeoptionen */

.table-menu-btn.button.tribe-button.tribe-button-tertiary.tribe-button-activate {
    font-family: 'Poppins', sans-serif !important; 
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 2px !important;
    color: #8F723D !important; 
    background-color: transparent !important;
    border: 2px solid #8F723D !important;
    border-radius: 0 !important;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px !important;
}



/* Event-Titel in Baskerville Schriftart */
.title a {
    font-family: 'Baskerville_Regular' !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

/* "Reports:" übersetzen */
.row-actions strong {
    font-size: 0 !important;
}
.row-actions strong::before {
    content: "Berichte:" !important;
    font-size: 13px !important;
	
}

/* "Attendees" übersetzen */
.tribe-attendee-report {
    font-size: 0 !important;
    line-height: 1 !important; /* Verringert den Platzbedarf der unsichtbaren Box */
    display: inline-block !important;
}
.tribe-attendee-report::before {
    content: "Teilnehmer" !important;
    font-size: 13px !important;
    visibility: visible !important;
}


/* "Sales" übersetzen */
.tribe-sales-report {
    font-size: 0 !important;

}
.tribe-sales-report::before {
    content: "Verkäufe" !important;
    font-size: 13px !important;
    visibility: visible !important;
}

/* Sicherstellen, dass die Links trotz font-size: 0 klickbar bleiben und die Farbe stimmt */
.row-actions a.tribe-attendee-report, 
.row-actions a.tribe-sales-report {
    text-decoration: none !important;
    color: #666 !important;
}

.row-actions a.tribe-attendee-report:hover::before, 
.row-actions a.tribe-sales-report:hover::before {
    color: #8F723D !important;
}

/* Nur die Schriftgröße für Ansicht, Bearbeiten und Löschen auf 13px setzen */
.row-actions .view a, 
.row-actions .edit a, 
.row-actions .delete a {
    font-size: 13px !important;
}


/* Tabellen-Labels (Header) nach deinen Vorgaben stylen */
.column-header {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    color: #888888 !important;
}

/* Hover-Effekt für Veranstaltungsort, Veranstalter, Teilnehmer und Bestellungen */
.edit-linked-post-link a:hover,
a[href*="/bearbeiten/veranstalter/"]:hover,
a[href*="/bearbeiten/eventort/"]:hover,
.tribe-ticket-control-wrap__ctas a:hover {
    color: #bd9e62 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

/* --- GLOBALE SEKTIONS-EINSTELLUNGEN --- */

/* Sektion "Weitere Angaben" komplett ausblenden */
.tribe-section.tribe-section-custom-fields {
    display: none !important;
}

/* Container-Positionierung für absolute Buttons */
.tribe-community-events-before-list {
    position: relative !important;
}

/* --- DESKTOP ANPASSUNGEN (ab 981px) --- */
@media (min-width: 981px) {
    /* Repariert den Abstand für "Link:", "Anfang/Ende" etc. */
    .tribe-section-content-label {
        padding-left: 20px !important;
        padding-right: 20px !important;
        vertical-align: middle !important;
    }
}

/* Sektion Veranstaltungsstatus komplett ausblenden */
#event_tribe_event_status.tribe-section-event-status {
    display: none !important;
}

/* Nur den Select2-Dropdown-Container für Bundesland ausblenden */
span.select2-selection[aria-labelledby="select2-StateProvinceSelect-container"] {
    display: none !important;
}


/* Breite und Höhe der Textfelder an die Select2-Felder anpassen */
#event_tribe_venue input[type="text"], 
#event_tribe_venue input[type="url"],
#event_tribe_venue input[type="tel"] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 40px !important; /* Passt es an die Höhe der Select2-Boxen an */
    border: 1px solid #aaa !important; /* Gleicht den Rahmen an */
    border-radius: 0px !important;    /* Falls Select2 eckig ist */
    padding: 8px 12px !important;
    box-sizing: border-box !important;
}

/* Spezifische Korrektur für PLZ und Website (falls diese zu kurz sind) */
#VenueZip, #VenuePhone, #VenueURL {
    width: 100% !important;
}

/* Falls die Tabellenzellen die Breite einschränken */
#event_tribe_venue td:last-child {
    width: 100% !important;
}

/* Breite und Design der Veranstalter-Eingabefelder anpassen */
#event_tribe_organizer input[type="text"], 
#event_tribe_organizer input[type="url"], 
#event_tribe_organizer input[type="email"] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 40px !important;
    border: 1px solid #aaa !important;
    border-radius: 0px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
}

/* Den Select2-Container für den Veranstalter ebenfalls auf 100% bringen */
#event_tribe_organizer .select2-container {
    width: 100% !important;
    display: block !important;
}

/* Den Hinweistext unter dem E-Mail-Feld etwas dezenter stylen */
.organizer-email p {
    font-size: 11px !important;
    color: #666;
    margin-top: 4px !important;
}

/* Tabellenzellen-Fix für Veranstalter, damit die Felder Platz haben */
#event_tribe_organizer td:last-child {
    width: 100% !important;
}

/* Find Button */

button.button.tribe-events-virtual-video-source-autodetect__button {
    font-size: 0 !important; /* Versteckt den Original-Text "Find" */
    
    /* Deine Design-Vorgaben */
    font-family: 'Poppins', sans-serif !important;
    background-color: #8F723D !important;
    border: 2px solid #8F723D !important;
    border-radius: 0 !important;
    padding: 12px 25px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Den neuen Text "FINDEN" einfügen */
button.button.tribe-events-virtual-video-source-autodetect__button::after {
    content: "FINDEN";
    font-size: 14px !important; /* Stellt die gewünschte Größe wieder her */
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    display: block;
}

/* Hover-Effekt (Gold-Ton #bd9e62 aus deinen Vorgaben) */
button.button.tribe-events-virtual-video-source-autodetect__button:hover {
    background-color: #bd9e62 !important;
    border-color: #bd9e62 !important;
}

/* Löschen Icons vermitteln*/

/* Nur das Löschen-Icon isoliert nach oben schieben */
#event_tribe_organizer .tribe-delete-this.dashicons-trash {
    position: relative !important;
    top: -40px !important; /* Schiebt das Icon nach oben, ohne den Platz um sich herum zu verändern */
    display: inline-block !important;
	 	display: inline-block !important;
}

/* 1. Das Dropdown (einmalig/täglich) unter die Button-Leiste zwingen */
.tribe-buttonset {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* Das Dropdown-Span-Element in eine neue Zeile schieben */
.tec-events-pro-rule-type {
    display: block !important;
    width: 100% !important;
    margin-top: 15px;
}

/* 2. "am" und das folgende Datumsfeld/Intervall nach unten */
.recurrence-custom-container, 
.tribe-recurrence-type {
    display: block !important;
    width: 100% !important;
    margin-top: 10px;
}

/* 3. Die Zeit-Sektion "Von" komplett unterbrechen */
.recurrence-same-time {
    display: block !important;
    width: 100% !important;
    margin-top: 15px;
}

/* 4. Die Uhrzeit-Details (Zeitfelder + "bis" + "am" + Tag-Dropdown) stapeln */
.recurrence-time {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px;
    margin-top: 10px;
}

/* 5. Alle Select2-Dropdowns auf Block setzen, damit sie eine eigene Zeile beanspruchen */
.tribe-event-recurrence .select2-container {
    display: block !important;
    width: 100% !important;
    max-width: 300px;
}

/* 6. Hilfstexte (bis, am) als Block für den Umbruch */
.eventduration-preamble,
.tribe-field-inline-text {
    display: block !important;
    margin-bottom: 2px;
}

/* =============================================================
   FOOTER-BUTTON (PRIMÄR): AKTUALISIEREN
   ============================================================= */

.tribe-events-community-footer input.events-community-submit[type="submit"] {
    /* Schrifteinstellungen */
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    background-color: #8F723D !important;
    color: #ffffff !important;
	border: 0 !important;
 
    
    /* Abstände & Layout */
    padding: 12px 25px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

/* Hover-Zustand */
.tribe-events-community-footer input.events-community-submit[type="submit"]:hover {
    background-color: #bd9e62 !important;
}


/* --- DEN BUTTON "DEINE EINGEREICHTEN VERANSTALTUNGEN ANZEIGEN" AUSBLENDEN --- */
.my-events-header a.tribe-button.tribe-button-secondary {
    display: none !important;
}

/* --- ABSTAND FÜR ÜBERSCHRIFT: VERANSTALTUNGSORT BEARBEITEN --- */
h2.my-events {
    margin-bottom: 15px !important;
    display: block !important;
}

/* Styling für den per Script eingefügten Button */
.custom-dashboard-button {
    display: inline-block !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    background-color: #8F723D !important;
    color: #ffffff !important;
    border: 2px solid !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-top: 15px !important;
    margin-bottom: 25px !important;
    cursor: pointer !important;
}

.custom-dashboard-button:hover {
    background-color: #bd9e62 !important;
}

/* Abstand Link "Veranstaltungsort bearbeiten */

td .select2 {
  display: block;
}

td .edit-linked-post-link {
  display: block;
  margin-top: 10px;
}


/* Style Erfolgsseite Event erstellt */

/* ============================= */
/* SUCCESS CONTAINER ZENTRIEREN */
/* ============================= */

#tribe-community-events .tribe-community-notice-success {
    text-align: center !important;
    padding: 60px 20px;
}


/* ============================= */
/* HEADLINE: Baskerville 24px   */
/* ============================= */

.tribe-community-notice-success p:first-of-type span {
    display: block;
    font-family: 'Baskerville_Regular', serif !important;
    font-size: 28px !important;
    margin-bottom: 20px;
}


/* ============================= */
/* KLAMMERN + SEPARATOR AUSBLENDEN */
/* ============================= */

/* Separator entfernen */
.tribe-community-notice-success .sep {
    display: none !important;
}

/* Gesamten Paragraph neutralisieren */
.tribe-community-notice-success p:first-of-type {
    font-size: 0;
}

/* Gewünschte Elemente wieder sichtbar machen */
.tribe-community-notice-success p:first-of-type span,
.tribe-community-notice-success .view-event,
.tribe-community-notice-success .edit-event {
    font-size: 14px;
}


/* ============================= */
/* LINKS: Ansicht | Bearbeiten  */
/* ============================= */

.tribe-community-notice-success .view-event,
.tribe-community-notice-success .edit-event {
    display: inline-block;
    margin: 0 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
}


/* ============================= */
/* BUTTON: Weiteres Event       */
/* ============================= */

.tribe-community-notice-success p:last-of-type a {
    display: inline-block;
    margin-top: 35px;
    padding: 12px 28px;
    border: 1px solid #8F723D;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s ease;
}

.tribe-community-notice-success p:last-of-type a:hover {
    background: #f2f2f2;
}


/* ============================= */
/* MOBILE                        */
/* ============================= */

@media (max-width: 768px) {

    .tribe-community-notice-success .view-event,
    .tribe-community-notice-success .edit-event,
    .tribe-community-notice-success p:last-of-type a {
        font-size: 13px;
    }

}

.tribe-community-notice-success::before {
    content: "";
    display: block;
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: url('/wp-content/uploads/2025/03/cropped-trinity-portal-favicon.png') no-repeat center;
    background-size: contain;
}

@media (max-width: 768px) {

    #tribe-community-events {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

}

/* --- BASIS UND DASHBOARD --- */
.dokan-dash-sidebar {
    display: none;
}

@media (max-width: 900px) {
    .icons-nebeneinander {
        display: flex;
        flex-wrap: nowrap;
    }
}

/* =============================================================
   1. HEADLINES
   ============================================================= */

/* --- HEADLINE: VERANSTALTUNGSORT DETAILS --- */
.tribe_sectionheader h4 {
    font-family: 'Baskerville_Regular', serif !important;
}


/* MOBILE ANPASSUNG (480px) */
@media screen and (max-width: 480px) {
    /* H2 - Die großen Titel */
    div.tribe-community-events-content h2.my-events,
    .tribe-community-events-content .tribe-community-event-info h2,
    .tribe-community-events-content #tribe-community-events h2 {
        font-size: 30px !important;
        line-height: 1.1 !important;
    }

    /* H4 - Die Sektions-Titel (Ort, Details, etc.) */
    .tribe-community-events-content .tribe-community-event-info h4,
    .tribe-community-events-content .tribe-events-community-section-title,
    .tribe-section-header h4 {
        font-size: 20px !important;
        line-height: 1.2 !important;
    }
}

/* =============================================================
   2. Labels ====================================== */

/* --- 2.2 TEXT & BESCHREIBUNGEN (Open Sans) --- */
.tribe-community-events-content,
.tribe-community-events-content p,
.tribe-events-community-details,
.tribe-community-events-content label { 
    font-family: 'Open Sans', sans-serif !important;
    font-size: 17px !important;
    color: #595353 !important;
    line-height: 1.6 !important;
}

/* Tablet Anpassungen Text (768px) */
@media (max-width: 768px) {
    .tribe-community-events-content, 
    .tribe-community-events-content p {
        font-size: 15px !important;
    }
}

/* --- 2.3 LABELS (Einheitlich für alle Felder inkl. Name & Beschreibung) --- */
.tribe-community-events-content label,
.tribe-community-events-content label[for="post_title"],
.tribe-community-events-content label[for="post_content"],
.tribe-community-events-content .tribe-section label,
.tribe-community-events-content .tribe-events-community-details label {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

/* Den "(erforderlich)" Hinweis innerhalb der Labels lesbar halten */
.tribe-community-events-content label .req,
.tribe-community-events-content label small {
    text-transform: none !important;
    font-size: 11px !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
	   display: block !important;
}

/* Mobil-Anpassung für ALLE Labels (768px und kleiner) */
@media (max-width: 768px) {
    .tribe-community-events-content label,
    .tribe-community-events-content label[for="post_title"],
    .tribe-community-events-content label[for="post_content"] {
        font-size: 12px !important;
    }
}

/* Verhindert den Umbruch und gibt dem "erforderlich" etwas Abstand nach links */
.tribe-community-events-content label small.req {
    display: inline !important;
    margin-left: 6px !important;
    vertical-align: baseline !important;
}

/* =============================================================
   3. EINGABEFELDER (Text, E-Mail, Telefon, Webadresse)
   ============================================================= */
.tribe-community-events-content input[type="text"],
.tribe-community-events-content input[type="tel"],
.tribe-community-events-content input[type="url"],
.tribe-community-events-content input[type="email"],
.tribe-community-events-content textarea {
   width: 100% !important;
   padding: 18px 20px !important;
   border: 1px solid #595353 !important;
   border-radius: 0 !important; 
   font-family: 'Open Sans', sans-serif !important;
   font-size: 14px !important;
   background-color: transparent !important;
   color: #333 !important;
   margin-bottom: 8px !important;
   transition: border-color 0.3s ease !important;
   box-sizing: border-box !important;
}

/* --- DROPDOWN-FELDER (Select) --- */
.tribe-community-events-content select {
   width: 100% !important;
   padding: 14px 45px 14px 16px !important; 
   border: 1px solid #595353 !important;
   border-radius: 0 !important;
   font-family: 'Open Sans', sans-serif !important;
   font-size: 14px !important;
   background-color: transparent !important;
   color: #333 !important;
   margin-bottom: 8px !important;

   /* System-Pfeil entfernen */
   -webkit-appearance: none !important;
   -moz-appearance: none !important;
   appearance: none !important;

   /* Eigener SVG-Pfeil in Grau (#595353) */
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23595353' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
   background-repeat: no-repeat !important;
   background-position: calc(100% - 12px) center !important; 
   background-size: 16px !important;

   cursor: pointer !important;
}

/* Entfernt den IE/Edge spezifischen Pfeil */
.tribe-community-events-content select::-ms-expand {
   display: none !important;
}

/* Fokus-Zustand für Select */
.tribe-community-events-content select:focus {
   outline: none !important;
   border-color: #8F723D !important;
}


/* =============================================================
   4. TABLET & MOBIL ANPASSUNGEN (768px und kleiner)
   ============================================================= */
@media (max-width: 768px) {

   /* 1. CHECKBOXEN: Kein Umbruch, Box und Text nebeneinander */
   .tribe-community-events-content .checkbox,
   .tribe-community-events-content div[class*="tribe-section-"] .checkbox {
       display: flex !important;
       flex-direction: row !important;
       align-items: flex-start !important;
       gap: 12px !important;
       margin-bottom: 15px !important;
   }

   .tribe-community-events-content .checkbox input[type="checkbox"] {
       flex-shrink: 0 !important;
       width: 18px !important;
       height: 18px !important;
       margin-top: 2px !important;
   }

   .tribe-community-events-content .checkbox label {
       display: inline !important;
       margin: 0 !important;
       font-size: 14px !important;
       text-transform: none !important; 
       letter-spacing: 0 !important;
   }



   /* 3. HEADLINE ANPASSUNGEN */
   .tribe-community-events-content h2 {
       font-size: 45px !important;
   }
   .tribe-community-events-content h4 {
       font-size: 35px !important;
   }
}


/* =============================================================
   5. REIN MOBIL (480px und kleiner)
   ============================================================= */
@media (max-width: 480px) {
   .tribe-community-events-content h2 {
       font-size: 38px !important;
   }
   .tribe-community-events-content h4 {
       font-size: 30px !important;
   }
}


/* --- 7. LINKS (Innerhalb des Contents) --- */
.tribe-community-events-content a:not(.tribe-button) {
    color: #8F723D !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* =============================================================
   8. GLOBALE ABSTÄNDE (Margin)
   ============================================================= */

/* Abstand nach Textfeldern und Textareas */
.tribe-community-events-content input[type="text"],
.tribe-community-events-content input[type="tel"],
.tribe-community-events-content input[type="url"],
.tribe-community-events-content input[type="email"],
.tribe-community-events-content textarea {
    margin-bottom: 25px !important; 
}

/* Abstand nach Dropdown-Feldern */
.tribe-community-events-content select {
    margin-bottom: 25px !important;
}

/* Abstand nach großen Sektionen */
.tribe-community-events-content .tribe-events-community-details,
.tribe-community-events-content .tribe-section-venue,
.tribe-community-events-content .tribe-section-organizer,
.tribe-community-events-content .tribe-community-event-info {
    margin-bottom: 35px !important; 
}

/* Abstand nach dem Editor */
.tribe-community-events-content .events-community-post-content {
    margin-bottom: 30px !important;
}

/* Enger Abstand für Labels */
.tribe-community-events-content label {
    margin-bottom: 8px !important; 

}

/* BUTTON MOBIL LINKS AUSRICHTEN - NUR EVENTORT */

@media (max-width: 768px) {
    .tribe-community-events-content a.tribe-button.tribe-button-secondary, .tribe-community-events-content .tribe-button-secondary {
        font-size: 0 !important;
        letter-spacing: 0 !important;
        margin-right: 0px;
    }
}

/* TABLET-ANPASSUNG (nur Eventort) */
@media screen and (min-width: 481px) and (max-width: 1024px) {
    /* Container auf volle Breite setzen */
    #tribe-events-pg-template.tribe-events-pg-template,
    .tribe-community-events-content {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px !important;
    }

    /* Formular-Elemente im Eventort-Bereich auf volle Breite */
    .tribe-section-venue input[type="text"],
    .tribe-section-venue select,
    .tribe-section-venue .wp-editor-wrap {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}


/* ===================================================
   1. Mobil/Tablet Neues Event
   ============================================================= */



/* 1. AB TABLET (1024px): Text kürzen & Breite fixen */
@media (max-width: 1024px) {
    .my-events-header .tribe-button-secondary {
        /* Alten Text physisch verschwinden lassen für korrekte Breite */
        font-size: 0 !important;
        line-height: 0 !important;
        color: transparent !important;
        
        /* Deine Button-Styles */
        background-color: #8F723D !important;
        padding: 12px 25px !important;
        display: inline-block !important;
        width: auto !important;
        min-width: 0 !important;
        transition: background-color 300ms ease !important;
    }

    .my-events-header .tribe-button-secondary::after {
        content: "Deine Events anzeigen";
        /* Text-Formatierung laut Vorgabe */
        font-family: 'Poppins', sans-serif !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        color: #ffffff !important;
        line-height: 1.2;
        display: block;
    }

    /* Hover: Helleres Gold */
    .my-events-header .tribe-button-secondary:hover {
        background-color: #bd9e62 !important;
        border-color: #bd9e62 !important;
    }
}

/* 2. MOBIL (768px): Umbruch unter die Headline erzwingen */
@media (max-width: 768px) {
    header.my-events-header {
        /* Bricht das Nebeneinander-Layout auf */
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; 
    }

    header.my-events-header h2.my-events {
        margin-bottom: 15px !important; /* Abstand zwischen Text und Button */
    }

    .my-events-header .tribe-button-secondary {
        margin-left: 0 !important; /* Verhindert seitliches Kleben */
    }
}
/* 1. Zeilenabstand innerhalb der H3 verbessern */
.tribe-section-header h3 {
    line-height: 1.4 !important;
    margin-top: 0 !important;
    margin-bottom: 5px !important;
}

/* Korrektur der Abstände NUR ab Tablet und Mobil */
@media (max-width: 1024px) {
    
    /* 1. Zeilenabstand der Headline verbessern */
    .tribe-section-header h3 {
        line-height: 1.4 !important;
        margin-top: 0 !important;
        margin-bottom: 5px !important;
    }

    /* 2. Den riesigen Abstand (orange/grüne Fläche) reduzieren */
    .tribe-section-header {
        padding-bottom: 0 !important;
        margin-bottom: 10px !important;
        letter-spacing: 1px !important;
    }

    /* 3. Abstand des nachfolgenden Inhalts (Datum/Uhrzeit) korrigieren */
    .tribe-section-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 1024px) {
    /* Die Zellen als Blöcke untereinander mit dezentem linkem Abstand */
    .tribe-section-content-label, 
    .tribe-section-content-field {
        display: block !important;
        width: 100% !important;
        padding-left: 15px !important; /* Dezenter Abstand nach links */
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    /* Das Label "Anfang/Ende" bekommt etwas mehr Präsenz */
    .tribe-section-content-label label {
        font-family: 'Poppins', sans-serif !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        font-size: 13px;
        letter-spacing: 1px;
        color: #333;
        display: block;
        margin-bottom: 5px;
    }

    /* Die Input-Felder (Datum/Zeit) sauber linksbündig im Feld-Block */
    .tribe-section-content-field input[type="text"] {
        margin-left: 0 !important;
        margin-bottom: 10px !important; /* Abstand zwischen den Feldern beim Umbruch */
    }

    /* Der "Wiederkehrende Veranstaltung" Button im gewohnten Design */
    #tribe-events-make-recurring {
        display: inline-block !important;
        margin-top: 15px !important;
        margin-left: 0 !important;
        font-family: 'Poppins', sans-serif !important;
        font-weight: 600 !important;
        font-size: 14px;
        letter-spacing: 2px;
        text-transform: uppercase;
        padding: 12px 25px !important;
        border-radius: 0 !important;
        background-color: transparent !important;
        color: #8F723D !important;
        transition: all 0.3s ease;
    }

    #tribe-events-make-recurring:hover {
        background-color: #f5f5f5 !important;
        color: #8F723D !important;
    }

    /* Trenner "bis" bekommt auch etwas Luft */
    .tribe-datetime-separator {
        display: inline-block;
        padding: 0 5px;
        margin-bottom: 10px;
    }
}

@media (max-width: 760px) {
    /* Den Container des Zeitzonen-Links finden und das Padding entfernen */
    .tribe-events-schedule .tribe-change-timezone,
    .tribe-events-schedule + div, 
    #tribe-timezone-details {
        display: block !important;
        text-align: left !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    /* Den Link selbst links ausrichten */
    a.tribe-change-timezone {
        display: inline-block !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        text-align: left !important;
    }
}

@media (max-width: 760px) {
    .tribe-section-content-label,
	.tribe-section-content-row.event-dynamic-helper{
        display: none !important;
    }
}

@media (max-width: 760px) {
    .recurrence-rules-header, 
    .recurrence-container {
        padding-left: 8px !important;
        margin-left: 0 !important;
    }
}


/* Spezifisch für Mobilgeräte */
@media (max-width: 480px) {
    /* Den umschließenden Container/Zelle kompakt machen */
    .tribe-section-content-field {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Das Label-Styling nach deinen Vorgaben */
    .tribe-section-content-field label[for="allDayCheckbox"] {
        font-family: 'Poppins', sans-serif !important;
        font-size: 12px !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        font-weight: 600;
        display: inline-block !important; 
    }

    /* Die Checkbox selbst bündig ausrichten */
    #allDayCheckbox {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        transform: scale(0.9); /* Macht die Box minimal kleiner, passend zur 13px Schrift */
    }
}

/* Desktop/Tablet Styling (zur Vollständigkeit) */
@media (min-width: 481px) {
    .tribe-section-content-field label[for="allDayCheckbox"] {
        font-family: 'Poppins', sans-serif !important;
        font-size: 13px !important;
        letter-spacing: 1.5px !important;
        text-transform: uppercase !important;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    /* Das Label über dem Button zum Block machen, damit der Button darunter rutschen muss */
    .tribe-section-content-field label {
        display: block !important;
    }

    /* Der Button selbst */
    #tribe-add-recurrence {
        display: block !important;
        margin-top: 10px !important; /* Abstand nach oben, damit er nicht am Text klebt */
    }
}

@media (max-width: 480px) {
    /* 1. Icon ausblenden */
    tr.saved-linked-post .dashicons, 
    tr.saved-linked-post td::before {
        display: none !important;
    }

    /* 2. Jede einzelne Zelle in dieser Zeile zum Block machen */
    tr.saved-linked-post td {
        display: block !important;
        width: 100% !important;
        float: left !important; /* Erzwingt den Umbruch in alten Browsern */
        clear: both !important;
        box-sizing: border-box !important;
    }

    /* 3. Das Select2-Feld (Dropdown) auf volle Breite */
    .select2-container.linked-post-dropdown {
        width: 100% !important;
        display: block !important;
    }

    /* 4. Eventuelle feste Breiten des Containers aufheben */
    .selection, .select2-selection {
        width: 100% !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    /* 1. Den Container (die Zelle) ausrichten */
    tr.tribe-section-content-row td, 
    #event_tribe_url td {
        display: block !important;
        width: 100% !important;
        /* Hier geben wir dem Ganzen wieder Luft zum Rand */
        padding-left: 15px !important; 
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    /* 2. Das Label (URL für Informationen...) wieder einrücken */
    #event_tribe_url label {
        display: block !important;
        margin-bottom: 8px !important;
        font-family: 'Open_Sans_Regular', sans-serif !important;
        font-size: 14px !important;
    }

    /* 3. Das Feld füllt den Platz zwischen den 15px Abständen voll aus */
    #EventURL {
        display: block !important;
        width: 100% !important; 
        
        /* Oben und unten fett (breiter), innen Platz für Text */
        padding: 18px 12px !important; 
        
        font-family: 'Open_Sans_Regular', sans-serif !important;
        font-size: 14px !important;
        
        box-sizing: border-box !important;
        border: 1px solid #ccc !important;
        border-radius: 0 !important;
    }
}

@media (max-width: 480px) {
    /* 1. Label näher ans Feld bringen */
    td.tribe-section-content-label {
        display: block !important;
        width: 100% !important;
        padding: 20px 0 2px 25px !important; 
        margin: 0 !important;
    }

    /* 2. Zelle des Eingabefelds bündig halten */
    #event_tribe_url td, 
    tr.tribe-section-content-row td {
        display: block !important;
        width: 100% !important;
        padding: 0 25px 20px 25px !important; 
        box-sizing: border-box !important;
    }

    /* 3. Das Feld selbst bleibt breit und 'fett' */
    #EventURL {
        display: block !important;
        width: 100% !important;
        padding: 18px 12px !important; 
        font-family: 'Open_Sans_Regular', sans-serif !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
        border: 1px solid #ccc !important;
        margin-top: -24px !important;
    }
}

@media (max-width: 480px) {
    /* 1. Den grünen Bereich UNTER dem Feld (aus deinem Screenshot) komplett löschen */
    td.tribe-section-content-field {
        display: block !important;
        width: 100% !important;
        padding-top: 0 !important;
        padding-left: 25px !important;
        padding-right: 25px !important;
        padding-bottom: 0 !important; 
    }

    /* 2. Das Feld selbst: Text bleibt mittig, Feld bleibt 'fett' */
    #EventURL {
        display: block !important;
        width: 100% !important;
        padding: 15px 12px !important; 
        
        /* Kein Außenabstand nach unten */
        margin-bottom: 0 !important; 
        
        font-family: 'Open_Sans_Regular', sans-serif !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
        border: 1px solid #ccc !important;
    }

    /* 3. Den Abstand des gesamten Website-Abschnitts nach unten killen */
    .tribe-section.tribe-section-website {
        padding-bottom: 0 !important;
        margin-bottom: 10px !important; /* Kleiner Puffer zu den Tickets */
    }
}

/* Mobil-Fix für das Select2 Flyout */
@media only screen and (max-width: 767px) {
    /* 1. Den äußeren Container zwingen, nicht aus dem Bild zu rücken */
    .select2-container.select2-container--open.tribe-dropdown {
        left: 5% !important; /* Fixer Abstand von links */
        width: 90% !important; /* Fast volle Breite */
        max-width: 90vw !important;
    }

    /* 2. Das eigentliche Dropdown-Fenster */
    .select2-container--open .select2-dropdown {
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. Textumbruch erzwingen, damit lange Namen das Feld nicht sprengen */
    .select2-results__option {
        white-space: normal !important;
        word-wrap: break-word !important;
        display: block !important;
    }

    /* 4. Das Suchfeld im Dropdown anpassen */
    .select2-search--dropdown .select2-search__field {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}


@media only screen and (max-width: 767px) {
    /* Zeile als Spalte ausrichten */
    .tribe-section-content tr.saved-linked-post {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        position: relative !important; /* Wichtig für die Positionierung des Icons */
        padding-bottom: 20px !important;
        border-bottom: 1px solid #eee; /* Optional: Trennung der Sektionen */
    }

    /* Zellen untereinander */
    .tribe-section-content tr.saved-linked-post td {
        display: block !important;
        width: 100% !important;
        padding: 5px 0 !important;
        border: none !important;
    }

    /* Das Icon (Viereck) explizit ausblenden */
    .dashicons-screenoptions.move-linked-post-group {
        display: none !important;
    }
}

@media only screen and (max-width: 767px) {
    /* Alle Mülleimer-Icons in den Veranstaltungs-Sektionen komplett ausblenden */
    .tribe-section-content tr.saved-linked-post .tribe-delete-this,
    .tribe-section-content tr.saved-linked-post td .tribe-delete-this,
    .tribe-delete-this {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

}

@media only screen and (max-width: 767px) {
    /* Den "Bearbeiten"-Link ansprechen, wenn er erscheint */
    .edit-linked-post-link a, 
    .tribe-section-content a[href*="/eventort/"],
    .tribe-section-content a[href*="/organizer/"] {
        display: inline-block !important; /* Nutzt inline-block für margins */
        margin-top: 15px !important;      /* Abstand zum Dropdown */
        margin-bottom: 10px !important;
        
        /* Styling nach deinen Vorgaben */
        font-family: 'Poppins', sans-serif;
        color: #A4864A !important;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        
        /* Unterstreichung entfernen */
        text-decoration: none !important; 
    }

    /* Kleiner Hover-Effekt (optional, passend zu deinem Stil) */
    .edit-linked-post-link a:hover {
        color: #bd9e62 !important; /* Dein Hover-Gold */
    }
}

@media only screen and (max-width: 767px) {
    /* Den Container für die Suche auf volle Breite zwingen */
    .select2-search--inline {
        display: block !important;
        width: 100% !important;
        float: none !important;
    }

    /* Das Input-Feld horizontal ausdehnen */
    .select2-search__field {
        width: 100% !important;
        min-width: 100% !important;
        /* Verhindert, dass das Feld durch Inline-Styles gestaucht wird */
        max-width: 100% !important; 
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Falls die Liste der gewählten Tags das Feld einengt */
    .select2-selection__rendered {
        display: block !important;
        width: 100% !important;
    }
}

/*------------------------------------------------------------------*/
/* Die gesamte Sektion für wiederkehrende Veranstaltungen entfernen */

/*------------------------------------------------------------------*/

tr.recurrence-row.tribe-datetime-block {
    display: none !important;
    visibility: hidden !important;
}

/* Sicherheitshalber auch den Button und das Staging-Div entfernen, falls sie außerhalb der TR gerendert werden */
#tribe-recurrence-staging, 
#tribe-add-recurrence, 
.tribe-event-recurrence {
    display: none !important;
}

/* Spezifischere Abfrage für die Helper-Zeile ab Tablet */

    #tribe-community-events tr.event-dynamic-helper,
    #tribe-community-events .event-dynamic-helper,
    tr.tribe-section-content-row.event-dynamic-helper {
        display: none !important;
        height: 0 !important;
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        visibility: collapse !important;
    }


@media only screen and (max-width: 768px) {
    /* 1. Hauptabstand der Sektion nach unten reduzieren */
    .tribe-section.tribe-section-datetime {
        margin-bottom: 5px !important;
        padding-bottom: 0 !important;
    }

    /* 2. Abstände in der Tabelle minimieren */
    .tribe-section-datetime table.tribe-datetime-block {
        margin-bottom: 0 !important;
        border-collapse: collapse !important;
    }

    /* 3. Zellen-Abstände (Paddings) fast eliminieren */
    .tribe-section-datetime .tribe-section-content-row td {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }

    /* 4. Überschrift-Abstand straffen */
    .tribe-section-datetime .tribe-section-header {
        margin-bottom: 5px !important;
    }

    /* 5. Den Lösch-Dialog ohne :has ausblenden */
    #tribe-row-delete-dialog {
        display: none !important;
    }
    
    /* Zielt auf die Tabellenzeile ab, die den Dialog enthält */
    tr:has-id-tribe-row-delete-dialog, /* Dies ist nur ein Platzhalter, wir nutzen die ID direkt */
    div[id="tribe-row-delete-dialog"] {
        display: none !important;
    }

    /* 6. Leere Zeilen nach dem Datum kollabieren lassen */
    .event-dynamic-helper {
        display: none !important;
    }
}


@media only screen and (max-width: 768px) {
    /* Den Button-Container und den Button selbst extrem straffen */
    input[type="submit"]#post.events-community-submit {
        margin-top: 0 !important;      /* Abstand nach oben komplett weg */
        margin-bottom: 0 !important;   /* Abstand nach unten komplett weg */
        display: block !important;
        width: 100% !important;        /* Damit er bündig mit den Feldern oben abschließt */
    }

    /* Falls das umschließende Div noch Padding hat */
    .tribe-events-community-footer, 
    .tribe-community-events-controls {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}



/* Select2 immer als Block */
td .select2 {
  display: block;
}

/* Bearbeiten-Link unter dem Dropdown mit Abstand */
td .edit-linked-post-link {
  display: block;
  margin-top: 10px;
}

/* Dashicons "screenoptions" (Move/Sort Icons) ausblenden */
span.dashicons.dashicons-screenoptions.move-linked-post-group {
    display: none !important;
}

/* Vendor Social */

/* Dokan: Rotes Verhalten für "Einstellungen aktualisieren" entfernen */
.dokan-btn.dokan-btn-danger.dokan-btn-theme {
    background-color: #8f7340 !important;
    border-color: #8f7340 !important;
    color: #ffffff !important;
}

/* Hover / Active / Focus ebenfalls neutralisieren */
.dokan-btn.dokan-btn-danger.dokan-btn-theme:hover,
.dokan-btn.dokan-btn-danger.dokan-btn-theme:focus,
.dokan-btn.dokan-btn-danger.dokan-btn-theme:active {
    background-color: #A4864A !important;
    border-color: #A4864A !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* =========================================
   Pagination im Tribe Events Report
   ========================================= */

#tribe-events-report .tablenav-pages .pagination-links .button,
#tribe-events-report .tablenav-pages .pagination-links a.button,
#tribe-events-report .tablenav-pages .pagination-links .tablenav-pages-navspan.button {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;

    border: 1px solid #b5b5b5 !important;
    box-shadow: none !important;

    color: #595353 !important;

    padding: 8px 14px !important;
    min-width: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Pseudo-Elemente killen (Divi / Tribe Overlays) */
#tribe-events-report .tablenav-pages .pagination-links .button::before,
#tribe-events-report .tablenav-pages .pagination-links .button::after,
#tribe-events-report .tablenav-pages .pagination-links a.button::before,
#tribe-events-report .tablenav-pages .pagination-links a.button::after {
    content: none !important;
    display: none !important;
}

/* Disabled */
#tribe-events-report .tablenav-pages .button.disabled {
    opacity: 0.45;
}

/* Pfeile */
#tribe-events-report .tablenav-pages .button span[aria-hidden="true"] {
    font-size: 20px;
    color: #595353 !important;
}

/* Seiten-Eingabefeld */
#tribe-events-report .tablenav-pages .paging-input .current-page {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;

    border: 1px solid #b5b5b5 !important;
    box-shadow: none !important;

    padding: 8px 10px !important;
    width: 52px;

    color: #595353 !important;
    text-align: center;
    box-sizing: border-box;
}

/* =====================================
   Pagination – Disabled Pfeile angleichen
   ===================================== */

/* Disabled Pfeile (span statt a) */
#tribe-events-report .tablenav-pages .tablenav-pages-navspan.button {
    font-size: 20px !important;
    line-height: 1 !important;
}

/* =====================================
   Pagination – Einheitliche Höhe
   ===================================== */

/* Alle Pagination-Buttons (a + span) */
#tribe-events-report .tablenav-pages .pagination-links .button {
    min-height: 42px;
}

/* Seiten-Eingabefeld exakt gleich hoch */
#tribe-events-report .tablenav-pages .paging-input .current-page {
    min-height: 42px !important;
    height: 42px !important;
    line-height: 42px !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* =====================================
   Pagination: ALLES sauber ausrichten
   ===================================== */

/* Der entscheidende Schritt */
#tribe-events-report .tablenav-pages .pagination-links {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
}

/* Paging-Input ebenfalls Flex */
#tribe-events-report .tablenav-pages .paging-input {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Baseline-Effekte eliminieren */
#tribe-events-report .tablenav-pages *,
#tribe-events-report .tablenav-pages input {
    vertical-align: middle !important;
}

#tribe-events-report .tablenav-pages .paging-input .current-page {
    margin-top: -9px !important;
}

/* =====================================
   Pagination – Mobile Fix für "von X"
   ===================================== */

@media (max-width: 768px) {

    /* Paging-Text kleiner + kein Umbruch */
    #tribe-events-report .tablenav-pages .tablenav-paging-text {
        font-size: 12px;
        line-height: 1;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
    }

    /* Zahl selbst (optional minimal betonen) */
    #tribe-events-report .tablenav-pages .tablenav-paging-text .total-pages {
        font-size: 12px;
    }

    /* Paging-Wrapper bleibt zentriert */
    #tribe-events-report .tablenav-pages .paging-input {
        align-items: center;
    }
}

@media (max-width: 768px) {

    /* "0 Einträge" mobil kleiner */
    #tribe-events-report .tablenav-pages .displaying-num {
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
    }

}

@media (max-width: 768px) {
    #tribe-events-report 
    .tablenav-pages 
    .tablenav-paging-text 
    .total-pages {
        margin-left: 4px;
    }

}

/* =====================================
   Pagination – Seitenzahl Input Font
   ===================================== */

/* Desktop + Mobile: Open Sans Regular */
#tribe-events-report .tablenav-pages .paging-input .current-page {
    font-family: "Open Sans", "Open_Sans_Regular", sans-serif !important;
    font-weight: 400 !important;
}

/* Mobile: Schriftgröße 12px */
@media (max-width: 768px) {
    #tribe-events-report .tablenav-pages .paging-input .current-page {
        font-size: 12px !important;
    }
}

/* =====================================
   Pagination – "1 von 0" FINAL & sauber
   ===================================== */

#tribe-events-report .tablenav-pages .tablenav-paging-text {
    display: inline-flex !important;
    align-items: center !important;
    column-gap: 0.35em;          
    line-height: 1 !important;
    white-space: nowrap;
}

/* Zahl erbt exakt dieselbe Metrik */
#tribe-events-report .tablenav-pages .tablenav-paging-text .total-pages {
    line-height: 1;
}

/* Link: Hover-Farbe + keinen Fokus-/Klick-Rahmen */
a:hover,
a:focus,
a:active {
    color: #ae8e54 !important;
    outline: none !important;
    box-shadow: none !important;
}


/* Select2 Auswahl-Tags (Labels / Kategorien) */
.select2-selection__choice {
    background-color: #f3ecd9 !important; /* helles Gold */
    border: 1px solid #ae8e54 !important; /* dunkleres Gold */
    color: #595353 !important;
}

/* Select2: "Alle löschen" (X) größer & mit Abstand */
.select2-selection__clear {
    font-size: 18px; 
    margin-left: 10px; 
    margin-right: 4px; 

}

@media (max-width: 767px) {

    .select2-selection__choice {
        width: calc(100% - 4px); /* je 2px links + rechts */
        margin-left: 4.5px;
        margin-right: 8px;
    }
}

@media (max-width: 767px) {

    .tribe-dependent.button {
        line-height: 1.3em;
    }
}


/* Primärbuttons mobil: Schriftgröße & Zeilenabstand */
@media (max-width: 767px) {

    a.tribe-add-post.tribe-button {
      font-family: 'Poppins', sans-serif !important; 
			font-weight: 600;
			font-size: 13px !important;
       line-height: 1.3em;
    }
}

/* Grundzustand: feste Border + Box-Model */
.custom-dashboard-button {
    border: 1px solid transparent;
    box-sizing: border-box;
}

/* Fixe Box für den Dashboard-Button */
.custom-dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    padding: 16px 20px !important;
    line-height: 1.2em !important;              
    border: 1px solid transparent !important;
    transition: color 0.15s ease, background-color 0.15s ease;
}

/* Hover / Focus: nur Farbe ändern – KEINE Geometrie */
.custom-dashboard-button:hover,
.custom-dashboard-button:focus,
.custom-dashboard-button:active {
    color: #ffffff !important;
    border-color: transparent !important;
    padding: 16px 22px !important;
    line-height: 1.2em !important;
}

/* Tribe Buttons: Aktuelle & Vergangene Veranstaltungen */
.tribe-button.tribe-upcoming,
.tribe-button.tribe-past {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
}

/* Event-Bild Upload Button (Label): Poppins 600 */
label.choose-file.tribe-button.tribe-button-secondary {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
}

/* Event-Bild Upload Button mobil: Schriftgröße 13px */
@media (max-width: 767px) {
    label.choose-file.tribe-button.tribe-button-secondary {
        font-size: 13px !important;
    }
}

/* Custom Dashboard Button mobil: Schriftgröße 13px */
@media (max-width: 767px) {
    a.custom-dashboard-button {
        font-size: 13px !important;
    }
}

/* Ticket-Form Buttons mobil: 13px + volle Breite */
@media (max-width: 767px) {

    #ticket_form_save,
    #ticket_form_cancel {
        font-size: 13px !important;
        width: 100% !important;
        display: block;
    }

    /* Abstand zwischen den Buttons */
    #ticket_form_cancel {
        margin-top: 8px;
    }
}

.tribe-add-post.tribe-button-secondary {
    font-family: 'Poppins', sans-serif !important;
	font-weight: 600 !important;
}

.recurrence-row.tec-events-pro-recurrence-not-supported {
    display: none !important;
}

#ticket_form_main .price{
    display:block !important;
}


/* Reservierung ausblenden */

#rsvp_form_toggle {
    display: none !important;
}

/* Abstand Vorschau */

.tec-events-virtual-autodetect-video-preview__label {
    margin-top: 24px !important;
}


/* =================================
   Virtuelle Events Toogle Texte
================================= */

.tribe-events-virtual-meetings-source-youtube__content legend {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 6px;
}

.tribe-field-switch-inner-wrap {
    display: block !important;
}

/* YouTube Toggle sauber nebeneinander */
.tribe-events-virtual-meetings-source-youtube__content 
.tribe-field-switch-inner-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px;
}

/* Toggle ganz links */
.tribe-events-virtual-meetings-source-youtube__content 
.tribe-field-wrap {
    order: 1;
    width: auto !important;
    margin: 0 !important;
}

/* Label direkt danach */
.tribe-events-virtual-meetings-source-youtube__content 
legend.tribe-field-label {
    order: 2;
    width: auto !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
}

/* Mobile: kleinere Label-Schrift bei YouTube Toggles */
@media (max-width: 768px) {

    .tribe-events-virtual-meetings-source-youtube__content 
    legend.tribe-field-label {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

}

.column-header-recurring,
.tribe-list-column-recurring {
    display: none !important;
}


/* Menge (Refund Quantity) Feld */
input.refund_order_item_qty {

    font-family: 'Open_Sans_regular', Arial, sans-serif !important;
    font-size: 14px !important;

    height: 36px !important;
    width: 60px !important;

    padding: 4px 6px !important;
    box-sizing: border-box;
	margin-top: 3px;

    line-height: 36px;
    text-align: center;
}

/* Refund Preisfeld */
input.refund_line_total {

    font-family: 'Open_Sans_regular', Arial, sans-serif !important;
    font-size: 14px !important;

    height: 36px !important;
    width: 60px !important;

    padding: 4px 6px !important;
    box-sizing: border-box;

    line-height: 36px;
    text-align: center;
}


.dokan-btn.dokan-btn-default.cancel-action {
    border: 1px solid #8F723D !important;
    background: #ffffff !important;
    color: #8F723D !important;
    transition: background 300ms ease !important;
}

.dokan-btn.dokan-btn-default.cancel-action:hover {
    background: #f2f2f2 !important;
}

/* Veranstalter / Anbieter */

span.tribe-events-meta-label,
span.tribe-events-start-datetime-label.tribe-events-meta-label,
span.tribe-events-end-datetime-label.tribe-events-meta-label,
.tribe-events-event-categories-label.tribe-events-meta-label {

    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    color: #333;
    display: block;

}

.tribe-events-meta-value{
    display:block;
    margin-bottom:8px !important;
}


/* Vorschaubild Mein Event */

#custom-image-preview {
    display: none;
    margin-top: 12px;
}

#custom-image-preview img {
    max-width: 300px;
    max-height: 200px;
    border-radius: 6px;
    border: 1px solid #ddd;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Bild entfernen formatieren */

.tribe-remove-upload a {
    font-family: 'Open_Sans_regular' !important;
    font-size: 14px !important;
}


