:root {
  --primary-color:#E0FF4F;
  --secondary-color: #014589;
  --highlight-color: green;
  --primary-bg-color: #00272B;
  --secondary-bg-color: #1E262E;
  --primary-gradient-fallback: #014689;
  --primary-gradient: /** Created with https://www.css-gradient.com Gradient link: https://www.css-gradient.com/?c1=014689&c2=014689&gt=r&gd=dtr*/ radial-gradient(at right top, #014689, #014689);
  --secondary-gradient-fallback: #334455;
  --secondary-gradient: radial-gradient(at center, #334455, #253543);
  --tertiary-gradient-fallback: #9A8563;
  --tertiary-gradient: linear-gradient(45deg, #9A8563, #BCB09D);
  --gradient-basic: linear-gradient(to right top, #9a8563, #9a8563, #9a8563, #9a8563, #9a8563, #9d8968, #a08c6c, #a39071, #a9987c, #b0a087, #b6a892, #bcb09d);
  --bg-light: #F4F5F7;
  --text-color: #f5f5f5;
  --link-color: grey;
  --font-size-base: 16px;
  --spacing-xs: 8px;
  --spacing-s: 16px;
  --spacing-m: 32px;
  --spacing-l: 64px;
  --spacing-xl: 150px;
  --negative-spacing-xs: -8px;
  --negative-spacing-s: -16px;
  --negative-spacing-m: -32px;
  --negative-spacing-l: -64px;
  --negative-spacing-xl: -150px;
  --border-radius-s: 8px;
  --border-radius-m: 16px;
  --border-radius-l: 32px;
  --shadow: 0px 3px 5px 0px rgba(0,0,0,0.51);
  --shadow-wide: 0px 3px 30px 0px rgba(0,0,0,0.15);
}

@media screen and (max-width: 900px) {
  :root {
    --spacing-l: 32px;
    --spacing-xl: 64px;
  }
}

.sr-only,
.invisible {
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  float: left;
  z-index: -100;
}

body {
  font-family: 'Inter';
  font-weight: 300;
  background-color: var(--primary-bg-color);
}

@media screen and (max-width: 960px) {
  #header, #main, #footer-main, #hero .content-wrapper {
    padding: var(--spacing-s) var(--spacing-m);
  }
}

@media screen and (min-width: 960px) and (max-width: 1200px) {
  #header, #main, #footer-main, #hero .content-wrapper {
    padding: var(--spacing-s) var(--spacing-l);
  }
}

@media screen and (min-width: 1201px) {
    #header, #main, #footer-main, #hero .content-wrapper {
      max-width: 1600px;
      margin-inline: auto;
      padding: var(--spacing-s) var(--spacing-l);
    }
}

@media screen and (min-width: 1600px) {
  #header, #main, #footer-main, #hero .content-wrapper {
    max-width: 1600px;
    margin-inline: auto;
    padding: var(--spacing-s) var(--spacing-xl);
  }
}

@media screen and (min-width: 1800px) {
  #header, #main, #footer-main, #hero .content-wrapper {
    padding-inline: 0;
  }
}

ul, ol {
  margin-left: var(--spacing-s)
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--spacing-m);
}

h1 {
  font-size: clamp(1.75em, 5vw, 4em);
}

@media screen and (min-width: 1600px) {
  h1 {
    font-size: clamp(1.75em, 5vw, 5em);
  }
}

h2 {
  font-size: clamp(1.25em, 5vw, 4.25em);
}

h2:first-child.content-headline,
h2.content-headline.space-bottom {
   position: relative;
  padding-left: var(--spacing-s);
}

@media screen and (min-width: 900px) {
  h2:first-child.content-headline,
  h2.content-headline.space-bottom {
    padding-left: var(--spacing-m);
  }
}

h2:first-child.content-headline::before,
h2.content-headline.space-bottom::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background-color: var(--primary-color);
  transition: height 1s ease-out;
}

h2:first-child.content-headline.animate::before,
h2.content-headline.space-bottom.animate::before {
  height: 100%;
}

h3 {
  font-size: clamp(1.75em, 5vw, 3.4375em)
}

h4 {
  font-size: clamp(1.5em, 5vw, 2.5em)
}

h5 {
  font-size: clamp(1.15em, 5vw, 1.875em)
}

h6 {
  font-size: clamp(1em, 5vw, 1.5em)
}

p {
  margin-bottom: var(--spacing-m);
  font-size: clamp(1em, 2vw, 1.25em);
  line-height: 1.5;
}

li {
  font-size: clamp(1em, 2vw, 1.45em);
  margin-bottom: var(--spacing-xs);
}

@media screen and (min-width: 1600px) {
  p {
    font-size: clamp(1em, 2vw, 1.5em);
  }
}

.rte ul {margin-bottom: var(--spacing-m);}

strong {
  font-weight: 700;
}

a:hover {
  cursor: pointer;
  text-decoration: underline;
}

a:hover,
a:hover::before {
  color: var(--secondary-color);
}

a:hover::before {
  text-decoration: none;
}

button:hover {
  cursor: pointer;
}

.rte:last-child {
  margin-bottom: var(--spacing-l);
}

.space-bottom {
  margin-bottom: var(--spacing-xl);
}

.content-headline.space-bottom {
  color: var(--primary-color);
}

.box .rte:last-child {
  margin-bottom: 0;
}

.test {
  background: var(--primary-gradient-fallback);
  background: var(--primary-gradient);
  border-radius: var(--border-radius-s);
}

.text-dark {
  color: var(--text-color);
}


.bg-dark,
.bg-light {
  padding: var(--spacing-m);
  border-radius: var(--border-radius-l);
  margin-bottom: var(--spacing-xl);
  margin-inline: var(--negative-spacing-s);
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-dark {
  background: var(--secondary-gradient-fallback);
  background: var(--secondary-gradient);
}

@media screen and (min-width: 2100px) {
  .bg-dark,
  .bg-light {
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-l);
    margin-bottom: var(--spacing-xl);
    margin-left: var(--negative-spacing-xl);
    margin-right: var(--negative-spacing-xl);
  }
}

.bg-dark h2:not(.handorgel__header)::after {
  content: '';
  background: var(--primary-color);
  width: 80px;
  height: 5px;
  display: block;
  margin: .25em 0 1em;
}

.box-2 {
  background: var(--gradient-basic);
  padding: var(--spacing-m);
  border-radius: var(--border-radius-l);
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing-xl);
  color: white;
  align-self: baseline;
}

.box-1 h2,
.box-2 h2 {
  /*font-size: clamp(1.75em, 5vw, 3.4375em);*/
  font-size: clamp(1.75em, 5vw, 2.5em);;
}

.box-1 {
  border-radius: var(--border-radius-l);
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing-xl);
  color: white;
  overflow: hidden;
  color: var(--text-color);
}

.box-1 .rte {
  padding: var(--spacing-m);
}

.box-1 .rte:last-child,
.box-1 .rte li:last-child,
.box-1 .rte ul {margin-bottom: 0;}

.box-1 ul li {padding-left: var(--spacing-s);margin-bottom: var(--spacing-m);}

.box-1 ul li::marker {
  content: attr(data-icon); 
  font-family: "crconsulting";
  font-style: normal;
  font-weight: normal;
  speak: never;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: var(--spacing-m);
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: '\e801';
  color: var(--primary-color);
}

.box-1 h2 {
  background: var(--gradient-basic);
  padding: var(--spacing-m);
  color: white;
  margin-bottom: 0;
  /*border-radius: 0 var(--border-radius-l) var(--border-radius-l) 0;*/
  align-self: stretch;
  flex-basis: 30vw;
}

@media screen and (max-width: 768px) {
  img {
    width: 100%;
    height: auto;
  }
}

/*Header*/
#head-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-s);
  box-shadow: var(--shadow-wide);
  border-radius: var(--border-radius-s);
  padding: var(--spacing-s) var(--spacing-m);
  background-color: white;
}

#head-main img {
  min-width: 130px;
  max-width: 230px;
  width: 100%;
  height: auto;
}

.mod_navigation ul {
  display: flex;
  list-style-type: none;
  gap: var(--spacing-m);
}

.mod_navigation ul li {
  margin-bottom: 0;
  font-size: clamp(1em, 2vw, 1.15em);
}

.mod_navigation a, 
.mod_navigation strong {
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
}

.mod_navigation a:hover {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--primary-color);
}

.mod_navigation strong.active {
  border-bottom: 2px solid var(--primary-color);
}

/*START*/
#open-sidebar-button{
  display: none;
  background: none;
  border: none;
  padding: 1em;
  margin-left: auto;
  cursor: pointer;
}
#close-sidebar-button{
  display: none;
  background: none;
  border: none;
  padding: 1em;
  cursor: pointer;
}
#overlay{
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  inset: 0;
  z-index: 9;
  display: none;
}

@media screen and (max-width: 950px) {
  #open-sidebar-button, #close-sidebar-button{
    display: block;
  }
  .mod_navigation{
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(15em, 100%);
    z-index: 10;
    border-left: 1px solid var(--hover-color);
    transition: right 300ms ease-in-out;
    background-color: var(--bg-light);
    box-shadow: 3px 0 24px 8px rgba(0,0,0,0.5);
  }
  .mod_navigation.show{
    right: 0;
  }
  .mod_navigation.show ~ #overlay{
    display: block;
  }
  .mod_navigation ul{
    width: 100%;
    flex-direction: column;
  }
  .mod_navigation a,
  .mod_navigation strong {
    width: 100%;
    margin-left: var(--spacing-m);
  }
  .mod_navigation a.active-link{
    border-bottom: none;
  }
  .mod_navigation .home-li{
    margin-right: unset;
  }
}

/*Hero*/
#hero {
  position: relative;
  top: -139px;
  z-index: -1;
}

#hero .bg-container {
  background-size: cover;
  background-position: right center;
  min-height: 600px;
}

@media screen and (min-width: 1200px) {
  #hero .bg-container {
    height: 100vh;
  }
}

#hero .content-wrapper {
  padding-top: 150px;
  display: flex;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

#hero .content-wrapper .content-text {
  max-width: 900px;
  margin-bottom: var(--spacing-l);
  color: white;
  box-sizing: border-box;
  position: relative;
  padding-left: var(--spacing-s);
}

@media screen and (min-width: 600px) and (max-width: 1400px) {
  #hero .content-wrapper .content-text {
    max-width: 50vw;
  }
}

#hero .content-wrapper .content-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background-color: var(--primary-color);
  transition: height 1s ease-out;
}

#hero .content-wrapper .content-text.animate::before {
  height: 100%;
}

@media screen and (min-width: 900px) {
  #hero .content-wrapper .content-text {
    padding-left: var(--spacing-m);
  }
}
/*
@media screen and (min-width: 1600px) {
  #hero .content-wrapper .content-text {
    margin-left: var(--negative-spacing-m);
  }
}*/

#hero .text-dark .content-wrapper .content-text {
  color: var(--text-color);
}

#hero h1 {
  margin-bottom: var(--spacing-l);
}

#hero h2 {
  font-size: clamp(1.25em, 5vw, 2.75em);
}

@media screen and (min-width: 1600px) {
  #hero h2 {
    font-size: clamp(1.25em, 5vw, 3.4375em);
  }
}

#hero .content-wrapper .content-text .rte:last-child,
#hero h2 {
  margin-bottom: 0;
}

@media screen and (max-width: 900px) {
  #container {
    position: relative;
    top: -50px;
  }
}

/*Columns-2*/
@media screen and (min-width: 900px) {
.columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-l);
}
}

/*Content-Text*/

#main .content-text:first-child h2 {
  border-left: 3px solid var(--primary-color);
  padding-left: var(--spacing-s);
  margin-bottom: var(--spacing-l)
}

@media screen and (min-width: 900px) {
  #hero .content-wrapper .content-text {
    padding-left: var(--spacing-m);
  }
}
/*
@media screen and (min-width: 1600px) {
  #main .content-text:first-child h2 {
    margin-left: var(--negative-spacing-m);
  }
}
*/

#main .content-text:first-of-type p {
  /*font-size: clamp(1.25em, 2vw, 1.6em);*/
  font-size: clamp(1.1em, 2vw, 1.4em);
}

/*Media*/

.content-text.media .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: center;
  justify-content: space-between;
}

.content-text.media figure {

}

.content-text.media figure::after {
  content: "";
  background-image: url('../../files/queuebillard/theme/img/drop-shadow.svg');
  display: flex;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top left;
  width: 100%;
  height: 50px;
}

.content-text.media figure img {
  display: block;
  border-radius: var(--border-radius-m);
  overflow: hidden;

  max-width: 100%;
  height: auto;
}

.content-text.media .content-wrapper .rte:last-child {
  margin-bottom: 0;
}

.content-text.media h2 {
  width: 100%;
  margin-bottom: var(--spacing-l);
}

@media screen and (min-width: 768px) {
.content-text.media.media--right .content-wrapper figure {
  order: 2;
  flex: 0 0 auto;
  max-width: 50%;
  /*flex-basis: 50%;*/
}

.content-text.media.media--right .content-wrapper .rte {
  order: 1;
  flex: 1;
  /*max-width: 50%;*/
}

.content-text.media.media--left .content-wrapper figure {
  order: 1;
  flex: 0 0 auto;
  max-width: 50%;
}

.content-text.media.media--left .content-wrapper .rte {
  order: 2;
  flex: 1;
}

.content-text.media.media--top .content-wrapper figure {
  order: 1;
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.content-text.media.media--top .content-wrapper .rte {
  order: 2;
  width: 100%;
}

.content-text.media.media--bottom .content-wrapper figure {
  order: 2;
  width: 100%;
  max-width: 100%;
  margin-top: 1.5rem;
}

.content-text.media.media--bottom .content-wrapper .rte .rte {
  order: 1;
  width: 100%;
}
}


/*Teaser*/
.teaser-container {
  display: grid;
  grid-template-rows: auto auto;
  grid-gap: var(--spacing-s);
  margin-bottom: var(--spacing-m);
  row-gap: 0;
  box-sizing: border-box;
}

@media screen and (min-width: 768px) {
  .teaser-container {
    grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
  }
}

@media screen and (min-width: 1200px) {
  .teaser-container {
    grid-gap: var(--spacing-l);
  }
}

@media screen and (min-width: 1200px) {
  .teaser-container {
    margin-bottom: var(--spacing-l);
  }
}

.teaser-container .teaser-item {
  background-color: white;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  border-radius: var(--border-radius-m);
  overflow: hidden;
  margin-bottom: var(--spacing-m);
  row-gap: 0;
}

.teaser-container .teaser-item h3 {
  display: flex;
  align-items: center;
  background: var(--primary-gradient);
  padding: var(--spacing-s) var(--spacing-m);
  color: white;
  margin-bottom: 0;
  font-size: clamp(1em, 5vw, 1.15em);
}

@media screen and (min-width: 900px) {
  .teaser-container .teaser-item h3 {
    font-size: clamp(1em, 5vw, 1.75em);
  }
}

@media screen and (min-width: 1401px) {
  .teaser-container .teaser-item h3 {
    font-size: clamp(1em, 5vw, 2.5em);
  }
}


.teaser-container .teaser-item:nth-child(2) h3 {
  background: var(--tertiary-gradient);
}

.teaser-content {
  padding: var(--spacing-m);
  color: var(--text-color);
}

.teaser-content > *:last-child {
  margin-bottom: var(--spacing-m)
}

/* --- Animations-Vorbereitung --- */

/* 
  Initialer, unsichtbarer Zustand für alle Teaser-Items.
  Sie sind durchsichtig und leicht verschoben.
  Die 'transition' sorgt für den sanften Übergang.
*/
.teaser-item {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 
  Startposition für die ungeraden Elemente (1., 3., ...).
  Sie starten 50px weiter links.
*/
.teaser-item:nth-child(odd) {
  transform: translateX(-50px);
}

/* 
  Startposition für die geraden Elemente (2., 4., ...).
  Sie starten 50px weiter rechts.
*/
.teaser-item:nth-child(even) {
  transform: translateX(50px);
}

/* 
  Dieser Zustand wird per JavaScript hinzugefügt, sobald das Element sichtbar wird.
  Das Element wird voll sichtbar (opacity: 1) und an seine 
  ursprüngliche Position geschoben (transform: translateX(0)).
*/
.teaser-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/*rsce_text-icon*/
.content-rsce-text-icon .header-group {
  display: flex;
  align-items: center;
}

.content-rsce-text-icon .header-group i {
  margin-bottom: var(--spacing-m);
  font-size: 2em;
  color: var(--primary-color);
}

.content-rsce-text-icon .header-group i::before {
  margin-left: 0;
}

/*Contactbox*/
.content-rsce-contactbox {
  border: 2px solid var(--primary-color);
  padding: var(--spacing-m);
  border-radius: var(--border-radius-l);
  margin-bottom: var(--spacing-xl);

  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-l);
}

@media screen and (min-width:996px) {
  .content-rsce-contactbox {
    flex-wrap: nowrap;
  }
}

.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-headline {
  /*font-size: clamp(1.75em, 5vw, 3.4375em);*/
}

.content-rsce-contactbox img {
  border-radius: var(--border-radius-m);
}

.contact-name {
  margin-bottom: 0;
}

.contact-links,
.contact-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-s);
    margin-left: 0;
}

.contact-links ul {
  list-style-type: none;
}

.contact-links a {
  color: var(--text-color);
  font-size: 1.5em;
  text-decoration: none;
}

.contact-links [class^="icon-"]::before, .contact-links [class*=" icon-"]::before {
  margin-left: 0;
  margin-right: var(--spacing-s);
}

/*Tab-Accordion*/
  .handorgel__header__button,
  .handorgel__content {
    border-top: none;
    background-color: transparent;
    color: white;
  }

  .handorgel__header__button {
    background-color: rgba(255,255,255,0.1);
    border-radius: var(--spacing-s);
    margin-bottom: var(--spacing-m);
  }

  .handorgel__header {
    font-size: 16px;
    opacity: 0.5;
  }

  .tab-content {
    color: white;
  }

  .handorgel__header {
    font-size: 1.25em;
  }

  .handorgel__header--open .handorgel__header__button {
    font-weight: 700;
  }

  .handorgel__content__inner h2 {
    display: none;
  }

  .tab-content h3 {
    font-size: clamp(1.5em, 5vw, 2.5em);
  }

@media screen and (min-width: 992px) {
  .content-accordion {
    display: flex;
  }

  .tab-header {
    width: 40%;
  }

  .tab-content {
    width: 60%;
  }

  .handorgel__header--opened {
    opacity: 1;
  }

  .handorgel__header {
    margin-left: -30px;
  }

  .handorgel__header__button::before {
    font-family: "crconsulting";
    font-style: normal;
    font-weight: normal;
    speak: never;
    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: '\e817';
    margin-right: var(--spacing-xs);

    color: transparent;
  }

  .handorgel__header--open .handorgel__header__button::before {
    color: var(--primary-color);
  }

  .handorgel__header__button {
    background-color: transparent;
    border-radius: 0;
    margin-bottom: 0;
  }

  .handorgel__content__inner h2 {
    display: block;
  }

  .tab-content h2 {
    font-size: clamp(1.75em, 5vw, 3.4375em);
  }

  .tab-content h2::after {
    content: '';
    background: var(--primary-color);
    width: 80px;
    height: 5px;
    display: block;
    margin: .25em 0 1em;
  }

}

@media screen and (min-width: 992px) and (max-width: 1368px) {
  .handorgel__header {
    font-size: 1em;
  }
}

/*Kontaktformular*/
.ce_form .widget-text,
.ce_form .widget-textarea {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--spacing-s);
  gap: var(--spacing-xs);
  flex-basis: 50%;
}

.flex-item {
  display: flex;
  gap: var(--spacing-s);
  flex-basis: 50%;
  flex-grow: 1;
}

.ce_form input.text {
  width: 100%;
  height: 44px;
  border-radius: var(--border-radius-s);
}

.ce_form textarea {
  border-radius: var(--border-radius-s);
  min-height: 176px;
}

.ce_form fieldset {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--spacing-s);
  gap: var(--spacing-xs);
}

.ce_form fieldset legend {
  margin-bottom: var(--spacing-xs);
}

/*Button*/

.btn::before,
.submit::before {
  content: attr(data-icon); 
  font-family: "crconsulting";
  font-style: normal;
  font-weight: normal;
  speak: never;

  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .5em;
  text-align: center;
  /* opacity: .8; */

  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;

  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;

  /* you can be more comfortable with increased icons size */
  /* font-size: 120%; */

  /* Font smoothing. That was taken from TWBS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: '\e80c';
  color: var(--primary-color);
  font-size: 1em;
}

.submit::before {
  color: white;
}

.btn, 
.submit {
  background-color: transparent;
  border: 3px solid var(--text-color);
  border-radius: var(--border-radius-s);
  padding: var(--spacing-s) var(--spacing-m);
  color: var(--text-color);
  font-size: 1em;
  text-decoration: none;
  display: table-cell;
  font-size: clamp(1em, 2vw, 1.25em);
  font-weight: 700;
}

.box-2 .submit {
  border-color: white;
  color: white;
}

.btn:hover, 
.submit:hover,
.submit:hover::before {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.ce_form input:focus,
a:focus-visible,
.btn:focus-visible, 
.submit:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
  border-radius: var(--border-radius-s);
}


.no-misc .content-headline.space-bottom,
.no-misc .content-rsce-contactbox {
  display: none;
}

.no-misc #main .content-text:first-child h2 {
  border-left: 0;
  margin-left: 0;
  margin-bottom: var(--spacing-m);
  padding-left: 0;
}

/*Animation*/
#main .content-text, 
.box-1 {
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.8s ease-out;
}

#main .content-text.in-view,
.box-1.in-view {
    opacity: 1;
    transform: translateY(0);
}

.ce_rsce_teaser {
    opacity: 0;
    transform: translateX(0);
    transition: all 0.8s ease-out;
}

.ce_rsce_teaser.teaser-item:first-child {
    transform: translateX(-100%);
}

.ce_rsce_teaser.teaser-item:last-child {
    transform: translateX(100%);
}

.ce_rsce_teaser.in-view {
    opacity: 1;
    transform: translateX(0);
}

/*Footer*/
#footer {
  background-color: var(--secondary-bg-color);
  color: white;
  padding-top: var(--spacing-m);
}

#footer .rte:last-child {
  margin-bottom: 0;
}

@media screen and (min-width:600px) {
  #footer-main {
    display: flex;
    justify-content: space-between;
  }

  #footer-bottom {
    display: flex;
    align-items: end;
    flex-direction: column;
    justify-content: space-between;
  }
}

#footer .mod_customnav ul {
  display: flex;
  list-style-type: none;
  gap: var(--spacing-s);
  margin-left: 0;
}

#footer .mod_customnav ul li {
  margin-bottom: 0;
}

#footer .mod_customnav a, 
#footer .mod_customnav strong {
  color: white;
  font-weight: 600;
  text-decoration: none;
}

#footer .mod_customnav a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 995px) {
  #footer-main,
  #footer-bottom {
    padding-inline: var(--spacing-m);
  }
}
