:root {
  --primary-color: #343753;
  --primary-background: #ffffff;
  --primary-brown: #f0ece8;
  --primary-light: #f9f8f8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #ffffff;
    --primary-background: #1e1e1e;
    --primary-brown: #2f261e;
    --primary-light: #151515;
  }
}

/* EFFECTS */
@keyframes slideInBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50%);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: transform, opacity;
}
.animate-on-scroll.visible {
  animation: slideInBottom 1s ease-out forwards;
}
/* Scroling img */
.image-scroller {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.image-container {
  display: flex;
  white-space: nowrap;
  animation: scrollImages 20s linear infinite;
}

.image-container img {
  width: 100vw;
  display: inline-block;
}
/* Review */
.revealing {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 1s ease, transform 1s ease; /* Smooth transition */
}
/*  */
.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  background-color: #4caf50; /* Green background for success */
  color: white;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.custom-alert.show {
  opacity: 1;
  transform: translateY(0);
}

.custom-alert.error {
  background-color: #f44336; /* Red background for error */
}
/*  */

@keyframes scrollImages {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
  }
}
/*  */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Locally hosted Merriweather font */

@font-face {
  font-family: "Open Sans";
  src: url("https://employer-branding.team/assets/fonts/gt/OpenSans-Regular.woff2")
    format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("https://employer-branding.team/assets/fonts/gt/OpenSans-Medium.woff2")
    format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("https://employer-branding.team/assets/fonts/gt/OpenSans-Bold.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  font-size: 18px; /* Default for desktop */
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
  overflow-x: hidden;
}

/* Default link styles */
a {
  color: var(--primary-color); /* Link color */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Paragraphs */
p {
  margin-bottom: 1rem;
  font-size: 18px;
  line-height: 1.5;
  color: var(--primary-color);
}

footer p,
footer a {
  color: white;
}
nav {
  display: flex;
  flex-direction: column;
}
nav a {
  display: inline-flex;
  width: min-content;
  margin-bottom: 10px;
}
/* Images */
img {
  aspect-ratio: auto; /* Replace with correct ratio */
  max-width: 100%;
  height: auto;
  display: flex;
}

figure {
  display: flex;
  margin-block-start: 0em;
  margin-block-end: 0em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
  margin-bottom: 40px;
}

/* Lists */
ul,
ol {
  padding-left: 1rem;
  margin-bottom: 40px;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

li {
  margin-bottom: auto;
}

/* Forms */
input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem;
  border: none;
  border-radius: 0.25rem;
  width: 100%;
  margin-bottom: 15px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #007bff;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid #ccc;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  font-style: normal;
  font-size: 18px;
  line-height: 1.6; /* Added for better readability */
  margin: 0;
  padding: 0;
  color: var(--primary-color);
  background-color: var(--primary-background);
  font-weight: 350;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

section.container-small.padding.HIDEMe {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Header */
@keyframes moveGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.moving-background {
  width: 100vw;
  height: auto;
  background: linear-gradient(292.28deg, #92ebd3 51.77%, #81dfff 72.27%);
  background-size: 200% 200%;
  animation: moveGradient 6s ease infinite;
}

/* Buttons */
button,
.button {
  font-family: inherit;
  font-size: 21px;
  padding: 0.5rem 40px;
  border: none;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
  background: #343753;
  color: #ffffff;
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 10px;
  text-decoration: none;
  text-align: center;
  text-decoration: none;
}

button:hover,
.button:hover {
  background-color: #1b1e35;
  text-decoration: none;
}
.anchorLink {
  max-width: 400px;
}
stong {
  font-weight: 600;
}

h1 {
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 1rem; /* Added consistent margin for spacing */
}

h2 {
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

h3 {
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

h4 {
  font-size: 1.5rem; /* 24px */
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

h5 {
  font-size: 1.25rem; /* 20px */
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

h6 {
  font-size: 1rem; /* 16px */
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

/* Custom */
.display {
  display: flex;
}
.padding {
  padding-left: 2rem;
  padding-right: 2rem;
}

.padding-top-bottom {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.text-transform {
  text-transform: uppercase;
}
.main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.flex.Sec {
  margin-top: 50px;
}
.left50 {
  width: 50%;
  word-wrap: break-word;
  padding-right: 20px;
}

.right50 {
  width: 50%;
  word-wrap: break-word;
  padding-left: 20px;
}

.left40,
.right40 {
  width: 40%;
  word-wrap: break-word;
}
.right60,
.left60 {
  width: 60%;
  word-wrap: break-word;
}
.left60 {
  padding-right: 20px;
}

.SameLine {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  margin-bottom: 35px;
}
.SameLine img {
  margin-right: 30px;
}
.SameLine h3 {
  color: #43a7ad;
  text-transform: uppercase;
}
.blockBGEffects {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px;
  border-radius: 10px;
  align-items: center;
  margin-top: 0px;
}
.Dots {
  background-image: url("https://employer-branding.team/assets/images/dots.svg");
  background-repeat: repeat-y;
  background-position: right;
  background-size: 35%;
}
.container-full {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-mid {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-small {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-extra-small {
  max-width: 724px;
  margin: 0 auto;
  padding: 0 2rem;
}
.margin {
  margin-top: 6rem;
  margin-bottom: 8rem;
}
.center {
  text-align: center;
}

/* Section A */
section.article-title-start {
  background-color: var(--primary-brown);
  background-image: url("https://employer-branding.team/assets/images/bg_first.svg");
  background-position: left bottom;
  background-repeat: no-repeat;
}
section#PeopleDiv {
  background-image: url("https://employer-branding.team/assets/images/bg_first.svg");
  background-position: left bottom;
  background-repeat: no-repeat;
  padding-bottom: 8rem;
  padding-top: 3rem;
}
img.article-start {
  border-radius: 10px;
  width: 100%;
  margin-bottom: 0rem;
}
.effect img {
  width: 100%;
}
/*  */
div#review {
  background-color: var(--primary-brown);
  padding-bottom: 80px;
  padding-top: 40px;
}
div#review-holder {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}
.Review {
  margin: 20px;
}
p.specialBOX {
  background-color: var(--primary-brown);
  padding: 120px;
  margin-top: 3rem;
  border-radius: 10px;
}
/*  */
section#Unternehmenskultur,
section#EmployeeValueProposition,
section#Branding,
section#Event {
  margin-top: 40px;
  margin-bottom: 80px;
}
/* Testimonials */
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3%; /* Space between cards */
}
.testimonial-card {
  width: 31.3%;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  background: var(--primary-background);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
}
.testimonial-card blockquote {
  margin-bottom: 20px;
}
.testimonial-card picture {
  margin-bottom: 15px;
  display: block;
}
section#CollectionPage h4 {
  margin-bottom: 80px;
  font-size: 35px;
}
/*  */

section#CollectionPage {
  background-image: url("https://employer-branding.team/assets/images/testimonials.svg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 40%;
  background-color: var(--primary-light);
  padding-top: 8rem;
  padding-bottom: 8rem;
  background-attachment: fixed;
}
/*  */
div#corporateCulture {
  background-color: var(--primary-brown);
  background-image: url("https://employer-branding.team/assets/images/bg_small.svg");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 10px;
}
/* contact */
div#jetzt-Kontakt-aufnehmen {
  background-color: var(--primary-light);
  padding-top: 6rem;
  padding-bottom: 8rem;
}
.element {
  position: relative;
  padding-left: 30px; /* Adjust as needed */
}

.element::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(292.28deg, #92ebd3 51.77%, #81dfff 72.27%);
}

details {
  cursor: pointer;
  border: none;
  margin-bottom: 20px;
}
details > summary {
  /* list-style: none; */
  background: #f8f8f8;
  padding-top: 15px;
  padding-right: 20px;
  padding-bottom: 15px;
  padding-left: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  z-index: 1;
  position: relative;
}
details > summary::-webkit-details-marker {
  display: none;
}
details[open] div[itemprop="acceptedAnswer"] {
  top: -10px;
  padding-top: 30px;
  padding-right: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  position: relative;
  background: #f8f8f8;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}
summary {
  font-size: 1.1em;
  cursor: pointer;
}
details[open] {
  box-shadow: none;
}

/*  */
img.contact-image {
  border: 5px solid transparent;
  border-radius: 50%;
  margin: 10px;
  cursor: pointer;
}
.selected {
  border: 5px solid #343753 !important;
  border-radius: 50%;
}
.contactImageHolder {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.imgHolder {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.imgHolder img.contact-image.selected ~ p {
  font-weight: 600;
}
/* FOOTER */
footer {
  background-color: rgba(12, 108, 87, 1);
  color: black;
  padding-top: 5rem;
  padding-bottom: 7rem;
}
.OneLine {
  display: flex;
  margin-top: 35px;
  margin-bottom: 35px;
  flex-direction: row;
  flex-wrap: wrap;
}
p.SpredBar {
  margin-left: 20px;
}
p.SpredBar span {
  margin-right: 20px;
}
/* EFFECTS */
/* Universal scroll animation class */
.scroll-animate {
  opacity: 1;
  scale: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
  /* Attach to scroll-driven animation */
  animation: zoom-fade linear both;
  animation-timeline: view();
  animation-range: entry 0% exit 100%;
}

@keyframes zoom-fade {
  0% {
    opacity: 1;
    scale: 1;
  } /* Fully visible at entry */
  50% {
    opacity: 1;
    scale: 1.2;
  } /* Slight zoom in at center */
  100% {
    opacity: 0;
    scale: 0.8;
  } /* Fade out when leaving */
}

/* Small devices (smartphones) */
@media (max-width: 768px) {
  section.article-title-start .left40 {
    padding-left: 0;
    padding-right: 0;
  }
  section.article-title-start .main.container-mid .right60 {
    padding-left: 0;
    padding-right: 0;
  }
  .effect img {
    width: 100%;
    height: 12px;
    object-fit: cover;
  }
  .contactImageHolder {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
  }
  .testimonial-card {
    width: 100%;
  }
  .left50,
  .right50 {
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
    margin-bottom: 30px;
    margin-top: 0;
  }
  p.specialBOX {
    padding: 60px;
  }
  p.SpredBar {
    margin-left: 0px;
    display: block;
    width: 100%;
  }
}

/* Medium devices (tablets) */
@media (min-width: 769px) and (max-width: 1079px) {
  .testimonial-card {
    width: 48%;
  }
  .right40.blockBGEffects {
    width: auto;
  }
  .Dots {
    background-size: 0;
  }
  div#jetzt-Kontakt-aufnehmen {
    background-color: var(--primary-light);
    padding-top: 6rem;
    padding-bottom: 8rem;
  }
}

/* Large devices (desktops and laptops) */
@media (max-width: 1080px) {
  .margin {
    margin-top: 3rem;
    margin-bottom: 0rem;
  }
  .left40,
  .right40 {
    width: 100%;
  }

  .right60,
  .left60 {
    width: 100%;
  }
  img.article-start {
    margin-bottom: 3rem;
  }
  div#review-holder {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media screen and (prefers-color-scheme: dark) {
  .moving-background {
    background: linear-gradient(292.28deg, #188164 51.77%, #00739a 72.27%);
  }
  .Dots {
    background-image: url("https://employer-branding.team/assets/images/dotsDark.svg");
  }
  details > summary {
    background: #2e2e2e;
  }
  details[open] div[itemprop="acceptedAnswer"] {
    background: #161616;
  }
}

@media screen and (prefers-color-scheme: light) {
}
@media (horizontal-viewport-segments: 2) and (vertical-viewport-segments: 1) {
}

@media (vertical-viewport-segments: 2) and (horizontal-viewport-segments: 1) {
}

@media screen and (prefers-color-scheme: light) and (min-width: 1008px) {
}

@media screen and (prefers-color-scheme: dark) and (min-width: 1008px) {
}
