/*
Theme Name: mfbase
Description: KickIN production theme
Version: 1.0
*/

.card {
            background: white !important;
            z-index: 2;
            position: relative;
        }

        /* Mission section styling */
        #mission {
            background: rgba(255, 255, 255, 0.98);
        }

.logo{
    width: 150px;
    margin: 0 auto;
    display: block;
}
.redi{
    color: #E62414;
}

.head{
    background-image: url(./images/bg.jpg);
    background-size: cover;
    background-blend-mode: multiply;
    background-position: center;
    min-height: 700px;
}

.text-align-right{
    text-align: right;
}

.ffi1{
    margin-top: 120px;
}

.fft{
    margin-top: 50px;
}
.grayscale {
    filter: grayscale(100%) invert(100%);
    transition: filter 0.3s ease;
        background: #fff;
}
.partner-section  .grayscale {
        filter: grayscale(100%);
        transition: filter 0.3s ease;
   
}
#news h5{
    font-size: 1.1em 
}

#news p{
    font-size: 0.8em
}

.grayscale:hover {
    filter: grayscale(0%);
}
#partners .col-1{
    border-bottom: 1px solid #ccc;
    border-right: 1px solid #ccc;
    padding-bottom: 20px;
}
.nobor{
    border-right: 0px solid #ccc !important;	
}

body{
    background-color: #e9ecf1 !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    /* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
}

body::before {

    z-index: -1;
      font-family: "Noto Sans", sans-serif;

    font-size: 1.2em !important
}
.deviderred {
    position: relative;
    background-image: url(./images/pinselred.svg);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 40px;
    z-index:1
  }

.devidervio {
    position: relative;
    background-image: url(./images/pinseldgrau.svg);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 40px;
  }

.devidergruen {
    position: relative;
    background-image: url(./images/pinseldgrau.svg);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 40px;
  }
  .deviderwhite {
    position: relative;
    background-image: url(./images/pinselhgrau.svg);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 40px;
  }    
.deviderweiss {
    position: relative;
    background-image: url(./images/pinselweiss.svg);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 40px;
  }






#testimonials {
  padding: 180px 0 80px 0 !important;
    -webkit-mask: url('./images/tester3.png') no-repeat top;
    mask: url('./images/tester3.png') no-repeat top;
    -webkit-mask-size: cover;
    mask-size: cover;
    background:rgba(252, 248, 235, 0.6);

}

#socialmedia a {
    color: #000;
}
#socialmedia i {
    font-size: 4rem !important;
}


h1, h2, h3, h4, h5, h6{
  font-family: "Noto Sans", sans-serif;

    font-weight: 700;
    text-transform: none !important;
}

#auszeichnungen{
    background: #fff;
    margin-top: -270px !important;
    margin-bottom: -20px;
    padding-top: 0 !important;
}

/* Dropdown Menu Styling - passend zum Hauptmenü */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-radius: 0px;
    padding: 0.5rem 0;
    margin-top: 0;
    background-color: #fff;
    min-width: 250px;
    border-top: 3px solid #E62414; /* Roter Akzent wie im Design */
}

.dropdown-item {
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    color: #333;
    font-weight: bold;
    font-size: 1.2em; /* Angepasst an die 1.4em des Hauptmenüs */
  font-family: "Noto Sans", sans-serif;
    text-transform: none;
    white-space: nowrap;
    position: relative;
}

#projekte h2, #auszeichnungen h2{
    font-size: 1.3em
}
footer h2{
    font-size: 1.5em
}
footer p{
    font-size: 0.8em;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #E62414; /* Rote Hintergrundfarbe wie im Design */
    color: #fff;
    transform: translateX(8px);
    padding-left: 2rem; /* Mehr Einrückung beim Hover */
}

.dropdown-item:active {
    background-color: #d21e0e;
    color: #fff;
}

/* Dropdown Pfeil anpassen */
.dropdown-toggle::after {
    margin-left: 0.5rem;
    border-top: 0.4em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
    transition: transform 0.3s ease;
}

/* Pfeil rotieren wenn Dropdown offen ist */
.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown Trennlinie zwischen Items */
.dropdown-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

/* Hover-Effekt für Dropdown-Items mit kleinem Pfeil */
.dropdown-item:hover::before {
    content: '▶';
    position: absolute;
    left: 0.8rem;
    color: #fff;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

/* Desktop Dropdown Hover Effect */
@media (min-width: 992px) {
    /* Entferne das CSS-basierte Hover, da wir JavaScript verwenden */
    .navbar-nav .dropdown .dropdown-menu {
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .navbar-nav .dropdown .dropdown-menu:not(.show) {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }
    
    .navbar-nav .dropdown .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Fokus-Rahmen nur bei Maus/Touch entfernen, damit das Design beim Klicken unverändert bleibt */
.dropdown-toggle:focus:not(:focus-visible),
.nav-link:focus:not(:focus-visible),
.btn:focus:not(:focus-visible),
.navbar-toggler:focus:not(:focus-visible),
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Sichtbarer Tastatur-Fokus (WCAG 2.4.7): schwarzer Rahmen mit weißem Innenrand,
   damit er auf Rot, Weiß und dem dunklen Footer erkennbar ist */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.dropdown-toggle:focus-visible,
.dropdown-item:focus-visible,
.navbar-toggler:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #000 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 2px #fff !important;
}

/* Mobile Menu Close Button - nur auf Mobile sichtbar */
.mobile-menu-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #000;
    cursor: pointer;
    z-index: 10000;
}

@media (max-width: 991.98px) {
    .mobile-menu-close {
        display: block;
    }
}

.devidergelb {
    position: relative;
    background-image: url(./images/pinselgelb.svg);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 40px;
  }

  #footer{
    background: rgb(25,129,32);

  }

  .section-title {
    font-size: 3.4rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Post-it Note Cards */
.card {

    border: 0px solid #f5e16f;
    border-radius: 0px;
    transform: rotate(-2deg); /* Slight tilt */
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3); /* Drop shadow */
    position: relative; /* For pseudo-elements positioning */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: rotate(0); /* Straighten on hover */
    box-shadow: 15px 15px 25px rgba(0, 0, 0, 0.4);
}

/* Pin Element */
.card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Pin shadow */
}

/* Pin Shadow */
.card::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 20px;
    z-index: 9;
}

/* Card Image */
.card-img-top {
    border-bottom: 1px solid #f5e16f;
    border-radius: 8px 8px 0 0;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}

/* Card Title */
.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Card Text */
.card-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/* Read More Button */
.btn-outline-primary {
    border-color: #333;
    color: #333;
}

.btn-outline-primary:hover {
    background-color: #333;
    color: #fff;
}

/* Responsiveness */
@media (max-width: 768px) {
    .card {
        transform: rotate(0); /* Remove tilt for smaller screens */
    }
}



.carousel-item {
    background: rgba(255, 255, 255, 0.95); /* White background with 90% opacity */
    border-radius: 0px; /* Rounded corners */
    padding: 100px 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Subtle shadow */
}

.carousel-item .row {
    align-items: center; /* Centers content vertically */
}

.carousel-item img {
    width: 100px; /* Adjusted size for the image */
    height: 100px;
    border-radius: 50%; /* Makes the image circular */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Shadow for the image */
}

.carousel-item h5 {
    margin: 10px 0 5px;
    font-weight: bold;
}

.carousel-item h6 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.carousel-item p {
    margin: 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #333; /* Darker controls */
    border-radius: 50%;
}

.carousel-control-prev,
.carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .carousel-item .row {
        flex-direction: column; /* Stack items vertically on smaller screens */
    }

    .carousel-item img {
        margin-bottom: 15px;
    }
}

#projekte img{
    margin-bottom: 20px;
    height: 200px;
    width: auto !important;

}

#projekte .col-md-3{
    text-align: center;
}

.yel{
    background: url(./images/pinselgelb.svg) no-repeat center;
    height: 15px;
    background-size: contain;
}

.redd{
    background: url(./images/pinselred.svg) no-repeat center;
    height: 15px;
    background-size: contain;
}

.vio{
    background: url(./images/pinselvio.svg) no-repeat center;
    height: 15px;
    background-size: contain;
}

.green{
    background: url(./images/pinselgruen.svg) no-repeat center;
    height: 15px;
    background-size: contain;
}

.blue{
    background: url(./images/pinselblue.svg) no-repeat center;
    height: 15px;
    background-size: contain;
}

#partners img{
   border: 0 !important

}
#partners .row, #partners .col-1{
    margin-bottom: 0 !important;
    padding-top: 10px;
    margin-top: -5px !important;
}

.navbar-nav{
    font-weight: bold;
    font-size: 1.4em;
    width: 100%;
    justify-content: flex-end;
}

/* Prevents menu items from breaking into multiple lines */
.navbar-nav .nav-item {
    white-space: nowrap; 
}

/* Adjust spacing between the two lines */
.navbar .row {
    margin-bottom: 0; /* Reduces unnecessary space */
    padding-bottom: 0;
}

/* Makes sure the navbar stays compact */
.navbar {
    padding-top: 0;
    padding-bottom: 0;
}

/* Initial state for flying in */
.fly-in-left {
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.fly-in-right {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* Active state when in view */
.fly-in-left.active,
.fly-in-right.active {
    transform: translateX(0);
    opacity: 1;
}

#news .btn{
    all: unset; /* Remove all default styles */
    display: inline-block; /* For proper block-level behavior */
    width: 140px; /* Set desired width */
    height: 35px; /* Set desired height */
    background-image: url('./images/pinsel_kurz.png'); /* Replace with your SVG path */
    background-size: contain; /* Stretch the SVG to fit button dimensions */
    background-repeat: no-repeat; /* Prevent tiling */
    background-position: center; /* Center the SVG */
    cursor: pointer; /* Add pointer cursor for button behavior */
text-align: center; 
    line-height: 30px;
    font-family: "Roboto Slab", serif;
    font-weight: 700;
    color: #fff; /* Yellow text color */

}

#news .btn:hover {
    background-image: none; /* Change to hover SVG */
    color: #000
}

.section-subtitle{
    font-weight: 700;
}

#mission, #auszeichnungen {
    margin-top: 20px;
    color: #000 !important;
    padding: 40px 0 0px 0 !important;
    -webkit-mask: url('./images/paper_edge_alpha.png') no-repeat top;
    mask: url('./images/paper_edge_alpha.png') no-repeat top;
    -webkit-mask-size: cover;
    mask-size: cover;
}
.shadow-sm{
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;

}
.ffi1{
    margin-top: 120px !important
}

.testi{
    margin-top: 30px !important
}

#zahlen{
    margin-top: -270px;
    color: #000 !important;
    font-size: 1.3em;
    padding: 140px 0 80px 0 !important;
       -webkit-mask: url('./images/paper_edge_alpha_1.png') no-repeat top;
    mask: url('./images/paper_edge_alpha_1.png') no-repeat top;
    -webkit-mask-size: cover;
    mask-size: cover;
    background:rgba(255, 255, 255, 0.9)
}
#partner-section{
    color: #000 !important;
    font-size: 1.3em;
    padding: 140px 0 80px 0 !important;
    -webkit-mask: url('./images/paper_edge_alpha.png') no-repeat top;
    mask: url('./images/paper_edge_alpha.png') no-repeat top;
    -webkit-mask-size: cover;
    mask-size: cover;
    background:rgba(255, 255, 255, 0.9);
        margin-top: 80px;
}

main{
    margin-top: 120px;
}

body .trenneru{
    mask-image: url('./images/paper_edge_alpha_bottom.png');
  mask-repeat: no-repeat;
  mask-position: bottom;
  mask-size: 100% auto;

  -webkit-mask-image: url('./images/paper_edge_alpha_bottom.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: bottom;
  -webkit-mask-size: 100% auto;
  padding-bottom: 300px !important;
  background: transparent !important
}

#partner-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: black;
    -webkit-mask: url('./images/paper_edge_alpha.png') no-repeat top;
    mask: url('./images/paper_edge_alpha.png') no-repeat top;  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-repeat: no-repeat;
  mask-size: cover;
  filter: blur(5px);
  opacity: 0.3;
  transform: translate(4px, 4px);
  z-index: -1;
}

#socialmedi i {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

#projekte h1{
  position: relative;
  display: inline-block;           /* passt sich der Textbreite an */
  padding: .10em .55em;            /* Innenabstand fürs Schriftbild */
  line-height: 1;
}

/* Pinsel-Hintergrund mit echten ausgefransten Kanten */
#projekte h1::before{
  content:"";
  position:absolute;
  z-index:-1;
  /* Überstände nach außen, damit die Fransen oben/unten nicht abgeschnitten werden */
  left:  -.6em;
  right: -.6em;
  top:   -.25em;
  bottom:-.25em;

  background:#e53c15;             /* deine Rotfläche */
  /* DIE Maske: PNG formt die Fläche (zeigt nur die „bemalten“ Pixel) */
  -webkit-mask: url('./images/marker2.png') center / 100% 100% no-repeat;
          mask: url('./images/marker2.png') center / 100% 100% no-repeat;

  /* Optional: leichte Tiefe */
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.25));
  pointer-events:none;
}

  .page-title {
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;

}

/* kompakter Marker mit echten „Pinsel“-Kanten */
h1.marker{
  position: relative;
  display: inline-block;
  color: #fff;
  z-index: 0;
  /* etwas schlanker als vorher */
  padding: .15em .6em;  /* oben/unten weniger, seitlich leicht */
  line-height: 1.1;
}

h1.marker::before{
  content:"";
  position:absolute;
  z-index:-1;

  /* Überstände, damit die ausgefransten Kanten NICHT abgeschnitten werden */
  left:  -.55em;
  right: -.55em;
  top:   -.12em;
  bottom:-.12em;

  background:#e53c15; /* Marker-Farbe */
  /* Bild dient als Maske → unebene Kanten bleiben erhalten */
  -webkit-mask: url('./images/marker2.png') center / 100% 100% no-repeat;
          mask: url('./images/marker2.png') center / 100% 100% no-repeat;

  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
  pointer-events:none;
}

/* Fallback für sehr alte Browser ohne mask() */
@supports not ((-webkit-mask: url('x')) or (mask: url('x'))){
  h1.marker::before{
    background: url('./images/marker2.png') center / 100% 100% no-repeat;
  }
}



.pagehead{
     mask-image: url('./images/paper_edge_alpha.png');
  mask-repeat: no-repeat;
  mask-position: top;
  mask-size: 100% auto;

  -webkit-mask-image: url('./images/paper_edge_alpha.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: top;
  -webkit-mask-size: 100% auto;
  padding-bottom: 40px !important;
}



#projekte{
    text-align: center;
    padding-top: 80px;
    color: #fff !important;
    mask-image: url('./images/paper_edge_alpha_bottom.png');
  mask-repeat: no-repeat;
  mask-position: bottom;
  mask-size: 100% auto;

  -webkit-mask-image: url('./images/paper_edge_alpha_bottom.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: bottom;
  -webkit-mask-size: 100% auto;
  padding-bottom: 300px !important;
}

#footera {
    mask-image: url('./images/paper_edge_alpha.png');
  mask-repeat: no-repeat;
  mask-position: top;
  mask-size: 100% auto;
min-height: 100px;
background-color: #212529;
  -webkit-mask-image: url('./images/paper_edge_alpha.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: top;
  -webkit-mask-size: 100% auto;
  padding-bottom: 100px !important;
  margin-top: 0
 


}

.zahlenu{
    mask-image: url('./images/paper_edge_alpha_bottom.png');
  mask-repeat: no-repeat;
  mask-position: bottom;
  mask-size: 100% auto;
min-height: 100px;
  -webkit-mask-image: url('./images/paper_edge_alpha_bottom.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: bottom;
  -webkit-mask-size: 100% auto;
  padding-bottom: 30px !important;
  background: #fff;
 

}

#mission .container {
    position: relative;
    z-index: 1; /* Ensure content is above the mask */
    margin-top: 50px;
}
.project-title {
    min-height: 100px;
    align-items: center;
}
.project {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.project {
    text-align: center;
}
.project img {
    margin: 0 auto;
    display: block;
}
  
footer {
    
    background-color: #343a40;
}

footer .container{
    margin-top: 50px;
}
footer h5 {
    font-weight: bold;
}
footer a {
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999; /* Ensure it stays on top of all other content */
    transition: all 0.3s ease-in-out;
    background-color: transparent;
}

.head {
    position: relative; /* Ensure other content behaves normally */
    z-index: 1; /* Keep it behind the navbar */
}

.navbar {
    transition: background-color 0.3s ease; /* Smooth transition for background change */
}

.navbar.sticky {
    background-color: white !important; /* Change background to white when sticky */
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3); /* x-offset, y-offset, blur, Farbe */

}

#auszeichnungen2{
   background: #fff
}

#auszeichnungen .container{
    
    padding-bottom: 0px !important;
}

#auszeichnungen2 .container{
    
    padding-top: 0px !important;
}

.project-text {
    width: 70%;
}

#projekte h3{
    text-align: left;
    font-size: 2.5em;
}


.partner-slider {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.slider-track {
    display: flex;
    gap: 30px;
    animation: scroll-left 15s linear infinite;
}

.partner-logo {
    width: 150px;
    height: auto;
}

/* Zweite Reihe läuft in die andere Richtung */
.reverse .slider-track {
    animation: scroll-right 15s linear infinite;
}

/* Dritte Reihe startet später */
.delay .slider-track {
    animation: scroll-left 15s linear infinite;
    animation-delay: 2s;
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes scroll-right {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.slogan{
    font-size: 3.6em;
    margin-top: 10%;
    font-weight: 900;
 
}

.slogan  span{
    background: #fff;
    padding: 0 5px
}

.card-with-tape {
    position: relative;
    margin-top: 20px; /* Adjust as needed */
}

.card-with-tape::before {
    content: '';
    position: absolute;
    top: -15px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    width: 200px; /* Adjust as needed */
    height: 30px; /* Adjust as needed */
    background: url('./images/tape.png') no-repeat center center;
    background-size: cover;
    z-index: 1;
}

#projekte .pro{
    padding-top: 60px;
    padding-bottom: 60px;
    background: url(./images/fleck.png) no-repeat;
background-size: contain;   
background-position: center; 
}
#projekte img {
    margin-top: 20px;
}
.proro1{
    
    margin-right: 5px;
    border-radius: 2px;
}
.proro2{
    margin-left: 2px;
    border-radius: 5px;
}

.brush-border {
    border: 15px solid transparent;
    border-image: url('./images/pinselwhite.svg') 30 stretch;
    padding: 20px;
}

/* Mission poster styling */
#mission .poster {
    background: #ffffff;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

#mission .poster-background {
    background: #ffffff;
}

#mission .poster-content {
    padding: 120px 40px 30px 40px;
}
/* Überschrift selbst – etwas kompakter */
.headline{
  font-size: 4.2em;
  line-height: 1.1;
  margin-top: 30px;     /* vorher 50px */
  padding-top: 20px;    /* vorher 70px */
  min-height: unset;    /* optional: keine Zwangshöhe */
  text-align: left;
  color: #fff;
  font-family: 'Archivo Black', sans-serif;
  display: inline-block;
}

/* Jede Zeile (span) – weniger Innenabstand oben/unten */
.headline span{
  position: relative;
  display: inline-block;
  z-index: 0;
  padding: 0.15em 0.55em;  /* vorher 0.4em 0.6em → deutlich schlanker */
  margin: 0.08em 0;        /* vorher 0.3em bottom */
}

/* Pinsel-Hintergrund mit unebenen Kanten – dünner eingestellt */
.headline span::before{
  content:"";
  position:absolute;
  z-index:-1;
  /* seitliche Überstände beibehalten, vertikal schlanker */
  left:-.45em; right:-.45em;
  top:-.10em;  bottom:-.10em;   /* war höher → jetzt weniger Höhe */

  background:#e53c15;           /* Farbe des Balkens */
  -webkit-mask: url('./images/marker2.png') center / 100% 100% no-repeat;
          mask: url('./images/marker2.png') center / 100% 100% no-repeat;

  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
  pointer-events:none;
}

/* Fallback für sehr alte Browser ohne mask() – optional */
@supports not ((-webkit-mask: url('x')) or (mask: url('x'))){
  .headline span::before{
    background: url('./images/marker2.png') no-repeat center / 100% 100%;
  }
}


#projekte h3{
    text-align: center !important;
    width: 100%
}

.floating-logos {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* hinter dem Content */
  pointer-events: none;
  overflow: hidden;
}

.floating-logo {
  position: absolute;
  width: 100px;
  opacity: 0.05;
  animation: floatLogo 20s ease-in-out infinite;
}

@keyframes floatLogo {
  0%   { transform: translateY(0px) rotate(0deg); }
  25%  { transform: translateY(-30px) rotate(5deg); }
  50%  { transform: translateY(0px) rotate(0deg); }
  75%  { transform: translateY(30px) rotate(-5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
@media (max-width: 991.98px){
  .headline { font-size: 2.4em; } /* etwas kleiner, optional */
  .headline span{
    display: inline;          /* nicht inline-block → leichter umzubrechen */
    max-width: 100%;
    overflow: hidden;         /* Pseudo-Element darf nicht rausstehen */
    white-space: normal;      /* kein erzwungener Einzeiler */
    word-break: break-word;   /* lange Wörter umbrechen */
    hyphens: auto;
  }
  .headline span::before{
    left: 0;                  /* Überhang weg */
    right: 0;
  }

  /* falls du auch #projekte h1 mit Marker nutzt, ebenfalls entschärfen */
  #projekte h1{
    max-width: 100%;
    overflow: hidden;
  }
  #projekte h1::before{
    left: 0;
    right: 0;
  }
}
/* Mobile Menü Schriftgröße anpassen */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    font-size: 16px; /* oder wie dein Desktop-Menü */
    line-height: 1.5;
  }
}
/* Vollbild-Mobile-Menü Overlay */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white; /* Hintergrundfarbe */
    padding: 2rem; /* Abstand zu den Rändern */
    overflow-y: auto; /* Scrollbar falls zu lang */
    z-index: 9999; /* ganz oben */
  }

  /* Mobile Menü Links in normaler Menüfarbe */
  .navbar-collapse .nav-link {
    color: #000; /* wie dein Desktop-Menü-Text */
  }
}

/* nur mobil: sprachen/menü trennen und menü größer darstellen */
@media (max-width: 991.98px) {
  /* divider unter den sprachen */
  .mobile-languages {
    border-bottom: 1px solid #dcdcdc;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
  }

  /* menü-links größer und mit mehr luft */
  .navbar-collapse .mobile-mainmenu .nav-link {
    font-size: 1.25rem;        /* ~20px; passe an wie dein desktop-menü */
    font-weight: 700;
    padding: .75rem 0;
    color: inherit;            /* gleiche farbe wie normal */
  }

  /* optional: zwischen einzelnen menu-items dezente linie */
  .mobile-mainmenu .nav-item + .nav-item {
    border-top: 1px solid #f0f0f0;
  }
}
/* 1) Marquee *hart* im Viewport einsperren */


/* 3) Falls es trotzdem passiert: Seite schützt sich global vor X-Overflow */
html, body { overflow-x: hidden; font-size: 1rem}
@media (max-width: 768px) {
  /* Alle mask / webkit-mask Overrides für Mobile */

  /* Shorthand-Masks (mask: url(...)) */
  #testimonials,
  #mission,
  #auszeichnungen,
  #zahlen,
  #partner-section {
    -webkit-mask: none !important;
    mask: none !important;
    -webkit-mask-size: unset !important;
    mask-size: unset !important;
  }

  /* mask-image-basierte Selektoren */
  body .trenneru,
  .pagehead,
  #projekte,
  #footera,
  .zahlenu {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    -webkit-mask-repeat: unset !important;
    mask-repeat: unset !important;
    -webkit-mask-position: unset !important;
    mask-position: unset !important;
    -webkit-mask-size: unset !important;
    mask-size: unset !important;
  }

  /* Padding/Margin-Overrides: auf Desktop dienen die großen Abstände als Platz für die Masken-Effekte */
  body .trenneru {
    padding-bottom: 0 !important;
  }
  #projekte {
    padding-bottom: 40px !important;
  }
  #footera {
    padding-bottom: 40px !important;
  }
  .zahlenu {
    padding-bottom: 10px !important;
  }

  /* Negative Margins auf Desktop (für Masken-Überlappungen) auf Mobile zurücksetzen */
  #zahlen {
    margin-top: 0 !important;
    padding: 40px 0 40px 0 !important;
  }
  #mission,
  #auszeichnungen {
    margin-top: 0 !important;
    padding: 40px 0 20px 0 !important;
  }
  #partner-section {
    margin-top: 0 !important;
    padding: 40px 0 40px 0 !important;
  }
  #testimonials {
    padding: 40px 0 40px 0 !important;
  }

  /* Pseudo-Elemente mit Marker-Masken */
  #partner-section::before,
  #projekte h1::before,
  h1.marker::before,
  .headline span::before {
    -webkit-mask: none !important;
    mask: none !important;
  }

  /* Globaler Fallback für alle div-Elemente */
  div {
    -webkit-mask: none !important;
    mask: none !important;
  }
}


#news .shadow-sm {
    box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 20px !important;
}

h2.headline{
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0;
    padding-top: 0;
    min-height: 0;
}

/* Karussell-Pfeile optisch weiterhin ausgeblendet, aber per Tastatur erreichbar –
   bei Tastaturfokus werden sie sichtbar */
.carousel-control-prev, .carousel-control-next{
    opacity: 0 !important;
    pointer-events: none;
}
.carousel-control-prev:focus-visible, .carousel-control-next:focus-visible{
    opacity: 1 !important;
    pointer-events: auto;
}

footer a{
    color: #fff !important;
    text-decoration: none;
}

footer a:hover{
    text-decoration: underline;
}

footer p{
    color: #fff !important;
    margin: 0;
    padding: 0;
}

footer .mb-4{
    margin-bottom: 0rem !important;
}

.post-hero img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    margin-top: 110px;
}

.post-container {
    max-width: 900px;
    margin: 0px auto;
    padding: 60px 20px;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.post-meta {
    color: #777;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

#hero2 figure {
  max-width: 1400px;
  margin: 0 auto;
}

#hero2 img {
  width: 100%;
  height: auto;
}

.display-none{
    display:none !important
}

.hero-section-2 img{
    margin-bottom: -5px;
    margin-top: 70px;

}
.hero-section-2 p{
    font-size: 1.2em;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 0;
}

.hero-section-2 h1{
    font-size: 2.5em;
    font-weight: 900;
    margin-top: 20px;
    margin-bottom: 0;
}

.ims-marquee-image {
   margin-right: 65px !important
}

.row-3 .ims-marquee-image {
   height: 80px !important
}

.hero-section figure {
    margin: 0 !important;
}

.wp-block-accordion-heading__toggle {
    font-size: 22px !important;
    
}

@media (max-width: 991.98px) {
    #navbar, #news {
        background-color: #e9ecef !important; /* Your desired light grey (Bootstrap grey-200) */
    }
}
h1 {
  font-size: clamp(2rem, 10vw, 3.4rem);
  overflow-wrap: break-word; /* Prevents overflow if a word is still too long */
  hyphens: auto;             /* Adds hyphens if the word breaks */
}

@media (max-width: 767.98px) {
    /* Target the H1 specifically containing 'unsere mission' or via its class */
    h1.section-title {
        text-align: center !important;
    }
}
@media (max-width: 767.98px) {
    #partner-section {
        margin-top: 50px !important;
        margin-bottom: 50px !important;
    }
}
@media (max-width: 767.98px) {
    #auszeichnungen .wp-block-spacer {
        display: none !important;
    }
    #auszeichnungen{
        margin-top: 0 !important;
    }
}
/* Mobile sticky logo */
@media (max-width: 991.98px) {
  #navbar.sticky .logo,
  #navbar.sticky img.logo {
    height: 40px; /* dein gewünschter Wert */
    width: auto;
  }
}
@media (max-width: 767.98px) {
    #zahlen .col-12,
    #zahlen .ffi1,
    #zahlen .text-align-right,
    #zahlen h1,
    #zahlen h4,
    #zahlen p {
        text-align: center !important;
    }
}

/* Leichte Sprache: gleiche Farben und Komponenten, etwas mehr Leseluft */
body.lang-de-einfach {
    letter-spacing: 0.01em;
    line-height: 1.65;
}
body.lang-de-einfach p,
body.lang-de-einfach .page-content,
body.lang-de-einfach .post-content {
    font-size: 1.15em;
    line-height: 1.7;
}

.navbar .mobile-languages .is-current-lang > a.nav-link {
    text-decoration: underline !important;
    text-underline-offset: 0.22em;
    text-decoration-thickness: 2px;
}

.page-content .wp-block-embed,
#main-content .wp-block-embed {
    margin: 1.25rem 0 2.25rem;
    max-width: 920px;
}
#main-content .wp-block-embed {
    margin-left: auto;
    margin-right: auto;
}
.page-content .wp-block-embed__wrapper,
#main-content .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.page-content .wp-block-embed iframe,
.page-content .wp-block-embed__wrapper > iframe,
#main-content .wp-block-embed iframe,
#main-content .wp-block-embed__wrapper > iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

body.home.lang-de-gebaerden #main-content {
    padding-bottom: 280px;
}

/* Barrierefreiheit: Hauptbereich und Sprunglink */
main.kickin-main {
    margin-top: 0; /* globales main{margin-top:120px} gilt nur für front-page/index */
}
#main-content {
    scroll-margin-top: 140px; /* Ziel des Sprunglinks nicht unter der fixen Navigation */
}
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}
.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 10001; /* über #navbar (9999) und Mobilmenü */
    padding: .75rem 1.25rem;
    background: #fff;
    color: #000;
    font-weight: 700;
    text-decoration: underline;
}

/* Bewegung reduzieren (Betriebssystem-Einstellung, WCAG 2.3.3): nur die Theme-Animationen */
@media (prefers-reduced-motion: reduce) {
    .slider-track,
    .floating-logo {
        animation: none !important;
    }
    .fly-in-left,
    .fly-in-right {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
    .card,
    .dropdown-item,
    .grayscale,
    .project,
    #navbar,
    .navbar {
        transition: none !important;
    }
    .dropdown-item:hover,
    .dropdown-item:focus {
        transform: none;
    }
}