@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBoldItalic.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
}



body {
  font-family: "Inter", sans-serif;
  font-weight: var(--font-weight-regular);
  margin: 0;
  padding: 0;
  line-height: 1.55;
}

:root {
  --white: white;
  --grey: #e4e4e4;
  --grey-light: #f6f6f7;
  --grey-middeldark: #d5d5d5;
  --grey-dark: #b7b7b7;
  --black: rgba(0,0,0,0.85);
  --red: #861a22;

  --font-size-1: clamp(1.25rem, 2vw + 0.4rem, 1.7rem);
  --font-size-2: clamp(1.1rem, 1.7vw + 0.35rem, 1.4rem);
  --font-size-3: clamp(1rem, 1.4vw + 0.3rem, 1.1rem);
  --font-size-4: clamp(0.9rem, 1.2vw + 0.3rem, 1.1rem);
  --font-size-5: clamp(0.85rem, 1vw + 0.3rem, 1rem);
  --font-size-6: clamp(0.7rem, 0.8vw + 0.27rem, 0.8rem);

  --font-size-x1: clamp(1.1rem, 1.5vw + 0.35rem, 1.17rem);

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-h1: 1.65;
  --line-height-h2: 1.6;
  --line-height-p: 1.7;
}




#layout-fontsize-2 {
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-semibold);
  padding: 1em 0;
}

#layout-fontsize-3 {
  font-size: var(--font-size-3);
}

#layout-fontsize-3-bold {
  font-size: var(--font-size-3);
  font-weight: var(--font-weight-semibold);
}

#layout-fontsize-5 {
  font-size: var(--font-size-5);
  padding: 2em 0;
}


* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

h1 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-h1);
  font-size: var(--font-size-1);
}

h2 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-h2);
  font-size: var(--font-size-3);
}

h3 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-h2);
  font-size: var(--font-size-4);
  color: var(--red);
}

p {
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-p);
  font-size: var(--font-size-4);
}



main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5em;
}

.header-info--mobile {
  background: var(--grey);
  padding: 0.5em 1.5em;
  display: flex;
  gap: 1em;
}

.header-info--mobile p {
  font-size: var(--font-size-6);
  color: var(--black);
}

.header-info--mobile .email img,
.header-info--mobile .telefon img {
  height: 1em;
  width: auto;
  margin-right: 1em;
}

header {
  text-align: center;
  position: relative;
}

#header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5em 1.5em 1.5em 1.5em;
  margin: 0 auto;
  max-width: 1280px;
}

/* Hamburger Menü */
.menu-toggle {
  position: absolute;
  top: 7.5em;
  right: 2em;
  z-index: 1100;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger .line {
  fill: none;
  stroke: var(--red, red);
  stroke-width: 2.5;
  transition: all 0.3s ease;
  stroke-linecap: round;
  transform-origin: center;
}

.menu-toggle.active .line1 {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.active .line2 {
  opacity: 0;
}

.menu-toggle.active .line3 {
  transform: translateY(-3.5px) rotate(-45deg);
}


.navi {
  display: none;
}

.navi nav {
  font-size: var(--font-size-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 1.5em 2em 1.5em;
  margin: 0 auto;
  max-width: 1280px;
}

.navi ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.navi li {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-x1);
}



.navi a {
  color: var(--black);
  text-decoration: none;
}



/* header icon */

.logo {
  width: 10em;
  height: auto;
}

.contact img {
  width: 1.5em;
  margin-left: 1.5em;
}

.contact p {
  font-size: var(--font-size-5);
  font-weight: var(--font-weight-semibold);
  color: var(--red);
}

.telefon,
.email {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0.3em 0;
}


/* header image */

.header-image {
  position: relative;
  width: 100%;
  max-height: 400px;
  min-width: 330px;
  overflow: hidden;
  display: flex;
  align-content: center;
}

.header-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}


/* header slogan */

#header-slogan p {
  font-size: var(--font-size-3);
  margin: 2em auto;
  font-weight: 500;
  text-align: center;
  width: 80%;
  line-height: 1.8;
  color: var(--black);
}

#header-slogan p span {
  color: var(--red);
  font-weight: var(--font-weight-semibold);
}

/* container title */
.headline h1 {
  padding: 1em 0;
  font-size: var(--font-size-2);
  font-weight: 700;
}

.container-type-a {
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.container-type-a a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.container-type-a > a {
  flex: 1 1 33%;
  display: block;
  text-decoration: none;
  color: inherit;
}

.container-type-a .block {
  display: flex;
  flex-direction: column;
}

.container-type-a .image {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 16em;
  overflow: hidden;
}

.container-type-a .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.container-type-a h2 {
  padding-top: 0.5em;
  padding-bottom: 1em;
}


.block {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  /* box-shadow: 0 10px 25px rgba(0,0,0,0.08); */
  transition: transform .2s ease, box-shadow .2s ease;
  height: 640px;
}

.block:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 1px rgba(0,0,0,0.05);
}

.block .image img {
  width: 100%;
  height: auto;
  display: block;
}

.block .text {
  padding: 1em 0;
}

.block .text h2 {
  margin: 0 0 0.6rem;
  color: var(--black);
}

.block .text p {
  margin: 0 0 1.1rem;
  color: var(--black);
  line-height: var(--line-height-h2);
}

.block .button {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--red);
}

.block .button span {
  font-size: var(--font-size-4);
  font-weight: var(--font-weight-semibold);
}

.text ul {
  margin-bottom: 1em;
}

.text ul li {
  font-size: var(--font-size-p);
  margin-left: 1em;
  padding: 0.2em 0.2em 0 0.5em;
  line-height: var(--line-height-p);
}

.text ul li:first-child {
  margin-top: 0.6em;
}


.text h3 {
  padding: 0;
  margin: 0;
  color: var(--black);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-p);
}

.text h3:last-child {
  margin-top: 1em;
}

.text p {
  margin: 0;
  margin-bottom: 1em;
  padding-right: 2em;
}

/* container-type-b */

.container-type-b .text p {
  padding-top: 1em;
  font-size: var(--font-size-4);
  color: var(--black);
}

.container-type-b p {
  padding-bottom: 1em;
}

.reference {
  display: flex;
  gap: 20px;
}

/* linke Seite */

.reference-large {
  flex: 0 0 50%;
}

/* rechte Seite */
.reference-small {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* gemeinsame Bildbox */
.image-box {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* Höhen */
.reference-large .image-box {
  height: 500px;
}

.reference-small .image-box {
  height: 240px;
}

/* Bilder */
.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay */
.overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 0.4em 0.7em;
  font-size: 0.8rem;
  text-align: right;
  border-top-left-radius: 4px;
}

.overlay .title {
  font-weight: var(--font-weight-semibold);
}


/* reference-section */
.btn-contact {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: var(--white);
  border: 2px solid var(--red);
  color: var(--red);
  text-decoration: none;
  border-radius: 1em;
  transition: background-color 0.25s ease;
  max-height: 4em;
  font-weight: var(--font-weight-semibold);
}

.btn-contact:hover {
  background-color: var(--primary-color-dark);
}

/* reference slider mobile */
/* Slider (nur für mobile) */
.reference--mobile {
  overflow: hidden;
  touch-action: pan-y;
}

.reference--mobile .slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.reference--mobile .slide {
  min-width: 100%;
}
/* slider dots -- mobile */

.slider-dots {
  text-align: center;
  margin-top: 10px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s;
  background: var(--grey-dark);
}

.slider-dots button.active {
  background: var(--red);
}



/*  */

.container-type-a .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: var(--font-weight-regular);
  color: var(--red);
  position: relative;
  opacity: 0.85;
}

.container-type-a .button span {
  font-size: var(--font-size-5);
}

.container-type-a .button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background-color: #861a22;
  transition: width 0.3s ease;
}



/* footer */
#comment {
  font-size: var(--font-size-6);
}

#comment a {
  text-decoration: none;
  color: var(--red);
}

footer {
  background: var(--red);
  color: var(--white);
  margin-top: 5em;
}

footer .footer-info {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5em;
  height: 15em;
}

footer .footer-copyright {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2em;
}

.footer-info .left {
  flex: 0 0 80%;
}

.footer-info .right {
  flex: 0 0 20%;
  text-align: right;
}

footer a {
  text-decoration: none;
  color: white;
}

.footer-info p {
  margin: 0;
  padding: 0.2em;
}

.left {
  display: flex;
  gap: 5em;
}

/* container-type-c and container-type-d*/
/* all landing page contents */



.container-type-c,
.container-type-d {
  margin-top: 1.5em;
  margin-bottom: 2em;
  width: 70%;
}

.container-type-c ol {
  padding-left: 1em;
  margin-top: 1em;
}

.container-type-c ul {
  list-style: none;
} 

.container-type-c ol li,
.container-type-c ul li {
  padding: 0.5em 0 0.5em 0.5em;
  font-weight: var(--font-weight-semibold);
}

.container-type-c ol li p {
  padding: 0.5em 0;
  font-size: var(--font-size-4);
}

.container-type-c ul li p:first-child {
  padding: 0.5em 0;
  font-weight: var(--font-weight-semibold);
}

.container-type-e h1 {
  margin: 1em 0;
}

#ul-impressum  {
  list-style: none;
}

#ul-impressum  li {
  margin: 0;
  padding: 0;
  padding-top: 2em;
}

/* Datenschutzerklärung */

#data-protection-declaration {
  width: 75%;
}

#data-protection-declaration h1 {
  padding: 1em 0;
  color: var(--black);
  font-weight: var(--font-weight-bold);
}

#data-protection-declaration h2 {
  padding: 0;
  padding-top: 1.5em;
  padding-bottom: 0.5em;
  font-weight: var(--font-weight-semibold);
}

#data-protection-declaration h3 {
  padding: 0.5em 0 0.2em 0;
  color: var(--black);
  font-weight: var(--font-weight-medium);
}

#data-protection-declaration .ul-type-a li {
  margin: 0 0 0 2em;
  padding: 0 0 0 0.5em;
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-4);
}

#data-protection-declaration .ul-type-b {
  margin: 0.5em 0 0 0;
}

#data-protection-declaration .ul-type-b li {
  margin: 0 0 0 2em;
  padding: 0.3em 0 0.3em 0.5em;
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-4);
}


#data-protection-declaration p {
  line-height: var(--line-height-p);
  padding: 0.3em 0;
}

#data-protection-declaration p {
  line-height: var(--line-height-p);
  padding: 0.3em 0;
}


#data-protection-declaration span {
  font-weight: var(--font-weight-semibold);
}



/* container-type-d */
/* landing page*/

.container-type-d h1 {
  padding-bottom: 1em;
}

.container-type-d p {
  padding-bottom: 1em;
}

.container-type-d p span {
  font-weight: var(--font-weight-semibold);
}


.container-type-d ul {
  padding-left: 1em;
  margin-bottom: 1em;
}

.container-type-d ul li {
  padding: 0.2em 0;
  font-size: var(--font-size-4);
}

.highlight {
  color: var(--red);
  font-weight: var(--font-weight-semibold);
}

/* dropdown */
/* landing page*/

.dropdown {
  width: 70%;
}

.dropdown-title {
  padding: 1em 0;
  display: flex;
  align-items: center;
  cursor: pointer;

}

.dropdown-title h2 {
  padding-left: 1em;
}


.arrow {
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

#arrow-open {
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}


.dropdown-title.active .arrow {
  transform: rotate(45deg);
}

.dropdown-content,
#dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: var(--white);
}

.dropdown-content.open {
  max-height: 2000px;
}

#dropdown-content {
  max-height: none;
}

.dropdown .items {
  padding: 0;
  margin: 0;
}

.dropdown p {
  padding-left: 1em;
  padding-top: 1em;
  margin-bottom: 1em;
}

.dropdown .item {
  padding: 0;
}



.dropdown-content ul,
.type-d ul {
  margin: 0;
}

.dropdown-content li,
.type-d .li {
  font-size: var(--font-size-4);
  padding: 0.2em 0;
  margin-left: 1em;
  padding-left: 0.5em;
}

.dropdown-content.open,
.items.open {
  display: block;
}

.dropdown-content span {
  font-weight: var(--font-weight-bold);
}

.dropdown .items .item-text ul {
  margin-top: 0.5em;
}


.dropdown .items .item-text li {
  font-size: var(--font-size-4);
  margin-left: 1em;
  padding: 0.2em 0;
}

/* item with pic */
/* landing page*/

.item {
  display: flex;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
  border-radius: 0 0 5em 0;
  min-height: 300px;
}

.item-text {
  flex: 0 0 59%;
}

.item-text h3 {
  margin-top: 1em;
  color: var(--red);
  font-size: var(--font-size-3);
}
.item-text p {
  padding: 1em 0;
}


.item-pic {
  flex: 0 0 35%;
}

.item-pic img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.item:nth-child(even) {
  flex-direction: row-reverse;
}


.type-d .item-text p:first-child {
  color: var(--red);
  font-weight: var(--font-weight-semibold);
}
.type-d .item-text ul  {
  margin: 0;
}

.type-d .item-text ul li {
  padding-left: 0.5em;
}

/* faq */

.faq-question {
  background: none;
  border: none;
  padding-left: 1em;
  padding-top: 1em;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.faq-answer p {
  padding-bottom: 0.5em;
}

.faq-answer ul {
  margin: 0;
  padding-left: 1em;
}

.faq-answer li {
  padding-bottom: 0.5em;
}


.faq-answer {
  display: none;
  margin-top: 0.5rem;
  padding: 0 1em
}

.faq-answer.open {
  display: block;
}


.faq-question h3 {
  color: var(--black);
}

.faq-question.active h3 {
  color: var(--red);
}

/* fourmular */

/* Grundlayout */
.contact-formular {
  margin: 0 auto;
  border-radius: 1em;
  backdrop-filter: blur(10px);
}

/* Form */
#contactForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

#contactForm input,
#contactForm textarea {
  font-size: var(--font-size-p);
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--grey);
  padding: 1em;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contactForm textarea {
  grid-column: 1 / -1;
  min-height: 140px;
  resize: vertical;
  font-size: 16px;
}


#contactForm input:focus,
#contactForm textarea:focus {
  border-bottom: 2px solid rgba(134, 26, 34, 0.5);
  color: var(--red);
}


/* Button */
#contactForm button {
  grid-column: 1 / -1;
  padding: 1em;
  border: none;
  border-radius: 1em;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--grey-dark);
  color: var(--white);
  transition: transform 0.2s ease, filter 0.2s ease;
}

#contactForm button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  background-color: var(--red);
}

#contactForm button:active {
  transform: translateY(0);
  background-color: var(--red);
}

#contactForm button.sent {
  background-color: var(--red);
  color: var(--white);
  cursor: default;
}

/* Status Text */

#status {
  font-size: var(--font-size-3);
  font-weight: var(--font-weight-medium);
  text-align: center;
  padding: 1em 0;
}
.success {
  color: green;
}
.error {
  color: red;
}


/* responsive design */

@media (max-width: 768px) {
  .menu-toggle span {
      background: var(--red, red);
  }
  .header-image {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .navi {
    /* position: fixed; */
    top: 23vh;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--grey);
    display: none;
    flex-direction: column;
    align-items: end;
    z-index: 1000;
    overflow: hidden;
  }

  .navi nav {
    margin: 0;
    padding: 0;
    padding-right: 3em;
    padding-top: 5vh;
  }

  .navi.open {
    display: flex;
  }

  .navi ul {
    flex-direction: column;
    text-align: center;
    padding: 0;
    margin: 0;
    gap: 1.5rem;
    list-style: none;
    text-align: right;
  }

  .navi ul li a {
    font-size: var(--font-size-3);
    font-weight: var(--font-weight-semibold);
  }

  .navi a {
    color:var(--black);
    text-decoration: none;
  }

  /* Body scroll sperren */
  body.menu-open {
    position: fixed;
    width: 100%;
  }
  .logo {
    width: 8em;
    padding-top: .5em;
  }

  .contact {
    display: none;
  }


  /* responsiv: container */

  .container-type-a {
    flex-direction: column;
  }

  .container-type-a > a {
    margin-bottom: 1.5em;
  }

  /* type c and type d */
  .dropdown,
  .container-type-c,
  .container-type-d {
    width: 100%;
  }


  /* container type a */
  .container-type-a .image {
    max-height: 8em;
  }

  /* conatainer type b */
  .reference {
    display: block;
  }

  .reference-large,
  .reference-small {
    flex: 1 1 100%;
  }

  .swiper-wrapper .image-box {
    height: 200px;
  }

  footer .footer-info {
    flex-direction: column;
    height: auto;
  }

  footer .left {
    flex-direction: column;
    gap: 1em;
  }

  footer .navigation {
    flex-direction: column;
  }

  footer .logo {
    margin-top: 3em;
    margin-bottom: 1em;
  }

  /* item with text and pic */
  .item {
    flex-direction: column;
  }

  .item-text, .item-pic {
    min-width: 100%;
  }

  .item:nth-child(even) {
    flex-direction: column;
  }


  #contactForm {
    grid-template-columns: 1fr;
  }

  #data-protection-declaration {
    width: 100%;
  }

  .type-d .item {
    padding: 0;
  }

  .type-d .item-text ul {
    margin: 0;
  }

  .type-d .item-text p:first-child {
    padding-left: 0;
  }

}

@media (min-width: 769px) {

  .header-info--mobile {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .navi {
    display: block;
  }

}

/* Desktop sichtbar */
.reference--desktop {
  display: flex;
  gap: 1em;
}

/* Mobile verstecken */
.reference--mobile {
  display: none;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
  .reference--desktop {
    display: none;
  }

  .reference--mobile {
    display: block;
  }
  
  .block {
    grid-template-columns: 1fr;
    height: fit-content;
  }

  .menu-toggle span {
          background: var(--red, red);

  }
}

@media (min-width: 900px) {
  .container-type-a {
    grid-template-columns: repeat(3, 1fr);
  }

  .block {
    grid-template-columns: 1fr;
  }
}

/* exception */
#contactForm textarea {
  font-family: "Inter", sans-serif;
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-3);
}

#item-text-title {
  color: var(--red);
  font-weight: var(--font-weight-bold);
  margin: 0;;
}

.dropdown-content .item {
  margin-bottom: 2em;
}
