html,body{font-family:'Roboto',Arial,sans-serif;font-weight:400;font-size:1.025rem;color:#2c2c2c;margin:0;padding:0;background-color:#fff;word-wrap:break-word;-webkit-text-size-adjust:100%;overflow-x:clip;text-rendering:optimizeLegibility !important;-webkit-font-smoothing:antialiased !important;-moz-osx-font-smoothing:grayscale;-ms-font-smoothing:antialiased;-o-font-smoothing:antialiased}

/* Zentrale Akzentfarbe -- wurde bisher an mehreren Stellen (Carousel-
   Punkte, aktive Menuepunkte, "aktiv"-Buttons) referenziert, aber nie
   tatsaechlich definiert. Hier einmalig festgelegt, alle Verwendungen
   greifen jetzt korrekt darauf zu. */
:root {
    --stiftung-accent: #E74F37;
    --stiftung-accent-hover: #B93E24;

}
a{
    text-decoration: none;
}
.text-accent {
    color: var(--stiftung-accent) !important;
}

@media (min-width: 1200px) {
  .site-header { top: -126px; }
}
.article-carousel-counter {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	font-size: .8rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .02em;
	pointer-events: none;
}

/* Suchen-Button: rund, in der Akzentfarbe -- gilt sowohl fuer den
   freistehenden Desktop-Button als auch fuer den Button innerhalb der
   .search-pill (mobiles Suchfeld, siehe weiter unten). */
.btn-accent {
    background-color: var(--stiftung-accent);
    color: #fff;
    border: none;
}
.btn-accent:hover,
.btn-accent:focus,
.btn-accent.active {
    background-color: #7DB8E1;
    color: #fff;
}

.btn-333333 {
    background-color: #333333;
    color: #fff;
    border: none;
}
.btn-333333:hover,
.btn-333333:focus,
.btn-333333.active {
    background-color: #7DB8E1;
    color: #fff;
}

.btn-F9BC5F {
    background-color: #F9BC5F;
    color: #fff;
    border: none;
}
.btn-F9BC5F:hover,
.btn-F9BC5F:focus,
.btn-F9BC5F.active {
    background-color: #7DB8E1;
    color: #fff;
}

.btn-accent-sub {
    background-color: var(--stiftung-accent);
    color: #fff;
    border: none;
}
.btn-accent-sub:hover,
.btn-accent-sub:focus,
.btn-accent-sub.active {
    background-color: #2c2c2c;
    color: #fff;
}

/* Mobiles Suchfeld: Eingabe + Button optisch als eine durchgehende,
   abgerundete Pille -- overflow:hidden sorgt dafuer, dass die eckigen
   Innenkanten von Bootstraps .input-group automatisch mit
   abgeschnitten/abgerundet wirken, ohne Bootstraps Grid-Verbindung
   selbst aufzubrechen. */
.search-pill {
    border-radius: 50px;
    overflow: hidden;
}
.search-pill .btn-accent {
    border-radius: 0;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/roboto-v51-latin-regular.woff2') format('woff2'),
         url('../fonts/roboto-v51-latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/roboto-v51-latin-300.woff2') format('woff2'),
         url('../fonts/roboto-v51-latin-300.woff') format('woff');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/roboto-v51-latin-600.woff2') format('woff2'),
         url('../fonts/roboto-v51-latin-600.woff') format('woff');
}

@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/roboto-slab-v36-latin-300.woff2') format('woff2'),
         url('../fonts/roboto-slab-v36-latin-300.woff') format('woff');
}

@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/roboto-slab-v36-latin-regular.woff2') format('woff2'),
         url('../fonts/roboto-slab-v36-latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/roboto-slab-v36-latin-600.woff2') format('woff2'),
         url('../fonts/roboto-slab-v36-latin-600.woff') format('woff');
}

body {
    font-family: 'Roboto', sans-serif;
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    font-weight: 600;
	line-height: 1.25;
    overflow-wrap: break-word;
}
h2.h3 { font-family: 'Roboto Slab', serif; font-weight: 300; line-height: 1.25; }
h3.h4 { font-family: 'Roboto Slab', serif; font-weight: 400; line-height: 1.4; }


.header-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
	transition: all 0.3s ease-in-out;
}


.article-image { border-radius: 12px; width: 100%; height: auto; object-fit: cover; max-height: 420px; }
.article-carousel-img { width: 100%; height: auto; }
.article-carousel .carousel-indicators { bottom: -8px; }
.article-carousel .carousel-indicators [data-bs-target] { background-color: var(--stiftung-accent); width: 8px; height: 8px; border-radius: 50%; }
.article-content { }
.article-content p { font-size: 1.05rem; line-height: 1.5; overflow-wrap: anywhere; margin-bottom: 1.1rem; }
.article-content a { word-break: break-word;}
.related-card { background-color:#fff }
.related-card a { text-decoration: none; color:#2c2c2c }
.related-card a:hover { color:#E74F37 }
.related-title { font-weight: 600; font-size: 1rem; transition: color 0.2s; }
.related-thumb-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
}
.related-thumb {
    position: absolute;
    inset: 0;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}
.related-thumb-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
}
.related-thumb-spinner::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: var(--stiftung-accent);
    border-radius: 50%;
    animation: related-thumb-spin 0.7s linear infinite;
}
@keyframes related-thumb-spin {
    to { transform: rotate(360deg); }
}
.breadcrumb { margin-bottom: 0;margin-top: 0.5rem;font-size: 80%}
.breadcrumb-item a{text-decoration: none; color:rgba(41, 41, 41, .5);transition: color 0.2s;}
.breadcrumb-item a:hover{ color:rgba(41, 41, 41, 1.0); }
.breadcrumb-item.active{text-decoration: none;color:rgba(41, 41, 41, .5); }

.btn { transition: all 0.3s ease-in-out;}
.bs-red-bg { background-color:#E74F37; color: white }
.btn.bs-red-bg { background-color: #E74F37; color: white; transition: all 0.3s ease-in-out;}
.btn.bs-red-bg:hover { background-color: #2c2c2c }

footer { background-color: #2c2c2c;color: rgba(255, 255, 255, .5)}
footer a { text-decoration: none;color: rgba(255, 255, 255, .5)}
footer a:hover,footer a.active { color: rgba(255, 255, 255, 1.0)}

.instagram {
	background: #833ab4;
	background: linear-gradient(to right,#833ab4,#fd1d1d,#fcb045);
	transition: opacity 0.2s ease;
}
.instagram:hover { opacity: 0.8; }
.facebook {
    background: #00c6ff;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    transition: opacity 0.2s ease;
}
.facebook:hover { opacity: 0.8; }

/* Teilen-Buttons unter jedem Artikel -- Markenfarben je Kanal, weisse
   Icons, dezenter Hover-Effekt. */
.bg-facebook { background-color: #1877F2; color: #fff; transition: opacity 0.2s ease; }
.bg-facebook:hover { opacity: 0.85; color: #fff; }
.bg-whatsapp { background-color: #25D366; color: #fff; transition: opacity 0.2s ease; }
.bg-whatsapp:hover { opacity: 0.85; color: #fff; }
.bg-mail { background-color: #6c757d; color: #fff; transition: opacity 0.2s ease; }
.bg-mail:hover { opacity: 0.85; color: #fff; }

.bg-F9BC5F {background-color: #F9BC5F;}
.bg-008 { background-color: rgba(44, 44, 44, 0.08);} /*blue*/
.bg-orange-008 {background-color: rgba(249, 188, 95, 0.25) }
.bg-accent { background-color:#E74F37; color: white }

@media (max-width: 767.98px){
  .mobile-slider{
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .25rem;
  }
  .mobile-slider::-webkit-scrollbar{ display: none; }
  .mobile-slider > [class*="col-"]{ scroll-snap-align: start; }
}
.mobile-slider-dots{ display:flex; justify-content:center; gap:.5rem; margin-top:1rem; }
.mobile-slider-dots button{
  width:10px; height:10px; padding:0; border:0; border-radius:50%;
  background:var(--bs-gray-400); transition:background .2s, transform .2s;
}
.mobile-slider-dots button.active{ background:var(--bs-info); transform:scale(1.2); }


.header-bg {
	background-size: cover;
    background-position: center;
    min-height: 360px;}

.hr-accent {
    width: 36px;
    height: 3px;
    background-color: #E74F37;
	opacity: 1;
    border: none;
    margin: 0;
}

.related-thumb-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    pointer-events: none;
}
.news-card-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    pointer-events: none;
}

/* Gütesiegel – mobil */
.guetesiegel {
  position: absolute;
  bottom: 0;
  right: 0%;
  width: 116px;
  height: auto;
  transform: translate(-10%, 50%);
  z-index: 99;
}

/* Gütesiegel – ab Tablet (768px) */
@media (min-width: 992px) {
  .guetesiegel {
	  position: absolute;
  bottom: 0;
  left: 75%;
    width: 180px;
	  height: auto;
  transform: translate(-75%, 50%);
  z-index: 99;
  }
}

.page-header-bg {
    position: relative;
}
.page-header-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #2c2c2c;
    opacity: 0.9;
}
.page-header-bg > * {
    position: relative;
    z-index: 1;
}
/* Mobiles Offcanvas-Menue: Vollbild via Bootstraps eigene CSS-Variable
   --bs-offcanvas-width statt einer festen max-width-Ueberschreibung mit
   !important -- das ist der von Bootstrap vorgesehene, sauberste Weg,
   die Standardbreite (400px) zu ueberschreiben. */
#mobileNav.offcanvas-end {
    --bs-offcanvas-width: 100vw;
}

/* Mobiles Menue -- flache Liste mit duennen Trennlinien und Chevron bei
   aufklappbaren Punkten (Akkordeon statt schwebendem Dropdown), damit
   Unterpunkte inline erscheinen statt als separates Overlay. */
.mobile-nav-list {
    display: flex;
    flex-direction: column;
}
.mobile-nav-item {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    border-bottom: 1px solid #e9ecef;
}
.mobile-nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c2c2c;
    text-decoration: none;
}
.mobile-nav-link:hover {
    color: var(--stiftung-accent);
}
.mobile-nav-chevron-btn {
    background: none;
    border: none;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.mobile-nav-chevron {
    transition: transform 0.2s ease;
    color: #999;
    font-size: 1.125rem;
}
.mobile-nav-chevron-btn[aria-expanded="true"] .mobile-nav-chevron {
    transform: rotate(180deg);
}
.mobile-nav-subitem {
    display: block;
    padding: 10px 20px 10px 32px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.125rem;
}
.mobile-nav-subitem:hover {
    color: var(--stiftung-accent);
}

.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.news-card:hover {
    box-shadow: 0 4px 16px rgba(33, 37, 41, 0.1);
    transform: translateY(-2px);
}
.news-card-img-wrapper {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f5f5f5;
}
.news-card-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
    display: block;
}
.news-card-img-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-card-img-spinner::after {
    content: '';
    width: 28px;
    height: 28px;
    border: 3px solid #ddd;
    border-top-color: var(--stiftung-accent);
    border-radius: 50%;
    animation: related-thumb-spin 0.7s linear infinite;
}

/* Desktop-Dropdowns (Nachrichten, Die Stiftung, Projekte, Mein Beitrag):
   Der Hauptlink navigiert normal zur Seite, dieser separate kleine
   Pfeil-Button oeffnet NUR das Untermenue -- Bootstraps dropdown-toggle
   verhindert sonst per preventDefault() die Navigation, wenn beides auf
   demselben Link liegt. */
.dropdown-toggle-split-inline {
    padding-left: 4px !important;
    padding-right: 4px !important;
}
.dropdown-toggle-split-inline::after {
    margin-left: 0;
}

/* Vorstand & Beirat -- Karten mit Hochformat-Foto (passend zu den im
   Manager-Bereich erzwungenen Mindestmassen: Hochformat, min. 768px
   breit), plus kleine runde Kontakt-Buttons (WhatsApp/E-Mail) pro
   Person. */
.vorstand-card {
    background-color: rgba(44, 44, 44, 0.08);
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.vorstand-card:hover {
    box-shadow: 0 4px 16px rgba(33, 37, 41, 0.1);
    transform: translateY(-2px);
}
.vorstand-card-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}
.vorstand-card-img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #c7c7cc;
    font-size: 2.5rem;
}
.vorstand-contact-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #E74F37;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.vorstand-contact-btn-w {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.vorstand-contact-btn:hover,.vorstand-contact-btn-w:hover {
    opacity: 0.8;
    color: #fff;
}

/* "Freiwillige Helfer"-Aufruf -- links Hintergrundbild mit dunklem
   Overlay (gleiches Prinzip wie .page-header-bg) plus Textbox, rechts
   ein zweites Bild. Auf Mobile nur die linke Haelfte (Text bleibt
   wichtiger als das zweite Bild). */
.volunteer-cta-content {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.volunteer-cta-overlay {
    position: absolute;
    inset: 0;
    background-color: #2c2c2c;
    opacity: 0.7;
}
.volunteer-cta-box {
    position: relative;
    z-index: 1;
    padding: 40px 0;
}
.volunteer-cta-image {
    background-size: cover;
    background-position: center;
    min-height: 360px;
}
#scrollToTopBtn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #E74F37;
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
    z-index: 1050;
}
#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#scrollToTopBtn:hover {
    background: #c93f2b;
}
@media (max-width: 576px) {
    #scrollToTopBtn {
        right: 24px;
        bottom: 24px;
        width: 44px;
        height: 44px;
    }
}
header.page-title {
    position: relative;
}
header.page-title:before {
    content: '';
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background: rgba(21, 21, 21, 0.5);
}
header.page-title .container {
    position: relative;
    z-index: 1;
}
.c1 {
background: linear-gradient(
  135deg,
  #87C1E6 0%,
  #E75035 20%,
  #FFEF41 40%,
  #CCD594 65%,
  #F9BC5F 100%
);
}
