:root {
  --text-white: #fff;
  --text-gray: #6a6f70;
  --text-black: #221f21;
  --text-focus: #d0252a;
  --bg-primary: #ffafb2;
  --bg-success: #e1ffc9;
  --bg-offcanvas: #bdbdbd;
  --bg-secondary: #c8dfdc;
  --bg-body: var(--text-white);
  --nav-height: 60px;
  --max-width-content: 1000px;
  --fs-logo: clamp(25px, 8.9vw, 100px);
  --fs-lg: clamp(20px, 5.5vw, 40px);
  --fs-normal: 1rem;
}

* {
  box-sizing: border-box;
  font-family: "Noto Sans";
}

html {
  overflow-x: hidden;
}

html, body {
  margin: 0px;
  height: 100%;
  overscroll-behavior: none;
  scroll-behavior: smooth;
}

.root-wrapper {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.centered {
  display: flex;
  justify-content: center;
}

.container {
  width: 90vw;
  max-width: var(--max-width-content);
}

.flex-row {
  display: flex;
  align-items: center;
}

.gap {
  gap: 10px;
}

/* accessibility */
.assistive-text {
  height: 1px;
  width: 1px;
  position: absolute;
  overflow: hidden;
  top: -10px;
}

a {
  color: var(--text-focus);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--text-focus);
  outline-offset: 5px;
}

.skiplink {
  background-color: var(--bg-body);
  position: absolute;
  top: -999px;
  z-index: 1;
  padding: 10px;
  text-decoration: none;
  color: var(--text-black);
  border-radius: 0px 0px 5px 5px;
}

.skiplink:focus {
  top: 0px;
  left: 10px;
  outline: none;
}

/* nav */

.nav-menu-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  width: var(--nav-height);
  height: var(--nav-height);
  padding: 5px;
}

#menu-btn.nav-menu-btn:hover {
  background-color: var(--bg-offcanvas);
}

#menu-close-btn.nav-menu-btn:hover {
  background-color: var(--bg-primary);
}

.nav-wrapper .nav-logo a {
  text-decoration: none;
  color: var(--text-white);
  letter-spacing: 0,045em;
}

#offcanvasNav {
  position: fixed;
  z-index: 100;
  background-color: var(--bg-offcanvas);
  top: 0;
  bottom: 0;
  width: 100vw;
  left: 100vw;
  visibility: hidden;
  transition: 300ms ease-in-out;
}

#offcanvasNav.show {
  visibility: visible;
  left: 0;
}

#offcanvasNav .header {
  display: flex;
  justify-content: end;
  height: var(--nav-height);
}

#offcanvasNav .full-height {
  display: flex;
  flex-direction: column;
  min-height: calc(100% - var(--nav-height));
  justify-content: center;
}

#offcanvasNav .nav-list {
  padding: 10px;
}


/* generic nav-list */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list .nav-item {
  text-decoration: none;
  color: var(--text-white);
  border: none;
  background: transparent;
  font-size: var(--fs-lg);
  font-weight: bold;
}

/* on the subpage, have a gray color */
.template-subpage .nav-list .nav-item {
  color: var(--text-gray);
}

/*
.subpage-hero-nav .nav-list .nav-item {
  color: var(--text-gray);
}
*/

/* the default template */
.template-default .top-nav-default .nav-list {
  display: none;
  justify-content: space-around;
  height: var(--nav-height);
}

.template-default .top-nav-default .nav-list li a {
  color: var(--text-black);
}

/* hover styles */
.nav-list li a.active,
.nav-list li a:hover,
.nav-list .nav-item:hover {
  color: var(--text-focus) !important;
}

/* forms */
.form .errorlist.nonfield {
  background-color: var(--text-focus);
  border-radius: 10px;
  list-style: none;
  margin: 0 0 10px 0;
  padding: 10px;
  color: var(--text-white);
}

.form div:has(label) {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form textarea {
  padding: 10px;
  border-radius: 10px;
}

.form button {
  width: 100%;
  color: var(--text-black);
  background-color: var(--text-white);
  border: 2px solid var(--text-black);
  font-size: var(--fs-normal);
  border-radius: 10px;
  padding: 10px;
}

.form button:hover,
.form button:focus-visible {
  outline: none;
  color: var(--text-white);
  background-color: var(--text-focus);
}

.form .two-fields {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.form .two-fields > .fieldWrapper {
  width: 50%;
}

.form .fieldWrapper label {
  margin-bottom: 3px;
}

.form>div label:has(+ input:required),
.form>div label:has(+ textarea:required) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.form>div label:has(+ input:required):after,
.form>div label:has(+ textarea:required):after {
  content: " ";
  display: block;
  width: 10px;
  height: 10px;
  background-color: var(--text-focus);
  border-radius: 10px;
}

.form .errorlist {
  color: var(--text-focus);
  padding: 0;
  list-style: none;
  margin-top: 3px;
}

/* homepage */
.homepage-hero {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: auto 30vw 30vw 30vw auto;
  grid-template-areas: "topnav topnav topnav topnav topnav"
                       "b b b logo logo"
                       "d d d d d"
                       "e nav nav nav f"
                       "e nav nav nav g";
  
  color: var(--text-white);
  font-size: var(--fs-normal);
}

.homepage-hero-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.homepage-hero-img-wrapper.parallax {
  position: fixed;
}

.homepage-hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.homepage-hero .homepage-hero-logo {
  grid-area: logo;
  background-color: var(--bg-body);
  color: var(--text-black);
  display: flex;
  align-items: center;
}

.homepage-hero .homepage-hero-logo h1 {
  margin: 0;
  font-size: var(--fs-logo);
  padding-left: 20px;
}

/*
 have a padding on the white background rect 
.template-homepage .homepage-hero .homepage-hero-logo h1 {
}
*/

.homepage-hero .homepage-hero-nav {
  grid-area: nav;
  display: none;
}

.homepage-hero .subpage-hero-nav {
  grid-area: topnav;
}

.homepage-hero .subpage-hero-nav .nav-list {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.template-subpage .homepage-hero {
  grid-template-rows: var(--nav-height) auto auto;
  grid-template-areas: "a a a a a"
                       "b logo logo logo c"
                       "e topnav topnav topnav f";
}

/*
.template-subpage .homepage-hero .homepage-hero-logo {
  background: transparent;
  display: flex;
  align-items: end;
}
*/


.template-subpage .homepage-hero .homepage-hero-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.template-subpage .homepage-hero .homepage-hero-img-wrapper img {
  object-fit: contain;
}

.template-subpage .homepage-hero .subpage-hero-logo {
  position: absolute;
  color: var(--text-black);
  font-size: var(--fs-lg);
}

.template-subpage .homepage-hero .subpage-hero-logo h1 {
 font-weight: 300;
}

main {
  background-color: var(--bg-body);
  padding: 50px 0;
}

/* footer */
footer {
  background-color: var(--bg-secondary);
  color: var(--text-black);
  padding: 20px 0px;
}

footer .footer-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

footer .footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .footer-list a {
  text-decoration: none;
  color: var(--text-black);
  font-size: .8em;
}

footer h2 {
  font-size: 18px;
  font-weight: bold;
  margin-top: 0;
}

/* blocks */
.block {
  margin: 30px 0;
}

.block-gallery .gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block-gallery .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 8px;
}

.block-gallery .gallery .gallery-img-btn {
  background:transparent;
  padding: 0;
  margin: 0;
  border: none;
}

.block-gallery .lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  overflow: hidden;
  flex-direction: column;
}

.block-gallery .lightbox.show {
  display: flex;
}

.block-gallery .lightbox .lightbox-size-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: end;
  width: 100vw;
}

.block-gallery .lightbox .lightbox-wrapper {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "img img"
                       "prev next";
  grid-template-rows: 1fr 60px;                       
}

.block-gallery .lightbox .lightbox-img-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-content: center;
  grid-area: img;
}

.block-gallery .lightbox .lightbox-img {
  width: auto;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
}

.block-gallery .lightbox .lightbox-control {
  background:transparent;
  fill: white;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.block-gallery .lightbox .lightbox-control:hover {
  background-color: #ffffff63;
}

.block-gallery .lightbox .lightbox-control>svg {
  width: 60px;
  pointer-events: none;
}

/* image nav */

.block-image_nav .image-nav-grid .image-nav-subgrid {
  margin-bottom: 25px;
}

.block-image_nav .image-nav-grid .image-nav-subgrid img {
  width: 100%;
  object-fit: contain;
  height: fit-content;
}

.block-image_nav .image-nav-grid .image-nav-subgrid h2 {
  margin: 0;
  text-align: center;
  color: var(--text-black);
  font-weight: normal;
}

.block-image_nav .image-nav-grid .image-nav-subgrid:hover h2 {
  color: var(--text-focus);
}

/* hover effect */
.block-image_nav .image-nav-grid .image-nav-subgrid .image-nav-img-wrapper {
  position: relative;
}

.block-image_nav .image-nav-grid .image-nav-subgrid .hover-element {
  visibility: hidden;
  position: absolute;
  width: 0px;
  aspect-ratio: 1/1;
  top: 50%;
  left: 50%;
  transition: 1s cubic-bezier(.19,1,.22,1);
}

/* yoga */
.block-image_nav .image-nav-grid .image-nav-subgrid.yoga .hover-element {
  border-radius: 100%;
  background-color: #4b7ebe6e;
}

.block-image_nav .image-nav-grid .image-nav-subgrid.yoga:hover .hover-element {
  width: 90%;
  top: 5%;
  left: 5%;
  visibility: visible;
}

/* Psychologische Beratung */
.block-image_nav .image-nav-grid .image-nav-subgrid.psychologisch .hover-element {
  background-color: #9bcd966e;
}

.block-image_nav .image-nav-grid .image-nav-subgrid.psychologisch:hover .hover-element {
  width: 80%;
  top: 10%;
  left: 10%;
  visibility: visible;
}

/* Kunsttherapie */
.block-image_nav .image-nav-grid .image-nav-subgrid.kunsttherapie .hover-element {
  border-radius: 100%;
  background-color: #f177376e;
}

.block-image_nav .image-nav-grid .image-nav-subgrid.kunsttherapie:hover .hover-element {
  width: 90%;
  top: 5%;
  left: 5%;
  visibility: visible;
}

.session-wrapper {
  background-color: var(--bg-offcanvas);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.session-wrapper.booked {
  background-color: var(--bg-success);
}

.session-wrapper h3,
.session-wrapper h2 {
  margin: 0;
}

.block-about_us {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.block-about_us > .left-column {
  flex-basis: 600px;
  flex-grow: 1;
}

.block-about_us > img {
  height: auto;
  flex-grow: 1;
  flex-basis: 300px;
  width: 100%;
}

.block-zertifikationen {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 20px;
}

@media screen and (min-width: 576px) {
  .block-gallery .lightbox .lightbox-size-wrapper {
    width: 80vw;
  }
  .block-gallery .lightbox .lightbox-wrapper {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "prev img next";
  }

  .block-image_nav .image-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .block-image_nav .image-nav-grid .image-nav-subgrid {
    grid-row: span 2;
    display: grid;
    grid-template-rows: subgrid;
  }
}

@media screen and (min-width: 1200px) {
  :root {
    --fs-lg: clamp(20px, 2.3vw, 40px);
  }

  .nav-menu-btn {
    display: none;
  }

  .template-homepage .homepage-hero {
    grid-template-areas: "a topnav topnav topnav h"
                        "b b b logo logo"
                        "d d d d d"
                        "e nav nav nav f";
  }

  .template-subpage .homepage-hero {
    grid-template-rows: var(--nav-height) auto auto auto auto;
    grid-template-areas: "a topnav topnav topnav h"
                       "b logo logo logo f"
                       "d d d d d"
                       "e nav nav nav g"
                       "e nav nav nav g";
  }

  .homepage-hero .homepage-hero-nav {
    display: block;
  }

  .homepage-hero .subpage-hero-nav .nav-list {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .template-default .top-nav-default .nav-list {
    display: flex;
  }

  .subpage-hero-nav .nav-list .nav-item {
    color: var(--text-black);
  }
}

@font-face {
  font-family: 'Noto Sans';
  src: url("fonts/NotoSans-VariableFont_wdth,wght.ttf");
}
