﻿/* ============================================================
   CDL Buttons – Clean Glass Edition
   Location: /wwwroot/css/components/buttons.css
   Compatible with Bootstrap 5 – NO modal conflicts
   ============================================================ */

/* -------------------------------------------
   Solid Gold Button
------------------------------------------- */
.btn-gold {
    background: linear-gradient(135deg, #b88652, #cda578);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: .8rem 1.4rem;
    box-shadow: 0 6px 16px rgba(184,134,82,0.35);
    transition: all 0.25s ease-in-out;
}

    .btn-gold:hover {
        background: #cda578; /* leichte Aufhellung */
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(184,134,82,0.45);
    }


/* -------------------------------------------
   Outline Gold Button
------------------------------------------- */
.btn-outline-gold {
    border: 2px solid #b88652;
    color: #b88652 !important;
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    padding: .75rem 1.3rem;
    transition: all 0.25s ease-in-out;
}

    .btn-outline-gold:hover {
        background: #b88652;
        color: #fff !important;
    }



.btn-outline-gold {
    position: relative;
    overflow: hidden;
}

    .btn-outline-gold::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.05) );
        opacity: 0.6;
        pointer-events: none;
    }

    .btn-outline-gold:hover {
        box-shadow: 0 6px 18px rgba(184,134,82,0.35);
    }

/* -------------------------------------------
   CTA Button (Landing Page)
------------------------------------------- */
.btn-cta {
    background: var(--primary);
    color: #fff !important;
    font-weight: 600;
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 4px 14px rgba(170,108,57,0.3);
}

    .btn-cta:hover {
        background: var(--secondary);
        transform: translateY(-2px);
    }


/* -------------------------------------------
   Outline CTA
------------------------------------------- */
.btn-outline-cta {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    background: transparent;
    font-weight: 600;
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    transition: all 0.25s ease-in-out;
}

    .btn-outline-cta:hover {
        background: var(--primary);
        color: #fff !important;
    }


/* -------------------------------------------
   Transparent Glass Login Button
------------------------------------------- */
.btn-login-glass {
    display: inline-block;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(16px);
    color: var(--primary) !important;
    font-weight: 600;
    padding: 0.55rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(170,108,57,0.25);
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.3), 0 6px 14px rgba(170,108,57,0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .btn-login-glass:hover {
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        color: #fff !important;
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(170,108,57,0.3);
    }


/* -------------------------------------------
   Chapter Navigation Button
------------------------------------------- */
.btn-chapter {
    font-weight: 600;
    padding: .55rem 1.1rem;
    border-radius: 10px;
    transition: all .2s ease;
}

    .btn-chapter:hover {
        background: rgba(170,108,57,0.08);
        color: var(--primary);
    }


/* -------------------------------------------
   QR Button (3D-Lab cards)
------------------------------------------- */
.qr-btn {
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    border-radius: 0.4rem;
    padding: 0.3rem 0.6rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all .2s ease;
}

    .qr-btn:hover {
        background: rgba(184,134,82,0.15);
        color: var(--primary);
    }


/* -------------------------------------------
   CDL School / Modul Navigation Button
------------------------------------------- */
/* CDL School / Modul Navigation Button */
.btn-school {
    align-self: center; /* <-- verhindert Stretch im Flex-Parent */
    width: auto; /* <-- sicherstellen, dass kein 100% greift */
    min-width: 140px; /* optional: gleiche Breite */
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    border-radius: 9px;
}


    .btn-school:hover {
        transform: translateY(-1px);
    }


.cdl-card__icon::after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    margin: 0.75rem auto 0;
    background: linear-gradient(90deg, transparent, #cda578, transparent);
    opacity: 0.6;
}
