/* =====================================================
   FONTS
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=DynaPuff:wght@400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/* =====================================================
   GLOBAL / RESET (Bootstrap-schonend)
   ===================================================== */



// <weight>: Use a value from 100 to 900
// <uniquifier>: Use a unique and descriptive class name

.montserrat-<uniquifier> {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}


// <weight>: Use a value from 400 to 700
// <uniquifier>: Use a unique and descriptive class name

.dynapuff-<uniquifier> {
  font-family: "DynaPuff", system-ui;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}



*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-padding-top: 200px;
	hyphens: auto;

}

html, body{
  overflow: visible !important;
}

body *{
  transform: none;
}
ul, li,
p {
  font-family: "Montserrat", sans-serif;
}

td {
  font-family: "Montserrat", sans-serif;
}
body{
  margin: 0;
  font-family: "Montserrat", sans-serif;
}
.animation {
  min-height: clamp(180px, 30vw, 250px);
}
/* Links */
main a{
  color: #0b0c0c;
  text-decoration: none;
}

/* Paragraph spacing */
main p{
  margin-bottom: 0.2rem;
} 


main p {
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto;

	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* Helper */
.hellgrau{
  background: #fff1f5;
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
.skip-link{
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus{
  top: 10px;
}

.mobilehead {display: none;}

.kopfbereich{

  z-index: 9999;
  width: 100%;
	padding-bottom: 10px;
}


.headerbar{
  position: sticky;
  top: 0;
  z-index: 9999;
}

.headerbar{
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.kopfbereich.is-scrolled .headerbar{
  background: #fcf5d6;
}

#pageid1 main .frame {
  margin-bottom: clamp(40px, 6vw, 90px);
}

#pageid1 main .hg-gruen .frame {
  margin-bottom:0;
}
#pageid1 main .hg-gruen {min-height: 0;}


#pageid1 .kopfbereich {
  background-image: url("https://vs-lankowitz.kreativ-praxis.at/fileadmin/templates/hintergruende/hintergrund-punkte-blau.jpg");
  background-size: cover;        /* füllt den Bereich */
  background-position: center;   /* zentriert */
  background-repeat: no-repeat;

  min-height: 400px;
  width: 100%;
}

.hg-blau * {color:#fff;}

.hg-blau .card-body h2 {color:#376db3 !important;}

.hg-blau .card-body p  {color:#262626 !important;}

.hg-gruen h2 {color:#FFFFFF; text-align: center;}
.animation { }

/* Wrapper */
.animation-media{
  position: relative;
  width: 100%;
	margin-top: -232px;
}

#pageid1 .animation-media {
  margin-top: 0;
}


.fusszeile .frame {padding-top:10px;}
/* sorgt daf�r, dass TYPO3-Gallery / Bild wirklich 100% ist */
.animation-media img{
  width: 100%;
  height: auto;          /* oder fix + object-fit */
  display: block;
}

/* Headline �ber dem Bild */
.animation-headline{
  position: absolute;
  top: 29%;                /* oben */
  left: 0;
  right: 0;
  z-index: 2;
   /* Abstand von oben */
}

/* optional */
.animation .headline{
  color: #fff;           /* falls �ber Bild */
}


/* =====================================================
   HEADER: LOGO + MENU AUSRICHTUNG
   ===================================================== */
.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  overflow: visible;
	padding-bottom: 10px;
}

/* TYPO3 Wrapper im Logo ohne Abstaende */
.header-logo,
.header-logo *{
  margin: 0 !important;
  padding: 0 !important;
}

.header-logo a,
.header-logo figure,
.header-logo picture{
  display: block;
}

.header-logo img{
  width: auto;
  height: auto;
  display: block;
}

/* falls TYPO3 dort noch ein anderes Bild ausgibt */
.header-logo .gallery-item img{
  width: 300px;
  border-radius: 1rem;
  overflow: hidden;
	background: #fff;
	border: 6px solid #fff;

}

#c326 .gallery-item img{
  width: 300px;
  border-radius: 1rem;
  overflow: hidden;
	background: #fff;
	border: 6px solid #fff;
	min-height: 100px !important;

}

/* Menu Container */
.header-menu{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: visible;
}

/* UL */
.header-menu .navilo{
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}


/* 100% Breite behalten */
.speciallogos,
.speciallogos .frame,
.speciallogos .frame-group-container,
.speciallogos .frame-group-inner,
.speciallogos .frame-container,
.speciallogos .frame-inner,
.speciallogos .textmedia,
.speciallogos .textmedia-item,
.speciallogos .textmedia-gallery,
.speciallogos .gallery-row {
  width: 100%;
  max-width: 100%;
}
/* Container soll oben rechts sitzen */
.speciallogos {
  margin: 0;
  padding: 0;
	position: relative;
	z-index: 1000;

}

.card-footer{
display:flex;
justify-content:center;
}

.card-footer a.btn .btn-text {
  font-size: 0;
}

.card-footer a.btn .btn-text::after {
  content: "Mehr erfahren";
  font-size: 1rem;
}

main .gallery-item img {
  border-radius: 46px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hunderter .gallery-item img {
  border-radius: 0px;
  box-shadow: none;
}
#pageid1 main .gallery-item img {
  border-radius: 0px;
  box-shadow: none;
}


#pageid1 .animation {display: none;}
#pageid1 .animation-start {display: block;}
.animation-start {display: none;}
#pageid1 .speciallogos {
	  background: none;
}


#pageid1 .kopfbereich.is-scrolled .headerbar {
	  background: none;}

.hg-gelb h2 {color: #fff;}

.speciallogos .frame{

	padding: 0; }

/* Video Container */
.video-frame {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;

  padding: 12px;
  background: #ffffff;

  border-radius: 28px;
  overflow: hidden;

  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Responsives Video */
.video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Verhältnis */
  height: 0;
  overflow: hidden;

  border-radius: 20px;
}

/* iframe */
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  border: 0;
}

/* Die ganze Logo-Zeile: oben rechts, in einer Reihe */
.speciallogos .gallery-row{
  display: flex;
  justify-content: flex-end;   /* rechts */
  align-items: flex-start;     /* oben */
  flex-wrap: nowrap;           /* eine Reihe */
  width: 100%;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* WICHTIG: Items d�rfen NICHT 25% breit sein */
.speciallogos .gallery-item,
.speciallogos .gallery-item[class*="gallery-item-size-"]{
  flex: 0 0 auto !important;
  width: auto !important;
  display: block;              /* kein centering-flex */
}

/* Bild/figure ohne Standardabst�nde */
.speciallogos figure,
.speciallogos .image{
  margin: 0;
  text-align: right;
}

/* Logo-Gr��e */
.speciallogos .image img{
  height: 50px;
  width: auto;
  display: block;              /* verhindert extra whitespace */
  object-fit: contain;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer{
  padding-top: 60px;

}
footer * {color:#fff !important;}

footer {
  background-image: url("https://vs-lankowitz.kreativ-praxis.at/fileadmin/templates/hintergruende/hintergrund-punkte-blau.jpg");
  background-size: cover;        /* füllt den Bereich */
  background-position: center;   /* zentriert */
  background-repeat: no-repeat;
 width: 100%;
}



#pageid10 .textmedia-text {padding-top: 10px;}

.blauepunkte *,
.orangepunkte * {
  color: #fff;
}
.blauepunkte {
  background-image: url("https://vs-lankowitz.kreativ-praxis.at/fileadmin/templates/hintergruende/hintergrund-punkte-blau.jpg");
  background-size: cover;        /* füllt den Bereich */
  background-position: center;   /* zentriert */
  background-repeat: no-repeat;

  min-height: 400px;
  width: 100%;
}

.orangepunkte {
  background-image: url("https://vs-lankowitz.kreativ-praxis.at/fileadmin/templates/hintergruende/hintergrund-punkte-gelb.jpg");
  background-size: cover;        /* füllt den Bereich */
  background-position: center;   /* zentriert */
  background-repeat: no-repeat;

  min-height: 400px;
  width: 100%;
}

main .textmedia-below .textmedia-gallery{
  padding-top: 20px;
}

.slick-slider {max-width: 100%;
  overflow: hidden;
}

#c89 .card{
  background: rgb(63 127 190 / 14%);
}

footer p strong,
footer p i{
  color: #fff;
  font-size: 1.5rem;
  font-weight: 400;
  font-style: normal;
}

#footer .textmedia-gallery img{
  height: 70px;
  width: auto;
  display: block;
border-radius: 15px;
}

.copyright p{
  font-size: 0.8rem;
}

.rootline p{
  margin-bottom: 0;
  padding: 8px 0;
  text-transform: uppercase;
  font-size: 1rem;
}

/* =====================================================
   FILELINK ICON
   ===================================================== */
.filelink-list span:before{
  font-family: 'Font Awesome 5 Free';
  content: '\f1c1';
  margin: 0 5px 0 0;
  color: #79ac2b;
  font-size: 30px;
  font-weight: 900;
}



/* =====================================================
   SLICK / SLIDER
   ===================================================== */
.slick-slide img{
  display: block;
  width: 100%;
  margin: 0 auto;
}

.slick-slide figure .caption{
  padding-top: 0.25rem;
  font-size: 5rem;
  word-wrap: break-word;
  opacity: 0.8;
  position: absolute;
  z-index: 10000;
  top: 35%;
  text-align: center;
  margin: 0 auto;
  width: 100%;
  color: #fff;
  font-weight: 700;
}

.slider{
  display: table !important;
  table-layout: fixed !important;
  width: 100% !important;
  position: relative;
  background: #888;
}

.slick-prev,
.slick-next{
  z-index: 100000;
}

.slider .container{ max-width: inherit !important; width: 100% !important; }
.slider .container .col,
.slider .container,
.slider .container .row{ padding: 0; margin: 0; }

.slider h2{ display: none !important; }

.slick-prev{ left: 25px !important; }
.slick-next{ right: 25px !important; }

.slick-next::before,
.slick-prev::before{
  color: #0089cc;
  font-size: 2.5rem;
}

ul.slick-dots{
  bottom: 3% !important;
}

.row.centergrid {
  justify-content: center;
}

/* falls var(--stwv-blue) nicht existiert, bleibt obiges aktiv */
.slick-next::before,
.slick-prev::before{
  color: var(--stwv-blue, #0089cc) !important;
}

.t3s-slickslider .slick-slide{
  padding: 0.1%;
}

/* =====================================================
   POWERSMAIL
   ===================================================== */
.tx-powermail .col-sm-2{ width: 100%; }
.powermail_fieldset .col-md-6{ width: 100%; }

.powermail_tab_navigation .pull-right{ float: right; }
.powermail_tab_navigation .pull-left{ float: left; }
.btn-group{ width: 100%; }

legend{
  font-size: 1.5rem;
  margin-top: 40px;
}

span.resetbutt a{ max-width: 180px !important; }

span.submitbutt input{
  box-sizing: border-box !important;
  display: inline-block !important;
  font-size: 0.888em !important;
  padding: 0.85em 0.2rem !important;
  line-height: 1em !important;
  color: #262626 !important;
  background-color: #fff !important;
  border: 2px solid #262626 !important;
  border-radius: 1.5em !important;
  text-decoration: none !important;
  text-align: center !important;
  margin: 0 !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  transition: all .15s !important;
  margin-left: 10px !important;
  max-width: 120px !important;
  min-width: 100px !important;
}

/* =====================================================
   CAROUSEL BUTTON
   ===================================================== */
.carousel-item-bodytext a{
  background-color: #216096;
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 4px;
}
.carousel-item-bodytext a:hover{
  background-color: #009770 !important;
}

/* =====================================================
   FRAME CUSTOM IMAGE WIDTHS
   ===================================================== */
.frame-custom-22 .gallery-item img{ width: 80%; }
.frame-custom-23 .gallery-item img{ width: 60%; }
.frame-custom-24 .gallery-item img{ width: 40%; }
.frame-custom-25 .gallery-item img{ width: 20%; }
.frame-custom-26 .gallery-item img{ width: 10%; }

.frame-custom-27 .gallery-item img{ width: 80%; float: left; }
.frame-custom-28 .gallery-item img{ width: 60%; float: left; }
.frame-custom-29 .gallery-item img{ width: 40%; float: left; }
.frame-custom-30 .gallery-item img{ width: 20%; float: left; }
.frame-custom-31 .gallery-item img{ width: 10%; float: left; }

.frame-custom-32 .gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 80%; }
.frame-custom-33 .gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 60%; }
.frame-custom-34 .gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 40%; }
.frame-custom-35 .gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 20%; }
.frame-custom-36 .gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; }

.frame-custom-37 .gallery-item img {border-radius:0px;}

.frame a[class=""],
.frame a:not([class]){
  color: #303030;
	text-decoration: underline;
}

main .hg-blau a{
  color: #fff !important;
}

main  .btn a:hover {color:#fff !important;}
main .frame a:hover {color:#fff;}

/* sehr spezifische container reset (wie gehabt) */
.container .row .col .row .container{ padding: 0; }
.container .row .col .row .container .row{ padding: 0; margin: 0; }
.container .row .col .row .container .row .col{ padding: 0; margin: 0; }

/* =====================================================
   HEADLINES
   ===================================================== */
h1{
  font-family: "DynaPuff", system-ui;
  font-size: clamp(2.2rem, 2.5vw, 2.5rem);
  font-weight: 600;
  text-transform: uppercase;
  color: #e84a3b;
  margin: 0 0 1.2rem 0;
  padding-bottom: 0.75rem;
  position: relative;
	}

h1::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 4px;
  background: #376db3;
}


h1, h2, h3, h4, h5, h6 {
	line-height: 1.25;
}

h2 {
	font-family: "DynaPuff", system-ui;
	font-size: clamp(2rem, 4vw, 2.4rem);
	font-weight: 400;
	color: #376db3;

	margin: 0 0 1.4rem 0;
	padding-bottom: 0.9rem;
	line-height: 1.25;

	hyphens: auto;
}
.more,
main .btn { font-family: "DynaPuff", system-ui;}

#c375 .frame-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* jeder Termin */
#c375 .frame-inner p {
  position: relative;
  margin: 0;
  padding: 20px 20px 20px 55px;
  border-radius: 14px;
  font-size: 17px;
  line-height: 1.5;
  color: #333;
  border: 1px solid #e2e2e2;
  background: #f9f9f9;
  transition: all 0.2s ease;
  border-left: 4px solid #376db3; /* Standard blau */
}

/* abwechselnde Farben */
#c375 .frame-inner p:nth-child(even) {
  background: #ffffff;
  border-left-color: #e84a3b; /* rot */
}

/* Hover */
#c375 .frame-inner p:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Kalender Icon */
#c375 .frame-inner p::before {
  content: "\f073"; /* Font Awesome Kalender */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #376db3;
}

/* Icon Farbe bei geraden Zeilen */
#c375 .frame-inner p:nth-child(even)::before {
  color: #e84a3b;
}
#footer a:hover {color:#e84a3b !important;}

.card-title  {color: #376db3;}


.frame-background-primary h2{
  color: #fff !important;
}

/* =====================================================
   MISC / LAYOUT BLOCKS
   ===================================================== */
.kopfbereich .textmedia,
.footertext .textmedia{
  gap: 0;
}

.logoimage .gallery-item figure{
  max-width: 65%;
  margin: 0 auto;
}

/* hunderter block (wie gehabt) */
.hunderter .megazeil,
.hunderter .ce-outer,
.hunderter .ce-row,
.hunderter .ce-gallery,
.hunderter .ce-textpic,
.hunderter .image{
  width: 100% !important;
}

.hunderter .container{ padding: 0 !important; }

.hunderter .frame{
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.hunderter .ce-gallery[data-ce-columns="3"] .ce-column{
  width: 33.33333% !important;
}

.hunderter{
  max-width: 100% !important;
  padding: 0 !important;
  z-index: 0;
}

.hunderter .ce-gallery img{
  padding: 0;
  width: 100%;
}

.hunderter .ce-column{
  padding: 0 !important;
}

.hunderter .textmedia{
  gap: 0;
}

.hunderter hr{
  height: 0;
  padding: 2% 0;
  background: none !important;
}

.hunderter .frame-container-default{
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* headerimage legacy carousel */
.headerimage{
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0.5%;
}

.headerimage .carousel-image picture{ width: 100%; }

.headerimage .carousel .carousel-content-inner,
.headerimage .frame-container{
  min-width: 100% !important;
  max-width: inherit !important;
  padding: 0;
  margin: 0;
}

#pageid1 .headerimage .carousel .carousel-content-inner{
  min-height: 60vh;
}

.headerimage .carousel .carousel-content{ height: inherit; }
.headerimage .carousel-item-type-image .carousel-image img{ width: 100%; }
.headerimage .frame{ padding: 0; }
.headerimage .carousel .item{ height: auto; }

.headerimage .carousel-image{
  display: block;
  z-index: 1;
  width: 100%;
}

.frame-custom-10 .image{ max-width: 50%; }
.frame-custom-11 .image{ max-width: 65%; }
.frame-custom-12 .image{ max-width: 80%; }

/* spacing helpers */
.frame-space-before-extra-small{ margin-top: 0.5%; display: block; }
.frame-space-before-small{ margin-top: 3% !important; display: block; }
.frame-space-before-medium{ margin-top: 6% !important; display: block; }
.frame-space-before-large{ margin-top: 9% !important; display: block; }

.frame-space-after-extra-small{ margin-bottom: 0.5%; display: block; }
.frame-space-after-small{ margin-bottom: 3%; display: block; }
.frame-space-after-medium{ margin-bottom: 6%; display: block; }
.frame-space-after-large{ margin-bottom: 9%; display: block; }

/* textmedia gap fix (war "grid-column-gap: rem;" = ungueltig) */
.textmedia,
.textpic{
  column-gap: 1rem;
  gap: 0rem 2rem;
}


/* =========================================
   LOGO IM HEADER IMMER LINKS AUSRICHTEN
   ========================================= */



/* Logo explizit nach links */
.header-row{
  justify-content: space-between; /* Logo links, Menü rechts */
}

/* Logo wirklich links ausrichten */
.header-logo{
  margin-right: auto;
  text-align: left;
	max-width: 360px;
}

/* Falls TYPO3 Wrapper zentriert */
.header-logo figure,
.header-logo picture,
.header-logo a{
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/*startseite cardgroup */
.card-img-top picture,
.card-img-top img {
    width: 55%;
    height: auto;
    display: block;
    margin: auto;
    margin-top: 2rem;
}

#pageid1 h2.card-title {
    text-align: center;
  text-transform: none;
}
#pageid8 h2.card-title {
    text-align: center;
}

blockquote {
  border-left: none;
  font-size: 1.5rem;
  
}
.news-backlink-wrap a,
main .btn{
  /* Basis aus deinem Snippet + Menü-Look */
  display: inline-block;
  padding: 14px 30px;           /* statt %: stabiler wie im Menü */
  margin-top: 2%;
  text-decoration: none;

  background: #ef5a4a;
  color: #fff;

  border-radius: 9999px;
  border: 4px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);

  font-weight: 800;
  line-height: 1;

  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.news-backlink-wrap a {color:#fff !important;}
.news-backlink-wrap a:hover,
main .btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
}

main .btn:active{
  transform: translateY(0);
  filter: brightness(.98);
}

main .btn:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 4px rgba(255,255,255,.55),
    0 10px 22px rgba(0,0,0,.14);
}

/* Optional: “Outline”-Variante */
main .btn.btn--outline{
  background: transparent;
  color: #ef5a4a;
  border-color: rgba(239,90,74,.55);
  box-shadow: none;
}

main .btn.btn--outline:hover{
  background: rgba(239,90,74,.08);
  filter: none;
}


/* 20px Abstand zwischen den Slides */
#slickid-233 .slick-slide {
  padding: 0 10px; /* 10 + 10 = 20px */
}
#slickid-233 .slick-list {
  margin: 0 -10px;
}

/* Logos: max. 80px hoch, nichts abschneiden */
#slickid-233 .slick-slide {
  height: 120px;                 /* “Karten”-Höhe um sauber zu zentrieren */
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#slickid-233 .slick-slide img {
  max-height: 80px;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;           /* wichtig: verhindert Abschneiden */
  display: block;
}

body#pageid23 h1 {
  color: #f2b23a !important;
}

body[class*="rootline-23"] h1 {
  color: #f2b23a !important;
}

body#pageid5 h1 {
  color: #2ea05b;
}


.textmedia-above .textmedia-item + .textmedia-item {
  margin-top: 20px;
}

/* =========================================
                   UNTERSEITEN
   ========================================= */
              /* Schule/Blau */
#pageid7, #pageid60 h1{
  color: #3f7fbe;
  
}

#pageid7 main .btn{
  background: #3f7fbe;
  
}

#pageid7, #pageid60 h1::after {
  background: #ef5a4a;
  
}

:is(
#pageid7,#pageid32,
#pageid22,#pageid21,#pageid20,#pageid19,#pageid18,
#pageid17,#pageid16,#pageid15,#pageid14,#pageid13,#pageid12, #pageid58, #pageid52, #pageid53, #pageid54, #pageid55, #pageid56, #pageid57
) {
  --page-primary:#3f7fbe;
  --page-accent:#ef5a4a;
}

:is(
#pageid7,#pageid32,
#pageid22,#pageid21,#pageid20,#pageid19,#pageid18,
#pageid17,#pageid16,#pageid15,#pageid14,#pageid13,#pageid12, #pageid58, #pageid52, #pageid53, #pageid54, #pageid55, #pageid56, #pageid57
) h1{
  color:var(--page-primary);
}

:is(
#pageid7,#pageid32,
#pageid22,#pageid21,#pageid20,#pageid19,#pageid18,
#pageid17,#pageid16,#pageid15,#pageid14,#pageid13,#pageid12, #pageid58, #pageid52, #pageid53, #pageid54, #pageid55, #pageid56, #pageid57
) main .btn{
  background:var(--page-primary);
}

:is(
#pageid7,#pageid32,
#pageid22,#pageid21,#pageid20,#pageid19,#pageid18,
#pageid17,#pageid16,#pageid15,#pageid14,#pageid13,#pageid12, #pageid58, #pageid52, #pageid53, #pageid54, #pageid55, #pageid56, #pageid57
) h1::after{
  background:var(--page-accent);
}

#pageid12 h1, #pageid57 h1 {
  text-transform: none;
}



              /* Team/Rot */
#pageid10 h1::after {
  background: #f2b23a;
}

#pageid10 h2{
  color: #ef5a4a;
}

#pageid10 a.btn {
  background-color: #ef5a4a
}

#c171 h3.text-center {
  color: rgb(55 109 179 / 43%);
}




              /* Klassen/Gelb */
#pageid23 h1::after {
  background: #32ad62;
  
}

:is(#pageid39,#pageid42,#pageid43,#pageid41,#pageid45,#pageid46) h1{
  color:#f2b23a !important;
}

:is(#pageid39,#pageid42,#pageid43,#pageid41,#pageid45,#pageid46) h1::after{
  background:#32ad62 !important;
}

:is(#pageid39,#pageid42,#pageid43,#pageid41,#pageid45,#pageid46) .news-backlink-wrap a, main .btn {
      background: #f2b23a;
}

:is(#pageid39,#pageid42,#pageid43,#pageid41,#pageid45,#pageid46) h2{
  color:#f2b23a;
}
              /* Aktuelles/Grün */
#pageid5 h1::after {
  background: #7569e0;}

#pageid5 #c91{
  --frame-link-hover-color: #32ad62;
}

#pageid61 h1::after {
  background: #7569e0;}

#pageid61 h1{
  color: #32ad62;}





              /* Partner/Violett */

:is(#pageid8,#pageid25,#pageid26,#pageid27,#pageid28,#pageid29,#pageid30,#pageid31) h1{
  color: #8476af;
}

:is(#pageid8,#pageid25,#pageid26,#pageid27,#pageid28,#pageid29,#pageid30,#pageid31) main .btn{
  background: #8476af;
}

:is(#pageid8,#pageid25,#pageid26,#pageid27,#pageid28,#pageid29,#pageid30,#pageid31) main .btn:hover{
  background: #8476af;
  
}

:is(#pageid8,#pageid25,#pageid26,#pageid27,#pageid28,#pageid29,#pageid30,#pageid31) h1::after{
  background: #eb9ec4;
}

           /* Kontakt/Rosa */

#pageid9 h1{
  color: #eb9ec4  !important;
}

#pageid9 main .btn {
  background: #eb9ec4;  
}

#pageid9 .textmedia-item.textmedia-text {
    padding-top: 1rem;
}

.hg-rosa * {color:#fff;}

#pageid9 h1::after {
       background: #3f7fbe;
}

#pageid1 h1{
  color: #3f7fbe;
  
}



#pageid1 h1::after {
  background: #ef5a4a;
  
}

#pageid1 {
  --frame-link-hover-color: #3f7fbe;
}


/* =========================================
                   HINTERGRÜNDE
   ========================================= */

.hg-blau,
.hg-rot,
.hg-gelb,
.hg-gruen,
.hg-violett,
.hg-rosa{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  width: 100%;
}

.hg-blau img,
.hg-rot img,
.hg-gelb img,
.hg-gruen img,
.hg-violett img,
.hg-rosa img {
  border: 6px solid white;
}

.hg-blau .frame-space-before-extra-small {
	margin-top: 0;}

.hg-blau {
  background-image: url(/fileadmin/templates/hintergruende/hg_blau.png);
}

.hg-rot {
  background-image: url(/fileadmin/templates/hintergruende/hg_rot.png);
}

.hg-gelb {
  background-image: url(/fileadmin/templates/hintergruende/hg_gelb.png);
}

.hg-gruen {
  background-image: url(/fileadmin/templates/hintergruende/hg_gruen.png);
}

.hg-violett {
  background-image: url(/fileadmin/templates/hintergruende/hg_lila.png);
}

.hg-rosa {
  background-image: url(/fileadmin/templates/hintergruende/hg_rosa.png);
}

.hg-rot * {color:#fff;}



.menu-item-7:hover {cursor:pointer;}


main .btn{	background:#ef5a4a !important;}
main .btn:hover {	background: #cc2819 !important; border-color: #e84a3b;}


/* =========================================
   STARTSEITE HERO
   nur unter #pageid1
========================================= */

#pageid1 .animation-start{
    position: relative;
    display: flex;
    flex-wrap: wrap;                 /* wichtig: Textblock kann in neue Zeile */
    justify-content: center;
    align-items: flex-start;
    max-width: 1280px;
    margin: 10px auto 0;
    padding: 0 0px;
    box-sizing: border-box;
    overflow: visible;
}

/* =========================================
   3 MEDIENELEMENTE
========================================= */

#pageid1 .animation-start > .grafikelement{
    position: relative;
    flex: 0 0 auto;
    box-sizing: border-box;
}

/* links */
#pageid1 .animation-start > .grafikelement:nth-of-type(1){
    width: 28%;
    margin-top: 60px;
    margin-right: -40px;
    z-index: 2;
}

/* mitte */
#pageid1 .animation-start > .grafikelement:nth-of-type(2){
    width: 49%;
    margin-top: 120px;
    z-index: 4; /* Video vorne */
}

/* rechts */
#pageid1 .animation-start > .grafikelement:nth-of-type(3){
    width: 28%;
    margin-top: 30px;
    margin-left: -40px;
    z-index: 2;
}

/* TYPO3 Wrapper neutralisieren */
#pageid1 .grafikelement .frame,
#pageid1 .grafikelement .frame-group-container,
#pageid1 .grafikelement .frame-group-inner,
#pageid1 .grafikelement .frame-container,
#pageid1 .grafikelement .frame-inner,
#pageid1 .grafikelement .textmedia,
#pageid1 .grafikelement .textmedia-item,
#pageid1 .grafikelement .gallery-row,
#pageid1 .grafikelement .gallery-item{
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   RAHMEN
========================================= */

#pageid1 #c292 figure.image,
#pageid1 #c293 figure.image{
    margin: 0;
    border: 10px solid #fff;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

#pageid1 #c292 img,
#pageid1 #c293 img{
    display: block;
    width: 100%;
    height: auto;
}

/* Video nur mit einer Kontur */
#pageid1 #c101 figure.video{
    margin: 0;
}

#pageid1 #c101 .embed,
#pageid1 #c101 .embed-responsive{
    margin: 0;
    border: 10px solid #fff;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

#pageid1 #c101 iframe,
#pageid1 #c101 .embed-responsive-item{
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* =========================================
   ICONS
========================================= */

/* =========================================
   ICONS
========================================= */

#pageid1 .animation-start{
    position: relative;
    overflow: visible;
}
/* gemeinsame Basis */
#pageid1 .animation-start::before,
#pageid1 .animation-start::after{
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    top: 63%;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 50;
}

/* Sonne links */
#pageid1 .animation-start::before{
    left: 70px;
    background-image: url("/fileadmin/user_upload/icons/sonne.svg");
    animation: sonneScheinen 8s linear infinite;
}

/* Biene rechts */
#pageid1 .animation-start::after{
    right: 95px;
    background-image: url("/fileadmin/user_upload/icons/Biene.svg");
    animation: iconPulse 2.8s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Pulsieren (für Biene) */
@keyframes iconPulse{
    0%{
        transform: translateY(-50%) scale(1);
    }
    50%{
        transform: translateY(-50%) scale(1.08);
    }
    100%{
        transform: translateY(-50%) scale(1);
    }
}

/* Sonne scheint / dreht sich */
@keyframes sonneScheinen{
    0%{
        transform: translateY(-50%) rotate(0deg) scale(1);
        filter: brightness(1);
    }
    50%{
        transform: translateY(-50%) rotate(8deg) scale(1.08);
        filter: brightness(1.3);
    }
    100%{
        transform: translateY(-50%) rotate(0deg) scale(1);
        filter: brightness(1);
    }
}
/* =========================================
   TEXTBLOCK UNTER DEN MEDIEN
========================================= */

#pageid1 #c291{
    flex: 0 0 100%;                 /* zwingt den Text in die nächste Zeile */
    width: 100%;
    max-width: 100%;
    margin: 55px 0 70px;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
}

#pageid1 #c291 .frame-group-container,
#pageid1 #c291 .frame-group-inner,
#pageid1 #c291 .frame-container,
#pageid1 #c291 .frame-inner{
    margin: 0;
    padding: 0;
}

#pageid1 #c291 p{
    margin:0;
    font-family:"DynaPuff", system-ui, sans-serif !important;
    text-align:center;
line-height: 2rem;
	font-size: 2rem;    color:#fff;
}

/* Zeile 1 */
#pageid1 #c291 p strong{
    display:block;
    font-size:clamp(34px,4.2vw,68px);
    color:#f6d51f;
}
/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px){

    #pageid1 .animation-start{
        max-width: 760px;
        margin: 20px auto 0;
        padding: 0 20px;
    }

    #pageid1 .animation-start > .grafikelement:nth-of-type(1),
    #pageid1 .animation-start > .grafikelement:nth-of-type(2),
    #pageid1 .animation-start > .grafikelement:nth-of-type(3){
        width: 100%;
        margin: 0 0 24px 0;
    }

    #pageid1 .animation-start > .grafikelement:nth-of-type(1)::after,
    #pageid1 .animation-start > .grafikelement:nth-of-type(3)::before{
        display: none;
    }

    #pageid1 #c291{
        margin: 20px 0 50px;
    }

    #pageid1 #c291 p{
        font-size: clamp(26px, 8vw, 42px);
    }
}

.raupen-section h3.text-center {
  color: rgb(55 109 179 / 43%);
}

.raupen-section{
  position: relative;
  overflow: hidden;
  padding-bottom: 210px;
}

.raupen-text{
  position: relative;
  z-index: 20;
}

/* Szenenbereich */
.raupen-animation{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
}

/* 🌞 Sonne */
.sonne{
  position: absolute;
  left: 50%;
  bottom: 120px;
  width: 170px;
  height: auto;
  animation: sonnePulseDesktop 4s ease-in-out infinite;
}

/* Raupen allgemein */
.raupe{
  position: absolute;
  height: auto;
  left: 110vw;
}

/* große Raupe */
.raupe-big{
  width: 220px;
  bottom: 0;
  animation: raupeBig 12s ease-out forwards;
}

/* Kind 1 */
.raupe-child1{
  width: 140px;
  bottom: 18px;
  animation: raupeChild1 12s ease-out forwards;
  animation-delay: 1.4s;
}

/* Kind 2 */
.raupe-child2{
  width: 110px;
  bottom: 34px;
  animation: raupeChild2 12s ease-out forwards;
  animation-delay: 2.8s;
}

/* Endpositionen */
@keyframes raupeBig{
  0%{ left:110vw; }
  100%{ left:40%; }
}

@keyframes raupeChild1{
  0%{ left:110vw; }
  100%{ left:52%; }
}

@keyframes raupeChild2{
  0%{ left:110vw; }
  100%{ left:64%; }
}

/* Krabbeleffekt */
.raupe img{
  animation: raupeWackeln 1.8s ease-in-out infinite;
}

@keyframes raupeWackeln{
  0%{ transform: translateY(0) rotate(-2deg); }
  25%{ transform: translateY(-4px) rotate(1deg); }
  50%{ transform: translateY(0) rotate(2deg); }
  75%{ transform: translateY(-3px) rotate(-1deg); }
  100%{ transform: translateY(0) rotate(-2deg); }
}

/* Sonne Desktop */
@keyframes sonnePulseDesktop{
  0%{
    transform: translateX(-520px) scale(1);
    filter: brightness(1);
  }
  50%{
    transform: translateX(-520px) scale(1.08);
    filter: brightness(1.25);
  }
  100%{
    transform: translateX(-520px) scale(1);
    filter: brightness(1);
  }
}

/* -------------------------------------------------- */
/* Laptop */
/* -------------------------------------------------- */
@media (max-width:1600px){

  .sonne{
    width:150px;
    bottom:110px;
    animation: sonnePulseLarge 4s ease-in-out infinite;
  }

  @keyframes sonnePulseLarge{
    0%{
      transform: translateX(-420px) scale(1);
      filter: brightness(1);
    }
    50%{
      transform: translateX(-420px) scale(1.08);
      filter: brightness(1.25);
    }
    100%{
      transform: translateX(-420px) scale(1);
      filter: brightness(1);
    }
  }
}

/* -------------------------------------------------- */
/* Tablet */
/* -------------------------------------------------- */
@media (max-width:1200px){

  .sonne{
    width:120px;
    bottom:90px;
    animation: sonnePulseTablet 4s ease-in-out infinite;
  }

  @keyframes sonnePulseTablet{
    0%{
      transform: translateX(-300px) scale(1);
      filter: brightness(1);
    }
    50%{
      transform: translateX(-300px) scale(1.08);
      filter: brightness(1.25);
    }
    100%{
      transform: translateX(-300px) scale(1);
      filter: brightness(1);
    }
  }
}

@media (max-width: 640px){

  .raupen-section{
    padding-bottom: 140px;
  }

  .raupen-animation{
    height: 120px;
  }

  /* nur die große Raupe */
  .raupe-child1,
  .raupe-child2{
    display: none;
  }

  /* Sonne sauber im Container links */
  .sonne{
    width: 70px;
    left: 50%;
    bottom: 55px;
    animation: sonnePulseMobile 4s ease-in-out infinite;
  }

  /* große Raupe kleiner und schöner platziert */
  .raupe-big{
    width: 95px;
    bottom: 0;
    animation: raupeBigMobile 9s ease-out forwards;
  }

  @keyframes raupeBigMobile{
    0%{ left: 110vw; }
    100%{ left: 62%; }
  }

  @keyframes sonnePulseMobile{
    0%{
      transform: translateX(-150px) scale(1);
      filter: brightness(1);
    }
    50%{
      transform: translateX(-150px) scale(1.08);
      filter: brightness(1.25);
    }
    100%{
      transform: translateX(-150px) scale(1);
      filter: brightness(1);
    }
  }
}


