/* =========================================
   BUTTON WIDGETS
   ========================================= */

.base-button-standard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-decoration: none;
}

.base-button-lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
}

.base-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-decoration: none;
    background: var(--gradient-brand);
    color: var(--color-kong-button-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow: var(--shadow-md);
}

.base-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Primary-Button, auf Mobile volle Breite (eine Klasse pro Element, 011-ui-html Regel 021). */
.base-button-primary-full-width-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-decoration: none;
    background: var(--gradient-brand);
    color: var(--color-kong-button-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow: var(--shadow-md);
}

.base-button-primary-full-width-mobile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

@media (max-width: 575px) {
    .base-button-primary-full-width-mobile {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Button-Text einzeilig, bei Platzmangel mit Ellipsis kürzen (011-ui-css-buttons). */
.base-button-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.base-button-primary-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
    border-radius: 0.75rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-decoration: none;
    background: var(--gradient-brand);
    color: var(--color-kong-button-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow: var(--shadow-md);
}

.base-button-primary-lg:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.base-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    text-decoration: none;
    background: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.base-button-secondary:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-highlight);
    transform: translateY(-2px);
}

.base-button-secondary-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
    border-radius: 0.75rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    text-decoration: none;
    background: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.base-button-secondary-lg:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-highlight);
    transform: translateY(-2px);
}

.base-button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-decoration: none;
    background: transparent;
    color: var(--color-text-muted);
}

.base-button-ghost:hover {
    color: var(--color-primary);
    background-color: var(--color-surface-hover);
}

.base-button-ghost-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
    border-radius: 0.75rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-decoration: none;
    background: transparent;
    color: var(--color-text-muted);
}

.base-button-ghost-lg:hover {
    color: var(--color-primary);
    background-color: var(--color-surface-hover);
}

.base-button-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-decoration: none;
    background: var(--color-error);
    color: var(--color-on-error);
}

.base-button-delete:hover:not(:disabled) {
    background: var(--color-error-hover);
    transform: translateY(-2px);
}

.base-button-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* User-Initials-Button: Avatar-Kreis im Header – hochwertig, klare Kontur, dezenter Schatten */
.base-button-user-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.125rem;
    min-height: 2.125rem;
    width: 2.125rem;
    height: 2.125rem;
    padding: 0;
    border-radius: 50%;
    background: var(--color-secondary);
    color: var(--color-kong-button-text);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid var(--color-primary-muted-border);
    box-shadow: var(--shadow-sm);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.base-button-user-initials:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-tertiary);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
    transform: translateY(-1px);
}

/* Kong-Content anzeigen: strahlendes Gold, Kraft und Energie, weiße Schrift, eine Zeile. In-Cell-Variante für Tabellenzellen (eine Klasse pro Element, 011-ui-css-general 007). */
.base-button-kong-show,
.base-button-kong-show-in-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    white-space: nowrap;
    border-radius: 0.75rem;
    font-weight: var(--font-weight-bold, 700);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-decoration: none;
    background: var(--gradient-kong-button);
    color: var(--color-kong-button-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: var(--shadow-kong);
    position: relative;
}

.base-button-kong-show:hover,
.base-button-kong-show-in-cell:hover {
    background: var(--gradient-kong-button-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-kong-hover);
}

/* Kong-Content-Popup: Kopieren-Button (strahlendes Gold wie Kong-Show, weiße Schrift, eine Zeile) */
.base-button-kong-popup-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: var(--font-weight-bold, 700);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-decoration: none;
    background: var(--gradient-kong-button);
    color: var(--color-kong-button-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: var(--shadow-kong);
    white-space: nowrap;
}

.base-button-kong-popup-copy:hover {
    background: var(--gradient-kong-button-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-kong-hover);
}

/* Container für zwei Buttons nebeneinander (z. B. Ja/Nein im Erfolgs-Modal) */
.base-buttons-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}