@font-face {
  font-family: "lexend";
  src: url("../fonts/lexend/static/lexend-regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit/static/outfit-regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --header-font: "lexend";
  --text-font: "Outfit";
  --primary-color: #2E2E2E;
  --secondary-color: #F5F1E6;
  --detail-color: #D36B4F;
  --highlight-color: #2E6E4C;
  --accent-color: #276678;
}

body {
  overflow-x: hidden;
}

/* Tab taste border für accessibility */
:focus-visible {
  border: 5px solid var(--detail-color) !important;
  outline-offset: 20px !important;
}

:focus {
  outline: none !important;
}

/* Globales Layout & Schrift */
body {
  margin: 0;
  background-color: var(--primary-color);
  -webkit-hyphens: auto;
  hyphens: auto;
  font-family: var(--text-font);
}

p {
  font-size: 1.1rem;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: var(--primary-color);
  z-index: 999;
  position: sticky;
  top: 0;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-direction: row;
  user-select: none;
  margin-left: 1rem;
}

/* gemeinsame Link-Stile (Navigation + Details-Links) */
nav a,
details a {
  font-size: 1.3rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-family: var(--text-font);
  transition: transform 0.3s ease, text-decoration 0.3s ease;
  display: inline-block;
  transform-origin: center;
}

nav img {
  width: 4rem;
  height: auto;
  vertical-align: middle;
  transition: width 0.4s;
}

#logo-header {
  width: 10rem;
  height: auto;
  margin-right: 1rem;
}

.nav-link-acitve {
  text-decoration: underline solid;
}

/* Hover-Interaktionen (nur für Geräte mit Hover) */
@media (hover: hover) and (pointer: fine)  {
  nav a:hover {
    transform: scale(1.15);
    text-decoration: underline solid;
  }

  /* Buttons / interaktive Elemente */
  .fifth-segment-index-button-container a:hover,
  .categories-button:hover,
  .button-form:hover,
  footer a:hover {
    transform: scale(1.1);
  }

  /* Kategorien & Details */
  details a:hover {
    text-decoration: underline;
  }

  details li:hover {
    transform: scale(1.1);
  }

  .product:hover {
    transform: scale(1.10);
  }

  .model:hover {
    transform: scale(2.3);
  }
}



/*INDEX / Segmente */

/* First segment: Bild mit Text */
.first-segment-box-text-on-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
}

.first-segment-index img,
.first-segment img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: bottom;
  aspect-ratio: 16/7;
}

.first-segment img {
  aspect-ratio: 16/2;
}



.first-segment-index-text {
  position: absolute;
  white-space: nowrap;
  color: var(--secondary-color);
  font-size: 7vw;
}

/* Allgemeine Segmente */
.segment {
  background-color: var(--secondary-color);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 3vw;
  padding: 3vw;
}




.segment-index-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  object-position: bottom;
  border-radius: 10px;
}

.second-segment-index-text {
  width: 40%;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.second-segment-index-text h2 {
  margin: 0;
  font-size: 5rem;
}

.third-segment-index {
  background-color: var(--primary-color);
}

.third-segment-index-text {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

/* fourth & fifth together */
.fourth-and-fifth-segment-index {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fourth-and-fifth-segment-index h2 {
  font-size: 3rem;
}

.fourth-segment-index {
  background-color: var(--secondary-color);
  text-align: center;
  padding: 8rem;
  color: var(--primary-color);
  width: 50%;
}

.fifth-segment-index {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  padding: 5rem;
  width: 50%;
}

/* Buttons (gemeinsame Eigenschaften)*/
.fifth-segment-index-button-container a,
.button-form,
footer a,
.categories-button {
  text-decoration: none;
  color: var(--secondary-color);
  font-family: var(--text-font);
  background-color: var(--highlight-color);
  /*Farbkontrast für accessibility*/
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
  display: inline-flex;
  justify-content: center;
  cursor: pointer;
}

/* Feinheiten einzelner Buttons (falls projekt-spezifisch verwendet) */
.categories-button {
  width: 10vw;
  /* projektspezifisch */
  font-size: 1rem;
  padding: 1vw;
  margin: 20px 0 -60px 4vw;
  user-select: none;
}

.button-form {
  margin-top: 1%;
  margin-bottom: 5%;
}

.fifth-segment-index-button-container {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

/* ================= Kategorien / Details ================= */
.categories {
  font-family: var(--text-font);
  text-decoration: none;
}

.categories details ul {
  list-style: none;
  background-color: var(--highlight-color);
  padding: 2vw;
  border-radius: 20px;
  text-align: center;
  width: max-content;
  margin: 30px 0 -30px 2vw;
}

.categories details {
  text-align: left;
}

details li {
  transition: transform 0.3s ease;
}

summary::marker {
  content: "";
}

h3::before {
  content: "";
  display: block;
  height: 120px;
  margin-top: -120px;
}

/* ================= PRODUCTS ================= */
.page-products {
  background-color: var(--secondary-color);
}

.products-grid {
  text-align: center;
}

.first-segment-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3vw;
  padding: 2vw;
  margin: 0;
  background-color: var(--secondary-color);
}

.second-segment-products {
  background-color: var(--primary-color);
  padding: 5rem 2vw;
}

/* Einzelnes Produkt - gemeinsame Eigenschaften */
.product {
  background-color: var(--primary-color);
  padding: 5rem 0.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.product-second {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Titel / Beschreibung - gemeinsame Eigenschaften */
.title-product,
.description-product {
  width: 60%;
}

.title-product {
  font-size: 1.3rem;
  color: var(--secondary-color);
  line-height: 1.8rem;
}

.description-product {
  font-size: 1rem;
  color: var(--secondary-color);
}

.title-product-second,
.description-product-second {
  color: var(--primary-color);
}

#category2,
#category4 {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  margin: 0;
  padding: 4vw;
  margin-top: 2%;
}

h3 {
  font-size: 2rem;
  text-align: left;
  padding: 2rem 4vw;
}

.model {
  transition: transform 0.2s ease;
}

/* model-viewer Anpassung */
model-viewer::part(default-progress-bar) {
  display: none;
}

/* ================= ABOUT-US ================= */
.first-segment-about-us {
  background-color: var(--secondary-color);
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.first-segmet-about-us-text {
  width: 40vw;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.first-segment-about-us-image {
  width: 50%;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: cover;
  object-position: bottom;
  padding: 1vw;
  border-radius: 30px;
}

.our-team-about-us {
  text-align: center;
  color: var(--secondary-color);
}

.second-segment-about-us {
  display: flex;
  flex-direction: column;
}

.segment-team-about-us {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5%;
  padding: 5%;
}

.team-about-us-title {
  font-size: 1.8rem;
}

.segment-team-about-us-variation-two {
  background-color: var(--secondary-color);
}

.team-about-us-image {
  width: 20%;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 100%;
  object-fit: cover;
  object-position: top;
}

.team-about-us-text {
  color: var(--secondary-color);
  width: 60vw;
  text-align-last: left;
}

.team-about-us-text-variation-two {
  text-align-last: right;
  color: var(--primary-color);
}

.team-about-us-text h1 {
  margin-bottom: -10px;
}

/* ================= CONTACT ================= */
.second-segment-contact-greeting {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-color);
  padding: 5%;
}

.second-segment-contact-text-greeting {
  color: var(--primary-color);
  font-size: 1.2rem;
  width: 50%;
  line-height: 1.5;
  text-align: center;
}

.third-segment-contact-information {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5%;
  padding: 5%;
}

span {
  font-weight: bold;
}

.third-segment-contact-map {
  height: auto;
  width: 50%;
}

.third-segment-contact-information-text {
  width: 30%;
  color: var(--secondary-color);
}

/* Kontaktformular */
.title-contact-form {
  color: var(--primary-color);
}

.fourth-segment-contact-form {
  background-color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

::placeholder {
  color: var(--secondary-color);
}

.contact-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

label {
  font-family: var(--header-font);
}

input,
textarea {
  font-family: var(--text-font);
}

.contact-form input,
.contact-form textarea {
  width: 80%;
  max-width: 600px;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 10px;
  box-sizing: border-box;
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* ================= IMPRESSUM & Footer ================= */
.impressum {
  background-color: var(--secondary-color);
}

.text-impressum {
  color: var(--primary-color);
  display: flex;
  width: 50%;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.box-text-impressum {
  display: flex;
  justify-content: center;
  height: 100%;
}

footer {
  background-color: var(--secondary-color);
  padding: 50px;
  display: flex;
  justify-content: center;
}

.footer-two {
  background-color: var(--primary-color);
}

/* ================= Hamburger Menü (Basis) ================= */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 2.5rem;
  height: 2rem;
  cursor: pointer;
  z-index: 1001;
}

/* Linien im Burger */
.nav-toggle-label span {
  display: block;
  height: 0.25rem;
  width: 100%;
  background-color: var(--secondary-color);
  border-radius: 2px;
  transition: transform 0.4s ease, opacity 0.3s ease, background-color 0.3s ease;
  transform-origin: center;
}

/* ================= Globale Überschriften ================= */
h1,
h2,
h3 {
  font-family: var(--header-font) !important;
}

h2 {
  font-size: 5rem;
  line-height: 100%;
}

/* ================= Media Queries ================= */

/* 1400px */
@media screen and (max-width: 1400px) {
  .first-segment-products {
    grid-template-columns: repeat(3, 1fr);
  }

  .fourth-segment-index h2,
  .third-segment-index-text h2,
  .second-segment-index-text h2 {
    font-size: 3rem;
  }

  .fifth-segment-index h2 {
    font-size: 2rem;
  }

  .fifth-segment-index-button-container a {
    font-size: 0.7rem;
    padding: 3%;
  }
}


/* === Desktop: über 1100px === */
@media screen and (min-width: 1101px) {
  nav {
    display: flex !important;
    /* Normales Menü sichtbar */
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
  }

  .nav-toggle,
  .nav-toggle-label {
    display: none;
    /* Hamburger ausgeblendet */
  }
}

/* 1100px (Mobil-Navigation & Hamburger) */
@media screen and (max-width: 1100px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* Navigation als Overlay (mobil) */
  nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--primary-color);
    display: none;
    padding: 2rem 0;
    text-align: center;
    gap: 1.5rem;
    z-index: 999;
    transition: all 0.3s ease;
  }

  /* Hamburger sichtbar */
  .nav-toggle-label {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  /* Logo links */
  #logo-header {
    order: 1;
    margin-right: auto;
  }

  /* Menü sichtbar, wenn Checkbox aktiv */
  .nav-toggle:checked+.nav-toggle-label+nav {
    display: flex;
  }

  /* X-Animation (Basiswerte) */
  .nav-toggle:checked+.nav-toggle-label span:nth-child(1) {
    transform: translateY(0.85rem) rotate(45deg);
  }

  .nav-toggle:checked+.nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked+.nav-toggle-label span:nth-child(3) {
    transform: translateY(-0.85rem) rotate(-45deg);
  }

  /* INDEX */
  .fifth-segment-index-button-container a {
    font-size: 0.7rem;
    padding: 3.5%;
  }

  .fourth-segment-index h2 {
    font-size: 2rem;
  }

  .fifth-segment-index h2 {
    font-size: 1.5rem;
  }

  /* PRODUCTS */
  .first-segment-products {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ABOUT-US Anpassungen */
  .team-about-us-text {
    width: 80vw;
  }

  .team-about-us-title {
    font-size: 1.7rem;
  }
}

/* 980px */
@media screen and (max-width: 980px) {
  .fourth-and-fifth-segment-index {
    flex-direction: column;
  }

  .fourth-segment-index {
    padding: 100px 0px;
    width: 100%;
  }

  .fourth-segment-index-text-box {
    display: flex;
    justify-content: center;
  }

  .fourth-segment-index-text-box p {
    width: 80%;
  }

  .fifth-segment-index-button-container a {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  /* ABOUT-US */
  .team-about-us-title {
    font-size: 1.25rem;
  }

  .first-segment-about-us {
    flex-direction: column;
  }

  .first-segment-about-us img {
    width: 80vw;
    aspect-ratio: 16/8;
  }

  .first-segment-about-us p {
    width: 70vw;
    margin-top: 0px;
  }

  .second-segment-contact-greeting h2 {
    font-size: 1rem;
    width: 80vw;
  }

  .third-segment-contact-information p,
  .third-segment-contact-information {
    font-size: 0.9rem;
    gap: 100px;
  }

  .third-segment-contact-information img {
    width: 40vw;
  }

  .categories-button {
    padding: 1vw 3vw;
    white-space: nowrap;
  }
}

/* 700px */
@media screen and (max-width: 700px) {
  .first-segment-products {
    grid-template-columns: repeat(1, 1fr);
  }

  .fifth-segment-index-button-container a {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .fourth-and-fifth-segment-index {
    flex-direction: column;
  }

  .fourth-segment-index p,
  .third-segment-index-text p,
  .second-segment-index-text p {
    font-size: 0.9rem;
  }

  .third-segment-index-text h2,
  .second-segment-index-text h2 {
    font-size: 2rem;
  }

  .categories-button {
    padding: 1vw 8vw;
    white-space: nowrap;
  }

  .model {
    transform: scale(1.5);
  }

  .segment-team-about-us {
    flex-direction: column;
  }

  .segment-team-about-us-variation-two {
    flex-direction: column-reverse;
  }

  .team-about-us-text,
  .team-about-us-text-variation-two {
    text-align: center;
    text-align-last: center;
    margin: 0 auto;
  }

  .our-team-about-us {
    font-size: 4rem;
  }

  .third-segment-contact-information p {
    width: 40vw;
    font-size: 0.75rem;
  }

  .third-segment-contact-information {
    gap: 30px;
  }

  .nav-toggle-label {
    width: 1.8rem;
    height: 1.4rem;
  }

  .nav-toggle-label span {
    height: 0.18rem;
  }

  .nav-toggle:checked+.nav-toggle-label span:nth-child(1) {
    transform: translateY(0.6rem) rotate(45deg);
  }

  .nav-toggle:checked+.nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked+.nav-toggle-label span:nth-child(3) {
    transform: translateY(-0.6rem) rotate(-45deg);
  }

  .first-segment img {
    aspect-ratio: 16/2;
  }

  .text-on-image h1 {
    font-size: 8vw;
  }

  .first-segment-index-box-text-on-image img {
    aspect-ratio: 16/9;
  }

  .first-segment-index-box-text-on-image h1 {
    font-size: 7.5vw;
  }
}

/* 600px */
@media screen and (max-width: 600px) {
  .nav-toggle-label {
    width: 1.5rem;
    height: 1.2rem;
  }

  .nav-toggle-label span {
    height: 0.15rem;
  }

  .nav-toggle:checked+.nav-toggle-label span:nth-child(1) {
    transform: translateY(0.55rem) rotate(45deg);
  }

  .nav-toggle:checked+.nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked+.nav-toggle-label span:nth-child(3) {
    transform: translateY(-0.5rem) rotate(-45deg);
  }

  .second-segment-index {
    flex-direction: column;
  }

  .third-segment-index {
    flex-direction: column-reverse;
  }

  .segment-index-image {
    width: 80%;
    aspect-ratio: 16/8;
    object-fit: cover;
  }

  .second-segment-index-text,
  .third-segment-index-text {
    width: 80%;
    text-align: center;
  }

  .fourth-segment-index-text-box p {
    width: 80%;
  }

  .fifth-segment-index-button-container a {
    font-size: 0.6rem;
    padding: 0.5rem 1rem;
  }

  .team-about-us-text p {
    font-size: 0.9rem;
  }

  .team-about-us-text h2 {
    font-size: 1rem;
    line-height: 1.5;
  }

  .team-about-us-image {
    width: 20vw;
  }

  .our-team-about-us {
    font-size: 3rem;
  }

  .first-segment-about-us p {
    width: 80vw;
    font-size: 0.9rem;
  }

  .third-segment-contact-information {
    flex-direction: column;
  }

  .third-segment-contact-information img {
    width: 60vw;
  }

  .third-segment-contact-information p {
    width: 80vw;
    text-align: center;
  }

  .first-segment img {
    aspect-ratio: 16/2.5;
  }

  .text-on-image h1 {
    font-size: 8.5vw;
  }

  .first-segment-index-box-text-on-image img {
    aspect-ratio: 16/11;
  }

  .first-segment-index-box-text-on-image h1 {
    font-size: 7.6vw;
  }

  .fifth-segment-index section {
    flex-direction: column;
  }
}

/* 430px */
@media screen and (max-width: 430px) {
  .fifth-segment-index-button-container a {
    font-size: 0.8rem;
    padding: 0.7rem 4vw;
    white-space: nowrap;
  }

  .fifth-segment-index h2 {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .categories-button {
    padding: 2vw 10vw;
    white-space: nowrap;
  }

  .product {
    padding: 6%;
  }

  .model {
    transform: scale(1);
  }

  .team-about-us-image {
    width: 30vw;
  }

  .our-team-about-us {
    font-size: 2.8rem;
  }

  .first-segment-about-us p {
    width: 90vw;
    font-size: 0.8rem;
    margin-top: -10%;
  }

  .third-segment-contact-information img {
    width: 80vw;
  }

  .third-segment-contact-information p {
    font-size: 0.8rem;
  }

  .fourth-segment-contact-form h3 {
    font-size: 1.9rem;
  }

  .first-segment img {
    aspect-ratio: 16/3;
  }

  .text-on-image h1 {
    font-size: 10vw;
  }

  .first-segment-index-box-text-on-image img {
    aspect-ratio: 16/15;
  }

  .first-segment-index-box-text-on-image h1 {
    font-size: 11vw;
    white-space: wrap;
    text-align: center;
  }
}



/*ANIMATIONEN*/

/*Slide-up*/

@keyframes slide-up {
  from {
    transform: translateY(300px);
  }

  to {
    transform: translateY(0);
  }
}

/*Slide-right*/

@keyframes slide-right {
  from {
    transform: translatex(500px);
  }

  to {
    transform: translateY(0);
  }
}

/*slide-left*/

@keyframes slide-left {
  from {
    transform: translatex(-500px);
  }

  to {
    transform: translateY(0);

  }
}

/*slide-right-slow*/

@keyframes slide-right-slow {
  from {
    transform: translatex(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/*Slide-up cover: 25%*/

#category2,
#category3,
#category4,
.model,
.contact-form input,
.contact-form label,
.contact-form textarea {
  animation: slide-up ease;
  animation-timeline: view();
  animation-range: entry cover 25%;
}

/*Slide-up cover: 50%*/

.team-about-us-image,
.team-about-us-text,
.third-segment-contact-information p,
.fourth-and-fifth-segment-index {
  animation: slide-up ease;
  animation-timeline: view();
  animation-range: entry cover 50%;
}

/*Slide-right cover: 35%*/

.third-segment-contact-information img,
.our-team-about-us,
.third-segment-index {
  animation: slide-right ease;
  animation-timeline: view();
  animation-range: entry cover 35%;
}

.product {
    animation: slide-right ease;
  animation-timeline: view();
  animation-range: entry cover 20%;
}

/*Slide-right-slow cover: 10%*/

.button-form {
  animation: slide-right-slow ease;
  animation-timeline: view();
  animation-range: entry cover 10%;
}

/*Slide-left cover: 35%*/

.second-segment-index {
  animation: slide-left ease;
  animation-timeline: view();
  animation-range: entry cover 35%;
}






/*deaktiviert Animationen, bei Geräten, die eine kleinere Breite als 500px haben*/

@media screen and (max-width: 500px) {

  @keyframes slide-up {
    from {
      transform: translateY(0);
    }

    to {
      transform: translateY(0);
    }
  }

  /*Slide-right*/

  @keyframes slide-right {
    from {
      transform: translatex(0);
    }

    to {
      transform: translateY(0);
    }
  }

  /*slide-left*/

  @keyframes slide-left {
    from {
      transform: translatex(0);
    }

    to {
      transform: translateY(0);

    }
  }

  /*slide-right-slow*/

  @keyframes slide-right-slow {
    from {
      transform: translatex(0);
    }

    to {
      transform: translateY(0);
    }
  }

}