html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: white !important;
}

h1:focus {
    outline: none;
}

.logofarbe {
    color: #0078bf;
    border-color: #0078bf;
}

a, .btn-link {
    color: #0078bf;
}

.btn-primary {
    color: #fff;
    background-color: #0078bf;
    border-color: #0078bf;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

h3 {
    padding-top: 1.8rem;
}
.content{
    padding-left: 20px !important;
}
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU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IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


.loading-image,
.loading-progress {
    width: 10rem;
    height: 10rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Stil für das SVG */
.loading-image {
    z-index: 1;
    object-fit: contain;
    margin-top: 15px;
    width: 9rem;
    height: 9rem;
}

.loading-progress circle {
    fill: none;
    stroke: transparent;
    stroke-width: 0.8rem;
    transform-origin: 50% 50%;
    transform: rotate(140deg);
}

    .loading-progress circle:last-child {
        stroke: white;
        stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8*0.70), 500%;
        transition: stroke-dasharray 0.05s ease-in-out;
    }

.loading-progress-text {
    text-align: center;
    margin-top: 80px;
    margin-left: -50px;
    font-size: 1.5rem;
    position: absolute;
    width: 100px;
    top: 50%;
    left: 50%;
    color: white;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "lade...");
    }


.downloadlink {
    cursor: pointer;
    text-decoration: none;
    color: black;
}

.underline {
    text-decoration: underline !important;
    color: black;
}

.small {
    font-size: 0.7em;
}

.background-image {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-image: url('/images/bg.png');
    background-size: cover; /* Das Bild wird skaliert, um den gesamten Bereich zu bedecken */
    background-repeat: no-repeat;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Proportionales Vergrößern des Bildes */
}

.loading-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


#postwindow {
    background-image: linear-gradient(180deg, #0078bf 0%, #073973 70%);
    border: 2px solid #ccc;
    padding: 10px;
}

.scrollwindow {
    overflow-y: auto;
    -ms-overflow-style: none;
    height: calc(100% - 70px);
    scroll-behavior: smooth;
}

    .scrollwindow::-webkit-scrollbar {
        width: 0;
        background-color: transparent;
    }

.postbild {
    width: 100%;
    margin-bottom: 5px;
}

.postbildsmall {
    max-height: 80px;
    margin-bottom: 5px;
}

.postwann {
    text-align: right;
    font-size: 0.5em;
    color: black;
    margin-bottom: 0;
}

.postborder {
    background-color: #ffffffeb;
    border-radius: 10px 10px 0 10px;
    margin-top: 10px;
}

.postcontent {
    padding: 10px;
}

.center {
    text-align: center;
}



#content {
    width: 600px;
    margin-left: 10px;
    float: left;
}

#posts {
  /*  float: right;
    width: 500px;*/
    height: calc(100vh - 20px);
}

.bold {
    font-weight: bold;
}

.postheader {
    background: linear-gradient(to right, transparent, #0078bf);
    color: white;
    padding: 2px 10px 2px 2px;
    border-radius: 10px 10px 0 0;
    margin: -1px;
    text-align: right;
    font-weight: bold;
    font-size: larger;
    font-style: italic;
}

.halbtransparent {
    opacity: 0.5;
}

@media only screen and (max-width: 1115px) {
    #posts {
        float: none;
        clear: both;
        width: 100%;
        margin-top: 1em;
        height: calc(100vh - 200px);
        min-height: 500px;
    }
}

/*Formular*/
.formular {
    margin-top: 50px;
    border: 1px solid;
    border-radius: 3px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    background-color: #efefef;
    padding: 20px;
    max-width: 800px;
}

    .formular h4 {
        margin-bottom: 20px;
        font-weight: 600;
        font-style: italic;
    }

.formularlogo {
    height: 70px;
    width: 300px;
    object-fit: contain;
}

.formularantwort {
    font-size: 0.8em;
    color: gray;
    padding: 0;
    margin: 0;
}

.formulareingabe {
    border: 1px solid lightgray;
    border-radius: 10px;
    padding: 10px;
}

.FormularFunktion, .rz-html-editor-button, .rz-html-editor-color, .rz-html-editor-dropdown-value {
    opacity: 0.2;
    cursor: pointer;
    padding: 1px;
}

    .FormularFunktion:hover, .rz-html-editor-button:hover, .rz-html-editor-color:hover, .rz-html-editor-dropdown-value:hover {
        opacity: 1;
    }



.postbild {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.post-image {
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.print-only {
    display: none;
}

@media print {
    .print-only {
        display: block;
    }
}

.cachetext {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 90%;
    padding: 10px;
    background-color: #ffc107; /* Warnfarbe */
    color: #212529; /* Dunkle Textfarbe */
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    text-align: center;
}

.loading-background {
    margin: 0;
    height: 100vh;
    background: radial-gradient(circle, #2e7fc6 0%, #004b87 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: white;
}

.mandant-chip {
    display: flex;
    justify-content: center;
    padding: 9px 0px;
}

.mandant-chip {
    background-image: linear-gradient(0deg, #0078bf 0%, #073973 70%);
    color: white; /* moderner Blauton */
    font-weight: 600;
    /*border-radius: 20px;*/ /* Chip-Form */
    /*padding: 6px 14px;*/
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.05);*/ /* dezenter Schatten */
    /*margin-left: auto;*/ /* rechts ausrichten */
    /*max-width: max-content;*/
}

        .mandant-chip a{
            color: white; 
            font-size:1.5em;
        }

/* CSS Loading Animation für Progress.razor */
.css-progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.css-progress-bar-animated {
    height: 100%;
    background: linear-gradient(90deg, #0078bf 0%, #50a4ff 50%, #0078bf 100%);
    background-size: 200% 100%;
    animation: progressAnimation 1.5s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes progressAnimation {
    0% {
        background-position: 200% 0;
        width: 0%;
    }
    50% {
        width: 100%;
    }
    100% {
        background-position: -200% 0;
        width: 0%;
    }
}
