.carousel-text-inner h1, .carousel-text-inner h2 {
  /*background-color: #018AC5;*/
  background-color: #ffffff;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 10px;
  padding-right: 10px;
  opacity: 0.75;
  font-weight: bold;
}


/* Überschrift mit Header Class "H1" */
.element-header.h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0093F5;
    margin-bottom: 1.5rem;
    position: relative;
}

.element-header.h1::after {
    content: "";
    display: block;
    width: 80%;
    height: 2px;
    background-color: #000;
    margin: 0.75rem auto 0;
}

.element-header.h1 > span {
    display: inline-block;
}

@media (max-width: 576px) {
    .element-header.h1 {
        letter-spacing: 0.06em;
    }

    .element-header.h1::after {
        width: 60%;
    }
}

@media (min-width: 1200px) {
    h2, .h2 {
        font-size: 1.5rem;
    }
}


/* H2 im Text-mit-Bild */
.element-header.h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #0b2d4f; /* dunkles Blau / Corporate */
}

/* Optional: feine Linie unter der H2 */
.element-header.h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #005b9f;
    margin-top: 0.5rem;
}





.textpic-item.textpic-gallery figure.image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 20px rgba(0,0,0,.2);
    transform: translateY(8px);
    opacity: 0;
    animation: fadeInUpShadow 0.9s ease-out forwards;
}

@keyframes fadeInUpShadow {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/* Card Menu: Fade-in + leichte Bewegung */
.card-menu .card-menu-item {
    opacity: 0;
    transform: translateY(12px);
    animation: cardMenuFadeInUp 0.9s ease-out forwards;
}

/* Optional: gestaffelt (Stagger) je Karte */
.card-menu .card-menu-item:nth-child(1) { animation-delay: 0.05s; }
.card-menu .card-menu-item:nth-child(2) { animation-delay: 0.15s; }
.card-menu .card-menu-item:nth-child(3) { animation-delay: 0.25s; }

@keyframes cardMenuFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-menu .card {
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.card-menu .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,.16);
}


/* Card Footer zentrieren */
.card-menu .card-footer {
    display: flex;
    justify-content: center;
    padding-top: 0;
}
/* "Mehr Informationen" als Button */
.card-menu .card-footer .card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;
    white-space: nowrap;

    color: #fff;
    background-color: var(--bs-primary);
    border: 1px solid var(--bs-primary);
    border-radius: var(--bs-border-radius-pill);

    transition:
        background-color .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}
.card-menu .card-footer .card-link:hover,
.card-menu .card-footer .card-link:focus-visible {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);

    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,.18);

    text-decoration: none;
}
.card-menu .card-footer .card-link:focus-visible {
    outline: 3px solid rgba(13,110,253,.4);
    outline-offset: 3px;
}.card .card-title {
    font-weight: 700;   /* 700 = fett, 800 oder 900 = extra fett */
}






/* Bulletpoints im Text-mit-Bild */
.textpic ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.25rem;
}

.textpic ul li {
    position: relative;
    padding-left: 2.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Check-Icon */
.textpic ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 1.4rem;
    height: 1.4rem;
    background-color: #005b9f; /* euer Blau */
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.173 12.414L2.05 8.293l1.414-1.414 2.708 2.707 6.364-6.364 1.414 1.414z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.173 12.414L2.05 8.293l1.414-1.414 2.708 2.707 6.364-6.364 1.414 1.414z'/%3E%3C/svg%3E") center / contain no-repeat;
    border-radius: 50%;
}



/* CTA Button aus Texticon-Überschrift */
.texticon .element-header a {
    display: inline-block;

    /* Bootstrap Button Basis */
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;

    color: #fff;
    background-color: var(--bs-primary);
    border: 1px solid var(--bs-primary);
    border-radius: var(--bs-border-radius-pill);

    transition:
        background-color .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.texticon .element-header a:hover,
.texticon .element-header a:focus-visible {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
    text-decoration: none;

    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.texticon .element-header a:focus-visible {
    outline: 3px solid rgba(13,110,253,.4);
    outline-offset: 3px;
}



/* Globaler CTA-Button: Leistungen */
.btn-leistungen {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* ZENTRIERUNG */
    margin-left: auto;
    margin-right: auto;

    /* Button-Design */
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;
    white-space: nowrap;

    color: #fff;
    background-color: var(--bs-primary);
    border: 1px solid var(--bs-primary);
    border-radius: var(--bs-border-radius-pill);

    transition:
        background-color .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}
.btn-leistungen {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.btn-leistungen:hover,
.btn-leistungen:focus-visible {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);

    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0,0,0,.18);

    text-decoration: none;
}










/* Footer-Linkblock modernisieren (nur rechter Footerbereich) */
.footer-section-content-column-right .frame-type-text .frame-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;   /* rechts */
    gap: 0.5rem;
}

/* Die einzelnen Zeilen */
.footer-section-content-column-right .frame-type-text p.text-right {
    margin: 0;              /* alte Abstände entfernen */
}

/* Das "•" und &nbsp; aus dem Text optisch eliminieren:
   Wir verstecken es, indem wir den P-Inhalt als Link-Block neu gestalten */
.footer-section-content-column-right .frame-type-text p.text-right {
    font-size: 0;           /* Trick: versteckt Bullet/Text nodes */
}

/* Link als modernes "Pill" */
.footer-section-content-column-right .frame-type-text p.text-right a {
    font-size: 0.95rem;     /* zurücksetzen */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    text-decoration: none;
    color: rgba(255,255,255,.85); /* anpassen je nach Footer-Farbe */
    padding: 0.35rem 0.75rem;
    border-radius: 999px;

    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

/* Optional: kleines Icon (Chevron) vor dem Link */
.footer-section-content-column-right .frame-type-text p.text-right a::before {
    content: "›";
    font-size: 1.1em;
    opacity: .7;
}

/* Hover / Focus */
.footer-section-content-column-right .frame-type-text p.text-right a:hover,
.footer-section-content-column-right .frame-type-text p.text-right a:focus-visible {
    background-color: rgba(255,255,255,.10);
    color: #fff;
    transform: translateY(-1px);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .footer-section-content-column-right .frame-type-text p.text-right a {
        transition: none;
        transform: none;
    }
}


/* Skip-Link nur bei Fokus anzeigen */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #0093f5;
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 10px;
}


