@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-BlackItalic.woff2') format('woff2'),
        url('../fonts/Rubik-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-BoldItalic.woff2') format('woff2'),
        url('../fonts/Rubik-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Bold.woff2') format('woff2'),
        url('../fonts/Rubik-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-ExtraBoldItalic.woff2') format('woff2'),
        url('../fonts/Rubik-ExtraBoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-SemiBold.woff2') format('woff2'),
        url('../fonts/Rubik-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Black.woff2') format('woff2'),
        url('../fonts/Rubik-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Regular.woff2') format('woff2'),
        url('../fonts/Rubik-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Light.woff2') format('woff2'),
        url('../fonts/Rubik-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-LightItalic.woff2') format('woff2'),
        url('../fonts/Rubik-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-ExtraBold.woff2') format('woff2'),
        url('../fonts/Rubik-ExtraBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-MediumItalic.woff2') format('woff2'),
        url('../fonts/Rubik-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Italic.woff2') format('woff2'),
        url('../fonts/Rubik-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-SemiBoldItalic.woff2') format('woff2'),
        url('../fonts/Rubik-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Medium.woff2') format('woff2'),
        url('../fonts/Rubik-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Caveat';
    src: url('../fonts/Caveat-Bold.woff2') format('woff2'),
        url('../fonts/Caveat-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Caveat';
    src: url('../fonts/Caveat-SemiBold.woff2') format('woff2'),
        url('../fonts/Caveat-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Caveat';
    src: url('../fonts/Caveat-Medium.woff2') format('woff2'),
        url('../fonts/Caveat-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Caveat';
    src: url('../fonts/Caveat-Regular.woff2') format('woff2'),
        url('../fonts/Caveat-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Bold.woff2') format('woff2'),
        url('../fonts/OpenSans-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-LightItalic.woff2') format('woff2'),
        url('../fonts/OpenSans-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Italic.woff2') format('woff2'),
        url('../fonts/OpenSans-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Light.woff2') format('woff2'),
        url('../fonts/OpenSans-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-ExtraBold.woff2') format('woff2'),
        url('../fonts/OpenSans-ExtraBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-ExtraBoldItalic.woff2') format('woff2'),
        url('../fonts/OpenSans-ExtraBoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-BoldItalic.woff2') format('woff2'),
        url('../fonts/OpenSans-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.woff2') format('woff2'),
        url('../fonts/OpenSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-MediumItalic.woff2') format('woff2'),
        url('../fonts/OpenSans-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-SemiBoldItalic.woff2') format('woff2'),
        url('../fonts/OpenSans-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Medium.woff2') format('woff2'),
        url('../fonts/OpenSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-SemiBold.woff2') format('woff2'),
        url('../fonts/OpenSans-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

.leform-container div:first-child {
	display: block !important;
}

html, body {
    width: 100%;
    font-size: 19.9px;
    font-family: 'Rubik', Arial, Helvetica, sans-serif;
    font-weight: 300;
    overflow-x: hidden !important;
}

.content a,
.topbar a {
    text-decoration: none;
    transition: all .2s;
    font-weight: 400;
    color: #284874;
}

.content a:hover,
.topbar a:hover {
    color: #1b99d3;
    transition: all .2s;
}

body {
    background: #f2f2f2;
}

.btn {
    border: 0;
}

.btn-dark {
    background: #3b3b47;
    color: #a6a6c3 !important;
}

.btn-dark:hover {
    background: #a6a6c3;
    color: #dcdcea !important;
}

.btn-light {
    background: #a6a6c3;
    color: #3b3b47 !important;
}

.btn-light:hover {
    background: #cacadb;
    color: #3b3b47 !important;
}

nav a,
nav p,
nav span {
    font-size: 21px;
    color: #333 !important;
    border-bottom: solid #fff 1px;
    text-transform: uppercase;
    font-weight: 300;
}

nav a:hover,
nav p:hover,
nav span:hover {
    font-weight: 400;
    border-bottom: solid #333 1px;
}

.header h1 {
    font-family: 'Rubik', Arial, Helvetica, sans-serif;
    color: #284874;
    font-weight: 700;
    font-size: 150%;
    margin: 0;
    padding: 0;
}

.header h2 {
    font-family: 'Rubik', Arial, Helvetica, sans-serif;
    color: #e51e45;
    font-size: 100%;
    text-transform: uppercase;
    font-weight: 600;
}

.footer, .header {
    background: #fff;
    color: #333;
}

.footer a {
    color: #333;
}

.footer a:hover {
    color: #333;
}

.back-to-top {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 2000;
    padding: .75em;
    background: rgba(255,255,255,.5);
    color: #e51e45 !important;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 125%;
    padding: .5em;
    display: block;
}

.main-nav a:hover {
    color: #ffffff;
    text-decoration: none;
}

.slogan {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    max-width: 700px;
    z-index: 100000;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    color: #fff;
    top: 200px;
    font-size: 300%;
    font-weight: 500;
    line-height: 1em;
    letter-spacing: -1px;
    text-shadow: 0px 0px 20px rgba(33,33,33,1);
}

@media(max-width: 768px) {
    .slogan {
        font-size: 150%;
        top: 50px;
    }
    .logo-caritas {
        margin: 1em 0 1em 0;
    }
}

@media(max-width: 500px) {
    .slogan {
        top: 25px;
        font-size: 100%;
    }
}

.navbar-toggler {
    margin: 0 0 0 auto;
    border-color: #ffa060 !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,178,126, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
}

nav a.active {
    color: #e51e45 !important;
    border-bottom: solid #e51e45 1px;
}

.footer a.active,
.topbar a.active {
    color: #e51e45 !important;
    border-bottom: solid #e51e45 1px;
}

.logo {
    max-width: 300px;
    width: 100%;
}

.logo-caritas {
    max-width: 120px;
    width: 100%;
}

.bg-services {
    /**background: #284874 url('../img/backgrounds/bg_leistungen.jpg') no-repeat center right !important;*/
    background-size: 50% auto !important;
}

.bg-services h3 {
    color: #fff !important;
}

.bg-amkra {
    background: #284874;
    color: #fff;
}

.bg-amkra h3 {
    color: #fff !important;
}

.bg-amkra h2 {
    color: #fff;
}

.bg-amkra a {
    color: #fff;
}

.color-qantos {
    color: #284874;
}

h1, h2 {
    font-weight: 400;
    color: #284874;
    text-transform: uppercase;
}

h3 {
    font-weight: 300;
    font-size: 125%;
    color: #e51e45;
    text-transform: uppercase;
}

.lead {
    font-weight: 400;
}

.btn-primary {
    background: #284874;
    color: #fff !important;
}

.btn-primary:hover {
    background: #284874;
    color: #fff !important;
}

.btn-secondary {
    background: #e51e45;
    color: #fff !important;
}

.btn-secondary:hover {
    background: #e51e45;
    color: #fff !important;
}

.btn-warning {
    background: #ffd800;
    color: #fff !important;
}

.btn-warning:hover {
    background: #ffd800;
    color: #fff !important;
}

.color1 {
    color: #284874;
}

.color2 {
    color: #e51e45;
}

.color3 {
    color: #ffd800;
}

.bg-color1 {
    background: #284874;
    color: #fff;
}

.bg-color1.active {
    -webkit-box-shadow:0px 0px 30px 10px rgba(94, 151, 231, 0.95);
    -moz-box-shadow: 0px 0px 30px 10px rgba(94, 151, 231, 0.95);
    box-shadow: 0px 0px 30px 10px rgba(94, 151, 231, 0.95);
}

.bg-color2 {
    background: #e51e45;
    color: #fff;
    position: relative;
    z-index: 10;
}

.bg-color2.active {
    -webkit-box-shadow:0px 0px 30px 10px rgba(229,30,70,0.55);
    -moz-box-shadow: 0px 0px 30px 10px rgba(229,30,70,0.55);
    box-shadow: 0px 0px 30px 10px rgba(229,30,70,0.55);
}


.bg-color3 {
    background: #ffd800;
    color: #fff;
}

.bg-color3.active {
    -webkit-box-shadow:0px 0px 30px 10px rgba(255,217,0,0.55);
    -moz-box-shadow: 0px 0px 30px 10px rgba(255,217,0,0.55);
    box-shadow: 0px 0px 30px 10px rgba(255,217,0,0.55);
}

.icon {
    max-width: 128px;
    width: 100%;
    height: auto;
    margin: 1em;
}

.card-box {
    position: fixed;
    top: 0;
    right: 50px;
	top: -355px;
    transition: all .5s;
    max-width: 400px;
	z-index: 999999 !important;
}

@media(max-width: 768px) {
    .card-box {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        max-width: 100% !important;
        top: -365px;
    }
}

.header-phone {
    position: relative;
    left: -5px;
}

.header-phone svg {
    position: relative;
    top: -2px;
}

.btn-info {
    color: #fff !important;
}

.hidden {
    display: none;
}

/* === Instagram-Bereich (includes/instagram.php) === */
.instagram-section {
    background: #f7f8fa;
}

.instagram-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 24px;
    color: #fff;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 10px 24px rgba(214, 36, 159, 0.28);
}

.instagram-badge svg {
    width: 42px;
    height: 42px;
}

.instagram-handle {
    display: inline-block;
    font-weight: 600;
    font-size: 1.2rem;
    color: #284874 !important;
    text-decoration: none;
}

.instagram-handle:hover {
    color: #e51e45 !important;
    text-decoration: underline;
}

.instagram-embed {
    max-width: 760px;
    margin: 0 auto;
}

.instagram-embed iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(40, 72, 116, 0.14);
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    border: 0;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 8px 20px rgba(214, 36, 159, 0.28);
}

.btn-instagram:hover,
.btn-instagram:focus {
    color: #fff !important;
    opacity: 0.92;
}

.btn-instagram svg {
    width: 20px;
    height: 20px;
}

.instagram-posts {
    margin-top: 1rem;
}

.instagram-posts .instagram-media {
    min-width: 0 !important;
    margin: 0 auto !important;
}

.instagram-grid {
    margin-top: 1rem;
}

.instagram-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(40, 72, 116, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instagram-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(40, 72, 116, 0.2);
    color: inherit;
}

.instagram-card-media {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 100%;
    background: #eef1f5;
}

.instagram-card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.instagram-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    font-size: 18px;
    color: #fff;
    background: rgba(40, 72, 116, 0.72);
    border-radius: 50%;
    padding-left: 4px;
}

.instagram-card-caption {
    display: block;
    padding: 12px 14px;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #3b3b47;
}

.instagram-card-media.is-empty {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.instagram-card-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    opacity: 0.9;
}

.instagram-card-fallback svg {
    width: 44px;
    height: 44px;
}

.instagram-card-caption {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Instagram-Kacheln: finales Layout (Bild + gekürzter Text + Weiterlesen) */
.instagram-grid > [class*="col-"] { display: flex; }
.instagram-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}
.instagram-card-media { flex: 0 0 auto; }
.instagram-card-body {
    flex: 1 1 auto;
    padding: 14px 16px;
}
.instagram-card-caption {
    display: block;
    -webkit-line-clamp: unset;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #3b3b47;
    text-align: left;
    overflow: visible;
}
.instagram-card-more {
    white-space: nowrap;
    font-weight: 600;
    color: #e51e45;
    text-decoration: none;
}
.instagram-card-more:hover { text-decoration: underline; color: #e51e45; }