/* =========================================================
   LKS – Einheitlicher transparenter Textbereich im Carousel
   ========================================================= */

/* Carousel-Inhalt exakt mittig ausrichten */
.carousel .carousel-content {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    padding: 0;
}

/* Äußerer Bootstrap-Container */
.carousel .carousel-content-inner {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    background: transparent;
    color: #182983;
    text-align: center;
    text-shadow: none;
}

/* Nur der eigentliche Text bekommt den hellen Hintergrund */
.carousel .carousel-text-inner {
    display: inline-block;
    width: auto;
    max-width: min(86%, 1100px);
    margin: 0;
    padding: 1rem 2.5rem;

    background: rgba(255, 255, 255, 0.78);
    color: #182983;

    text-align: center;
    text-shadow: none;
}

/* Carousel-Überschrift */
.carousel .carousel-header {
    margin: 0;
    padding: 0;

    color: #182983;
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;

    text-shadow: none;
}

/* Zusätzlicher Text oder Untertitel */
.carousel .carousel-text-inner p,
.carousel .carousel-subheader,
.carousel .carousel-bodytext {
    margin: 0.75rem 0 0;

    color: #182983;
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    line-height: 1.35;

    text-shadow: none;
}

/* Kleine Carousel-Variante */
.carousel.carousel-small .carousel-text-inner {
    max-width: min(82%, 1000px);
    padding: 0.9rem 2rem;
}

.carousel.carousel-small .carousel-header {
    font-size: clamp(1.8rem, 2.6vw, 2.8rem);
}

/* Selbst gebautes Carousel mit carousel-caption */
.carousel .carousel-caption {
    position: absolute;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;

    width: auto;
    max-width: min(86%, 1100px);
    margin: 0;
    padding: 1rem 2.5rem;

    transform: translate(-50%, -50%);

    background: rgba(255, 255, 255, 0.78);
    color: #182983;

    text-align: center;
    text-shadow: none;
}

/* Smartphone */
@media (max-width: 767.98px) {
    .carousel .carousel-text-inner,
    .carousel.carousel-small .carousel-text-inner {
        max-width: calc(100% - 2rem);
        padding: 0.75rem 1rem;
    }

    .carousel .carousel-caption {
        width: calc(100% - 2rem);
        max-width: none;
        padding: 0.75rem 1rem;
    }

    .carousel .carousel-header,
    .carousel.carousel-small .carousel-header {
        font-size: clamp(1.45rem, 7vw, 2.1rem);
    }

    .carousel .carousel-text-inner p,
    .carousel .carousel-subheader,
    .carousel .carousel-bodytext {
        font-size: 1rem;
    }
}






/* Allgemeine Inhaltsüberschriften */
.element-header {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 0.9rem;
    color: #182983;
    font-weight: 700;
    line-height: 1.2;
}

/* Rote Akzentlinie */
.element-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: #c10116;

    transition: width 0.35s ease;
}

/* Leichte Bewegung beim Überfahren */
.element-header:hover::after {
    width: 110px;
}

/* H1 */
.element-header.h1,
h1.element-header {
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.03em;
}

/* H2 */
.element-header.h2,
h2.element-header {
    font-size: clamp(1.65rem, 2.4vw, 2.35rem);
    letter-spacing: -0.02em;
}

/* Abstand zum folgenden Text */
.element-header + p,
.element-header + .textmedia-text,
.element-header + .frame-container {
    margin-top: 0;
}




/* Alle Card Groups */
.card-group-element {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

/* Einzelne Karten */
.card-group-element .card {
    height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 4px 14px rgba(20, 39, 100, 0.08),
        0 12px 30px rgba(20, 39, 100, 0.08);

    transition:
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

/* Kartenbild */
.card-group-element .card-img-top {
    overflow: hidden;
    background: #f5f6f8;
}

.card-group-element .card-img-top picture {
    display: block;
}

.card-group-element .card-img-top img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;

    transition:
        transform 0.55s ease,
        filter 0.55s ease;
}

/* Karteninhalt */
.card-group-element .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.6rem 1rem;
}

.card-group-element .card-title {
    position: relative;
    margin: 0 0 1rem;
    padding-bottom: 0.85rem;

    color: #1c2f86;
    font-size: clamp(1.25rem, 1.5vw, 1.55rem);
    font-weight: 700;
    line-height: 1.2;
}

.card-group-element .card-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;

    width: 42px;
    height: 3px;
    border-radius: 10px;
    background: #d0001b;

    transition: width 0.35s ease;
}

.card-group-element .card-body p {
    margin: 0;
    color: #3d4451;
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
.card-group-element .card-footer {
    padding: 0.5rem 1.6rem 1.6rem;
    border: 0;
    background: transparent;
}

/* Buttons */
.card-group-element .btn-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.7rem 1.15rem;
    border: 1px solid #1c2f86;
    border-radius: 8px;

    background: #1c2f86;
    color: #ffffff;

    font-weight: 600;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.card-group-element .btn-default:hover,
.card-group-element .btn-default:focus {
    border-color: #d0001b;
    background: #d0001b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(208, 0, 27, 0.22);
}

/* Hover-Effekt nur mit Maus */
@media (hover: hover) and (pointer: fine) {

    .card-group-element .card:hover {
        animation: card-group-wobble 0.55s ease both;
        box-shadow:
            0 10px 24px rgba(20, 39, 100, 0.13),
            0 22px 45px rgba(20, 39, 100, 0.14);
    }

    .card-group-element .card:hover .card-img-top img {
        transform: scale(1.07);
        filter: saturate(1.08) contrast(1.03);
    }

    .card-group-element .card:hover .card-title::after {
        width: 72px;
    }
}

/* Dezenter Wobble */
@keyframes card-group-wobble {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    35% {
        transform: translateY(-10px) rotate(-0.7deg);
    }

    65% {
        transform: translateY(-7px) rotate(0.5deg);
    }

    82% {
        transform: translateY(-9px) rotate(-0.2deg);
    }

    100% {
        transform: translateY(-8px) rotate(0deg);
    }
}

/* Bewegung für Nutzer mit reduzierter Animation deaktivieren */
@media (prefers-reduced-motion: reduce) {
    .card-group-element .card,
    .card-group-element .card-img-top img,
    .card-group-element .btn-default,
    .card-group-element .card-title::after {
        animation: none !important;
        transition: none !important;
    }
}



/* Gesamter Footer */
#page-footer.bp-page-footer {
    background: #f4f4f4;
    color: #666666;
}

/* Oberer Footerbereich */
#page-footer .footer-section-content {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    background: #f4f4f4;
    color: #666666;
}

/* Vorhandenes Spaltenlayout beibehalten */
#page-footer .footer-section-content .section-row {
    align-items: flex-start;
}

/* Texte */
#page-footer .footer-section-content p {
    margin-bottom: 1rem;
    color: #666666;
    line-height: 1.65;
}

/* Überschriften im Footer */
#page-footer .footer-section-content .element-header {
    position: relative;
    margin: 0 0 1.4rem;
    padding-bottom: 0.8rem;
    color: #182983;
    font-weight: 700;
    line-height: 1.15;
}

/* H1 und H2 im Footer einheitlich */
#page-footer .footer-section-content h1.element-header,
#page-footer .footer-section-content h2.element-header,
#page-footer .footer-section-content .element-header.h1,
#page-footer .footer-section-content .element-header.h2 {
    font-size: clamp(1.45rem, 2vw, 2rem);
}

/* Rote Linie */
#page-footer .footer-section-content .element-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 999px;
    background: #c10116;
    transition: width 0.3s ease;
}

#page-footer .footer-section-content .frame:hover .element-header::after {
    width: 72px;
}

/* Links */
#page-footer a {
    color: #c10116;
    text-decoration-color: rgba(193, 1, 22, 0.35);
    text-underline-offset: 3px;
    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

#page-footer a:hover,
#page-footer a:focus {
    color: #182983;
    text-decoration-color: #182983;
}

/* Unterer Footerbereich */
#page-footer .footer-section-meta {
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
    border-top: 1px solid #dddddd;
    background: #ffffff;
    color: #666666;
}

/* Copyright */
#page-footer .footer-copyright p {
    margin: 0;
    color: #666666;
}

/* Sprachmenü */
#page-footer .language-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

#page-footer .language-menu a {
    font-weight: 600;
}

/* Mobil */
@media (max-width: 767.98px) {
    #page-footer .footer-section-content {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}


/* Footer-Inhalt: zwei stabile Spalten */
#page-footer .footer-section-content .section-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 4rem;
    align-items: start;
}

/* Leere mittlere Spalte ausblenden */
#page-footer .footer-section-content-column-middle {
    display: none;
}

/* Bootstrap-Spaltenvorgaben neutralisieren */
#page-footer .footer-section-content-column-left,
#page-footer .footer-section-content-column-right {
    width: auto;
    max-width: none;
    min-width: 0;
    flex: none;
}

/* Kontaktspalte rechts */
#page-footer .footer-section-content-column-right {
    justify-self: end;
    width: 100%;
    max-width: 360px;
}

/* Mobil untereinander */
@media (max-width: 767.98px) {
    #page-footer .footer-section-content .section-row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    #page-footer .footer-section-content-column-right {
        justify-self: stretch;
        max-width: none;
    }
}