/* schema-gate.css: Anmelde-Popup für Gäste (schema-gate.js) auf Schema- und Blogseiten.
   Grundgerüst .jm-dialog-* steht in style.css. */

.sg-dialog {
    max-width: 860px;
    padding: 44px 48px 40px;
}

.sg-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.sg-visual {
    position: relative;
    aspect-ratio: 1 / 1.05;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-orb {
    position: absolute;
    inset: 8% 4% 6%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #c4b5fd 0%, #8b5cf6 45%, #4f46e5 100%);
    opacity: 0.22;
    filter: blur(2px);
    animation: sgPulse 6s ease-in-out infinite;
}

.sg-lexi {
    position: relative;
    width: 74%;
    z-index: 1;
}

.sg-chip {
    --chip: #4f46e5;
    position: absolute;
    z-index: 2;
    padding: 6px 13px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.16);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--chip);
    cursor: default;
    animation: sgFloat 5s ease-in-out infinite;
    /* scale/rotate statt transform, damit der Hover die Schwebe-Animation nicht überschreibt */
    transition: scale 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), rotate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sg-chip:hover {
    scale: 1.12;
    rotate: -4deg;
    background-color: var(--chip);
    border-color: var(--chip);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.3);
}

.sg-chip--2:hover { rotate: 4deg; }

.sg-chip--1 { top: 6%; left: -2%; --chip: #4f46e5; }
.sg-chip--2 { top: 38%; right: -6%; --chip: #0284c7; animation-delay: -1.6s; }
.sg-chip--3 { bottom: 8%; left: 6%; --chip: #db2777; animation-delay: -3.2s; }

@keyframes sgFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes sgPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.sg-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sg-title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 2.6vw, 1.95rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.sg-lead {
    margin: 0 0 16px;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.6;
}

.sg-checks {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.sg-checks li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #1e293b;
    font-size: 0.96rem;
    line-height: 1.45;
}

.sg-check {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
}

.sg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(99, 102, 241, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sg-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.4);
}

.sg-login {
    margin: 12px 0 0;
    text-align: center;
    font-size: 0.86rem;
    color: #64748b;
}

.sg-login a {
    color: #4f46e5;
    font-weight: 600;
}

@media (max-width: 720px) {
    .sg-dialog {
        padding: 30px 22px 26px;
    }

    .sg-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sg-visual {
        width: 150px;
        margin: -6px auto 0;
    }

    .sg-chip {
        font-size: 0.7rem;
        padding: 4px 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sg-chip,
    .sg-orb {
        animation: none;
    }

    .sg-chip:hover {
        scale: none;
        rotate: none;
    }
}
