.toaster-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    padding: 16px 20px 10px 20px;
    min-width: 280px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadein 0.3s forwards, fadeout 0.3s ease-out forwards;
    animation-delay: 0s, calc(var(--duration) - 0.3s);
    --duration: 10000ms;
    overflow: hidden;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    color: #000000;/* kein Markieren */
    margin-bottom: 10px; /* Abstand zum Balken */
}

.toast-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    background-color: white;           /* weißer Kreis */

    display: flex;
    align-items: center;               /* vertikal zentrieren */
    justify-content: center;           /* horizontal zentrieren */

    font-size: 22px;                   /* ggf. etwas größer */
    font-weight: bold;
    line-height: 1;                    /* verhindert vertikale Verschiebung */
    user-select: none;
}

.toast-success {
    border: 2px solid #2e7d32;         /* grüner Rand */
    color: #2e7d32 !important;                    /* grünes Häkchen */
}

.toast-error {
    border: 2px solid #aa1717;         /* grüner Rand */
    color: #aa1717 !important;                    /* grünes Häkchen */
}


.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-progress {
    height: 5px;
    border-radius: 0 0 10px 10px;
    animation-name: progress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.progress-success {
    background-color: #2e7d32;
}

.progress-error {
    background-color: #aa1717;
}



.toast-success {
    --color: #2e7d32;
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeout {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}
