/*
 * Gemeinsame Styles für Backend und Mandanten-Seiten.
 * Übernommen aus legacy/css/style.css und legacy/css/sass/_variables.scss (Bootstrap 4),
 * angepasst an Bootstrap 5. Kunden-style.css wird danach geladen und überschreibt diese Regeln.
 */

/* Werte aus legacy/css/sass/_variables.scss */
:root {
    --bs-body-font-family: 'Nunito', sans-serif;
    --bs-body-font-size: 0.9rem;
    --bs-body-line-height: 1.6;
    --bs-body-bg: #f8fafc;
    --bs-link-color: #3490dc;
    --bs-link-color-rgb: 52, 144, 220;
    --bs-link-hover-color: #1d68a7;
    --bs-link-hover-color-rgb: 29, 104, 167;
    --bs-link-decoration: none;
}

/* Bootstrap 4 unterstrich Links erst beim Hover */
a:hover {
    text-decoration: underline;
}

.loading-screen {
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: rgba(228, 233, 237, 0.7);
    z-index: 10;
}
.loading-image-frame {
    display: flex;
    position: relative;
    height: 100%;
}
.loading-image {
    margin: auto;
    max-height: 20%;
}
.warning-frame {
    border: 1px solid white;
    border-radius: 6px;
    padding: 1%;
    background-color: rgb(201, 4, 4, 0.7);
}
.warning-message {
    color: white;
    text-align: center;
}

.success-frame {
    border: 1px solid white;
    border-radius: 6px;
    padding: 1%;
    background-color: rgba(20, 201, 4, 0.7);
}

.success-message {
    color: white;
    text-align: center;
}

@keyframes rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: rotating 2s linear infinite;
}

.progress-bar-frame {
    width: 500px;
    margin: 0 auto;
    border-radius: 10px;
    border: 4px solid transparent;
    position: relative;
    padding: 1px;
}
.progress-bar-frame:before {
    content: '';
    border: 1px solid #fff;
    border-radius: 10px;
    position: absolute;
    top: -4px;
    right: -4px;
    bottom: -4px;
    left: -4px;
}
.progress-bar {
    position: absolute;
    border-radius: 10px;
    top: 0;
    right: 100%;
    bottom: 0;
    left: 0;
    background-color: #1d68a7;
    width: 0;
    animation: borealisBar 2s linear infinite;
}
@keyframes borealisBar {
    0% {
        left: 0%;
        right: 100%;
        width: 0%;
    }
    10% {
        left: 0%;
        right: 75%;
        width: 25%;
    }
    90% {
        right: 0%;
        left: 75%;
        width: 25%;
    }
    100% {
        left: 100%;
        right: 0%;
        width: 0%;
    }
}

::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #888;
}
::-webkit-scrollbar-thumb:hover {
    background: rgb(54, 53, 53);
}

.footer {
    background-color: black;
    color: white;
}
.footer-link a {
    color: white;
}
.footer-link {
    margin: 3% 0px 0px 0px;
}

body {
    height: 100vh;
}

.card-header {
    color: white;
    background-color: #2a609ee0;
}

.card-body {
    background-color: rgba(255, 255, 255, 0.801);
}

/* Ausgegraute Buttons (z. B. „Fertig – Link erstellen“), auch wenn Kunden-CSS .button einfärbt */
.btn.button:disabled,
.btn.button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: auto;
}
