.logo {
  max-width: 120px;
  width: 100%;
  padding: 20px 0;
  min-width: 70px;
}

.footerContent .logo {
  max-width: 160px;
  padding: 0;
}

nav,
.footerContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav {
  container-type: inline-size;
}

header {
  background: #fffffff0;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(3px);
  box-shadow: 0px 0px 50px #bbb3;
  z-index: 10;
}

footer {
  background: #f7f7f7;
}

ul.nav-primary>li>div>a {
  padding: 40px 20px;

  @container (max-width:800px) {
    padding: 10px 40px;
  }
}

ul.nav-primary a.active {
  color: var(--color-3);
}

ul.nav-primary>li>div {
  z-index: 15;
  position: relative;
}

ul.nav-primary,
.nav-primary ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  margin: 0;
  position: relative;
}

.nav-primary li {
  padding: 0;
}

.nav-primary li::marker {
  content: none;
}

.open .toggleNav i.open,
.toggleNav i.closed {
  display: block;
}

.open .toggleNav i.closed,
.toggleNav i.open {
  display: none;
}

.nav-primary a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 30px;
  font-weight: bold;

  @container (max-width:1100px) {
    font-size: 25px;
  }

  @container (max-width:800px) {
    font-size: 25px;
  }
}

.nav-primary:has(:nth-child(7)) a {
  display: inline-block;
  padding: 10px 15px;
  font-size: 20px;
  font-weight: bold;

  @container (max-width:1100px) {
    font-size: 18px;
    padding: 10px 10px;
  }

  @container (max-width:770px) {
    font-size: 25px;
    padding: 10px 20px;
  }
}

.dropdownToggle {
  display: none;
}

.bodyContent>*:first-child {
  padding-top: 150px;
}

.mainMenu li {
  position: relative;
}

/* Position submenus */
.nav-primary ul {
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.25, 1.5, 0.5, 1);
  z-index: 1000;
}

ul.nav-primary ul ul {
  top: 0;
  left: 100%;
}

/* Reveal submenu on hover/focus */
.nav-primary li:hover>ul,
.nav-primary li:focus-within>ul {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Position deeper submenus to the right */
.nav-primary ul ul ul {
  top: 0;
  left: 100%;
}

/* Optional hover styles */
.nav-primary a:hover {
  color: #00aaff;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a,
.contactInfo a i,
.toggleNav {
  border: none;
  font-size: 25px;
  padding: 5px;
  border-radius: 100%;
  background: rgba(10, 10, 10, 0.06);
  display: inline-flex;
  box-sizing: border-box;
  width: 45px;
  height: 45px;
  text-align: center;
  position: relative;
  transition: 300ms ease;
  color: var(--color-2);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

nav .socials {
  @container (max-width:450px) {
    display: none;
  }
}

.contactInfo a i::after,
.socials a::before,
.toggleNav::before {
  content: "";
  background: var(--color-1);
  width: 45px;
  height: 45px;
  border-radius: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(0);
  transition: 300ms ease;
}

.contactInfo a i::before,
.socials a i::before,
.toggleNav i::before {
  z-index: 5;
  position: relative;
}

.contactInfo a:hover i::after,
.socials a:hover::before,
.toggleNav:hover::before {
  transform: scale(1);
}

.contactInfo a:hover i,
.socials a:hover,
.toggleNav:hover {
  color: white;
}

.toggleNav {
  position: relative;
  z-index: 25;

  @container (min-width:801px) {
    display: none;
  }
}

a {
  text-decoration: none;
  color: var(--color-1);
  font-weight: 620;
}

.socials a {
  color: var(--color-2);
}

a:hover {
  color: var(--color-3);
}

.eye-catcher {
  height: calc(100vh - 128px);
  overflow: hidden;
  position: relative;
  container-type: inline-size;
  background-size: cover;
  background-position: center;
}

.eye-catcher.Klein {
  height: 400px;
}

.eye-catcher.Mittel {
  height: 50vh;
}

.eye-catcher>.container {
  display: flex;
  justify-content: space-between;
  align-items: start;
  height: 100%;
  position: relative;
  container-type: size;

  @container (max-width:800px) {
    display: block;
  }
}

.text-element-1 {
  padding: 100px 0;
  z-index: 2;
  position: relative;
}

.text-element-1 h1 {
  background: var(--color-1);
  color: white;
  padding: 10px;
  display: inline-block;
  z-index: 3;
  position: relative;

  @container (max-height:500px) {
    font-size: 35px;
  }
}

.text-changer>span {
  width: 0;
  font-size: 60px;
  font-weight: 900;
  display: inline-block;
  color: white;
  overflow: hidden;
  transition: 300ms ease;
  width: fit-content;
  white-space: nowrap;
  padding: 20px;

  @container (max-height:500px) {
    font-size: 35px;
  }
}

.text-changer {
  display: grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns 0.6s ease;
  overflow: hidden;
  width: fit-content;
  transform: rotate(-3deg);
  margin-bottom: 10px;
}

.text-changer>div {
  width: 50vw;
}

.text-changer span {
  min-width: 0;
  background: var(--color-2);
  width: fit-content;
  padding: 20px;
  font-size: 40px;
  font-weight: 900;
  color: white;
}

.portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: auto;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.secondary-text {
  padding: 10px;
  display: inline-block;
  background: var(--color-3);
  color: white;
  font-weight: 600;
  font-size: 30px;
  width: fit-content;
  max-width: 450px;
  text-wrap: balance;
}

.eye-catcher video {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  z-index: 0;
}

.accordeon>div:first-child {
  padding: 15px;
}

.formAccordeon.accordeon>div:first-child {
  background: var(--color-1);
  color: white;
}

.formAccordeon.accordeon>div.colorBlack:first-child {
  color: black;
}

.accordeonContent {
  padding: 15px;
}

.nav-primary>li ul {
  position: absolute;
  top: calc(100% - 10px);
  background: #ffffffb0;
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: 200ms ease;
  z-index: 8;
  flex-direction: column;
}

.nav-primary li:hover>ul {
  opacity: 1;
  pointer-events: all;
  top: 100%;
}

.nav-primary li:hover>ul ul {
  top: 0;
}

.copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 30px;
  row-gap: 10px;
}

.footerSecondary {
  padding: 20px 0;
}

.footerContent {
  padding-top: 40px;
  padding-bottom: 40px;
  flex-wrap: wrap;
  column-gap: 30px;
  row-gap: 40px;
  align-items: start;
}

.footerMenu {
  display: flex;
  flex-direction: column;
}

.footerMenu a {
  font-size: 23px;
}

.copyright a {
  color: var(--color-2);
}

hr {
  color: rgba(10, 10, 10, 0.06);
}

.footerMenu .socials {
  margin-top: 20px;
}

.footerMenu .socials:first-child {
  margin-top: 0px;
}

.contactInfo {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contactInfo a {
  display: flex;
  column-gap: 16px;
  align-items: flex-start;
  color: var(--color-2);
}

.contactInfo a:hover {
  color: var(--color-3);
}

.sideText {
  margin-top: 5px;
}

.article-placeholder {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.inheritTag {
  background: white;
  max-width: 50px;
  padding: 10px;
  position: absolute;
  left: 5px;
  top: 5px;
}

.articleImage.inherit {
  min-height: 50px;
}

.articleDetail>.container>h1 {
  display: inline-block;
  transform: rotate(-3deg);
  margin-bottom: -10px;
  padding: 25px;
  background: var(--color-2);
  color: white;
  width: fit-content;
}

.articleDetail .container {
  display: flex;
  flex-direction: column;
  row-gap: 15px;
}

.articleInformation {
  position: relative;
  z-index: 5;
  background: var(--color-1);
  display: inline-block;
  width: fit-content;
  padding: 5px 15px;
  color: white;
  font-weight: bold;
  margin-bottom: -50px;
}

.articleInformation.hasCover {
  margin-bottom: 0;
}

.article-info {
  display: flex;
  flex-wrap: wrap;
  column-gap: 15px;
}

.articleInformation a {
  color: white;
  border-bottom: white 1px solid;
}

.articleInformation a:hover {
  box-sizing: border-box;
  border-bottom: transparent 1px solid;
}

.nav-primary .mobile>div {
  display: flex;
  justify-content: center;
  padding: 10px 40px;
}

.articleInformation {
  margin-bottom: 20px;
}

.hasCover .articleInformation {
  margin-bottom: -50px;
}

@media screen and (max-width: 900px) {
  .text-changer>span {
    font-size: 30px;
    padding: 10px;
  }

  .text-element-1 {
    padding: 20px 0;
  }

  .text-element-1 h1 {
    font-size: 25px;
  }

  .secondary-text {
    font-size: 25px;
  }

  .portrait {
    z-index: 5;
    max-height: 70%;
  }
}

@media screen and (max-width: 800px) {
  ul.nav-primary {
    position: fixed;
    top: 0;
    right: 0;
    flex-direction: column;
    background: white;
    z-index: 20;
    height: 100vh;
    padding-top: 120px;
    transform: translateX(100%);
    transition: 300ms ease;
  }

  .open ul.nav-primary {
    transform: translateX(0);
    box-shadow: 0px 0px 300px 500px #074ea1a6;
  }

  .articleDetail>.container>h1 {
    font-size: 35px;
  }

  .text-changer>div {
    width: calc(100vw - 30px);
  }
}
