/*//////////////////////////////////*/
/* TYPOGRAPHIE: BASIC STYLES        */
/*//////////////////////////////////*/

/* Preset Font Styles */
body {
  font-size: 1.125rem;
  line-height: 150%;
}
h1 {
  font-size: 5.5rem;
}
h2 {
  font-size: 3.75rem;
}
h3 {
  font-size: 3.25rem;
}
h4 {
  font-size: 2.5rem;
}
h5 {
  font-size: 2rem;
}
h6 {
  font-size: 1.5rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 125%;
  text-wrap: balance;
}

/* Tablet Font Styles */
@media screen and (max-width: 991px) {
  h1 {
    font-size: 4.2rem;
  }
  h2 {
    font-size: 3.2rem;
  }
  h3 {
    font-size: 2.8rem;
  }
  h4 {
    font-size: 2.4rem;
  }
  /* h5 { font-size: 2 rem } */
  /* h6 { font-size: 1.5rem } */
}
/* Landscape Font Styles */
@media screen and (max-width: 767px) {
  h1 {
    font-size: 3.8rem;
  }
  h2 {
    font-size: 2.8rem;
  }
  h3 {
    font-size: 2.6rem;
  }
  /* h4 { font-size: 2.4rem } */
  /* h5 { font-size: 2 rem } */
  /* h6 { font-size: 1.5rem } */
}
/* Portrait Font Styles */
@media screen and (max-width: 479px) {
  h1 {
    font-size: 3.2rem;
  }
  /* h2 { font-size: 2.8rem } */
  /* h3 { font-size: 2.6rem } */
  /* h4 { font-size: 2.4rem } */
  /* h5 { font-size: 2 rem } */
  /* h6 { font-size: 1.5rem } */
}

/*//////////////////////////////////*/
/* TYPOGRAPHIE: UTILITY CLASSES     */
/*//////////////////////////////////*/

/* Line Clamp */
.is--clamp1,
.is--clamp2,
.is--clamp3,
.is--clamp4 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.is--clamp2 {
  -webkit-line-clamp: 2;
}
.is--clamp3 {
  -webkit-line-clamp: 3;
}
.is--clamp4 {
  -webkit-line-clamp: 4;
}

/* Text Overflow Ellipsis */
.is--ellipsis {
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* text wrap */
.is--wrap {
  text-wrap: balance;
}

/*//////////////////////////////////*/
/* TYPOGRAPHIE: DEFAULT FIXING      */
/*//////////////////////////////////*/

/* Reset Webflow Presets */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  margin-top: 0;
  margin-bottom: 0;
}
.w-richtext > *:first-child {
  margin-top: 0;
}
.w-richtext > *:last-child {
  margin-bottom: 0;
}

/* Font Smoothing */
/*
body { font-smoothing: antialiased; -webkit-font-smoothing: antialiased; }
*/

/* Links nur im Fließtext hervorheben */
a {
  text-decoration: inherit;
  color: inherit;
}
:is(h1, h2, h3, h4, h5, h6, p) a {
  text-decoration: underline;
}

/*//////////////////////////////////*/
/* ALLGEMEINE UTILITY CLASSES       */
/*//////////////////////////////////*/

.is--click {
  pointer-events: auto;
}
.is--noclick {
  pointer-events: none;
}
.is--childclick {
  pointer-events: none;
}
.is--childclick > * {
  pointer-events: auto;
}

.is--disabled {
  pointer-events: none;
  opacity: 0.33;
}
.is--disabled > * {
  pointer-events: auto;
}

.is--flipped {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

.is--cover {
  width: 100%;
  height: 100%;
}
.is--cover-absolute {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* icon styles */
.icon-fill svg,
.icon-stroke svg {
  width: 100% !important;
  height: 100% !important;
}
.icon-fill * {
  fill: currentColor !important;
}
.icon-stroke * {
  stroke: currentColor !important;
}

/*//////////////////////////////////*/
/* CUSTOM STYLES                    */
/*//////////////////////////////////*/

/* remove horizontal scroll & scroll bounce */
body {
  overscroll-behavior: none;
}
.page_wrap {
  overflow: clip;
}

/* section styles */
main section,
header,
footer {
  position: relative;
}

/* container styles */
.w-container {
  position: relative;
  width: 100%;
  container-type: inline-size;
}

/* hide container ::before & ::after */
.w-container::before,
.w-container::after {
  display: none;
}

/* empty div in designer view when utilities are added */
.wf-empty[class*="--"] {
  padding-bottom: 0;
  padding-right: 0;
}

/* flex: reverse direction */
[reverse-direction="true"] {
  flex-direction: row-reverse;
}

/*//////////////////////////////////*/
/* SCROLLBAR STYLES                 */
/*//////////////////////////////////*/

:root {
  --sb-track-color: #cfcfcf;
  --sb-thumb-color: #666666;
  --sb-hover-color: #333333;
  --sb-size: 14px;
}

/* WebKit browsers */
html::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: var(--sb-size);
  height: var(--sb-size);
}

html::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: var(--sb-track-color);
}

html::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border: 2px solid var(--sb-track-color);
  transition: background-color 0.15s ease;
}

html::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: var(--sb-hover-color);
}

/* Firefox (non-WebKit) */
@supports not selector(::-webkit-scrollbar) {
  /* Apply to root to cover all elements that inherit scrollbar styles */
  :root {
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
    /* you can also set 'scrollbar-width' to 'thin' or 'auto' */
    scrollbar-width: auto;
  }
}
