  /* Standardzustand: unsichtbar */
  #messagebox {
    transition: opacity 0.5s ease;
    opacity: 0;
    display:none;
    pointer-events: none; /* verhindert Interaktionen, solange unsichtbar */
  }
  /* Sichtbar: Einblendung */
  #messagebox.visible {
    opacity: 1;
    display:block;
    pointer-events: auto;
  }
      /* Toast-Meldung */
      .toast-message {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 10px 20px;
        border-radius: 5px;
        font-size: 14px;
        z-index: 1000;
        opacity: 1;
        transition: opacity 0.5s ease;
    }

    .toast-message.fade-out {
        opacity: 0;
    }
    #customAlertBlock.fullscreen {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.8);
        position: fixed;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 89; /* Sicherstellen, dass der Alertblock im Vordergrund bleibt */
        transition: all 0.5s ease;
        padding-left:15%;
        padding-right:15%;
    }

    #customAlertBlock.minimized {
        width: 100%;
        height: 100px;
        bottom: 10px;
        right: 10px;
        top: auto;
        left: auto;
        background-color: rgba(0, 0, 0, 0.8);
        position: fixed;
        visibility: visible;
        opacity: 0.8;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 89; /* Sicherstellen, dass der minimierte Alertblock im Vordergrund bleibt */
        transition: all 0.5s ease;
        cursor: pointer;
        padding:0px;
    }

    #customAlertBlock.minimized .alertblock-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
        font-size: 10px; /* Verkleinert den Inhalt */
        text-align: center;
    }

    .alertblock-container {
        max-height: 80%;
        overflow-y: auto;
        padding: 20px;
        background-color: rgba(181, 27, 27, 0.7);
        border-radius: 8px;
    }

    @media (min-width: 992px) {
        #customAlertBlock.fullscreen {
            padding-left: 0;
            padding-right: 0;
            z-index: 2000;
        }

        #customAlertBlock.fullscreen .alertblock-container {
            width: 80vw;
            min-width: 80%;
            height: 50vh;
            min-height: 50%;
            max-height: 50vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        #customAlertBlock-content {
            overflow: auto;
            max-height: 100%;
        }
    }