body {
  margin: 0;
  font-family: "Montserrat";
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  background-color: #fff;
  height: 10dvh;
  width: 100%;
  z-index: 1000;
  padding: 0 2vw;
}

@media (max-width: 768px) {
  #header {
    height: 50px;
    padding: 0 5vw;
  }
}

.logo {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .logo-container {
    position: fixed;
    top: 20px;
    left: 30px;
    z-index: 1000;
  }

  .logo {
    height: 25px;
    width: auto;
    transition: transform 0.3s ease;
  }
}

/* Nav */

nav li a {
  color: black;
  font-size: 0.7rem !important;
  letter-spacing: 0.2em;
  text-decoration: none;
  font-weight: 500 !important;
  transition: color 0.8s ease;
}

nav li a:hover {
  color: #686868 !important;
  transition: color 0.3s ease;
}

/* Standard: schwarz */
#fp-nav ul li a span {
  background: black;
  transition: background 0.8s ease;
}

/* Wenn Section1 aktiv → weiß */
.nav-white ~ #fp-nav ul li a span {
  background: white;
}

/* Grundsetup */
.mobile-nav {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1000;
  padding: 0rem;
  background: transparent;
}

/* Hamburger */
.nav-toggle {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 18px;
  cursor: pointer;
  position: relative;
  z-index: 1010;
}

.hamburger span {
  display: block;
  height: 4px;
  background: #000;
  border-radius: 2px;
  transition: 0.3s;
}

/* Menü verstecken */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100dvh;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: right 0.3s ease;
}

/* Menü sichtbar, wenn Checkbox aktiviert */
.nav-toggle:checked ~ .mobile-menu {
  right: 0;
}

/* Menü-Liste */
.mobile-menu ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.mobile-menu li {
  margin: 1rem 0;
}

.mobile-menu a {
  text-decoration: none;
  font-size: 1.5rem;
  color: #000;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: #555;
}

/* Hamburger Animation beim Öffnen */
.nav-toggle:checked + .hamburger span:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}

.nav-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked + .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
}

@media (max-width: 768px) {
  #fp-nav.fp-right {
    right: 0px;
  }
}

.fp-watermark {
  display: none;
}
/* Allgemeine Section-Einstellungen */
section {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  color: black;
  background-color: #fff;
  text-align: center;
  height: 100dvh !important;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

@media (max-width: 768px) {
  section {
    padding-top: 50px !important;
    padding-bottom: 1dvh !important;
  }
}

.fp-overflow {
  display: flex;
  height: 100%;
}

/* Section1 speziell */
#section1 {
}

/* Vollbild-Hintergrundbild */
.bg-fullscreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("gfx/home.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.bg-filter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.head-text {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  z-index: 3;
}

.head-text h1 {
  letter-spacing: 0.2rem;
  font-size: 4dvw !important;
  color: #fff;
}

.section-container {
  display: flex;
  flex-direction: column;
  width: 100dvw;
  height: 100%;
  padding: 0 5vw;
  overflow: hidden;
}

@media (max-width: 768px) {
  .section-container {
    padding: 0 20px;
  }
}

.section-header {
  margin-top: 10px;
  border-bottom: 1px #000 solid;
}

.section-header h1,
h2 {
  font-size: 5dvh;
  font-weight: 600;
}

.section-header h2 {
  color: #6d6d6d;
}

@media (max-width: 768px) {
  .section-header h1,
  h2 {
    font-size: 2dvh;
    font-weight: 600;
  }
}

.section-content {
  height: 80%;
  flex: 1 1 auto;
}

.section-content a {
  background-color: #000;
  border-radius: 30px;
  padding: 10px 40px;
  margin: 20px 0;
  letter-spacing: 2px;
  display: block;
  width: auto;
  font-size: clamp(5px, 0.6dvw, 20px);
  color: #fff;
  text-decoration: none;
}

.section-content p {
  letter-spacing: 0.1rem;
}

@media (max-width: 768px) {
  .section-content {
    height: 100%;
    flex: 1 1 auto;
  }

  .section-content p {
    letter-spacing: 0;
    margin-bottom: 0.5rem;
  }

  .section-content a {
    width: 100%;
    padding: 10px 0;
    margin: 10px 0;
    letter-spacing: 2px;
    font-size: clamp(10px, 0.6dvw, 20px);
    color: #fff;
    text-decoration: none;
  }
}

.image-container {
  height: 100%;
  max-height: 100%;
}

@media (max-width: 768px) {
  .image-container {
    height: 100%;
    max-height: 30dvh;
  }
}

.image-container img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  max-height: 100%;
}

.text-container {
  display: flex;
  align-items: start;
  text-align: start;
  font-size: clamp(10px, 0.8dvw, 20px);
}

#section2 {
}

@media (max-width: 767px) {
  .section .text-container {
    flex: 0 0 auto; /* Text nimmt nur die Höhe, die er braucht */
  }

  .section .image-container {
    flex: 1 1 auto; /* Bild nimmt den Rest */
    display: flex;
  }

  .section .image-container img {
    object-fit: cover;
    width: 100%;
    height: 100%; /* Bild füllt den Rest */
  }

  .section .mobile-btn {
    flex: 0 0 auto;
    text-align: center;
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8); /* Transparenter Hintergrund */
  pointer-events: none; /* Scroll geht durch */
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 10; /* über Section 1 */
}

.overlay.mobile {
  opacity: 1;
}

.left-side {
  overflow: hidden;
  top: 0;
  left: 0;
  height: 100dvh;
  background: #fff;
  padding: 14dvh 5dvw 5rem;
  z-index: 3;
}

.left-side .head-text {
  float: left;
}

.left-side h2 {
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  transform: rotate(180deg);
  text-align: center;
  margin: 0 1rem 0 -5px;
  width: 25px;
  font-size: clamp(25px, 1.7dvw, 40px);
  font-weight: 800;
  color: #000;
}

.text-content {
  width: 100%;
  margin-top: 6dvh;
  color: #6d6d6d;
}

.left-side p {
  text-align: justify;
  font-size: clamp(10px, 0.8dvw, 20px);
}

.left-side a {
  background-color: #000;
  border-radius: 30px;
  padding: 8px 0;
  letter-spacing: 2px;
  display: block;
  width: 100%;
  font-size: clamp(10px, 0.8dvw, 20px);
  color: #fff;
  text-decoration: none;
}

/* --- Mobile Version --- */
@media (max-width: 767.98px) {
  .left-side {
    padding: 5rem 7dvw 1rem;
  }

  .left-side > .flex-grow-1 {
    flex: 1 1 auto; /* wächst nur auf Resthöhe */
    min-height: 0; /* wichtig: verhindert Überlauf */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Bild wird nicht größer als Container */
  }

  .img-mobile {
    max-height: 100%;
    width: 100%;
    object-fit: cover;
  }

  /* Button unten */
  .left-side .content-btn {
    flex: 0 0 auto; /* wächst nicht */
    margin-top: 1rem;
    position: relative; /* NICHT absolute */
  }

  .text-content {
    width: 100%;
    margin-top: 10dvh;
    color: #6d6d6d;
  }
}

.content-btn {
  position: relative; /* NICHT mehr absolute */
  margin-top: auto; /* Button bleibt unten */
}

.left-side a:hover {
  background-color: #3d3d3d;
  color: #dadada;
  transition: all 0.3s ease;
}

.right-side {
  position: relative;
  top: 0;
  right: 0;
  height: 100%;
  background: #fff;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 3;
}

.right-side img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

#section3 {
}

#section4 {
}

#section5 {
}

#section6 {
}

#section7 {
}

#section8 {
}

/* Formular */
form {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

input {
  border-bottom: 1px #6d6d6d solid !important;
  border-radius: 0px;
}

textarea {
  border: 1px #6d6d6d solid !important;
  border-radius: 12px !important;
}

input,
textarea,
button {
  margin: 10px 0;
  padding: 10px;
  border: none;
  font-size: 1rem;
}

input,
textarea {
  width: 100%;
}

.content-contact {
  padding: 8rem 5dvw 5rem;
  width: 100%;
  margin: 0;
}

.content-contact h2 {
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  transform: rotate(180deg);
  text-align: center;
  margin: 0 1rem 0 -5px;
  width: 25px;
  font-size: clamp(25px, 1.7dvw, 40px);
  font-weight: 800;
  color: #000;
}

.content-contact h3 {
  font-size: clamp(20px, 1.7dvw, 40px);
  font-weight: 500;
  letter-spacing: 2px;
  color: #000;
}

@media (max-width: 767.98px) {
  .content-contact {
    padding: 5rem 7dvw 1rem;
  }
}

button {
  background-color: #000;
  border-radius: 30px;
  padding: 8px 0;
  letter-spacing: 2px;
  display: block;
  width: 100%;
  font-size: clamp(10px, 0.8dvw, 20px);
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #424242;
}

.mobile-btn {
  background-color: #000;
  border-radius: 30px;
  margin: 10px 0;
  padding: 10px 0;
  letter-spacing: 2px;
  display: block;
  width: 100%;
  font-size: clamp(10px, 0.6dvw, 20px);
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

/* Status-Text */
#formStatus {
  margin-top: 10px;
  font-size: 1rem;
}
