@media (orientation: landscape) {  }
@media (orientation: portrait) {  }

/* Smartphones hochkant (Portrait) bis iPhone SE, Galaxy S Mini

@media (max-width: 480px) {  }
  
*/

:root {
  --bg: rgba(0, 71, 76, 0.2);
  --bg-lightblack: rgba(0, 0, 0, 0.8);
  --bg-green: rgba(0, 71, 76, 1);
  --fc-today-bg-color: #0e2648 !important;

  --main: #f5a623 !important;
  --main_connect: #f5a623af !important;
  --white: #fff !important;
  --darkgreen: #004f51 !important;

  --darkblue: #0a0f24 !important;
  --darkGray: #1F1F1F !important;


  --darkViolet: #181432 !important;
  --lightViolet: #2c203f !important;
  --darkRose: #88545d !important;
  --middleRose: #683347 !important;
  --lightRose: #88545d !important;

  --test: #1f2336 !important;
  /* --lightBlue: #0e2648 !important; */
  --lightred: #eb5543 !important;
  --darkred: #781b10 !important;
  --darkyellow: #dbbc0d !important;
  --grey: #2f3742 !important;

  --border: 3px;

  --font-xxl: 2rem !important;
  --font-xl: 1.5rem !important;
  --font-lg: 1.25rem !important;
  --font-sm: 1rem !important;
  --font-md: 0.75rem !important;
  --lineheight: 25px;
}

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

/* Mobile Breakpoint (< 992px) - aktiviert Mobile-Ansicht */
@media (max-width: 991px) {
  .desktop_view { display: none !important; }
  .desktop_view:has(.guest-page-layout) { display: block !important; }
  .mobile_view { display: block !important; }

  /* Desktop Navigation verstecken */
  .navigation { display: none !important; }
}

/* Smartphones quer + große Smartphones (iPhone 14 Pro Max, Galaxy S24 Ultra) */
@media (max-width: 768px) {
  html, body {
      min-height: 100% !important;
      height: auto !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
  }

  .mc_a_row {
    top: 3rem;
    left: 0rem;
    padding: 1rem;
    width: 100%;
    /* height: 31rem !important; */
    background-image: 
      linear-gradient(rgba(10, 15, 36, 0.7), rgba(10, 15, 36, 0.4)),  /* dunkler Overlay */
      url('../svg/bg_poly.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .box_histroy_count {
    background-color: var(--darkblue) !important;
    min-height: 5rem;
    min-width: 5rem;
    border: solid 1px var(--darkgreen);
    border-radius: var(--border);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem !important;
    margin-top: 1rem;
    background-image: 
    linear-gradient(rgba(10, 15, 36, 0.7), rgba(10, 15, 36, 0.4)),  /* dunkler Overlay */
    url('../svg/bg_poly.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

}

@media (hover: none) and (pointer: coarse) {

  button { padding: 1rem 2rem; }
}

.choose-adspace {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;       /* volle Breite */
  z-index: 9999;     /* damit es über allem liegt */
}

.navigation-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;       /* volle Breite */
  min-height: 1rem;  /* Höhe */
  background-color: var(--darkblue);
  z-index:9999;     /* damit es über allem liegt */
}


.newsletter-carusell-row{
  position: relative;
  background-color: var(--darkblue);
  border-radius: var(--border);
  border: 2px solid var(--darkgreen);
  height: 25rem !important;
  width: 100%;
  background-image:
  linear-gradient(rgba(10, 15, 36, 0.7), rgba(10, 15, 36, 0.4)),  /* dunkler Overlay */
  url('../svg/bg_poly_new.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =============================================================================
   MOBILE MODAL STYLES
   Fullscreen Modals auf Mobile Geräten
   ============================================================================= */

@media (max-width: 768px) {
  .modal {
    padding: 0 !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: 3rem 1.25rem 4rem 1.25rem !important;
    transform: none !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    min-height: 100vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mc_a::-webkit-scrollbar,
  .mc_a_row::-webkit-scrollbar,
  .modal::-webkit-scrollbar,
  .modal-dialog::-webkit-scrollbar {
    display: none;
  }

  .modal,
  .modal-dialog {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  /* 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%;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !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 */
  .mc_a .row:not(.blacklist-entry-content):not(.blacklist-header-row),
  .mc_a_row .row:not(.blacklist-entry-content):not(.blacklist-header-row) {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .mc_a .col:not(.blacklist-entry-value):not(.blacklist-entry-date):not(.blacklist-entry-actions),
  .mc_a_row .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(.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(.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;
  }

  /* Blacklist Header Row */
  .mc_a .blacklist-header-row,
  .mc_a_row .blacklist-header-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;
  }

  .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;
  }

  /* Blacklist Einträge: Row als Flex-Row statt Column */
  .mc_a .blacklist-entry-content,
  .mc_a_row .blacklist-entry-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    gap: 0.5rem !important;
    padding: 0 0.5rem !important;
  }

  .mc_a .blacklist-entry-value,
  .mc_a_row .blacklist-entry-value {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
    font-size: 0.8rem !important;
    word-break: break-all !important;
    text-align: left !important;
    padding: 0 !important;
  }

  .mc_a .blacklist-entry-date,
  .mc_a_row .blacklist-entry-date {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 0 !important;
  }

  .mc_a .blacklist-entry-actions,
  .mc_a_row .blacklist-entry-actions {
    flex: 0 0 auto !important;
    width: 36px !important;
    max-width: none !important;
    padding: 0 !important;
  }

  /* Blacklist Delete Button - wie X-Button */
  .blacklist-delete-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    background: #0a0f24 !important;
    border: none !important;
    border-radius: 3px !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    padding: 0 !important;
    margin-right: 1rem !important;
    cursor: pointer !important;
  }

  .blacklist-delete-btn:hover,
  .blacklist-delete-btn:active {
    border-color: #f44336 !important;
    color: #f44336 !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"] {
    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;
  }

  /* Header-Style auf Mobile */
  .mc_a .header-style,
  .mc_a_row .header-style {
    font-size: 1.25rem !important;
    letter-spacing: 0.15rem !important;
  }

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

  /* =============================================================================
     MOBILE CLOSE BUTTON für Modals
     ============================================================================= */
  .modal-close-mobile {
    display: flex !important;
    position: fixed;
    top: 0.75rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: rgba(10, 15, 36, 0.8);
    border: 1px solid #88545d;
    border-radius: 3px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    z-index: 9999;
    padding: 0;
  }

  .modal-close-mobile:hover,
  .modal-close-mobile:active {
    background: rgba(136, 84, 93, 0.5);
    border-color: #fff;
  }

  /* =============================================================================
     NEWSLETTER MODAL: Upload-Buttons + Sub-Tabs Fix
     ============================================================================= */

  /* Upload-Buttons: nicht mehr absolute, zentriert als eigene Zeile */
  .mc_a .nav-tabs .nav-item.position-absolute,
  .mc_a_row .nav-tabs .nav-item.position-absolute {
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    margin-bottom: 0.5rem;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap;
  }

  /* Upload-Button Labels kleiner */
  .mc_a .custom-file label,
  .mc_a_row .custom-file label {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  /* Nav-Tabs einzeilig auf Mobile */
  .mc_a .nav-tabs,
  .mc_a_row .nav-tabs {
    flex-wrap: nowrap !important;
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Tab-Content: kein festes padding-left */
  .mc_a .tab-content,
  .mc_a_row .tab-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Row im Tab-Content: kein festes padding-left */
  .mc_a .tab-pane .row,
  .mc_a_row .tab-pane .row,
  .mc_a .tab-pane-content .row,
  .mc_a_row .tab-pane-content .row {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* TEXT-Textarea: volle Breite statt 91rem */
  .mc_a .textarea,
  .mc_a_row .textarea,
  .mc_a textarea.textarea,
  .mc_a_row textarea.textarea {
    width: 100% !important;
    max-width: 100% !important;
    height: 20rem !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
  }

  /* TinyMCE Editor: volle Breite + Parent-Container */
  .mc_a .d-flex.justify-content-center:has(.tox-tinymce),
  .mc_a_row .d-flex.justify-content-center:has(.tox-tinymce) {
    width: 100% !important;
  }

  .mc_a .tox-tinymce,
  .mc_a_row .tox-tinymce {
    width: 100% !important;
    max-width: 100% !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;
  }

  /* Link/Bild-Container: volle Breite */
  .mc_a .link-container,
  .mc_a_row .link-container,
  .mc_a .image-container,
  .mc_a_row .image-container {
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  /* Negative margins entfernen */
  .mc_a .d-flex.justify-content-center textarea,
  .mc_a_row .d-flex.justify-content-center textarea {
    margin-left: 0 !important;
  }

  /* Parameterliste + Dynamische Inhalte: 2 pro Reihe statt 4 */
  .mc_a .copy-wrapper,
  .mc_a_row .copy-wrapper {
    width: calc(50% - 0.25rem) !important;
  }

  /* Öffentlich-Toggle auf Mobile: rechts, 40% kleiner, scrollt mit */
  .mc_a .checkbox-wrapper-8.position-absolute,
  .mc_a_row .checkbox-wrapper-8.position-absolute {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.3rem !important;
    margin-bottom: 0.5rem;
    transform: scale(0.6);
    transform-origin: right center;
  }

  /* Details-Wrapper Margins */
  .mc_a .details-wrapper .col,
  .mc_a_row .details-wrapper .col,
  .mc_a .details-wrapper- .col,
  .mc_a_row .details-wrapper- .col {
    margin-left: 0 !important;
  }

  /* WM Tab Namen kleiner */
  .mc_a .editTabName,
  .mc_a_row .editTabName {
    font-size: 0.85rem !important;
  }

  /* DYNAMIC: Gap zwischen Alle-Zeile und Bedingungen angleichen (0.5rem statt 0.75rem) */
  .mc_a .tab-pane > .row,
  .mc_a_row .tab-pane > .row {
    margin-bottom: 0.5rem !important;
  }

  /* Tab-Pane: TinyMCE-Abstand zu Tabs auf 0.5rem (mt-1 + JS margin entfernen) */
  .mc_a .tab-pane > .d-flex.mt-1,
  .mc_a_row .tab-pane > .d-flex.mt-1 {
    margin-top: 0 !important;
  }

  .mc_a .tab-pane .tox-tinymce,
  .mc_a_row .tab-pane .tox-tinymce {
    margin-top: 0 !important;
  }

  /* DYNAMIC: Von/Bis Labels vor Wochentag-Selects */
  [class*="day-col-1"]::before,
  [class*="day-col-2"]::before {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
    text-align: center;
  }

  [class*="day-col-1"]::before {
    content: "Von";
  }

  [class*="day-col-2"]::before {
    content: "Bis";
  }

  /* =============================================================================
     DYNAMIC: Bedingungs-Zeilen - Minus-Button neben Select statt ueberlappend
     ============================================================================= */
  .mc_a .container-fluid.position-relative:has(.removeButton),
  .mc_a_row .container-fluid.position-relative:has(.removeButton) {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    padding-right: 0 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
  }

  .mc_a .container-fluid.position-relative:has(.removeButton) > .row,
  .mc_a_row .container-fluid.position-relative:has(.removeButton) > .row {
    width: 100% !important;
    flex: 1 !important;
    min-width: 0 !important;
    margin-bottom: 0 !important;
  }

  .mc_a .container-fluid.position-relative:has(.removeButton) > .position-absolute,
  .mc_a_row .container-fluid.position-relative:has(.removeButton) > .position-absolute {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    flex-shrink: 0 !important;
    margin-top: 0.25rem;
  }
}

/* Desktop: Close-Button versteckt */
.modal-close-mobile {
  display: none;
}

/* ========================================
   GUEST PAGE - ALLGEMEIN (alle Breakpoints)
   ======================================== */

/*
 * Problem 1: .div_light_desktop > * setzt z-index: 1 auf .guest-page-layout.
 * Dadurch liegt der gesamte Gast-Inhalt unter Bootstrap-Backdrop (z-index: 1040/1050).
 * Fix: .guest-page-layout auf z-index: 2000 anheben → über jedem Backdrop.
 */
.guest-page-layout {
    position: relative !important;
    z-index: 2000 !important;
}

/*
 * Problem 2: Breakpoint-Regeln in styles.css setzen transform: translateX(-50%)
 * auf .mc_a bei 992–1399px (ohne !important). Unser Media-Query-Override hat
 * nur left und width, nicht transform. → Modal-Content verschiebt sich ~45vw nach
 * links, Tabs landen off-screen und sind unklickbar.
 * Fix: transform: none !important für alle .guest-modal .mc_a.
 */
.guest-modal .mc_a {
    left: 0 !important;
    width: 100% !important;
    transform: none !important;
}

/* ========================================
   GUEST PAGE - DESKTOP
   ======================================== */

/* ≥ 1200px: Zwei-Spalten Layout — Sidetext 35%, Modal 65% */
@media (min-width: 1200px) {
    .guest-page-layout {
        display: flex;
        align-items: flex-start;
        min-height: 100vh;
    }

    .guest-sidetext-col {
        width: 25%;
        flex-shrink: 0;
        padding: 2rem 1rem;
    }

    .guest-sidetext-col .guest-sidetext {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        max-width: none !important;
    }

    .guest-modal-col {
        width: 75%;
        position: relative;
    }

    .guest-modal-col .guest-modal {
        position: relative !important;
        display: block !important;
    }

    .guest-modal-col .guest-modal .mc_a {
        left: 0 !important;
        width: 100% !important;
    }

    .guest-modal-col .guest-modal .modal-dialog {
        max-width: calc(100% - 2rem);
        width: calc(100% - 2rem);
        margin: 1.75rem 1rem;
    }
}

/* 992px–1199px: Sidetext ausblenden, Modal 100% */
@media (min-width: 992px) and (max-width: 1199px) {
    .guest-sidetext-col {
        display: none;
    }

    .guest-modal-col {
        width: 100% !important;
    }

    .guest-modal {
        position: relative !important;
        display: block !important;
        width: 100%;
    }

    .guest-modal .mc_a {
        left: 0 !important;
        width: 100% !important;
    }

    .guest-modal .modal-dialog {
        max-width: 100%;
        width: 100%;
        margin: 1rem;
    }
}

/* < 992px: Sidetext ausblenden, Modal fullwidth */
@media (max-width: 991px) {
    .guest-sidetext-col {
        display: none;
    }

    .guest-modal {
        position: relative !important;
        display: block !important;
        width: 100%;
    }

    .guest-modal .mc_a {
        left: 0 !important;
        width: 100% !important;
    }

    .guest-modal .modal-dialog {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
}

/* ========================================
   GUEST PAGE - MOBILE
   ======================================== */

@media (max-width: 768px) {

    /* Fullscreen Modal */
    .guest-modal .modal-dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

    .guest-modal .modal-content {
        border-radius: 0;
        min-height: 100vh;
        padding: 1rem 1rem 4rem 1rem;
    }

    /* 7 Tabs horizontal scrollbar */
    .guest-modal .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .guest-modal .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .guest-modal .nav-tabs .nav-link {
        white-space: nowrap;
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }

    /* Textareas responsive */
    .guest-modal textarea.textarea {
        width: 100% !important;
        min-height: 15rem !important;
        box-sizing: border-box;
    }

    /* Info Icon + Panel */
    .guest-info-toggle {
        top: 0.5rem !important;
        left: 0.5rem !important;
    }

    .guest-info-panel {
        top: 3.5rem !important;
        left: 0.5rem !important;
        max-width: calc(100vw - 1rem) !important;
    }
}






