@charset "UTF-8";
/*
 Theme Name:   Jung und Tapfer
 Description: Jung und Tapfer
 Author:       Martina Fischer
 Author URI:   https://mafiart.de
 Template:     blankslate
 Version:      1.0
 Text Domain: blankslate-child
*/
/** icon 84px * 76px**/

@font-face {
  font-family: "Roboto";
  src: url(font/RobotoCondensed-VariableFont_wght.woff) format(woff);
}

@font-face {
  font-family: "RobotoBold";
  src: url(font/RobotoCondensed-Bold.woff) format(woff);
}

@font-face {
  font-family: "mansalva";
  src: url(font/Mansalva-Regular.woff) format(woff);
}

:root {
  --orange: #FF6429;
  --grau: #707070;
  --abstand: 235px;
  --site-top: 40px;
  --light: 300;
  --header-height: 600px;
  --header-height-sticky: 200px;
  /** wenn top geändert auch javascript ändern*/
  --header-top: -200px;
  --scale: 1.6;
  /* Content-Verschiebung: margin-bottom enthält denselben Wert → Footer liegt unter dem sichtbaren Inhalt (transform allein reserviert keinen Platz) */
  --content-translate-y: 60px;
  --content-footer-gap: 270px;
  /* Abstand Hauptinhalt → kleiner Sticky-Header (immer ≥ 0) */
  --content-sticky-top-gap: 2rem;
  /* Sicherheitszuschlag px (parsePx im Theme-JS erwartet px-Zahlen) */
  --scroll-padding-top-fudge: 22px;
  /* Anker-Scroll / Scroll-Into-View (wird per JS an echte Darstellungshöhe inkl. Nav-Overflow angeglichen) */
  --scroll-padding-top: calc(var(--header-height-sticky) + var(--content-sticky-top-gap) + var(--scroll-padding-top-fudge));
  /* Abstand Textfläche unter überstehender Navigation, nur bei .sticky per JS gesetzt */
  --sticky-content-pad-top: 0px;
}


html {
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-padding-top);
  height: 100%;
}

body {
  font-family: "Roboto";
  font-size: 1rem;
  color: var(--grau);
  line-height: 1.8rem;
  background-color: #fff;
  height: 100%;
}
.h1{ font-size: 2rem;}
.sr-only {
  position: absolute;
  left: -2000px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

strong {
  font-family: "RobotoBold";
}

#wrapper {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  min-height: 100vh;
}

.blau {
  color: #049BD8;
}

a {
  color: #707070
}

article p {
  padding-top: 1.2rem;
  font-size: 1rem;
  line-height: 1.2rem;
}

h1.script {
  font-family: "mansalva";
  font-size: 2.2rem;
  line-height: 2.4rem;
  text-align: center;
  padding-top: 0px;
  margin-bottom: 30px;
}

h1.script.none {
  display: none;
}

.home .wp-block-heading.script.blau.none {
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}

.home.header-shrunk .wp-block-heading.script.blau.none {
  opacity: 1;
  visibility: visible;
}

#header {

  top: 0;
  z-index: 1000;
  isolation: isolate;
  width: 100%;
  background-image: var(--header-bg, none);
  height: var(--header-height);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition: height 0.55s ease;
}

/* Sticky-Hintergrund als eigene Ebene, Einblendung per Transition */
#header::after {
  content: '';
  position: absolute;
  top: -300px;
  inset: 0;
  z-index: 0;
  background-image: var(--header-bg-sticky, var(--header-bg, none));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: all 1s ease;
  display: none;
}

header>* {
  position: relative;
  z-index: 1;
}

/* Header hat Klasse .sticky, sobald er oben angedockt ist (per JS) – Sticky-Bild einblenden */
#header.sticky {
  height: var(--header-height-sticky);
  top: 0;
  position: sticky;
}

#header.sticky::after {
  top: -300px;
  opacity: 0;
}

.header-teaser {
  max-width: 1200px;
  margin: 20px auto 10px;
  padding: 0 20px;
  font-size: 2.2rem;
  line-height: 1.5rem;
  font-family: "mansalva";
  position: absolute;
  top: 484px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  color: #049BD8;
  transition: all 0.45s ease;
}

.navbar ul {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-top: 550px;
  width: 100%;
  transition: padding-top 0.55s ease;
}

.sticky .navbar ul {
  padding-top: 165px;
}

.navbar ul li a {
  display: flex;
  flex-flow: column;
  position: relative;
  align-items: center;

}

.navbar ul li a:before {
  content: '';
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #049BD8;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  background-color: #fff;
  margin-bottom: 10px;
}

.navbar ul li a:hover:before,
.navbar ul li.current_page_item a::before {
  border: 3px solid #BF0483;
}

.navbar ul li.stiftung a:before {
  background-image: url('icons/Icon_Stiftung.svg');

}

.navbar ul li.foerderung a:before {
  background-image: url('icons/Icon_Foerderung.svg');
}

.navbar ul li.kontakt a:before {
  background-image: url('icons/Icon_Kontakt.svg');
}

.navbar ul li.news_projekte a:before {
  background-image: url('icons/Icon_Projekte.svg');
}

.navbar ul li.spende a:before {
  background-color: #049BD8;
  background-image: url('icons/Icon_Spende-w.svg');
}

.navbar li.spende a:hover::before {
  background-color: #BF0483;
  background-image: url('icons/Icon_Spende-w.svg');
}

.navbar li.spende.current_page_item a::before {
  background-color: #BF0483;
  background-image: url('icons/Icon_Spende-w.svg');
}

.nav-links a {
  color: var(--grau);
  text-decoration: none;
  font-size: 18px;
  font-family: 'Roboto';
  letter-spacing: 0.01rem;

}

.navbar ul li a span {
  width: 100%;
  display: block;
  height: 30px;
  line-height: normal;
  text-align: center;
}

.logo {
  position: absolute;
  left: 30px;
  top: 20px;
  width: 13%;
  height: 50%;
  min-width: 160px;
  z-index: 3000;
}

.sticky .logo {
  top: 0px;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-family: "RobotoBold";
}


.sticky .header-teaser {
  opacity: 0;
  top: -200px;
}

.nav-links {
  list-style: none;
  display: flex;
  font-family: 'Roboto';
}

.nav-links li {
  margin: 0 15px 0 15px;
}



.hamburger {
  display: none;
}

#content {
  max-width: 1300px;
  width: 90%;
  margin: 0 auto;
  position: relative;
  z-index: 0;
  margin-top: 110px;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    margin-bottom 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    padding-top 0.45s ease;
}

.page-template-template-projekte #content {
  max-width: 100% !important;
  width: 100% !important;
}

.spacer-header {
  width: 100%;
  z-index: -7;
  height: 83px;
  background-color: #fff;
  margin-top: -71px;
}

/* Ende Sticky-Header */
.wp-swiper__wrapper {
  height: 100%
}

.wp-swiper {
  height: 770px !important;
  Width: 70%;
  margin: 0 auto;
}

/* .swiper-wrapper{height: auto;} */
.wp-swiper__slide .wp-swiper__slide-content {
  justify-content: flex-start;
}

.swiper-autoheight,
.swiper-autoheight .swiper-slide {
  height: 100%;
}

.swiper-slide {
  margin-top: 70px;
  z-index: 0;
}

.swiper-slide figure {
  position: relative;
  border-radius: 30px;
  overflow: hidden;

}


.swiper-slide h2 {
  font-family: RobotoBold;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 20px;
  position: absolute;
  width: 100%;
  text-align: center;
  text-shadow: 0px 0px 3px rgb(0, 0, 0);
  letter-spacing: 0.03rem;
  font-size: 22px !important;
  z-index: 100 !important;
  top: 35px;
}

.swiper-slide-active+.swiper-slide h2 {
  left: 0;
  z-index: 400 !important;
  top: 70px;
  font-size: 22px !important;


}

.swiper-slide p {
  display: none;
  opacity: 0;
  transition: all 0.45s ease;
  text-align: center;
  padding-top: 0;
}


.swiper-slide-active+.swiper-slide figure {
  border-radius: 30px;
  /*transform: scale(var(--scale));*/
  width: 400px;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
}

/* Stack-Order: 2. Slide (active + next) ganz vorne */
.swiper-slide-active {
  position: relative;
  z-index: 300 !important;
}

.swiper-slide-active+.swiper-slide {
  position: relative;
  z-index: 500 !important;
  /* dieses Slide liegt vor allen */
}

.swiper-slide-active+.swiper-slide+.swiper-slide {
  position: relative;
  z-index: 150 !important;
}

.swiper-slide-active+.swiper-slide+.swiper-slide figure {
  z-index: 50 !important;
}

.swiper-slide-active+.swiper-slide p {
  display: block;
  opacity: 1;
  font-size: 18px !important;
  width: 400px;
  text-align: center;
  margin-left: -50px;

}

.swiper-slide-active+.swiper-slide h2+p {
  margin-top: -30px;

}

.swiper-button-next,
.swiper-button-prev {
  margin-top: calc(0px - var(--swiper-navigation-size) / 2);
  top: 0px !important;
  height: 300px;
  width: 200px;
}

.swiper-button-next svg {
  display: none;
}

.swiper-button-prev svg {
  display: none;
}

@media screen and (min-width: 1400px) {
  .swiper-button-next {
    left: auto;
    right: var(--swiper-navigation-sides-offset, 0) !important;
  }

  .swiper-button-prev {
    left: var(--swiper-navigation-sides-offset, 0) !important;

  }

}

@media screen and (max-width: 1200px) {
  .wp-swiper {
    Width: 90%;
  }
}

/** 1200 und kleiner slider**/
@media screen and (max-width: 900px) {
  .swiper-container.swiper {
    height: 890px !important;
    width: 100%;
    overflow: hidden;
  }

  .wp-swiper {
    Width: 100%;
    margin: 0 auto;
  }

  .swiper-slide h2 {
    /* transform: translateY(-260%); */
  }

  .wp-swiper {
    Width: 100%;
    margin: 0 auto;
  }

  .swiper-slide-active+.swiper-slide h2 {
    text-align: center;
    left: 0px;
    width: 80%;
    margin: 0 auto;
  }

  .swiper-slide p {
    display: block;
    opacity: 1;
  }

  .swiper-slide-active+.swiper-slide figure {
    border-radius: 30px;
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    transform: translateX(-0);
    z-index: 200;
  }

  .swiper-slide-active+.swiper-slide {
    position: relative;
    z-index: 500 !important;
    /* dieses Slide liegt vor allen */
  }

  .swiper-slide-active+.swiper-slide+.swiper-slide {
    position: relative;
    z-index: 150 !important;
  }

  .swiper-slide-active+.swiper-slide+.swiper-slide figure {
    z-index: 50 !important;
  }

  .swiper-slide-active+.swiper-slide p {

    width: 100%;

    margin-left: 0px;
  }

  .swiper-slide-active+.swiper-slide h2+p {
    margin-top: 0px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    margin-top: calc(0px - var(--swiper-navigation-size) / 2);
    top: 120px !important;

  }

  .swiper-button-next {
    justify-content: end;
  }
  .swiper-button-prev { justify-content: start;}

  .wp_swiper__navigation-container svg {
    display: block;
    opacity: 0.5;
    width: 40px;
    right: 10px !important;
    left: auto;
    margin: 0;x
   
  }


}
@media (max-width: 768px) {
  .swiper-button-next, .swiper-button-prev {
     display: flex !important;
  }
  .swiper-button-next, .swiper-button-prev{
    color: #585858!important;
  }
}
@media (max-width: 400px) {
  .swiper-button-next, .swiper-button-prev {
    top:30px!important;
    width: 2px!important;
  }

}
footer {
  background-color: #f0f0f088;
  margin-top: 40px;
  display: flex;
  justify-content: space-around;
  padding: 40px 0 60px 0;
  border-top: 2px solid #049BD8;
}

footer p {
  font-size: 16px;
  line-height: 18px
}

.sticky #menu {
  position: relative;
  z-index: 5;
}

.bild-innen {
  position: relative;
  width: 303px;
}

@media (max-width: 1200px) {
  .hamburger {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    margin-right: 30px;
    position: absolute;
    right: 20px;
    top: var(--site-top);
  }

  .spacer-header {
    height: 0px !important;
  }

  .hamburger span {
    width: 50px;
    height: 5px;
    background-color: #049BD8;
    margin: 6px;
    transition: 0.3s;
    border-radius: 2px;
  }



  .nav-links {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1200;
    padding: 20px 10px;
  }

  .nav-links.active {
    display: block;
  }

  .nav-links.active ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding-top: 0 !important;
  }

  .nav-links.active li {
    margin-left: 0;
  }

  /* Beim geöffneten Menü: 3-Striche ausblenden, X-Icon einblenden */
  .nav-links.active~.hamburger {
    display: none;
  }

  .hamburger.mobile {
    display: none;
  }

  .nav-links.active~.hamburger.mobile {
    display: flex;
  }

  .nav-links.active~.hamburger.mobile span:first-child {
    rotate: 45deg;
    transform: translateX(13px);
    background-color: #049BD8;
    z-index: 100000;
  }

  .nav-links.active~.hamburger.mobile span:last-child {
    rotate: -45deg;
    background-color: #049BD8;
    transform: translateX(10px);
    z-index: 100000;
  }

  .navbar ul li {
    display: flex;
  }

  .navbar ul li a:before {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    aspect-ratio: 1;
    margin-right: 12px;
  }


  .nav-links ul li a {
    color: var(--grau);
    text-decoration: none;
    font-size: 18px;
    font-family: 'Roboto';
    letter-spacing: 0.01rem;
    flex-flow: row;
  }

  .navbar ul li a span {
    width: 100%;
    display: block;
    height: 30px;
    line-height: normal;
    text-align: center;
  }

  /* Responsive Styles */
  #header {
    position: sticky;
    top: 0;
    background-image: var(--header-bg, none);
    height: var(--header-height);
    background-position: top;
  }

  #header.sticky {
    height: var(--header-height-sticky);
  }

  .header-teaser {
    bottom: 530px
  }

  :root {
    --content-footer-gap: 190px;
  }

  #content {
    margin-top: 40px;
  }

  h1.script.none {
    display: block;
    margin-bottom: 30px;
  }

  .home .wp-block-heading.script.blau.none {
    opacity: 0;
    visibility: hidden;
  }

  .home.header-shrunk .wp-block-heading.script.blau.none {
    opacity: 1;
    visibility: visible;
  }

}

.projekte #content {
  width: 100%;
  --content-translate-y: calc(var(--header-height) - var(--header-height-sticky));

}

@media (max-width: 900px) {
  #footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 768px) {
  .swiper-slide {
    margin-top: 40px;

  }

  .swiper-slide h2 {
    display: none;
  }

  .swiper-container.swiper {
    width: 100% !important;
  }

  #header {
    height: 150px !important;
    margin-top: 120px;
  }

  .logo,
  .sticky .logo {
    position: absolute;
    left: 0;
    top: -135px;
    width: 100px;
  }

  .hamburger {
    margin-right: 0;
    right: 0;
    top: -100px
  }

  /* Sticky-Overlay deaktivieren: mobil immer normales Header-Bild */
  #header::after,
  #header.sticky::after {
    opacity: 0 !important;
    background-image: var(--header-bg, none) !important;
  }

  .header-teaser {
    display: none;
  }


  .sticky .header-teaser {
    opacity: 1;
  }


  /*** navigation**/
  .navbar {
    padding-bottom: 30px;
  }

  .home .wp-block-heading.script.blau.none {
    opacity: 1 !important;
    visibility: visible !important;
  }

  footer {
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
  }

  footer p {
    font-size: 14px;
  }

  footer div {
    margin: 30px;
  }

}

@media screen and (max-width: 400px) {

  .header-teaser {
    transform: translateY(0) !important;
    top: 190PX;
    left: 0 !important;
    position: relative;
    line-height: 2rem !important;
    font-size: 24px;

  }
}


/******* projekte ******/
body.overlay {
  position: relative;
}

body.overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  background-color: rgba(184, 178, 178, 0);
  z-index: 900;
  pointer-events: none;
}

.wp-block-columns.active {
  z-index: 1000;
  background-color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
}

.projekte main {
  width: 100%;
}



.projekt_news {
  width: 56% !important;
  margin: 0 auto;
  max-width: 830px;
}

.projekte h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;
  padding: 15px 0 0 0;
}

.projekte p {
  font-size: 18px;
  line-height: 1.2rem;
}

.projekte .bild {
  position: relative;
  max-width: 303px
}

.projekte .bild figure {
  box-shadow: 3px 3px 10px #0000005e
}

.projekte .projekt_text {
  padding: 40px;
}

.projekte .projekt_news.overlay.is-hidden {
  display: none;
}

.projekt_news.overlay {
  position: absolute;
  top: 0;
  left: 50%;
  width: 66%;
  transform: translateX(-50%);
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  z-index: 1000;
}

.projekt_news.overlay .projekt_text {
  background-color: #fff !important;
  border-radius: 25px;
  border: 2px solid #BF0483;
}

.projekt_news figure {
  border-radius: 30px;
  overflow: hidden;
}

.projekte .weiterlesen {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  margin-top: -70px;
  text-align: center;
  font-weight: bold;
  color: #fff;
  background-color: #049BD8;
  padding: 10px 20px;
  border-radius: 30px;
}

.projekte .weiterlesen a {
  color: #fff;
  text-decoration: none;
  display: block;
}

.projekte .schliessen {
  position: absolute;
  right: 30px;
  width: 30px;
  height: 30px;
}


.projekte .schliessen a:before {
  content: 'X';
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background-color: #BF0483;
  position: absolute;
  top: -11px;
  right: 0;
  display: flex;
  justify-content: center;
  flex-flow: column;
  align-items: center;
  font-family: Arial;
  font-size: 20px;
  color: #fff;
}

.projekte .border {
  width: 100%;
  margin-top: 30px;
  margin-bottom: 30px;
  height: 30px;
}

.rund img {
  border-radius: 30px;
  overflow: hidden;
}

@media screen and (max-width: 1200px) {
  .projekt_news {
    width: 95% !important;
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  .projekte {
    width: 100%;
  }
  .unten-mobile{margin-bottom: 80px!important;}
}

.page-id-256 #content h1
{
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 2rem;
}
 .page-id-256 #content h2
{
  font-size: 1rem;
  font-weight: bold;
  margin-top: 1rem;
}
.page-id-256 #content ul, .page-id-256 #content li
{
 margin: initial; list-style: initial; margin-bottom: initial; padding: initial; padding-left:15px;
}
