html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.content {
    /*padding-top: 1.1rem;*/
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.rz-body {
    padding: 0;
}

.rz-navigation-item-text {
    font-size: 20px;
}

.rz-carousel .rz-carousel-scroll {
    pointer-events: none;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    text-align: center;
    width: 100%;
}

.hero-underline {
    width: 30%;
    border-top: solid 2px orange;
    margin: auto;
    border-radius: 4px
}

.hero-grey-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 40, 40, 0.55); /* dark grey w/ transparency */
    z-index: 1;
"
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    pointer-events: none;
}

.div-underline-short {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF8C00 0%, #FFA500 100%);
    margin: 0 auto;
    border-radius: 2px;
}

.div-underline {
    width: 10%;
    border-top: solid 2px orange;
    margin: auto;
    border-radius: 4px
}


.formatted-text {
    white-space: pre-line;
    word-wrap: break-word;
    width: 100%;
    max-width: none;
    text-align: justify;
    font-size: 16px;
}

.project-section {
    width: 60%;
}

.bt-o {
    border-top: solid 2px orange;
}

.bb-o {
    border-bottom: solid 2px orange;
}

.formatted-title-paragraph {
    width: 70%;
    white-space: pre-line;
}

/*---------------------------------------- test */

/* Fade-in Animation */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Verzögerungen für gestaffelte Animationen */
.fade-delay-1 {
    transition-delay: 0.1s;
}

.fade-delay-2 {
    transition-delay: 0.2s;
}

.fade-delay-3 {
    transition-delay: 0.3s;
}

.fade-delay-4 {
    transition-delay: 0.4s;
}

/* Alternative Animationen */
.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.fade-in-visible,
.fade-in-right.fade-in-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Hero Section */
.hero-section {
    background-image: url('https://picsum.photos/1200/500');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 400px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.overlay-content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    z-index: 1;
    position: relative;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
}

.product-card {
    height: 250px; /* Reduced from 250px */
    background-size: cover;
    aspect-ratio: 4/3;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Added subtle shadow */
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px; /* Reduced from 20px */
    color: white;
    z-index: 1;
}

.card-overlay h5 {
    margin: 0 0 5px 0;
    font-size: 1.1em; /* Slightly smaller */
}

.card-overlay p {
    margin: 3px 0;
    font-size: 0.9em; /* Smaller text */
}

.price {
    font-size: 1.1em; /* Reduced from 1.2em */
    font-weight: bold;
    color: #4CAF50;
}

.card-overlay .btn {
    margin-top: 8px;
    padding: 6px 12px; /* Smaller button */
    font-size: 0.85em;
}


/* Dynamic Background */
.dynamic-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 350px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-image 0.5s ease-in-out;
    position: relative;
}

.dynamic-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.custom-footer {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url('images/footer/impressum.jpg');
    background-size: cover;
    background-position: center;
    /*background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #FF8C00 75%, #8B4513 100%);*/
    color: white;
    padding: 3rem 1rem 1.5rem 1rem;
    margin-top: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.company-name {
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
}

.footer-text {
    color: white;
    margin: 0.3rem 0;
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.copyright {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1.5rem;
    border-top: 2px solid rgba(255, 140, 0, 0.4);
    padding-top: 1.5rem;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.copyright strong {
    color: white;
    font-weight: 600;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.dienstleistungen-cards {
    width: 60%;
}

/* Show desktop menu on screens wider than 768px */
.desktop-menu {
    display: block; /* or block, depending on your Stack/Menu layout */
}

.mobile-sidebar {
    display: none;
}

/* Responsive - Optional */
@media (max-width: 2100px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-card {
        height: 190px;
    }

    .resp-company {
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        width: 60%;
    }

    .resp-company-text {
        align-items: center !important;
        justify-content: center !important;
    }

    .formatted-text {
        text-align: center !important;
    }
}

/* Responsive - Optional */
@media (max-width: 1400px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        height: 250px;
    }
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(1, 1fr);
        padding: 15px;
    }

    .product-card {
        height: 350px;
    }
}

/*@media (max-width: 767px) {*/
/*    !* Hide desktop menu and show mobile sidebar on small screens *!*/
/*    .desktop-menu {*/
/*        display: none;*/
/*    }*/

/*    .mobile-sidebar {*/
/*        display: block; !* Or "flex" as needed for your sidebar layout *!*/
/*    }*/
/*}*/

@media (max-width: 576px) {
    .project-section {
        width: 90%;
        text-align: center;
    }

    .dienstleistungen-cards {
        width: 90%;
        text-align: center;
    }

    .card-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

}

@media (max-width: 576px) {
    .shuffle-item {
        width: 100%; /* Use 100%, no calc needed */
        margin: 8px 0; /* Just vertical margin */
        display: block; /* Make sure it’s block (optional, but helps) */
    }

    .shuffle-sizer {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .resp-company {
        width: 90%;
    }

    .project-section {
        width: 90%;
    }

    .dienstleistungen-cards {
        width: 90%;
        text-align: center;
    }

    .custom-footer {
        text-align: center;
    }

    .company-name {
        text-align: center;
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }

    .social-icons {
        margin: 1rem 0;
    }
}


:root {
    --rz-primary: #f5f5f5 !important;
    --rz-on-primary: black !important;
    --rz-body-background-color: #fafafa !important;
    --rz-link-color: darkorange !important;
}
