@charset "UTF-8";
/* ============================================================
   FONTS — lokal eingebunden, kein Google Fonts / CDN
   Dateien liegen in /assets/fonts/
   ============================================================ */

@font-face {
    font-family: 'Josefin Sans';
    src: url('../fonts/josefin-sans-v34-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Josefin Sans';
    src: url('../fonts/josefin-sans-v34-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Josefin Sans';
    src: url('../fonts/josefin-sans-v34-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Chiller';
    src: local('CHILLER'),
         url('../fonts/CHILLER.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Grundschrift für den Fließtext: gut lesbare, neutrale Ergänzung zur
   dekorativeren Josefin Sans (Überschriften). Wie alle Fonts lokal
   gehostet — kein Google-CDN. Es sind mehrere Gewichte deklariert;
   der Browser lädt nur die tatsächlich verwendeten Dateien:
   400 = normal (z. B. Dropdown-Einträge via Bootstrap)
   500 = Standardgewicht des Fließtexts (siehe body-Regel unten)
   600 = fw-semibold (z. B. Spendenkonto-Werte)
   700 = fw-bold / <strong>
   800 = Reserve für besonders kräftige Auszeichnungen */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-v44-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-v44-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-v44-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-v44-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-v44-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


/* ============================================================
   FARBEN & DESIGN-TOKENS
   Bootstrap-Variablen hier überschreiben — niemals in
   bootstrap.min.css editieren!
   ============================================================ */

:root {
    /* --- Markenfarben --- */
    --bs-primary:         #d2ff50;   /* Gelbgrün — Navbar                      */
    --bs-secondary:       #ff9900;   /* Orange — Topbar, Akzente               */
    --bs-dark:            #051311;   /* Fast-Schwarz — Text, Buttons           */
    --bs-light:           #fdf8ea;   /* Cremeweiß — helle Hintergründe         */

    /* Bootstrap-interne RGB-Werte */
    --bs-primary-rgb:     210, 255,  80;
    --bs-secondary-rgb:   255, 153,   0;
    --bs-dark-rgb:          5,  19,  17;
    --bs-light-rgb:       253, 248, 234;

    /* --- Eigene Zusatzfarben --- */
    --hh-title-color:     #c00000;   /* Dunkelrot — Schriftzug Hujambo Habari  */
    --hh-tertiary:        #797e88;   /* Grau — Breadcrumbs, Untertexte         */
    --hh-nav-text:        #4a4a4a;   /* Grau — Navbar-Links                    */
    --hh-body:            #25272c;   /* Dunkelgrau — Fließtext                 */
    --hh-footer-bg:       rgba(5, 19, 17, 0.95);

    /* --- Schrift --- */
    --hh-font-base:       'Open Sans', 'Segoe UI', Arial, sans-serif;  /* Fließtext */
    --hh-font-heading:    'Josefin Sans', sans-serif;                  /* Überschriften */

    /* --- Abstände & Radien --- */
    --hh-navbar-height:   90px;
    --hh-topbar-height:   90px;
    --hh-border-radius:   0px;
    --hh-sidebar-width:   120px;  /* Logo-Breite = Lang-Switcher-Breite */
}


/* ============================================================
   BASIS
   ============================================================ */

body {
    font-family: var(--hh-font-base);
    /* Grundgewicht 500 (Medium) statt 400: Open Sans wirkt in Regular
       recht leicht — Medium gibt dem Fließtext mehr Volumen, ohne fett
       auszusehen. Zum Feinjustieren nur diesen Wert ändern (400/500/600);
       die passenden Font-Dateien sind oben deklariert. */
    font-weight: 500;
    color:       var(--hh-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hh-font-heading);
}

.section-title {
    font-size:      1rem;
    font-weight:    600;
    letter-spacing: 3px;
    text-transform: uppercase;
}


/* ============================================================
   SITE HEADER (Logo + Topbar + Navbar + Sprachumschalter)
   ============================================================ */

.site-header {
    width: 100%;
}

/* Bezugspunkt für die Navbar beim Lösen */
.nav-center-col {
    position: relative;
}

/* --- Logo links --- */
.site-logo-wrap {
    display:         flex;
    align-items:     center;
    justify-content: center;
    background:      var(--bs-secondary);
    padding:         8px;
    flex-shrink:     0;
    text-decoration: none;
    width:           var(--hh-sidebar-width);
}

.site-logo {
    width:      100%;
    height:     100%;
    object-fit: contain;
}

/* --- Topbar --- */
.top-bar {
    padding:     8px clamp(5px, 2vw, 20px);
    display:     flex;
    align-items: center;
    flex-grow:   1;
}

.topbar-brand {
    text-decoration: none;
}

.topbar-title,
.topbar-main,
.topbar-sub,
.topbar-sep {
    font-family: 'Chiller', sans-serif;
    font-weight: 700;
    color:       var(--hh-title-color);
}

.topbar-title {
    line-height: 1.2;
    font-size:   clamp(2.3rem, 3.5vw, 2.8rem);
}

.topbar-main { display: block; }

.topbar-sub {
    display:        block;
    letter-spacing: 0.5px;
}

.topbar-sep { display: none; }

@media (min-width: 600px) {
    .topbar-main,
    .topbar-sub { display: inline; }
    .topbar-sep { display: inline; }
}


/* ============================================================
   NAVBAR
   ============================================================ */

/* Sanfte Transition beim Sticky-Effekt */
.bg-primary {
    transition: box-shadow .3s ease;
}

.bg-primary.fixed-top {
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.nav-bar-wrap {
    transition: box-shadow .4s ease, left .5s ease, right .5s ease, margin .5s ease;
}

.nav-bar-wrap.nav-sticky {
    position:   fixed;
    top:        0;
    left:       0;
    right:      0;
    z-index:    1030;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Beim Lösen: im normalen Fluss bleiben (relative), nur Keyframe-Animation.
   KEIN position:absolute/top mehr – das verursachte beim Umschalten einen
   Sub-Pixel-Sprung (Logo runter, Nav-Inhalt hoch). */
.nav-bar-wrap.nav-unsticky {
    position:   relative;
    z-index:    1030;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    animation:  navUndock .5s ease both;
}

@keyframes navUndock {
    from {
        margin-left:  calc(-1 * var(--hh-sidebar-width));
        margin-right: calc(-1 * var(--hh-sidebar-width));
        box-shadow:   0 2px 8px rgba(0,0,0,.25);
    }
    to {
        margin-left:  0;
        margin-right: 0;
        box-shadow:   0 2px 8px rgba(0,0,0,0);
    }
}

/* Beim ersten Sticky-Moment: von Logo/Lang-Breite auf volle Breite expandieren */
.nav-bar-wrap.nav-sticky-enter {
    left:  var(--hh-sidebar-width);
    right: var(--hh-sidebar-width);
}

.navbar .navbar-nav .nav-link {
    font-family:    var(--hh-font-base);
    margin-right:   15px;
    padding:        15px 0;
    color:          var(--hh-nav-text);
    font-weight:    700;
    /* Kein outline:none mehr — die Regel war spezifischer als der globale
       :focus-visible-Rahmen (Dateiende) und machte den Tastatur-Fokus
       ausgerechnet in der Hauptnavigation unsichtbar. */
    letter-spacing: -0.2px;
    transition:     color .2s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-secondary);
}

/* Dropdown-Eltern-Link orange wenn Unterseite aktiv */
.navbar .nav-item.dropdown > .nav-link.active {
    color: var(--bs-secondary);
}

.navbar .dropdown-toggle::after {
    border:         none;
    content:        "▾";
    margin-left:    6px;
    vertical-align: middle;
}

/* Dropdown: gleiche Hintergrundfarbe wie Navbar */
.navbar .dropdown-menu {
    background:    var(--bs-primary);
    border-radius: 0;
    border:        none;
    box-shadow:    0 4px 12px rgba(0,0,0,.15);
    margin-top:    0 !important;
}

.navbar .dropdown-item {
    color:          var(--hh-nav-text);
    font-weight:    700;
    font-size:      16px;
    letter-spacing: -0.2px;
    padding:        10px 20px;
    transition:     color .2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: transparent;
    color:      var(--bs-secondary);
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
    background: transparent;
    color:      var(--bs-secondary);
}

/* Hover-Dropdown ohne Klick (nur Desktop) */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display:    block;
        top:        110%;
        opacity:    0;
        visibility: hidden;
        transition: opacity .25s ease, top .25s ease;
        pointer-events: none;
    }

    .navbar .nav-item:hover .dropdown-menu,
    .navbar .nav-item:focus-within .dropdown-menu {
        top:        100%;
        opacity:    1;
        visibility: visible;
        pointer-events: auto;
    }
}


/* ============================================================
   SPRACHUMSCHALTER
   ============================================================ */

.lang-switcher-vertical {
    flex-direction:  column;
    align-items:     flex-end;
    justify-content: flex-start;
    gap:             4px;
    flex-shrink:     0;
    width:           var(--hh-sidebar-width);
    padding:         8px;
    background:      var(--bs-secondary);
}

.lang-btn-v {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           36px;
    height:          24px;
    font-size:       0.72rem;
    font-weight:     600;
    color:           var(--bs-dark);
    text-decoration: none;
    transition:      background .2s, color .2s;
    letter-spacing:  0.03em;
    border:          1px solid rgba(0,0,0,.25);
    border-radius:   4px;
}

.lang-btn-v:hover {
    background: rgba(0,0,0,.08);
    color:      var(--bs-dark);
}

.lang-btn-v.lang-active {
    background:     var(--bs-dark);
    color:          #fff;
    border-color:   var(--bs-dark);
    pointer-events: none;
}

/* ============================================================
   MOBILER HEADER (< 992px): Logo oben zentriert, Schriftzug
   darunter, Navbar darunter. Sprachumschalter sitzt oben rechts
   neben dem Logo. Auf Mobile wird die Navbar NICHT angepinnt
   (mehr Platz für Inhalt) – siehe site.js.
   ============================================================ */
@media (max-width: 991.98px) {
    .site-header > .d-flex {
        flex-direction: column;
        position:       relative;
    }

    /* Logo oben, zentriert */
    .site-logo-wrap {
        width:   100%;
        height:  auto;
        padding: 12px 10px 6px;
    }

    .site-logo {
        width:      auto;
        height:     auto;
        max-height: 88px;
    }

    /* Schriftzug zentriert und groß */
    .top-bar {
        justify-content: center;
        text-align:      center;
        padding:         0 12px 12px;
    }

    /* Schriftzug auf EINER Zeile, einheitliche Größe, zentriert.
       Größe per vw, damit die Zeile mit dem schmalen Chiller-Font passt;
       schmalere Wortabstände schaffen zusätzlich Platz. Falls es auf sehr
       schmalen Geräten doch zu breit wird, bricht es gnädig um statt
       überzulaufen (kein nowrap). */
    .top-bar .topbar-main,
    .top-bar .topbar-sub,
    .top-bar .topbar-sep {
        display:   inline;
        font-size: inherit;
    }

    .top-bar .topbar-title {
        font-size:    clamp(1.5rem, 6.2vw, 2.5rem);
        word-spacing: -0.10em;
    }

    /* Sprachumschalter oben rechts, neben dem Logo */
    .lang-switcher-vertical {
        position:   absolute;
        top:        6px;
        right:      6px;
        width:      auto;
        padding:    0;
        gap:        4px;
        background: transparent;
        z-index:    5;
    }
}




/* ============================================================
   ICONS
   ============================================================ */

.icon-nav {
    width:  32px;
    height: 32px;
    fill:   currentColor;
}

.icon-footer-gray {
    width:  26px;
    height: 26px;
    fill:   var(--hh-tertiary);
}

.icon-footer-black {
    width:  38px;
    height: 38px;
    fill:   currentColor;
}

.icon-body {
    width:          24px;
    height:         24px;
    flex-shrink:    0;
    vertical-align: middle;   /* statt Standard "baseline" (hängt sonst zu tief) */
}

.icon-body-gray {
    width:          20px;
    height:         20px;
    flex-shrink:    0;
    opacity:        .6;
    vertical-align: middle;   /* statt Standard "baseline" (hängt sonst zu tief) */
}

/* Fingerzeig-Icon auf der Helfen-Seite etwas größer als der Standard oben */
.donate-section .icon-body-gray,
.donate-account-box .icon-body-gray {
    width:  28px;
    height: 28px;
}

.icon-activities {
    width:  64px;    /* vorher 48px */
    height: 64px;
    fill:   var(--hh-title-color);   /* unser Rot */
}

.btn-square {
    width:           88px;    /* vorher 64px */
    height:          88px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    background-color: var(--bs-primary) !important;   /* unser Grün; !important nötig,
                                                            da Bootstraps .bg-light im
                                                            Markup selbst !important nutzt */
}

.btn-square-sm {
    width:         36px;
    height:        36px;
    display:       flex;
    align-items:   center;
    justify-content: center;
    padding:       2px;
    border-radius: 6px;
    color:         #fff;
    transition:    background .2s, border-color .2s;
}

.btn-square-sm:hover {
    background:   var(--hh-nav-text);   /* dezenter Grauton statt Orange */
    border-color: var(--hh-nav-text);
    color:        #fff;
}


/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
    /* Frühere Foto-Hintergrundgrafik (bg.jpg) wurde entfernt — es bleibt die
       halbtransparente dunkle Fläche, die vorher als Abdunkelung diente. */
    background: rgba(5, 19, 17, .6);
    color: #fff;
}


/* ============================================================
   HERO KARUSSELL (Startseite)
   ============================================================ */

/* Vorwärts: reindrehen von oben links, Drehpunkt unten links */
@keyframes rotateInDownLeft {
    from {
        transform-origin: left bottom;
        transform:        rotate3d(0, 0, 1, -45deg);
        opacity:          0;
    }
    to {
        transform-origin: left bottom;
        transform:        none;
        opacity:          1;
    }
}

/* Vorwärts: rausdrehen nach oben rechts */
@keyframes rotateOutUpRight {
    from {
        transform-origin: right bottom;
        transform:        none;
        opacity:          1;
    }
    to {
        transform-origin: right bottom;
        transform:        rotate3d(0, 0, 1, 45deg);
        opacity:          0;
    }
}

/* Rückwärts: reindrehen von oben rechts, Drehpunkt unten rechts */
@keyframes rotateInDownRight {
    from {
        transform-origin: right bottom;
        transform:        rotate3d(0, 0, 1, 45deg);
        opacity:          0;
    }
    to {
        transform-origin: right bottom;
        transform:        none;
        opacity:          1;
    }
}

/* Rückwärts: rausdrehen nach oben links */
@keyframes rotateOutUpLeft {
    from {
        transform-origin: left bottom;
        transform:        none;
        opacity:          1;
    }
    to {
        transform-origin: left bottom;
        transform:        rotate3d(0, 0, 1, -45deg);
        opacity:          0;
    }
}

.hero-carousel {
    position:   relative;
    /* Frühere Foto-Hintergrundgrafik (bg.jpg) wurde entfernt — es bleibt die
       dunkle Grundfläche; darüber liegt pro Slide das Foto (.carousel-bg). */
    background: rgba(5, 19, 17, .76);
    overflow:   hidden;
}

/* Mindesthöhe des Hero-Bereichs: bewusst FEST (nicht viewport-abhängig),
   damit der Container beim Slide-Wechsel nicht "atmet" — die Slide-Bilder
   sind unterschiedlich hoch, und die Mindesthöhe muss den höchsten Slide
   abdecken. 900px hat sich bewährt; zum Experimentieren nur diesen einen
   Wert ändern. */
.hero-carousel {
    --hh-hero-min-height: 900px;
}

.hero-carousel .carousel-inner {
    min-height: var(--hh-hero-min-height);
}

/* Hintergrund pro Slide: dezentes Overlay */
.hero-carousel .carousel-bg {
    position:            absolute;
    inset:               0;
    background-size:     cover;
    background-position: center;
    opacity:             0.15;
}

/* Hintergrund des AUSgehenden Slides: schnell ausblenden (erste Hälfte) */
.hero-carousel .rotate-out-right .carousel-bg,
.hero-carousel .rotate-out-left .carousel-bg {
    animation: bgFadeOut .4s ease both;
}

/* Hintergrund des EINkommenden Slides: verzögert einblenden (zweite Hälfte) */
.hero-carousel .rotate-in-left .carousel-bg,
.hero-carousel .rotate-in-right .carousel-bg {
    animation: bgFadeIn .65s ease .35s both;
}

@keyframes bgFadeOut {
    from { opacity: 0.15; }
    to   { opacity: 0; }
}

@keyframes bgFadeIn {
    from { opacity: 0; }
    to   { opacity: 0.15; }
}

.hero-carousel .carousel-item {
    /* gleiche feste Mindesthöhe wie .carousel-inner (siehe Variable oben) */
    min-height: var(--hh-hero-min-height);
}

/* Flex-Layout nur auf sichtbare Items – verhindert dass alle Items gleichzeitig erscheinen */
.hero-carousel .carousel-item.active,
.hero-carousel .carousel-item-next,
.hero-carousel .carousel-item-prev {
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         3rem 0;
}

/* Bootstrap's Slide-Transition deaktivieren – wir animieren per Keyframe */
.hero-carousel .carousel-item {
    transition: none !important;
}

.hero-carousel .active.carousel-item-start,
.hero-carousel .active.carousel-item-end,
.hero-carousel .carousel-item-next:not(.carousel-item-start),
.hero-carousel .carousel-item-prev:not(.carousel-item-end) {
    transform: none !important;
}

/* Animationsklassen – per JS gesetzt */
.hero-carousel .rotate-in-left .carousel-content {
    animation: rotateInDownLeft 1s ease both;
}
.hero-carousel .rotate-out-right .carousel-content {
    animation: rotateOutUpRight 1s ease both;
}
.hero-carousel .rotate-in-right .carousel-content {
    animation: rotateInDownRight 1s ease both;
}
.hero-carousel .rotate-out-left .carousel-content {
    animation: rotateOutUpLeft 1s ease both;
}

/* Ausgehender Slide sichtbar halten während Animation läuft */
.hero-carousel .carousel-item.rotate-out-right,
.hero-carousel .carousel-item.rotate-out-left {
    display:  flex !important;
    position: absolute;
    top:      0;
    left:     0;
    width:    100%;
    z-index:  0;
}

/* Einkommender Slide darüber */
.hero-carousel .carousel-item.rotate-in-left,
.hero-carousel .carousel-item.rotate-in-right {
    z-index: 1;
    position: relative;
}

/* Lesbarkeit über Foto: weiße Schrift auf dunklem Schleier (s. .hero-carousel),
   größerer Fließtext + Zeilenabstand für bessere Lesbarkeit, dezenter Schatten */
.hero-carousel .carousel-text h2 {
    color:       #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}

.hero-carousel .carousel-text p {
    color:       #f2f2ef;
    font-size:   clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

.hero-carousel .carousel-img-frame {
    max-width:  100%;
    max-height: 100%;
    width:      auto;
    height:     auto;
    object-fit: contain;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}

/* Carousel-Buttons – Look wie Footer-Buttons */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width:         45px;
    height:        45px;
    top:           50%;
    bottom:        auto;
    transform:     translateY(-50%);
    background:    var(--bs-secondary);
    border:        1px solid var(--bs-secondary);
    border-radius: 6px;
    color:         var(--bs-dark);
    opacity:       1;
    box-shadow:    0 12px 32px rgba(0, 0, 0, .55);
    transition:    background .2s, border-color .2s, opacity .4s ease;
}

/* Bei Inaktivität ausgeblendet (per JS gesetzt); bei Maus/Touch wieder sichtbar.
   Verdecken so auf schmalen Displays nicht dauerhaft den Text. */
.hero-carousel.controls-idle .carousel-control-prev,
.hero-carousel.controls-idle .carousel-control-next {
    opacity:        0;
    pointer-events: none;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background:   #cc7a00;
    border-color: #cc7a00;
    opacity:      1;
}

.hero-carousel .carousel-control-prev {
    left:  15px;
    right: auto;
}

.hero-carousel .carousel-control-next {
    right: 15px;
    left:  auto;
}

/* Pfeil-Icons in den Buttons */
.hero-carousel .carousel-control-prev .icon-btn,
.hero-carousel .carousel-control-next .icon-btn {
    width:  24px;
    height: 24px;
    fill:   var(--bs-dark);
}

/* Indikator-Punkte am unteren Rand: Orientierung bei den vielen Slides.
   Bleiben — anders als die Pfeile — dauerhaft sichtbar, denn genau dafür
   sind sie da. Bootstrap-Standard (breite Balken) wird zu kleinen runden
   Punkten umgestylt; der aktive Punkt bekommt das Marken-Orange. */
.hero-carousel .carousel-indicators {
    margin-bottom: 14px;
    gap:           7px;
    flex-wrap:     wrap;        /* falls es auf sehr schmalen Displays eng wird */
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width:         11px;
    height:        11px;
    margin:        0;
    border:        none;        /* Bootstrap gibt den Buttons sonst transparente Ränder */
    border-radius: 50%;
    background:    rgba(255, 255, 255, .45);
    opacity:       1;
    transition:    background .2s, transform .2s;
}

.hero-carousel .carousel-indicators [data-bs-target]:hover {
    background: rgba(255, 255, 255, .85);
}

.hero-carousel .carousel-indicators .active {
    background: var(--bs-secondary);
    transform:  scale(1.2);
}


/* ============================================================
   VIDEO PLAY BUTTON
   ============================================================ */

.btn-play {
    position:      relative;
    width:         60px;
    height:        60px;
    flex-shrink:   0;
    border-radius: 50%;
    background:    #fff;
    border:        none;
    cursor:        pointer;
    transition:    .3s;
}

.btn-play::after {
    content:       '';
    position:      absolute;
    inset:         0;
    border-radius: 50%;
    border:        2px solid #fff;
    animation:     btn-play-pulse 2s infinite;
}

.btn-play span {
    position:     absolute;
    top:          50%;
    left:         55%;
    transform:    translate(-50%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--bs-primary);
}

@keyframes btn-play-pulse {
    0%   { transform: scale(1);   opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* "Weiter scrollen"-Hinweis in der orangen Seitenspalte des Video-Banners:
   um 90° gedrehter Text mit sanftem Auf-und-Ab-Wippen als dezenter Hinweis,
   dass darunter Inhalt folgt. translateX statt translateY, weil sich die
   Achsen durch die Drehung mitdrehen: -X zeigt im gedrehten Koordinaten-
   system nach unten. Bei "reduzierter Bewegung" steht der Text still
   (zentraler prefers-reduced-motion-Block am Dateiende). */
.scroll-hint {
    white-space: nowrap;
    animation:   scroll-hint-bob 2.4s ease-in-out infinite;
}

@keyframes scroll-hint-bob {
    0%, 100% { transform: rotate(-90deg) translateX(0); }
    50%      { transform: rotate(-90deg) translateX(-7px); }
}


/* ============================================================
   AKTIVITÄTEN-KARTEN
   ============================================================ */

/* Gleiche Optik wie Partner-/Presse-/Video-/Vortrags-Karten: weißer
   Hintergrund, dezenter Schatten, der beim Hover zunimmt (kein Farbwechsel). */
.service-item {
    height:        100%;
    padding:       1.5rem;
    background:    #fff;
    border-bottom: none;
    box-shadow:    0 6px 20px rgba(0, 0, 0, .12);
    transition:    box-shadow .3s;
}

.service-item:hover {
    background: #fff;
    color:      inherit;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
}

/* Gleiches Hintergrund-Relief + Ecken-Deko wie beim "Mitglied werden"-Kasten
   auf der about-Seite (kleinere Eckendreiecke, da die Fläche schmaler ist).
   Text wird über Flexbox vertikal zentriert. */
.service-title {
    position:        relative;
    overflow:        hidden;
    height:          100%;
    display:         flex;
    flex-direction:  column;
    justify-content: center;
    padding:         2rem;
    box-shadow:      0 6px 20px rgba(0, 0, 0, .12);
    background:
        linear-gradient(rgba(244, 236, 216, .80), rgba(244, 236, 216, .80)),
        url('/assets/images/logos/Logo_Hujambo_Habari_bg.svg') repeat center / 110px;
}
.service-title::before {
    content:      "";
    position:     absolute;
    top:          0;
    left:         0;
    border-style: solid;
    border-width: 70px 70px 0 0;   /* Eckengröße hier justierbar */
    border-color: var(--bs-secondary) transparent transparent transparent;
}
.service-title::after {
    content:      "";
    position:     absolute;
    bottom:       0;
    right:        0;
    border-style: solid;
    border-width: 0 0 70px 70px;   /* Eckengröße hier justierbar */
    border-color: transparent transparent var(--bs-primary) transparent;
}
.service-title > * {
    position: relative;
    z-index:  1;
}

/* Kartenüberschrift: gleiche Größe/Fettung wie bei den anderen Karten-Seiten. */
.fs-activity {
    font-size:     calc(1.275rem + .3vw);
    font-weight:   800;
    margin-bottom: .75rem;
}


/* ============================================================
   TEAM
   ============================================================ */

/* Gleiche Optik wie Partner-/Presse-/Video-/Vortrags-Karten: weißer
   Hintergrund, dezenter Schatten, der beim Hover zunimmt (kein Farbwechsel,
   keine farbige Unterkante mehr). */
.team-item {
    height:     100%;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    transition: box-shadow .3s;
}

.team-item:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
}


/* ============================================================
   PARTNER-KARTEN
   ============================================================ */

/* Gleiche Optik wie die Personen-Karten auf der about-Seite:
   weißer Hintergrund, dezenter Schatten, der beim Hover zunimmt
   (kein Farbwechsel mehr). */
.partner-item {
    height:        100%;
    background:    #fff;
    border-bottom: none;
    box-shadow:    0 6px 20px rgba(0, 0, 0, .12);
    transition:    box-shadow .3s;
}

.partner-item:hover {
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
}

/* Überschrift (Partnername/Link): etwas fetter, ohne Unterstreichung —
   wie die Namen auf den Personen-Karten. */
.partner-item h3 {
    font-weight: 800;
    font-size:   calc(1.275rem + .3vw) !important;   /* wie h4 bei den Personen-Karten (about); !important nötig, da Bootstraps .fs-5 im Markup selbst !important nutzt */
}

.partner-item h3 a {
    text-decoration: none;
}

/* URL-Link unten: gleiche Schriftgröße wie der Fließtext, ohne
   Unterstreichung und ohne Hover-Effekt, Grau wie bei den Personen-Karten.
   !important nötig, da Bootstraps .text-primary selbst !important nutzt. */
.partner-item > a.text-primary,
.partner-item > a.text-primary:hover {
    font-size:       1rem;
    text-decoration: none;
    color:           var(--hh-tertiary) !important;
}


/* ============================================================
   VORTRÄGE
   ============================================================ */

/* Gleiche Optik wie Personen-/Partner-Karten: weißer Hintergrund,
   dezenter Schatten, der beim Hover zunimmt (kein Farbwechsel). */
.lecture-item {
    height:        100%;
    background:    #fff;
    border-bottom: none;
    box-shadow:    0 6px 20px rgba(0, 0, 0, .12);
    transition:    box-shadow .3s;
}

.lecture-item:hover {
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
}

/* Überschrift: etwas fetter, wie bei den Personen-/Partner-Karten. */
.lecture-item h3 {
    font-weight: 800;
    font-size:   calc(1.275rem + .3vw) !important;   /* wie h4 bei den Personen-Karten (about); !important nötig, da Bootstraps .fs-5 im Markup selbst !important nutzt */
}


/* ============================================================
   PRESSE
   ============================================================ */

.press-item {
    height:        100%;
    background:    #fff;
    border-bottom: none;
    box-shadow:    0 6px 20px rgba(0, 0, 0, .12);
    transition:    box-shadow .3s;
}

.press-item:hover {
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
}

.press-item h3 {
    font-weight: 800;
    font-size:   calc(1.275rem + .3vw) !important;   /* wie h4 bei den Personen-Karten (about); !important nötig, da Bootstraps .fs-5 im Markup selbst !important nutzt */
}

.press-item a {
    text-decoration: none;
}

.press-item p {
    font-size: 1rem;   /* statt "small" (0.875em) */
}


/* ============================================================
   VIDEOS
   ============================================================ */

.video-item {
    height:        100%;
    background:    #fff;
    border-bottom: none;
    box-shadow:    0 6px 20px rgba(0, 0, 0, .12);
    transition:    box-shadow .3s;
}

.video-item:hover {
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
}

.video-item h3 {
    font-weight: 800;
    font-size:   calc(1.275rem + .3vw) !important;   /* wie h4 bei den Personen-Karten (about); !important nötig, da Bootstraps .fs-5 im Markup selbst !important nutzt */
}

.video-item p {
    font-size: 1rem;   /* statt "small" (0.875em) */
}

.img-play {
    cursor: pointer;
}

/* Bild-Zoom beim Hover: das Bild wächst frei über seinen Rahmen hinaus
   (bewusst ohne Beschneiden). Eine zentrale Regel für alle Kartentypen
   (Presse/Partner/Vorträge/Videos) — vorher stand dieselbe 1.08-Regel
   viermal einzeln im CSS. */
.hover-zoom {
    transition: transform .3s;
}

.hover-zoom:hover {
    transform: scale(1.08);
}

/* Orangener Link ohne Unterstreichung, z. B. "Kontaktieren" im Vorträge-CTA.
   Hover dunkelt wie bei den Footer-Buttons ab (#cc7a00). */
.link-cta-orange {
    color:           var(--bs-secondary);
    text-decoration: none;
    transition:      color .2s;
}

.link-cta-orange:hover {
    color: #cc7a00;
}


/* ============================================================
   TERMINE
   ============================================================ */

.event-item {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    transition: box-shadow .3s;
}

.event-item:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
}

/* Fingerzeig-Icon am Seitenende etwas größer */
.events-contact-line .icon-body-gray {
    width:  28px;
    height: 28px;
}


/* ============================================================
   HELFEN (DONATE)
   ============================================================ */

.donate-section {
    padding:    2rem;
    background:  #fff;
    box-shadow:  0 6px 20px rgba(0, 0, 0, .12);
    transition:  box-shadow .3s;
}

.donate-section:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
}

/* Runde Icon-Kachel wie auf den Aktivitäten-Seiten: grüner Grund, rotes Icon */
.btn-square-donate {
    width:            88px;
    height:           88px;
    display:          flex;
    align-items:      center;
    justify-content:  center;
    background-color: var(--bs-primary);
}

.btn-square-donate .icon-activities {
    fill: var(--hh-title-color);
}

.donate-heading {
    font-size:     calc(1.275rem + .3vw);
    font-weight:   800;
    margin-bottom: 1rem;
}

.donate-list {
    padding-left: 1.2rem;
}

.donate-list li {
    margin-bottom: .5rem;
}

/* Spendenkonto: hervorgehobener Kasten mit Creme-Relief + Ecken-Deko
   (wie "Mitglied werden" / "Wie wir helfen"). */
.donate-account-box {
    position:   relative;
    overflow:   hidden;
    padding:    6rem 2.5rem;   /* oben/unten 6rem = mind. so groß wie die Eckendreiecke (90px),
                                   damit sich Text und Deko nicht überschneiden */
    font-size:  1.1rem;        /* etwas größer als Fließtext-Standard */
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    background:
        linear-gradient(rgba(244, 236, 216, .80), rgba(244, 236, 216, .80)),
        url('/assets/images/logos/Logo_Hujambo_Habari_bg.svg') repeat center / 110px;
}
.donate-account-box::before {
    content:      "";
    position:     absolute;
    top:          0;
    left:         0;
    border-style: solid;
    border-width: 90px 90px 0 0;
    border-color: var(--bs-secondary) transparent transparent transparent;
}
.donate-account-box::after {
    content:      "";
    position:     absolute;
    bottom:       0;
    right:        0;
    border-style: solid;
    border-width: 0 0 90px 90px;
    border-color: transparent transparent var(--bs-primary) transparent;
}
.donate-account-box > * {
    position: relative;
    z-index:  1;
}

.donate-account td {
    padding:        .2rem .5rem .2rem 0;
    vertical-align: top;
}


/* ============================================================
   KONTAKT
   ============================================================ */

/* Gleiche Karten-Optik wie auf den anderen Seiten: weiß + dezenter Schatten.
   Beide Spalten (Daten/Karte) sind durch row+h-100 gleich hoch. */
.contact-card {
    padding:    2rem;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    transition: box-shadow .3s;
}

.contact-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
}

.contact-list {
    list-style: none;
    padding:    0;
}

.contact-list li {
    display:       flex;
    align-items:   flex-start;
    margin-bottom: 1.5rem;
}

.contact-list li svg {
    margin-top:  3px;
    flex-shrink: 0;
}

/* Icons in der Kontakt-Karte etwas größer als der Standard */
.contact-card .icon-body-gray {
    width:  26px;
    height: 26px;
}

/* Da diese Icons größer sind als der Standard, muss der Versatz zur ersten
   Textzeile angepasst werden (sonst hängen sie zu tief) */
.contact-card .contact-list li svg {
    margin-top: 0;
}

/* Uhr- und Telefon-Icon sitzen im Icon-Set selbst weiter oben in ihrer
   Zeichenfläche als die anderen Icons (envelope/house/flyer) — deshalb hier
   zusätzlicher Korrekturwert, nur für diese beiden. */
.contact-card .contact-list li:nth-child(1) svg,
.contact-card .contact-list li:nth-child(2) svg {
    margin-top: 0;
}

/* E-Mail-Link auf der Kontakt-Karte fett wie Tel./Flyer;
   im Footer bleibt derselbe Link bewusst normal (nicht fett). */
.contact-card .mail-obfuscate {
    font-weight: 700;
}

.contact-map {
    display:    block;
    width:      100%;
    height:     100%;
    min-height: 400px;   /* Fallback, falls die Textkarte auf Mobile schmaler/kürzer ist */
    border:     0;
}


/* ============================================================
   IMPRESSUM & DATENSCHUTZ
   ============================================================ */

.legal-content {
    max-width:  800px;
    margin:     0 auto;
    padding:    2.5rem;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    transition: box-shadow .3s;
}

.legal-content:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
}

.legal-content h2 {
    margin-bottom: 1.5rem;
}

.legal-content h3 {
    margin-top:     2rem;
    margin-bottom:  1rem;
    border-bottom:  2px solid var(--hh-tertiary);   /* grau statt grün */
    padding-bottom: .5rem;
}

.legal-content a {
    color:           var(--bs-secondary);
    text-decoration: none;
    transition:      color .2s;
}

.legal-content a:hover {
    color: #cc7a00;
}

.legal-content h4 {
    margin-top:  1.5rem;
    font-weight: 600;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1rem;
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    position:            relative;
    background-image:    url('/assets/images/logos/Logo_Hujambo_Habari_bg.svg');
    background-repeat:   repeat;
    background-size:     100px;
    background-position: center top;
    overflow:            hidden;
    color:               var(--hh-tertiary);
}

.footer h4 {
    font-weight: 700;
}

.text-tertiary {
    color: var(--hh-tertiary) !important;
}

/* Footer Social-Buttons */
.btn-square-footer {
    width:           42px;
    height:          42px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         2px;
    background:      var(--bs-secondary);
    border-color:    var(--bs-secondary);
    border-radius:   6px;
    color:           var(--bs-dark);
    transition:      background .2s, border-color .2s;
}

.btn-square-footer:hover {
    background:   #cc7a00;
    border-color: #cc7a00;
    color:        var(--bs-dark);
}

/* Trennlinie Copyright – unsichtbar */
.footer-divider {
    border-color: transparent;
    opacity:      1;
}

/* Dunkles Overlay – Stärke hier einstellen */
.footer::before {
    content:    "";
    position:   absolute;
    inset:      0;
    background: rgba(0, 0, 0, 0.88);
    z-index:    0;
}

/* Footer-Inhalt über dem Overlay */
.footer > * {
    position: relative;
    z-index:  1;
}

@media (min-width: 768px) {
    .footer {
        background-size: 200px;
    }
}

.footer .btn-link {
    color:           var(--hh-tertiary);
    text-decoration: none;
    text-align:      left;
    padding:         .2rem 0;
    transition:      color .3s, letter-spacing .3s;
}

.footer .btn-link:hover {
    color:          #fff;
    letter-spacing: 1px;
}

.footer .btn-link::before {
    content:         "";
    display:         inline-block;
    width:           1.15em;
    height:          1.15em;
    margin-right:    6px;
    vertical-align:  -0.18em;
    background-color: var(--hh-tertiary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
    transition:      background-color .3s;
}

.footer .btn-link:hover::before {
    background-color: #fff;
}

.footer small {
    font-size: 1.0em;
}

.link-gray-hover {
    color:           var(--hh-tertiary);
    text-decoration: none;
    transition:      color .3s;
}

.link-gray-hover:hover {
    color: #fff;
}

.link-gray-hover--spread {
    letter-spacing: 0;
    transition:     color .3s, letter-spacing .3s;
}

.link-gray-hover--spread:hover {
    letter-spacing: 1px;
}


/* ============================================================
   E-MAIL VERSCHLEIERUNG
   ============================================================ */

/* Die echte Adresse steht ausschließlich hier in der CSS-Datei, nicht im
   HTML. \40 ist die CSS-Escape-Schreibweise für "@" (versteckt das Zeichen
   zusätzlich vor simplen Regex-Suchen nach "@" in der CSS-Datei). Aufgeteilt
   auf zwei content-Werte, damit auch keine zusammenhängende Adresse in einer
   einzelnen CSS-Zeile steht. */
.displayMail::before {
    content: "info\40huja";
}
.displayMail::after {
    content: "mbo-habari.org";
}

/* Fake-Adresse im HTML (Köder für einfache Text-Scraper) unsichtbar machen */
.mail-decoy {
    display: none;
}


/* ============================================================
   BACK TO TOP
   ============================================================ */

.back-to-top {
    position:         fixed;
    bottom:           30px;
    right:            30px;
    width:            42px;
    height:           42px;
    display:          flex;
    align-items:      center;
    justify-content:  center;
    padding:          4px;
    background:       var(--bs-secondary);
    border:           1px solid var(--bs-secondary);
    border-radius:    6px;
    color:            var(--bs-dark);
    opacity:          0;
    visibility:       hidden;
    transition:       opacity .3s, visibility .3s, background .2s, border-color .2s;
    z-index:          999;
}

.back-to-top:hover {
    background:   #cc7a00;
    border-color: #cc7a00;
    color:        var(--bs-dark);
}

.back-to-top.show {
    opacity:    1;
    visibility: visible;
}

.icon-back-to-top {
    width:  22px;
    height: 22px;
    fill:   var(--bs-dark);
}


/* ============================================================
   ABOUT-SEITE (Über uns)
   ============================================================ */

/* (1) Seitenkopf: Creme-Schleier über dem Relief-Logo – Schleier etwas
   transparenter, damit das Relief deutlicher durchkommt. */
.page-header {
    position:   relative;
    background:
        linear-gradient(rgba(244, 236, 216, .80), rgba(244, 236, 216, .80)),
        url('/assets/images/logos/Logo_Hujambo_Habari_bg.svg') repeat center top / 110px;
    color:      var(--hh-body);
}

/* (2) Play-Button: schwarz, quadratisch mit abgerundeten Ecken (wie andere Buttons) */
.btn-play {
    background:    #000;
    border-radius: 6px;
}
.btn-play::after {
    border-color:  #000;
    border-radius: 6px;
}
.btn-play span {
    border-color: transparent transparent transparent #fff;
}

/* (3)+(4) Abschnitts-Label rot, mit DOPPEL-Strichen als Design-Element.
   Linksbündig ("Über uns"): rechts. Zentriert ("Wir sind"): beidseitig. */
.section-title {
    color:       var(--hh-title-color) !important;
    font-weight: 700;   /* etwas dünner */
}
/* Alle About-Label bekommen rechts einen Doppelstrich; die zentrierte Variante
   ("Wir sind", im .text-center-Wrapper) zusätzlich links.
   Gleiches gilt für "PARTNER", "VORTRÄGE", "PRESSE", "VIDEOS". */
.page-about .section-title,
.page-partner .section-title,
.page-lectures .section-title,
.page-press .section-title,
.page-videos .section-title,
.page-donate .section-title,
.page-contact .section-title,
.page-events .section-title {
    display: inline-block;
}
/* Doppelstrich: unterer Strich voll lang, oberer ~2/3 (nach außen kürzer),
   Linien weit auseinander, sodass sie ober- und unterhalb der Buchstaben liegen.
   Umsetzung über zwei Hintergrund-Linien (unterschiedliche Breite möglich). */
.page-about .section-title::after,
.page-about .text-center .section-title::before,
.page-partner .section-title::after,
.page-partner .text-center .section-title::before,
.page-lectures .section-title::after,
.page-lectures .text-center .section-title::before,
.page-press .section-title::after,
.page-press .text-center .section-title::before,
.page-videos .section-title::after,
.page-videos .text-center .section-title::before,
.page-donate .section-title::after,
.page-donate .text-center .section-title::before,
.page-contact .section-title::after,
.page-contact .text-center .section-title::before,
.page-events .section-title::after,
.page-events .text-center .section-title::before {
    content:        "";
    display:        inline-block;
    width:          64px;   /* = Länge des UNTEREN Strichs */
    height:         13px;   /* Abstand der beiden Linien */
}
/* Rechter Doppelstrich: innen (textnah) bündig links, unten ragt nach außen
   (rechts) heraus. */
.page-about .section-title::after,
.page-partner .section-title::after,
.page-lectures .section-title::after,
.page-press .section-title::after,
.page-videos .section-title::after,
.page-donate .section-title::after,
.page-contact .section-title::after,
.page-events .section-title::after {
    margin-left: 12px;
    background:
        linear-gradient(var(--hh-title-color), var(--hh-title-color)) left top    / 43px 2px no-repeat,
        linear-gradient(var(--hh-title-color), var(--hh-title-color)) left bottom / 64px 2px no-repeat;
}
/* Linker Doppelstrich (zentrierte Labels): innen bündig rechts, unten ragt
   nach außen (links) heraus. */
.page-about .text-center .section-title::before,
.page-partner .text-center .section-title::before,
.page-lectures .text-center .section-title::before,
.page-press .text-center .section-title::before,
.page-videos .text-center .section-title::before,
.page-donate .text-center .section-title::before,
.page-contact .text-center .section-title::before,
.page-events .text-center .section-title::before {
    margin-right: 12px;
    background:
        linear-gradient(var(--hh-title-color), var(--hh-title-color)) right top    / 43px 2px no-repeat,
        linear-gradient(var(--hh-title-color), var(--hh-title-color)) right bottom / 64px 2px no-repeat;
}

/* (5)+(9) Überschriften nach dem Label sowie Banner-Überschrift fetter —
   h2 mit dazu, damit "Unsere Partner und Unterstützer" (h2) genauso fett
   wird wie "Lernen Sie uns kennen" (h3). */
.section-title + h2,
.section-title + h3 {
    font-weight: 700;
}
.bg-light.p-5.text-center h2 {
    font-weight: 800;
}

/* (6) Team-Karten: kein Hover-Farbwechsel, dafür Schatten; (7) kein grüner
   Streifen unten; gleiche Höhe. */
.team-item {
    height:        100%;
    border-bottom: none;
    box-shadow:    0 6px 20px rgba(0, 0, 0, .12);
    transition:    box-shadow .3s;
}
.team-item:hover {
    background: #fff;
    color:      inherit;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
}

/* (4) Namen fetter (im Markup sind die Namen <h4>) */
.team-item h4 {
    font-weight: 800;
}

/* (6) Funktion + Link: etwas größer und mit weiterer Laufweite;
   (5)+(8) Funktion und Link in Grau. */
.team-item span,
.team-item a {
    font-size:      .95rem;
    letter-spacing: .6px;
    color:          #6c757d !important;
}

/* (5)+(9) Links grau, ohne Unterstreichung, ohne Hover-Effekt */
.team-item a,
.team-item a:hover,
.team-item:hover a {
    color:           #6c757d !important;
    text-decoration: none;
}

/* (8)+(11) "Mitglied werden": gleiches Creme-Relief wie der Kopf (mit
   !important, falls ein Inline-Hintergrund gesetzt ist) + Ecken
   (orange oben links, gelbgrün unten rechts). */
.bg-light.p-5.text-center {
    position:   relative;
    overflow:   hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    background:
        linear-gradient(rgba(244, 236, 216, .80), rgba(244, 236, 216, .80)),
        url('/assets/images/logos/Logo_Hujambo_Habari_bg.svg') repeat center / 110px !important;
}
.bg-light.p-5.text-center::before {
    content:      "";
    position:     absolute;
    top:          0;
    left:         0;
    border-style: solid;
    border-width: 150px 150px 0 0;
    border-color: var(--bs-secondary) transparent transparent transparent;
}
.bg-light.p-5.text-center::after {
    content:      "";
    position:     absolute;
    bottom:       0;
    right:        0;
    border-style: solid;
    border-width: 0 0 150px 150px;
    border-color: transparent transparent var(--bs-primary) transparent;
}

/* (10) Kontakt-Button in unserer definierten Orange-Farbe */
.bg-light.p-5.text-center .btn {
    background:   var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color:        var(--bs-dark) !important;
}
.bg-light.p-5.text-center .btn:hover {
    background:   #cc7a00 !important;
    border-color: #cc7a00 !important;
    color:        var(--bs-dark) !important;
}


/* (Feinschliff) Hero-Überschrift ("Über uns" u. a.) etwas fetter – gilt für
   alle Seiten mit diesem Kopf-Element. */
.page-header h1 {
    font-weight: 700;
}

/* (Feinschliff) Funktions-Zeile auf den Team-Tafeln mit etwas mehr Laufweite. */
.team-item .text-muted {
    letter-spacing: 1px;
}


/* ============================================================
   SCROLL-REVEAL — Ersatz für WOW.js/animate.css aus dem alten Projekt.
   Sanftes Einblenden von Elementen beim Scrollen ins Sichtfeld.
   Siehe site.js für die IntersectionObserver-Logik.
   ============================================================ */

/* Nur aktiv, wenn der Nutzer keine reduzierte Bewegung eingestellt hat
   (Barrierefreiheit / prefers-reduced-motion). Sonst sind Elemente immer
   normal sichtbar, ganz ohne Animation. */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity:    0;
        transition: opacity .9s ease-out;
        will-change: opacity;
    }

    .reveal.is-visible {
        opacity: 1;
    }
}


/* ============================================================
   LADEBILDSCHIRM — sanftes Ausblenden nach dem Laden, erzeugt den Eindruck
   "die ganze Seite blendet ein" (wie im alten Projekt). Ausblenden über
   site.js, sobald die Seite fertig geladen ist.
   ============================================================ */

.page-loader {
    position:        fixed;
    inset:            0;
    z-index:          2000;
    display:          flex;
    align-items:      center;
    justify-content:  center;
    background:       #fff;
    opacity:          1;
    transition:       opacity .5s ease;
    /* SICHERHEITSNETZ (reines CSS, braucht kein JavaScript): Sollte das
       Ausblenden per site.js aus irgendeinem Grund nie stattfinden
       (JS-Fehler, blockiertes Skript, alter Browser), blendet diese
       Animation den Spinner nach spätestens 7 s selbst aus — niemand
       bleibt mehr vor einer ewigen "Eieruhr" hängen. Im Normalfall hat
       das JS den Loader längst vorher entfernt. */
    animation:        page-loader-failsafe .6s ease 7s forwards;
}

@keyframes page-loader-failsafe {
    to {
        opacity:        0;
        visibility:     hidden;
        pointer-events: none;
    }
}

.page-loader.is-hidden {
    opacity:        0;
    pointer-events:  none;
}

.page-loader-spinner {
    width:        48px;
    height:       48px;
    border:       4px solid var(--bs-light);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    animation:    page-loader-spin .8s linear infinite;
}

@keyframes page-loader-spin {
    to { transform: rotate(360deg); }
}

/* Bei "reduzierte Bewegung" keine Dreh-Animation, Ausblenden bleibt aber
   (nur die Opacity-Transition, kein rotierender Spinner). */
@media (prefers-reduced-motion: reduce) {
    .page-loader-spinner {
        animation: none;
    }
}


/* ============================================================
   REDUZIERTE BEWEGUNG (prefers-reduced-motion) — ZENTRAL
   Nutzer, die im Betriebssystem "Bewegung reduzieren" aktiviert
   haben (z. B. wegen Gleichgewichtsstörungen oder Reizempfindlichkeit),
   bekommen die Seite ohne Animationen. Die Regeln oben behandeln
   das bereits punktuell (.reveal, .page-loader-spinner) — dieser
   Block fängt zentral alles Übrige ab: Karussell-Rotation,
   Hintergrund-Blenden, Play-Button-Puls, Hover-Zoom, Sticky-Navbar-
   Animation und Bootstrap-Übergänge.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    /* Alle Animationen/Übergänge auf quasi-sofort verkürzen statt sie
       hart zu entfernen: so feuern animationend/transitionend-Events
       weiterhin, auf die site.js angewiesen ist (Sticky-Navbar,
       Page-Loader). Endzustände bleiben dadurch ebenfalls korrekt. */
    *,
    *::before,
    *::after {
        animation-duration:        0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration:       0.01ms !important;
        /* Auch VERZÖGERUNGEN nullen: die Footer-Spalten nutzen inline
           transition-delay (0.12s/0.24s) für den Staffel-Effekt — ohne
           diese Zeile erschienen sie bei reduzierter Bewegung nacheinander
           statt sofort. */
        transition-delay:          0s !important;
        animation-delay:           0s !important;
    }

    /* Kein Smooth-Scrolling (falls es künftig per CSS aktiviert wird;
       den Back-to-Top-Button behandelt site.js gesondert). */
    html {
        scroll-behavior: auto !important;
    }

    /* Hover-Zoom ganz deaktivieren — ein "instantaner" Zoom wäre eher
       ein irritierendes Springen als eine Verbesserung. */
    .hover-zoom:hover {
        transform: none;
    }

    /* Puls-Ring des Play-Buttons stillegen: der Ring bleibt als
       statische dezente Umrandung stehen. */
    .btn-play::after {
        animation: none;
    }
}


/* ============================================================
   TASTATUR-FOKUS (:focus-visible)
   Wer mit Tab durch die Seite navigiert, muss sehen, welches
   Element gerade den Fokus hat. :focus-visible greift nur bei
   Tastaturbedienung — Mausklicks erzeugen KEINEN Rahmen, die
   Optik für Maus-Nutzer bleibt also unverändert.
   Der Rahmen ist zweifarbig (heller Ring + dunkler Ring), damit
   er auf hellen UND dunklen Flächen (Footer, Hero, Navbar,
   orangene Buttons) gleichermaßen sichtbar ist.
   ============================================================ */

:focus-visible {
    outline:        2px solid #fff;
    outline-offset: 1px;
    box-shadow:     0 0 0 4px rgba(5, 19, 17, .85);
    border-radius:  2px;   /* verhindert harte Ecken-Artefakte bei runden Elementen */
}

/* Runde Elemente (Play-Button, Karussell-Indikatoren): Ring folgt der Form */
.btn-play:focus-visible,
.hero-carousel .carousel-indicators [data-bs-target]:focus-visible {
    border-radius: 50%;
}
