/* Maus-Fokus: kein hässlicher Rahmen */
input.mmd-input:focus,
input.mmd-input:focus,
input.mmd-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.mmd-group {
    margin-bottom: 0.8em;
}
.mmd-input {
    border: none !important;
    width: 50% !important;
    background-color: var(--e-global-color-3c3ba8b);
    margin-top: 0.4em;
    margin-bottom: 0.4em;
}

.mmd-button {
    border: none !important;
    padding: 10px 15px !important;
    margin-top: 2em !important;
    cursor: pointer;
}
.mmd-button:hover {
    background-color: var(--e-global-color-secondary); !important;
    padding: 10px 15px !important;
    margin-top: 2em !important;
}

/*Checkbox*/
/* Wrapper */
.mmd-checkbox {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

/* Original Checkbox verstecken */
.mmd-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Custom Box */
.mmd-checkbox span::before {
    content: '';
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 4px;
    border: 2px solid #5b7f7a;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

/* Checkmark */
.mmd-checkbox span {
    position: absolute;
    display: flex;
    align-items: center;
}

.mmd-checkbox span::after {
    content: '';
    position: absolute;
    width: 0.4rem;
    height: 0.8rem;
    left: 8px;
    top: 4px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

/* Checked State */
.mmd-checkbox input:checked + span::before {
    background: #0f3f3f;
    border-color: #0f3f3f;
}

.mmd-checkbox input:checked + span::after {
    transform: rotate(45deg) scale(1);
}

/* Focus (Tastatur) */
.mmd-checkbox input:focus-visible + span::before {
    box-shadow: 0 0 0 2px rgba(15, 63, 63, 0.35);
}

@media (max-width: 1160px) {
    .mmd-input {
        width: 100% !important;
    }
}
