/* =========================================================================
 * shared/demo-toast.css — Toast für Form-Submits in Demos
 * Wird vom demo-toast.js dynamisch ins DOM gehängt.
 * Optisch neutral, an Mainseite-Designsystem angelehnt.
 * ========================================================================= */

.demo-toast-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 22, 30, 0.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}
.demo-toast-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.demo-toast {
    background: #ffffff;
    color: #1c1f2a;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 22px 26px 22px 70px;
    max-width: 520px;
    width: 100%;
    margin-bottom: 32px;
    position: relative;
    transform: translateY(20px);
    transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
    font-family: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}
.demo-toast-overlay.is-open .demo-toast { transform: translateY(0); }

.demo-toast::before {
    content: "i";
    position: absolute;
    left: 22px;
    top: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6c5ce7;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.95rem;
    font-style: italic;
    font-family: 'Georgia', serif;
}

.demo-toast__title {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #1c1f2a;
}

.demo-toast__text {
    margin: 0 0 10px 0;
    color: #5a6072;
}

.demo-toast__link {
    display: inline-block;
    color: #6c5ce7;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.demo-toast__link:hover { opacity: 0.78; }

.demo-toast__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #8a90a2;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    display: grid;
    place-items: center;
}
.demo-toast__close:hover { background: #f0f1f5; color: #1c1f2a; }

@media (max-width: 620px) {
    .demo-toast {
        padding: 56px 18px 18px 18px;
        margin-bottom: 12px;
        border-radius: 12px;
    }
    .demo-toast::before { left: 18px; top: 16px; }
    .demo-toast__title { font-size: 0.98rem; }
    .demo-toast__text  { font-size: 0.92rem; }
}
