/* Google Font einbinden */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:wght@400;500;600;700&display=swap');

body {
    font-family: 'Atkinson Hyperlegible Next', sans-serif;
    background-color: white !important;
    margin-top:120px;
}
.container-fluid {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

.body.p {
    font-weight: normal !important;}

h2{
    font-size:1.75rem;
    margin-bottom:2rem;
    font-weight: 700;
}

h3{
    font-size:1.5rem;
    margin-bottom:2rem;
}
.ce-gallery figcaption {

    margin-top:0.5rem;
    font-size:0.7rem;
}
.breadcrumb-active-custom {
    color: #de002e !important;
}

.card-title {
    white-space: normal;           /* erlaubt Zeilenumbrüche */
    overflow-wrap: anywhere;      /* Browser darf auch mitten im Wort umbrechen, wenn nötig */
    hyphens: auto;                /* evtl. Silbentrennung (falls gewünscht) */
}




.submenu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Immer 2 Spalten */
    gap: 5px; /* Abstand zwischen den Items */
    padding: 10px; /* Innenabstand */
}

.submenu-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:10px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    background: #fff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.submenu-item a:hover {
    color: #fff;

}

@media (max-width: 768px) {
    .submenu-grid {
        grid-template-columns: 1fr; /* 1 Spalte auf Handys */
    }
}

/* -----------------*/
.no-border-radius {
    border-radius: 0 !important;
}

.crop-img {
    object-fit: cover;
    width: 150px;
    height: 200px;
}

.icon-link {
    color:#de002e;
    text-decoration: none;
}

/* background img */
.bg-image{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-image: url('img/backend-klein.jpg');
    height: 50vh;
}

.bg-verlauf{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-image: url('img/verlauf.png');
    height:4vh;

}

.input-group-lg {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-outline {
    width: 80%;
}
/* ------------------------------------------------------------------------------------------------------------------------*/

.accordion {
    --bs-accordion-border-width: 0;
}

.accordion-button {
    background: linear-gradient(90deg, #E20E25, #F5AB94, #FFD9D4);
    color:#fff;
    margin-bottom:2rem;
    font-weight:bold;
    border-radius: 10px!important;
    --bs-accordion-btn-focus-border-color: #DE002E;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(222, 0, 46, 0.25);
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23404040' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23404040' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");

}
.accordion-button:not(.collapsed) {
    color:#fff !important;
    border-radius: 10px;
}

.accordion-button:after {
    background-image: var(--bs-accordion-btn-icon) !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: var(--bs-accordion-btn-active-icon) !important;
}

.accordion-button:not(.collapsed) {
    background-color: #DE002E;
    color:#fff;
    border-radius: 10px;
}
/* ------------------------------------------------------------------------------------------------------------------------*/
/* Carousel 1*/
.owl-carousel .item {
    border-radius: 20px;
    overflow: hidden;
}

.owl-carousel .item img {
    height: 450px; /* oder jede beliebige Höhe, die Sie wünschen */
    object-fit: cover;
}

.button-container {
    position: center;
    top: 50%;
    left: 50%;
}

.carousel-container {
    position: relative;
}


.carousel-image {
    border-radius: 20px;
    width: 100%;
    height: 450px;
    object-fit: cover;
    max-width: 100%;
    max-height: 450px;
}

.prev-button, .next-button {
    border: 2px solid #DE002E; /* Schaltflächenumriss */
    height: 50px;
    width: 50px;
    line-height: 50px; /* Zentriert das Icon vertikal */
    text-align: center;
    border-radius: 50%; /* Runde Schaltflächen */
    background-color: transparent; /* Transparenter Hintergrund */
    color: #DE002E; /* Icon Farbe */
    margin: 0 20px; /* Fügt ein wenig Platz zwischen den Schaltflächen hinzu */

}
.prev-button:hover, .next-button:hover {
    background-color: #DE002E; /* Hintergrundfarbe beim Darüberfahren */
    color: white; /* Icon Farbe */
}

.owl-carousel .owl-item.center img {
    height: 500px;
    object-fit: cover;
    /* object-position: center top;  Positioniert den oberen Teil des Bildes im Zentrum des Containers */
    transition: height 0.3s ease-out;
}

.carousel-indicators {
    bottom: 10px!important;
}

/* Container zentrieren */
.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 15px;
    position: relative;
    z-index: 10;
}

/* Alle Dots sichtbar */
.owl-carousel .owl-dot span {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 5px !important;
    border-radius: 50% !important;
    background: #ccc !important;      /* normale Punkte grau */

    transition: all 0.3s;
    cursor: pointer;
}

/* Aktiver Dot */
.owl-carousel .owl-dot.active span {
    background: #999 !important;    /* aktiver Punkt rot */
    transform: scale(1.2);
}


/* Container zentrieren */
.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 15px;
    position: relative;
    z-index: 10;
}

/* Alle Dots sichtbar */
.owl-carousel .owl-dot span {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 5px !important;
    border-radius: 50% !important;
    background: #ccc !important;      /* normale Punkte grau */
    transition: all 0.3s;
    cursor: pointer;
}

/* Aktiver Dot */
.owl-carousel .owl-dot.active span {
    background:#4d4d4d !important;    /* aktiver Punkt rot */
    transform: scale(1.2);
}




}*----------Card----------------------------*/

.hover-card {
    transition: transform .2s;
}

.hover-card:hover {
    transform: scale(1.05);
}

.card-service{
    font-weight: bold;
}

.card-service:hover{
    transform: scale(1.05);
}

/*---------Pressekarten----------------------------*/
.news-item {
    height: 100%;
    margin-bottom: 1rem;
}

.red-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #de002e, #F4A48B) !important;
    transition: height 0.3s ease;
    margin-bottom: -1rem;
}

.title-link {
    color: #212529;
    transition: color 0.3s ease;
    display: inline-block;
}

.title-link:hover {
    color: #dc3545;
}



.card:hover .link-arrow {
    background-color: transparent;
}
.news-item:hover .title-link {
    color: #dc3545;
}

.card:hover .link-arrow {
    background-color: #f3f3f3;
}

/*---------Navigation----------------------------*/
.navbar-brand {
    font-size: 4rem!important;
}

.offcanvas-end {
    transition: transform 0.3s ease-in-out;
}

.nav-link {
    cursor: pointer;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #dc3545 !important;
}

/* Responsive Anpassungen für kleinere Geräte */
@media (max-width: 768px) {
    .offcanvas-end {
        width: 75% !important;
    }

    .offcanvas-title {
        font-size: 2rem !important;
    }

    .nav-link {
        font-size: 1.2rem !important;
    }
}

.offcanvas-footer{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to right, #de002e, #F4A48B) !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/*----------Button------------*/

.custom-hover-btn {
    transition: all 0.3s ease;
}


.custom-hover-btn:hover {

    transform: translateY(-2px);
    color: #dc3545; /* Rote Schriftfarbe (Bootstrap's danger color) */
}

/* Um sicherzustellen, dass auch der Text im Span-Element rot wird */
.custom-hover-btn:hover span {
    color: #dc3545;
}

/* Optional: Wenn du möchtest, dass auch die Icons rot werden */
.custom-hover-btn:hover i {
    color: #dc3545;

}

.btn-block {
    padding: 300% 0;
}

.btn-primary {
    color:#de002e !important;
}


.btn.square-btn {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 8px;
    border: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    border-radius: 15px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

.btn.square-btn span {
    display: inline-block;
    width: 13ch; /* Nach 13 Zeichen wird umgebrochen */
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto; /* Automatische Silbentrennung mit Bindestrich */
    -webkit-hyphens: auto; /* Für Safari */
    -moz-hyphens: auto; /* Für Firefox */
    -ms-hyphens: auto; /* Für Internet Explorer */
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: center;
}


/* Speziell für quadratische Buttons mit der Danger-Klasse */
.btn.square-btn.btn-danger {
    background: #de002e !important;
}


.btn.square-btn.btn-danger:hover {
    background: linear-gradient(to right, #de002e, #F4A48B) !important;
    color: white !important;
}
.btn.square-btn:hover i {
    color: white !important; /* Icons bleiben weiß beim Hover */
}

.btn.square-btn:hover span {
    color: white !important; /* Text in span-Elementen bleibt weiß beim Hover */
}

/* Für alle FontAwesome Icons in square-btn */
.btn.square-btn:hover .fas,
.btn.square-btn:hover .far,
.btn.square-btn:hover .fab {
    color: white !important;
}


/* Für andere Danger-Buttons: dunklerer Rotton */
.btn-danger:not(.square-btn) {
    background: #de002e  !important; /* Dunkleres Rot */
    transition: all 0.3s ease;
    font-weight: bold !important;
}

.btn-danger:not(.square-btn):hover {
    background: #8a001c !important; /* Noch dunkleres Rot beim Hover */
    color: white !important;
}

.btn-danger{
    color: white !important;
}
a.btn.btn-primary{

    color:white!important;
    font-weight:bold;
}

btn.btn-primary{
    background: #de002e !important;
}
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #de002e;
    --bs-btn-border-color: #de002e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #8a001c;
    --bs-btn-hover-border-color: #8a001c;
    --bs-btn-focus-shadow-rgb: 194, 40, 38;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #920200;
    --bs-btn-active-border-color: #890200;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #de002e;
    --bs-btn-disabled-border-color: #de002e;
}
/*----------Navbar----------------------------*/

.badge{
    background-color: #de002e;
}




/*----------Links----------------------------*/

a {
    text-decoration: none;
    color:black;
    font-weight:600;
}


a:hover {
    color:#de002e !important;
    text-decoration: none!important;
}

/* Link-Styles für Paragraphen */
p a {
    color: #de002e;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

p a:hover {
    color: #8a001c;
    border-bottom: 1px solid #de002e;
    text-decoration: none;
}

p a:focus {
    outline: 2px solid #de002e;
    outline-offset: 2px;
}

/* Alternative mit Unterlinien-Effekt */
p a.underline-effect {
    position: relative;
    color: #de002e;
    text-decoration: none;
}

p a.underline-effect::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #de002e, #F4A48B);
    transition: width 0.3s ease;
}

p a.underline-effect:hover::after {
    width: 100%;
}

/* Für spezielle Paragraph-Klassen */
p.special-text a {
    color: #de002e;
    font-weight: bold;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

p.special-text a:hover {
    background-color: rgba(222, 0, 46, 0.1);
    color: #8a001c;
}

.link{
    position: center;
    margin-top:20px;
}

.text-white-link {
    color: white !important;
    text-decoration: none;
}

.text-white-link:hover {
    color: white !important;
    text-decoration: none;
}

.link{
    position: center;
    margin-top:20px;
}

.text-white-link {
    color: white !important;
    text-decoration: none; /* Entfernt die Unterstreichung */
}

.text-white-link:hover {
    color: white !important;
    text-decoration: none; /* Entfernt die Unterstreichung */
}
/* Anpassung der Navigations-Pfeile für bessere Sichtbarkeit */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: black;
    filter: invert(1) grayscale(1);
    padding: 20px;
    width: 40px;
    height: 40px;
}

/* Gleiche Kartenhöhe in jeder Reihe */
.card {
    height: 100%;
}

/* Anpassung der Indikatoren für bessere Sichtbarkeit */
.carousel-indicators {
    bottom: -50px;
}

/* Mehr Abstand nach unten für das Carousel */
#multiCardsCarousel {
    margin-bottom: 60px;
}

/*--Slider Presse--*/

.carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 100%;
    position: relative;
    bottom: -70px;
    margin-inline: 30px;
}

.carousel .carousel-indicators button {
    background-color: rgb(77, 77, 77);
}

.carousel .carousel-indicators li.active {
    background-color: rgb(66, 66, 66);
}

/*--Slider links--*/

.carousel-control-prev, .carousel-control-next {
    width: 10%;
    height:100%;
}

.carousel-control-prev {
    margin-left: -20%;
}

.carousel-control-next {
    margin-right: -20%;
}

/* Starker Override: entfernt alle Hintergründe / Sprites und zeigt Text/Icons */
.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel button.owl-dot {
    background: none !important;          /* entfernt Farb-Fills */
    background-image: none !important;    /* entfernt Sprite-Backgrounds */
    border: none !important;
    color: inherit !important;            /* Icons/Text übernehmen die Farbe */
    opacity: 1 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    padding: 0 !important;                /* wenn du explizit padding willst, weiter unten setzen */
    width: auto !important;
    height: auto !important;
    z-index: 10 !important;
}

/*----------Search Service Cards----------------------------*/

.search-service-card {
    cursor: pointer;
    border: 1px solid #e0e0e0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
    linear-gradient(to right, #de002e, #F4A48B) border-box;

}

.search-service-card .card-body {
    padding: 1.2rem;
}

.search-service-card:hover .fas.fa-arrow-right {
    transform: translateX(5px);
    color: #de002e !important;
}

.search-service-card:hover .card-title {
    color: #de002e;
}


.search-result-item:hover {
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
    linear-gradient(to right, #de002e, #F4A48B) border-box;
}

/* Responsive Anpassungen für Search Cards */
@media (max-width: 768px) {
    .search-service-card .card-body {
        padding: 1rem;
    }

    .search-service-card .fas:not(.fa-arrow-right) {
        font-size: 1.5rem !important;
    }
}

/*----------Search Background Section----------------------------*/

.search-background-section {
    background-color: #f8f9fa;
    border-radius: 5px ;
    transition: all 0.3s ease;
}

.search-background-section:hover {
    background-color: #f1f3f4;
}

/
/* Responsive Anpassungen für Search Background */
@media (max-width: 768px) {
    .search-background-section {
        padding: 1rem !important;
        margin-bottom: 2rem !important;
    }
}

/*----------Subnavigation ---------------------------*/

a.subnav-link{

}
/*----------Contact card ---------------------------*/
.contact-card {
    background-color: #de002e !important;
    color: white !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    transition: transform .2s;
}

.contact-card:hover {
    transform: scale(1.02);
}

.contact-card .card-title {
    color: white !important;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.contact-card .card-text {
    color: white !important;
    line-height: 1.6;
}

.contact-card .card-text p {
    color: white !important;
    margin-bottom: 15px;
}

.contact-card .card-text strong {
    color: white !important;
}

.contact-card a {
    color: white !important;
    text-decoration: underline !important;
}



.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}


