/*
:root {
    --bs-soft-fuchsia: rgb(0 147 245 / 10%);
    --bs-soft-aqua: rgb(59 117 177 / 10%);
    --bs-soft-yellow: rgb(136 185 250 / 15%);
    --bs-soft-leaf: rgb(173 221 255 / 20%);
    --bs-soft-orange: rgb(92 190 255 / 10%);
}
*/

a {
    font-weight: bold;
}

p a:not(.btn-circle) {
    text-decoration: underline;
}

blockquote p {
    font-style: italic
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6,
strong,
a,
li.nav-item.active>a {
    color: #00558e;
}

h2[data-group="page-title"] {
    color: #343f52;
}

h1 {
    font-size: 2.0rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

.image-wrapper .text {
    background: rgba(255, 255, 255, 0.5);
    color: #000;
}

tr:nth-child(2n) {
    background: rgb(238 238 238 / 40%);
}

td {
    padding: .75rem;
}

.flex-1 {
    flex: 1;
}

/* Select-Felder mit form-floating: Text sichtbar machen */
.form-floating>.form-select:not(:placeholder-shown) {
    color: #212529;
}

.form-floating>.form-select:focus {
    color: #212529;
}

.form-floating>.form-select option {
    color: #212529;
}

/* Label bei Select-Feldern - Positionierung wie bei Bootstrap form-floating */
.form-floating>.form-select.select-with-label~.select-label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    opacity: 1;
}

/* Wenn Select einen Wert hat, Padding anpassen */
.form-floating>.form-select.select-with-label:not([value=""]) {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.flex-1 img {
    max-width: 400px;
    float: right;
}

.headerImage {
    position: relative;
    max-height: 860px;
    overflow: hidden;
}

/* Headerbild bei Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .headerImage {
        min-height: 450px;
    }

    .headerImage figure {
        height: 100%;
        min-height: 450px;
    }

    .headerImage figure img {
        width: auto;
        height: 100%;
        min-height: 450px;
        object-fit: cover;
        object-position: center;
    }
}

/* Headerbild bei Tablet (576px - 991px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    .headerImage {
        min-height: 400px;
    }

    .headerImage figure {
        height: 100%;
        min-height: 400px;
    }

    .headerImage figure img {
        width: auto;
        height: 100%;
        min-height: 400px;
        object-fit: cover;
        object-position: center;
    }

    /* Scroll Down bei Tablet korrekt zentrieren */
    div.scrollDown {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }

    div.scrollDown::before {
        margin-left: -.6rem;
    }
}

/* Headerbild bei schmalen Bildschirmen (bis 575px) */
@media (max-width: 575.98px) {

    #bewerbungsunterlagen-label {
        padding: 1rem 0.25rem;
    }

    .headerImage {
        min-height: 380px;
    }

    .headerImage figure {
        height: 100%;
        min-height: 380px;
    }

    .headerImage figure img {
        width: auto;
        height: 100%;
        min-height: 400px;
        object-fit: cover;
        object-position: center;
    }

    .headerTitle {
        bottom: 5rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }

    .headerTitle p {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }

    .headerTitle p.hg {
        font-size: 1rem !important;
        padding: 0.3rem 0.5rem;
        top: -1rem !important;
    }

}

.content2 p:nth-child(1),
.content2 h2:nth-child(1) {
    /* width: 66%; */
}

.btn.karriere {
    background: transparent !important;
    color: #000 !important;
    border-color: #000 !important;
}

.navbar-item.active a,
ul.dropdown-menu .nav-item.active a,
h2[data-group="page-title"] span {
    color: #00558e;
}

.navbar-item.active {
    font-weight: bold;
}

.dropdown-toggle::after {
    position: relative;
    top: -7px;
}

div.scrollDown {
    position: absolute;
    /* Fixed statt absolute fÃ¼r bessere Kontrolle */
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
    /* Zentriert horizontal */
    bottom: 4rem;
    /* Fallback-Position */
    color: #fff;
    text-align: center;
    cursor: pointer;
    -webkit-animation: animate-it 3s ease infinite;
    animation: animate-it 3s ease infinite;
    border: 1px solid transparent;
    display: block;
    transition: bottom 0.3s ease;
    /* Sanfte ÃœbergÃ¤nge */
    /* border: 10px solid red; */
}

div.scrollDown::before {
    content: '1111';
    color: transparent;
    opacity: 0.7;
    font-size: 2em;
    background: url(../images/mri-pfeil.png) no-repeat 6px;
    background-size: 100%;
    margin-left: -.6rem;
}

/* vertical animation */
@-webkit-keyframes animate-it {

    0%,
    60%,
    80%,
    100% {
        -webkit-transform: translate(-50%, 0);
    }

    0%,
    60%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    20% {
        -webkit-transform: translate(-50%, -5px);
    }

    20% {
        transform: translate(-50%, -5px);
    }

    40% {
        -webkit-transform: translate(-50%, 5px);
    }

    40% {
        transform: translate(-50%, 5px);
    }
}

@keyframes animate-it {

    0%,
    60%,
    80%,
    100% {
        -webkit-transform: translate(-50%, 0);
    }

    0%,
    60%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    20% {
        -webkit-transform: translate(-50%, -5px);
    }

    20% {
        transform: translate(-50%, -5px);
    }

    40% {
        -webkit-transform: translate(-50%, 5px);
    }

    40% {
        transform: translate(-50%, 5px);
    }
}

.headerTitle {
    bottom: 8rem;
    right: 5vW;
    /* font-size: 6rem; */
    font-weight: bold;
    /* text-transform:uppercase; */
    color: #fff;
    text-shadow: -1px 0 #001443, 0 1px #001443, 1px 0 #001443, 0 -1px #001443;
    opacity: 0.9 !important;
    /* display:none; */
}

.headerTitle p.hg {
    /* background: rgba(255, 255, 255, 0.5); */
    /* padding: .5rem 1rem; */
    position: relative;
    top: -2rem !important;
    border-radius: .4rem;
    display: block;
}

.headerTitle p:nth-child(1) {
    color: #00558e;
    text-shadow: -1px 0 #fff, 0 1px #fff, 1px 0 #fff, 0 -1px #fff;
}


section {
    clear: both;
}

.text-primary {
    color: #001443 !important;
}

.swiper-container.dots-closer .swiper-pagination {
    /* bottom: -3.5rem !important; */
}

/* Buttons bei schmaler Breite umbrechen */
@media (max-width: 374px) {
    .btn {
        white-space: normal;
        word-break: break-word;
    }
}

/* Telefonnummern nicht umbrechen */
a[href^="tel:"] {
    /* white-space: nowrap; */
}

/* Telefonnummern bei schmaler Breite als Block in neuer Zeile */
@media (max-width: 374px) {
    a[href^="tel:"] {
        display: block;
    }
}

/* Glossar Swiper - Controls immer direkt unter dem Inhalt */
.swiper-container.glossar.dots-closer .swiper-pagination {
    bottom: 0.5rem !important;
}



figure img.pdf {
    border: 2px solid;
}

.btn-sm.pdf {
    bottom: 0.45rem;
    right: 1rem;
    pointer-events: none;
}

blockquote>p::before {
    content: "\201E"
}

blockquote>p::after {
    content: "\201C"
}

.lift:hover {
    transform: translateY(-.4rem);
    box-shadow: none
}

.svg-bg:hover,
.grid-item.lift:hover {
    box-shadow: 0 .25rem 1.75rem rgba(30, 34, 40, .07) !important
}

.card.noShadow {
    box-shadow: none;
}

.partner .swiper-slide {
    flex-shrink: 0;
    width: auto;
    height: 80px;
    position: relative;
    transition-property: transform;
    display: block;
    display: flex;
    align-items: center;
    justify-content: center;
}

.finanzpartner figure img {
    /* width: unset; */
}

ul.betreuteStiftungen,
ul.pressestimmen {
    padding: 0;
    text-align: center;
    width: 80%;
    margin: auto;
    margin-bottom: 1rem;
}

ul.betreuteStiftungen li,
ul.pressestimmen li {
    background: #00558e;
    list-style: none;
    margin-bottom: 0.2rem;
    width: auto !important;
    display: inline-block;
}

ul.betreuteStiftungen li a,
ul.pressestimmen li a {
    color: #fff;
    display: block;
    padding: 1rem;
}

ul.betreuteStiftungen li a:hover,
ul.pressestimmen li a:hover {
    background: #001443;
}

section[aria-labelledby="heading-referenzen"] .btn-soft-primary img {
    height: 50px;
    width: auto;
}

@media (min-width: 1200px) {
    .display-2 {
        font-size: 2.15rem
    }

    .counter-wrapper .counter {
        font-size: 1.6rem;
    }
}

.wordart {
    margin: auto;
    /* width: 90%; */
    max-width: 1400px;
    width: 100%;
    padding-bottom: 2rem
}

.bildname img {
    height: 35px !important;
    margin-left: -4px;
    width: auto;
    width.auto;
    : ;
}

/* Override root font size to make 1rem = 16px (standard font size) */
:root {
    --bs-root-font-size: 16px !important;
    --bs-body-font-size: 1.25rem !important;
}

#leistungsangebot .card {
    font-size: 1.25rem;
}

.form-floating>label {
    color: #959ca9;
    font-size: .95rem;
}

.form-check-input {
    margin-top: .5rem;
    border: 1px solid rgba(8, 60, 130, .5);
}

footer li.active a {
    color: #00558e !important;
}

footer,
.card,
.nav-item a,
.nav-itemlast a {
    font-size: 1.0rem
}

.fs-18,
.lead.fs-lg,
blockquote,
.card.shadow-lg {
    font-size: 1.3rem !important;
}

/* Override gradient-8 with solid background color */
.gradient-8 {
    background-image: none !important;
    background: #00558e !important;
    background-color: #00558e !important;
}


@media (min-width: 992px) {

    .navbar-expand-lg.navbar-dark:not(.transparent) .navbar-nav .dropdown:not(.dropdown-submenu):not(.language-select)>.dropdown-menu,
    .navbar-expand-lg.navbar-light:not(.transparent) .navbar-nav .dropdown:not(.dropdown-submenu):not(.language-select)>.dropdown-menu,
    .navbar-expand-lg.transparent.fixed .navbar-nav .dropdown:not(.dropdown-submenu):not(.language-select)>.dropdown-menu {
        margin-top: 0;
    }
}

#stiftergemeinschaft li i::before {
    position: relative;
    top: -3px;
}

/* Kontaktformular - Normale Schriftgröße für Eingabewerte */
.contact-form .form-control,
.contact-form .form-select {
    font-size: 1rem !important;
}

.contact-form .form-floating>.form-control,
.contact-form .form-floating>.form-select {
    font-size: 1rem !important;
}

.contact-form .form-floating>label {
    font-size: 0.875rem;
}

/* Sanfte Accordion-Animation */
.accordion-collapse {
    transition: height 0.4s ease-in-out !important;
}

.accordion-button {
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    transition: all 0.3s ease;
}

/* Zentrierte Accordion-Buttons */
.accordion-button.justify-content-center {
    justify-content: center !important;
    text-align: center !important;
}

.accordion-wrapper .card-header button:before {
    font-size: 1.5rem;
    margin-top: 0;
}

.faq .accordion-wrapper .card-header button {
    color: #343f52;
    padding: 0 0 0 1.25rem;
}

.faq .accordion-wrapper .card-header button:before {
    font-size: 1.5rem;
    margin-top: -0.2rem;
    margin-left: -0.75rem;
}

.accordion-button.justify-content-center::after {
    position: absolute;
    right: 1.25rem;
}

/* Zentrierte Icon-Listen in Accordions */
.text-center .icon-list {
    list-style: none;
    padding-left: 0;
    display: inline-block;
    text-align: left;
}

.text-center .icon-list li {
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.icon-list.bullet-bg i {
    position: static !important;
    top: auto !important;
    margin-top: 0.45rem;
}

/* Icon-List: Bootstrap-Wrapper-Konflikte beheben */
.wrapper .icon-list.bullet-bg,
.container .icon-list.bullet-bg,
.row .icon-list.bullet-bg,
[class*="col-"] .icon-list.bullet-bg,
.icon-list.bullet-bg {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 0;
}

.wrapper .icon-list.bullet-bg li,
.container .icon-list.bullet-bg li,
.row .icon-list.bullet-bg li,
[class*="col-"] .icon-list.bullet-bg li,
.icon-list.bullet-bg li {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    position: relative;
}

/* Icon-List: Allgemeine Flexbox-Regel für Icon direkt im li */
.icon-list.bullet-bg li {
    display: flex !important;
    align-items: flex-start !important;
}

.icon-list.bullet-bg li>i:first-child {
    margin-right: 1rem !important;
    flex-shrink: 0 !important;
    margin-top: 0.25rem;
    margin-left: 0 !important;
}

.icon-list.bullet-bg li>i:first-child+span {
    flex: 1 !important;
    min-width: 0 !important;
    margin-left: 0 !important;
}

/* Spezifisch für Accordions - für alle Bildschirmgrößen */
.accordion .icon-list.bullet-bg li,
.card-body .icon-list.bullet-bg li {
    display: flex !important;
    align-items: flex-start !important;
}

.accordion .icon-list.bullet-bg li>i:first-child,
.card-body .icon-list.bullet-bg li>i:first-child {
    position: static !important;
    top: auto !important;
    margin-right: 1rem !important;
    flex-shrink: 0 !important;
    margin-top: 0.25rem !important;
    margin-left: 0 !important;
}

.accordion .icon-list.bullet-bg li>i:first-child+span,
.card-body .icon-list.bullet-bg li>i:first-child+span {
    flex: 1 !important;
    min-width: 0 !important;
    margin-left: 0 !important;
}

/* Pseudo-Elemente entfernen, falls Bootstrap welche hinzufügt */
.wrapper .icon-list.bullet-bg li::before,
.wrapper .icon-list.bullet-bg li::after,
.container .icon-list.bullet-bg li::before,
.container .icon-list.bullet-bg li::after,
.icon-list.bullet-bg li::before,
.icon-list.bullet-bg li::after {
    display: none !important;
    content: none !important;
}

/* Icon-List: Fix für sehr kleine Bildschirme (320px) */
@media (max-width: 767px) {
    .icon-list.bullet-bg li {
        display: flex;
        align-items: flex-start;
        padding: 0 !important;
    }

    .icon-list.bullet-bg li>span:first-child {
        flex-shrink: 0;
        margin-right: 0.75rem;
    }

    .icon-list.bullet-bg li>span:last-child {
        flex: 1;
        min-width: 0;
    }

    /* Fix für Icon direkt im li (ohne span-Wrapper) - nur wenn kein span:first-child vorhanden */
    .icon-list.bullet-bg li>i:first-child {
        position: static !important;
        top: auto !important;
        flex-shrink: 0 !important;
        margin-right: 1rem !important;
        margin-top: 0.25rem !important;
        margin-left: 0 !important;
    }

    /* Span nach Icon - nur wenn Icon direkt im li steht */
    .icon-list.bullet-bg li>i:first-child+span {
        flex: 1;
        min-width: 0;
        margin-left: 0 !important;
    }

    /* Spezifisch für Accordions */
    .accordion .icon-list.bullet-bg li {
        display: flex !important;
        align-items: flex-start !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .accordion .icon-list.bullet-bg li>i:first-child {
        position: static !important;
        top: auto !important;
        flex-shrink: 0 !important;
        margin-right: 1rem !important;
        margin-top: 0.5rem !important;
        margin-left: 0 !important;
    }

    .accordion .icon-list.bullet-bg li>i:first-child+span {
        flex: 1 !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }
}

/* Spezifischer Fix für 320px Breite */
@media (max-width: 374px) {
    .icon-list.bullet-bg li>span:first-child {
        margin-right: 0.5rem;
        min-width: 1.25rem;
    }

    .icon-list.bullet-bg i {
        font-size: 0.9em;
    }
}

/* Icons bei tel- und mailto-Links entfernen (für alle Bildschirmgrößen) */
a[href^="tel:"]::after,
a[href^="mailto:"]::after,
a[href^="tel:"]::before,
a[href^="mailto:"]::before,
a[href*="tel:"]::after,
a[href*="mailto:"]::after,
a[href*="tel:"]::before,
a[href*="mailto:"]::before,
.wrapper a[href^="tel:"]::after,
.wrapper a[href^="mailto:"]::after,
.wrapper a[href^="tel:"]::before,
.wrapper a[href^="mailto:"]::before,
.card-body a[href^="tel:"]::after,
.card-body a[href^="mailto:"]::after,
.card-body a[href^="tel:"]::before,
.card-body a[href^="mailto:"]::before {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Lange Wörter umbrechen (z.B. "Softwareimplementierung") - Cross-Browser */
ul li,
.wrapper ul li,
.container ul li,
section ul li,
.wrapper p,
.wrapper .lead,
.wrapper .fs-lg,
section p,
section .lead,
section .fs-lg,
.accordion-button,
.accordion-button span,
.card-body p,
.card-body .lead,
.card-body,
.card {
    word-break: break-word;
    overflow-wrap: break-word;
    -ms-word-break: break-all;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}

.wrapper ul:not(.dropdown-menu, .navbar-nav) {
    padding-left: 2.25rem;
    margin: 0;
    margin-bottom: 1rem;
}

/* Unordered-List: Bullet-Größe und Position anpassen */
.unordered-list.bullet-primary {
    list-style: none;
    /* padding-left: 1rem; */
}

.unordered-list.bullet-primary li {
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5em;
}

.unordered-list.bullet-primary li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #00558e;
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Alternative: Falls Bullets über ::marker erzeugt werden */
.unordered-list.bullet-primary li::marker {
    font-size: 1.2em;
    color: #00558e;
    vertical-align: middle;
}

/* Für Wrapper-Kontexte */
.wrapper .unordered-list.bullet-primary li::before,
.container .unordered-list.bullet-primary li::before,
.row .unordered-list.bullet-primary li::before,
[class*="col-"] .unordered-list.bullet-primary li::before {
    width: 0.5rem;
    height: 0.5rem;
    top: 0.9em;
}

/* Textumbruch-Verbesserungen für sehr kleine Bildschirme (320px) */
@media (max-width: 374px) {

    /* Besseren Textumbruch für Lead-Texte */
    .lead.fs-lg,
    p.lead.fs-lg {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        line-height: 1.6;
    }

    /* Container-Padding reduzieren für mehr Platz */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Lange Wörter in Paragraphen umbrechen */
    .wrapper p,
    .wrapper .lead,
    section p {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Spezifisch für Gemeinschaftsstiftungen-Seite */
    .wrapper.bg-soft-primary p.lead.fs-lg,
    .wrapper.bg-light p.lead.fs-lg {
        font-size: 1.1rem;
        line-height: 1.65;
    }

    /* Accordion-Text besser umbrechen */
    .accordion .card-body p.lead.fs-lg {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.65;
    }

    /* Accordion-Button Textumbruch verbessern */
    .accordion-button {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        white-space: normal;
        text-align: center;
        padding: 1rem 0.75rem;
        flex-wrap: wrap;
    }

    .accordion-button .fs-18 {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
        flex: 1 1 auto;
        min-width: 0;
    }

    .accordion-button .icon {
        flex-shrink: 0;
        margin-right: 0.5rem;
    }
}

/* Accordion-Buttons: Icon in eigener Zeile bis 767px, Chevron oben */
@media (max-width: 767px) {

    .accordion-button,
    .accordion-button.justify-content-center {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }

    .accordion-wrapper .card-header button:before {
        left: 0;
    }

    .wrapper.faq .accordion-wrapper .card-header button:before {
        left: 1.25rem;
    }

    .accordion-button>.icon,
    .accordion-button.justify-content-center>.icon,
    .accordion-button>span.icon {
        margin-right: 0 !important;
        margin-bottom: 0.5rem !important;
        margin-left: 0 !important;
        order: -1 !important;
        flex-shrink: 0 !important;
        /* display: block !important; */
    }

    .accordion-button>.fs-18,
    .accordion-button.justify-content-center>.fs-18,
    .accordion-button>span.fs-18 {
        width: 100% !important;
        text-align: center !important;
        order: 1 !important;
        margin: 0 !important;
        display: block !important;
    }

    .accordion-button {
        display: flex !important;
    }

    /* Chevron oben positionieren bis 768px */
    .accordion-button::after,
    .accordion-button.justify-content-center::after {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        left: auto !important;
        bottom: auto !important;
    }

    /* Button-Breite begrenzen */
    .btn.rounded-pill,
    .btn-primary.rounded-pill,
    a.btn.rounded-pill {
        max-width: 100%;
        width: auto;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Kontakt-Bereich: Icons in eigene Zeile bei kleinen Bildschirmen */
    #beratung .d-flex.align-items-center.justify-content-center,
    .card-body .d-flex.align-items-center.justify-content-center {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    #beratung .d-flex.align-items-center.justify-content-center>.icon,
    .card-body .d-flex.align-items-center.justify-content-center>.icon {
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-bottom: 0.5rem !important;
    }

    #beratung .d-flex.align-items-center.justify-content-center>div:not(.icon),
    .card-body .d-flex.align-items-center.justify-content-center>div:not(.icon) {
        text-align: center;
    }

    /* Referenzen-Cards: Icons in eigene Zeile bei kleinen Bildschirmen */
    .card-body .d-flex.flex-row.align-items-center {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .card-body .d-flex.flex-row.align-items-center>.icon {
        margin-right: 0 !important;
        margin-bottom: 0.5rem !important;
    }

    /* Button-Breite begrenzen für alle Buttons in Cards */
    .card-body .btn,
    .card .btn {
        max-width: 100%;
        width: auto;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* Buttons mit d-inline-block haben natürliche Breite - keine zusätzliche Regel nötig */

/* Einheitlicher Abstand für Buttons nach Swiper-Containern (Kundenstimmen & Glossar) */
.col-12>.btn.btn-soft-primary.rounded-pill.d-inline-block.mt-5.mb-5 {
    margin-top: 3rem !important;
    /* Entspricht mt-5, überschreibt eventuelle Unterschiede durch Pagination/Controls */
}

/* Telefon-Link auf kleinen Bildschirmen umbrechen */
@media (max-width: 400px) {
    .telefon.alert {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .telefon.alert a {
        display: block;
        word-break: break-all;
        overflow-wrap: anywhere;
    }
}

/* Navbar-Brand: margin-right zwischen 400px und 575px */
@media (min-width: 400px) and (max-width: 575.98px) {
    .navbar-brand {
        margin-right: 1rem !important;
    }
}

@media (min-width: 575.98px) and (max-width: 991.98px) {
    .navbar-brand {
        margin-right: 2.5rem !important;
    }
}

/* Icon-Listen: Mehr Abstand zwischen Icon und Text ab 768px */
@media (min-width: 768px) {
    .icon-list li {
        gap: 0.25rem;
    }

    .icon-list li>span:last-child {
        padding-left: 0.5rem;
    }
}

/* Partner-Slider: Konsistente Logo-Größen */
.swiper-container.clients .swiper-slide img {
    max-height: 60px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .swiper-container.clients .swiper-slide img {
        max-height: 45px;
        max-width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .swiper-container.clients .swiper-slide {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .swiper-container.clients .swiper-slide img {
        max-height: 60px;
        max-width: 100%;
    }
}

/* Navbar Logo: Icon immer ausblenden (außer im speziellen Bereich) */
.navbar-brand .logo-icon {
    display: none !important;
}

/* Navbar: Desktop-Bereich 992px-1200px - nur Icon (3 Balken) anzeigen */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand .logo-icon {
        display: block !important;
        width: 35px;
        height: auto;
    }

    .navbar-brand .logo-full {
        display: none !important;
    }
}

/* Navbar: Desktop-Bereich - Such-Icon nicht abschneiden */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .navbar .navbar-other {
        flex-shrink: 0;
        padding-right: 0;
    }

    .navbar .navbar-other .navbar-nav {
        margin-right: 0 !important;
    }

    .navbar .navbar-collapse {
        flex-shrink: 1;
    }
}

/* Fix für Blitzer bei angled upper-end wrapper */
.wrapper.angled.upper-end:before {
    top: -3.9rem !important;
}

/* Fix für Sticky-Positionierung bei Leistungsangebot */
#leistungsangebot .container,
#leistungsangebot .row {
    overflow: visible !important;
}

#leistungsangebot .position-lg-sticky {
    align-self: flex-start;
    height: fit-content;
}

@media (min-width: 992px) {
    #leistungsangebot .position-lg-sticky {
        position: sticky !important;
        top: 8rem;
    }
}

/* Bildnamen bei Agenturteam: Höhe reduzieren bei 992px-1200px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .bildname img {
        height: 30px !important;
    }

    /* Bereich-Text bei Agenturteam: Schriftgröße reduzieren */
    .swiper-slide p.mb-2 {
        font-size: 0.9rem;
    }
}