

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap'); /* Schrift Poppins importieren */

/* Allgemeine Stildefinitionen */
body {
    font-family: 'Poppins', Arial, sans-serif;  /* Schriftart */
    background-color: #f8f9fa; /* Leichtes Grau als Hintergrundfarbe */
    margin: 0;
    padding: 0;
}

/* Zusätzliche Anpassungen, falls notwendig */
h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1em !important;
    margin-top: 1em !important;
}

p {
    font-weight: normal !important;
}


/*---------------------------------------Button--------------------------------------*/



/* Einheitlicher Stil für Outline-Danger-Buttons */
.btn-outline-danger {
    border-width: 2px !important;                 /* Einheitlich dicke Kontur */
    border-color: #dc3545 !important;             /* Roter Rand */
    color: #dc3545 !important;                    /* Roter Text */
    padding: 0.5rem 1rem;
    border-radius: 15px !important;/* Optionale Anpassung der internen Abstände */
}

/* Hover-, Fokus- und Active-Zustände */
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active {
    background-color: transparent !important;     /* Kein Hintergrund */
    color: #dc3545 !important;                    /* Text bleibt rot */
    border-color: #dc3545 !important;             /* Roter Rand bleibt */
    box-shadow: 0 0 0 .25rem rgba(220,53,69,.15); /* Leichter roter Schatten */
}

.btn-primary {
    color:#de002e;
    border-radius: 15px !important;
}

.btn-danger{
    color: white !important;
    border-radius: 15px !important;
}

.btn-danger:hover,
.btn-danger:focus {
    color: white !important; /* Schrift bleibt weiß */
    background-color: #8a001c !important; /* Hintergrundfarbe beim Hover */
    border-color: #8a001c !important; /* Optional: Rand ebenfalls anpassen */
}




/*---------------------Links----------------------------*/
a {
    text-decoration:none !important;
    color:black!important;
}

a:hover {
    color:#de002e !important;
    text-decoration: none !important;
}

.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 */
}



/*---------------------Navigation----------------------------*/
/* Home-Link Styling */
.home-link {
    color: white !important;
    text-decoration: none !important;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.home-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.home-link:hover {
    color: white !important;
    text-decoration: none !important;
}

.home-link:hover::after {
    width: 100%;
}
/* Hintergrundbild im Container der Navbar */
.navbar-bg {
    position: relative;

    border-radius: 25px;
    overflow: hidden;

    /* Höhe erhöhen */
    min-height: 220px;          /* Desktop */
    padding-top: 1rem;          /* etwas mehr Innenabstand */
    padding-bottom: 1rem;
}

/* Responsiv etwas kleiner */
@media (max-width: 992px) {
    .navbar-bg {
        min-height: 180px;
    }
}

@media (max-width: 576px) {
    .navbar-bg {
        min-height: 140px;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}
/* Nur die Icons in den Navbar-Buttons weiß, Button bleibt unverändert */
.navbar-bg .custom-hover-btn i {
    color: #ffffff !important;
}

/* Beim Hover ebenfalls weiß lassen (überschreibt die rote Hover-Farbe) */
.navbar-bg .custom-hover-btn:hover i {
    color: #ffffff !important;
}


.navbar-brand {
    font-size: 4rem!important;
}

.offcanvas-end {
    transition: transform 0.3s ease-in-out;
}
.offcanvas-title {
    font-size:2rem !important;
}

.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;
    }
}


.img-fluid {
    border-radius: 15px; /* Rundung hinzufügen */
    overflow: hidden; /* Wichtig, falls Bilder nicht perfekt zugeschnitten sind */
}


/*--------------------Karten--------------------------*/
.hover-card {
    transition: transform .2s;
}

.hover-card:hover {
    transform: scale(1.05);
}



:root {
    --card-radius: 27px;

}


.card {
    height: 100%;
    border: none !important;
    border-radius: var(--card-radius) !important;

    overflow: hidden;


}

:root {
    --card-img-height: 180px; /* Basis-Höhe für kleine Bildschirme */
}

.card .card-img-top,
.card .card-img-bottom,
.card .card-img {
    width: 100%;
    height: var(--card-img-height);
    object-fit: cover;
    object-position: center;
    display: block;
}
/* Höhere Bilder auf größeren Viewports */
@media (min-width: 768px) {
    :root { --card-img-height: 220px; }
}
@media (min-width: 1200px) {
    :root { --card-img-height: 260px; }
}

.card .card-meta {
    color: #de002e;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .35rem; /* Abstand zum Titel */
}


/* Bild für spezifische Karte anpassen */
.card-top-text img {
    height: auto;              /* Automatische Höhe proportional zur Breite */
    width: 100%;               /* Volle Breite der Spalte nutzen */
    object-fit: cover;         /* Bild zuschneiden, damit es den Platz füllt */
    border-radius: var(--card-radius) 0 0 var(--card-radius); /* Abgerundete Ecken */
}


/* Höhe begrenzen und anpassen für spezifische Karte */
.card-top-text {
    height: auto;               /* Automatische Höhe basierend auf dem Inhalt */
    max-height: 300px;          /* Maximale Höhe einstellen */
    overflow: hidden;           /* Überschüssigen Inhalt verbergen */
}

/* Bildhöhe in der Karte anpassen */
.card-top-text img {
    height: 200px;              /* Höhe des Bilds verringern */
    object-fit: cover;          /* Bild zuschneiden, um den Platz zu füllen */
}




.news-list-view ul.list-group {
    display: flex;          /* Items nebeneinander */
    flex-wrap: wrap;        /* Umbruch, falls nicht genug Platz */
    gap: 1rem;              /* Abstand zwischen Items */
    padding-left: 0;        /* Standard-Padding entfernen */
    margin-bottom: 0;
    list-style: none;
}

.news-list-view ul.list-group li.list-group-item {
    display: flex !important;   /* Block von Bootstrap überschreiben */
    flex: 0 0 32%;              /* 3 Items pro Reihe */
    box-sizing: border-box;
}




/*-------------------------Carousel---------------------------------*/
/* Stellt sicher, dass Schatten außerhalb von Carousel-Containern sichtbar sind */
.carousel-inner {
    overflow: visible !important;
}

.carousel-item {
    overflow: visible !important;
}



.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: black;
    filter: invert(1) grayscale(1);
    padding: 20px;
    width: 40px;
    height: 40px;
}


.carousel-indicators {
    bottom: -50px;
}


.carousel-control-prev {
    margin-left: -20%;
}

.carousel-control-next {
    margin-right: -20%;
}

.card .btn-center {
    position: absolute;               /* Absolut innerhalb der Card positioniert */
    top: 50%;                         /* 50% von oben */
    left: 50%;                        /* 50% von links */
    transform: translate(-50%, -50%); /* Genau zentriert */
    z-index: 10;                      /* Sicherstellen, dass er über anderen Inhalten angezeigt wird */
}


.cards-carousel-controls .carousel-circle-btn {
    width:33px;
    height: 33px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: all .2s ease-in-out;
}

.cards-carousel-controls .carousel-circle-btn i {
    font-size: 1.1rem;
}

.cards-carousel-controls .carousel-circle-btn:hover,
.cards-carousel-controls .carousel-circle-btn:focus {
    background: rgba(220,53,69,0.06);
    color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 0 0 .2rem rgba(220,53,69,.15);
}

.cards-carousel-controls .carousel-circle-btn:active {
    transform: scale(0.96);
}

/* Carousel: "Mehr"-Buttons (Outline Danger) dicker + rote Schrift */
#cardsCarousel .btn.btn-outline-danger {
    border-width: 2px;                 /* ggf. 3px für noch dicker */
    border-color: #dc3545 !important;
    color: #dc3545 !important;
    border-radius: 15px;
}

/* Hover/Focus: Hintergrund transparent lassen, Text rot beibehalten */
#cardsCarousel .btn.btn-outline-danger:hover,
#cardsCarousel .btn.btn-outline-danger:focus,
#cardsCarousel .btn.btn-outline-danger:active {
    background-color: transparent !important;
    color: #dc3545 !important;
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 .25rem rgba(220,53,69,.15);
}



/* -------------------------Carousel--------------------------------- */

/* Navigation Buttons */
.carousel-navigation {
    position: relative;
}

.carousel-navigation .carousel-nav-btn {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: all .2s ease-in-out;

    position: absolute; /* Für präzise Positionierung */
    top: 50%;

}

.carousel-navigation .carousel-nav-prev {
    left: -570px;
    top: 40%;
}

.carousel-navigation .carousel-nav-next {
    right: 50px; /* Weiter nach rechts */
    top: 60%;
}

.carousel-navigation .carousel-nav-btn i {
    font-size: 1.1rem;
}

/* Hover/Fokus-Zustände */
.carousel-navigation .carousel-nav-btn:hover,
.carousel-navigation .carousel-nav-btn:focus {
    background: rgba(220, 53, 69, 0.06);
    color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .15);
}

.carousel-navigation .carousel-nav-btn:active {
    transform: scale(0.96);
}

/* -------------------------Carousel 3--------------------------------- */


.new-carousel-controls .carousel-circle-btn {
    width:33px;
    height: 33px;
    border-radius: 50%;
    background: transparent; /* Transparenter Hintergrund */
    border: 2px solid #6c757d; /* Grauer Rahmen */
    color: #6c757d; /* Graue Farbe für das Icon */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease-in-out;

}

/* Icon-Größe */
.new-carousel-controls .carousel-circle-btn i {
    font-size: 1.2rem;
}

/* Hover- und Fokus-Effekt für die Buttons */
.new-carousel-controls .carousel-circle-btn:hover,
.new-carousel-controls .carousel-circle-btn:focus {
    background: rgba(220, 53, 69, 0.06);
    color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);

}

/* Active-Effekt */
.new-carousel-controls .carousel-circle-btn:active {
    transform: scale(0.95);
}
