/*
Theme Name: KITA St. Georg
Theme URI: http://demo.select-themes.com/stockholm/
Description: A child theme of Stockholm Theme
Author: Robert Sander
Author URI: sanderrobert.de
Version: 1.1
Text Domain: stockholm
Template: stockholm
*/

/* Global Reset
==================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

.wp-post-image {
  max-width: 100%;
  width: auto !important;
  height: auto !important;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  /* font: inherit; */
  margin: 0 !important;
  line-height: 1 !important;
}

.site-title a {
  text-decoration: none;
}

#root,
#__next {
  isolation: isolate;
}

ul li {
  list-style: none;
}
ul li a {
  text-decoration: none;
}

a {
  color: var(--kita-white) !important;
  &:hover {
    color: var(--kita-white) !important;
    text-decoration: underline;
    text-decoration-thickness: 0.1em;
    text-underline-offset: 0.2em;
  }
}

#back_to_top {
  display: none !important;
}

span {
  font-size: unset !important;
}

/* This targets the inner container of all Full Width rows */
.full_width_inner {
  padding-top: 0 !important; /* Change this to your desired value */
  padding-bottom: 0 !important;
}

:root {
  /* Font Sizes */
  --text-size-xs: clamp(0.45rem, 0.2vw + 0.4rem, 0.5rem);
  --text-size-sm: clamp(0.65rem, 0.35vw + 0.55rem, 0.71rem);
  --text-size-md: clamp(0.9rem, 0.6vw + 0.75rem, 1rem);
  --text-size-lg: clamp(1.2rem, 1vw + 0.9rem, 1.6rem);
  --text-size-xl: clamp(1.6rem, 1.5vw + 1.1rem, 2rem);
  --text-size-2xl: clamp(2rem, 2.2vw + 1.3rem, 2.83rem);
  --text-size-3xl: clamp(2.8rem, 3.5vw + 1.5rem, 4rem);
  --text-size-4xl: clamp(3.2rem, 4vw + 2rem, 5.65rem);
  --text-size-5xl: clamp(5rem, 5vw + 2rem, 8rem);

  /* Colors */

  --kita-white: #ffffff;
  --kita-black: #1e1e1e;

  --kita-green: #008107;
  --kita-red: #c7001d;
  --kita-blue: #4390cb;
  --kita-yellow: #f8c215;
  --kita-orange: #ed9023;

  --clr-primary: var(--kita-black);

  /* Sizes */

  --body-mg-lr: 2rem;

  --signpost-row-height: 40vh;

  --section-height: 4rem;
  --section-margin-tb: 4rem;

  --header-height: 70px;
}

@media only screen and (min-width: 1000px) {
  :root {
    --signpost-row-height: 50rem;

    /* --section-height: 10rem; */
  }
}

body {
  font-family: "Dpsg Condensed" !important;
  font-size: var(--text-size-lg) !important;
}

/* Header */

/* Menü */

/* Header Menü */
nav.main_menu > ul > li a {
  color: var(--kita-white) !important;
  &:hover {
    color: var(--kita-white) !important;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }
}
nav.main_menu > ul > li.active > a {
  color: var(--kita-white) !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Menu Items wie H3 */
nav.main_menu > ul > li > a {
  font-size: var(--text-size-lg) !important;
  padding-inline: 12px !important;
}

/* Menu Items Font Color */
header.sticky nav.main_menu > ul > li a,
header.sticky nav.main_menu > ul > li.active > a,
header.sticky nav.main_menu > ul > li.active > a span {
  color: var(--kita-white) !important;
}

/* Header Menu Verlauf im HG damit lesbar */

header {
  background: rgba(0, 0, 0, 0.4);
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 0, 0, 0.5) 40%
  );
}

header.sticky .header_bottom {
  background-color: green !important;
}

.header_top {
  background-color: green !important;
}

.header_inner_right {
  height: 0;
}

/* Logo */
.q_logo a {
  height: 200px !important;
}
/* Logo lang */
.q_logo a img.sticky {
  width: 230px !important;
}


.q_logo a img.sticky,
.q_logo a img.mobile-logo{
      margin-top: .2rem;
}
/* Intro Sldie mit Ziat */

.intro-text-block {
  display: flex;
  justify-content: center;
}

/* Hintergund abdunkeln */
.q_slider .image {
  filter: brightness(70%);
}
.q_slide_subtitle {
  font-size: var(--text-size-4xl) !important;
}

/* Fullscreen Images */
.vc_single_image-wrapper:has(.vc_single_image-img.attachment-full) {
  width: 100vw !important;
}

.vc_single_image-img.attachment-full {
  max-width: unset;
  width: 100%;
}

/* Category Image mit Sign-Post */

/* Text-Blöcke auf grün erster Post Home*/
/* .wpb_text_column {
  padding: 4rem var(--body-mg-lr);
} */

/* HOME Sections */
/* Intro */
#intro {
  background-color: var(--kita-green) !important;
}

/*Platzhalter Complianz für Google Maps Karte*/
.cmplz-placeholder-parent {
  max-height: 440px;
}

/*neu angelegte Verlinkungen auf weiss setzen*/
.link {
  color: white !important;
}

.link:hover {
  opacity: 0.65 !important;
}

/* .center-row .full_section_inner {
  margin-inline: auto;
  width: 100%;
} */

.group-icon {
  width: 200px !important;
  margin-inline: auto;
}

/* Slider */

/* 1. Den Container sichtbar machen */
.flex-direction-nav a {
  text-indent: -9999px !important;
  display: block !important;
  width: 50px !important;
  height: 50px !important;
  background-color: rgba(0, 0, 0, 0.3) !important;
  border-radius: 50%;
  opacity: 1 !important;
  z-index: 999 !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* 2. Die Icons (Pseudo-Elemente) einfügen */
.flex-direction-nav a::before {
  text-indent: 0 !important;
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #ffffff !important; /* Weißer Pfeil */
  font-size: 20px !important;
  font-weight: 900 !important;
  font-family:
    "FontAwesome", "Font Awesome 5 Free", "font-awesome", sans-serif !important;
}

/* 3. Icons zuweisen */
.flex-direction-nav .flex-prev::before {
  content: "\f104" !important;
  margin-left: -2px;
}

.flex-direction-nav .flex-next::before {
  content: "\f105" !important;
}

/* 4. Positionierung korrigieren */
.flex-direction-nav .flex-prev {
  left: 20px !important;
}
.flex-direction-nav .flex-next {
  right: 20px !important;
}

.slider-block {
  padding-block: var(--body-mg-lr);
  & * {
    color: var(--kita-white) !important;
  }
}

.flexslider {
  margin-bottom: 0 !important;
}

.opening-times {
  padding: 2rem !important;
  /* width: fit-content !important; */
}

/* Flex Start */

/* Target the immediate container of the columns */
.qode-flex-wrapper > .wpb_column > .vc_column-inner > .wpb_wrapper {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center; /* Adjust to flex-start or stretch as needed */
}

/* Reset the standard WPBakery column behavior */
.qode-flex-wrapper > .wpb_column {
  display: flex !important;
  float: none !important;
  width: auto !important; /* Let flex decide the width */
  flex: 1; /* Makes columns equal width */
  margin: 0 !important;
}
.flexslider {
  height: 70vh;
  & .flex-viewport {
    height: 100% !important;
  }
  & ul {
    height: 100% !important;
  }
  & li {
    height: 100% !important;
  }
  & img {
    width: auto !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
    margin-inline: auto;
  }
}

@media only screen and (max-width: 1000px) {
  .flexslider {
    height: 65vw;
  }
}

/* Flex End */

/* WPB Gallery Slider */
/* .wpb_gallery_slides ul {
  height: 600px !important;
  & li img {
    height: 100% !important;
    width: auto !important;
  }
} */

/* #einrichtung {
  background-color: var(--kita-blue) !important;
}
#paedagogik {
  background-color: var(--kita-yellow) !important;
} */

/* Slider ENDE */

/* Absolute Items */

/* Text-Bubble So funktioniert's */

/* das könnte spätr auch eine Helper-Klasse für die Größen werden */
.text-bubble img {
  width: 20vw !important;
  min-width: 200px !important;
}

.icon-small img {
  width: 10vw !important;
  min-width: 100px !important;
}

/* Footer */

.footer_top .widget h4 {
  font-family: unset !important;
}

.footer_top_holder {
  background-color: var(--kita-green) !important;
  padding-inline: var(--body-mg-lr);
}

/* Full Width Footer */
footer .container_inner {
  width: 100% !important;
}
/* Logo Size */
footer img {
  width: 200px !important;
}

.footer-col {
  display: flex;
  flex-direction: column;

  & > * {
    display: flex;
    flex-direction: column;
    font-size: var(--text-size-lg) !important;
    line-height: 130%;
  }
}

.four_columns {
  /* display: flex;
  justify-content: space-between;
  width: 100%;
  & > * {
    width: fit-content !important;
  } */

  display: grid;

  grid-template-columns: repeat(4, 1fr);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  column-gap: 2rem;
  row-gap: 1rem;

  & > * {
    width: fit-content !important;
    min-height: unset !important;
  }
  &::before,
  &::after {
    content: unset !important;
  }
}

.qode-home-slider .slider_content.center{
    left: 0 !important;
}

@media only screen and (max-width: 1000px) {
  /* Home Titel Abstand rechts und links */
  .q_slide_subtitle {
    max-width: 16ch;
  }
  
  .content .content_inner{
      padding-top:70px !important;
  }
  
  #intro img{
      height:60vw;
      object-fit:cover;
  }
  
  .wpb_wrapper{
      gap:2rem !important;
  }
  
  p + p{
      margin-top: 0 !important;
  }
  
  .wpb_wrapper .text-section:not(:has(.button)) p{
          margin-block: unset !important;
    }
  
}
