/* Variables */
:root {
  --greenish: #bdd067;
  --blueish: #deeee6;
  --yellowish: #faf3d3;
}

/* 1. Use a more-intuitive box-sizing model. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
  padding: 0;
}

/* 3. Allow percentage-based heights in the application */
html,
body {
  min-height: 100%;
}

/* Typographic tweaks! 4. Add accessible line-height 5. Improve text rendering */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Create a root stacking context */
#root,
#__next {
  isolation: isolate;
}

/* smoother anchor scrolling in Mozilla */
html {
  scroll-behavior: smooth;
}

/* Accessability */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Styling */
::selection {
  background-color: #c0cf75;
  color: white;
}

body {
  font-family: 'Titillium Web', sans-serif;
  color: #333;
  font-size: 16px;
}

#logo {
  /* width: 250px; */
  width: clamp(6.25rem, 0.4167rem + 19.4444vw, 15rem);
}

nav li {
  list-style: none;
}

a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #333;
}

h1,
h2 {
  font-weight: 300;
  margin: 10px 0;
}

p {
  margin: 10px 0;
}

.text-center {
  text-align: center;
}

.navbar {
  min-height: 180px;
  margin-top: 20px;
}

.navbar ul {
  display: flex;
}

.navbar a {
  color: #fff;
}
.navbar .flex {
  justify-content: space-between;
}

.socials {
  width: 30px;
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  overflow: auto;
}

.container {
  padding: 0 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer */

footer {
  background-color: var(--greenish);
  min-height: 40px;
  bottom: 0px;
  position: fixed;
  width: 100%;
  z-index: 9999;
  align-items: center;
}

footer .container :nth-child(1) {
  flex: 0 0 20%;
}
footer .container :nth-child(2) {
  flex: 0 0 60%;
}
footer .container :nth-child(3) {
  flex: 0 0 20%;
}

/* footer .container :nth-child(3) a:first-of-type {
	margin-right: 2rem;
  } */

/* footer .container div {
	margin-right: 2rem;
  } */

/* .container .text-center a:first-of-type {
	margin-right: 2rem;
  } */

footer .text-center strong a[href='/en/'] {
  margin-right: 2rem;
}

footer p,
footer a {
  font-size: clamp(0.425rem, 0.4432rem + 0.9091vw, 0.8rem);
  color: white;
}

footer a:hover {
  border-bottom: #fff solid 1px;
  transition: all 300ms ease;
  color: white;
}

.btn {
  position: relative;
  display: inline-block;
  background-color: var(--greenish);
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  color: #fff;
  border-radius: 30px;
  min-width: 50px;
  height: 50px;
  font-size: 20px;
  margin-left: 7px;
}

.btn .btn-text {
  max-width: 0;
  display: inline-block;
  transition: color 1.5s, max-width 1s ease-in-out;
  vertical-align: top;
  white-space: nowrap;
  overflow: hidden;
  color: var(--greenish);
  padding-inline-end: 10px;
}

.btn:hover .btn-text {
  max-width: 400px;
  color: white;
  padding-inline-end: 10px;
}
.btn-icon {
  padding-inline-start: 15.5px;
}

.btn-icon i {
  font-size: 18px; /* oder ein anderer einheitlicher Wert wie 1.1em */
  width: 18px;
  height: 18px;
  line-height: 18px;
  display: inline-block;
  text-align: center;
}


/* Animations */
.swing-1 {
  animation: swing1 ease-in-out 9s infinite alternate;
  transform-origin: center 400px;
}
@keyframes swing1 {
  0% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(-3deg);
  }
}

.swing-2 {
  animation: swing2 ease-in-out 11s infinite alternate;
  transform-origin: center 600px;
}
@keyframes swing2 {
  0% {
    transform: rotate(-2deg);
  }
  100% {
    transform: rotate(3deg);
  }
}

.swing-3 {
  animation: swing3 ease-in-out 10s infinite alternate;
  transform-origin: center 400px;
}
@keyframes swing3 {
  0% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(-2deg);
  }
}

.step-back:hover a {
  opacity: 0.3;
  transition: opacity 0.8s ease-in-out;
}
.step-back:hover > a:hover {
  opacity: 1;
}

.grow {
  transition: scale 1s ease-in-out;
}

.grow:hover {
  scale: 1.1;
}

/* Swinging Background-Images: a ton of work went into this, not sure why. 
  Had to deal with position: absolute and that was huge PITA */

.domain {
  width: 33%;
  min-height: 500px;
  position: relative;
}

.domain-img {
  height: 500px;
  width: 400px;
  position: absolute;
  background-repeat: no-repeat;
}

.domain-1-1 {
  background-image: url(/wp-content/uploads/7l-landing/img/oekodorf/oekodorf-Blatt_alternativ.svg);
  background-size: 110%;
  z-index: -10;
  background-position: 0px 30px;
}

.domain-1-2 {
  background-image: url(/wp-content/uploads/7l-landing/img/oekodorf/oekodorf-Typo.svg);
  /* background-size: 45%; */
  z-index: 10;
  background-position: -10px 30px;
}

.domain-1-3 {
  background-image: url(/wp-content/uploads/7l-landing/img/oekodorf/oekodorf-bild.webp);
  background-size: 35%;
  z-index: 100;
  background-position: 190px 260px;
}

.domain-2-1 {
  background-image: url(/wp-content/uploads/7l-landing/img/lernort/Lernort-Blatt.svg);
  background-size: 93%;
  z-index: -10;
  background-position: top center;
}

.domain-2-2 {
  background-image: url(/wp-content/uploads/7l-landing/img/lernort/Lernort-Typo.svg);
  /* background-size: 40%; */
  z-index: 10;
  background-position: 10px 60px;
}

.domain-2-3 {
  background-image: url(/wp-content/uploads/7l-landing/img/lernort/lernort-bild.webp);
  background-size: 35%;
  z-index: 100;
  background-position: 26% 17%;
}

.domain-3-1 {
  background-image: url(/wp-content/uploads/7l-landing/img/webinarwelt/webinarwelt-blatt.svg);
  background-size: 80%;
  z-index: -10;
  background-position: 40% 1%;
}

.domain-3-2 {
  background-image: url(/wp-content/uploads/7l-landing/img/webinarwelt/webinarwelt-typo.svg);
  /* background-size: 40%; */
  z-index: 10;
  background-position: 5% 5%;
}

.domain-3-3 {
  background-image: url(/wp-content/uploads/7l-landing/img/webinarwelt/webinarwelt-bild.webp);
  background-size: 35%;
  z-index: 100;
  background-position: 45% 9%;
}

/* Another way to display tooltips – w/o needing to set position on parent: */
a[data-tooltip1]:link,
a[data-tooltip1]:visited {
  position: relative;
  text-decoration: none;
  border-bottom: solid 1px;
}

a[data-tooltip1]:before {
  content: attr(data-tooltip1);
  position: absolute;
  color: #b9c62d;
  top: 20.5em;
  left: -1em;
  background: #ffffffb6;
  padding: 0.25em 0.75em;
  border-radius: 0.5em;
  white-space: nowrap;
  opacity: 0;
  z-index: 9998;
  font-weight: bold;
}

a[data-tooltip1]:after {
  content: attr(data-tooltip-sub1);
  position: absolute;
  color: rgb(26, 26, 26);
  top: 22.5em;
  left: -1em;
  background: #ffffffb6;
  padding: 0.25em 0.75em;
  border-radius: 0.5em;
  white-space: nowrap;
  opacity: 0;
  z-index: 9998;
}

a[data-tooltip1]:hover:before,
a[data-tooltip1]:hover:after {
  opacity: 1;
  transition: all 1s ease-in-out 0.1s;
}

a[data-tooltip2]:link,
a[data-tooltip2]:visited {
  position: relative;
  text-decoration: none;
  border-bottom: solid 1px;
}

a[data-tooltip2]:before {
  content: attr(data-tooltip2);
  position: absolute;
  color: #7eb686;
  top: 20.5em;
  left: -1em;
  background: #ffffffb6;
  padding: 0.25em 0.75em;
  border-radius: 0.5em;
  white-space: nowrap;
  opacity: 0;
  z-index: 9998;
  font-weight: bold;
}

a[data-tooltip2]:after {
  content: attr(data-tooltip-sub2);
  position: absolute;
  color: rgb(26, 26, 26);
  top: 22.5em;
  left: -1em;
  background: #ffffffb6;
  padding: 0.25em 0.75em;
  border-radius: 0.5em;
  white-space: nowrap;
  opacity: 0;
  z-index: 9998;
}

a[data-tooltip2]:hover:before,
a[data-tooltip2]:hover:after {
  opacity: 1;
  transition: all 1s ease-in-out 0.1s;
}

a[data-tooltip3]:link,
a[data-tooltip3]:visited {
  position: relative;
  text-decoration: none;
  border-bottom: solid 1px;
}

a[data-tooltip3]:before {
  content: attr(data-tooltip3);
  position: absolute;
  color: #e1c41f;
  top: 20.5em;
  left: -1em;
  background: #ffffffb6;
  padding: 0.25em 0.75em;
  border-radius: 0.5em;
  white-space: nowrap;
  opacity: 0;
  z-index: 9998;
  font-weight: bold;
}

a[data-tooltip3]:after {
  content: attr(data-tooltip-sub3);
  position: absolute;
  color: rgb(26, 26, 26);
  top: 22.5em;
  left: -1em;
  background: #ffffffb6;
  padding: 0.25em 0.75em;
  border-radius: 0.5em;
  white-space: nowrap;
  opacity: 0;
  z-index: 9998;
}

a[data-tooltip3]:hover:before,
a[data-tooltip3]:hover:after {
  opacity: 1;
  transition: all 1s ease-in-out 0.1s;
}

.offleft {
  margin-left: -9000px;
  position: absolute;
  z-index: -1;
}

/* dealing with bing penalty */

main {
  min-height: 100vh;
}

.container-flex {
  padding: 0 30px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
}

.container-flex div {
  margin: 0 10px;
  padding-bottom: 80px;
  min-width: 30%;
}

.container h1 {
  text-align: center;
  padding-bottom: 30px;
  font-size: xx-large;
}

.container-flex h2 {
  padding-bottom: 3px;
  font-size: 1.2rem;
  font-weight: 400;
}

.container-flex img {
  width: auto;
  margin-inline: auto;
  padding: 30px 0;
  max-height: 180px;
}

.container-flex a {
  color: black;
}

.below-fold {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}