/* =============================================================================
   JD-MAIL RESPONSIVE STYLES
   Mobile & Tablet Ansichten
   ============================================================================= */

/* Auto-Text-Inflation auf echten Mobilgeraeten (Chrome/WebKit blaehen Text in
   breiten Block-Containern automatisch auf) unterbinden — sonst ist z.B. der
   Modal-Titel auf dem S22 viel groesser als die gesetzte font-size. Greift nur
   gegen das ungewollte Aufblasen, aendert keine explizit gesetzten Groessen.
   In der DevTools-Emulation unsichtbar (nur auf echten Touch-Geraeten aktiv). */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* =============================================================================
   CSS VARIABLEN (identisch mit styles.css)
   ============================================================================= */
:root {
  --bg: rgba(0, 71, 76, 0.2);
  --bg-green: rgba(0, 71, 76, 1);
  --bg-lightblack: rgba(0, 0, 0, 0.8);

  --main: #00cbb5 !important;
  --main_connect: #00cbb3af !important;

  --white: #fff !important;
  --grey: #2f3742 !important;
  --darkGray: #1F1F1F !important;
  --darkgreen: #004f51 !important;
  --darkblue: #0a0f24 !important;

  --lightred: #eb5543 !important;
  --darkred: #781b10 !important;
  --darkyellow: #dbbc0d !important;

  --border: 3px;

  /* Touch-optimierte Größen */
  --touch-target-min: 44px;
  --spacing-mobile: 0.75rem;
  --spacing-tablet: 1rem;
}

/* =============================================================================
   VISIBILITY KLASSEN - Basis-Definition
   ============================================================================= */

/* Default: Desktop sichtbar, Mobile/Tablet versteckt */
.desktop_view { display: block; }
.tablet_view { display: none; }
.mobile_view { display: none; }

/* Versteck-Klassen */
.hide-mobile { display: block; }
.hide-tablet { display: block; }
.hide-desktop { display: none; }

/* =============================================================================
   BREAKPOINT: MOBILE PORTRAIT (< 576px)
   Smartphones hochkant - iPhone SE, Galaxy S Mini, etc.
   ============================================================================= */
@media (max-width: 575px) {

  /* Visibility */
  .desktop_view { display: none !important; }
  .tablet_view { display: none !important; }
  .mobile_view { display: block !important; }
  .hide-mobile { display: none !important; }
  .hide-desktop { display: block !important; }

  /* Body & HTML — iOS-sicher: Dokument scrollt NICHT, innerer Container scrollt.
     Ohne das bricht position:fixed;bottom:0 auf iOS Safari bei langen Seiten
     (Adressleisten-Collapse verschiebt den Layout-Viewport -> Nav wandert mit). */
  html, body {
    height: 100vh !important;          /* Fallback aelteres iOS */
    height: 100dvh !important;         /* modernes iOS: stabile Viewport-Hoehe */
    min-height: 0 !important;
    overflow: hidden !important;       /* KEIN Dokument-Scroll -> fixed bleibt stabil */
    overflow-x: hidden !important;
    margin: 0 !important;
    font-size: 14px;
  }

  /* Haupt-Container = der EINZIGE Scroll-Bereich */
  .div_light_mobile {
    padding: 0;
    padding-bottom: calc(4rem + env(safe-area-inset-bottom)); /* Bottom-Nav + Home-Indicator */
    height: 100vh;                     /* Fallback */
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* iOS Momentum-Scroll */
    overscroll-behavior: none;         /* kein Pull-to-refresh / Bounce */
    scrollbar-width: none;             /* Scrollbalken ausblenden (Scroll bleibt) */
  }
  .div_light_mobile::-webkit-scrollbar { display: none; }

  /* Fixed Header - AdSpace Auswahl */
  .choose-adspace {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--darkblue);
    border-bottom: 1px solid var(--darkgreen);
    padding: 0.5rem;
  }

  .choose-adspace .form-select {
    font-size: 0.9rem;
    padding: 0.6rem;
  }

  /* Bottom Navigation */
  .navigation-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--darkblue);
    border-top: 1px solid var(--darkgreen);
    z-index: 9999;
    padding: 0.5rem 0;
  }

  .navigation-mobile .col {
    padding: 0.25rem;
  }

  .navigation-mobile .icon_basic {
    font-size: 1.3rem;
    margin: 0;
    padding: 0.5rem;
  }

  .navigation-mobile a,
  .navigation-mobile button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
  }

  /* Datum-Filter auf Mobile */
  .div_light_mobile .input-basic[type="date"] {
    font-size: 0.8rem;
    padding: 0.4rem;
    min-width: 100px;
  }

  .div_light_mobile .btn_add,
  .div_light_mobile .btn_delete {
    width: 36px;
    height: 36px;
  }

  .div_light_mobile .btn_add .icon_basic,
  .div_light_mobile .btn_delete .icon_basic {
    margin: 8px !important;
    font-size: 1rem;
  }

  /* Content-Bereich */
  .mobile-content {
    padding: var(--spacing-mobile);
  }

  /* Formulare */
  .form-control,
  .form-select,
  .input-basic {
    font-size: 16px !important; /* Verhindert Zoom auf iOS */
    padding: 0.75rem !important;
    min-height: var(--touch-target-min);
  }

  /* Buttons Touch-optimiert */
  .btn_main,
  .btn_add,
  .btn_delete,
  .btn_advance {
    min-height: var(--touch-target-min);
    padding: 0.75rem 1rem !important;
  }

  /* Listen-Elemente als Cards */
  .header_list {
    padding: 0.75rem !important;
    margin-bottom: 0.5rem;
    border-radius: var(--border);
  }

  .header_list .row {
    flex-direction: column;
  }

  .header_list .col {
    width: 100%;
    padding: 0.25rem 0;
  }

  /* Modal-Anpassungen werden in styles.css gehandelt */

  /* Statistik-Boxen */
  .box_histroy_count,
  .trans-box {
    min-height: 4rem;
    padding: 0.5rem !important;
    margin-top: 0.5rem;
    background-color: var(--darkblue) !important;
    border: solid 1px var(--darkgreen);
    border-radius: var(--border);
  }

  .box_histroy_count h1,
  .trans-box h1 {
    font-size: 0.85rem !important;
  }

  .box_histroy_count h2 {
    font-size: 1.5rem !important;
  }

  /* Karussell/Slider */
  .newsletter-carusell-row {
    height: 20rem !important;
    margin: 0.5rem;
    background-color: var(--darkblue);
    border-radius: var(--border);
    border: 2px solid var(--darkgreen);
  }

  /* mc_a_row Mobile */
  .mc_a_row {
    top: 3rem;
    left: 0rem;
    padding: 1rem;
    width: 100%;
  }

  /* Accordion */
  .accordion-button {
    padding: 0.75rem !important;
    font-size: 0.9rem;
  }

  /* Tabs */
  .nav-tabs .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  /* Tooltips deaktivieren auf Touch */
  .custom-tooltip {
    display: none !important;
  }

  /* Text-Anpassungen */
  .header-style {
    font-size: 1.25rem !important;
    letter-spacing: 0.2rem;
  }

  h1 { font-size: 1.5rem !important; }
  h2 { font-size: 1.1rem !important; }
  h3 { font-size: 0.95rem !important; }
}

/* =============================================================================
   BREAKPOINT: MOBILE LANDSCAPE (576px - 767px)
   Smartphones quer - iPhone Pro Max, Galaxy S24 Ultra
   ============================================================================= */
@media (min-width: 576px) and (max-width: 767px) {

  /* Visibility */
  .desktop_view { display: none !important; }
  .tablet_view { display: none !important; }
  .mobile_view { display: block !important; }
  .hide-mobile { display: none !important; }
  .hide-desktop { display: block !important; }

  /* Body — iOS-sicher (576-767px): Dokument scrollt NICHT, innerer Container scrollt */
  html, body {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    font-size: 14px;
  }

  /* Haupt-Container = Scroll-Bereich */
  .div_light_mobile {
    padding: 0;
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    scrollbar-width: none;
  }
  .div_light_mobile::-webkit-scrollbar { display: none; }

  /* Fixed Header */
  .choose-adspace {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--darkblue);
    border-bottom: 1px solid var(--darkgreen);
    padding: 0.4rem 1rem;
  }

  /* Bottom Navigation - kompakter im Landscape */
  .navigation-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--darkblue);
    border-top: 1px solid var(--darkgreen);
    z-index: 9999;
    padding: 0.25rem 0;
  }

  .navigation-mobile .icon_basic {
    font-size: 1.2rem;
    margin: 0;
    padding: 0.4rem;
  }

  /* Content mit mehr Platz nutzen */
  .mobile-content {
    padding: var(--spacing-mobile) var(--spacing-tablet);
  }

  /* 2-spaltige Listen im Landscape */
  .header_list .row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .header_list .col {
    flex: 0 0 50%;
    padding: 0.25rem;
  }

  /* Statistik-Boxen */
  .box_histroy_count,
  .trans-box {
    min-height: 5rem;
    background-color: var(--darkblue) !important;
    border: solid 1px var(--darkgreen);
    border-radius: var(--border);
  }

  /* mc_a_row */
  .mc_a_row {
    top: 2.5rem;
    left: 0rem;
    padding: 0.75rem;
    width: 100%;
  }

  /* Karussell */
  .newsletter-carusell-row {
    height: 18rem !important;
    background-color: var(--darkblue);
    border-radius: var(--border);
    border: 2px solid var(--darkgreen);
  }

  /* Formulare */
  .form-control,
  .form-select,
  .input-basic {
    font-size: 16px !important;
    padding: 0.6rem !important;
  }

  /* Buttons */
  .btn_main {
    min-height: 40px;
    padding: 0.6rem 1rem !important;
  }

  /* Tooltips aus */
  .custom-tooltip {
    display: none !important;
  }

  .header-style {
    font-size: 1.3rem !important;
    letter-spacing: 0.25rem;
  }
}

/* =============================================================================
   BREAKPOINT: TABLET PORTRAIT (768px - 991px)
   iPad, Galaxy Tab, Surface Go
   ============================================================================= */
@media (min-width: 768px) and (max-width: 991px) {

  /* Visibility - Tablet zeigt Mobile-View aber mit angepasstem Layout */
  .desktop_view { display: none !important; }
  .tablet_view { display: block !important; }
  .mobile_view { display: block !important; }
  .hide-tablet { display: none !important; }
  .hide-desktop { display: block !important; }

  /* Body — iOS-sicher (768-991px Tablet-Portrait) */
  html, body {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 15px;
  }

  /* Haupt-Container = Scroll-Bereich */
  .div_light_mobile {
    padding: 0;
    padding-bottom: calc(4rem + env(safe-area-inset-bottom));
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    scrollbar-width: none;
  }
  .div_light_mobile::-webkit-scrollbar { display: none; }

  /* Fixed Header - breiter und besser positioniert */
  .choose-adspace {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--darkblue);
    border-bottom: 1px solid var(--darkgreen);
    padding: 0.5rem 2rem;
  }

  .choose-adspace .form-select {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Bottom Navigation - größere Icons */
  .navigation-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--darkblue);
    border-top: 1px solid var(--darkgreen);
    z-index: 9999;
    padding: 0.5rem 2rem;
  }

  .navigation-mobile .icon_basic {
    font-size: 1.5rem;
    margin: 0;
    padding: 0.6rem;
  }

  .navigation-mobile a,
  .navigation-mobile button {
    min-height: 50px;
    min-width: 50px;
  }

  /* Content-Bereich */
  .mobile-content {
    padding: var(--spacing-tablet) 2rem;
  }

  /* Listen 2-3 spaltig */
  .header_list .row {
    flex-direction: row;
  }

  .header_list .col {
    flex: 0 0 33.333%;
    padding: 0.5rem;
  }

  /* Statistik-Boxen Grid */
  .box_histroy_count,
  .trans-box {
    min-height: 6rem;
    background-color: var(--darkblue) !important;
    border: solid 1px var(--darkgreen);
    border-radius: var(--border);
  }

  /* mc_a_row */
  .mc_a_row {
    top: 3rem;
    left: 0rem;
    padding: 1rem;
    width: 100%;
  }

  /* Karussell */
  .newsletter-carusell-row {
    height: 22rem !important;
    background-color: var(--darkblue);
    border-radius: var(--border);
    border: 2px solid var(--darkgreen);
  }

  /* Formulare */
  .form-control,
  .form-select,
  .input-basic {
    font-size: 15px !important;
    padding: 0.7rem !important;
  }

  /* Buttons */
  .btn_main {
    min-height: 46px;
    padding: 0.7rem 1.25rem !important;
  }

  .btn_add,
  .btn_delete {
    width: 46px;
    height: 46px;
  }

  .header-style {
    font-size: 1.5rem !important;
    letter-spacing: 0.35rem;
  }

  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.25rem !important; }
}

/* =============================================================================
   BREAKPOINT: TABLET LANDSCAPE (992px - 1199px)
   iPad Pro, Surface Pro, große Tablets quer
   ============================================================================= */
@media (min-width: 992px) and (max-width: 1199px) {

  /* Visibility - Tablet Landscape kann Desktop-View mit Anpassungen nutzen */
  .desktop_view { display: block !important; }
  .tablet_view { display: block !important; }
  .mobile_view { display: none !important; }
  .hide-tablet { display: none !important; }
  .hide-mobile { display: block !important; }

  /* Body */
  html, body {
    font-size: 15px;
  }

  /* Desktop-Container Anpassungen */
  .div_light_desktop {
    padding: 0 1rem;
  }

  /* Navigation schmaler */
  .navigation {
    width: 22% !important;
  }

  /* Header-Block kompakter */
  #header-block {
    padding: 0.75rem;
  }

  .header-style {
    font-size: 1.5rem !important;
    letter-spacing: 0.4rem;
  }

  /* Header Toolbar - kompakter auf Tablet Landscape */
  .header-toolbar-form {
    gap: 1rem;
  }

  .header-date-input {
    width: 130px;
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }

  .header-icon-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .header-date-btn {
    width: 36px;
    height: 36px;
  }

  /* Listen-Elemente */
  .header_list {
    padding: 0.6rem !important;
  }

  /* Statistik-Boxen */
  .box_histroy_count,
  .trans-box,
  .box_dash {
    min-height: 5rem;
  }

  /* Formulare */
  .form-control,
  .form-select {
    padding: 0.6rem !important;
  }

  /* Buttons etwas größer für Touch */
  .btn_add,
  .btn_delete,
  .btn_nav {
    width: 42px;
    height: 42px;
  }

  .btn_main {
    min-height: 42px;
  }

  /* Datum-Filter */
  .input-basic[type="date"] {
    min-width: 120px;
  }
}

/* =============================================================================
   TOUCH-DEVICE OPTIMIERUNGEN
   Gilt für alle Touch-Geräte unabhängig von Größe
   ============================================================================= */
@media (hover: none) and (pointer: coarse) {

  /* Größere Touch-Targets */
  button,
  .btn_main,
  .btn_add,
  .btn_delete,
  .btn_nav,
  .nav-link,
  .accordion-button {
    min-height: var(--touch-target-min);
  }

  /* Keine Hover-States - direktes Feedback */
  .btn_main:hover,
  .btn_add:hover,
  .btn_delete:hover {
    transform: none;
  }

  /* Active-State statt Hover */
  .btn_main:active,
  .btn_add:active,
  .btn_delete:active {
    opacity: 0.8;
    transform: scale(0.98);
  }

  /* Checkboxen und Radio größer */
  input[type="checkbox"],
  input[type="radio"] {
    width: 20px;
    height: 20px;
  }

  /* Select-Pfeile größer */
  .form-select {
    background-size: 20px 20px;
  }

  /* Scrollbars ganz aus auf Touch (analog Partner) — alle Scroll-Container */
  ::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }
  html, body,
  .mc_a, .mc_a_row,
  .div_light_mobile,
  .mobile_view {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  .mc_a::-webkit-scrollbar,
  .mc_a_row::-webkit-scrollbar,
  .div_light_mobile::-webkit-scrollbar,
  .mobile_view::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Tooltips komplett aus auf Touch */
  .custom-tooltip,
  .custom-tooltip-dash {
    display: none !important;
  }
}

/* =============================================================================
   ORIENTATION-SPEZIFISCH
   ============================================================================= */

/* Portrait-Mode allgemein */
@media (orientation: portrait) {
  .orientation-landscape-only {
    display: none !important;
  }
}

/* Landscape-Mode allgemein */
@media (orientation: landscape) {
  .orientation-portrait-only {
    display: none !important;
  }
}

/* Landscape auf kleinen Geräten */
@media (orientation: landscape) and (max-height: 500px) {
  /* Kompaktere vertikale Abstände im Landscape */
  .div_light_mobile {
    padding-bottom: 3rem;
  }

  .choose-adspace {
    padding: 0.3rem 1rem;
  }

  .navigation-mobile {
    padding: 0.2rem 0;
  }
}

/* =============================================================================
   UTILITY-KLASSEN FÜR RESPONSIVE DESIGN
   ============================================================================= */

/* Flexbox Responsive */
.flex-mobile-column {
  display: flex;
}

@media (max-width: 768px) {
  .flex-mobile-column {
    flex-direction: column;
  }
}

/* Spacing Responsive - Mobile */
@media (max-width: 575px) {
  .p-mobile-0 { padding: 0 !important; }
  .p-mobile-1 { padding: 0.5rem !important; }
  .p-mobile-2 { padding: 1rem !important; }
  .m-mobile-0 { margin: 0 !important; }
  .m-mobile-1 { margin: 0.5rem !important; }
  .m-mobile-2 { margin: 1rem !important; }
  .mt-mobile-1 { margin-top: 0.5rem !important; }
  .mb-mobile-1 { margin-bottom: 0.5rem !important; }
}

/* Spacing Responsive - Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .p-tablet-0 { padding: 0 !important; }
  .p-tablet-1 { padding: 0.75rem !important; }
  .p-tablet-2 { padding: 1.5rem !important; }
  .m-tablet-0 { margin: 0 !important; }
  .m-tablet-1 { margin: 0.75rem !important; }
  .m-tablet-2 { margin: 1.5rem !important; }
}

/* Text Responsive */
@media (max-width: 575px) {
  .text-mobile-center { text-align: center !important; }
  .text-mobile-left { text-align: left !important; }
  .text-mobile-small { font-size: 0.85rem !important; }
}

/* Width Responsive */
@media (max-width: 768px) {
  .w-mobile-100 { width: 100% !important; }
  .w-mobile-50 { width: 50% !important; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .w-tablet-100 { width: 100% !important; }
  .w-tablet-50 { width: 50% !important; }
  .w-tablet-33 { width: 33.333% !important; }
}

/* =============================================================================
   MOBILE-SPEZIFISCHE KOMPONENTEN
   ============================================================================= */

/* Mobile Card-Style für Listen */
.mobile-card {
  background-color: var(--darkblue);
  border: 1px solid var(--darkgreen);
  border-radius: var(--border);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.mobile-card-header {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--main);
}

.mobile-card-body {
  font-size: 0.9rem;
}

.mobile-card-footer {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--darkgreen);
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Mobile Action Bar - über der Navigation */
.mobile-action-bar {
  position: fixed;
  bottom: 4rem;
  left: 0;
  right: 0;
  background-color: var(--darkblue);
  border-top: 1px solid var(--darkgreen);
  padding: 0.5rem 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  z-index: 9998;
}

/* Mobile Search */
.mobile-search {
  position: sticky;
  top: 3.5rem;
  background-color: var(--darkblue);
  padding: 0.5rem;
  z-index: 100;
  border-bottom: 1px solid var(--darkgreen);
}

.mobile-search input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--border);
  border: 1px solid var(--darkgreen);
  background-color: var(--darkblue);
  color: var(--white);
}

/* Swipe-Indikator */
.swipe-indicator {
  width: 40px;
  height: 4px;
  background-color: var(--grey);
  border-radius: 2px;
  margin: 0.5rem auto;
}

/* Pull-to-Refresh Bereich */
.pull-to-refresh {
  height: 0;
  overflow: hidden;
  text-align: center;
  transition: height 0.2s ease;
}

.pull-to-refresh.active {
  height: 50px;
  padding: 1rem;
}

/* =============================================================================
   MOBILE/TABLET MODAL OVERRIDES
   Ergänzt die Modal-Breakpoints aus styles.css
   ============================================================================= */

/* Mobile Modals - Fullscreen */
@media (max-width: 768px) {
  .modal {
    padding: 0 !important;
    z-index: 10000 !important;
  }

  .modal-backdrop {
    z-index: 9999 !important;
  }

  .modal-dialog,
  .modal-dialog.modal-hcenter {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    overflow-y: auto !important;
  }

  .modal-content {
    position: relative !important;
    border-radius: 0 !important;
    border: none !important;
    min-height: 100vh;
    width: 100% !important;
    max-width: 100% !important;
    overflow-y: auto !important;
  }

  .mc_a,
  .mc_a_row {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 5rem 1rem 6rem 1rem !important;
    transform: none !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    min-height: 100vh;
  }

  /* Modal Header zentriert */
  .modal-header-wrapper {
    position: relative;
    z-index: 10;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding-right: 0 !important;
  }

  .modal-header-wrapper h2,
  .modal-header-wrapper .header-style {
    width: 100% !important;
    text-align: center !important;
  }

  /* Border-Span volle Breite */
  .mc_a .border-span,
  .mc_a_row .border-span {
    width: 100%;
  }
  /* Benachrichtigungen: Abstand Strich→Buttons an jd-partner angleichen
     (margin-bottom 14px → 8px, sonst stehen die Buttons zu weit unter dem Strich). */
  #getMessage .border-span {
    margin-bottom: 8px !important;
  }

  /* Formulare im Modal volle Breite */
  .mc_a form,
  .mc_a_row form {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Alle Row und Col Elemente im Modal - NICHT für provider-toggles-row, localpart-container und blacklist-entry */
  .mc_a .row:not(.provider-toggles-row):not(.blacklist-entry-content):not(.blacklist-header-row),
  .mc_a_row .row:not(.provider-toggles-row):not(.blacklist-entry-content):not(.blacklist-header-row) {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-direction: column !important;
  }

  /* Exception: Blacklist Header und Entry Rows bleiben horizontal */
  .mc_a .blacklist-header-row,
  .mc_a_row .blacklist-header-row,
  .mc_a .blacklist-entry-header .row,
  .mc_a_row .blacklist-entry-header .row,
  .mc_a .blacklist-entry-row .row,
  .mc_a_row .blacklist-entry-row .row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0 0.5rem !important;
  }

  /* Blacklist Header Spalten */
  .mc_a .blacklist-header-row > [class*="col-"],
  .mc_a_row .blacklist-header-row > [class*="col-"] {
    padding: 0 !important;
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
  }

  .mc_a .blacklist-header-row > .col-3,
  .mc_a_row .blacklist-header-row > .col-3 {
    flex: 1 !important;
    max-width: none !important;
    width: auto !important;
    text-align: left !important;
  }

  .mc_a .blacklist-header-row > .col-7,
  .mc_a_row .blacklist-header-row > .col-7 {
    flex: 0 0 auto !important;
    max-width: none !important;
    width: auto !important;
  }

  .mc_a .blacklist-header-row > .col-2,
  .mc_a_row .blacklist-header-row > .col-2 {
    flex: 0 0 36px !important;
    max-width: none !important;
    width: 36px !important;
  }

  .mc_a .col:not(.provider-toggle-col):not(.localpart-col):not(.blacklist-entry-value):not(.blacklist-entry-date):not(.blacklist-entry-actions),
  .mc_a_row .col:not(.provider-toggle-col):not(.localpart-col):not(.blacklist-entry-value):not(.blacklist-entry-date):not(.blacklist-entry-actions),
  .mc_a .row:not(.blacklist-header-row):not(.blacklist-entry-content) > [class*="col-"]:not(.provider-toggle-col):not(.localpart-col):not(.blacklist-entry-value):not(.blacklist-entry-date):not(.blacklist-entry-actions),
  .mc_a_row .row:not(.blacklist-header-row):not(.blacklist-entry-content) > [class*="col-"]:not(.provider-toggle-col):not(.localpart-col):not(.blacklist-entry-value):not(.blacklist-entry-date):not(.blacklist-entry-actions) {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Form-Elemente volle Breite */
  .mc_a .form-select,
  .mc_a_row .form-select,
  .mc_a select,
  .mc_a_row select,
  .mc_a .input-basic,
  .mc_a_row .input-basic,
  .mc_a input[type="text"],
  .mc_a_row input[type="text"],
  .mc_a input[type="date"],
  .mc_a_row input[type="date"],
  .mc_a input[type="time"],
  .mc_a_row input[type="time"],
  .mc_a textarea,
  .mc_a_row textarea,
  .mc_a .half-gar,
  .mc_a_row .half-gar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Tooltip Container volle Breite */
  .mc_a .tooltip-container,
  .mc_a_row .tooltip-container {
    width: 100% !important;
  }

  /* Blacklist Modals responsive */
  .mc_a_row .custom-file,
  .mc_a .custom-file {
    position: relative !important;
    top: 0 !important;
    margin-bottom: 0.75rem !important;
  }

  .mc_a_row .btn_main,
  .mc_a .btn_main {
    width: 100% !important;
  }

  .mc_a_row .blacklist-create-form,
  .mc_a_row .blacklist-update-form,
  .mc_a_row .blacklist-upload-form,
  .mc_a .blacklist-create-form,
  .mc_a .blacklist-update-form,
  .mc_a .blacklist-upload-form {
    width: 100% !important;
  }

  /* Blacklist Einträge Liste responsive */
  .mc_a_row .header_list_,
  .mc_a .header_list_ {
    padding: 0.75rem !important;
  }

  .mc_a_row .header_list_ .row,
  .mc_a .header_list_ .row {
    padding: 0 !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .mc_a_row .header_list_ .col-3,
  .mc_a .header_list_ .col-3 {
    flex: 1 !important;
    max-width: none !important;
    font-size: 0.8rem !important;
    word-break: break-all !important;
  }

  .mc_a_row .header_list_ .col-9,
  .mc_a .header_list_ .col-9 {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    font-size: 0.75rem !important;
    padding-right: 2.5rem !important;
  }

  .mc_a_row .header_list_ form.position-absolute,
  .mc_a .header_list_ form.position-absolute {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .mc_a_row .header_list_ form.position-absolute .btn_delete,
  .mc_a .header_list_ form.position-absolute .btn_delete {
    position: static !important;
  }

  /* Blacklist Einträge: Flexbox Layout für Mobile */
  .mc_a_row .header_list_ > .row,
  .mc_a .header_list_ > .row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    padding: 0 0.5rem !important;
    gap: 0.5rem !important;
  }

  /* Blacklist Entry Header auf Mobile ausblenden */
  .mc_a_row .blacklist-entry-header,
  .mc_a .blacklist-entry-header {
    display: none !important;
  }

  /* Blacklist Entry Row - Mobile Layout */
  .mc_a_row .blacklist-entry-row .row,
  .mc_a .blacklist-entry-row .row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    padding: 0 0.5rem !important;
    gap: 0.25rem !important;
  }

  /* Value Spalte - E-Mail/Hash weiter nach rechts */
  .mc_a_row .blacklist-entry-value,
  .mc_a .blacklist-entry-value {
    flex: 1 1 40% !important;
    max-width: 50% !important;
    font-size: 0.75rem !important;
    word-break: break-all !important;
    text-align: left !important;
    padding-left: 1rem !important;
  }

  /* Datum Spalte - Erstellt weiter nach links */
  .mc_a_row .blacklist-entry-date,
  .mc_a .blacklist-entry-date {
    flex: 0 0 auto !important;
    width: auto !important;
    font-size: 0.65rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    white-space: nowrap !important;
    text-align: left !important;
    padding: 0 !important;
    margin-right: auto !important;
  }

  /* Actions Spalte (Mülltonne) - weiter nach rechts */
  .mc_a_row .blacklist-entry-actions,
  .mc_a .blacklist-entry-actions {
    flex: 0 0 auto !important;
    width: 44px !important;
    display: flex !important;
    justify-content: flex-end !important;
    padding-right: 0 !important;
  }

  .mc_a_row .blacklist-delete-form,
  .mc_a .blacklist-delete-form {
    margin: 0 !important;
    width: auto !important;
  }

  /* Mülltonne im Stil des X-Buttons */
  .blacklist-delete-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    background: #0a0f24 !important;
    border: 1px solid #004f51 !important;
    border-radius: 3px !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  .blacklist-delete-btn:hover,
  .blacklist-delete-btn:active {
    border-color: #f44336 !important;
    color: #f44336 !important;
  }

  /* NLWM Container (Newsletter/Werbemittel) - volle Breite */
  .mc_a .nlwm,
  .mc_a_row .nlwm {
    width: 100% !important;
    margin-bottom: 0.75rem !important;
  }

  .mc_a .nlwm .row,
  .mc_a_row .nlwm .row {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
  }

  .mc_a .nlwm .col,
  .mc_a_row .nlwm .col {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  .mc_a .nlwm .form-select,
  .mc_a_row .nlwm .form-select,
  .mc_a .nlwm select,
  .mc_a_row .nlwm select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Einheitliche Abstände zwischen Formular-Elementen */
  .mc_a .row,
  .mc_a_row .row {
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
  }

  .mc_a .row:last-child,
  .mc_a_row .row:last-child {
    margin-bottom: 0 !important;
  }

  /* mt-1 Klasse überschreiben für einheitliche Abstände */
  .mc_a .row.mt-1,
  .mc_a_row .row.mt-1 {
    margin-top: 0 !important;
  }

  /* Localpart Container - HOHE SPEZIFITÄT */
  /* Äußere Row die den Localpart-Container enthält */
  .mc_a .row:has(.localpart-container),
  .mc_a_row .row:has(.localpart-container) {
    width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .mc_a .localpart-container,
  .mc_a_row .localpart-container,
  .modal-content .localpart-container,
  div.localpart-container {
    width: 100% !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }

  .mc_a .localpart-container .col,
  .mc_a_row .localpart-container .col,
  .modal-content .localpart-container .col,
  div.localpart-container div.col,
  .localpart-container .col.position-relative,
  /* Sendzeit-Reihe (Datum/Zeit/Plus) im setSendouts-Modal: .send-form-mobile ist
     flex column mit align-items:center — die .row-Felder haben width:100% (volle
     Breite), der .sendtime-container aber width:auto → schmaler + zentriert.
     Auf volle Breite zwingen (wie Header/Footer drueber). */
  .send-form-mobile .sendtime-container,
  .send-form-mobile .sendtime-row {
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
  }

  /* WM-Test-Switcher im Versenden-Modal sitzt absolut oben RECHTS
     (top:1.6rem; right:2rem) und kollidiert mobil mit dem Close-Button (×).
     Mobil nach LINKS verschieben.
     Achtung: Container liegt in FORM.send-form-mobile, NICHT direkt in
     .modal-content — daher Nachkommen-Selektor (kein direktes Kind `>`). */
  [id^="setSendouts"] .position-absolute:has(input[name="wm_test"]) {
    right: auto !important;
    left: 1.5rem !important;
    top: 1.6rem !important;
  }

  /* Testmail-Modal: die zwei Toggles (Remote + Spamtest) sitzen absolut oben
     RECHTS (top:1.6rem; right:2rem). Ein reines Verschieben nach links
     (frueherer Versuch) kollidierte stattdessen mit dem zentrierten Titel
     "TESTMAIL VERSENDEN" — auf schmalen Screens ist dort so oder so kein
     Platz fuer eine dritte Zone neben Titel + Close-Button. Stattdessen aus
     dem absoluten Kontext raus in den normalen Fluss (eigene Zeile direkt
     unter dem Header, zentriert nebeneinander) -> ueberlappt nichts mehr,
     unabhaengig von Titel-/Label-Laenge. */
  [id^="sendTestmail"] .position-absolute:has(input[name="remote_only"]),
  [id^="sendTestmail"] .position-absolute:has(input[name="spamtest"]) {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    gap: 2rem !important;
    margin: 0 0 1rem !important;
  }

  /* Header-Trennstrich (.border-span) kollabiert im flex-column-Modal auf
     height:0 (gleicher Gotcha wie bei getNewsletterData etc.) — Remote-
     Sub-Modals (Versenden/Testmail) standen nicht in der grossen ID-Liste
     weiter unten, da sie ueber die eigene _modal_lazy_remote.tpl-Zentrierung
     laufen, nicht ueber das generische Mobile-Modal-Pattern. */
  [id^="setSendouts"] .border-span,
  [id^="sendTestmail"] .border-span {
    flex-shrink: 0 !important;
    min-height: 2px !important;
  }

  /* =========================================================
     Spamtest-Auswertung mobil — die 3-Spalten-Tabelle
     (Score | Name | Beschreibung mit festen flex-Werten) ist auf
     schmalen Viewports unlesbar (zentrierte Treppen-Umbrueche).
     Mobil wird daraus pro Regel eine kompakte Karte: Score-Badge +
     Name fett oben, Beschreibung links darunter.
     Greift fuer beide Render-Pfade (Testmail-Modal #spamresult-* und
     Bearbeiten-Tab #spamtest-tab-result-*), rein per CSS — die drei
     HTML-Generatoren (2x JS, 1x Smarty) bleiben unangetastet. */

  /* Score/Bewertung-Legende: nicht mehr inline-flex nebeneinander
     quetschen, sondern umbrechen lassen */
  [id^="spamresult-"] [style*="inline-flex"][style*="gap:1.5rem"],
  [id^="spamtest-tab-result-"] [style*="inline-flex"][style*="gap:1.5rem"] {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem 1rem !important;
  }

  /* Tabellen-Kopfzeile (Score | Name | Beschreibung) ausblenden —
     im Karten-Layout ueberfluessig */
  [id^="spamresult-"] .request-header,
  [id^="spamtest-tab-result-"] .request-header {
    display: none !important;
  }

  /* Jede Regel-Zeile: aus der Flex-Row eine Karte machen */
  [id^="spamresult-"] .accordion-item > div[style*="display:flex"],
  [id^="spamtest-tab-result-"] .accordion-item > div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.25rem !important;
    padding: 0.85rem 0.9rem !important;
  }

  /* 1. Kind = Score-Badge: kompakt, linksbuendig, farbiger Pill statt
     4rem breite zentrierte Spalte */
  [id^="spamresult-"] .accordion-item > div[style*="display:flex"] > div:nth-child(1),
  [id^="spamtest-tab-result-"] .accordion-item > div[style*="display:flex"] > div:nth-child(1) {
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    text-align: left !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: var(--border) !important;
    padding: 0.1rem 0.5rem !important;
    min-width: 0 !important;
  }

  /* 2. Kind = Name: linksbuendig, fett, volle Breite */
  [id^="spamresult-"] .accordion-item > div[style*="display:flex"] > div:nth-child(2),
  [id^="spamtest-tab-result-"] .accordion-item > div[style*="display:flex"] > div:nth-child(2) {
    flex: 1 1 auto !important;
    text-align: left !important;
    font-weight: 600 !important;
    word-break: break-word !important;
  }

  /* 3. Kind = Beschreibung (+ optionaler Fix-Hinweis): linksbuendig */
  [id^="spamresult-"] .accordion-item > div[style*="display:flex"] > div:nth-child(3),
  [id^="spamtest-tab-result-"] .accordion-item > div[style*="display:flex"] > div:nth-child(3) {
    flex: 1 1 auto !important;
    text-align: left !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }
  [id^="spamresult-"] .accordion-item > div[style*="display:flex"] > div:nth-child(3) > div,
  [id^="spamtest-tab-result-"] .accordion-item > div[style*="display:flex"] > div:nth-child(3) > div {
    text-align: left !important;
  }

  .mc_a .localpart-container .col[style],
  .mc_a_row .localpart-container .col[style] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    /* Abstand zwischen den (auch dynamisch hinzugefuegten) Localpart-Zeilen.
       War faelschlich 0 -> die per JS geklonten Zeilen klebten aneinander.
       Das inline `margin-bottom:1rem` der cols wird von dieser hoeher-
       spezifischen [style]-Regel geschlagen, daher hier den Abstand setzen. */
    margin-bottom: 0.75rem !important;
    padding: 0 !important;
    position: relative !important;
  }
  .mc_a .localpart-container .col[style]:last-child,
  .mc_a_row .localpart-container .col[style]:last-child {
    margin-bottom: 0 !important;
  }

  .mc_a .localpart-container .col input.input-basic,
  .mc_a_row .localpart-container .col input.input-basic,
  .mc_a .localpart-container .col input[type="text"],
  .mc_a_row .localpart-container .col input[type="text"],
  .modal-content .localpart-container .col input.input-basic,
  .mc_a_row .send-form-mobile .localpart-container input.input-basic,
  div.localpart-container div.col input.input-basic,
  .localpart-container input[name="localpart[]"] {
    flex: 1 1 auto !important;
    width: calc(100% - 48px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 48px) !important;
    box-sizing: border-box !important;
  }

  .mc_a .localpart-container .btn_localpart_add,
  .mc_a_row .localpart-container .btn_localpart_add,
  .mc_a .localpart-container .btn_localpart_delete,
  .mc_a_row .localpart-container .btn_localpart_delete,
  .modal-content .localpart-container .btn_add,
  .modal-content .localpart-container .btn_delete,
  .localpart-container .btn_localpart_add,
  .localpart-container .btn_localpart_delete,
  .localpart-container .btn_add {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  /* Provider Toggles Row - 2 Spalten Grid - HOHE SPEZIFITÄT */
  .mc_a .row.provider-toggles-row,
  .mc_a_row .row.provider-toggles-row,
  .mc_a_row .send-form-mobile .row.provider-toggles-row,
  .modal-content .row.provider-toggles-row,
  div.row.provider-toggles-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    width: 100% !important;
  }

  .mc_a .provider-toggles-row .col.provider-toggle-col,
  .mc_a_row .provider-toggles-row .col.provider-toggle-col,
  .modal-content .provider-toggles-row .col.provider-toggle-col,
  div.provider-toggles-row div.col.provider-toggle-col,
  .row.provider-toggles-row .col.provider-toggle-col {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  .mc_a .provider-label,
  .mc_a_row .provider-label {
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Header Zentrierung verstärken */
  .mc_a .modal-header-wrapper,
  .mc_a_row .modal-header-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .mc_a .modal-header-wrapper h2,
  .mc_a_row .modal-header-wrapper h2,
  .mc_a .modal-header-wrapper .header-style,
  .mc_a_row .modal-header-wrapper .header-style {
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Header-Style auf Mobile: kleinere Schrift und weniger letter-spacing */
  .header-style {
    font-size: 1.25rem !important;
    letter-spacing: 0.15rem !important;
  }

  /* Header/Footer Selects nebeneinander auf Mobile vertikal stapeln */
  /* Ausnahmen: provider-toggles-row, dynamic-localpart-row (Multi-Select) */
  .mc_a form > .row:not(.provider-toggles-row):not([class*="dynamic-localpart-row"]),
  .mc_a_row form > .row:not(.provider-toggles-row):not([class*="dynamic-localpart-row"]) {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .mc_a form > .row > .col,
  .mc_a_row form > .row > .col {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Alle mt-1 Klassen auf einheitlichen Abstand setzen */
  .mc_a .mt-1,
  .mc_a_row .mt-1 {
    margin-top: 0 !important;
  }

  /* Tab-Row mit einheitlichem Abstand nach oben */
  .mc_a .row:has(.nav-tabs),
  .mc_a_row .row:has(.nav-tabs) {
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
  }

  /* Tab-Content: Erstes Element mit Abstand nach oben */
  .mc_a .tab-pane > .row:first-child,
  .mc_a_row .tab-pane > .row:first-child,
  .mc_a .tab-pane > select:first-child,
  .mc_a_row .tab-pane > select:first-child {
    margin-top: 0.75rem !important;
  }

  /* Tab-Content kein extra margin-bottom */
  .mc_a .tab-content,
  .mc_a_row .tab-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Tab-Cols untereinander auf Mobile - nav-tabs-spacing überschreiben */
  .mc_a .row > .col > .nav-tabs,
  .mc_a_row .row > .col > .nav-tabs,
  .mc_a .nav-tabs,
  .mc_a_row .nav-tabs,
  .mc_a .nav-tabs-spacing,
  .mc_a_row .nav-tabs-spacing,
  .mc_a ul.nav-tabs-spacing,
  .mc_a_row ul.nav-tabs-spacing,
  .nav-tabs-spacing {
    margin-top: 0 !important;
  }

  /* Zweite Tab-Col (Segment) braucht Abstand nach oben */
  .mc_a .row > .col:not(:first-child) > .nav-tabs,
  .mc_a_row .row > .col:not(:first-child) > .nav-tabs,
  .mc_a .row > .col:not(:first-child) > .nav-tabs-spacing,
  .mc_a_row .row > .col:not(:first-child) > .nav-tabs-spacing,
  .mc_a .row > .col:not(:first-child) > ul.nav-tabs-spacing,
  .mc_a_row .row > .col:not(:first-child) > ul.nav-tabs-spacing {
    margin-top: 0.75rem !important;
  }

  /* Submit Button Abstand */
  .mc_a .btn_main,
  .mc_a_row .btn_main {
    margin-top: 0.75rem !important;
  }

  /* Error Messages kein extra Abstand */
  .mc_a .error-message,
  .mc_a_row .error-message {
    margin-top: 0.25rem !important;
    margin-bottom: 0 !important;
  }

  /* Checkbox/Toggle Wrapper */
  .mc_a .checkbox-wrapper-8,
  .mc_a_row .checkbox-wrapper-8 {
    margin-bottom: 0.75rem !important;
  }

  /* Triggermail: Tage-Auswahl - Von/Bis in einer Reihe */
  .mc_a .days-range-row,
  .mc_a_row .days-range-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .mc_a .day-select-col,
  .mc_a_row .day-select-col {
    flex: 1 !important;
    width: auto !important;
    max-width: 50% !important;
    padding: 0 !important;
  }

  .day-select-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
  }

  .day-label {
    display: block !important;
    font-size: 0.7rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05rem !important;
  }

  .mc_a .day-select-wrapper .form-select,
  .mc_a_row .day-select-wrapper .form-select {
    width: 100% !important;
    padding: 0.6rem 0.5rem !important;
    font-size: 0.85rem !important;
  }

  /* Triggermail: Localpart Input + Button in einer Reihe */
  .mc_a .localpart-input-row,
  .mc_a_row .localpart-input-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
  }

  .mc_a .localpart-input-row input.input-basic,
  .mc_a_row .localpart-input-row input.input-basic {
    flex: 1 !important;
    width: auto !important;
    max-width: calc(100% - 48px) !important;
  }

  .mc_a .localpart-input-row .btn_add,
  .mc_a_row .localpart-input-row .btn_add,
  .mc_a .localpart-input-row .btn_delete,
  .mc_a_row .localpart-input-row .btn_delete {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .mc_a .localpart-input-row .btn_add i,
  .mc_a_row .localpart-input-row .btn_add i,
  .mc_a .localpart-input-row .btn_delete i,
  .mc_a_row .localpart-input-row .btn_delete i {
    margin: 0 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* Triggermail: Bedingungen Mobile - für alle inputGroup Varianten */
  .mc_a [class*="inputGroupTriggermail-"],
  .mc_a_row [class*="inputGroupTriggermail-"],
  .mc_a [class*="inputGroupTrigger-"],
  .mc_a_row [class*="inputGroupTrigger-"] {
    margin-bottom: 0.75rem !important;
    padding: 0.75rem !important;
    background: rgba(0, 79, 81, 0.2) !important;
    border: 1px solid #004f51 !important;
    border-radius: 3px !important;
  }

  .mc_a [class*="inputGroupTriggermail-"] .row,
  .mc_a_row [class*="inputGroupTriggermail-"] .row,
  .mc_a [class*="inputGroupTrigger-"] .row,
  .mc_a_row [class*="inputGroupTrigger-"] .row {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .mc_a [class*="inputGroupTriggermail-"] .col,
  .mc_a_row [class*="inputGroupTriggermail-"] .col,
  .mc_a [class*="inputGroupTrigger-"] .col,
  .mc_a_row [class*="inputGroupTrigger-"] .col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .mc_a [class*="inputGroupTriggermail-"] .position-absolute,
  .mc_a_row [class*="inputGroupTriggermail-"] .position-absolute,
  .mc_a [class*="inputGroupTrigger-"] .position-absolute,
  .mc_a_row [class*="inputGroupTrigger-"] .position-absolute {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin-top: 0.5rem !important;
    display: flex !important;
    justify-content: flex-end !important;
  }

  /* Bedingungen Container */
  .mc_a [id*="inputContainerTrigger"],
  .mc_a_row [id*="inputContainerTrigger"] {
    margin-top: 0.75rem !important;
  }

  /* Remove-Button in Bedingungen-Gruppe - zentriert */
  .mc_a .condition-remove-wrapper,
  .mc_a_row .condition-remove-wrapper {
    display: flex !important;
    justify-content: center !important;
    margin-top: 0.75rem !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
  }

  .mc_a .condition-remove-wrapper .btn_delete,
  .mc_a_row .condition-remove-wrapper .btn_delete {
    width: 40px !important;
    height: 40px !important;
  }

  .mc_a .condition-remove-wrapper .btn_delete i,
  .mc_a_row .condition-remove-wrapper .btn_delete i {
    margin: 0 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* =============================================================================
     TRIGGERMAIL UPDATE MODAL - RESPONSIVE TABS
     ============================================================================= */

  /* Triggermail Tabs - Übersicht/Details */
  /* 🛑 Die frueheren .triggermail-tabs-Overrides sind ENTFERNT.
     Sie bauten ein EIGENES Tab-Design, das es sonst nirgends im Projekt gibt:
     aktiver Tab = tuerkiser TEXT + Unterstreichung, inaktive 60% blass,
     background: transparent — und dieses transparent ueberschrieb ausgerechnet den
     Projekt-Standard `.nav-link.active { background-color: var(--main) }` (styles.css:1253),
     der den aktiven Tab TUERKIS FUELLT.
     Ergebnis: mobil sahen die Triggermail-Tabs voellig anders aus als in jedem anderen
     Modal (Profil, Kampagne, Versendung, Segment ...) — und anders als dieselben Tabs
     auf dem DESKTOP, denn .triggermail-tabs existiert nur im Mobile-CSS.
     Ohne die Overrides greift das Standard-.nav-tabs-Styling. Kein Ersatz noetig. */

  /* Abstand zwischen Tab-Leiste und Inhalt (das Einzige, was die Sonderlocke sinnvoll setzte) */
  .mc_a .triggermail-tabs + .tab-content,
  .mc_a_row .triggermail-tabs + .tab-content {
    padding: 0 !important;
    margin-top: 0.75rem !important;
  }

  /* Übersicht Tab - Statistik-Boxen: KPI-Card-Stil + Grid liegen jetzt im
     dedizierten @media (max-width: 991px)-Block am Dateiende, damit sie den
     GESAMTEN Mobilbereich (<992px) abdecken — nicht nur <=768px.
     Sonst bleibt im Tablet-Portrait-Bereich (769-991px) der Desktop-Border
     stehen und die Werte wirken unzentriert. */

  /* Gender-Row im Details Tab - horizontal */
  .mc_a .gender-row,
  .mc_a_row .gender-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  /* Die Zeile enthaelt seit 13.07. DREI Selects (Geschlecht + Status + Sendeoption).
     Auf dem Desktop stehen sie nebeneinander; mobil waeren das je ~105 px — die
     laengste Option ("Nicht geoeffnet") wuerde abgeschnitten. Deshalb hier volle
     Breite: die drei Selects stapeln sich untereinander.
     Vorher stand hier width:auto — das war fuer den EINEN schmalen Geschlechts-Select
     gedacht, als er allein in der Zeile stand. */
  .mc_a .gender-row .col,
  .mc_a_row .gender-row .col {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  /* 🛑 Beschriftung: Die Felder des Triggermail-Modals tragen ihren Namen NUR im
     .custom-tooltip — einem Hover-Tooltip (position:absolute, opacity:0, per :hover
     eingeblendet), der mobil global ausgeblendet wird. Auf dem Handy gibt es kein
     Hover: dort standen unbeschriftete Dropdowns ("Alle / Alle / Alle") untereinander,
     ohne dass man erkennen konnte, welches welches ist.
     Deshalb wird der Tooltip-Text mobil zum sichtbaren Label UEBER dem Feld.
     Der Tooltip steht im DOM NACH dem <select> -> column-reverse zieht ihn nach oben.

     Gilt fuer ALLE .tooltip-container im Triggermail-Modal — geprueft: sie enthalten
     ausnahmslos Formfelder (Localparts, Geschlecht, Status, Sendeoption), keine Buttons.
     Ein Button mit Tooltip wuerde hier faelschlich ein Label unter sich bekommen. */
  .mc_a .gender-row .tooltip-container,
  .mc_a_row .gender-row .tooltip-container,
  [id^="getTriggermailData"] .tooltip-container,
  [id^="setTriggermail"] .tooltip-container {
    display: flex !important;
    flex-direction: column-reverse !important;
  }

  .mc_a .gender-row .custom-tooltip,
  .mc_a_row .gender-row .custom-tooltip,
  [id^="getTriggermailData"] .tooltip-container .custom-tooltip,
  [id^="setTriggermail"] .tooltip-container .custom-tooltip {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    background: none !important;
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.72rem !important;
    padding: 0 0 0.2rem 0.15rem !important;
    border-radius: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    transition: none !important;
    z-index: auto !important;
  }

  /* Localpart Container für Triggermail Edit */
  .mc_a [class*="localpart-container-trigger-edit"],
  .mc_a_row [class*="localpart-container-trigger-edit"] {
    width: 100% !important;
    padding: 0 !important;
  }

  /* Custom Localpart Row für Triggermail Edit */
  .mc_a [class*="custom-localpart-row-trigger-edit"],
  .mc_a_row [class*="custom-localpart-row-trigger-edit"] {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Tablet Modals */
@media (min-width: 768px) and (max-width: 991px) {
  .modal-dialog {
    margin: 1rem auto;
    max-width: 90vw;
  }
}

/* =============================================================================
   DESKTOP-ONLY STYLES
   ============================================================================= */

/* Nav-Tabs Desktop Spacing - nur auf Desktop */
@media (min-width: 769px) {
  .nav-tabs-spacing {
    margin-top: 1rem;
  }
}

/* =============================================================================
   MOBILE NOTIFICATION - zentriert
   ============================================================================= */
@media (max-width: 768px) {
  #notification-container {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .notification {
    text-align: center;
  }
}

/* =============================================================================
   SAFARI / WEBKIT FIXES - Alle Plattformen
   Nur -webkit- Präfixe, keine Überschreibung von Bootstrap
   ============================================================================= */

/* Safari: Smooth Scrolling */
.modal-body {
  -webkit-overflow-scrolling: touch;
}

/* Safari: Form-Elemente Rendering */
.form-control,
.form-select {
  -webkit-appearance: none;
}

/* Safari: Flexbox-Präfixe - mit Standard-Fallback für alle Browser */
.d-flex {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}

/* Mobile: Fullscreen Modals */
@media (max-width: 768px) {
  .modal-dialog,
  .modal-dialog.modal-hcenter {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    -webkit-transform: none !important;
    transform: none !important;
  }

  .modal-content {
    height: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
  }
}

/* ========================================
   REMOTE-EDITOR PAGE-LAYOUT (analog getGuest)
   Sidetext-Spalte links + Modal-Box rechts
   ======================================== */
.remote-page-layout {
    position: relative !important;
    z-index: 2000 !important;
}

.remote-modal .mc_a {
    left: 0 !important;
    width: 100% !important;
    transform: none !important;
}

/* >= 1200px: Zwei-Spalten — Sidetext 25%, Modal 75% */
@media (min-width: 1200px) {
    .remote-page-layout {
        display: flex;
        align-items: flex-start;
        min-height: 100vh;
    }
    .remote-sidetext-col {
        width: 25%;
        flex-shrink: 0;
        padding: 2rem 1rem;
    }
    .remote-sidetext-col .remote-sidetext {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        max-width: none !important;
    }
    .remote-modal-col {
        width: 75%;
        position: relative;
    }
    .remote-modal-col .remote-modal {
        position: relative !important;
        display: block !important;
    }
    .remote-modal-col .remote-modal .mc_a {
        left: 0 !important;
        width: 100% !important;
    }
    .remote-modal-col .remote-modal .modal-dialog {
        max-width: calc(100% - 2rem);
        width: calc(100% - 2rem);
        margin: 1.75rem 1rem;
    }
}

/* 992–1199px: Sidetext aus, Modal 100% */
@media (min-width: 992px) and (max-width: 1199px) {
    .remote-sidetext-col { display: none; }
    .remote-modal-col { width: 100% !important; }
    .remote-modal {
        position: relative !important;
        display: block !important;
        width: 100%;
    }
    .remote-modal .mc_a { left: 0 !important; width: 100% !important; }
    .remote-modal .modal-dialog { max-width: 100%; width: 100%; margin: 1rem; }
}

/* < 992px: Sidetext aus, Modal fullwidth */
@media (max-width: 991px) {
    .remote-sidetext-col { display: none; }
    .remote-modal {
        position: relative !important;
        display: block !important;
        width: 100%;
    }
    .remote-modal .mc_a { left: 0 !important; width: 100% !important; }
    .remote-modal .modal-dialog { max-width: 100%; width: 100%; margin: 0; }
}

/* =============================================================================
   4.1 LOGIN MOBILE (m-login-*) — eingefuehrt 2026-05-20
   Strikt getrennt vom Desktop-Login. Eigenes Markup im mobile_content-Block,
   eigene Klassen. Doku: [[UI Mobile#🟡 Login-Seite]]
   ============================================================================= */
@media (max-width: 991px) {

  /* Vollbild-Container, vertikal zentriert, ohne top:Xrem-Hacks */
  .m-login-screen {
    min-height: 100dvh;
    min-height: 100vh; /* Fallback fuer alte iOS */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
  }

  /* Logo-Block */
  .m-login-logo {
    width: 100%;
    max-width: 22rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
  }
  .m-login-logo img {
    width: 60%;
    max-width: 12rem;
    height: auto;
    display: block;
  }

  /* Form-Container */
  .m-login-form {
    width: 100%;
    max-width: 22rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  /* Remember-Me-Zeile */
  .m-remember {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    user-select: none;
  }
  .m-remember-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
  }

  /* Animierte Checkbox (Reuse Pattern aus Desktop, mobil-tauglich) */
  .m-checkbox {
    position: relative;
    width: 26px;
    height: 26px;
    display: inline-flex;
    flex-shrink: 0;
  }
  .m-checkbox input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
  }
  .m-checkbox svg {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.04);
    box-sizing: border-box;
    transition: all 0.18s ease;
  }
  .m-checkbox svg path {
    fill: none;
    stroke: #fff;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.25s ease;
  }
  .m-checkbox input:checked + svg {
    border-color: var(--main);
    background: var(--main);
  }
  .m-checkbox input:checked + svg path {
    stroke-dashoffset: 0;
  }

  /* Inputs: input-basic-Look (analog Dashboard-Header-Selector)
     var(--darkblue) Background, transparent Border, box-shadow inset+drop
     !important noetig, weil globales .input-basic in styles.css mit !important arbeitet */
  .m-input {
    width: 100% !important;
    height: 48px !important;
    padding: 0 1rem !important;
    font-size: 16px !important;
    color: var(--white) !important;
    background-color: var(--darkblue) !important;
    border: 1px solid transparent !important;
    border-radius: var(--border) !important;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
                rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
                rgba(0, 0, 0, 0.2) 0px -3px 0px inset !important;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease;
  }
  .m-input:focus {
    outline: none;
    border-color: var(--main) !important;
  }
  .m-input::placeholder {
    color: var(--white);
    opacity: 1;
  }

  /* Buttons (Primary, Secondary, Link) — 48px Hoehe, voll-breit, untereinander, kein Border */
  .m-btn {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    border-radius: var(--border);
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .m-btn:active { transform: scale(0.98); }

  .m-btn-primary {
    background: var(--main);
  }
  .m-btn-primary:hover { background: var(--main); }

  .m-btn-secondary {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    color: var(--white);
  }
  .m-btn-secondary:hover {
    background: var(--darkblue);
  }

  .m-btn-link {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .m-btn-link:hover { color: var(--main); }

  /* Loading-Overlay Mobile (kleiner als Desktop) */
  .m-login-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .m-login-overlay.is-active { display: flex; }
  .m-login-overlay-inner {
    text-align: center;
    color: #fff;
  }
  .m-login-overlay img {
    width: 120px;
    height: auto;
    animation: bounce 1.875s ease-in-out infinite;
    margin-bottom: 24px;
  }
  .m-login-overlay h3 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
  }
  .m-login-overlay-progress {
    width: 160px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin: 0.75rem auto 0;
  }
  .m-login-overlay-progress > div {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--main), transparent);
    animation: loading 2.5s ease-in-out infinite;
    border-radius: 2px;
  }
}

/* =============================================================================
   4.2 DASHBOARD MOBILE (m-dash-*) — eingefuehrt 2026-05-20
   Eigenes Mobile-Body-Markup statt geteilter dash-*-Klassen.
   Doku: [[UI Mobile#🟡 Dashboard]]
   ============================================================================= */
@media (max-width: 991px) {

  .m-dash {
    padding: 0.75rem;
    padding-bottom: 6rem; /* Platz fuer Bottom-Nav */
  }

  /* Sektion — gleicher Abstand zwischen Sections wie zwischen Cards in einem Grid (0.6rem) */
  .m-dash-section {
    margin-bottom: 0.6rem;
  }
  .m-dash-section:last-child {
    margin-bottom: 0;
  }

  .m-dash-section-title {
    /* !important noetig — globales h2 in styles.css setzt margin-bottom: 0 !important
       Margins kompakt damit zwischen Sections gleicher Abstand wie zwischen Cards (0.6rem) */
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0.6rem !important;
    margin-left: 0.15rem !important;
    font-size: 0.8rem !important;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .m-dash-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.5rem;
    border-radius: 1rem;
    background: var(--main);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
  }

  /* KPI Grid */
  .m-dash-kpi-grid {
    display: grid;
    gap: 0.6rem;
  }
  .m-dash-kpi-grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  /* KPI Card — analog Desktop (.dash-kpi-card):
     Label oben + Wert mitte, alles zentriert
     Markup ist <icon, value, label> → column-reverse zeigt Label zuerst (oben), Value danach
     CI-konform: var(--darkblue) 75% transparent, KEIN Border, KEIN Shadow */
  .m-dash-kpi-card {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    padding: 0.75rem 0.75rem;
    box-shadow: none;
    display: flex;
    flex-direction: column-reverse;   /* Label oben, Value mitte/unten */
    align-items: center;               /* horizontal zentriert */
    justify-content: center;           /* vertikal zentriert */
    text-align: center;
    min-height: 4.2rem;
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s ease;
  }
  .m-dash-kpi-card:hover {
    background: var(--darkblue);
  }
  /* compact-Klasse bleibt aus Markup-Gruenden, ist aber jetzt identisch zur normalen Card */
  .m-dash-kpi-card-compact {
    min-height: 4.2rem;
    padding: 0.75rem 0.75rem;
  }
  .m-dash-kpi-card-wide {
    grid-column: span 2;
  }

  /* KPI-Icons komplett ausgeblendet — User-Feedback 2026-05-20 */
  .m-dash-kpi-icon {
    display: none !important;
  }

  .m-dash-kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
    margin-top: 0.4rem; /* Abstand zum Label oben (column-reverse: Label "vor" Value) */
  }
  .m-dash-kpi-unit {
    font-size: 0.75em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.1rem;
  }

  .m-dash-kpi-label {
    font-size: 0.78rem;
    color: var(--white); /* analog Desktop: Label weiss, nicht hellgrau */
    margin: 0;
  }

  /* Top 3 */
  .m-dash-top3 {
    background: color-mix(in srgb, var(--darkblue) 88%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border);
    overflow: hidden;
  }
  .m-dash-top3-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .m-dash-top3-row:last-child {
    border-bottom: none;
  }
  .m-dash-top3-rank {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
  }
  .m-dash-top3-info {
    flex: 1;
    min-width: 0;
  }
  .m-dash-top3-name {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-dash-top3-meta {
    margin-top: 0.25rem;
    display: flex;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
  }
  .m-dash-top3-meta i {
    margin-right: 0.3rem;
    color: rgba(255, 255, 255, 0.4);
  }

  /* Generische Listen (Freigaben / Anfragen) */
  .m-dash-list {
    background: color-mix(in srgb, var(--darkblue) 88%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border);
    overflow: hidden;
  }
  .m-dash-list-item {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .m-dash-list-item:last-child {
    border-bottom: none;
  }
  .m-dash-list-item-title {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
  }
  .m-dash-list-item-meta {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
  }

  /* Empty-State (CI-konform: weiss, NICHT grau — [[UI Listen-Patterns]]) */
  .m-dash-empty {
    padding: 1.25rem 1rem;
    text-align: center;
    color: var(--white);
    font-size: 0.85rem;
    background: color-mix(in srgb, var(--darkblue) 88%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border);
  }

  /* Chart-Karte — CI-konform analog KPI-Cards (75% transparent, KEIN Border) */
  .m-dash-chart-card {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    padding: 0.85rem 0.75rem 1rem;
  }
  .m-dash-chart-canvas-wrap {
    position: relative;
    width: 100%;
    height: 260px;
  }
  .m-dash-chart-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
  }

  /* Top 3 Card — CI-konform: 75% transparent, KEIN Border, KEIN Shadow (wie KPI-Cards) */
  .m-dash-top3-card {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    overflow: hidden;
  }
  .m-dash-top3-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
  }
  /* Period-Dropdown im input-basic-Look (analog Header-Selector / dash-mobile-selector) */
  .m-dash-top3-period {
    width: 100%;
    height: 40px;
    padding: 0.5rem 0.75rem;
    padding-right: 2.25rem;
    background-color: var(--darkblue);
    border: 1px solid transparent;
    border-radius: var(--border);
    color: var(--white);
    font-size: 0.9rem;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
                rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
                rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
  }
  .m-dash-top3-period:focus {
    outline: none;
    border-color: var(--main);
  }
  .m-dash-top3-period option {
    background: var(--darkblue);
    color: var(--white);
  }
  .m-dash-top3-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .m-dash-top3-tab {
    height: 40px;
    padding: 0 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--border);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .m-dash-top3-tab:active { transform: scale(0.98); }
  .m-dash-top3-tab.active {
    background: var(--main);
    border-color: var(--main);
    color: var(--white);
    font-weight: 500;
  }

  .m-dash-top3-list {
    /* Container fuer die Items */
  }
  .m-dash-top3-item {
    padding: 0.85rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .m-dash-top3-item:first-child {
    padding-top: 0.5rem; /* enger an Toolbar dran */
  }
  .m-dash-top3-item:last-child {
    border-bottom: none;
  }
  .m-dash-top3-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.55rem;
  }
  .m-dash-top3-medal {
    font-size: 1.35rem;
    line-height: 1;
  }
  .m-dash-top3-name {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-dash-top3-start {
    color: var(--white);
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .m-dash-top3-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.4rem;
  }
  .m-dash-top3-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  /* Label oben, Wert unten — analog KPI-Cards */
  .m-dash-top3-stat-lbl {
    display: block;
    order: 1;
    color: var(--white);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  .m-dash-top3-stat-val {
    display: block;
    order: 2;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
  }

  /* === Widget-Sections (Freigaben) — full-width, voll interaktiv === */
  .m-dash-widget-section .m-dash-widget-body {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    padding: 0.6rem;
    /* Mail: dash-list-scroll hat Desktop-Scrollbar mit thin width + main-Color
       — auf Mobile komplett aus */
    max-height: none !important;
    overflow: visible !important;
    scrollbar-width: none !important;
    scrollbar-color: transparent transparent !important;
    -ms-overflow-style: none !important;
  }
  .m-dash-widget-section .m-dash-widget-body::-webkit-scrollbar,
  .m-dash-widget-section .m-dash-widget-body::-webkit-scrollbar-thumb,
  .m-dash-widget-section .m-dash-widget-body::-webkit-scrollbar-track {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
  /* Mail-spezifisch: .dash-list-scroll hat Desktop-CSS mit thin scrollbar +
     main-Color — die ganze Klasse auf Mobile platt machen, nicht nur unsere */
  .dash-list-scroll {
    scrollbar-width: none !important;
    scrollbar-color: transparent transparent !important;
    overflow: visible !important;
  }
  .dash-list-scroll::-webkit-scrollbar,
  .dash-list-scroll::-webkit-scrollbar-thumb,
  .dash-list-scroll::-webkit-scrollbar-track {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
  .m-dash-widget-section .accordion-item {
    background: rgba(0, 0, 0, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: var(--border) !important;
    padding: 0.5rem !important;
    margin-bottom: 0.4rem !important;
  }
  .m-dash-widget-section .accordion-item:last-child {
    margin-bottom: 0 !important;
  }
  .m-dash-widget-section .accordion-item .container-fluid {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.3rem !important;
    padding: 0 !important;
    position: static !important;
  }
  /* Status-Icon (Freigaben) als eigene volle Zeile oben, zentriert */
  .m-dash-widget-section .accordion-item .container-fluid > .position-absolute:not(.btn_add):not(.btn_delete) {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0.5rem 0 0 0 !important;
    padding: 0 !important;
    font-size: 1.1rem;
    order: 0;
  }
  .m-dash-widget-section .accordion-item .container-fluid > .position-absolute:not(.btn_add):not(.btn_delete) > i {
    margin: 0 auto !important;
    display: inline-block;
  }
  /* Inputs: alle in EINER Reihe */
  .m-dash-widget-section .accordion-item .col-lg-1,
  .m-dash-widget-section .accordion-item .col-lg-2,
  .m-dash-widget-section .accordion-item .col-lg-3,
  .m-dash-widget-section .accordion-item .col-lg-4,
  .m-dash-widget-section .accordion-item .col-lg-5,
  .m-dash-widget-section .accordion-item .col-lg-6,
  .m-dash-widget-section .accordion-item .col-lg-11 {
    flex: 1 1 0 !important;
    display: block !important;
    width: auto !important;
    vertical-align: initial !important;
    margin: 0 !important;
    order: 1;
    min-width: 0;
  }
  .m-dash-widget-section .accordion-item .px-1 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* Inputs Look */
  .m-dash-widget-section .accordion-item .form-control {
    background: rgba(0, 0, 0, 0.15) !important;
    border: 1px solid transparent !important;
    color: var(--white) !important;
    font-size: 0.85rem !important;
    height: 2.1rem !important;
    padding: 0.25rem 0.5rem !important;
    box-shadow: none !important;
    text-align: center !important;
  }
  .m-dash-widget-section .accordion-item .form-control[readonly][disabled] {
    opacity: 1;
    cursor: default;
  }
  /* Action-Buttons: aus absoluter Position raus, eigene Reihe via ::before-Pseudo-Spacer */
  .m-dash-widget-section .accordion-item .btn_add,
  .m-dash-widget-section .accordion-item .btn_delete,
  .m-dash-widget-section .accordion-item .container-fluid > button {
    position: static !important;
    transform: none !important;
    right: auto !important;
    top: auto !important;
    width: 2.2rem !important;
    height: 2.2rem !important;
    min-width: 2.2rem !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    order: 3;
  }
  /* Spacer ZWISCHEN Inputs (order 1) und Buttons (order 3) — erzwingt Zeilenumbruch */
  .m-dash-widget-section .accordion-item .container-fluid::before {
    content: '';
    flex: 0 0 100%;
    height: 0;
    order: 2;
  }
  .m-dash-widget-section .dash-adv-empty {
    padding: 1rem 0.5rem;
    text-align: center;
    color: var(--white);
    font-size: 0.85rem;
  }

  /* === Sendouts-Accordion (Mail Mobile, nach Top-3) — Look 1:1 wie m-dash-top3 === */
  .m-dash-widget-section .m-dash-sendouts-list {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    overflow: hidden;
    padding: 0;
  }
  .m-sendout-item {
    padding: 0.7rem 0.85rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
  }
  .m-sendout-item:first-child {
    padding-top: 0.5rem;
  }
  .m-sendout-item:last-child {
    border-bottom: none;
  }
  /* Head-Button als ganzer Trigger, ohne eigenen Background/Border */
  .m-sendout-head {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--white);
    padding: 0;
    text-align: left;
    cursor: pointer;
    display: block;
  }
  .m-sendout-head:focus {
    outline: none;
  }
  /* Row1: Name (links) — Status (rechts) — Chevron */
  .m-sendout-head-row1 {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.45rem;
  }
  .m-sendout-name {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-sendout-status {
    color: var(--white);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }
  .m-sendout-chev {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    margin-left: 0.2rem;
  }
  .m-sendout-item.is-open .m-sendout-chev {
    transform: rotate(180deg);
  }
  /* Row2: Datum + 2 Stats (Ö/K) als 3-col Grid analog Top-3-Stats */
  .m-sendout-head-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
  }
  .m-sendout-stat,
  .m-sendout-detail-cell {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-sendout-stat-lbl,
  .m-sendout-detail-lbl {
    display: block;
    color: var(--white);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  .m-sendout-stat-val,
  .m-sendout-detail-val {
    display: block;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
  }
  /* Datum-Stat: Label = Datum, Value = Uhrzeit (gleiche Optik wie Öffnungen/Klicks) */
  .m-sendout-stat-date .m-sendout-stat-lbl {
    font-size: 0.72rem;
  }
  /* Detail-Bereich: standardmaessig kollabiert, klappt smooth auf */
  .m-sendout-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, margin-top 0.25s ease;
    margin-top: 0;
  }
  .m-sendout-item.is-open .m-sendout-detail {
    max-height: 6rem;
    margin-top: 0.4rem;
  }
  .m-sendout-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.4rem;
  }
}


/* =============================================================================
   4.2.b MAIL KOMPATIBILITAET — Aliase fuer alte .dash-mobile-* Mail-Klassen
   damit das bestehende Mail-Dashboard-Markup gleich gestylt wird wie m-dash-*
   ============================================================================= */
@media (max-width: 991px) {

  /* Section-Wrapper */
  .dash-mobile-section {
    margin-bottom: 0.6rem;
  }

  /* KPI Grids */
  .dash-mobile-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
  }
  .dash-mobile-kpi-single {
    margin-bottom: 0.6rem;
  }

  /* KPI Cards — analog .m-dash-kpi-card */
  .dash-mobile-kpi-card,
  .dash-mobile-kpi-single {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border: none !important;
    border-radius: var(--border) !important;
    padding: 0.75rem 0.75rem !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 4.2rem !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .dash-mobile-kpi-single {
    min-height: 5.5rem !important;
    padding: 1rem 1rem !important;
  }

  /* Icons ausblenden (analog Partner) */
  .dash-mobile-kpi-card i,
  .dash-mobile-kpi-card .fa-solid,
  .dash-mobile-kpi-single i,
  .dash-mobile-kpi-single .fa-solid {
    display: none !important;
  }

  /* Werte zentriert + Label oben */
  .dash-mobile-kpi-value {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--white) !important;
    line-height: 1 !important;
    margin-top: 0.4rem !important;
    display: block !important;
  }
  .dash-mobile-kpi-single .dash-mobile-kpi-value {
    font-size: 1.55rem !important;
  }
  .dash-mobile-kpi-label {
    font-size: 0.78rem !important;
    color: var(--white) !important;
    margin: 0 !important;
    display: block !important;
  }

  /* Listen + Sections */
  .dash-mobile-list {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    overflow: hidden;
  }
  .dash-mobile-list-row,
  .dash-mobile-list-item {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--white);
  }
  .dash-mobile-list-row:last-child,
  .dash-mobile-list-item:last-child {
    border-bottom: none;
  }

  /* Section-Titles (z.B. ueber Benachrichtigungen) — weiss + gleicher Abstand */
  .dash-mobile-section h2,
  .dash-mobile-section h3 {
    margin-top: 0 !important;
    margin-bottom: 0.6rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--white) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.7px !important;
  }
}

/* =============================================================================
   SCROLLBAR-KILL — Mobile-Viewport (greift auch in DevTools-Emulation,
   unabhängig von hover/pointer-Indicator). MUSS am ENDE der Datei stehen,
   damit kein späterer Block es überschreibt.
   ============================================================================= */
@media (max-width: 991px) {
  html, body,
  .mc_a, .mc_a_row,
  .div_light_mobile,
  .mobile_view,
  .dash-list-scroll,
  .m-dash-widget-body {
    scrollbar-width: none !important;
    scrollbar-color: transparent transparent !important;
    -ms-overflow-style: none !important;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  .mc_a::-webkit-scrollbar,
  .mc_a_row::-webkit-scrollbar,
  .div_light_mobile::-webkit-scrollbar,
  .mobile_view::-webkit-scrollbar,
  .dash-list-scroll::-webkit-scrollbar,
  .m-dash-widget-body::-webkit-scrollbar,
  html::-webkit-scrollbar-thumb,
  body::-webkit-scrollbar-thumb,
  .dash-list-scroll::-webkit-scrollbar-thumb,
  .m-dash-widget-body::-webkit-scrollbar-thumb,
  html::-webkit-scrollbar-track,
  body::-webkit-scrollbar-track,
  .dash-list-scroll::-webkit-scrollbar-track,
  .m-dash-widget-body::-webkit-scrollbar-track {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
}

/* =============================================================================
   4.3 SUBNAV — Mobile Top-Nav für Unterseiten (m-subnav-*)
   Aufbau analog Dashboard, aber ohne Datumsfilter. Reihe 1: Selector/Title +
   Anfragen/Nachrichten/Profil. Reihe 2: optional Suche + Filter-Toggle.
   Filter-Panel klappt unter Header auf (CSS bereit, Inhalt pro Seite).
   ============================================================================= */
@media (max-width: 991px) {
  /* Standardmäßig globale Mobile-Icons-Bar ausblenden — wir haben eigene Subnav */
  body.has-subnav .mobile-icons-bar { display: none !important; }
  body.has-subnav .mobile-content-wrapper { padding-top: 0 !important; }

  .m-subnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background-color: var(--darkblue);
    z-index: 9998;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .m-subnav-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .m-subnav-row + .m-subnav-row {
    margin-top: 0.5rem;
  }
  .m-subnav-title {
    flex: 1;
    min-width: 0;            /* darf schrumpfen — sonst drückt langer Text die Icons raus */
    white-space: nowrap;     /* NIE umbrechen: Subnav-Höhe bleibt geräteunabhängig konstant
                                (Listen-margin-top rechnet mit fester Höhe, Gotcha #13) */
    overflow: hidden;
    text-overflow: ellipsis; /* langer Zusatz (AdSpace-/Kundenname) wird mit … gekappt */
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  /* Aktive Werbeflaeche klein neben dem Titel (nur Orientierung, kein Wechsel) */
  .m-subnav-subtitle {
    display: inline;
    margin-left: 0.5rem;
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
  }
  .m-subnav-subtitle::before {
    content: "·";   /* Mittelpunkt als Trenner */
    margin-right: 0.4rem;
    color: rgba(255, 255, 255, 0.35);
  }
  .m-subnav-selector,
  .m-subnav-search {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background-color: var(--darkblue);
    border: 1px solid transparent;
    border-radius: var(--border);
    color: var(--white);
    font-size: 0.85rem;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
                rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
                rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
  }
  .m-subnav-selector {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
  }
  .m-subnav-selector:focus,
  .m-subnav-search:focus {
    outline: none;
    border-color: var(--main);
  }
  .m-subnav-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f44336;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
  }
  /* Filter-Toggle-Button + Neu-anlegen-Plus-Button (gleiche Optik) */
  .m-subnav-filter-toggle,
  .m-subnav-add-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  /* Filter-Panel klappt unter Header auf */
  .m-subnav-filter-panel {
    display: none;
    margin-top: 0.6rem;
    background: color-mix(in srgb, var(--darkblue) 92%, transparent);
    border: none;
    border-radius: var(--border);
    padding: 0.75rem;
  }
  .m-subnav-filter-panel.is-open {
    display: block;
  }
  .m-subnav-filter-section {
    margin-bottom: 0.85rem;
  }
  .m-subnav-filter-section:last-of-type {
    margin-bottom: 0;
  }
  .m-subnav-filter-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.4rem;
  }
  .m-subnav-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    align-items: center;
  }
  .m-subnav-filter-row .checkbox-wrapper-23 {
    flex-shrink: 0;
  }
  .m-subnav-filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .m-subnav-filter-item span {
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
  }
  /* Status-Icon-Farben in Filter-Items (Pflicht: !important damit globale Vererbung weicht).
     Plattform-unabhängig (Türkis für closed/approved auch bei Partner) — siehe Desktop. */
  .m-status-icon-turquoise { color: #00cbb5 !important; }
  .m-status-icon-orange { color: #ff9800 !important; }
  .m-status-icon-yellow { color: #f5c419 !important; }
  .m-status-icon-favorite { color: #d4b40d !important; }
  .m-subnav-filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.85rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .m-subnav-filter-count {
    color: #fff;
    font-size: 0.85rem;
  }
  .m-subnav-filter-reset {
    background: none;
    border: none; /* rahmenlos — User-Wunsch 03.07.2026 */
    color: #fff;
    border-radius: var(--border);
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }
  .m-subnav-filter-reset:active {
    background: rgba(255, 255, 255, 0.08);
  }
  /* Search-Reset */
  .m-subnav-search-wrap {
    position: relative;
    flex: 1;
  }
  .m-subnav-search {
    width: 100%;
  }
  .m-subnav-search-reset {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    display: none;
  }
  .m-subnav-search-wrap.has-value .m-subnav-search-reset {
    display: block;
  }
  /* Content-Wrapper unter Subnav */
  .m-subnav-content {
    padding-top: 4.5rem;   /* nur 1 Reihe */
    padding-bottom: 5rem;
    min-height: 100vh;
  }
  .m-subnav-content.has-row2 {
    padding-top: 7rem;     /* 2 Reihen (Selector + Suche/Filter) */
  }
}

/* =============================================================================
   4.4 USER-SETTINGS MODAL (Mobile-Override)
   Standard-Mobile-Modals sind Fullscreen (mc_a_row), aber #userSettings
   soll wie ein klassisches Modal aussehen (1rem Rand drumrum, abgerundete Ecken).
   ============================================================================= */
@media (max-width: 991px) {
  /* Bottom-Nav + Top-Header bei offenem Modal komplett verstecken (sonst opakes Background
     ueberlagert den Backdrop optisch — z:9998/9999 ist auch ohne Override hoeher als manche Modals). */
  body.modal-open .nav-mobile-bottom,
  body.modal-open .dash-mobile-header,
  body.modal-open .m-subnav {
    display: none !important;
  }
  /* Mobile-Modal-Pattern gilt fuer alle Modals mit gleicher Struktur:
     Header-Modals: Profil (#userSettings), Anfragen (#getRequest), Benachr. (#getMessage).
     Kampagnen-Aktions-Modals (Lazy, dynamische IDs): Vorschau, Sendouts, Testmail,
     Kampagne-Bearbeiten — via ID-Praefix-Selektor.
     Alle haben .modal-dialog.modal-hcenter + .modal-content.mc_a_row +
     .modal-header-wrapper + .modal-close-mobile. */
  #userSettings.modal,
  #dashTestmailModal.modal,
  #dashCorrectionModal.modal,
  #getRequest.modal,
  #getMessage.modal,
  [id^="previewNewsletterData"].modal,
  [id^="setSendouts"].modal,
  [id^="sendTestmail"].modal,
  [id^="getNewsletterData"].modal,
  [id^="getClient"].modal,
  [id^="previewCreative"].modal,
  [id^="updateSendout"].modal,
  [id^="getSendoutDataDetails"].modal,
  #setNewsletterPage.modal,
  #setClientPage.modal,
  #setSendoutPage.modal,
  #setTriggermailPage.modal,
  #setDynamicPage.modal,
  #setAdSpacePage.modal,
  #setSegmentPage.modal,
  #segmentDownloadModal.modal,
  [id^="getSegment"].modal,
  #setSubscriberPage.modal,
  #setSubscriberCSV.modal,
  [id^="getUserData"].modal,
  [id^="previewDynamicData"].modal,
  [id^="getDynamicData"].modal,
  #setBlacklist.modal,
  #setBlacklistEntry.modal,
  [id^="getBlacklistData"].modal,
  [id^="setEntry"].modal,
  [id^="setPixel"].modal,
  #getTestaddresses.modal,
  #setTestadress.modal,
  #updateTestadress.modal,
  [id^="getAdSpaceData"].modal {
    padding: 1rem !important;
    z-index: 10010 !important;
  }
  /* Werbeflächen-Detail-Modal (lazy-as-modal): trägt inline z-index:2000 +
     .modal-dialog ist ggf. fixed → auf Mobil (an <body> gehoben) über den
     Backdrop (10005) heben, Dialog relativ halten (bleibt im 10010-Kontext). */
  [id^="getAdSpaceData"] .modal-dialog {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
  }
  /* Nav-Varianten-Shell hat .position-absolute (Utility, !important) — auf Mobile
     zurück auf fixed, sonst hängt das Modal am Body-Anfang statt am Viewport. */
  #setBlacklist.modal,
  #setBlacklistEntry.modal,
  #getTestaddresses.modal,
  #setTestadress.modal,
  #updateTestadress.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  /* Backdrop wenn eines dieser Modals offen ist — Bootstrap setzt die Backdrop ohne Modal-ID-Referenz,
     deshalb global hochziehen wenn ein Modal offen ist via body.modal-open.
     Plus: top: 0 zuruecksetzen (Desktop-styles.css setzt top: unset, das sprengt Mobile-fixed-Position). */
  body.modal-open .modal-backdrop {
    z-index: 10005 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.75) !important;
    opacity: 1 !important;
  }
  /* TinyMCE-Aux-Layer (Quellcode-Dialog + floating/scrolling-Toolbar-Overflow)
     ueber Mobile-Backdrop (10005) UND Modal (10010) heben. Der Aux haengt am
     <body> (nicht im Modal-DOM) und steht per styles.css ~4807 auf z-index:10000
     -> liegt sonst unsichtbar UNTER dem Mobile-Backdrop. !important noetig, da
     die Basisregel ebenfalls !important traegt. Nur mobil — Desktop-Backdrop
     liegt bei 1999, dort reicht der globale 10000er-Wert. */
  .tox-tinymce-aux {
    z-index: 10011 !important;
  }
  #userSettings .modal-dialog,
  #userSettings .modal-dialog.modal-hcenter,
  #dashTestmailModal .modal-dialog,
  #dashTestmailModal .modal-dialog.modal-hcenter,
  #dashCorrectionModal .modal-dialog,
  #dashCorrectionModal .modal-dialog.modal-hcenter,
  #getRequest .modal-dialog,
  #getRequest .modal-dialog.modal-hcenter,
  #getMessage .modal-dialog,
  #getMessage .modal-dialog.modal-hcenter,
  [id^="previewNewsletterData"] .modal-dialog,
  [id^="setSendouts"] .modal-dialog,
  [id^="sendTestmail"] .modal-dialog,
  [id^="getNewsletterData"] .modal-dialog,
  [id^="getClient"] .modal-dialog,
  [id^="previewCreative"] .modal-dialog,
  [id^="previewCreative"] .modal-dialog.modal-hcenter,
  [id^="getClient"] .modal-dialog.modal-hcenter,
  [id^="updateSendout"] .modal-dialog,
  [id^="getSendoutDataDetails"] .modal-dialog,
  #setNewsletterPage .modal-dialog,
  #setNewsletterPage .modal-dialog.modal-hcenter,
  #setClientPage .modal-dialog,
  #setClientPage .modal-dialog.modal-hcenter,
  #setSendoutPage .modal-dialog,
  #setSendoutPage .modal-dialog.modal-hcenter,
  #setTriggermailPage .modal-dialog,
  #setDynamicPage .modal-dialog,
  #setDynamicPage .modal-dialog.modal-hcenter,
  #setAdSpacePage .modal-dialog,
  #setAdSpacePage .modal-dialog.modal-hcenter,
  #setSegmentPage .modal-dialog,
  #setSegmentPage .modal-dialog.modal-hcenter,
  #segmentDownloadModal .modal-dialog,
  #segmentDownloadModal .modal-dialog.modal-hcenter,
  [id^="getSegment"] .modal-dialog,
  [id^="getSegment"] .modal-dialog.modal-hcenter,
  #setSubscriberPage .modal-dialog,
  #setSubscriberPage .modal-dialog.modal-hcenter,
  #setSubscriberCSV .modal-dialog,
  #setSubscriberCSV .modal-dialog.modal-hcenter,
  [id^="getUserData"] .modal-dialog,
  [id^="getUserData"] .modal-dialog.modal-hcenter,
  [id^="previewDynamicData"] .modal-dialog,
  [id^="getDynamicData"] .modal-dialog,
  #setBlacklist .modal-dialog,
  #setBlacklistEntry .modal-dialog,
  [id^="getBlacklistData"] .modal-dialog,
  [id^="setEntry"] .modal-dialog,
  [id^="setPixel"] .modal-dialog,
  #getTestaddresses .modal-dialog,
  #setTestadress .modal-dialog,
  #updateTestadress .modal-dialog {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 2rem) !important;
    overflow-y: auto !important;
    transform: none !important;
  }
  #userSettings .modal-content,
  #userSettings .mc_a_row,
  #dashTestmailModal .modal-content,
  #dashTestmailModal .mc_a_row,
  #dashCorrectionModal .modal-content,
  #dashCorrectionModal .mc_a_row,
  #getRequest .modal-content,
  #getRequest .mc_a_row,
  #getMessage .modal-content,
  #getMessage .mc_a_row,
  [id^="previewNewsletterData"] .modal-content,
  [id^="previewNewsletterData"] .mc_a_row,
  [id^="getAdSpaceData"] .modal-content,
  [id^="getAdSpaceData"] .mc_a_row,
  [id^="setSendouts"] .modal-content,
  [id^="setSendouts"] .mc_a_row,
  [id^="sendTestmail"] .modal-content,
  [id^="sendTestmail"] .mc_a_row,
  [id^="getNewsletterData"] .modal-content,
  [id^="getNewsletterData"] .mc_a_row,
  [id^="getClient"] .modal-content,
  [id^="previewCreative"] .modal-content,
  [id^="previewCreative"] .mc_a_row,
  [id^="getClient"] .mc_a_row,
  [id^="updateSendout"] .modal-content,
  [id^="updateSendout"] .mc_a_row,
  [id^="getSendoutDataDetails"] .modal-content,
  [id^="getSendoutDataDetails"] .mc_a_row,
  #setNewsletterPage .modal-content,
  #setNewsletterPage .mc_a_row,
  #setClientPage .modal-content,
  #setClientPage .mc_a_row,
  #setSendoutPage .modal-content,
  #setSendoutPage .mc_a_row,
  #setTriggermailPage .modal-content,
  #setTriggermailPage .mc_a_row,
  #setDynamicPage .modal-content,
  #setDynamicPage .mc_a_row,
  #setAdSpacePage .modal-content,
  #setAdSpacePage .mc_a_row,
  #setSegmentPage .modal-content,
  #setSegmentPage .mc_a_row,
  #segmentDownloadModal .modal-content,
  #segmentDownloadModal .mc_a_row,
  [id^="getSegment"] .modal-content,
  [id^="getSegment"] .mc_a_row,
  #setSubscriberPage .modal-content,
  #setSubscriberPage .mc_a_row,
  #setSubscriberCSV .modal-content,
  #setSubscriberCSV .mc_a_row,
  [id^="getUserData"] .modal-content,
  [id^="getUserData"] .mc_a_row,
  [id^="previewDynamicData"] .modal-content,
  [id^="previewDynamicData"] .mc_a_row,
  [id^="getDynamicData"] .modal-content,
  [id^="getDynamicData"] .mc_a_row,
  #setBlacklist .modal-content,
  #setBlacklist .mc_a,
  #setBlacklistEntry .modal-content,
  #setBlacklistEntry .mc_a,
  [id^="getBlacklistData"] .modal-content,
  [id^="setEntry"] .modal-content,
  [id^="setPixel"] .modal-content,
  #getTestaddresses .modal-content,
  #getTestaddresses .mc_a,
  #setTestadress .modal-content,
  #setTestadress .mc_a,
  #updateTestadress .modal-content,
  #updateTestadress .mc_a {
    border-radius: var(--border) !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(100vh - 2rem) !important;
    padding: 1.25rem 1rem !important;
  }
  /* Header: Close-Button ist absolut positioniert (rechts), daher braucht der
     Titel BEIDSEITIG gleiches Padding, sonst rutscht der zentrierte Titel um die
     halbe Padding-Differenz nach links. Symmetrisch = Titel bleibt mittig. */
  #userSettings .modal-header-wrapper,
  #dashTestmailModal .modal-header-wrapper,
  #dashCorrectionModal .modal-header-wrapper,
  #getRequest .modal-header-wrapper,
  #getMessage .modal-header-wrapper,
  [id^="getAdSpaceData"] .modal-header-wrapper,
  [id^="previewNewsletterData"] .modal-header-wrapper,
  [id^="setSendouts"] .modal-header-wrapper,
  [id^="sendTestmail"] .modal-header-wrapper,
  [id^="getNewsletterData"] .modal-header-wrapper,
  [id^="getClient"] .modal-header-wrapper,
  [id^="previewCreative"] .modal-header-wrapper,
  [id^="updateSendout"] .modal-header-wrapper,
  [id^="getSendoutDataDetails"] .modal-header-wrapper,
  #setNewsletterPage .modal-header-wrapper,
  #setClientPage .modal-header-wrapper,
  #setSendoutPage .modal-header-wrapper,
  #setTriggermailPage .modal-header-wrapper,
  #setDynamicPage .modal-header-wrapper,
  #setAdSpacePage .modal-header-wrapper,
  #setSegmentPage .modal-header-wrapper,
  #segmentDownloadModal .modal-header-wrapper,
  [id^="getSegment"] .modal-header-wrapper,
  #setSubscriberPage .modal-header-wrapper,
  #setSubscriberCSV .modal-header-wrapper,
  [id^="getUserData"] .modal-header-wrapper,
  [id^="previewDynamicData"] .modal-header-wrapper,
  [id^="getDynamicData"] .modal-header-wrapper,
  #setBlacklist .modal-header-wrapper,
  #setBlacklistEntry .modal-header-wrapper,
  [id^="getBlacklistData"] .modal-header-wrapper,
  [id^="setEntry"] .modal-header-wrapper,
  [id^="setPixel"] .modal-header-wrapper,
  #getTestaddresses .modal-header-wrapper,
  #setTestadress .modal-header-wrapper,
  #updateTestadress .modal-header-wrapper {
    padding-left: 3.5rem !important;
    padding-right: 3.5rem !important;
    position: static !important; /* damit close-button-position relativ zu .modal-content rechnet */
  }
  /* Close-Button (X) im Modal positionieren statt fixed am Viewport
     + Look 1:1 wie btn_add (transparent bg, box-shadow, var(--border), hover: main-bg) */
  #userSettings .modal-close-mobile,
  #dashTestmailModal .modal-close-mobile,
  #dashCorrectionModal .modal-close-mobile,
  #getRequest .modal-close-mobile,
  #getMessage .modal-close-mobile,
  [id^="getAdSpaceData"] .modal-close-mobile,
  [id^="previewNewsletterData"] .modal-close-mobile,
  [id^="setSendouts"] .modal-close-mobile,
  [id^="sendTestmail"] .modal-close-mobile,
  [id^="getNewsletterData"] .modal-close-mobile,
  [id^="getClient"] .modal-close-mobile,
  [id^="previewCreative"] .modal-close-mobile,
  [id^="updateSendout"] .modal-close-mobile,
  [id^="getSendoutDataDetails"] .modal-close-mobile,
  #setNewsletterPage .modal-close-mobile,
  #setClientPage .modal-close-mobile,
  #setSendoutPage .modal-close-mobile,
  #setTriggermailPage .modal-close-mobile,
  #setDynamicPage .modal-close-mobile,
  #setAdSpacePage .modal-close-mobile,
  #setSegmentPage .modal-close-mobile,
  #segmentDownloadModal .modal-close-mobile,
  [id^="getSegment"] .modal-close-mobile,
  #setSubscriberPage .modal-close-mobile,
  #setSubscriberCSV .modal-close-mobile,
  [id^="getUserData"] .modal-close-mobile,
  [id^="previewDynamicData"] .modal-close-mobile,
  [id^="getDynamicData"] .modal-close-mobile,
  #setBlacklist .modal-close-mobile,
  #setBlacklistEntry .modal-close-mobile,
  [id^="getBlacklistData"] .modal-close-mobile,
  [id^="setEntry"] .modal-close-mobile,
  [id^="setPixel"] .modal-close-mobile,
  #getTestaddresses .modal-close-mobile,
  #setTestadress .modal-close-mobile,
  #updateTestadress .modal-close-mobile {
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    width: 40px !important;
    height: 40px !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: var(--border) !important;
    color: var(--white) !important;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
                rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
                rgba(0, 0, 0, 0.2) 0px -3px 0px inset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
    font-size: 1rem !important;
    transition: background-color 0.15s ease !important;
  }
  #userSettings .modal-close-mobile:hover,
  #getRequest .modal-close-mobile:hover,
  #getMessage .modal-close-mobile:hover,
  [id^="getAdSpaceData"] .modal-close-mobile:hover,
  [id^="previewNewsletterData"] .modal-close-mobile:hover,
  [id^="setSendouts"] .modal-close-mobile:hover,
  [id^="sendTestmail"] .modal-close-mobile:hover,
  [id^="getNewsletterData"] .modal-close-mobile:hover,
  [id^="getClient"] .modal-close-mobile:hover,
  [id^="previewCreative"] .modal-close-mobile:hover,
  [id^="updateSendout"] .modal-close-mobile:hover,
  [id^="getSendoutDataDetails"] .modal-close-mobile:hover,
  #setNewsletterPage .modal-close-mobile:hover,
  #setClientPage .modal-close-mobile:hover,
  #setSendoutPage .modal-close-mobile:hover,
  #setTriggermailPage .modal-close-mobile:hover,
  #setDynamicPage .modal-close-mobile:hover,
  #setAdSpacePage .modal-close-mobile:hover,
  #setSegmentPage .modal-close-mobile:hover,
  #segmentDownloadModal .modal-close-mobile:hover,
  [id^="getSegment"] .modal-close-mobile:hover,
  #setSubscriberPage .modal-close-mobile:hover,
  #setSubscriberCSV .modal-close-mobile:hover,
  [id^="getUserData"] .modal-close-mobile:hover,
  [id^="previewDynamicData"] .modal-close-mobile:hover,
  [id^="getDynamicData"] .modal-close-mobile:hover,
  #setBlacklist .modal-close-mobile:hover,
  #setBlacklistEntry .modal-close-mobile:hover,
  [id^="getBlacklistData"] .modal-close-mobile:hover,
  [id^="setEntry"] .modal-close-mobile:hover,
  [id^="setPixel"] .modal-close-mobile:hover,
  #getTestaddresses .modal-close-mobile:hover,
  #setTestadress .modal-close-mobile:hover,
  #updateTestadress .modal-close-mobile:hover {
    background-color: var(--main) !important;
    color: var(--white) !important;
  }
  /* Blacklist-/Sendout-Modals: Header-Trennstrich gegen flex-Kollaps sichern (Gotcha #130)
     + Formular-Feinschliff fürs Erstellen-Modal */
  #setSendoutPage .border-span,
  #setTriggermailPage .border-span,
  #setDynamicPage .border-span,
  #setAdSpacePage .border-span,
  #setSegmentPage .border-span,
  #segmentDownloadModal .border-span,
  [id^="getSegment"] .border-span,
  #setSubscriberPage .border-span,
  #setSubscriberCSV .border-span,
  [id^="getUserData"] .border-span,
  [id^="previewDynamicData"] .border-span,
  [id^="getDynamicData"] .border-span,
  #setBlacklist .border-span,
  #setBlacklistEntry .border-span,
  [id^="getBlacklistData"] .border-span,
  [id^="setEntry"] .border-span,
  [id^="setPixel"] .border-span,
  [id^="getAdSpaceData"] .border-span {
    flex-shrink: 0 !important;
    min-height: 2px !important;
  }
  /* Inline-display:none des Desktop-JS respektieren — die generischen .mc_a-Row-Regeln
     setzen sonst display:flex !important und decken JS-versteckte Bereiche wieder auf
     (PLZ-Länder-Row, Typ-Spalte bei PLZ, Fehler-Box). Gotcha-#131-Familie. */
  #setBlacklist [style*="display: none"],
  #setBlacklistEntry [style*="display: none"],
  [id^="getBlacklistData"] [style*="display: none"],
  [id^="setEntry"] [style*="display: none"],
  #setSendoutPage [style*="display: none"],
  #setTriggermailPage [style*="display: none"],
  #setDynamicPage [style*="display: none"],
  [id^="getDynamicData"] [style*="display: none"] {
    display: none !important;
  }
  /* Leeren Kunden-Select (User ohne Kunden) mobil ausblenden — tote 10rem-Box.
     :has() darf nicht verschachtelt werden → Zwei-Regel-Muster: erst verstecken,
     bei vorhandenen Optionen wieder zeigen (spätere Regel gewinnt). */
  #setBlacklist .tooltip-container:has(select[name="client_ids[]"]),
  [id^="getBlacklistData"] .tooltip-container:has(select[name="client_ids[]"]) {
    display: none !important;
  }
  #setBlacklist .tooltip-container:has(select[name="client_ids[]"] option),
  [id^="getBlacklistData"] .tooltip-container:has(select[name="client_ids[]"] option) {
    display: block !important;
  }
  #setBlacklist input.half-gar,
  #setBlacklistEntry input.half-gar,
  [id^="getBlacklistData"] input.half-gar,
  [id^="setEntry"] input.half-gar {
    width: 100% !important;
  }
  #setBlacklist select[name="client_ids[]"],
  [id^="getBlacklistData"] select[name="client_ids[]"] {
    height: 10rem !important;
  }
  /* Feld-Breiten vereinheitlichen: Select/Container exakt so breit wie das Name-Feld */
  #setBlacklist .tooltip-container,
  [id^="getBlacklistData"] .tooltip-container {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
  }
  #setBlacklist select.form-select,
  [id^="getBlacklistData"] select.form-select {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  #setBlacklist .btn_main,
  #setBlacklistEntry .btn_main,
  [id^="getBlacklistData"] .btn_main,
  [id^="setEntry"] .btn_main {
    width: 100% !important;
    margin-top: 1rem !important;
  }

  /* ── Blacklist-Detail-Modal (Einträge/Verlauf/Einstellungen) — Inhalt mobil ── */
  /* Download-Button: sitzt absolut oben rechts und kollidiert mit dem Close-Button → daneben */
  [id^="getBlacklistData"] form:has(> .js-download-overlay) {
    top: 0.5rem !important;
    right: 3.5rem !important;
  }
  /* Tab-Leiste: umbrechen + kompakte Titel; Abstand zur Pane exakt 1rem */
  [id^="getBlacklistData"] ul.nav-tabs {
    flex-wrap: wrap !important;
    margin-bottom: 1rem !important;
  }
  /* Wrapper des (mobil versteckten) Einträge-Spalten-Headers kollabieren + Container-Reste,
     sonst stapeln sich margin-top 1rem + Padding zum sichtbaren Riesen-Abstand */
  [id^="blFolderPaneEntries-"] > div[style*="margin-top"] {
    margin-top: 0 !important;
  }
  [id^="blacklistEntriesContainer-"] .blacklist-entry-row:first-child {
    margin-top: 0 !important;
  }
  [id^="blFolderPaneSettings-"] > div[style*="padding"] {
    padding-top: 0 !important;
  }
  [id^="getBlacklistData"] ul.nav-tabs .nav-link h3 {
    font-size: 0.95rem !important;
    margin: 0 !important;
  }
  /* Spalten-Header (Einträge + Verlauf) ausblenden — Labels kommen per ::before an die Cards */
  [id^="getBlacklistData"] .container-fluid:has(> .row.blacklist-header-row) {
    display: none !important;
  }
  [id^="blFolderPaneLog-"] > .container-fluid {
    display: none !important;
  }
  /* Zeilen (Einträge + Verlauf) → Card-Stack (Pattern 1, [[UI Mobile Listen & Tabs]]) */
  [id^="getBlacklistData"] .blacklist-entry-row {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
    padding: 0.6rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }
  [id^="getBlacklistData"] .blacklist-entry-row .row {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  [id^="getBlacklistData"] .blacklist-entry-row .row > [class*="col-"] {
    display: flex !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.3rem 0 !important;
    margin: 0 !important;
    gap: 0.75rem !important;
    text-align: left !important;
    color: var(--white);
    font-size: 0.85rem;
    word-break: break-word;
  }
  [id^="getBlacklistData"] .blacklist-entry-row [class*="col-"]::before {
    flex: 0 0 auto;
    color: var(--white);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  /* Einträge-Zellen (haben Klassen) */
  [id^="getBlacklistData"] .blacklist-entry-row .blacklist-entry-value::before { content: "Wert"; }
  [id^="getBlacklistData"] .blacklist-entry-row .blacklist-entry-date::before { content: "Erstellt"; }
  /* Verlauf-Zellen (ohne Klassen → Spalten-Reihenfolge) */
  [id^="blacklistLogContainer-"] .blacklist-entry-row .row > [class*="col-"]:nth-child(1)::before { content: "Zeitpunkt"; }
  [id^="blacklistLogContainer-"] .blacklist-entry-row .row > [class*="col-"]:nth-child(2)::before { content: "Aktion"; }
  [id^="blacklistLogContainer-"] .blacklist-entry-row .row > [class*="col-"]:nth-child(3)::before { content: "Details"; }
  [id^="blacklistLogContainer-"] .blacklist-entry-row .row > [class*="col-"]:nth-child(4)::before { content: "Wer"; }
  /* Löschen-Spalte: Button rechts, kein Label — Spezifität muss die generische
     col-Regel (0,4,0) schlagen, sonst bleibt space-between */
  [id^="getBlacklistData"] .blacklist-entry-row .row > [class*="col-"].blacklist-entry-actions {
    justify-content: flex-end !important;
  }
  /* Delete-Form (Mail) nicht auf volle Breite strecken (generische Modal-Form-Regel) */
  [id^="getBlacklistData"] .blacklist-entry-row .blacklist-entry-actions form {
    width: auto !important;
    margin: 0 !important;
    display: inline-flex !important;
  }
  /* Löschen-Button kompakt (34x34-Paket wie Listen-Aktionen) */
  [id^="getBlacklistData"] .blacklist-entry-row .btn_delete,
  [id^="getBlacklistData"] .blacklist-entry-row .blacklist-delete-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  [id^="getBlacklistData"] .blacklist-entry-row .btn_delete > i,
  [id^="getBlacklistData"] .blacklist-entry-row .blacklist-delete-btn > i {
    margin: 0 !important;
  }
  /* Scroll-Container: erzwungenes padding-right schneidet Cards ab */
  [id^="blacklistEntriesContainer-"],
  [id^="blacklistLogContainer-"] {
    padding-right: 0 !important;
  }
  /* Einträge-hinzufügen-Modal: Textarea volle Breite */
  [id^="setEntry"] textarea,
  #setBlacklistEntry textarea {
    width: 100% !important;
  }

  /* Benachrichtigungen-Modal hat im Header zusaetzliche Aktions-Buttons
     ("Alle gelesen" / "Alle loeschen") in einem absolut positionierten Container
     (Desktop: oben rechts). Auf Mobile ueberlappt das mit dem zentrierten Titel
     und dem Close-Button. → Container statisch unter den Header setzen, eigene
     zentrierte Reihe. */
  #getMessage .modal-content > .position-absolute:has(#btnMarkAllRead) {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: flex !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    /* margin-top reduziert (war 0.85rem) — Abstand Header→Buttons wie bei jd-partner */
    margin: 0.25rem 0 0.75rem 0 !important;
  }
  #getMessage #btnMarkAllRead,
  #getMessage #btnDeleteAll {
    width: auto !important;
    height: auto !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }

  /* Vorschau-Modal: Geraete-Umschalter (Desktop/Tablet/Mobile, setzen die
     iframe-Breite) auf Mobile ausblenden — der Bildschirm ist selbst nur ~375px,
     Desktop/Tablet wuerden breiter als der Viewport (horizontaler Scroll).
     Das WM wird in voller Modal-Breite (= Mobile-Ansicht) gezeigt. */
  .preview-device-btns {
    display: none !important;
  }

  /* =========================================================
     4.4.c BEARBEITEN-MODAL (#getNewsletterData) — erster Durchlauf
     Das Modal traegt Desktop-Markup mit absolut positioniertem
     Stats-Header, Geraete-Umschalter im Details-Tab und einer
     umbrechenden Haupt-Tab-Leiste. Hier die groebsten mobilen
     Kollisionen entschaerfen — rein per CSS, Markup unangetastet.
     ========================================================= */

  /* (1) "Zuletzt aktualisiert: …" + Refresh-Button sitzt absolut oben
     rechts (position:absolute; top:1rem; right:1rem) und ueberlappt mobil
     Titel UND Close-Button. Mobil: Refresh-Button oben LINKS auf gleicher
     Hoehe wie der Close-Button (×, top:7px), der Text klein DARUNTER.
     -> absolut oben links, Spalte; column-reverse weil im DOM der Text-Span
        VOR dem Button steht (Button soll oben sein). */
  [id^="getNewsletterData"] .nl-stats-refresh {
    position: absolute !important;
    top: 7px !important;
    left: 7px !important;
    right: auto !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0.2rem !important;
    width: auto !important;
    max-width: 9rem !important;
    margin: 0 !important;
  }
  [id^="getNewsletterData"] .nl-stats-refresh > span {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: left !important;
    color: rgba(255, 255, 255, 0.7) !important;
  }

  /* (2) Geraete-Umschalter (Desktop/Tablet/Mobil) im Details-Tab
     ausblenden — analog zum Vorschau-Modal. Der Wrapper hat keine
     Klasse, traegt aber genau die drei btn_add mit title=Desktop/Tablet/…
     -> per :has() den Container treffen. */
  [id^="getNewsletterData"] div:has(> .btn_add[title="Desktop"]):has(> .btn_add[title="Tablet"]) {
    display: none !important;
  }

  /* (3) ALLE Tab-Leisten im Modal (Haupt-Leiste Uebersicht/Details/… UND die
     inneren Sub-Leisten: WM-Leiste "Alle/WM1/WM2/…", HTML/TEXT/Details):
     NICHT umbrechen, sondern einzeilig HORIZONTAL SCROLLBAR. Der angeschnittene
     letzte Tab gibt den Scroll-Hinweis. Scrollbar versteckt (Projekt-Standard). */
  [id^="getNewsletterData"] ul.nav-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Flex-Container nimmt die Hoehe der list-item-Kinder nicht automatisch an
       (kollabiert sonst auf ~1px) -> min-height erzwingen. */
    min-height: 42px !important;
    align-items: flex-start !important;
  }
  /* Leisten mit eingebetteten Upload-Buttons (.position-absolute): umbrechen
     lassen — die Upload-Buttons sind width:100% und brauchen eine eigene Zeile,
     nowrap wuerde sie quetschen. */
  [id^="getNewsletterData"] ul.nav-tabs:has(.nav-item.position-absolute) {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    min-height: 0 !important;
    align-items: initial !important;
  }
  [id^="getNewsletterData"] ul.nav-tabs::-webkit-scrollbar {
    display: none;
  }
  [id^="getNewsletterData"] ul.nav-tabs:not(:has(.nav-item.position-absolute)) > li {
    flex: 0 0 auto !important;
  }
  [id^="getNewsletterData"] ul.nav-tabs > li > .nav-link {
    white-space: nowrap !important;
  }

  /* Kampagnen-Detail-Modal-Titel so gross wie die Tab-Schrift (0.85rem) — auf
     echten Touch-Geraeten wirkte 1.25rem (+ Font-Boosting) viel zu gross.
     Fett + letter-spacing bleibt, damit er als Ueberschrift lesbar ist. */
  [id^="getNewsletterData"] .modal-header-wrapper h2,
  [id^="getNewsletterData"] .modal-header-wrapper .header-style {
    font-size: 0.85rem !important;
  }

  /* Header-Reihenfolge per flex-order (Parent .mc_a_row ist flex-column):
     Titel -> Datum -> Strich -> Tabs -> Inhalt. Alle explizit ordnen, sonst
     rutschen Datum/Strich hinter den order:0-Default-Content. */
  [id^="getNewsletterData"] .modal-header-wrapper { order: 0 !important; }
  [id^="getNewsletterData"] .nl-stats-refresh { order: 1 !important; }
  [id^="getNewsletterData"] .border-span { order: 2 !important; }
  [id^="getNewsletterData"] ul.nav-tabs { order: 3 !important; }
  [id^="getNewsletterData"] .tab-content { order: 4 !important; }

  /* Header-Trennstrich (.border-span): liegt im flex-column-Container und
     kollabiert dort auf 0 (height wird zur schrumpfbaren Main-Size) -> der
     tuerkise Strich war unsichtbar. flex-shrink:0 + min-height fixen das. */
  [id^="getNewsletterData"] .border-span {
    flex-shrink: 0 !important;
    min-height: 2px !important;
  }

  /* Refresh-Button (.nl-stats-refresh-btn): absolut oben LINKS auf Hoehe des
     X-Buttons (top:7px;right:7px) — als Gegenstueck zum X rechts. */
  [id^="getNewsletterData"] .nl-stats-refresh-btn {
    position: absolute !important;
    top: 7px !important;
    left: 7px !important;
    right: auto !important;
    z-index: 11 !important;
  }

  /* "Zuletzt aktualisiert"-Block (.nl-stats-refresh): nur noch das Datum, zentriert
     als Subtitle direkt UNTER dem Namen (per order zwischen Titel und Strich).
     Das Praefix "Zuletzt aktualisiert:" (Textknoten im aeusseren span) wird per
     font-size:0 ausgeblendet; nur das .nl-stats-updated-label bekommt Groesse.
     align-self:stretch + max-width:none, sonst bleibt der Block content-schmal
     und das Datum sitzt nicht mittig. */
  [id^="getNewsletterData"] .nl-stats-refresh {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    align-self: stretch !important;
    text-align: center !important;
    margin: 0.15rem 0 0.4rem 0 !important;
  }
  [id^="getNewsletterData"] .nl-stats-refresh > span {
    font-size: 0 !important;
    white-space: nowrap !important;
  }
  [id^="getNewsletterData"] .nl-stats-refresh .nl-stats-updated-label {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
  }

  /* Blacklisten: Pills NICHT als 4-Spalten-Layout (Namen brechen um / werden
     abgeschnitten), sondern 1 Item pro Zeile ueber volle Breite. */
  /* (a) Bearbeiten-Tab (type=update): Container ist ein Inline-Grid mit
     4 Spalten -> per :has() auf 1 Spalte. Items (.boxBl) sind bereits Cards.
     Segmente (.seg-update-item) im selben Bearbeiten-Grid-Muster mitnehmen —
     gleiches Problem, gleicher Fix. */
  [id^="getNewsletterData"] div:has(> .bl-update-item),
  [id^="getNewsletterData"] div:has(> .seg-update-item) {
    grid-template-columns: 1fr !important;
  }
  /* Details-Tab (Absender/Betreff/Preheader je Variante): .details-wrapper
     (.row.mt-1) wird durch eine generische Mobile-Regel zu einem 2-Spalten-
     CSS-Grid — dieselbe Ursache wie bei Blacklisten/Segmente (siehe
     div:has(> .bl-update-item) oben). Grid-Container selbst auf 1 Spalte,
     Kind-Fix (flex/width) allein wirkt bei display:grid nicht. */
  [id^="getNewsletterData"] .row.mt-1.details-wrapper {
    grid-template-columns: 1fr !important;
  }
  [id^="getNewsletterData"] .details-wrapper > .col {
    width: 100% !important;
    margin-bottom: 0.75rem !important;
  }

  /* Ranking-Tab (Absender/Betreff/Preheader/Öffnungsrate je Variante):
     gleiches Muster wie die Spamtest-Ergebnisliste (Zeile 1383+) — Tabellen-
     Kopfzeile im Karten-Layout ausblenden statt sie zu stauchen (.request-header
     hat fixe height:2.5rem, waere bei gestapelten Labels sonst uebergequollen
     und haette die Tab-Leiste darueber ueberlappt). */
  [id^="getNewsletterData"] [id^="ranking_"] .request-header {
    display: none !important;
  }
  /* .col-lg-3/.col-lg-2 haben inline style="display:inline-block" — das
     hebelt Bootstraps eigenes Mobile-Stacking (Grid-Klassen greifen erst ab
     lg) aus, Zeilen bleiben nebeneinander gequetscht. Jede Varianten-Karte:
     Absender fett als Titel, Betreff/Preheader normal, Oeffnungsrate als
     Badge (analog Score-Pill bei Spamtest). */
  [id^="getNewsletterData"] [id^="ranking_"] .col-lg-3,
  [id^="getNewsletterData"] [id^="ranking_"] .col-lg-2 {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.4rem !important;
  }
  [id^="getNewsletterData"] [id^="ranking_"] .accordion-item .col-lg-3:first-child input {
    font-weight: 700 !important;
  }
  [id^="getNewsletterData"] [id^="ranking_"] .accordion-item .col-lg-2 input {
    background: rgba(0, 0, 0, 0.3) !important;
  }

  /* Spamtest-Regelliste (Score/Name/Beschreibung nebeneinander in 3 Spalten,
     bei laengerem Beschreibungstext auf Mobile viel zu eng) -> gestapelt,
     gilt fuer Header-Zeile UND jede Regel-Zeile (gleiches Markup-Muster). */
  [id^="getNewsletterData"] [id^="spamtest"] .request-header > div[style*="display:flex"],
  [id^="getNewsletterData"] [id^="spamtest"] .accordion-item > div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 0.3rem !important;
  }
  [id^="getNewsletterData"] [id^="spamtest"] .request-header > div[style*="display:flex"] > div,
  [id^="getNewsletterData"] [id^="spamtest"] .accordion-item > div[style*="display:flex"] > div {
    flex: 0 0 auto !important;
    width: 100% !important;
    text-align: left !important;
  }
  /* (b) Erstellen-Dialog (type=set): .bl-set-item hatte inline width:calc(25%)
     (im Markup entfernt) -> jetzt volle Breite, linksbuendig als Card. */
  .bl-set-item {
    width: 100% !important;
    text-align: left !important;
    padding: 0.7rem 0.75rem 0.7rem 2rem !important;
    margin: 0 !important;
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
    box-sizing: border-box !important;
  }
  .bl-set-item .fa-check {
    left: 0.7rem !important;
  }

  /* ===========================================================================
     4.4.b MODAL-INHALT MOBILE — erster Entwurf (2026-06-16)
     Die drei Header-Modals tragen Desktop-Markup (Bootstrap-Grids, feste rem-
     Breiten, absolute Positionierung). Hier wird der INHALT mobil zu Card-
     Stacks umgebaut — rein per CSS-Override, ohne das geteilte Desktop-Markup
     anzufassen. Iterativ verfeinert.
     =========================================================================== */

  /* --- BENACHRICHTIGUNGEN (#getMessage): Neu im einheitlichen Card-Stil ---
     Markup pro Item: .accordion-item.message-item > .container-fluid mit
     col-lg-3 (Titel-Input) + col-lg-6 (Message-Box mit <br>-Text) + col-lg-2
     (Zeit-Input) + Eye/Trash (absolut) + Unread-Dot (absolut links).
     Mobil als zusammenhaengende Notification-Card: Titel+Dot oben, Message als
     normaler Text (KEINE eigene Box), Zeit klein, Eye+Trash zentriert unten. */

  /* #messages_container hat eine eigene Scrollbar (overflow-y:auto +
     max-height:40.5rem) — die nimmt ~15px Breite weg, daher waren die Cards
     schmaler als die Anfragen-Cards. Eigene Scrollbar killen, das Modal-Content
     scrollt (wie bei Anfragen). */
  #getMessage #messages_container {
    max-height: none !important;
    overflow: visible !important;
  }
  /* Das umschliessende <form> + die Card auf volle Breite. */
  #getMessage .formDeleteMessage {
    width: 100% !important;
    margin: 0 !important;
  }
  /* Card */
  #getMessage .message-item {
    width: 100% !important;
    box-sizing: border-box !important;
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
    padding: 0.85rem !important;
    margin-bottom: 0.5rem !important;
  }
  /* Container: vertikaler Stack, Platz fuer absolute Buttons aufheben */
  #getMessage .message-item .container-fluid {
    display: flex !important;
    flex-flow: row wrap !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 !important;
    position: static !important;
  }
  /* Alle 3 Spalten volle Breite, eigene Zeile */
  #getMessage .message-item .container-fluid > [class*="col-lg"] {
    display: block !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    vertical-align: initial !important;
    margin: 0 !important;
  }
  #getMessage .message-item .container-fluid > [class*="col-lg"] .px-1 {
    padding: 0 !important;
  }
  /* Titel (col-lg-3): fett, links, Platz fuer Dot davor */
  #getMessage .message-item .container-fluid > .col-lg-3 {
    order: 1 !important;
    margin-bottom: 0.4rem !important;
    padding-left: 1.1rem !important;   /* Platz fuer Unread-Dot */
    position: relative !important;
  }
  #getMessage .message-item .container-fluid > .col-lg-3 input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: left !important;
    padding: 0 !important;
    height: auto !important;
    color: var(--white) !important;
    opacity: 1 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
  }
  /* Message (col-lg-6): normaler Text, KEINE eigene Box */
  #getMessage .message-item .container-fluid > .col-lg-6 {
    order: 2 !important;
  }
  #getMessage .message-item .container-fluid > .col-lg-6 .form-control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 0 0 1.1rem !important;   /* fluchtet mit Titel */
    min-height: 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    color: rgba(255,255,255,0.9) !important;
  }
  /* Zeit (col-lg-2): klein, dezent, eigene Zeile */
  #getMessage .message-item .container-fluid > .col-lg-2 {
    order: 3 !important;
    margin-top: 0.5rem !important;
    padding-left: 1.1rem !important;
  }
  #getMessage .message-item .container-fluid > .col-lg-2 input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: left !important;
    padding: 0 !important;
    height: auto !important;
    font-size: 0.75rem !important;
    color: var(--white) !important;
    opacity: 0.6 !important;
  }
  /* Unread-Dot: aus absolute → an die linke Kante des Titels (vertikal mittig) */
  #getMessage .message-item .container-fluid > .unread-dot {
    position: absolute !important;
    top: 1.15rem !important;
    left: 0.85rem !important;
    transform: none !important;
    order: 0 !important;
  }
  /* Eye + Trash: aus absolute → zentrierte Reihe ganz unten */
  #getMessage .message-item .container-fluid > .btn_add,
  #getMessage .message-item .container-fluid > .btn_delete,
  #getMessage .message-item .container-fluid > button {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    order: 4 !important;
    flex: 0 0 auto !important;
    width: 2.6rem !important;
    height: 2.6rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0.7rem 0.3rem 0 0.3rem !important;
  }
  /* "Alle gelesen" / "Alle loeschen" + Dropdown-Container hat keine col-lg —
     sicherstellen dass nur message-items als Card gestylt werden (oben erledigt) */

  /* --- ANFRAGEN (#getRequest): 6-Spalten-Tabelle → Card mit Label→Wert ---
     Struktur pro Anfrage: .accordion-item > div[flex, padding-right:8.25rem] mit
     6 flex-Spalten (Kampagne/Start/Paymodel/Payout/Volume/Erhalten,
     je input.form-control readonly) + 3 absolute Buttons (Ordner/Haekchen/X).
     Die Werbefläche ist seit 25.07.2026 keine Spalte mehr, sondern eine
     Registerkarte je Werbefläche (.nav-tabs#requestTabs im Partial).
     Header-Leiste .request-header weg, Spalten gestapelt als Label→Wert,
     Buttons in eine Reihe unten. Alles weiss. */

  /* Header-Leiste ausblenden */
  #getRequest .request-header,
  #getRequest [class*="header_list"] {
    display: none !important;
  }
  /* Werbeflächen-Tabs duerfen umbrechen (mehrere Flaechen passen sonst nicht) */
  #getRequest #requestTabs {
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
    row-gap: 0.25rem !important;
  }
  #getRequest #requestTabs .nav-link {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.6rem !important;
  }
  /* Scroll-Container entstacheln (falls vorhanden) */
  #getRequest div[style*="overflow-y"] {
    max-height: none !important;
    overflow: visible !important;
  }
  /* Anfrage = Card */
  #getRequest .accordion-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
    padding: 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }
  /* Spalten-Container: row wrap — Daten-Zeilen je volle Breite (eigene Zeile),
     die 3 Buttons in einer gemeinsamen Reihe unten. */
  #getRequest .accordion-item > div[style*="flex"] {
    display: flex !important;
    flex-flow: row wrap !important;
    gap: 0 !important;
    padding-right: 0 !important;
    position: static !important;
    justify-content: center !important;
  }
  /* Jede Spalte → Label→Wert-Zeile (volle Breite, eigene Zeile) */
  #getRequest .accordion-item > div[style*="flex"] > div[style*="flex"] {
    flex: 0 0 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    padding: 0.4rem 0 !important;
    border: none !important;
  }
  /* Labels per ::before (Reihenfolge = Header).
     Bewusst OHNE flex-Wert im Selektor: [style*="flex: 1"] matcht als Substring
     auch "flex: 1.3"/"flex: 1.7" — mit den neuen Breiten würden dadurch Labels
     auf die falsche Spalte rutschen. nth-of-type über die div-Spalten ist eindeutig. */
  #getRequest .accordion-item > div[style*="flex"] > div:nth-of-type(1)::before { content: "Kampagne"; }
  #getRequest .accordion-item > div[style*="flex"] > div:nth-of-type(2)::before { content: "Start"; }
  #getRequest .accordion-item > div[style*="flex"] > div:nth-of-type(3)::before { content: "Paymodel"; }
  #getRequest .accordion-item > div[style*="flex"] > div:nth-of-type(4)::before { content: "Payout"; }
  #getRequest .accordion-item > div[style*="flex"] > div:nth-of-type(5)::before { content: "Volume"; }
  #getRequest .accordion-item > div[style*="flex"] > div:nth-of-type(6)::before { content: "Erhalten"; }
  #getRequest .accordion-item > div[style*="flex"] > div[style*="flex"]::before {
    flex: 0 0 auto !important;
    color: var(--white) !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
  }
  /* readonly-Inputs als rechtsbuendiger Text, weiss */
  #getRequest .accordion-item .px-1,
  #getRequest .accordion-item > div[style*="flex"] > div[style*="flex"] {
    padding-left: 0 !important;
  }
  #getRequest .accordion-item input.form-control {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--white) !important;
    text-align: right !important;
    padding: 0 !important;
    height: auto !important;
    font-size: 0.85rem !important;
    opacity: 1 !important;
  }
  /* 3 Aktions-Buttons (Ordner/Haekchen/X): aus absolute → nebeneinander in
     einer zentrierten Reihe unten. Sie sind direkte Kinder des row-wrap-
     Containers; flex:0 0 auto stellt sie nebeneinander, die vorhergehende
     letzte Daten-Zeile (flex:100%) erzwingt den Umbruch davor. */
  #getRequest .accordion-item > div[style*="flex"] > .btn_add,
  #getRequest .accordion-item > div[style*="flex"] > .btn_delete,
  #getRequest .accordion-item > div[style*="flex"] > button {
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    width: 2.6rem !important;
    height: 2.6rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0.7rem 0.3rem 0 0.3rem !important;
  }

  /* --- PROFIL (#userSettings): Form-Reihen entstapeln + gleichmaessiger Abstand ---
     Echte Struktur: .row.mt-1 > .col (mehrere nebeneinander) > .tooltip-container
     > input.input-basic. Auf Mobile sollen alle Felder untereinander mit EINEM
     einheitlichen Abstand stehen — nicht abwechselnd eng (innerhalb row) und
     weit (mt-1 zwischen rows). */
  #userSettings .tab-content .row {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;       /* mt-1 etc. neutralisieren */
    gap: 0 !important;
    row-gap: 0 !important;
  }
  #userSettings .tab-content .row > .col,
  #userSettings .tab-content .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 0.6rem 0 !important;   /* EIN einheitlicher Abstand pro Feld */
  }
  /* Inputs volle Breite, einheitliche Hoehe */
  #userSettings .tab-content .input-basic,
  #userSettings .tab-content input.form-control,
  #userSettings .tab-content .form-control {
    width: 100% !important;
  }
  /* Tabs duerfen umbrechen (nicht abschneiden) */
  #userSettings .nav-tabs {
    flex-wrap: wrap !important;
  }

  /* --- PROFIL → VERLAUF-Tab (#userLogToolUser): Tabelle → Card-Stack ---
     Struktur: Header-Leiste (.container-fluid mit .row > .col-2/2/3/2/1/2:
     Zeitpunkt/User/Aktion/Details/Endgeraet/IP) + Liste #userLogList mit pro
     Eintrag .accordion-item > .container-fluid > .row > .col-* > input.
     Mobil: Header-Leiste weg, jede Zeile = Card mit Label→Wert-Paaren
     (Labels per ::before, da das Markup sie pro Zelle nicht mitfuehrt). */

  /* Header-Leiste (die erste .container-fluid mit Tuerkis-Gradient) ausblenden */
  #userLogToolUser > .container-fluid:first-child {
    display: none !important;
  }
  /* Scroll-Container entstacheln */
  #userLogToolUser #userLogList {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }
  /* Jeder Log-Eintrag → Card */
  #userLogToolUser #userLogList .accordion-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
    padding: 0.6rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }
  #userLogToolUser #userLogList .accordion-item .container-fluid {
    padding: 0 !important;
  }
  /* Die Zeile entstapeln (mein generischer .row-flex-column greift hier auch,
     aber wir wollen Label→Wert-Zeilen statt nur gestapelte Werte) */
  #userLogToolUser #userLogList .accordion-item .row {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  #userLogToolUser #userLogList .accordion-item .row > [class*="col-"] {
    display: flex !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.3rem 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    gap: 0.75rem !important;
  }
  #userLogToolUser #userLogList .accordion-item .row > [class*="col-"]:last-child {
    border-bottom: none !important;
  }
  /* Label vor jeder Zelle (Reihenfolge entspricht der Header-Leiste) */
  #userLogToolUser #userLogList .accordion-item .row > .col-2:nth-child(1)::before { content: "Zeitpunkt"; }
  #userLogToolUser #userLogList .accordion-item .row > .col-2:nth-child(2)::before { content: "User"; }
  #userLogToolUser #userLogList .accordion-item .row > .col-3:nth-child(3)::before { content: "Aktion"; }
  #userLogToolUser #userLogList .accordion-item .row > .col-2:nth-child(4)::before { content: "Details"; }
  #userLogToolUser #userLogList .accordion-item .row > .col-1:nth-child(5)::before { content: "Endgerät"; }
  #userLogToolUser #userLogList .accordion-item .row > .col-2:nth-child(6)::before { content: "IP"; }
  #userLogToolUser #userLogList .accordion-item .row > [class*="col-"]::before {
    flex: 0 0 auto !important;
    color: var(--white) !important;            /* Label WEISS */
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
  }
  /* Werte als schlichter, rechtsbuendiger Text (kein input-basic-Container) */
  #userLogToolUser #userLogList .accordion-item .px-1 {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 !important;
  }
  #userLogToolUser #userLogList .accordion-item input.form-control {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--white) !important;            /* Wert WEISS */
    text-align: right !important;
    padding: 0 !important;
    height: auto !important;
    font-size: 0.85rem !important;
    opacity: 1 !important;
  }

  /* --- PROFIL → EINSTELLUNGEN-Tab (#notificationSettingsToolUser) ---
     Struktur: .row > .col.d-flex (gap:3rem, justify-center) > 3x .switch-button
     (Toggle oben, Label drunter). Desktop: 3 nebeneinander. Mobil: passt nicht,
     ragt in die Tab-Leiste. → untereinander, je Zeile Label links + Toggle rechts. */
  /* Hoehere Spezifitaet als der generische .tab-content .row-Reset, sonst greift
     margin-top nicht (gleicher !important-Konflikt). */
  #userSettings .tab-content #notificationSettingsToolUser > .row {
    margin: 1.5rem 0 0 0 !important;   /* mehr Luft zur Tab-Leiste */
  }
  #notificationSettingsToolUser > .row > .col {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    align-items: stretch !important;
    padding: 0 !important;
    justify-content: flex-start !important;
  }
  /* Jeder Switch als Zeile: Label links, Toggle rechts */
  #notificationSettingsToolUser .switch-button {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0.5rem 0 !important;
    margin-bottom: 0.5rem !important;
    border: none !important;
    gap: 1rem !important;
  }
  #notificationSettingsToolUser .switch-button:last-child {
    margin-bottom: 0 !important;
  }
  /* Label links, kein margin-top-Hack, weiss */
  #notificationSettingsToolUser .switch-button label {
    order: 0 !important;
    margin: 0 !important;
    color: var(--white) !important;
    font-size: 0.9rem !important;
    text-align: left !important;
    flex: 1 1 auto !important;
  }
  /* Toggle-Switch rechts — Eigengeometrie der switch-Komponente NICHT stauchen
     (sie hat fixe Innenmasse: --toggleHeight 25px). align-self verhindert dass
     das flex-align-items des Containers die Hoehe zusammendrueckt. */
  #notificationSettingsToolUser .switch-button .switch-outer {
    order: 1 !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    margin: 0 !important;
    height: 25px !important;
    width: 60px !important;
  }
  #notificationSettingsToolUser .switch-button .switch-outer .button {
    height: 25px !important;
  }

  /* --- PROFIL → BESTELLUNGEN-Tab (#ordersToolUser): 5-Spalten-Tabelle → Cards ---
     Struktur: .request-header (Header-Leiste, Inline-flex) + pro Bestellung
     .accordion-item > .order-row-header (klickbar, flex-Spalten + Chevron) +
     .order-details (aufklappbar, innere Domain-Tabelle mit flex-Spalten).
     Mobil: Header weg, Bestell-Zeile = Card-Kopf, Domains als Sub-Cards. */

  /* Alles im Bestellungen-Tab weiss + volle Deckkraft (ueberschreibt die
     grauen Inline-Styles im Markup: rgba(255,255,255,0.6/0.8/0.85), opacity:0.6).
     Der Status-SPAN hat eine eigene Inline-color (gelb/gruen) — die gewinnt
     gegen Vererbung, daher hier NICHT auf div-Ebene erzwungen ausser fuer divs. */
  #ordersToolUser,
  #ordersToolUser div {
    color: var(--white) !important;
    opacity: 1 !important;
  }

  /* Header-Leiste der Bestell-Uebersicht ausblenden */
  #ordersToolUser .request-header {
    display: none !important;
  }
  /* Scroll-Container entstacheln */
  #ordersToolUser > .row > .col > div[style*="overflow-y"] {
    max-height: none !important;
    overflow: visible !important;
  }
  /* Bestellung = Card */
  #ordersToolUser .accordion-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
    padding: 0.6rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }
  /* Bestell-Kopf-Zeile entstapeln: flex-wrap, Bestellnr+Status oben, Rest drunter */
  #ordersToolUser .order-row-header {
    display: grid !important;
    grid-template-columns: 1fr auto auto !important;  /* Bestellnr | Status | Chevron */
    align-items: center !important;
    gap: 0.4rem 0.6rem !important;
    padding: 0.2rem 0 !important;
    color: var(--white) !important;
  }
  /* Inline-flex-Spalten im Kopf neutralisieren + neu zuordnen */
  #ordersToolUser .order-row-header > div[style*="flex"] {
    flex: none !important;
    text-align: left !important;
    font-size: 0.85rem !important;
    color: var(--white) !important;
  }
  /* Spalte 1 = Bestellnummer (flex:2): Zeile 1 links */
  #ordersToolUser .order-row-header > div[style*="flex: 2"] {
    grid-column: 1 !important;
    grid-row: 1 !important;
    font-weight: 600 !important;
  }
  /* Status (5. div, flex:1 mit span): Zeile 1 mitte */
  #ordersToolUser .order-row-header > div[style*="flex: 1"]:nth-of-type(4) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
  /* Chevron (flex:0 0 2rem): Zeile 1 rechts, ueber beide Zeilen */
  #ordersToolUser .order-row-header > div[style*="2rem"] {
    grid-column: 3 !important;
    grid-row: 1 / 3 !important;
    align-self: center !important;
  }
  /* Datum (2. div) + Domains (3. div) + Brutto (4. div, flex:1) → Zeile 2 als
     Label→Wert-Inline */
  #ordersToolUser .order-row-header > div[style*="flex: 1"]:nth-of-type(2) { grid-column: 1 !important; grid-row: 2 !important; }
  #ordersToolUser .order-row-header > div[style*="flex: 1"]:nth-of-type(3) { grid-column: 1 !important; grid-row: 2 !important; }
  #ordersToolUser .order-row-header > div[style*="flex: 1"]:nth-of-type(2)::before { content: "Datum: "; }
  #ordersToolUser .order-row-header > div[style*="flex: 1"]:nth-of-type(3)::before { content: "Domains: "; }
  /* Datum/Domains/Brutto in einer Zeile-2 Reihe zusammenfassen via flex auf
     einem Wrapper geht nicht (Markup), daher: Zeile 2 = nur Datum + Brutto +
     Domains untereinander linksbuendig, klein */
  #ordersToolUser .order-row-header > div[style*="flex: 1"]:not(:nth-of-type(4)) {
    grid-column: 1 / 3 !important;
    grid-row: auto !important;
    text-align: left !important;
    font-size: 0.78rem !important;
    opacity: 1 !important;
  }
  #ordersToolUser .order-row-header > div[style*="flex: 1"]:nth-of-type(4)::before {
    content: "" !important;
  }

  /* --- Domain-Details (.order-details): innere Tabelle → Sub-Cards --- */
  /* Detail-Header-Zeile (Domain/Werbeflaeche/Optionen/Netto/USt/Brutto) ausblenden */
  #ordersToolUser .order-details > div[style*="border-bottom"]:first-child {
    display: none !important;
  }
  /* Jede Domain-Zeile → Sub-Card mit gestapelten Label→Wert.
     Die Summen-Zeile (hat border-top + flex:6 erste Zelle) ausnehmen. */
  #ordersToolUser .order-details > div[style*="flex"]:not(:first-child):not([style*="border-top"]) {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.2rem !important;
    background: rgba(0,0,0,0.18) !important;
    border-radius: var(--border) !important;
    padding: 0.5rem 0.6rem !important;
    margin-top: 0.4rem !important;
  }
  /* Summen-Zeile: kompakt, gestapelt, ohne Domain-Labels */
  #ordersToolUser .order-details > div[style*="border-top"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.2rem !important;
    margin-top: 0.6rem !important;
    padding: 0.6rem 0.6rem 0 !important;
  }
  #ordersToolUser .order-details > div[style*="border-top"] > div {
    flex: none !important;
    display: flex !important;
    justify-content: space-between !important;
    text-align: left !important;
    color: var(--white) !important;
    font-size: 0.85rem !important;
    padding-right: 0 !important;
  }
  /* Labels fuer Summen-Zeile (Gesamt-Text / Netto / USt / Brutto) */
  #ordersToolUser .order-details > div[style*="border-top"] > div:nth-child(1) { display: none !important; } /* "Gesamt:"-Text weg */
  #ordersToolUser .order-details > div[style*="border-top"] > div:nth-child(2)::before { content: "Netto gesamt"; }
  #ordersToolUser .order-details > div[style*="border-top"] > div:nth-child(3)::before { content: "USt gesamt"; }
  #ordersToolUser .order-details > div[style*="border-top"] > div:nth-child(4)::before { content: "Brutto gesamt"; }
  #ordersToolUser .order-details > div[style*="border-top"] > div::before {
    flex: 0 0 auto !important;
    color: var(--white) !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
  }
  #ordersToolUser .order-details > div[style*="border-top"] > div:nth-child(4) {
    font-weight: 700 !important;
  }
  #ordersToolUser .order-details > div[style*="flex"]:not(:first-child):not([style*="border-top"]) > div {
    flex: none !important;
    text-align: left !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    color: var(--white) !important;
    font-size: 0.82rem !important;
  }
  /* Labels per ::before (Reihenfolge: Domain/Werbeflaeche/Optionen/Netto/USt/Brutto) */
  #ordersToolUser .order-details > div[style*="flex"]:not(:first-child):not([style*="border-top"]) > div:nth-child(1)::before { content: "Domain"; }
  #ordersToolUser .order-details > div[style*="flex"]:not(:first-child):not([style*="border-top"]) > div:nth-child(2)::before { content: "Werbefläche"; }
  #ordersToolUser .order-details > div[style*="flex"]:not(:first-child):not([style*="border-top"]) > div:nth-child(3)::before { content: "Optionen"; }
  #ordersToolUser .order-details > div[style*="flex"]:not(:first-child):not([style*="border-top"]) > div:nth-child(4)::before { content: "Netto"; }
  #ordersToolUser .order-details > div[style*="flex"]:not(:first-child):not([style*="border-top"]) > div:nth-child(5)::before { content: "USt"; }
  #ordersToolUser .order-details > div[style*="flex"]:not(:first-child):not([style*="border-top"]) > div:nth-child(6)::before { content: "Brutto"; }
  #ordersToolUser .order-details > div[style*="flex"]:not(:first-child):not([style*="border-top"]) > div::before {
    flex: 0 0 auto !important;
    color: var(--white) !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
  }
  /* Brutto-Zeile pro Domain hervorheben */
  #ordersToolUser .order-details > div[style*="flex"]:not(:first-child):not([style*="border-top"]) > div:nth-child(6) {
    font-weight: 600 !important;
  }

/* =============================================================================
   4.5 KAMPAGNEN-LISTE MOBILE (m-nl-*) — eingefuehrt 2026-06-16
   Card-basierte Kampagnen-Liste (getNewsletter), an Desktop-Liste angelehnt,
   mobil vereinfacht: Kopf (Status + Name + Paymodel) + Stat-Reihe (Volumen/
   Oeffner/Klicks) + aufklappbares Detail (Datum/Ziel/Unique) + Aktions-Reihe.
   Look 1:1 wie m-dash / m-sendout-item (color-mix darkblue 75%, var(--border)).
   ============================================================================= */
@media (max-width: 991px) {

  .m-nl-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* Das globale .m-subnav-content.has-row2 reserviert padding-top fuer die
       fixe Subnav — das ergibt hier ~51px Luft ueber dem ersten Item. Gewuenscht
       ist exakt der Item-Abstand (gap 0.6rem). Negativer Margin gleicht die
       ueberschuessige Luecke aus, sodass Nav→Item = Item→Item. */
    margin-top: -3.05rem;
  }

  /* ── Item-Card ── */
  .m-nl-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    padding: 0.75rem 0.85rem;
    overflow: hidden;
  }

  /* ── Kopf: Status-Icon | Name | Flags | Badge | Chevron ──
     Flexbox statt Grid, weil die Anzahl der Indikatoren (Blacklist/WM-Test)
     variabel ist — nur der Name dehnt sich (flex:1), alles andere fix. */
  .m-nl-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
  }
  /* Status-Icon + Indikatoren (Blacklist/WM-Test) als linke Gruppe */
  .m-nl-status {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex: 0 0 auto;
    font-size: 0.95rem;
  }
  .m-nl-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* Indikator-Icons (Blacklist / Zielgruppe / WM-Test) — sitzen in der linken Status-Gruppe */
  .m-nl-flag-blacklist {
    color: var(--lightred);      /* #eb5543 — wie Desktop fa-not-equal */
    font-size: 1rem;
  }
  .m-nl-flag-zielgruppe {
    color: var(--white);         /* wie Desktop fa-location-dot (#fff) */
    font-size: 0.9rem;
  }
  .m-nl-flag-wmtest {
    color: var(--white);
    font-size: 0.8rem;
  }

  /* Badge (Paymodel intern / P bei Partner) — schmale Pille */
  .m-nl-paymodel {
    flex: 0 0 auto;
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--border);
    padding: 0.15rem 0.45rem;
  }
  .m-nl-partner-badge {
    background: var(--main_partner);
    /* Gleiche Breite wie die Paymodel-Pille (TKP/CPL/CPO/CPC = 3 Zeichen),
       damit P-Badge und Paymodel optisch gleich breit sind; Text zentriert. */
    min-width: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Partner-Kampagne: P-Badge + Paymodel-Pille als zusammengehörige Gruppe,
     engeres Gap als das Header-Gap (0.55rem), damit beide optisch zusammenstehen. */
  .m-nl-badge-group {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
  }
  .m-nl-chev {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    transition: transform 0.2s ease;
  }
  .m-nl-item.is-open .m-nl-chev {
    transform: rotate(180deg);
  }

  /* ── Stat-Reihe (immer sichtbar): 3-col Grid ── */
  .m-nl-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.6rem;
  }
  .m-nl-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-nl-stat-lbl {
    color: var(--white);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  .m-nl-stat-val {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
  }

  /* ── Detail (aufklappbar) ── */
  .m-nl-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, margin-top 0.28s ease;
    margin-top: 0;
  }
  .m-nl-item.is-open .m-nl-detail {
    max-height: 16rem;
    margin-top: 0.5rem;
  }
  .m-nl-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
  }
  .m-nl-detail-cell {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-nl-detail-lbl {
    color: var(--white);
    font-size: 0.68rem;
    margin-bottom: 0.25rem;
  }
  .m-nl-detail-val {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
  }

  /* ── Aktions-Reihe ── */
  .m-nl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .m-nl-actions .btn_add,
  .m-nl-actions .btn_add_,
  .m-nl-actions .btn_delete {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;   /* neutralisiert @media(hover:none) min-height:44px — sonst 41.6x44 rechteckig (Gotcha #113) */
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem;
  }
  .m-nl-actions .btn_add > i,
  .m-nl-actions .btn_add_ > i,
  .m-nl-actions .btn_delete > i {
    margin: 0 !important;
  }
  .m-nl-actions .m-nl-trash {
    display: inline-flex;
    margin: 0;
  }
  /* Deaktivierte Buttons (closed/paused/keine Freigabe/alle freigegeben) */
  .m-nl-actions .m-nl-btn-disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
  }

  /* ── Stamp-Dropdown (Werbemittel freigeben) — mobil als volle-Breite-Block
     unter der Aktionsreihe statt 232px rechts schwebend (Desktop). Der
     Handler togglet display:none/flex; hier nur Layout + Card-Optik.
     Wichtig: deutlich kontrastierender Hintergrund (voll, nicht 75%) +
     Rand + Titel, sonst verschmilzt es mit dem gleichfarbigen Item-BG und
     wirkt nicht wie ein Auswahl-Menue. ── */
  .m-nl-stamp-dropdown {
    width: 100% !important;
    margin: 0.6rem 0 0 0 !important;
    padding: 0.35rem !important;
    background: var(--darkblue) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--border) !important;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 16px -4px !important;
  }
  /* Titel-Zeile, damit klar ist was das Menue tut */
  .m-nl-stamp-dropdown::before {
    content: "Werbemittel freigeben";
    display: block;
    padding: 0.35rem 0.6rem 0.45rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.25rem;
  }
  .m-nl-stamp-dropdown .nl-stamp-dropdown-item {
    color: var(--white);
    font-size: 0.9rem;
    padding: 0.7rem 0.7rem;
    border-radius: var(--border);
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem;
  }
  /* Freigebbare WM: Stempel-Icon als Affordance vorn */
  .m-nl-stamp-dropdown .nl-stamp-dropdown-item[data-type]::before {
    content: "\f5bd"; /* fa-stamp */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    width: 1rem;
    text-align: center;
    flex: 0 0 auto;
  }
  /* Bereits freigegebene WM: gut lesbar (nicht blass-verschwunden) + gruenes
     Haekchen, damit klar ist DASS sie da sind und erledigt wurden. Override
     der Desktop-Regel `.nl-stamp-approved { opacity:0.5 }`. */
  .m-nl-stamp-dropdown .nl-stamp-dropdown-item.nl-stamp-approved {
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.65) !important;
  }
  .m-nl-stamp-dropdown .nl-stamp-dropdown-item.nl-stamp-approved[data-type]::before {
    content: "\f00c"; /* fa-check */
    color: var(--main);
    font-weight: 900;
  }
  /* "Alle freigeben" hervorheben (Akzent), klar als Sammel-Aktion */
  .m-nl-stamp-dropdown .nl-stamp-dropdown-item.nl-stamp-all {
    color: var(--main);
    font-weight: 600;
  }
  .m-nl-stamp-dropdown .nl-stamp-dropdown-item.nl-stamp-all::before {
    content: "\f00c\f00c"; /* zwei Haekchen-Andeutung — Sammelaktion */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--main);
    letter-spacing: -3px;
    width: 1rem;
    flex: 0 0 auto;
  }
  .m-nl-stamp-dropdown .nl-stamp-dropdown-item:active {
    background-color: rgba(0, 203, 181, 0.25);
  }
}

/* ===========================================================================
   4.8 KUNDEN-LISTE MOBILE (m-cl-*) — eingefuehrt 2026-07-06
   Card-basierte Kunden-Liste (getClient), 1:1 nach dem m-nl-* Pattern
   (Kampagnen-Liste) gebaut: Kopf (Name + P-Badge + Chevron) + Kategorie-Zeile
   + Stat-Reihe (Oeffner-/Klicks-Rate, immer sichtbar) + aufklappbares Detail
   (Unique-Raten) + Aktions-Reihe (Kunde oeffnen -> Lazy-Detail-Modal).
   Look 1:1 wie m-nl / m-dash (color-mix darkblue 75%, var(--border), Akzent --main).
   Kunden zeigen 2 KPIs (OR/CR-Rate) -> Stat-/Detail-Grid ist 2-spaltig (m-nl: 3).
   ============================================================================= */
@media (max-width: 991px) {

  .m-cl-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* gleicht das has-row2 padding-top der fixen Subnav aus: Nav->Item = Item->Item */
    margin-top: -3.05rem;
  }

  /* ── Item-Card ── */
  .m-cl-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    padding: 0.75rem 0.85rem;
    overflow: hidden;
  }

  /* ── Kopf: (P-Badge) | Name | Chevron ── */
  .m-cl-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
  }
  /* P-Badge (Partner-Kunde) — schmale Pille, wie m-nl-partner-badge */
  .m-cl-badge {
    flex: 0 0 auto;
    background: var(--main_partner);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: var(--border);
    padding: 0.15rem 0.45rem;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .m-cl-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-cl-chev {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    transition: transform 0.2s ease;
  }
  .m-cl-item.is-open .m-cl-chev {
    transform: rotate(180deg);
  }

  /* ── Kategorie-Kachel (erstes KPI, immer sichtbar): volle Breite, linksbuendig,
     mehrere Kategorien duerfen umbrechen (nicht abschneiden). ── */
  .m-cl-cat-cell {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.6rem;
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .m-cl-cat-lbl {
    color: var(--white);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  .m-cl-cat-val {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.35;
    white-space: normal;
  }
  /* Keine Kategorie hinterlegt -> Kachel nicht als leerer Kasten zeigen */
  .m-cl-cat-cell:not(:has(.m-cl-cat-val:not(:empty))) {
    display: none;
  }

  /* ── Stat-Reihe (immer sichtbar): 2-col Grid (OR/CR-Rate) ── */
  .m-cl-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.6rem;
  }
  .m-cl-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-cl-stat-lbl {
    color: var(--white);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  .m-cl-stat-val {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
  }
  /* Spinner-Platzhalter in der Stat-Kachel klein halten */
  .m-cl-stat-val .loader {
    width: 1rem;
    height: 1rem;
  }

  /* ── Detail (aufklappbar) ── */
  .m-cl-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, margin-top 0.28s ease;
    margin-top: 0;
  }
  .m-cl-item.is-open .m-cl-detail {
    max-height: 16rem;
    margin-top: 0.5rem;
  }
  .m-cl-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .m-cl-detail-cell {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-cl-detail-lbl {
    color: var(--white);
    font-size: 0.68rem;
    margin-bottom: 0.25rem;
  }
  .m-cl-detail-val {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
  }
  /* ── Aktions-Reihe ── */
  .m-cl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .m-cl-actions .btn_add {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;   /* neutralisiert @media(hover:none) min-height:44px — sonst 41.6x44 rechteckig (Gotcha #113) */
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem;
  }
  .m-cl-actions .btn_add > i {
    margin: 0 !important;
  }
}

/* ===========================================================================
   4.7 VERSENDUNGEN-LISTE MOBILE (m-so-*) — eingefuehrt 2026-06-22
   Card-basierte Versendungs-Liste (getSendouts), 1:1 nach dem m-nl-* Pattern
   (Kampagnen-Liste) gebaut: Kopf (Status-Icon + Name + Status-Badge) + Stat-Reihe
   (Versendet/Oeffner/Klicks) + aufklappbares Detail (Volumen/Unique/Datum/Zeit)
   + status-abhaengige Aktions-Reihe (Bearbeiten/Pause-Play/Neustart/Details/Loeschen).
   Look 1:1 wie m-nl / m-dash (color-mix darkblue 75%, var(--border), Akzent --main).
   ============================================================================= */
@media (max-width: 991px) {

  .m-so-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* wie m-nl-list: negativer Margin gleicht die ueberschuessige Luecke der
       fixen Subnav (has-row2 padding-top) aus → Nav→Item = Item→Item. */
    margin-top: -3.05rem;
  }

  /* ── Item-Card ── */
  .m-so-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    padding: 0.75rem 0.85rem;
    overflow: hidden;
  }

  /* ── Kopf: Status-Icon | Name | Status-Badge | Chevron ── */
  .m-so-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
  }
  .m-so-status {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex: 0 0 auto;
    font-size: 0.95rem;
  }
  .m-so-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* WM-Test-Indikator (in der linken Status-Gruppe) */
  .m-so-flag-wmtest {
    color: var(--white);
    font-size: 0.8rem;
  }
  .m-so-chev {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    transition: transform 0.2s ease;
  }
  .m-so-item.is-open .m-so-chev {
    transform: rotate(180deg);
  }

  /* ── Status-Badge (Kurztext rechts neben dem Namen) — Farben analog Desktop ── */
  .m-so-badge {
    flex: 0 0 auto;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: var(--border);
    padding: 0.15rem 0.45rem;
    white-space: nowrap;
    border: 1px solid transparent;
  }
  .m-so-badge-waiting {
    background: rgba(255, 193, 7, 0.18);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
  }
  .m-so-badge-running {
    background: rgba(0, 203, 181, 0.18);
    color: var(--main);
    border-color: rgba(0, 203, 181, 0.3);
  }
  .m-so-badge-paused {
    background: rgba(245, 196, 25, 0.18);
    color: #f5c419;
    border-color: rgba(245, 196, 25, 0.3);
  }
  .m-so-badge-done {
    background: rgba(0, 203, 181, 0.14);
    color: var(--main);
    border-color: rgba(0, 203, 181, 0.25);
  }
  .m-so-badge-preparing {
    background: rgba(156, 39, 176, 0.2);
    color: #ce93d8;
    border-color: rgba(156, 39, 176, 0.3);
  }
  .m-so-badge-limit {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
    border-color: rgba(255, 152, 0, 0.3);
  }
  .m-so-badge-error {
    background: rgba(244, 67, 54, 0.2);
    color: #ef5350;
    border-color: rgba(244, 67, 54, 0.3);
  }

  /* ── Stat-Reihe (immer sichtbar): 3-col Grid ── */
  .m-so-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.6rem;
  }
  .m-so-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-so-stat-lbl {
    color: var(--white);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  .m-so-stat-val {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
  }

  /* ── Detail (aufklappbar) ── */
  .m-so-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, margin-top 0.28s ease;
    margin-top: 0;
  }
  .m-so-item.is-open .m-so-detail {
    max-height: 18rem;
    margin-top: 0.5rem;
  }
  .m-so-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
  }
  .m-so-detail-cell {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-so-detail-lbl {
    color: var(--white);
    font-size: 0.68rem;
    margin-bottom: 0.25rem;
  }
  .m-so-detail-val {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
  }

  /* ── Aktions-Reihe ── */
  .m-so-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .m-so-actions .btn_add,
  .m-so-actions .btn_add_,
  .m-so-actions .btn_delete {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;   /* neutralisiert @media(hover:none) min-height:44px — sonst rechteckig (Gotcha #113) */
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem;
    /* Desktop-Aktionsbuttons sind position:absolute — hier im Flow zuruecksetzen */
    position: static !important;
    top: auto !important;
    right: auto !important;
  }
  .m-so-actions .btn_add > i,
  .m-so-actions .btn_add_ > i,
  .m-so-actions .btn_delete > i {
    margin: 0 !important;
  }
  .m-so-actions .m-so-trash {
    display: inline-flex;
    margin: 0;
  }
}

/* ===========================================================================
   4.8 BLACKLIST-LISTE MOBILE (m-bl-*) — eingefuehrt 2026-07-03
   Card-basierte Blacklist-Liste (getBlacklist), 1:1 nach dem m-nl-* Pattern
   (Kampagnen-Liste): Kopf (Typ-Icon + Name + Hash-Badge + Chevron) +
   Stat-Reihe (Eintraege/Typ/Update) + aufklappbares Detail (Erstellt/Update)
   + Aktions-Reihe (Ansehen/Hinzufuegen/Loeschen, 34x34-Paket).
   Doku: Obsidian [[UI Mobile Listen & Tabs]] / [[UI Mobile]].
   =========================================================================== */
@media (max-width: 991px) {

  .m-bl-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* has-row2-padding-Ausgleich wie m-nl-list: Nav→Item = Item→Item */
    margin-top: -3.05rem;
  }
  /* Empty-State (Text immer Weiss, nicht Grau) */
  .m-bl-list .dash-adv-empty {
    padding: 1rem 0.5rem;
    text-align: center;
    color: var(--white);
    font-size: 0.85rem;
  }

  /* ── Item-Card ── */
  .m-bl-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    padding: 0.75rem 0.85rem;
    overflow: hidden;
  }

  /* ── Kopf: Name | Hash-Badge | Chevron ── */
  .m-bl-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
  }
  .m-bl-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-bl-badge {
    flex: 0 0 auto;
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--border);
    padding: 0.15rem 0.45rem;
  }
  .m-bl-chev {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    transition: transform 0.2s ease;
  }
  .m-bl-item.is-open .m-bl-chev {
    transform: rotate(180deg);
  }

  /* ── Stat-Reihe (immer sichtbar): 3-col Grid ── */
  .m-bl-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.6rem;
  }
  .m-bl-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-bl-stat-lbl {
    color: var(--white);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  .m-bl-stat-val {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
  }

  /* ── Detail (aufklappbar) ── */
  .m-bl-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, margin-top 0.28s ease;
    margin-top: 0;
  }
  .m-bl-item.is-open .m-bl-detail {
    max-height: 16rem;
    margin-top: 0.5rem;
  }
  .m-bl-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .m-bl-detail-cell {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-bl-detail-lbl {
    color: var(--white);
    font-size: 0.68rem;
    margin-bottom: 0.25rem;
  }
  .m-bl-detail-val {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
  }

  /* ── Aktions-Reihe ── */
  .m-bl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .m-bl-actions .btn_add,
  .m-bl-actions .btn_add_,
  .m-bl-actions .btn_delete {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;   /* neutralisiert @media(hover:none) min-height:44px (Gotcha #113) */
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem;
  }
  .m-bl-actions .btn_add > i,
  .m-bl-actions .btn_add_ > i,
  .m-bl-actions .btn_delete > i {
    margin: 0 !important;
  }
}

/* ===========================================================================
   4.9 DYNAMISCHE INHALTE MOBILE (m-dyn-*) — eingefuehrt 2026-07-03
   Card-basierte Liste (getDynamic), 1:1 nach dem m-bl-* Pattern:
   Kopf (Icon + Name + Tag-Badge + Chevron) + Stat-Reihe (Erstellt/Update)
   + aufklappbares Detail (Aktions-Reihe Vorschau/Bearbeiten/Loeschen, 34x34).
   Doku: Obsidian [[UI Mobile Listen & Tabs]] / [[UI Mobile]].
   =========================================================================== */
@media (max-width: 991px) {

  .m-dyn-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* has-row2-padding-Ausgleich wie m-bl-list (Gotcha #13, gemessen):
       Titel ist seit dem nowrap-Fix immer einzeilig → Subnav-Höhe konstant,
       derselbe Wert wie m-bl passt. Ziel Nav→Item = Item→Item = 8px. */
    margin-top: -3.05rem;
  }

  /* ── Item-Card ── */
  .m-dyn-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    padding: 0.75rem 0.85rem;
    overflow: hidden;
  }

  /* ── Kopf: Icon | Name | Tag-Badge ── */
  .m-dyn-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
  }
  .m-dyn-status {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex: 0 0 auto;
    font-size: 0.95rem;
  }
  .m-dyn-status i {
    color: rgba(255, 255, 255, 0.75);
  }
  .m-dyn-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-dyn-badge {
    flex: 0 0 auto;
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--border);
    padding: 0.15rem 0.45rem;
  }
  /* ── Stat-Reihe (immer sichtbar): 2-col Grid ── */
  .m-dyn-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.6rem;
  }
  .m-dyn-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-dyn-stat-lbl {
    color: var(--white);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  .m-dyn-stat-val {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
  }

  /* ── Aktions-Reihe (immer sichtbar) ── */
  .m-dyn-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .m-dyn-actions .btn_add,
  .m-dyn-actions .btn_delete {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;   /* neutralisiert @media(hover:none) min-height:44px (Gotcha #113) */
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem;
  }
  .m-dyn-actions .btn_add > i,
  .m-dyn-actions .btn_delete > i {
    margin: 0 !important;
  }
  .m-dyn-actions form {
    width: auto !important;
    margin: 0 !important;
  }

  /* ── Bedingungs-Zeilen in den Erstellen-/Bearbeiten-Modals ──
     Die .col-Spalten einer Bedingung (Auswahl/Kampagne/Status/Von/Bis) stapeln
     mobil untereinander, hatten aber 0px Abstand (klebten aneinander). Das
     main-Feld ist immer die erste sichtbare Spalte → jede weitere bekommt Luft. */
  #setDynamicPage [class*="inputGroupDynamic-"] .col + .col,
  [id^="getDynamicData"] [class*="inputGroupDynamic-"] .col + .col {
    margin-top: 0.5rem;
  }
  /* Abstand ZWISCHEN den Bedingungs-Gruppen (feste Wochentag-Zeile → hinzugefügte
     Bedingungen) — das innere mt-1 (0.25rem) allein ist mobil zu wenig. */
  #setDynamicPage [class*="inputGroupDynamic-"] + [class*="inputGroupDynamic-"],
  [id^="getDynamicData"] [class*="inputGroupDynamic-"] + [class*="inputGroupDynamic-"] {
    margin-top: 0.5rem;
  }
  /* Tabs → erstes Element (Geschlecht-Select) exakt 1rem — etablierte Modal-Regel;
     !important gegen Bootstrap .mt-1 (das selbst !important trägt). Die gender-.row
     ist die EINZIGE .row, die ein gender-Select enthält (Bedingungs-Rows haben
     keins) → kein direkter-Kind-Combinator nötig; matcht Mail (row in .tooltip-
     container) und Partner (row direkt im tab-pane) gleichermaßen. */
  #setDynamicPage .tab-pane .row:has(select[name="gender"]),
  [id^="getDynamicData"] .tab-pane .row:has(select[name="gender"]) {
    margin-top: 1rem !important;
  }

  /* =========================================================
     INHALT- + STANDARD-INHALT-TABS (TinyMCE-Editor)
     Identisches .editor-with-panel Flex-ROW-Layout wie im Kampagne-Modal
     (setNewsletterPage/getNewsletterData) — Editor + 320px-Side-Panel zwingend
     nebeneinander, feste Inline-Groessen (height:70vh, width:90%). Mobil zu eng.
     1:1 dieselbe Behandlung: untereinander stapeln, Editor volle Breite,
     Buttons als Leiste, Side-Panel volle Breite. Gilt fuer Erstellen
     (#setDynamicPage) UND Bearbeiten ([id^=getDynamicData]).
     ========================================================= */

  /* (1) Editor + Side-Panel untereinander statt nebeneinander */
  #setDynamicPage .editor-with-panel,
  [id^="getDynamicData"] .editor-with-panel {
    flex-direction: column !important;
    width: 100% !important;
  }
  /* Editor-Spalte (1. Kind) volle Breite */
  #setDynamicPage .editor-with-panel > div:first-child,
  [id^="getDynamicData"] .editor-with-panel > div:first-child {
    width: 100% !important;
    min-width: 0 !important;
  }
  /* (2) TinyMCE: volle Breite, moderate feste Hoehe statt 90%/70vh */
  #setDynamicPage .editor-with-panel .tox-tinymce,
  [id^="getDynamicData"] .editor-with-panel .tox-tinymce {
    width: 100% !important;
    height: 45vh !important;
    min-height: 18rem !important;
    margin: 0.75rem 0 0 !important;
  }
  #setDynamicPage .editor-with-panel textarea.tiny-target,
  [id^="getDynamicData"] .editor-with-panel textarea.tiny-target {
    width: 100% !important;
  }
  /* (3) Side-Panel-Buttons: horizontale Leiste statt vertikal, zentriert.
     Buttons quadratisch 40x40 — direkt auf toggle-Klassen zielen (nicht an
     .btn_add koppeln): im aktiven Zustand wechselt die Klasse zu btn_add_
     (Unterstrich). Gegen @media(hover:none) 64px-Padding (Gotcha #113). */
  #setDynamicPage .side-panel-buttons,
  [id^="getDynamicData"] .side-panel-buttons {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-self: stretch !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
  }
  #setDynamicPage .side-panel-buttons .btn_add,
  #setDynamicPage .side-panel-buttons .btn_add_,
  #setDynamicPage .toggle-param-btn,
  #setDynamicPage .toggle-block-btn,
  [id^="getDynamicData"] .side-panel-buttons .btn_add,
  [id^="getDynamicData"] .side-panel-buttons .btn_add_,
  [id^="getDynamicData"] .toggle-param-btn,
  [id^="getDynamicData"] .toggle-block-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #setDynamicPage .side-panel-buttons .btn_add > i,
  #setDynamicPage .side-panel-buttons .btn_add_ > i,
  #setDynamicPage .toggle-param-btn > i,
  #setDynamicPage .toggle-block-btn > i,
  [id^="getDynamicData"] .side-panel-buttons .btn_add > i,
  [id^="getDynamicData"] .side-panel-buttons .btn_add_ > i,
  [id^="getDynamicData"] .toggle-param-btn > i,
  [id^="getDynamicData"] .toggle-block-btn > i {
    margin: 0 !important;
  }
  /* (4) Side-Panel-Content (ausklappbare Parameter-/Baustein-Liste): wenn
     aufgeklappt, volle Breite statt fixer 320px (sonst Overflow) */
  #setDynamicPage .side-panel-content,
  [id^="getDynamicData"] .side-panel-content {
    max-width: 100% !important;
  }
  #setDynamicPage .side-panel-content[style*="width: 320"],
  #setDynamicPage .side-panel-content:not([style*="width: 0"]),
  [id^="getDynamicData"] .side-panel-content[style*="width: 320"],
  [id^="getDynamicData"] .side-panel-content:not([style*="width: 0"]) {
    width: 100% !important;
  }
  /* Innerer Wrapper hat inline width:320px -> volle Breite */
  #setDynamicPage .side-panel-content > div,
  [id^="getDynamicData"] .side-panel-content > div {
    width: 100% !important;
  }
  /* copy-wrapper (Parameter-/Baustein-Items) je volle Breite, 1 pro Zeile */
  #setDynamicPage .side-panel-content .copy-wrapper,
  [id^="getDynamicData"] .side-panel-content .copy-wrapper {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  /* (5) Editor-Ansicht-Umschalter (Desktop/Tablet/Mobile) ueber dem Editor: setzt
     nur die Editor-Vorschau-Breite — mobil sinnlos, ausblenden (wie Kampagne-Modal).
     Klassenloser Flex-Container, ueber :has(> .btn_add[title=...]) adressiert. */
  #setDynamicPage .editor-with-panel ~ div:has(> .btn_add[title="Desktop"]):has(> .btn_add[title="Tablet"]),
  #setDynamicPage .tab-pane div:has(> .btn_add[title="Desktop"]):has(> .btn_add[title="Tablet"]),
  [id^="getDynamicData"] .tab-pane div:has(> .btn_add[title="Desktop"]):has(> .btn_add[title="Tablet"]) {
    display: none !important;
  }
}

/* ===========================================================================
   TESTADRESSEN-MODALE MOBIL (getTestaddresses / setTestadress / updateTestadress)
   — eingefuehrt 2026-07-06
   3 Modale (Liste/Hinzufuegen/Bearbeiten), lagen im desktop_view → per
   Move-to-body (_navigation_mobile.tpl) ans body gehoben + Override-Gruppen oben.
   Hier der Inhalt: get_testaddresses hat ein .d-flex-Split (Tab-Nav 25% links,
   Content rechts) → mobil stapeln. set/update haben eine .row mit 3 .col
   (Anrede/Vorname/Nachname) → mobil untereinander.
   =========================================================================== */
@media (max-width: 991px) {

  /* ── get_testaddresses: Split-Layout (Kunden-/Kampagnen-Tabs | Adressliste)
     untereinander statt nebeneinander ── */
  #getTestaddresses #testaddressTabsWrap {
    flex-direction: column !important;
  }
  /* Tab-Navigation (war width:25% vertikal) → volle Breite, horizontal umbrechend */
  #getTestaddresses #testaddressTabsWrap > ul.nav-tabs.flex-column {
    width: 100% !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    margin-right: 0 !important;
    margin-bottom: 0.75rem !important;
    gap: 0.4rem !important;
  }
  #getTestaddresses #testaddressTabsWrap > ul.nav-tabs.flex-column > li.nav-item {
    flex: 0 0 auto !important;
  }
  #getTestaddresses #testaddressTabsWrap > ul.nav-tabs.flex-column .nav-link {
    padding: 0.4rem 0.75rem !important;
  }
  #getTestaddresses #testaddressTabsWrap > ul.nav-tabs.flex-column .editableTabs {
    font-size: 0.9rem !important;
    margin: 0 !important;
  }
  /* Content-Spalte volle Breite */
  #getTestaddresses #testaddressTabsWrap > .tab-content {
    width: 100% !important;
    min-width: 0 !important;
  }
  /* Adress-Boxen (boxBl) volle Breite, 1 pro Zeile, gut tippbar */
  #getTestaddresses .boxBl {
    width: 100% !important;
    margin: 0 0 0.4rem 0 !important;
  }
  #getTestaddresses .boxBl h1 {
    font-size: 0.9rem !important;
    margin: 0 !important;
    word-break: break-all !important;   /* lange E-Mail-Adressen umbrechen */
  }
  /* "Neue Adresse anlegen"-Button (absolut, Inline oben rechts) → mobil nach oben
     LINKS in die Modal-Ecke (User-Wunsch), gegenueber dem ×-Button. Der Header-
     Wrapper hat padding-left:3.5rem → der zentrierte Titel kollidiert nicht. */
  /* z-index 11 > modal-header-wrapper (z:10) — sonst ueberdeckt der Header den
     Button links und die Klicks gehen ins Leere (nicht zuverlässig klickbar).
     Look + Hover exakt wie der ×-Button (btn_add: transparent + box-shadow,
     hover main-bg). */
  #getTestaddresses .testaddress-new-btn {
    position: absolute !important;
    left: 0.5rem !important;
    right: auto !important;
    top: 0.5rem !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: var(--border) !important;
    color: var(--white) !important;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
                rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
                rgba(0, 0, 0, 0.2) 0px -3px 0px inset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 11 !important;
    font-size: 1rem !important;
    transition: background-color 0.15s ease !important;
  }
  #getTestaddresses .testaddress-new-btn:hover {
    background-color: var(--main) !important;
    color: var(--white) !important;
  }

  /* ── Abstand Suchfeld → erste Adresse (war nur 7px, zu eng) ── */
  #getTestaddresses #testaddressSearchMail,
  #getTestaddresses input[placeholder*="uch"] {
    margin-bottom: 0.75rem !important;
  }

  /* ── Anlege-Formular (AJAX „Neue Adresse", .row.mt-1 mit 3 .col Anrede/Vorname/
     Nachname): Spalten stapeln + Abstand dazwischen; E-Mail-Zeile (.ta-new-row)
     Abstand nach unten. NICHT die Adress-Zeilen (.boxBl = .row.g-0) treffen!
     Die alten separaten #setTestadress/#updateTestadress-Modale gibt es mobil
     nicht mehr — alles laeuft im #getTestaddresses-Modal. ── */
  #getTestaddresses .row.mt-1:not(.g-0) {
    flex-direction: column !important;
    margin-top: 0.5rem !important;   /* Abstand E-Mail-Feld → Anrede-Select */
  }
  #getTestaddresses .row.mt-1:not(.g-0) > .col + .col {
    margin-top: 0.5rem !important;   /* Abstand Anrede → Vorname → Nachname */
  }
  /* mehrere Anlege-Zeilen (Tab „Mehrere") voneinander abgrenzen */
  #getTestaddresses .ta-new-row + .ta-new-row {
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  /* Sub-Tab-Leiste (Einzeln/Mehrere) → Abstand zum ersten Feld darunter */
  #getTestaddresses .nav-tabs {
    margin-bottom: 0.75rem !important;
  }
}

/* ===========================================================================
   KPI-CARDS BEARBEITEN-MODAL (Übersicht-Tab) — GANZER Mobilbereich (<992px)
   ---------------------------------------------------------------------------
   Wichtig: Der Mobil/Desktop-Breakpoint der Plattform ist 992px (Modal wird
   bis 991px mobil angezeigt). Diese Regeln standen vorher faelschlich in
   @media (max-width:768px) und liessen den Tablet-Portrait-Bereich (769-991px)
   mit Desktop-Border + unzentrierten Werten zurueck. Hier korrekt fuer den
   gesamten Mobilbereich. Am Dateiende -> gewinnt bei gleicher Spezifitaet.
   =========================================================================== */
@media (max-width: 991px) {

  /* Karte: konsistent zum Modal-Card-Stil (wie Profil/Verlauf):
     gefuellter Hintergrund, KEIN Border, weiss, zentriert. */
  .mc_a .tab-pane .box_histroy_count,
  .mc_a_row .tab-pane .box_histroy_count {
    min-height: 4rem !important;
    padding: 0.75rem !important;
    margin-bottom: 0.5rem !important;
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border: none !important;
    border-radius: var(--border) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Label (h1): hellweiss, zentriert, volle Breite */
  .mc_a .tab-pane .box_histroy_count h1,
  .mc_a_row .tab-pane .box_histroy_count h1 {
    font-size: 0.75rem !important;
    margin-bottom: 0.25rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Wert (h2): WEISS, zentriert, volle Breite */
  .mc_a .tab-pane .box_histroy_count h2,
  .mc_a_row .tab-pane .box_histroy_count h2 {
    font-size: 1.25rem !important;
    color: var(--white) !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Grid: 2 Spalten fuer Karten-Paare */
  .mc_a .tab-pane .row:has(.box_histroy_count),
  .mc_a_row .tab-pane .row:has(.box_histroy_count) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    flex-direction: unset !important;
    margin-bottom: 0.75rem !important;
  }

  .mc_a .tab-pane .row:has(.box_histroy_count) > .col,
  .mc_a_row .tab-pane .row:has(.box_histroy_count) > .col {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
  }

  /* Inline-margin (margin-left/right:1rem aus dem Desktop-Markup) killen —
     im Grid uebernimmt der gap die Abstaende. Sonst schiebt das linke
     Margin die einspaltige Vollbreit-Karte nach rechts (rechtsversetzt +
     rechts abgeschnitten). !important noetig gegen den Inline-Style.
     Vertikales Padding hier wiederherstellen (die generische `> .col`-Regel
     darueber setzt padding:0 und liess das Label oben kleben); links/rechts
     bleibt 0, damit die horizontale Zentrierung stimmt. */
  .mc_a .tab-pane .row:has(.box_histroy_count) > .col.box_histroy_count,
  .mc_a_row .tab-pane .row:has(.box_histroy_count) > .col.box_histroy_count {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }

  /* Einzel-KPI-Row (nur eine Karte) -> volle Breite statt halbbreit-mit-Luecke */
  .mc_a .tab-pane .row:has(.box_histroy_count):not(:has(.col ~ .col)),
  .mc_a_row .tab-pane .row:has(.box_histroy_count):not(:has(.col ~ .col)) {
    grid-template-columns: 1fr !important;
  }

  /* Abstand zwischen JEDER Tab-Leiste und ihrem Inhalt — die nav-tabs haben
     margin-bottom:0 und der folgende .tab-content padding-top:0, dadurch
     klebt der Inhalt (Namensfeld, Links/Bilder-Accordion) direkt an den Tabs.
     Gilt fuer Haupt-Tabs UND alle Sub-Tab-Leisten im Bearbeiten-Modal. */
  [id^="getNewsletterData"] ul.nav-tabs {
    margin-bottom: 0.75rem !important;
  }

  /* =========================================================
     DETAILS-TAB EDITOR (#getNewsletterData) — erster Durchlauf
     Der WM-Editor nutzt ein .editor-with-panel Flex-ROW-Layout, das den
     TinyMCE-Editor und ein 320px-Side-Panel ZWINGEND nebeneinander legt +
     feste Inline-Groessen (height:70vh, width:90%). Auf Mobil viel zu eng.
     Hier: untereinander stapeln, Editor volle Breite, Buttons als Leiste,
     Upload-Buttons aus der absoluten Lage loesen.
     ========================================================= */

  /* (1) Editor + Side-Panel untereinander statt nebeneinander */
  [id^="getNewsletterData"] .editor-with-panel {
    flex-direction: column !important;
    width: 100% !important;
  }

  /* Editor-Spalte (1. Kind) volle Breite */
  [id^="getNewsletterData"] .editor-with-panel > div:first-child {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* (2) TinyMCE: volle Breite, moderate feste Hoehe statt 90%/70vh */
  [id^="getNewsletterData"] .editor-with-panel .tox-tinymce {
    width: 100% !important;
    height: 45vh !important;
    min-height: 18rem !important;
    margin: 0.75rem 0 0 !important;
  }
  /* auch das rohe textarea-Fallback */
  [id^="getNewsletterData"] .editor-with-panel textarea.tiny-target {
    width: 100% !important;
  }

  /* (3) Side-Panel-Buttons: horizontale Leiste statt vertikal, zentriert */
  [id^="getNewsletterData"] .side-panel-buttons {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-self: stretch !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
  }
  /* Die einzelnen Side-Panel-Buttons (Tag/Magic/…) quadratisch 40x40 — auf
     echten Touch-Geraeten paddet die globale @media(hover:none)
     button{padding:1rem 2rem}-Regel sie sonst auf 64px (rechteckig). Direkt auf
     die toggle-Klassen zielen (NICHT an .btn_add koppeln): im aktiven Zustand
     wechselt die Klasse von btn_add zu btn_add_ (Unterstrich) -> sonst greift die
     Groesse nicht mehr und der aktive Button wird breit (zerschiesst das Layout).
     Icon-Inline-margin-Hacks neutralisieren. */
  [id^="getNewsletterData"] .side-panel-buttons .btn_add,
  [id^="getNewsletterData"] .side-panel-buttons .btn_add_,
  [id^="getNewsletterData"] .toggle-param-btn,
  [id^="getNewsletterData"] .toggle-dynamic-btn,
  [id^="getNewsletterData"] .toggle-creative-btn,
  [id^="getNewsletterData"] .format-html-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  [id^="getNewsletterData"] .side-panel-buttons .btn_add > i,
  [id^="getNewsletterData"] .side-panel-buttons .btn_add_ > i,
  [id^="getNewsletterData"] .toggle-param-btn > i,
  [id^="getNewsletterData"] .toggle-dynamic-btn > i,
  [id^="getNewsletterData"] .toggle-creative-btn > i,
  [id^="getNewsletterData"] .format-html-btn > i {
    margin: 0 !important;
  }

  /* (4) Side-Panel-Content (ausklappbare Parameter/Dynamik-Liste): wenn
     aufgeklappt, volle Breite statt fixer 320px (sonst Overflow) */
  [id^="getNewsletterData"] .side-panel-content {
    max-width: 100% !important;
  }
  [id^="getNewsletterData"] .side-panel-content[style*="width: 320"],
  [id^="getNewsletterData"] .side-panel-content:not([style*="width: 0"]) {
    width: 100% !important;
  }
  /* Innerer Wrapper hat inline width:320px -> auf volle Breite, damit die
     dynamischen Inhalt-Items (Inhalt/Standard-Tabs + Textarea) die ganze Breite
     nutzen statt nur ~halb. */
  [id^="getNewsletterData"] .side-panel-content > div {
    width: 100% !important;
  }
  /* copy-wrapper (Parameter-/Dynamik-/Werbemittel-Items) je volle Breite,
     1 pro Zeile. */
  [id^="getNewsletterData"] .side-panel-content .copy-wrapper {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  /* Werbemittel-Panel-Liste hat inline max-width:288px -> aufheben, damit die
     Werbemittel-Items (copy-wrapper + Preview-iframe) die volle Breite nutzen
     (wie bei den dynamischen Inhalten). */
  [id^="getNewsletterData"] .creative-panel-list {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* (5) Upload-Buttons (HTML/Bilder hochladen) sitzen absolut ueber der
     Sub-Tab-Leiste (top:-0.5rem; right:1rem) und ueberlappen die Tabs.
     Mobil: statisch unter die Tabs, volle Breite, zentriert. */
  [id^="getNewsletterData"] .nav-item.position-absolute:has([class*="upload"]),
  [id^="getNewsletterData"] .nav-tabs ~ .nav-item.position-absolute,
  [id^="getNewsletterData"] .nav-item.position-absolute {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    margin: 0.5rem 0 !important;
  }

  /* (6) Plus/Minus-Buttons zwischen den Absender/Betreff/Preheader-Bloecken:
     quadratisch 40x40 (sonst durch @media(hover:none) 64px rechteckig auf
     echten Touch-Geraeten), Icon zentriert, symmetrischer Abstand nach unten.
     Scope .details-scope trifft NUR die Block-Verwaltungs-Buttons (Plus/Minus). */
  [id^="getNewsletterData"] .details-scope .btn_add,
  [id^="getNewsletterData"] .details-scope .btn_delete_,
  [id^="getNewsletterData"] .details-scope .btn_delete {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0.75rem !important;
  }
  [id^="getNewsletterData"] .details-scope .btn_add > i,
  [id^="getNewsletterData"] .details-scope .btn_delete_ > i,
  [id^="getNewsletterData"] .details-scope .btn_delete > i {
    margin: 0 !important;
  }

  /* =========================================================
     VERSENDUNGEN-TAB (#getNewsletterData [id^=sendouts-])
     Desktop-Split-Layout (.d-flex: Job-Liste links vertikal | Detail
     rechts) quetscht den Inhalt auf Mobil nach rechts. Mobil stapeln:
     Job-Liste oben (horizontal/umbrechend), Detail darunter volle Breite.
     ========================================================= */

  /* Split-Wrapper untereinander statt nebeneinander (nur der eine im
     sendouts-pane mit der vertikalen Job-Nav). */
  [id^="getNewsletterData"] [id^="sendouts-"] .d-flex:has(> ul.nav-tabs.flex-column) {
    flex-direction: column !important;
  }

  /* Job-Auswahl-Leiste (Datums-Tabs): von vertikal auf horizontal,
     volle Breite, rechten Margin (me-3) killen. */
  [id^="getNewsletterData"] [id^="sendouts-"] ul.nav-tabs.flex-column {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin-right: 0 !important;
    row-gap: 0.25rem !important;
  }
  [id^="getNewsletterData"] [id^="sendouts-"] ul.nav-tabs.flex-column > li {
    flex: 0 0 auto !important;
  }

  /* Detail-Content (rechte Spalte) volle Breite */
  [id^="getNewsletterData"] [id^="sendouts-"] .d-flex > .tab-content.flex-fill {
    width: 100% !important;
  }

  /* ---------------------------------------------------------
     JOB-DETAIL-SUB-TABS (Allgemein/Versendet/Öffnungen/Klicks/Ranking/
     Bounces/Abmelder/Einstellungen) innerhalb eines Job-Details.
     Die KPI-Karten-Optik (75%-Background, weiss, zentriert, kein Border)
     greift bereits ueber `.mc_a_row .tab-pane .box_histroy_count`. Hier
     nur die GRID-Eigenheiten der Sub-Tabs fixen, die das Standard-2er-Grid
     nicht abdeckt: 3-Spalten-Provider-Reihen + Email-Listen + Ranking. */

  /* Provider-Reihen (Apple/Freenet/GMX/Google/Microsoft/T-Online/Web/Yahoo/
     Andere = 9 Karten) liegen im Markup als 3 separate `.row` mit je 3
     Karten. Gewuenscht ist mobil ein DURCHGEHENDER 2er-Fluss: immer 2 pro
     Zeile, und nur die ungerade letzte Karte (Andere) als eine volle Zeile.
     Dazu den umschliessenden `.container-fluid` selbst zum 2-Spalten-Grid
     machen und die `.row`-Wrapper per `display:contents` aufloesen — so
     werden alle 9 Karten direkte Grid-Items und fliessen fortlaufend.
     Scope `:has([data-provider])` trifft NUR die Provider-Container
     (data-provider sitzt bei Versendet/Öffnungen/Klicks/Abmelder auf h2, bei
     Bounces auf span) — der Einstellungen-Tab (keine data-provider) bleibt
     beim Standard-2er-Grid. */
  .mc_a [id^="sendouts-"] .tab-pane .container-fluid:has([data-provider]),
  .mc_a_row [id^="sendouts-"] .tab-pane .container-fluid:has([data-provider]) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }
  .mc_a [id^="sendouts-"] .tab-pane .container-fluid:has([data-provider]) > .row:has(> .box_histroy_count),
  .mc_a_row [id^="sendouts-"] .tab-pane .container-fluid:has([data-provider]) > .row:has(> .box_histroy_count) {
    display: contents !important;
  }
  /* Die alte Standard-Grid-Regel setzt jede 3. Karte auf volle Breite —
     im durchgehenden Fluss neutralisieren (identischer Selektor wie die
     Standard-Regel, eingeschraenkt auf Provider-Container). */
  [id^="getNewsletterData"] [id^="sendouts-"] .container-fluid:has([data-provider]) .row:has(.box_histroy_count) > .col.box_histroy_count:nth-child(3):last-child {
    grid-column: auto !important;
  }
  /* Fuehrende Einzelkarten-Reihe (Öffner / Klicker / Gesamt)
     bekommt eine eigene volle Zeile, damit sie nicht mit Apple paart. */
  .mc_a [id^="sendouts-"] .tab-pane .container-fluid:has([data-provider]) > .row:has(> .box_histroy_count):not(:has(> .box_histroy_count ~ .box_histroy_count)) > .box_histroy_count,
  .mc_a_row [id^="sendouts-"] .tab-pane .container-fluid:has([data-provider]) > .row:has(> .box_histroy_count):not(:has(> .box_histroy_count ~ .box_histroy_count)) > .box_histroy_count {
    grid-column: 1 / -1 !important;
  }
  /* Letzte Provider-Karte (Andere): bei 9 Providern ungerade → allein in
     der letzten Zeile → volle Breite statt halbbreit mit Luecke. */
  .mc_a [id^="sendouts-"] .tab-pane .container-fluid:has([data-provider]) > .row:last-of-type > .box_histroy_count:last-child:nth-child(odd),
  .mc_a_row [id^="sendouts-"] .tab-pane .container-fluid:has([data-provider]) > .row:last-of-type > .box_histroy_count:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }

  /* Email-Listen (Öffnungen-/Klicks-Tab: .boxBl-Zeilen mit .col-8 E-Mail +
     .col-4 Datum). Desktop ist 2-Spalten-Tabelle; mobil bleibt 2-spaltig,
     aber als abgesetzte Card-Zeilen mit lesbarer Typo. */
  [id^="getNewsletterData"] [id^="sendouts-"] .boxBl {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
    padding: 0.5rem 0.65rem !important;
    margin-bottom: 0.4rem !important;
    transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
  }
  [id^="getNewsletterData"] [id^="sendouts-"] .boxBl:hover {
    background: var(--darkblue) !important;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset !important;
  }
  [id^="getNewsletterData"] [id^="sendouts-"] .boxBl .col-8,
  [id^="getNewsletterData"] [id^="sendouts-"] .boxBl .col-4 {
    display: flex !important;
    align-items: center !important;
  }
  [id^="getNewsletterData"] [id^="sendouts-"] .boxBl .col-4 {
    justify-content: flex-end !important;
  }
  [id^="getNewsletterData"] [id^="sendouts-"] .boxBl h1 {
    font-size: 0.8rem !important;
    color: var(--white) !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  [id^="getNewsletterData"] [id^="sendouts-"] .boxBl .col-4 h1 {
    font-size: 0.72rem !important;
    opacity: 0.85 !important;
  }
  /* Scroll-Container der Email-Listen: volle Breite, kein erzwungenes
     Padding rechts das die Cards abschneidet. */
  [id^="getNewsletterData"] [id^="sendouts-"] [data-emails="container"] {
    padding-right: 0 !important;
  }

  /* Ranking-Tab (A/B-Test-Varianten: .row_second mit Sender/Betreff/
     Preheader + 3 Zahlen-Cols). Desktop legt alles in eine Zeile; mobil
     als Card mit Text-Block oben und Zahlen-Zeile darunter. */
  [id^="getNewsletterData"] [id^="sendouts-"] .row_second {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
    padding: 0.65rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  [id^="getNewsletterData"] [id^="sendouts-"] [data-variants="container"] {
    padding-right: 0 !important;
  }

  /* Einstellungen-Tab (Localparts-Liste): linksbuendiger Text bleibt, aber
     in der Card-Optik. Greift bereits ueber box_histroy_count — die
     Localpart-Box ist eine box_histroy_count mit linksbuendigem div drin. */

  /* =========================================================
     VERLAUF-TAB (#getNewsletterData [id^=history-])
     4-Spalten-Tabelle (Zeitpunkt | Aktion | Details | Wer) → Card-Stack.
     Struktur: erste .container-fluid = Header-Leiste (ausblenden), dann pro
     Eintrag .accordion-item > .container-fluid > .row > 4x .col-3 > input.
     Mobil: jede Zeile = Card mit Label→Wert-Paaren (Labels via ::before,
     da das Markup sie pro Zelle nicht mitfuehrt). Analog Profil→Verlauf. */

  /* Header-Leiste (.container-fluid mit Zeitpunkt/Aktion/Details/Wer) weg.
     Sie ist DIREKTES Kind des history-pane (die Eintraege liegen tiefer in
     .accordion-item > .container-fluid). :first-child greift nicht, weil ein
     <script> davor steht — daher direkter-Kind-Selektor (> .container-fluid). */
  [id^="getNewsletterData"] [id^="history-"] > .container-fluid {
    display: none !important;
  }

  /* Jeder Eintrag → Card (mit Hover-Effekt wie .accordion-item) */
  [id^="getNewsletterData"] [id^="history-"] .accordion-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
    padding: 0.6rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
    transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
  }
  [id^="getNewsletterData"] [id^="history-"] .accordion-item:hover {
    background: var(--darkblue) !important;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset !important;
  }
  [id^="getNewsletterData"] [id^="history-"] .accordion-item .container-fluid {
    padding: 0 !important;
  }
  /* Zeile entstapeln: Label→Wert untereinander */
  [id^="getNewsletterData"] [id^="history-"] .accordion-item .row {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    align-items: stretch !important;
  }
  /* Jede Zelle (col-3): Label links + Wert rechts, mit Trennlinie */
  [id^="getNewsletterData"] [id^="history-"] .accordion-item .row > [class*="col-"] {
    display: flex !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.35rem 0 !important;
    margin: 0 !important;
    border-bottom: none !important;
    gap: 0.75rem !important;
    text-align: left !important;
  }
  /* Label vor jeder Zelle (Reihenfolge entspricht der Header-Leiste) */
  [id^="getNewsletterData"] [id^="history-"] .accordion-item .row > [class*="col-"]:nth-child(1)::before { content: "Zeitpunkt"; }
  [id^="getNewsletterData"] [id^="history-"] .accordion-item .row > [class*="col-"]:nth-child(2)::before { content: "Aktion"; }
  [id^="getNewsletterData"] [id^="history-"] .accordion-item .row > [class*="col-"]:nth-child(3)::before { content: "Details"; }
  [id^="getNewsletterData"] [id^="history-"] .accordion-item .row > [class*="col-"]:nth-child(4)::before { content: "Wer"; }
  [id^="getNewsletterData"] [id^="history-"] .accordion-item .row > [class*="col-"]::before {
    flex: 0 0 auto !important;
    color: var(--white) !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    opacity: 1 !important;
  }
  /* Werte: koennen input.form-control ODER div.form-control sein (Details/Wer
     sind divs mit Inline-text-align). Beide gleich behandeln: transparenter
     Text rechtsbuendig, einheitliche Groesse, kein Input-Look. */
  [id^="getNewsletterData"] [id^="history-"] .accordion-item input.form-control,
  [id^="getNewsletterData"] [id^="history-"] .accordion-item div.form-control {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--white) !important;
    text-align: right !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: break-word !important;
    /* Die div-Werte (Details/Wer) tragen Inline-display:flex; align-items:center
       -> zentriert trotz text-align. Flex auf rechtsbuendig zwingen. */
    align-items: flex-end !important;
  }

  /* =========================================================
     REMOTE-TAB (#getNewsletterData [id^=remote-])
     3-Spalten-Tabelle (E-Mail | Rolle | Versendet am) → Card-Stack.
     Struktur: .request-header (Header-Leiste) + pro Eintrag .request-row
     (display:flex row, 3 div-Spalten mit Inline flex:3/2/2). E-Mail wird
     mit text-overflow:ellipsis abgeschnitten. Mobil: Header weg, jede Zeile
     = Card mit Label→Wert-Paaren (Labels via ::before). Das Formular oben
     (E-Mail-Input + Rollen-Select) ist bereits volle Breite — bleibt. */

  /* Header-Leiste (E-Mail/Rolle/Versendet am) ausblenden */
  [id^="getNewsletterData"] [id^="remote-"] > .request-header {
    display: none !important;
  }

  /* Jede Versand-Zeile → Card (mit Hover-Effekt wie .accordion-item) */
  [id^="getNewsletterData"] [id^="remote-"] .request-row {
    flex-direction: column !important;
    align-items: stretch !important;
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
    padding: 0.6rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
    gap: 0 !important;
    width: 100% !important;
    transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
  }
  [id^="getNewsletterData"] [id^="remote-"] .request-row:hover {
    background: var(--darkblue) !important;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset !important;
  }
  /* Jede Spalte (div): Label links + Wert rechts (keine Trennlinie) */
  [id^="getNewsletterData"] [id^="remote-"] .request-row > div {
    display: flex !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.35rem 0 !important;
    margin: 0 !important;
    border-bottom: none !important;
    gap: 0.75rem !important;
    text-align: right !important;
    text-overflow: clip !important;
    overflow: visible !important;
    white-space: normal !important;
    word-break: break-word !important;
    color: var(--white) !important;
    font-size: 0.85rem !important;
  }
  /* Label vor jeder Spalte (Reihenfolge entspricht der Header-Leiste) */
  [id^="getNewsletterData"] [id^="remote-"] .request-row > div:nth-child(1)::before { content: "E-Mail"; }
  [id^="getNewsletterData"] [id^="remote-"] .request-row > div:nth-child(2)::before { content: "Rolle"; }
  [id^="getNewsletterData"] [id^="remote-"] .request-row > div:nth-child(3)::before { content: "Versendet am"; }
  [id^="getNewsletterData"] [id^="remote-"] .request-row > div::before {
    flex: 0 0 auto !important;
    color: var(--white) !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
  }

  /* =========================================================
     4.4.d ERSTELLEN-MODAL INHALT (#setNewsletterPage)
     Das Erstellen-Modal teilt sich das Editor-Markup mit dem
     Bearbeiten-Modal (.editor-with-panel, .side-panel-*, nav-tabs),
     hat aber KEINE Versand-/Statistik-Tabs. Hier nur die Punkte, die
     das Erstellen-Formular betreffen — analog 4.4.c, eng gescoped.
     ========================================================= */

  /* (1) Haupt- und Sub-Tab-Leisten einzeilig HORIZONTAL SCROLLBAR statt
     umbrechen (angeschnittener letzter Tab = Scroll-Hinweis). */
  #setNewsletterPage ul.nav-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-height: 42px !important;
    align-items: flex-start !important;
  }
  /* Leisten mit eingebetteten Upload-Buttons (.position-absolute): umbrechen
     lassen — die Upload-Buttons brauchen eine eigene Zeile. */
  #setNewsletterPage ul.nav-tabs:has(.nav-item.position-absolute) {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    min-height: 0 !important;
    align-items: initial !important;
  }
  #setNewsletterPage ul.nav-tabs::-webkit-scrollbar {
    display: none;
  }
  #setNewsletterPage ul.nav-tabs:not(:has(.nav-item.position-absolute)) > li {
    flex: 0 0 auto !important;
  }
  #setNewsletterPage ul.nav-tabs > li > .nav-link {
    white-space: nowrap !important;
  }

  /* (2) Editor + Side-Panel untereinander statt nebeneinander */
  #setNewsletterPage .editor-with-panel {
    flex-direction: column !important;
    width: 100% !important;
  }
  #setNewsletterPage .editor-with-panel > div:first-child {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* (3) TinyMCE: volle Breite, moderate feste Hoehe */
  #setNewsletterPage .editor-with-panel .tox-tinymce {
    width: 100% !important;
    height: 45vh !important;
    min-height: 18rem !important;
    margin: 0.75rem 0 0 !important;
  }
  #setNewsletterPage .editor-with-panel textarea.tiny-target {
    width: 100% !important;
  }

  /* (4) Side-Panel-Buttons: horizontale Leiste statt vertikal, zentriert.
     Buttons quadratisch 40x40 (sonst paddet @media(hover:none) sie rechteckig),
     im aktiven Zustand wechselt btn_add -> btn_add_ (daher beide + die
     toggle-Klassen direkt zielen). Icon-Inline-margins neutralisieren. */
  #setNewsletterPage .side-panel-buttons {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-self: stretch !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
  }
  #setNewsletterPage .side-panel-buttons .btn_add,
  #setNewsletterPage .side-panel-buttons .btn_add_,
  #setNewsletterPage .toggle-param-btn,
  #setNewsletterPage .toggle-dynamic-btn,
  #setNewsletterPage .toggle-creative-btn,
  #setNewsletterPage .format-html-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #setNewsletterPage .side-panel-buttons .btn_add > i,
  #setNewsletterPage .side-panel-buttons .btn_add_ > i,
  #setNewsletterPage .toggle-param-btn > i,
  #setNewsletterPage .toggle-dynamic-btn > i,
  #setNewsletterPage .toggle-creative-btn > i,
  #setNewsletterPage .format-html-btn > i {
    margin: 0 !important;
  }

  /* (5) Side-Panel-Content (ausklappbare Parameter/Dynamik/Werbemittel-Liste):
     wenn aufgeklappt, volle Breite statt fixer 320px (sonst Overflow). */
  #setNewsletterPage .side-panel-content {
    max-width: 100% !important;
  }
  #setNewsletterPage .side-panel-content[style*="width: 320"],
  #setNewsletterPage .side-panel-content:not([style*="width: 0"]) {
    width: 100% !important;
  }
  #setNewsletterPage .side-panel-content > div {
    width: 100% !important;
  }
  #setNewsletterPage .side-panel-content .copy-wrapper {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  #setNewsletterPage .creative-panel-list {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* (6) Upload-Buttons (HTML/Bilder hochladen) sitzen absolut ueber der
     Sub-Tab-Leiste und ueberlappen die Tabs. Mobil: statisch unter die
     Tabs, volle Breite, zentriert. */
  #setNewsletterPage .nav-item.position-absolute {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    margin: 0.5rem 0 !important;
  }

  /* (7) Plus/Minus-Buttons zwischen den Absender/Betreff/Preheader-Bloecken:
     quadratisch 40x40 (sonst rechteckig durch @media(hover:none)), Icon
     zentriert. .details-scope trifft nur die Block-Verwaltungs-Buttons. */
  #setNewsletterPage .details-scope .btn_add,
  #setNewsletterPage .details-scope .btn_delete_,
  #setNewsletterPage .details-scope .btn_delete {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0.75rem !important;
  }
  #setNewsletterPage .details-scope .btn_add > i,
  #setNewsletterPage .details-scope .btn_delete_ > i,
  #setNewsletterPage .details-scope .btn_delete > i {
    margin: 0 !important;
  }

  /* (8) Geraete-Umschalter (Desktop/Tablet/Mobil, setzen die Vorschau-Breite)
     ausblenden — auf Mobil sinnlos (Viewport ist selbst ~390px). Der Wrapper
     hat keine Klasse, traegt aber genau die drei btn_add mit title=Desktop/Tablet
     -> per :has() treffen (analog 4.4.c Punkt 2 beim Bearbeiten-Modal). */
  #setNewsletterPage div:has(> .btn_add[title="Desktop"]):has(> .btn_add[title="Tablet"]) {
    display: none !important;
  }

  /* (8b) Header-Trennstrich (.border-span, tuerkis unter "KAMPAGNE ERSTELLEN"):
     liegt im flex-column-Container (.mc_a_row) und kollabiert dort auf 0
     (height wird zur schrumpfbaren flex-Main-Size) -> der Strich verschwindet je
     nach Inhalt/Tab. flex-shrink:0 + min-height fixen das dauerhaft.
     (Gleiche Falle wie 4.4.c beim Bearbeiten-Modal.) */
  #setNewsletterPage .border-span {
    flex-shrink: 0 !important;
    min-height: 2px !important;
  }

  /* (8c) Links-/Bilder-Akkordeon (.link-container, erscheint nach HTML-Upload im
     HTML-Tab) klebt direkt an der Tab-Leiste — das mt-1 wird mobil auf 0 ueberschrieben.
     1rem Abstand zwischen Tab-Leiste und erstem Akkordeon erzwingen. */
  #setNewsletterPage .link-container {
    margin-top: 1rem !important;
  }

  /* (9) Blacklisten-/Segmente-Tab: Abstand zur Tab-Leiste (Inhalt klebte oben an).
     Beide Panes bekommen oben Luft. */
  #setNewsletterPage #newsletter_blacklist_setnewsletter,
  #setNewsletterPage #newsletter_segment_setnewsletter {
    padding-top: 1rem !important;
  }
  /* Blacklist-Pills liegen in einem flex-wrap-Container ohne eigene Klasse —
     der erste Container im Blacklist-Pane braucht keinen Extra-Margin mehr
     (Pane-Padding erledigt es), aber der Pill-Container soll sauber stacken. */
  #setNewsletterPage #newsletter_blacklist_setnewsletter > div:first-child {
    margin-top: 0 !important;
  }

  /* (10) Listenitems hoeher: Blacklist-Pills (.bl-set-item) + Segment-Boxen
     (.boxBl) waren zu flach. Card-Hoehe mit ausreichend Padding, lesbar tappbar. */
  #setNewsletterPage .bl-set-item {
    min-height: 2.75rem !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important;
  }
  #setNewsletterPage #newsletter_segment_setnewsletter .boxBl {
    min-height: 2.75rem !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
    padding: 0.6rem 0.9rem !important;
    margin-bottom: 0.5rem !important;
    box-sizing: border-box !important;
  }
  #setNewsletterPage #newsletter_segment_setnewsletter .boxBl .col-12 {
    width: 100% !important;
    padding: 0 !important;
  }
  #setNewsletterPage #newsletter_segment_setnewsletter .boxBl h1 {
    font-size: 0.9rem !important;
    color: var(--white) !important;
    margin: 0 !important;
    text-align: left !important;
  }
}

/* ===========================================================================
   SENDOUT-STATISTIK-MODAL: Übersichts-Block (Volumen/Start/Ende) — Mobile
   ---------------------------------------------------------------------------
   Der Übersichts-Block oben im Statistik-Modal (#getSendoutDataDetails) liegt
   AUSSERHALB der .tab-pane und wurde daher von den KPI-Card-Mobile-Regeln
   (die .tab-pane voraussetzen) nicht erfasst — die box_histroy_count-Karten
   blieben gross/luftig und Start/Ende standen untereinander.
   Hier dasselbe kompakte Card-Pattern wie im Tab-Bereich, nur ohne .tab-pane:
   Volumen allein -> volle Breite, Start+Ende (2 cols in einer row) -> 2 Spalten
   nebeneinander. Eng auf das Sendout-Statistik-Modal gescoped.
   =========================================================================== */
@media (max-width: 991px) {

  /* Karte: kompakter Card-Stil (wie .tab-pane .box_histroy_count) */
  [id^="getSendoutDataDetails"] .container-fluid > .row > .box_histroy_count {
    min-height: 0 !important;
    padding: 0.85rem 0.75rem !important;
    margin: 0 !important;
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border: none !important;
    border-radius: var(--border) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
  [id^="getSendoutDataDetails"] .container-fluid > .row > .box_histroy_count h1 {
    font-size: 0.75rem !important;
    margin-bottom: 0.25rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    width: 100% !important;
    text-align: center !important;
  }
  [id^="getSendoutDataDetails"] .container-fluid > .row > .box_histroy_count h2 {
    font-size: 1.25rem !important;
    color: var(--white) !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }
  /* Start/Ende haben 2 h2 (Datum + Uhrzeit) mit Inline font-size:1.5rem — auf die
     kompakte Karte runterziehen, damit beide Karten gleich hoch wirken. */
  [id^="getSendoutDataDetails"] .container-fluid > .row > .box_histroy_count h2[style] {
    font-size: 1.1rem !important;
  }

  /* Row mit box_histroy_count -> Grid. Mit 2 Karten (Start+Ende) = 2 Spalten,
     mit 1 Karte (Volumen) = volle Breite (:not(:has(.col ~ .col))-Logik). */
  [id^="getSendoutDataDetails"] .container-fluid > .row:has(> .box_histroy_count) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    flex-direction: unset !important;
    margin: 0 0 0.5rem 0 !important;
  }
  [id^="getSendoutDataDetails"] .container-fluid > .row:has(> .box_histroy_count):not(:has(> .col ~ .col)) {
    grid-template-columns: 1fr !important;
  }

  /* Tab-Leiste (Allgemein/Versendet/Öffnungen/…): NICHT umbrechen, sondern
     einzeilig HORIZONTAL SCROLLBAR (Pattern wie [id^="getNewsletterData"]
     ul.nav-tabs). Der angeschnittene letzte Tab gibt den Scroll-Hinweis,
     Scrollbar versteckt (Projekt-Standard). */
  [id^="getSendoutDataDetails"] ul.nav-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-height: 42px !important;
    align-items: flex-start !important;
  }
  [id^="getSendoutDataDetails"] ul.nav-tabs::-webkit-scrollbar {
    display: none;
  }
  [id^="getSendoutDataDetails"] ul.nav-tabs > li {
    flex: 0 0 auto !important;
  }
  [id^="getSendoutDataDetails"] ul.nav-tabs > li > .nav-link {
    white-space: nowrap !important;
  }

  /* ── Gesamt-KPI-Leiste (2×2) ueber der Versendungs-Liste ──
     Das KPI-Grid uebernimmt jetzt den Subnav-Abstands-Ausgleich (negativer
     Margin, den sonst .m-so-list traegt). Steht das KPI-Grid da, darf die
     direkt folgende .m-so-list NICHT mehr negativ nach oben gezogen werden,
     sonst ueberlappt das erste Item die KPI-Karten. */
  .m-so-kpi-grid {
    margin-top: -3.05rem;
    margin-bottom: 0.6rem;
  }
  .m-so-kpi-grid + .m-so-list {
    margin-top: 0 !important;
  }

  /* Tab-Bereich-Wrapper (klassenloses scroll-div mit ul.nav-tabs + .tab-content):
     hat einen Inline-`padding-right:1rem`, der den Tab-Bereich rechts ~14px
     schmaler macht als den Volumen/Start/Ende-Block oben (.container-fluid liegt
     ausserhalb dieses Wrappers). Padding-right killen -> volle Breite wie oben.
     Plus 0.5rem Abstand zum Ende-Block darueber. Scrollbar verstecken
     (Projekt-Standard) — der overflow-y:auto-Scrollbalken fraesse sonst ~15px
     der Innenbreite und liesse den Tab-Inhalt rechts schmaler als oben. */
  [id^="getSendoutDataDetails"] .modal-content.mc_a_row > div:has(> ul.nav-tabs) {
    padding-right: 0 !important;
    margin-top: 0.5rem !important;
    scrollbar-width: none !important;
  }
  [id^="getSendoutDataDetails"] .modal-content.mc_a_row > div:has(> ul.nav-tabs)::-webkit-scrollbar {
    display: none !important;
  }

  /* ── Provider-/Mehrspalten-Reihen in den Tab-Panes (Versendet/Öffnungen/Klicks/
     Bounces/Abmelder/Einstellungen) ──
     Im Markup liegen die Provider (Apple/Freenet/GMX/Google/Microsoft/T-Online/
     Web/Yahoo/Andere = 9 Karten) als mehrere `.row` mit je 3 `.col.box_histroy_count`.
     Das Standard-2er-Grid (oben) wirkt PRO ROW -> bei 3 Karten landet die 3. allein
     in der naechsten Zeile = Luecken im Raster.
     Loesung (wie [id^="sendouts-"]-Variante beim getNewsletterData-Modal): den
     umschliessenden .container-fluid selbst zum 2-Spalten-Grid machen und die
     `.row`-Wrapper per display:contents aufloesen -> alle Karten werden direkte
     Grid-Items und fliessen fortlaufend (immer 2 pro Zeile).
     Scope: NUR Container deren rows >=3 Karten haben (Provider-Tabs) — der
     general-Tab (nur 2er-Reihe) bleibt beim Standard-2er-Grid unberuehrt. */
  [id^="getSendoutDataDetails"] .tab-pane .container-fluid:has(> .row > .box_histroy_count:nth-child(3)) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }
  [id^="getSendoutDataDetails"] .tab-pane .container-fluid:has(> .row > .box_histroy_count:nth-child(3)) > .row:has(> .box_histroy_count) {
    display: contents !important;
  }
  /* Einzelkarten-Reihe am Anfang (Öffner / Klicker / Gesamt) ->
     eigene volle Zeile, damit sie nicht mit Apple paart. */
  [id^="getSendoutDataDetails"] .tab-pane .container-fluid:has(> .row > .box_histroy_count:nth-child(3)) > .row:has(> .box_histroy_count):not(:has(> .box_histroy_count ~ .box_histroy_count)) > .box_histroy_count {
    grid-column: 1 / -1 !important;
  }
  /* Letzte Karte des Containers (Andere bei Provider-Tabs / Provider bei
     Einstellungen): landet im durchgehenden 2er-Fluss in allen vorkommenden
     Tabs ungerade -> allein in der Schlusszeile -> volle Breite statt halbbreit
     mit Luecke rechts. (Versendet: "Andere"=nth-child(3); Einstellungen:
     "Provider"=nth-child(2) — daher keine :nth-child-Einschraenkung, beide
     Faelle als :last-child der :last-of-type-row treffen.) */
  [id^="getSendoutDataDetails"] .tab-pane .container-fluid:has(> .row > .box_histroy_count:nth-child(3)) > .row:last-of-type > .box_histroy_count:last-child {
    grid-column: 1 / -1 !important;
  }

  /* ═══ BEARBEITEN-MODAL (#updateSendout) ═══ */

  /* Header-Trennstrich (.border-span): liegt im flex-column-.modal-content und
     kollabiert dort auf height:0 (die Hoehe wird zur schrumpfbaren flex-Main-Size)
     -> der tuerkise Strich war unsichtbar. flex-shrink:0 + min-height fixen das
     (gleiche Loesung wie [id^="getNewsletterData"] .border-span).
     Hinweis: Die Provider-Toggle-Reihe wird NICHT hier per CSS umgebaut, sondern
     ueber die etablierten Klassen provider-toggles-row / provider-toggle-col /
     provider-label im Template (siehe Grid-Pattern Z.1448ff) — so wie es das
     setSendouts-Modal bereits macht. */
  [id^="updateSendout"] .border-span {
    flex-shrink: 0 !important;
    min-height: 2px !important;
  }
}

/* ===========================================================================
   MOBILE PAGINATION (m-pagination) — generisch, eingefuehrt 2026-06-22
   Seiten-Navigation (prev/Zahlen/next) + Eintraege-pro-Seite-Dropdown, unter
   der Liste. Genutzt von getSendouts (m-so-list) und getNewsletter (m-nl-list).
   Akzent Tuerkis (var(--main)) wie der Rest von jd-mail. Markup-Vorlage:
   getCreative-Mobile-Pagination; Werte/Handler ueber funcToolbox=page/number.
   =========================================================================== */
@media (max-width: 991px) {

  .m-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin: 0.9rem 0 0.4rem 0;
  }

  /* Seiten-Navigation: prev | 1 … 4 5 6 … 12 | next */
  .m-pagination-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
  }
  .m-pagination-btn {
    background: transparent;
    border: 1px solid rgba(0, 203, 181, 0.4);
    color: var(--white);
    border-radius: var(--border);
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }
  .m-pagination-btn:active {
    background: rgba(0, 203, 181, 0.2);
  }
  /* Aktive Seite hervorgehoben */
  .m-pagination-btn.m-pagination-active {
    background: rgba(0, 203, 181, 0.2);
    border-color: var(--main);
    font-weight: 700;
  }
  /* Deaktiviert (prev auf Seite 1 / next auf letzter Seite) */
  .m-pagination-btn.m-pagination-disabled {
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    cursor: default;
  }
  .m-pagination-ellipsis {
    color: rgba(255, 255, 255, 0.4);
    padding: 0 0.15rem;
    align-self: center;
  }

  /* Eintraege-pro-Seite-Dropdown */
  .m-pagination-limit {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
  }
  .m-pagination-limit select {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border);
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
  }
}


/* ===========================================================================
   KUNDEN-DETAIL-MODAL MOBIL (#getClient{id}) — eingefuehrt 2026-07-06
   Lazy-Detail-Modal (.lazy-cl-modal / [id^=getClient]) mit Tabs
   (Uebersicht / Kampagnen bzw. Werbeflaechen / Kundendaten). Struktur nutzt
   dieselben Klassen wie das getNewsletterData-Modal (.request-header,
   .accordion-item, .box_histroy_count) -> Pattern 1:1 uebernommen:
   - Tab-Nav horizontal scrollbar (kein Umbruch)
   - KPI-Cards (.box_histroy_count) im 2er-Grid, Inline-Margin neutralisiert
   - Kampagnen-Tabelle (9 Spalten, .request-header + .accordion-item) -> Card-Stack
     mit ::before-Labels via nth-child (kein Markup noetig)
   - Kundendaten-Formular Felder stapeln
   Doku: [[UI Mobile Listen & Tabs]] Pattern 1/4, [[UI Mobile KPI-Cards Modal]].
   Akzent Mail-Tuerkis var(--main).
   ============================================================================= */
@media (max-width: 991px) {

  /* -- Trennstrich unter dem Titel gegen flex-Kollaps sichern (Gotcha #130) --
     Im flex-column-Modal kollabiert .border-span auf height:0. */
  [id^="getClient"] .border-span {
    flex-shrink: 0 !important;
    min-height: 2px !important;
  }

  /* -- (a) Tab-Nav: horizontal scrollbar statt umbrechen -- */
  [id^="getClient"] ul.nav-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-height: 42px !important;
    align-items: flex-start !important;
    margin-bottom: 0.75rem !important;
  }
  [id^="getClient"] ul.nav-tabs::-webkit-scrollbar { display: none; }
  [id^="getClient"] ul.nav-tabs > li { flex: 0 0 auto !important; }
  [id^="getClient"] ul.nav-tabs > li > .nav-link { white-space: nowrap !important; }

  /* -- (b) KPI-Cards (.box_histroy_count) im 2er-Grid -- */
  [id^="getClient"] .container-fluid > .row:has(.box_histroy_count) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    flex-direction: unset !important;
    margin-bottom: 0.75rem !important;
  }
  [id^="getClient"] .container-fluid > .row:has(.box_histroy_count):not(:has(.col ~ .col)) {
    grid-template-columns: 1fr !important;
  }
  /* Ungerade Reihe (z.B. 3er Branchen/Kampagnen/Werbeflaechen): letzte Card volle
     Breite statt "2+1 mit Loch rechts". last-child+nth-child(odd) = ungerade Anzahl. */
  [id^="getClient"] .row:has(.box_histroy_count) > .col.box_histroy_count:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }
  [id^="getClient"] .row:has(.box_histroy_count) > .col {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
  }
  [id^="getClient"] .box_histroy_count {
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-height: 4rem !important;
    padding: 0.85rem 0.75rem !important;
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border: none !important;
    border-radius: var(--border) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
  [id^="getClient"] .box_histroy_count h1 {
    font-size: 0.72rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    margin: 0 0 0.25rem 0 !important;
  }
  [id^="getClient"] .box_histroy_count h2 {
    font-size: 1.2rem !important;
    color: var(--white) !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  /* -- (c) Kampagnen-Tabelle -> Card-Stack --
     Header-Leiste weg; jede .accordion-item-Zeile wird eine Card, die 9 flex-
     Zellen stapeln als Label(::before)->Wert. Scope :not([data-client-id])
     schuetzt die aeussere Listen-Kunden-Card (die traegt data-client-id). */
  [id^="getClient"] .request-header {
    display: none !important;
  }
  [id^="getClient"] div[style*="overflow-y"] {
    max-height: none !important;
    overflow: visible !important;
  }
  [id^="getClient"] .accordion-item:not([data-client-id]) {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
    padding: 0.6rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }
  [id^="getClient"] .accordion-item:not([data-client-id]) > div[style*="flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  [id^="getClient"] .accordion-item:not([data-client-id]) > div[style*="flex"] > div {
    display: flex !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.35rem 0 !important;
    margin: 0 !important;
    gap: 0.75rem !important;
    text-align: right !important;
    color: var(--white) !important;
    font-size: 0.85rem !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  [id^="getClient"] .accordion-item:not([data-client-id]) > div[style*="flex"] > div:nth-child(1)::before { content: "Kampagne"; }
  [id^="getClient"] .accordion-item:not([data-client-id]) > div[style*="flex"] > div:nth-child(2)::before { content: "Volumen"; }
  [id^="getClient"] .accordion-item:not([data-client-id]) > div[style*="flex"] > div:nth-child(3)::before { content: "Start"; }
  [id^="getClient"] .accordion-item:not([data-client-id]) > div[style*="flex"] > div:nth-child(4)::before { content: "Betrag"; }
  [id^="getClient"] .accordion-item:not([data-client-id]) > div[style*="flex"] > div:nth-child(5)::before { content: "Ziel / Leads"; }
  [id^="getClient"] .accordion-item:not([data-client-id]) > div[style*="flex"] > div:nth-child(6)::before { content: "Öffnungen"; }
  [id^="getClient"] .accordion-item:not([data-client-id]) > div[style*="flex"] > div:nth-child(7)::before { content: "Öffner"; }
  [id^="getClient"] .accordion-item:not([data-client-id]) > div[style*="flex"] > div:nth-child(8)::before { content: "Klicks"; }
  [id^="getClient"] .accordion-item:not([data-client-id]) > div[style*="flex"] > div:nth-child(9)::before { content: "Klicker"; }
  [id^="getClient"] .accordion-item:not([data-client-id]) > div[style*="flex"] > div::before {
    flex: 0 0 auto !important;
    color: var(--white) !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    text-align: left !important;
  }
  [id^="getClient"] .accordion-item:not([data-client-id]) > div[style*="flex"] > div:nth-child(1) {
    justify-content: flex-start !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.25rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  [id^="getClient"] .accordion-item:not([data-client-id]) > div[style*="flex"] > div:nth-child(1)::before {
    display: none !important;
  }

  /* -- (d) Kundendaten-/Einstellungen-Formular: Felder stapeln -- */
  [id^="getClient"] form[id^="clientDataForm"] .row.mt-1,
  [id^="getClient"] form[id^="clientSettingsForm"] .row.mt-1 {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  [id^="getClient"] form[id^="clientDataForm"] .row.mt-1 > .col,
  [id^="getClient"] form[id^="clientSettingsForm"] .row.mt-1 > .col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 0.6rem 0 !important;
  }
}

/* ===========================================================================
   4.9 WERBEMITTEL-LISTE MOBIL (getCreative) — m-cr-* Card-Items — 2026-07-07
   Vorschau-Karten nach dem Desktop-.creative-card-Muster, mobil 1 pro Zeile:
   Live-HTML-Vorschau (srcdoc-iframe, skaliert wie Desktop) + Name + Typ-Badge
   + Datum + Aktions-Reihe (Vorschau-Modal / Bearbeiten-Link / Duplizieren /
   Loeschen). Neu-Button als Link (setCreative.php ist eine Seite, kein Modal).
   Vorschau-Modal [id^=previewCreative] ist in die Modal-Override-Gruppen
   eingereiht + eigener Reparent im mobile_content (liegt im desktop_content).
   Akzent Mail-Tuerkis var(--main). Breakpoint 992px.
   Doku: Obsidian [[UI Mobile Listen & Tabs]] / [[UI Mobile]].
   ============================================================================= */
@media (max-width: 991px) {

  .m-cr-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* gleicht das has-row2 padding-top der fixen Subnav aus (wie m-nl/m-cl) */
    margin-top: -3.05rem;
  }

  /* ── Item-Card: Vorschau randlos oben, Info unten ── */
  .m-cr-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    overflow: hidden;
  }

  /* Live-HTML-Vorschau: srcdoc-iframe herunterskaliert (Desktop: 600px/scale .35
     auf 180px — mobil groesserer Scale auf volle Card-Breite, 200px Fenster) */
  .m-cr-preview {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #fff;
    position: relative;
    display: flex;
    justify-content: center;
  }
  .m-cr-preview iframe {
    width: 600px;
    height: 1500px;
    border: none;
    transform: scale(0.56);
    transform-origin: top center;
    pointer-events: none;
  }

  .m-cr-info {
    padding: 0.75rem 0.85rem;
  }

  /* Kopf: Name + Typ-Badge */
  .m-cr-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
  }
  .m-cr-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-cr-badge {
    flex: 0 0 auto;
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--border);
    padding: 0.15rem 0.45rem;
  }

  /* Datum-Zeile */
  .m-cr-meta {
    color: var(--white);
    font-size: 0.75rem;
    margin-top: 0.3rem;
  }

  /* ── Aktions-Reihe: 34x34-Standard (Gotcha #113 neutralisiert) ── */
  .m-cr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .m-cr-actions .btn_add,
  .m-cr-actions .btn_delete {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem;
  }
  .m-cr-actions .btn_add > i,
  .m-cr-actions .btn_delete > i {
    margin: 0 !important;
  }

  /* ── Vorschau-Modal (#previewCreative{id}) mobil ── */
  /* Trennstrich unter dem Titel gegen flex-Kollaps sichern (Gotcha #130) */
  [id^="previewCreative"] .border-span {
    flex-shrink: 0 !important;
    min-height: 2px !important;
  }
  /* Endgeraete-Umschalter (Desktop/Tablet/Mobile) mobil ausblenden — die
     Vorschau ist auf dem Geraet ohnehin immer mobil */
  [id^="previewCreative"] .preview-device-btns {
    display: none !important;
  }
  /* Vorschau-iframe: 70vh ist mobil zu hoch neben Header+Device-Buttons */
  [id^="previewCreative"] .preview-iframe {
    height: 60vh !important;
    width: 100% !important;
  }
}

/* ===========================================================================
   WERBEMITTEL-EDITOR MOBIL (setCreative) — 2026-07-07
   Der Editor (CodeMirror + contenteditable-Preview) ist ein position:fixed-
   Overlay OHNE mobile_content-System und hatte KEIN einziges @media.
   Scope = Basis-Benutzbarkeit: 50/50-Split stapeln (Vorschau oben, Code
   darunter, Container scrollt), Slide-in-Panels volle Breite, Bild-Grids
   entzerrt, Hover-Ordner-Aktionen auf Touch sichtbar, Format-Buttons 40px,
   Speichern-/Testmail-Modal ueber den mobilen Backdrop (10010) + Felder
   gestapelt. Kein Mobile-Editor-Neubau (Roh-HTML-Editing bleibt sekundaer).
   ============================================================================= */
@media (max-width: 991px) {

  /* ── Split stapeln + zwischen Top-Icon-Bar und Bottom-Nav einpassen ── */
  #creative-container {
    flex-direction: column !important;
    top: 3rem !important;        /* mobile Icon-Bar (~35px) statt 7rem Desktop-Nav */
    bottom: 74px !important;     /* Bottom-Nav nicht ueberdecken */
    overflow-y: auto !important;
  }
  #creative-preview-wrapper,
  #creative-code {
    width: 100% !important;
  }
  /* Vorschau-Bereich: feste Hoehe, Code-Bereich: Mindesthoehe — Container scrollt */
  #creative-preview-wrapper {
    flex: 0 0 auto !important;
  }
  #creative-preview {
    height: 45vh !important;
    flex: 0 0 auto !important;
  }
  #creative-code {
    min-height: 65vh !important;
    border-left: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  /* ── Slide-in-Panels (Parameter/Dynamik/Werbemittel/Bausteine): volle Breite ── */
  #paramPanel,
  #dynamicPanel,
  #creativePanel,
  #blockPanel {
    width: 100% !important;
    left: 0 !important;
  }

  /* Endgeraete-Umschalter der Editor-Vorschau mobil ausblenden (immer mobil) */
  #creative-preview-toolbar {
    display: none !important;
  }

  /* Code-Toolbar: </>-Icon+HTML-Label weg, Buttons zentriert, Leiste UNTER den
     Code-Bereich (#creative-code ist flex-column -> order ans Ende; die
     Slide-in-Panels sind position:absolute und unbeteiligt) */
  #creative-toolbar > span {
    display: none !important;
  }
  #creative-toolbar {
    order: 10 !important;
    justify-content: center !important;
  }
  #creative-toolbar-right {
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
  }

  /* ── Format-Toolbar: Touch-Ziele (30px -> 40px, Farbfelder 36px) ── */
  .fmt-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }
  #creative-format-toolbar input[type="color"] {
    width: 36px !important;
    height: 36px !important;
  }

  /* ── Bild-Manager: Kacheln 2 pro Zeile statt calc(25%)/min-width:200px ── */
  .imgmgr-img-block {
    width: calc(50% - 0.6rem) !important;
    min-width: 0 !important;
  }
  /* Ordner-Aktionen: hover-only funktioniert auf Touch nicht -> immer sichtbar */
  .imgmgr-folder .folder-actions {
    display: flex !important;
  }

  /* ── Speichern-/Testmail-Modal: ueber den mobilen Backdrop (10005) heben ── */
  #saveCreativeModal.modal,
  #testmailModal.modal,
  #newFolderModal.modal {
    z-index: 10010 !important;
    padding: 1rem !important;
  }
  #saveCreativeModal .modal-dialog,
  #testmailModal .modal-dialog {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100vh - 2rem) !important;
    overflow-y: auto !important;
  }
  /* Trennstrich unter dem Titel gegen flex-Kollaps (Gotcha #130) */
  #saveCreativeModal .border-span,
  #testmailModal .border-span {
    flex-shrink: 0 !important;
    min-height: 2px !important;
  }
  /* Formular-Reihen stapeln (Testmail hat 2-spaltige .row .col) */
  #saveCreativeModal .row,
  #testmailModal .row {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
  }
  #saveCreativeModal .row > .col,
  #testmailModal .row > .col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 0.6rem 0 !important;
  }
  /* Global-Toggle (absolut oben rechts) nicht mit dem X kollidieren lassen */
  #saveCreativeGlobal {
    right: 3.5rem !important;
  }
}

/* ===========================================================================
   WERBEFLÄCHEN-LISTE MOBIL (getAdSpaces) — eingefuehrt 2026-07-08
   m-as-* Card-Items + Accordion, portiert von jd-partner (type p). jd-mail
   ist reine Publisher-Plattform → Karte = Publisher-Variante: Name + Chevron,
   Stat-Reihe (Gesamt/Männer/Frauen), aufklappbares Detail (Länder-Split DE/AT/
   CH) + Details-Modal. Kein Favoriten-Stern, keine Anfragen (Advertiser-Only).
   Look 1:1 wie m-nl-* (color-mix darkblue 75%, var(--border)). Breakpoint 992px.
   Doku: Obsidian [[UI Mobile Listen & Tabs]] / [[UI Mobile]].
   =========================================================================== */
@media (max-width: 991px) {

  .m-as-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* has-row2-padding-Ausgleich wie m-nl-list (Mail-Subnav-Wert -3.05rem,
       NICHT den hoeheren Partner-Wert uebernehmen). */
    margin-top: -3.05rem;
  }
  /* Empty-State (Text immer Weiss, nicht Grau) */
  .m-as-list .dash-adv-empty {
    padding: 1rem 0.5rem;
    text-align: center;
    color: var(--white);
  }

  .m-as-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    padding: 0.75rem 0.85rem;
    overflow: hidden;
    /* .accordion-item bringt margin-top aus styles.css mit → neutralisieren */
    margin-top: 0 !important;
  }

  /* ── Kopf ── */
  .m-as-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
  }
  .m-as-status {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex: 0 0 auto;
    font-size: 0.95rem;
  }
  /* "In JD Partner öffentlich"-Globus (wie Desktop-Card public-globe-icon) */
  .m-as-flag-public {
    color: var(--white);
    font-size: 0.9rem;
    flex: 0 0 auto;
  }
  .m-as-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-as-chev {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    transition: transform 0.2s ease;
  }
  .m-as-item.is-open .m-as-chev {
    transform: rotate(180deg);
  }

  /* ── Stat-Reihe ── */
  .m-as-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.6rem;
  }
  .m-as-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-as-stat-lbl {
    color: var(--white);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  .m-as-stat-val {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    min-height: 1rem;
  }
  .m-as-stat-val .loader,
  .m-as-detail-val .loader {
    margin: 0 auto;
    transform: scale(0.6);
  }

  /* ── Detail (aufklappbar) ── */
  .m-as-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, margin-top 0.28s ease;
    margin-top: 0;
  }
  .m-as-item.is-open .m-as-detail {
    max-height: 16rem;
    margin-top: 0.5rem;
  }
  .m-as-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
  }
  .m-as-detail-cell {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-as-detail-lbl {
    color: var(--white);
    font-size: 0.68rem;
    margin-bottom: 0.25rem;
  }
  .m-as-detail-val {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
  }

  /* ── Aktions-Reihe ── */
  .m-as-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .m-as-actions .btn_add {
    width: 2.6rem !important;
    height: 2.6rem !important;
    min-width: 2.6rem !important;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ── Werbeflächen-Detail-Modal ([id^="getAdSpaceData"]) ──
     Shell-Look (Content, Header-Padding, X-Button, border-span) kommt aus den
     Override-Gruppen oben. Hier nur die Modal-Spezifika. */

  /* "In JD Partner veröffentlichen"-Toggle: sitzt Desktop oben rechts, kollidiert
     mobil mit dem X-Button. Mobil in EINE Zeile oben legen (Switch + Label
     nebeneinander, horizontal — nicht column), volle Breite bis zum X-Platz.
     Der zentrierte Titel liegt darunter (Header-padding-top). So keine
     Ueberlappung — am echten iPhone lief die alte column-Variante (Switch ueber
     Label) durch Safari-Font-Boosting in den Titel. */
  [id^="getAdSpaceData"] .switch-button.position-absolute {
    top: 0.7rem !important;
    left: 1rem !important;
    right: 3.5rem !important;                /* Platz fuer den X-Button rechts */
    margin: 0 !important;
    z-index: 6 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    width: auto !important;
    max-width: none !important;
  }
  [id^="getAdSpaceData"] .switch-button.position-absolute .switch-outer {
    flex: 0 0 auto !important;
  }
  [id^="getAdSpaceData"] .switch-button.position-absolute label {
    margin: 0 !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
    font-size: 0.8rem !important;
    line-height: 1.15 !important;
    /* gegen Safari-Font-Boosting (macht das Label sonst groesser -> Umbruch/Kollision) */
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  /* Tab-Leiste (Übersicht/User/Kategorien/…, 8 Tabs): EINE Zeile, horizontal
     wischbar statt zweizeilig gewrappt — gleiche Gegenregel wie Report/fc
     (generisches .mc_a_row .nav-tabs erzwingt wrap).
     flex-shrink:0 ist PFLICHT: overflow-x hebt die implizite Mindesthöhe auf,
     und sobald ein langer Tab (User) den Content über die max-height drückt,
     quetscht die flex-column-mc_a_row die Leiste sonst auf 1px (Tabs
     "verschwinden" — Gotcha-#130-Familie). */
  [id^="getAdSpaceData"] ul.nav-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    flex-shrink: 0 !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  [id^="getAdSpaceData"] ul.nav-tabs::-webkit-scrollbar {
    display: none;
  }
  [id^="getAdSpaceData"] ul.nav-tabs .nav-item {
    flex: 0 0 auto;
  }
  [id^="getAdSpaceData"] ul.nav-tabs .nav-link {
    white-space: nowrap;
  }
  /* Sub-Tab-Leisten (Länder DE/AT/CH, Geschlecht Männer/Frauen/Domains) liegen
     verschachtelt in einem .tab-pane und kleben sonst direkt auf den Kacheln —
     Abstand nach unten. Nur die inneren Leisten (im .tab-pane), NICHT die
     Haupt-Leiste (die ist direktes Kind des Modal-Contents). */
  [id^="getAdSpaceData"] .tab-pane ul.nav-tabs {
    margin-bottom: 0.75rem !important;
  }

  /* Header-Bereich: Platz fuer die einzeilige Toggle-Zeile oben (Switch+Label
     ~28px + top 0.7rem) — der zentrierte Titel liegt darunter. */
  [id^="getAdSpaceData"] .modal-header-wrapper {
    padding-top: 3rem !important;
  }

  /* ── KPI-Kacheln (.box_histroy_count) im Modal-Tab — Layout 1:1 wie die
     Desktop-Karten, luftig, gefuellt-transparent, KEIN Rahmen, normaler Case,
     zentriert. Jede .row mit KPI-Kacheln wird ein 2-Spalten-Grid.
     Portiert aus jd-partner (.m-as-modal). jd-mail = reine Publisher-Sicht,
     daher OHNE Verlauf-/Publisher-/tg-age-Regeln. */
  .m-as-modal .row:has(.box_histroy_count) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    margin: 0 0 0.75rem 0 !important;
  }
  .m-as-modal .box_histroy_count {
    margin: 0 !important;
    min-height: 4rem !important;
    min-width: 0 !important;
    padding: 0.75rem !important;
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border: none !important;
    border-radius: var(--border) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
  .m-as-modal .row:has(.box_histroy_count) > .box_histroy_count:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }
  .m-as-modal .box_histroy_count h1 {
    font-size: 0.75rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
    margin: 0 0 0.25rem 0 !important;
    width: 100% !important;
    text-align: center !important;
  }
  /* .tab-pane im Selektor PFLICHT: die generische Regel `.mc_a_row .tab-pane
     .box_histroy_count h2 { font-size:1.25rem }` (0,3,1) schlaegt sonst meine
     0,2,1 und die Uebersicht-Kacheln bleiben 1.25rem. Mit .tab-pane erreiche
     ich 0,3,1 und die spaetere Position gewinnt. */
  .m-as-modal .tab-pane .box_histroy_count h2,
  .m-as-modal .tab-pane .box_histroy_count input,
  .m-as-modal [id^="user-adspace"] .box_histroy_count h2,
  .m-as-modal [id^="user-adspace"] .box_histroy_count input {
    font-size: 1rem !important;
    color: var(--white) !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }
  /* Alters-/Länder-Kacheln in den inneren Panes (User-Tab: male/female >
     container-fluid > row > col.box_histroy_count) liegen zwei .tab-pane tief.
     Die styles.css-Regel `.box_histroy_count h2 { 2rem }` gewinnt dort trotz
     .m-as-modal (Kaskaden-Reihenfolge: styles.css laedt spaeter). Mit einer
     .tab-pane .tab-pane-Kette (0,4,1) sicher darueber. */
  .m-as-modal .tab-pane .tab-pane .box_histroy_count h2,
  .m-as-modal .tab-pane .tab-pane .box_histroy_count input {
    font-size: 1rem !important;
  }

  /* Abstand vom ersten Inhalt jedes Tabs zur Tab-Leiste darüber (1rem, konsistent
     über alle Tabs). Das erste Element im aktiven Pane ist mal eine .container-
     fluid (KPI-Tabs), mal eine ul.nav-tabs (verschachtelte Sub-Tabs), mal ein
     <form> (Header&Footer/Einstellungen) mit ul.nav-tabs nach hidden-Inputs. */
  .m-as-modal .tab-content > .tab-pane.show.active > .container-fluid:first-child,
  .m-as-modal .tab-content > .tab-pane.show.active > .row:first-child,
  .m-as-modal .tab-content > .tab-pane.show.active > ul.nav-tabs:first-child,
  .m-as-modal .tab-content > .tab-pane.show.active > form > ul.nav-tabs {
    margin-top: 1rem !important;
  }

  /* ── User-Tab: Alters-Kacheln durchgehend 2-spaltig (nur AKTIVER Gender-Pane
     wird Grid, .container-fluid + .row per display:contents aufgeloest). ── */
  /* male/female = Alters-Kacheln, domain = Domain-Provider-Kacheln (Sub-Tab
     "Domains" im User-Tab) — identische 3er-Reihen-Struktur, durchgehend
     2-spaltig fliessen lassen (sonst 2+1-Versatz). */
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="male"].show.active,
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="female"].show.active,
  .m-as-modal [id^="user-adspace"] [id^="domain"].show.active {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="male"].show.active > .container-fluid,
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="female"].show.active > .container-fluid,
  .m-as-modal [id^="user-adspace"] [id^="domain"].show.active > .container-fluid,
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="male"].show.active > .container-fluid > .row,
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="female"].show.active > .container-fluid > .row,
  .m-as-modal [id^="user-adspace"] [id^="domain"].show.active > .container-fluid > .row {
    display: contents !important;
  }
  .m-as-modal [id^="user-adspace"] .box_histroy_count {
    margin: 0 !important;
  }
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="male"].show.active > .container-fluid > .row:has(.box_histroy_count) > .box_histroy_count,
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="female"].show.active > .container-fluid > .row:has(.box_histroy_count) > .box_histroy_count,
  .m-as-modal [id^="user-adspace"] [id^="domain"].show.active > .container-fluid > .row:has(.box_histroy_count) > .box_histroy_count {
    grid-column: auto !important;
  }
  /* Laender-KPI-Row (Volumen|Maenner|Frauen) im User-Tab: durchgehend 2-spaltig. */
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="german"].show.active > .container-fluid,
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="austria"].show.active > .container-fluid,
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="schwitz"].show.active > .container-fluid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="german"].show.active > .container-fluid > .row,
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="austria"].show.active > .container-fluid > .row,
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="schwitz"].show.active > .container-fluid > .row {
    display: contents !important;
  }
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="german"].show.active > .container-fluid > .row > .box_histroy_count:last-child:nth-child(odd),
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="austria"].show.active > .container-fluid > .row > .box_histroy_count:last-child:nth-child(odd),
  .m-as-modal [id^="user-adspace"] .tab-pane[id^="schwitz"].show.active > .container-fluid > .row > .box_histroy_count:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }

  /* ── Kategorien-Tab: durchgehend 2-spaltig (nur AKTIVER Pane wird Grid). ── */
  .m-as-modal [id^="categorie-adspace"].show.active {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  .m-as-modal [id^="categorie-adspace"].show.active > .container-fluid,
  .m-as-modal [id^="categorie-adspace"].show.active > .container-fluid > .row {
    display: contents !important;
  }
  .m-as-modal [id^="categorie-adspace"] .box_histroy_count {
    margin: 0 !important;
  }
  .m-as-modal [id^="categorie-adspace"].show.active > .container-fluid > .row:has(.box_histroy_count) > .box_histroy_count {
    grid-column: auto !important;
  }

  /* ── Länder-Tab: Sub-Panes (Gesamt/Mann/Frau) durchgehend 2-spaltig
     (nur AKTIVER innerer Pane wird Grid). ── */
  .m-as-modal [id^="lands-total-"].show.active,
  .m-as-modal [id^="lands-male-"].show.active,
  .m-as-modal [id^="lands-female-"].show.active {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  .m-as-modal [id^="lands-total-"].show.active > .container-fluid,
  .m-as-modal [id^="lands-male-"].show.active > .container-fluid,
  .m-as-modal [id^="lands-female-"].show.active > .container-fluid,
  .m-as-modal [id^="lands-total-"].show.active > .container-fluid > .row,
  .m-as-modal [id^="lands-male-"].show.active > .container-fluid > .row,
  .m-as-modal [id^="lands-female-"].show.active > .container-fluid > .row {
    display: contents !important;
  }
  .m-as-modal [id^="lands-total-"] .box_histroy_count,
  .m-as-modal [id^="lands-male-"] .box_histroy_count,
  .m-as-modal [id^="lands-female-"] .box_histroy_count {
    margin: 0 !important;
  }
  .m-as-modal [id^="lands-total-"].show.active > .container-fluid > .row:has(.box_histroy_count) > .box_histroy_count,
  .m-as-modal [id^="lands-male-"].show.active > .container-fluid > .row:has(.box_histroy_count) > .box_histroy_count,
  .m-as-modal [id^="lands-female-"].show.active > .container-fluid > .row:has(.box_histroy_count) > .box_histroy_count {
    grid-column: auto !important;
  }

  /* ── Domains-Tab: 7-Spalten-Tabelle → Card-Stack ──
     Markup (_getAdSpaces name="domains"): .request-header (7 flex-Spalten-Titel)
     + pro Domain .accordion-item.px-1 > div[flex] > 7× div (Domain/Status/
     Spamscore/Blacklisted/Für Öffner/CSA/Ablaufdatum). Auf 390px viel zu eng
     (Zellen 44-88px). Header ausblenden, jede Zeile als Card, Label→Wert via
     ::before. Struktur ist inline-flex (keine .row/.col), daher über die
     flex-Wrapper gescoped. */
  .m-as-modal [id^="domains-adspace"] .request-header {
    display: none !important;
  }
  .m-as-modal [id^="domains-adspace"] [style*="overflow-y"] {
    max-height: 60vh !important;
  }
  .m-as-modal [id^="domains-adspace"] .accordion-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
    padding: 0.5rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }
  .m-as-modal [id^="domains-adspace"] .accordion-item > div[style*="flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  .m-as-modal [id^="domains-adspace"] .accordion-item > div[style*="flex"] > div {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: right !important;
    padding: 0.3rem 0 !important;
    font-size: 0.85rem !important;
    gap: 0.75rem !important;
  }
  .m-as-modal [id^="domains-adspace"] .accordion-item > div[style*="flex"] > div:nth-child(1)::before { content: "Domain"; }
  .m-as-modal [id^="domains-adspace"] .accordion-item > div[style*="flex"] > div:nth-child(2)::before { content: "Status"; }
  .m-as-modal [id^="domains-adspace"] .accordion-item > div[style*="flex"] > div:nth-child(3)::before { content: "Spamscore"; }
  .m-as-modal [id^="domains-adspace"] .accordion-item > div[style*="flex"] > div:nth-child(4)::before { content: "Blacklisted"; }
  .m-as-modal [id^="domains-adspace"] .accordion-item > div[style*="flex"] > div:nth-child(5)::before { content: "Für Öffner"; }
  .m-as-modal [id^="domains-adspace"] .accordion-item > div[style*="flex"] > div:nth-child(6)::before { content: "CSA"; }
  .m-as-modal [id^="domains-adspace"] .accordion-item > div[style*="flex"] > div:nth-child(7)::before { content: "Ablaufdatum"; }
  .m-as-modal [id^="domains-adspace"] .accordion-item > div[style*="flex"] > div::before {
    flex: 0 0 auto !important;
    color: var(--white) !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    opacity: 0.7 !important;
    text-align: left !important;
  }
  /* Domain-Name (Zelle 1) als Card-Titel: volle Breite, links, Trennstrich. */
  .m-as-modal [id^="domains-adspace"] .accordion-item > div[style*="flex"] > div:first-child {
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-bottom: 0.15rem !important;
    padding-bottom: 0.4rem !important;
  }

  /* ── Verlauf-Tab (log): 4-Spalten-Tabelle → Card-Stack ──
     Header: .container-fluid mit Gradient-Balken (Zeitpunkt/Aktion/Details/Wer).
     Zeilen (per AJAX, ajax_ad_space_log.php): .accordion-item.p-2 > .container-
     fluid > .row > col-3/col-3/col-4/col-2 (readonly form-control-Inputs +
     Details-Div). Auf 390px unlesbar → Header ausblenden, jede Zeile als Card,
     Label→Wert via ::before. Scope: log-adspace-Pane. */
  /* Gradient-Header-Balken (die 4 Spaltentitel) ausblenden. Erkennungsmerkmal:
     .container-fluid mit linear-gradient, direktes Kind des log-Panes. */
  .m-as-modal [id^="log-adspace"] > .container-fluid[style*="gradient"] {
    display: none !important;
  }
  /* Scroll-Container: volle Breite, Höhe kappen, 1rem Abstand zur Tab-Leiste
     (der ausgeblendete Gradient-Header trug sonst den Abstand). */
  .m-as-modal [id^="log-adspace"] [id^="adSpaceLogContent"] {
    max-height: 60vh !important;
    padding-right: 0 !important;
    margin-top: 1rem !important;
  }
  /* Jede Log-Zeile → Card. */
  .m-as-modal [id^="log-adspace"] .accordion-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
    padding: 0.5rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }
  .m-as-modal [id^="log-adspace"] .accordion-item > .container-fluid {
    padding: 0 !important;
  }
  /* Zeile entstapeln: die 4 col untereinander (padding:0 2rem inline entfernen). */
  .m-as-modal [id^="log-adspace"] .accordion-item .row {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  /* Jede Zelle (col-N): Label links (::before) + Wert rechts. */
  .m-as-modal [id^="log-adspace"] .accordion-item .row > [class*="col-"] {
    display: flex !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.3rem 0 !important;
    margin: 0 !important;
    gap: 0.75rem !important;
    text-align: left !important;
  }
  /* Labels via ::before (Reihenfolge = Header-Spalten). */
  .m-as-modal [id^="log-adspace"] .accordion-item .row > [class*="col-"]:nth-child(1)::before { content: "Zeitpunkt"; }
  .m-as-modal [id^="log-adspace"] .accordion-item .row > [class*="col-"]:nth-child(2)::before { content: "Aktion"; }
  .m-as-modal [id^="log-adspace"] .accordion-item .row > [class*="col-"]:nth-child(3)::before { content: "Details"; }
  .m-as-modal [id^="log-adspace"] .accordion-item .row > [class*="col-"]:nth-child(4)::before { content: "Wer"; }
  .m-as-modal [id^="log-adspace"] .accordion-item .row > [class*="col-"]::before {
    flex: 0 0 auto !important;
    color: var(--white) !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    opacity: 0.7 !important;
    text-align: left !important;
  }
  /* Werte (readonly form-control input UND Details-Div) rechtsbündig, kein
     Input-Look. */
  .m-as-modal [id^="log-adspace"] .accordion-item input.form-control,
  .m-as-modal [id^="log-adspace"] .accordion-item .col-4 .form-control {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--white) !important;
    text-align: right !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.35 !important;
  }

  /* ── Einstellungen-Tab (settings): Hover-Tooltips als sichtbare Labels ──
     Markup: form > .row > .col > .tooltip-container > (input/select) + .custom-
     tooltip (Label). Die 3 .col der Frequenz-Zeile stapeln bereits (generische
     mc_a_row-Regel). ABER die Feld-Beschriftung steckt NUR im .custom-tooltip
     (Hover) → auf Touch unsichtbar. Mobil: Tooltip-Container zu flex-column,
     Tooltip als statisches Label ÜBER dem Feld sichtbar machen. Scope:
     settings-ad-Pane. */
  .m-as-modal [id^="settings-ad"] .tooltip-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.3rem !important;
  }
  .m-as-modal [id^="settings-ad"] .tooltip-container .custom-tooltip {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    order: -1 !important;              /* über das Feld */
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
    max-width: 100% !important;
    text-align: left !important;
    pointer-events: none !important;
  }
  /* Tooltip-Pfeil (::before/::after) ausblenden — nur als Label, kein Bubble. */
  .m-as-modal [id^="settings-ad"] .tooltip-container .custom-tooltip::before,
  .m-as-modal [id^="settings-ad"] .tooltip-container .custom-tooltip::after {
    display: none !important;
  }
  /* 1rem Abstand vom ersten Feld zur Tab-Leiste. */
  .m-as-modal [id^="settings-ad"] > form > .row:first-child {
    margin-top: 1rem !important;
  }

  /* ── Header & Footer-Tab: Geräte-Vorschau-Umschalter ausblenden ──
     Der TinyMCE-Editor + Vorschau ist mobil bereits nutzbar (generische
     .tox-tinymce-Regeln + width:100%). Nur die Desktop/Tablet/Mobile-Umschalt-
     Buttons sind überflüssig (Vorschau ist eh Modal-breit). Werden per JS
     (footer.tpl) in barWrapper > bar > .btn_add > i.fa-desktop injiziert —
     beide Ebenen abdecken. */
  .m-as-modal [id^="header-footer-adspace"] div:has(> div > .btn_add > .fa-desktop),
  .m-as-modal [id^="header-footer-adspace"] div[style*="justify-content: center"]:has(> .btn_add > .fa-desktop) {
    display: none !important;
  }
}

/* =============================================================================
   4.10 KAMPAGNEN LOUNGE MOBILE (m-ll-*) — eingefuehrt 2026-07-09
   Card-basierte Leadlounge-Liste (getLeadlounge), an m-nl-* (Kampagnen-Liste)
   angelehnt: Kopf (Flags + Name + Paymodel) + Kategorie-Zeile + Stat-Reihe
   (Vergütung/Zeitraum) + Aktions-Reihe (Anfragen/Widerrufen/Löschen + Mehr).
   Kein aufklappbares Detail (weniger Felder als Kampagnen) — Detail-Modal
   uebernimmt den Rest (identisch zu Desktop "Mehr"-Button).
   ============================================================================= */
@media (max-width: 991px) {

  .m-ll-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* Gleiche Kompensation wie m-nl-list: .m-subnav-content/.ll-mobile-content
       reserviert bereits Platz fuer den fixen Header — kein Doppel-Abstand. */
    margin-top: -3.05rem;
  }

  .m-ll-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    padding: 0.75rem 0.85rem;
    overflow: hidden;
  }

  .m-ll-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
  }
  .m-ll-flags {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
  }
  .m-ll-flag-blacklist {
    color: var(--lightred);
    font-size: 1rem;
  }
  .m-ll-flag-zielgruppe {
    color: var(--white);
    font-size: 0.9rem;
  }
  .m-ll-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-ll-paymodel {
    flex: 0 0 auto;
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--border);
    padding: 0.15rem 0.45rem;
  }

  .m-ll-cat {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
  }
  .m-ll-cat:empty {
    display: none;
  }

  .m-ll-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.6rem;
  }
  .m-ll-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-ll-stat-lbl {
    color: var(--white);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  .m-ll-stat-val {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
  }
  .m-ll-stat-payout {
    color: var(--main);
  }

  /* Aktionen: Trennlinie + zentrierte 34px-Icon-Buttons (Anfragen-Status + Mehr),
     analog m-nl-actions/m-lsh-actions statt der frueheren Text-Buttons. */
  .m-ll-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .m-ll-actions .btn_add,
  .m-ll-actions .btn_delete {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;   /* neutralisiert @media(hover:none) min-height:44px (Gotcha #113) */
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem;
  }
  .m-ll-actions .btn_add > i,
  .m-ll-actions .btn_delete > i {
    margin: 0 !important;
  }
  .m-ll-actions .m-ll-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .m-ll-running {
    flex: 1 1 auto;
    min-width: 7rem;
    padding: 0.5rem;
    color: var(--white);
    text-align: center;
    font-size: 0.85rem;
  }
}

/* =============================================================================
   MOBILE LEADLOUNGE DETAIL-MODAL (#getLeadloungeData<newsletterId><userId>)
   -----------------------------------------------------------------------------
   Modal-ID bewusst von getNewsletterData auf getLeadloungeData umbenannt (war
   identischer Praefix wie das eigene Kampagnen-Editor-Modal -> erbte dessen
   umfangreiche [id^="getNewsletterData"]-Editor-CSS ungewollt) und die Mobile-
   Kopie zusaetzlich mit Suffix "Mobile" (Desktop + Mobile rendern BEIDE server-
   seitig -> vorher doppelte IDs im DOM, Bootstrap traf beim Tab-Klick immer die
   erste Kopie, Gotcha #85). Klassische-Modal-Schale nach [[UI Mobile Modals]].
   Das 2-spaltige KPI-Grid greift bereits generisch ueber .mc_a_row .tab-pane.
   Breakpoint 992px.
   ============================================================================= */
@media (max-width: 991px) {
  [id^="getLeadloungeData"].modal {
    padding: 1rem !important;
    z-index: 10010 !important;
  }
  [id^="getLeadloungeData"] .modal-dialog {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
  }
  [id^="getLeadloungeData"] .modal-content,
  [id^="getLeadloungeData"] .mc_a_row {
    border-radius: var(--border) !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(100vh - 2rem) !important;
    /* dvh NACH vh (Fallback fuer aeltere Browser) — iOS Safari berechnet 100vh
       instabil je nach ein-/ausgeblendeter Adressleiste. */
    max-height: calc(100dvh - 2rem) !important;
    padding: 1.1rem 0.875rem !important;
    overflow-y: auto !important;
  }
  [id^="getLeadloungeData"] .modal-header-wrapper {
    padding-right: 3.5rem !important;
    position: static !important;
  }
  [id^="getLeadloungeData"] .modal-close-mobile {
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    width: 40px !important;
    height: 40px !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: var(--border) !important;
    color: var(--white) !important;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
                rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
                rgba(0, 0, 0, 0.2) 0px -3px 0px inset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
    font-size: 1rem !important;
    transition: background-color 0.15s ease !important;
  }
  [id^="getLeadloungeData"] .modal-close-mobile:hover {
    background-color: var(--main) !important;
    color: var(--white) !important;
  }
  /* Header-Trennstrich gegen flex-Kollaps sichern (Gotcha #130) */
  [id^="getLeadloungeData"] .border-span {
    flex-shrink: 0 !important;
    min-height: 2px !important;
  }
  /* TinyMCE-Vorschau (WM-Tab, readonly): 70vh (Inline-Style aus dem gemeinsamen
     tinymce.init) ist fuer eine reine Lese-Vorschau auf Mobil viel zu hoch und
     erzeugt eine riesige, halbleer wirkende schwarze Flaeche darunter. */
  [id^="getLeadloungeData"] .tox-tinymce {
    height: 35vh !important;
    height: 35dvh !important;
  }
  /* Geraete-Vorschau-Umschalter (Desktop/Tablet/Mobile) im readonly-WM-Preview
     ausblenden — kommt aus dem geteilten addResponsiveButtons (footer.tpl) und
     macht in einer ohnehin mobilen Lese-Vorschau keinen Sinn. */
  [id^="getLeadloungeData"] div:has(> div > .btn_add > .fa-desktop),
  [id^="getLeadloungeData"] div[style*="justify-content: center"]:has(> .btn_add > .fa-desktop) {
    display: none !important;
  }
  /* Bemerkung-Tab: 35rem (Desktop-Wert der .ll-remark-textarea) ist auf Mobil eine
     riesige, meist leere schwarze Flaeche. Kompakter, scrollt bei laengerem Text.
     Selektor braucht das `textarea`-Element (0,2,1), sonst gewinnt die generische
     `.mc_a_row textarea.textarea`-Hoehenregel. */
  [id^="getLeadloungeData"] .mc_a_row textarea.ll-remark-textarea {
    height: 12rem !important;
    /* 1rem Abstand zur Tab-Leiste: die Textarea klebte direkt darunter (ihr Bootstrap-mt-1
       wird von der generischen .textarea-Regel plattgemacht). Hier reicht 1rem, weil die
       Haupt-Tab-Leiste in jd-mail margin-bottom:0 hat — in jd-partner traegt sie bereits
       0.5rem bei, dort steht deshalb nur 0.5rem (Summe beidseitig exakt 1rem).
       Bewusst NUR die Textarea angefasst, nicht der .tab-content: eine Regel dort haette
       auch den Übersicht-Tab verschoben, dessen Abstand bereits stimmt. */
    margin-top: 1rem !important;
  }

  /* ── Zielgruppe-Sektion (nur bei Kampagnen mit gesetzter Zielgruppe) ──────── */
  /* Alters-Reihen (Geschlecht / Alter von / Alter bis) durchgehend 3-spaltig in EINER
     Zeile — das generische 2-Spalten-KPI-Grid wuerde daraus "2 + 1 volle Breite" machen. */
  [id^="getLeadloungeData"] .tab-pane .row.tg-age-row:has(.box_histroy_count) {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  /* Zielgruppe-Kopfzeile + PLZ/Bundeslaender-Umschalter mobil groesser/luftiger
     (Touch-Flaeche — Gotcha #113: min-height + padding muessen mit). */
  [id^="getLeadloungeData"] .target-header {
    padding: 0.55rem 0.75rem !important;
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: var(--border) !important;
  }
  [id^="getLeadloungeData"] [id^="llPlzToggle"],
  [id^="getLeadloungeData"] [id^="llBlToggle"] {
    padding: 0.5rem 0.4rem !important;
    min-height: 38px !important;
    font-size: 0.8rem !important;
  }

  /* ── Anfragen-/Widerrufen-/Ablehnen-Button am Modal-Ende ──────────────────── */
  /* Im Modal bleibt es bewusst ein Text-Button (volle Breite, klare Beschriftung) —
     die 34px-Icon-Buttons gelten nur fuer die kompakte Karten-Aktionsreihe. */
  [id^="getLeadloungeData"] .ll-request-btn,
  [id^="getLeadloungeData"] button[value="refuse"] {
    width: 100% !important;
    min-height: 44px !important;
    margin-top: 1rem !important;
  }
}

/* =============================================================================
   4.11 LEADSHOP MOBILE (m-lsh-*) — eingefuehrt 2026-07-09, ueberarbeitet 2026-07-11/12
   Card-basierte Leadshop-Lieferantenliste (getLeadshop), ersetzt den alten
   list_mobile-Block (Legacy-Stand vom 06.02.2026, Mobile-Sprint-Neuaufbau-
   Regel: keine Alt-Staende respektieren). Struktur folgt 1:1 dem etablierten
   m-xx-item-Muster (m-us-item/m-sg-item, NICHT der Desktop-Poster-Optik der
   card-adspace-ls-Karte): linksbuendiger Kopf (Name + Badge), Subline
   (Laender-Badges), dunkles 3er-Stat-Grid (Kurz-/Langdatensatz-Preis,
   Mindestmenge), Aktionen-Footer mit Trennlinie + zentriertem 34px-Icon-Button.
   ============================================================================= */
@media (max-width: 991px) {

  .m-lsh-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* Gleiche Kompensation wie m-nl-list/m-bl-list (.m-subnav-content.has-row2
       reserviert ueberschuessiges Padding). */
    margin-top: -3.05rem;
  }
  .m-lsh-list .dash-adv-empty {
    padding: 1rem 0.5rem;
    text-align: center;
    color: var(--white);
    font-size: 0.85rem;
  }

  /* Exakt dieselbe Hintergrundfarbe wie m-us-item/m-sg-item/m-bl-item (var(--darkblue)
     75%) — bewusst NICHT var(--test), das erzeugte einen sichtbar helleren, andersfarbigen
     Ton (User-Feedback auf echtem Geraet). var(--darkblue) ist zwar hex-identisch zum
     Seitenhintergrund (.div_light_mobile: var(--poly-dark), beide #0a0f24) und die Karte
     "verschmilzt" dadurch optisch — das ist aber genau der etablierte Look aller anderen
     Listen: Kontrast kommt aus den inneren Stat-Boxen (rgba(0,0,0,0.2)) + dem Card-zu-Card-
     Abstand, nicht aus einer eigenen Kartenfarbe. */
  .m-lsh-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    padding: 0.75rem 0.85rem;
  }

  /* Kopf: Firmenname linksbuendig (wie m-us-email/m-sg-name), Staffelpreis-
     Badge rechts (wie m-sg-type-badge). */
  .m-lsh-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
  }
  .m-lsh-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-lsh-tier-badge {
    flex: 0 0 auto;
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--border);
    padding: 0.15rem 0.45rem;
  }
  .m-lsh-tier-badge > i {
    margin-right: 0.25rem;
  }

  /* Subline: Laender-Badges (wie m-us-name Subline, hier als Pills statt Text) */
  .m-lsh-countries {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.35rem;
  }
  .m-lsh-country-badge {
    background: rgba(0, 203, 181, 0.15);
    color: var(--main);
    border-radius: var(--border);
    padding: 0.15rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
  }

  /* Stat-Grid wie m-us-stats/m-sg-stats: dunkle Boxen, Label oben, Wert unten */
  .m-lsh-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.6rem;
  }
  .m-lsh-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-lsh-stat-lbl {
    color: var(--white);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
  }
  .m-lsh-stat-val {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
  }
  .m-lsh-stat-na {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    font-size: 0.85rem;
  }

  /* Aktionen wie m-us-actions/m-sg-actions: Trennlinie + zentrierter 34px-Icon-Button */
  .m-lsh-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .m-lsh-actions .btn_add {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;   /* neutralisiert @media(hover:none) min-height:44px (Gotcha #113) */
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem;
  }
  .m-lsh-actions .btn_add > i {
    margin: 0 !important;
  }

  /* Bestell-Modal (#getNewsletterData<id><userId>): alle Toggle-/Feld-Reihen mit
     2+ Geschwister-.col (Kurz-/Langdatensatz, Länder, Geschlecht, Altersgruppen,
     Provider, Über-uns-Adresse) werden 2-spaltig gerastert statt gestapelt — sonst
     zwingt die generische .mc_a_row-Stapel-Regel jede .col auf 100% Breite (gleiches
     Muster wie #setSegmentPage). Scope ist .tab-content (nicht nur .leadshop-order-
     form), damit auch der Über-uns-Tab (Straße/Stadt/PLZ) erfasst wird. Einzelne
     .col-Reihen (Bestellmenge-Input, Preisbox, Name, Info-Textarea) bleiben ueber
     :has(> .col + .col) bewusst aussen vor und behalten volle Breite.
     .details-wrapper (Ranking-Details: Absender/Betreff/Preheader je Variante)
     explizit ausgenommen — dort soll JEDE Variante ihre eigene volle Zeile
     behalten statt sich mit der naechsten Variante die Breite zu teilen. */
  [id^="getNewsletterData"] .tab-content .row:has(> .col + .col):not(.details-wrapper) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem !important;
  }
  [id^="getNewsletterData"] .tab-content .row:has(> .col + .col):not(.details-wrapper) > .col {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
  }
  /* Ungerade Anzahl .col (z.B. 3 Länder DE/AT/CH, 3 Adressfelder Straße/Stadt/
     PLZ): letztes Element bliebe sonst als halbbreites "Einzelkind" mit totem
     Freiraum daneben stehen ("1 pro Zeile"-Optik) — stattdessen volle Breite
     (gleiches Muster wie UI Mobile Listen & Tabs Pattern 2, "ungerade letzte
     Karte = volle Breite"). */
  [id^="getNewsletterData"] .tab-content .row:has(> .col + .col):not(.details-wrapper) > .col:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }

  /* Einheitlicher 1rem-Abstand zwischen allen Feld-/Sektions-Bloecken in BEIDEN
     Tabs (Bestellen: Toggle-Reihen, Provider-Tableiste + Tab-Content, Staffel-
     preis-Info, Geschaeftsfelder-Liste, Preisbox — Über uns: Name/Adresse-Reihen,
     Info-Textarea-Container, Website-Link-Container) — vorher uneinheitlich
     0,5–0,75rem je nach Bootstrap-Utility-Klasse bzw. Inline-Style. */
  [id^="getNewsletterData"] .tab-content .row.mt-1,
  [id^="getNewsletterData"] .leadshop-order-form .tab-content,
  [id^="getNewsletterData"] .leadshop-order-form ul.nav-tabs,
  [id^="getNewsletterData"] .tab-content .tier-info,
  [id^="getNewsletterData"] .tab-content div[style*="max-height: 13rem"],
  [id^="getNewsletterData"] .tab-content .row:has(.price-box),
  [id^="getNewsletterData"] .tab-content .container-fluid + .container-fluid {
    margin-top: 1rem !important;
  }

  /* Über-uns-Tab: "Webseite öffnen"-Link volle Breite statt rechtsbuendig-
     kompakt (bessere Touch-Zielgroesse, konsistent mit den anderen Aktions-
     Buttons im Modal). Desktop-Optik (auto-Breite, rechtsbuendig) bleibt in
     styles.css unangetastet — nur hier auf Mobil ueberschrieben. */
  [id^="getNewsletterData"] .leadshop-website-link-row {
    justify-content: center !important;
  }
  [id^="getNewsletterData"] .leadshop-website-link {
    width: 100% !important;
    text-align: center !important;
  }

  /* Geschaeftsfelder-Checkboxen (.checkbox-wrapper-23, 43 Eintraege): der Wrapper
     hat global KEIN position:relative, wodurch der unsichtbare native Checkbox-
     Input (position:absolute) bis zum naechsten positionierten Vorfahren
     (.modal-content) hochrutscht und dessen scrollHeight um ca. 1800px aufblaeht
     (letzter Eintrag landet bei top:3747px) — riesige leere Flaeche nach dem
     Bestellen-Button. Fix hier scoped statt global (styles.css), da nicht
     verifiziert ob andere .checkbox-wrapper-23-Vorkommen von der globalen
     Aenderung unberuehrt blieben. */
  [id^="getNewsletterData"] .checkbox-wrapper-23 {
    position: relative;
  }
}

/* =============================================================================
   4.12 SEGMENTE MOBILE (m-sg-*) — eingefuehrt 2026-07-11
   Card-basierte Segment-Liste (getSegment), ersetzt den alten list_mobile-Block
   (Legacy-Stand, Mobile-Sprint-Neuaufbau-Regel: keine Alt-Staende respektieren).
   Karte: Kopf (Typ-Icon + Name + Typ-Badge), Anzahl/Update-Stats, Aktionen
   (Refresh/Download/Loeschen — wiederverwenden die bestehenden document-
   delegierten Handler aus _getSegment.tpl ueber dieselben Klassen+data-Attribute,
   kein JS-Duplikat). "Details ansehen" (Regelwerk-Modal) bewusst NICHT auf der
   Mobile-Karte — eigener Mobile-Pass noetig (5 typspezifische Regel-Editoren).
   ============================================================================= */
@media (max-width: 991px) {

  .m-sg-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* has-row2-padding-Ausgleich wie m-nl-list/m-bl-list (Gotcha #13):
       Nav→Item = Item→Item statt ueberschuessiger Luecke unter der fixen Subnav. */
    margin-top: -3.05rem;
  }

  .m-sg-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    padding: 0.75rem 0.85rem;
    overflow: hidden;
  }

  .m-sg-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
  }
  .m-sg-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-sg-type-badge {
    flex: 0 0 auto;
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--border);
    padding: 0.15rem 0.45rem;
  }

  .m-sg-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.6rem;
  }
  .m-sg-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-sg-stat-lbl {
    color: var(--white);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  .m-sg-stat-val {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
  }
  .m-sg-stat-date {
    font-size: 0.85rem;
    font-weight: 600;
  }

  .m-sg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .m-sg-actions form {
    width: auto !important;
    margin: 0 !important;
  }
  .m-sg-actions .btn_add,
  .m-sg-actions .btn_delete {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;   /* neutralisiert @media(hover:none) min-height:44px (Gotcha #113) */
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem;
  }
  .m-sg-actions .btn_add > i,
  .m-sg-actions .btn_delete > i {
    margin: 0 !important;
  }

  /* Bedingungs-Felder im Ansehen-Modal (get_news/get_client/...): die
     Bootstrap-.col-Spalten stapeln mobil untereinander, hatten aber 0px Abstand
     (klebten aneinander) — analog Dynamic-Modal-Gotcha (Bedingungs-Zeilen). */
  [id^="getSegment"] .tab-pane .row > .col + .col {
    margin-top: 0.5rem;
  }
  /* Abstand ZWISCHEN Feld-Reihen (Kampagne-Select-Reihe -> Datum-Reihe ->
     Alle/Empfaenger-Reihe -> Geschlecht/Status-Reihe) — das Bootstrap-mt-1
     (0.25rem) allein ist mobil zu wenig. Gilt fuer beide Modals. */
  #setSegmentPage .tab-pane .row + .row,
  [id^="getSegment"] .tab-pane .row + .row {
    margin-top: 0.75rem;
  }

  /* Erstellen-Modal: zusammengehoerige Felder (Datum-Start/Ende, Alle/Empfaenger,
     Geschlecht/Status) bleiben wie am Desktop NEBENEINANDER (2 Spalten) statt
     gestapelt — die generische .mc_a_row .row:not()-Regel (Gotcha #131, hoehere
     Spezifitaet durch :not()-Kette) zwingt sonst flex-direction:column. #setSegmentPage
     ist eine ID-Selektor-Basis (Spezifitaet schlaegt jede reine Klassen-Kette),
     daher reicht flex-direction ohne die :not()-Kette zu wiederholen. Bootstraps
     eigenes .col (flex:1 0 0%) verteilt 2 Spalten automatisch 50/50, ein
     Einzel-.col (Kampagne-Select) bleibt durch flex-grow automatisch 100%. */
  #setSegmentPage .tab-pane .row {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
  }
  /* Die generische ".mc_a_row form > .row > .col"-Regel zwingt width:100%
     + flex:none auf JEDES .col (fuer den Normalfall Einzelfeld-pro-Zeile) —
     bei Reihen mit 2 Feldern muss das fuer den 50/50-Split explizit
     zurueckgesetzt werden. Nur Reihen mit :has(> .col + .col) betroffen,
     Einzelfeld-Reihen (Kampagne-Select) behalten ihre 100%-Breite. */
  #setSegmentPage .tab-pane .row:has(> .col + .col) > .col {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
  }

  /* Segment-Typ-Auswahl (Kampagne/Kunde/Kategorie/Person/PLZ): wie am Desktop
     horizontal in einer Zeile, auf Mobil per Scroll statt gestapelt/gequetscht
     (Pattern identisch zu #setNewsletterPage ul.nav-tabs — Scrollbar ausgeblendet,
     Items behalten ihre natuerliche Breite). Liegt AUSSERHALB der .tab-pane,
     eigene Markerklasse .sg-type-row statt generischem .row-Scope. */
  #setSegmentPage .sg-type-row {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
  }
  #setSegmentPage .sg-type-row::-webkit-scrollbar {
    display: none;
  }
  #setSegmentPage .sg-type-row > .col {
    flex: 0 0 auto !important;
    width: auto !important;
  }
  #setSegmentPage .sg-type-row .radio-container {
    white-space: nowrap;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* =============================================================================
   4.13 USER MOBILE (m-us-*) — eingefuehrt 2026-07-11
   Card-basierte Subscriber-Liste (getUser), ersetzt den alten list_mobile-Block
   (Legacy-Stand, Mobile-Sprint-Neuaufbau-Regel: keine Alt-Staende respektieren).
   Karte: Kopf (Status-Icon + E-Mail), Name-Subline, Anmeldung/Oeffnung/Klick-Stats,
   Aktionen (Details/Loeschen — wiederverwenden die bestehenden document-delegierten
   Handler aus getUser.tpl/_getUser.tpl ueber dieselben Klassen+data-Attribute,
   kein JS-Duplikat). Details-Modal (#getUserData<id>) bleibt Singleton im
   desktop_content-Skelett -> show.bs.modal-Reparenting-Listener (wie getSegment).
   ============================================================================= */
@media (max-width: 991px) {

  .m-us-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* has-row2-padding-Ausgleich wie m-nl-list/m-sg-list (Gotcha #13):
       Nav→Item = Item→Item statt ueberschuessiger Luecke unter der fixen Subnav. */
    margin-top: -3.05rem;
  }

  .m-us-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    padding: 0.75rem 0.85rem;
    overflow: hidden;
  }

  .m-us-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
  }
  .m-us-status-icon {
    flex: 0 0 auto;
    font-size: 0.85rem;
  }
  .m-us-status-warn {
    color: #f1c40f;
  }
  .m-us-status-error {
    color: #e74c3c;
  }
  .m-us-email {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-us-name {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .m-us-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.6rem;
  }
  .m-us-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .m-us-stat-lbl {
    color: var(--white);
    font-size: 0.65rem;
    margin-bottom: 0.25rem;
  }
  .m-us-stat-val {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.1rem;
  }
  .m-us-stat-date {
    font-size: 0.8rem;
    font-weight: 600;
  }
  .m-us-stat-val .loader {
    width: 14px;
    height: 14px;
  }

  .m-us-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .m-us-actions .btn_add,
  .m-us-actions .btn_delete {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;   /* neutralisiert @media(hover:none) min-height:44px (Gotcha #113) */
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem;
  }
  .m-us-actions .btn_add > i,
  .m-us-actions .btn_delete > i {
    margin: 0 !important;
  }

  /* Details-Modal (#getUserData<id>): Tab-Leiste (Personen bezogene Daten /
     Technische Daten / Versendungen / Verlauf) wie am Desktop in EINER Zeile,
     mobil horizontal scrollbar statt auf 2 Zeilen gestapelt. Pattern identisch
     zu #setNewsletterPage ul.nav-tabs / #setSegmentPage .sg-type-row. Scope per
     [id^="getUserData"] (Modal-ID ist dynamisch je Subscriber). */
  [id^="getUserData"] ul.nav-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-height: 42px !important;
    align-items: flex-start !important;
  }
  [id^="getUserData"] ul.nav-tabs::-webkit-scrollbar {
    display: none;
  }
  [id^="getUserData"] ul.nav-tabs > li {
    flex: 0 0 auto !important;
  }
  [id^="getUserData"] ul.nav-tabs > li > .nav-link {
    white-space: nowrap !important;
  }

  /* Versendungen- + Verlauf-Tab: Desktop-Tabelle (4 Spalten) stapelt mobil
     unleserlich (jede .col wird auf 100% gezwungen). Loesung = etabliertes
     Card-Stack-Pattern (UI Mobile Listen & Tabs, Pattern 1, wie Kampagnen-Verlauf
     [id^="history-"]): Spaltenkopf ausblenden, jede Zeile → Card, jede Zelle als
     Label→Wert-Reihe (Label via ::before, Wert rechtsbuendig). Kein JS-Umbau —
     das AJAX-Desktop-Markup bleibt, nur CSS transformiert es. */
  [id^="getUserData"] .m-us-tab-thead {
    display: none !important;
  }
  /* Jeder Eintrag → Card (color-mix 75% + Hover, wie Referenz) */
  [id^="getUserData"] .subscriber-sends-container .accordion-item,
  [id^="getUserData"] .lead-consents-container .accordion-item,
  [id^="getUserData"] .subscriber-history-container .accordion-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
    padding: 0.6rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
    transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
  }
  [id^="getUserData"] .subscriber-sends-container .accordion-item:hover,
  [id^="getUserData"] .lead-consents-container .accordion-item:hover,
  [id^="getUserData"] .subscriber-history-container .accordion-item:hover {
    background: var(--darkblue) !important;
    box-shadow: rgba(0,0,0,0.4) 0px 2px 4px, rgba(0,0,0,0.3) 0px 7px 13px -3px, rgba(0,0,0,0.2) 0px -3px 0px inset !important;
  }
  /* Zeile entstapeln */
  [id^="getUserData"] .subscriber-sends-container .accordion-item .row,
  [id^="getUserData"] .lead-consents-container .accordion-item .row,
  [id^="getUserData"] .subscriber-history-container .accordion-item .row {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  /* Jede Zelle: Label links, Wert rechts */
  [id^="getUserData"] .subscriber-sends-container .accordion-item .row > [class*="col-"],
  [id^="getUserData"] .lead-consents-container .accordion-item .row > [class*="col-"],
  [id^="getUserData"] .subscriber-history-container .accordion-item .row > [class*="col-"] {
    display: flex !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.35rem 0 !important;
    margin: 0 !important;
    border-bottom: none !important;
    gap: 0.75rem !important;
    text-align: left !important;
  }
  /* Labels via ::before (Reihenfolge = ehemalige Header-Spalten) */
  [id^="getUserData"] .subscriber-sends-container .accordion-item .row > [class*="col-"]:nth-child(1)::before { content: "Kampagne"; }
  [id^="getUserData"] .subscriber-sends-container .accordion-item .row > [class*="col-"]:nth-child(2)::before { content: "Datum"; }
  [id^="getUserData"] .subscriber-sends-container .accordion-item .row > [class*="col-"]:nth-child(3)::before { content: "Geöffnet"; }
  [id^="getUserData"] .subscriber-sends-container .accordion-item .row > [class*="col-"]:nth-child(4)::before { content: "Geklickt"; }
  [id^="getUserData"] .subscriber-history-container .accordion-item .row > [class*="col-"]:nth-child(1)::before { content: "Datum"; }
  [id^="getUserData"] .subscriber-history-container .accordion-item .row > [class*="col-"]:nth-child(2)::before { content: "Aktion"; }
  [id^="getUserData"] .subscriber-history-container .accordion-item .row > [class*="col-"]:nth-child(3)::before { content: "Details"; }
  [id^="getUserData"] .subscriber-history-container .accordion-item .row > [class*="col-"]:nth-child(4)::before { content: "Wer"; }
  /* Einwilligungen-Tab: reine Auflistung (eine Kategorie je Zeile) — kein ::before-Label,
     der Wert steht fuer sich. */
  [id^="getUserData"] .lead-consents-container .accordion-item input.form-control {
    text-align: left !important;
  }
  [id^="getUserData"] .subscriber-sends-container .accordion-item .row > [class*="col-"]::before,
  [id^="getUserData"] .subscriber-history-container .accordion-item .row > [class*="col-"]::before {
    flex: 0 0 auto !important;
    color: var(--white) !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    opacity: 1 !important;
  }
  /* Werte (input ODER div .form-control) rechtsbuendig, kein Input-Look */
  [id^="getUserData"] .subscriber-sends-container .accordion-item input.form-control,
  [id^="getUserData"] .subscriber-sends-container .accordion-item div.form-control,
  [id^="getUserData"] .lead-consents-container .accordion-item input.form-control,
  [id^="getUserData"] .lead-consents-container .accordion-item div.form-control,
  [id^="getUserData"] .subscriber-history-container .accordion-item input.form-control,
  [id^="getUserData"] .subscriber-history-container .accordion-item div.form-control {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--white) !important;
    text-align: right !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
}

/* ===========================================================================
   TRIGGERMAILS MOBILE (m-tm-*) — eingefuehrt 2026-07-12
   Card-basierte Liste (getTriggermail); der mobile_content-Block war vorher ein
   leerer Stub ({* TODO *}), die Seite also mobil komplett leer.
   Aufbau nach dem etablierten m-dyn-/m-ll-Pattern:
   Kopf (Name + Status-Badge) + Kennzahlen-Grid (dieselben 5 Spalten wie Desktop)
   + Aktions-Reihe mit 34x34-Icon-Buttons (Toggle / Oeffnen / Loeschen).
   Doku: Obsidian [[UI Mobile Listen & Tabs]] / [[UI Mobile]].
   =========================================================================== */
@media (max-width: 991px) {

  .m-tm-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* has-row2-padding-Ausgleich — identischer Subnav-Aufbau wie getDynamic/getBlacklist
       (Titel-Zeile + Suche, kein AdSpace-Selector), daher derselbe Wert. Gegen die
       Referenzseite gemessen: Nav->Item == Item->Item (Gotcha #13). */
    margin-top: -3.05rem;
  }
  /* Empty-State: Text IMMER Weiss, nicht Grau (sonst haengt er unformatiert unter der
     Subnav, weil der negative margin-top der Liste ihn mit hochzieht). */
  .m-tm-list .dash-adv-empty {
    padding: 1rem 0.5rem;
    text-align: center;
    color: var(--white);
    font-size: 0.85rem;
  }

  .m-tm-item {
    background: color-mix(in srgb, var(--darkblue) 75%, transparent);
    border: none;
    border-radius: var(--border);
    padding: 0.75rem 0.85rem;
    overflow: hidden;
  }

  /* ── Kopf: Name (ellipsis) + Status-Badge ── */
  .m-tm-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
  }
  .m-tm-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* Status-Badge: Default inaktiv (rot), aktiv per Zusatzklasse. Wird vom geteilten
     Toggle-Handler (_getTriggermail.tpl) live umgeschaltet. */
  .m-tm-badge {
    flex: 0 0 auto;
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: var(--border);
    padding: 0.15rem 0.45rem;
    background: color-mix(in srgb, var(--lightred) 30%, transparent);
  }
  .m-tm-badge-active {
    background: color-mix(in srgb, var(--main) 25%, transparent);
  }

  /* ── Kennzahlen: Volumen volle Breite, darunter die beiden Paare nebeneinander
     (haelt Oeffner/Oeffner Unique bzw. Klicks/Klicker optisch zusammen). ── */
  .m-tm-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.6rem;
  }
  .m-tm-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border);
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }
  .m-tm-stat-full {
    grid-column: 1 / -1;
  }
  .m-tm-stat-lbl {
    color: var(--white);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
  }
  .m-tm-stat-val {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
  }

  /* ── Aktionen: Trennlinie + zentrierte 34px-Icon-Buttons ── */
  .m-tm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .m-tm-actions .btn_add,
  .m-tm-actions .btn_delete {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;   /* neutralisiert @media(hover:none) min-height:44px (Gotcha #113) */
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem;
  }
  .m-tm-actions .btn_add > i,
  .m-tm-actions .btn_delete > i {
    margin: 0 !important;
  }
  /* Der Loeschen-Button steckt in einem <form> (confirm-form) — sonst wuerde das Form
     als Flex-Item die Reihe auseinanderziehen. */
  .m-tm-actions form {
    width: auto !important;
    margin: 0 !important;
    display: flex !important;
  }

  /* ── Detail-Modal (#getTriggermailData<id>) ──
     Wird per JS ans <body> gehoben (liegt als Row-Include im desktop_content).
     Klassische Modal-Schale nach [[UI Mobile Modals]]. */
  [id^="getTriggermailData"].modal {
    padding: 1rem !important;
    z-index: 10010 !important;
  }
  [id^="getTriggermailData"] .modal-dialog {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
  }
  [id^="getTriggermailData"] .modal-content,
  [id^="getTriggermailData"] .mc_a_row {
    border-radius: var(--border) !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(100vh - 2rem) !important;
    /* dvh NACH vh (Fallback) — iOS Safari rechnet 100vh je nach Adressleiste instabil. */
    max-height: calc(100dvh - 2rem) !important;
    padding: 1.1rem 0.875rem !important;
    overflow-y: auto !important;
  }
  /* Padding SYMMETRISCH — sonst steht der Titel nicht mittig.
     Der Close-Button ist position:absolute und braucht gar keinen reservierten Platz;
     ein einseitiges padding-right verschiebt den zentrierten Titel um die HALBE
     Padding-Breite nach links (gemessen: 24 px bei 3.5rem). Das Referenz-Modal
     (#setTestadress, Z. 3563) macht es richtig und setzt beide Seiten. */
  [id^="getTriggermailData"] .modal-header-wrapper {
    padding-left: 3.5rem !important;
    padding-right: 3.5rem !important;
    position: static !important;
  }
  [id^="getTriggermailData"] .modal-close-mobile {
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    width: 40px !important;
    height: 40px !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: var(--border) !important;
    color: var(--white) !important;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
                rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
                rgba(0, 0, 0, 0.2) 0px -3px 0px inset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
    font-size: 1rem !important;
    transition: background-color 0.15s ease !important;
  }
  [id^="getTriggermailData"] .modal-close-mobile:hover {
    background-color: var(--main) !important;
    color: var(--white) !important;
  }
  /* Header-Trennstrich gegen flex-Kollaps sichern (Gotcha #130) */
  [id^="getTriggermailData"] .border-span {
    flex-shrink: 0 !important;
    min-height: 2px !important;
  }
}

/* ── Versendungen-Tab: 6-Spalten-Tabelle → Card-Stack (Label → Wert) ──────────
   Auf 390px klebten die Spaltenkoepfe zu "DatumVolumenÖffnungen…" zusammen und die
   Werte standen als unbeschriftete Zahlenreihe da. Kopfzeile aus, jede Zeile wird
   eine Karte mit Label(::before) links / Wert rechts. Muster 1:1 aus dem getClient-
   Kampagnen-Tab ([[UI Mobile Listen & Tabs]] Pattern 1). Die Zellen tragen Inline-
   `flex: 1; text-align: center` -> alle Overrides brauchen !important. */
@media (max-width: 991px) {
  [id^="getTriggermailData"] .tm-sends-head {
    display: none !important;
  }
  [id^="getTriggermailData"] .tm-sends-row {
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: 0 !important;
    padding: 0.6rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
    background: color-mix(in srgb, var(--darkblue) 75%, transparent) !important;
    border-radius: var(--border) !important;
  }
  [id^="getTriggermailData"] .tm-sends-row > div {
    display: flex !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.35rem 0 !important;
    margin: 0 !important;
    gap: 0.75rem !important;
    text-align: right !important;
    color: var(--white) !important;
    font-size: 0.85rem !important;
  }
  [id^="getTriggermailData"] .tm-sends-row > div:nth-child(1)::before { content: "Datum"; }
  [id^="getTriggermailData"] .tm-sends-row > div:nth-child(2)::before { content: "Volumen"; }
  [id^="getTriggermailData"] .tm-sends-row > div:nth-child(3)::before { content: "Öffnungen"; }
  [id^="getTriggermailData"] .tm-sends-row > div:nth-child(4)::before { content: "Öffner"; }
  [id^="getTriggermailData"] .tm-sends-row > div:nth-child(5)::before { content: "Klicks"; }
  [id^="getTriggermailData"] .tm-sends-row > div:nth-child(6)::before { content: "Klicker"; }
  [id^="getTriggermailData"] .tm-sends-row > div::before {
    flex: 0 0 auto !important;
    color: var(--white) !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    text-align: left !important;
  }
}

/* ── Bedingungs-Gruppen (Triggermail erstellen/bearbeiten): Entfernen-Button ──
   Der Minus-Button wird per JS als `.position-absolute`-Wrapper an den Anfang der
   Gruppe PREPENDed (ensureRemoveButton in _getTriggermail.tpl). Die generische
   Altregel setzt ihn mobil auf position:relative — dadurch faellt er in den Fluss
   zurueck und belegt als ERSTES Kind eine eigene, optisch leere Zeile ÜBER den
   Bedingungs-Feldern. Fix: Gruppe zur Flex-Spalte machen und den Wrapper per
   `order` ans ENDE sortieren -> der Button sitzt rechtsbuendig UNTER den Feldern.

   Breakpoint bewusst 991px (die echte Plattform-Grenze) statt der 768px der
   Altregel: zwischen 769-991px ist die Mobile-Ansicht bereits aktiv, dort griff
   die Altregel NICHT und der Button lag absolut ueber dem ersten Feld
   (Stolperer #1 in [[UI Mobile KPI-Cards Modal]]). */
@media (max-width: 991px) {
  [id^="getTriggermailData"] [class*="inputGroupTrigger-"],
  [id^="getTriggermailData"] [class*="inputGroupTriggermail-"],
  #setTriggermailPage [class*="inputGroupTrigger-"],
  #setTriggermailPage [class*="inputGroupTriggermail-"] {
    display: flex !important;
    flex-direction: column !important;
  }
  [id^="getTriggermailData"] [class*="inputGroupTrigger-"] > .position-absolute,
  [id^="getTriggermailData"] [class*="inputGroupTriggermail-"] > .position-absolute,
  #setTriggermailPage [class*="inputGroupTrigger-"] > .position-absolute,
  #setTriggermailPage [class*="inputGroupTriggermail-"] > .position-absolute {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    order: 99 !important;            /* ans Ende der Gruppe, unter die Felder */
    display: flex !important;
    justify-content: center !important;   /* zentriert — wie im Erstellen-Modal */
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
  }
  /* Quadratisch 40x40 (Modal-Standard, NICHT die 34px der Karten-Icon-Reihe) —
     ohne min-height/padding-Reset blaeht die @media(hover:none)-Touch-Regel ihn
     auf 40x44 auf (Gotcha #113). */
  [id^="getTriggermailData"] .removeButton,
  #setTriggermailPage .removeButton {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  [id^="getTriggermailData"] .removeButton > i,
  #setTriggermailPage .removeButton > i {
    margin: 0 !important;
  }
  /* Das Erstellen-Modal nutzt fuer denselben Button einen eigenen Wrapper
     (.condition-remove-wrapper) — der wird von der bestehenden Regel bereits
     zentriert und bleibt unangetastet. Hier nur die Groesse angleichen (siehe oben),
     damit der Button in BEIDEN Modals identisch aussieht. */
}


/* =============================================================================
   PULL-TO-REFRESH (m-ptr) — eingefuehrt 2026-07-13
   Am Seitenanfang nach unten ziehen laedt die Seite neu. Markup + Handler:
   templates/_pull_refresh.tpl. Der Indikator liegt mit z-index 9997 UNTER der
   fixierten Subnav/Kopfleiste (9998) und kommt darunter hervor.
   ============================================================================= */
@media (max-width: 991px) {
  .m-ptr {
    position: fixed;
    top: 0;
    left: 50%;
    margin-left: -20px;
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--darkblue);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-44px);
  }
  .m-ptr.is-animating {
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .m-ptr i {
    color: var(--main);
    font-size: 0.9rem;
    transition: transform 0.2s ease;
  }
  .m-ptr.is-armed i {
    transform: rotate(180deg); /* Pfeil dreht sich: "loslassen zum Neuladen" */
  }
  /* Waehrend des Neuladens: Pfeil raus, CI-Spinner rein */
  .m-ptr .loader {
    display: none;
  }
  .m-ptr.is-refreshing i {
    display: none;
  }
  .m-ptr.is-refreshing .loader {
    display: block;
  }
}

/* ========================================
   getRemote.php Rolle "report" (_remote_report.tpl) — Titel-Trennstrich
   ======================================== */
@media (max-width: 991px) {
  /* .mc_a ist hier display:flex;flex-direction:column — ein Block-Element
     ohne eigene Groesse (.border-span, height:2px) kollabiert darin auf
     Hoehe 0 (Gotcha #130, wie schon bei .lazy-nl-modal/.getClient etc.).
     Kopf-Padding von .mc_a ist an dieser Stelle 5rem (70px) — passt nicht
     zur 1rem-Abstandsregel der Guest/Report-Standalone-Seiten (siehe
     jd-partner .guest-modal), daher direkt auf 1rem gesetzt statt an das
     Padding angeglichen. */
  .guest-modal .modal-content {
    padding-top: 1rem !important;
  }
  .guest-modal .border-span {
    flex-shrink: 0 !important;
    min-height: 2px !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  /* Gestapelte Tab-Ebenen (Übersicht/Details -> WM 1 -> HTML/TEXT/Details):
     die generische `.mc_a .nav-tabs { margin-top: 0 !important }` (weiter
     oben in dieser Datei) nullt den Abstand zwischen JEDER Ebene komplett —
     die Ebenen kleben aneinander (nur die Nav-Link-Innenpolsterung erzeugte
     eine ungleichmaessige optische Luecke). Verschachtelte Ebenen tragen
     bereits die Klasse `mt-1`; hier gezielt auf 1rem angehoben. */
  .guest-modal .nav-tabs.mt-1 {
    margin-top: 1rem !important;
  }
}
