/* ===== OO SmartLink =====
   Normaler Link, optional mit Button-Styling (AsButton="true").
   Button-Styles werden von button.css geerbt via .oo-btn.
   ========================= */


.oo-smart-link {
    text-decoration: none;
    color: var(--oo-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
}

    .oo-smart-link:not(.oo-btn):hover {
        color: var(--oo-primary-darker);
    }

/* Wenn der Link als Button gestylt wird:
   - kein Unterstrich
   - color kommt von --_btn-text (gesetzt durch OoColor.ToInlineStyle)
   - .oo-smart-link.oo-btn hat höhere Spezifizität als .oo-smart-link */
.oo-smart-link.oo-btn {
    text-decoration: none;
    color: var(--_btn-text) !important;
}

.oo-smart-link.oo-btn:hover:not(.oo-btn--disabled) {
    color: var(--_btn-text) !important;
}

/* NoColor: Farbe vollständig vom Elternelement erben */
.oo-smart-link.oo-smart-link--no-color {
    color: inherit!important;
}

.oo-smart-link.oo-smart-link--no-color:hover {
    color: inherit!important;
}

/* Active-State für reine Link-Verwendung (kein Button-Styling) */
.oo-smart-link:not(.oo-btn).active {
    font-weight: 600;
}
