/*
--- 01 TYPOGRAPHY SYSTEM

- Font size system (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Font weights
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700

- Line heights
Default: 1
Small: 1.05
Medium: 1.2
Paragraph default: 1.6

- Letter spacing
-0.5px
0.75px

--- 02 COLORS

- Primary: #FDFBF9
- Primary shades: #ffffff (100%)
- Secondary: #88a3b6
- Secondary tints: #6d8292 (20%)
- Secondary shades: #c4d1db (50%), #dbe3e9 (70%), #e7edf0 (80%), #f3f6f8 (90%)
- Accents: #ebabae
- Accents tint: #d49a9d (10%)
- Accents shade: #f3cdce (40%)
- Greys:
#767676 (lightest grey allowed on #fff)
#555
#444
#333

https://coolors.co/palette/edede9-d6ccc2-f5ebe0-e3d5ca-d5bdaf
https://coolors.co/palette/463f3a-8a817c-bcb8b1-f4f3ee-e0afa0

https://coolors.co/palette/d8e2dc-ffe5d9-ffcad4-f4acb7-9d8189
https://coolors.co/palette/ccd5ae-e9edc9-fefae0-faedcd-d4a373
https://coolors.co/palette/ffcdb2-ffb4a2-e5989b-b5838d-6d6875
https://coolors.co/palette/edafb8-f7e1d7-dedbd2-b0c4b1-4a5759
https://coolors.co/palette/f08080-f4978e-f8ad9d-fbc4ab-ffdab9
https://coolors.co/palette/546a76-88a0a8-b4ceb3-dbd3c9-fad4d8
https://coolors.co/palette/cb997e-ddbea9-ffe8d6-b7b7a4-a5a58d-6b705c

https://coolors.co/palette/e63946-f1faee-a8dadc-457b9d-1d3557

--- 05 SHADOWS

0 2.4rem 4.8rem rgba(0, 0, 0, 0.15);

--- 06 BORDER-RADIUS

Default: 9px
Medium: 11px

--- 07 WHITESPACE

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

*/

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #fff;
  --secondary-color: #88a3b6;
  --secondary-color-tint10: #7a93a4;
  --secondary-color-tint20: #6d8292;
  --secondary-color-shade50: #c4d1db;
  --secondary-color-shade60: #cfdae2;
  --secondary-color-shade70: #dbe3e9;
  --secondary-color-shade80: #e7edf0;
  --secondary-color-shade90: #f3f6f8;
  --tertiary-color: #ebabae;
  --tertiary-color-tint10: #d49a9d;
  --tertiary-color-shade40: #f3cdce;
  --grey-dark: #333;
  --grey-medium: #444;
  --grey-light: #555;
}

html {
  /* 10px divided by 16px (default font size) results in 62.5% */
  /* Percentage of user's browser font-size setting */
  font-size: 62.5%;
  overflow-x: hidden;
  /*scroll-behavior: smooth;*/
}

body {
  font-family: Rubik, sans-serif;
  line-height: 1;
  font-weight: 400;
  color: var(--grey-light);
  background-color: var(--primary-color);

  /* This only works if no element is positioned as "absolute" in relation to the body */
  overflow-x: hidden;
}

/*****************************************/
/* GENERAL REUSABLE COMPONENTS */
/*****************************************/

.container {
  max-width: 130rem;
  padding: 0 3.2rem;
  margin: 0 auto;
}

.grid {
  display: grid;
  column-gap: 6.4rem;
  row-gap: 9.6rem;
}

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.grid--2-cols-center {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 0rem;
  align-items: center;
}

.grid--2by2-matrix {
  grid-template-columns: 1fr 1fr; /* Zwei Spalten, jeweils 1fr breit */
  grid-template-rows: 1fr 1fr; /* Zwei Zeilen, jeweils 1fr hoch */
  column-gap: 6.4rem;
  row-gap: 4rem;
}

.grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.heading-primary,
.heading-secondary {
  font-family: Baskervville, serif;
  font-weight: 700;
  color: var(--grey-dark);
  letter-spacing: -0.5px;
}

.heading-primary {
  font-size: 10.4rem;
  line-height: 1.05;
}

.heading-secondary {
  font-size: 4.4rem;
  line-height: 1.2;
  margin-bottom: 4.8rem;
}

.heading-tertiary {
  font-size: 2.4rem;
  line-height: 1.6;
  margin-bottom: 2.4rem;
}

.subheading {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--secondary-color-tint20);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  letter-spacing: 0.75px;
}

.btn,
.btn:link,
.btn:visited {
  display: inline-block;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  padding: 1.6rem 3.2rem;
  border-radius: 9px;
  /* Always put transition on original state */
  transition: all 0.3s;

  /*Only necessary for .btn*/
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn--full:link,
.btn--full:visited {
  background-color: var(--tertiary-color);
  color: var(--grey-medium);
}

.btn--full:hover,
.btn--full:active {
  background-color: var(--tertiary-color-tint10);
  color: var(--grey-medium);
}

.btn--outline:link,
.btn--outline:visited {
  background-color: var(--secondary-color-shade70);
  color: var(--grey-light);
}

.btn--outline:hover,
.btn--outline:active {
  background-color: var(--secondary-color-shade60);
  color: var(--grey-light);
  /* Trick to add border inside */
  box-shadow: inset 0 0 0 3px var(--secondary-color-shade60);
}

.btn--dark:link,
.btn--dark:visited {
  background-color: var(--secondary-color-tint10);
  color: var(--primary-color);
}

.btn--dark:hover,
.btn--dark:active {
  background-color: var(--secondary-color-tint20);
  color: var(--primary-color);
}

.margin-right-sm {
  margin-right: 1.6rem !important;
}

.features-icon {
  fill: var(--primary-color);
  width: 2.4rem;
  height: 2.4rem;
}

.features-icon-small-light {
  fill: var(--primary-color);
  width: 1.6rem;
  height: 1.6rem;
  vertical-align: text-bottom;
}

.features-icon-dark {
  fill: var(--grey-light);
  width: 2.4rem;
  height: 2.4rem;
  vertical-align: text-bottom;
}

.icon-text {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

a {
  color: inherit; /* Inherits the color from the parent element */
  text-decoration: none; /* Removes the underline */
}

.sectionborder1 {
  margin: -3px;
}

.sectionborder2 {
  margin: -5px;
}

/*****************************************/
/* HEADER */
/*****************************************/
.header {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--secondary-color);
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.03);

  /* Because we want the header to be sticky later, we set a fixed height*/
  height: 8rem;
  transition: height 0.3s;
  padding: 0 4.8rem;
}

.sticky {
  height: 6.4rem;
  transition: height 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 6rem;
}

/*****************************************/
/* NAVIGATION */
/*****************************************/
.main-nav-list-logo {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.main-nav-link-logo:link,
.main-nav-link-logo:visited {
  display: inline-block;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 1.8rem;
  transition: all 0.3s;
  font-family: Baskervville, serif;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.main-nav-link-logo:hover,
.main-nav-link-logo:active {
  color: var(--primary-color);
}

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4.8rem;
}

.main-nav-link:link,
.main-nav-link:visited {
  display: inline-block;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.8rem;
  transition: all 0.3s;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: var(--primary-color);
}

.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
  padding: 1.2rem 2.4rem;
  border-radius: 9px;
  color: var(--grey-medium);
  background-color: var(--tertiary-color);
}
.main-nav-link.nav-cta:hover,
.main-nav-link.nav-cta:active {
  background-color: var(--tertiary-color-tint10);
}

/*****************************************/
/* HERO SECTION */
/*****************************************/

.section-hero {
  padding: 19.2rem 0 19.2rem 0;
}

.hero-text-container {
  max-width: 120rem;
  padding: 0 6.4rem 0 6.4rem;
  margin: 0 auto;
}

.hero-description {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 4.8rem;
}

.hero-img-box {
  padding: 0 6.4rem 0 0;
}

.hero-img {
  width: 100%;
  border-radius: 11px;
}

/*****************************************/
/* OFFERINGS SECTION */
/*****************************************/

.section-offerings {
  padding: 9.6rem 0 9.6rem 0;
}

.offering-description {
  padding: 0 4.8rem 0 4.8rem;
}

/* Styles for the box */
.box {
  width: 100%; /* Adjust width as needed */
  border-radius: 9px; /* Rounded corners */
  overflow: hidden; /* Ensures rounded edges apply to inner content */
  background-color: var(--secondary-color-shade80);
  /*box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);*/ /* Optional shadow */
}

/* Header part with a specific color */
.box-header {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 600;
  text-align: left;
  padding: 1.2rem 3.2rem;
  width: 100%;
  border: none;
  outline: none;
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

/* Body part with a different color */
.box-body {
  padding: 1.6rem 3.2rem 1.6rem 3.2rem;
  font-size: 1.6rem;
  line-height: 1.6;
  background-color: var(--secondary-color-shade80);
}

.box-body-rose {
  padding: 1.6rem 3.2rem 1.6rem 3.2rem;
  background-color: var(--tertiary-color-shade40);
}

/*****************************************/
/* PRACTICE SECTION */
/*****************************************/

.section-practice {
  padding: 19.2rem 0 19.2rem 0;
  background-color: var(--secondary-color-shade70);
  margin: -2px;
}

.section-practice-bordercolor1 {
  stop-color: var(--secondary-color-shade70);
}

.section-practice-bordercolor2 {
  stop-color: var(--secondary-color-shade90);
}

.practice-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  padding: 3.2rem 3.2rem 0 3.2rem;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: 11px;
}

.practice-img-mobile {
  display: none;
}

/*****************************************/
/* ABOUT ME SECTION */
/*****************************************/
.section-aboutme {
  padding: 9.6rem 0 19.2rem 0;
  margin: 0;
}

.aboutme-img-box {
  padding: 3.2rem 3.2rem 0 3.2rem;
}

.accordion {
  transition: 0.4s;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 600;
  padding: 1.2rem 3.2rem;
  cursor: pointer;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.accordion-top {
  border-radius: 9px 9px 0 0;
}

.active,
.accordion:hover {
  background-color: var(--secondary-color-tint20);
}

.accordion:after {
  content: "\002B";
  float: right;
  margin-left: auto;
}

.active:after {
  content: "\2212";
}

.panel {
  padding: 0 1.6rem;
  font-size: 1.6rem;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: var(--secondary-color-shade80);
}

.panel-bottom {
  border-radius: 0 0 9px 9px;
}

.content-description {
  margin: 1.6rem 1.6rem 3.2rem 1.6rem;
}

/*****************************************/
/* REFERRER SECTION */
/*****************************************/
.section-referrer {
  padding: 9.6rem 0 19.2rem 0;
  background-color: var(--secondary-color-shade50);
  margin: -2px;
}

.section-referrer-bordercolor1 {
  stop-color: var(--secondary-color-shade50);
}

.section-referrer-bordercolor2 {
  stop-color: var(--secondary-color-shade90);
}

.referrer-img-box {
  padding: 3.2rem 3.2rem 0 3.2rem;
}

.referrer-icon-container {
  display: flex;
  justify-content: center; /* Center the icons horizontally */
  gap: 5.6rem; /* Space between icons */
}

.referrer-icon-img {
  height: 6.4rem;
}

/*****************************************/
/* CTA SECTION */
/*****************************************/

.section-cta {
  padding: 11.2rem 0 9.6rem 0;
}

.cta-text {
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 4.8rem;
}

.cta-text-no-margin {
  font-size: 1.8rem;
  line-height: 1.6;
}

.qrcode-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.qrcode-image-text {
  text-align: center;
}

.vcard-btn {
  display: none;
}

#winterthurkarte_small {
  display: none;
}

/*****************************************/
/* FOOTER */
/*****************************************/

.footer {
  background-color: var(--secondary-color);
  padding: 5.6rem 0 0 0;
  border-top: 1px solid #eee;
}

.container-footer {
  max-width: 150rem;
  padding: 0 3.2rem;
  margin: 0 auto;
}

.logo-col,
.address-col,
.info-col {
  font-size: 1.4rem;
  line-height: 1.8rem;
  margin-bottom: 4.8rem;
  color: var(--primary-color);
  justify-self: center;
}

.logo-col {
  justify-items: center;
}

.footer-heading {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 3.2rem;
}

.contacts {
  font-style: normal;
}

.address {
  margin-bottom: 2.4rem;
}

.info-nav {
  list-style: none;
}

.footer-link:link,
.footer-link:visited {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s;
}

.footer-link:hover,
.footer-link:active {
  color: var(--primary-color);
}

/*****************************************/
/* DATENSCHUTZERKLAERUNG */
/*****************************************/

.paragraph-inbetween,
.paragraph-inbetween-pre-ul,
.paragraph-last {
  font-size: 2rem;
  line-height: 1.6;
}

.paragraph-inbetween {
  padding-bottom: 2.8rem;
}

.paragraph-last {
  padding-bottom: 4.8rem;
}

/*****************************************/
/* LIGHTBOX */
/*****************************************/

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
.lightboxContent {
  background: var(--primary-color);
  padding: 3.2rem;
  max-width: 120rem;
  width: 90%;
  max-height: 80vh; /* Limits the height to 80% of the viewport */
  overflow-y: auto; /* Enables vertical scrolling */
  border-radius: 9px;
  position: relative;
}

.lightboxContent-ul {
  padding-top: 1.2rem;
  padding-left: 2.4rem;
}

.closeLightbox {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 1.5rem;
}

/*****************************************/
/* HAMBURGER MENU */
/*****************************************/

*,
*::after,
*::before {
  box-sizing: border-box;
}

:root {
  --bar-width: 50px;
  --bar-height: 5px;
  --hamburger-gap: 6px;
  --foreground: #333;
  --background: white;
  --hamburger-margin: 8px;
  --animation-timing: 200ms ease-in-out;
  --hamburger-height: calc(var(--bar-height) * 3 + var(--hamburger-gap) * 2);
}

.hamburger-menu {
  --x-width: calc(var(--hamburger-height) * 1.41421356237);

  display: none; /*needs to change to flex*/
  flex-direction: column;
  gap: var(--hamburger-gap);
  width: max-content;
  /*position: absolute;*/
  top: var(--hamburger-margin);
  left: var(--hamburger-margin);
  z-index: 2;
  cursor: pointer;
}

.hamburger-menu:has(input:checked) {
  --foreground: white;
  --background: #333;
}

.hamburger-menu:has(input:focus-visible)::before,
.hamburger-menu:has(input:focus-visible)::after,
.hamburger-menu input:focus-visible {
  border: 1px solid var(--background);
  box-shadow: 0 0 0 1px var(--foreground);
}

.hamburger-menu::before,
.hamburger-menu::after,
.hamburger-menu input {
  content: "";
  width: var(--bar-width);
  height: var(--bar-height);
  background-color: var(--primary-color);
  border-radius: 9999px;
  transform-origin: right center;
  transition: opacity var(--animation-timing), width var(--animation-timing),
    rotate var(--animation-timing), translate var(--animation-timing),
    background-color var(--animation-timing);
}

.hamburger-menu input {
  appearance: none;
  outline: none;
  pointer-events: none;
}

.hamburger-menu:has(input:checked)::before {
  rotate: -45deg;
  width: var(--x-width);
  translate: 0 calc(var(--bar-height) / -2);
}

.hamburger-menu:has(input:checked)::after {
  rotate: 45deg;
  width: var(--x-width);
  translate: 0 calc(var(--bar-height) / 2);
}

.hamburger-menu input:checked {
  opacity: 0;
  width: 0;
}

.sidebar {
  transition: translate var(--animation-timing);
  translate: -100%;
  padding: 0.5rem 1rem;
  padding-top: calc(var(--hamburger-height) + var(--hamburger-margin) + 1rem);
  background-color: var(--foreground);
  color: var(--background);
  max-width: 10rem;
  min-height: 100vh;
}

.hamburger-menu:has(input:checked) + .sidebar {
  translate: 0;
}
