/* =====================================================
   Grussbox – CSS (Bootstrap 4 Standard)
   /infusions/grussbox/templates/grussbox.css
   www.krazzfm.com
   ===================================================== */

/* ---- Overlay --------------------------------------- */
.gb-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(2px);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}
.gb-modal-overlay.gb-active {
    display: flex;
    animation: gb-fade-in .2s ease;
}
@keyframes gb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Modal ----------------------------------------- */
.gb-modal {
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: 3px solid #007bff;
    border-radius: .375rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 4px 24px rgba(0,0,0,.15);
    animation: gb-slide-up .25s ease;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: auto;
}
@keyframes gb-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ---- Header ---------------------------------------- */
.gb-modal-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}
.gb-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #007bff;
    flex: 1;
}
.gb-title-icon { font-size: 1.6rem; }
.gb-close-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color .15s, background .15s;
    line-height: 1;
}
.gb-close-btn:hover { color: #dc3545; background: rgba(220,53,69,.08); }

/* ---- Body ------------------------------------------ */
.gb-modal-body {
    padding: 20px 18px;
}

.gb-show-info {
    padding: 8px 12px;
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    font-size: 1.22rem;
    color: #212529;
    margin-bottom: 14px;
}

.gb-no-show {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 1.28rem;
    font-style: italic;
}

/* ---- Felder ---------------------------------------- */
.gb-field {
    margin-bottom: 14px;
    position: relative;
}
.gb-label {
    display: block;
    font-size: 1.18rem;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.gb-required { color: #fd7e14; }

.gb-input,
.gb-textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    color: #212529;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 1.3rem;
    padding: 9px 12px;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    box-sizing: border-box;
}
.gb-input:focus,
.gb-textarea:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(0,123,255,.15);
}
.gb-input[readonly] {
    opacity: .6;
    background: #e9ecef;
    cursor: default;
}
.gb-textarea { resize: vertical; min-height: 80px; }

.gb-char-count {
    position: absolute;
    bottom: 6px;
    right: 10px;
    font-size: 1.08rem;
    color: #6c757d;
    pointer-events: none;
}

.gb-song-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gb-song-row .gb-input { flex: 1; }
.gb-song-dash { color: #6c757d; font-size: 1.3rem; flex-shrink: 0; }

/* ---- Meldungen ------------------------------------- */
.gb-msg {
    min-height: 20px;
    font-size: 1.22rem;
    margin-bottom: 10px;
    padding: 0;
    border-radius: .25rem;
}
.gb-msg-error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 8px 12px;
}
.gb-msg-ok {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 8px 12px;
}

/* ---- Buttons --------------------------------------- */
.gb-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 4px;
}
.gb-btn {
    padding: 9px 20px;
    border-radius: .25rem;
    font-size: 1.28rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s, box-shadow .15s;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.gb-btn-cancel {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}
.gb-btn-cancel:hover { color: #212529; border-color: #adb5bd; background: #e9ecef; }

.gb-btn-send {
    background: #007bff;
    color: #fff;
    font-weight: 700;
    border-color: #007bff;
}
.gb-btn-send:hover { background: #0069d9; border-color: #0062cc; box-shadow: 0 2px 8px rgba(0,123,255,.3); }
.gb-btn-send:disabled {
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ---- Erfolg-Screen --------------------------------- */
.gb-success-screen {
    text-align: center;
    padding: 30px 10px;
}
.gb-success-icon {
    font-size: 3.4rem;
    margin-bottom: 12px;
    animation: gb-bounce .4s ease;
}
@keyframes gb-bounce {
    0%   { transform: scale(.5); opacity: 0; }
    70%  { transform: scale(1.2); }
    100% { transform: scale(1);   opacity: 1; }
}
.gb-success-text {
    font-size: 1.4rem;
    color: #28a745;
    font-weight: 600;
}

/* ---- Responsive ------------------------------------ */
@media (max-width: 768px) {
    .gb-modal-overlay {
        align-items: flex-start;
        padding: 12px;
    }
    .gb-modal {
        margin-top: 12px;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }
    .gb-song-row { flex-direction: column; }
    .gb-song-dash { display: none; }
}
