* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  height: 100%;
  font-family: Verdana, sans-serif;
}
.split {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100vh;
  overflow: visible;
}
.left {
  left: 0;
  background: url('pexels-michael-jamet-1061576172-32388941.jpg') no-repeat left left;
  background-size: cover;
}
.right {
  right: 0;
  background-color: #001018;
  color: white;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
}
.overlay {
  background-color: rgba(0, 0, 0, 0.3);
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo {
  color: white;
  font-size: 1.5rem;
  border: 1px solid white;
  padding: 0.5rem 1rem;
}
.content h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  text-transform: lowercase;
  line-height: 1.1;
}
.button {
  display: inline-block;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: white;
  color: #001A27;
  text-decoration: none;
  font-weight: bold;
}
.socials {
  margin-top: 1rem;
}
.socials a {
  margin: 0 0.5rem;
}
.socials img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.probit-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 2rem;
}

.footer-links {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  text-align: center;
  padding: 1rem 0 0.7rem 0;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.07);
}

.footer-links a {
  color: #001018;
  text-decoration: none;
  margin: 0 1.2rem;
  font-size: 1rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

/* Media Query für mobile Geräte */
@media screen and (max-width: 768px) {
  .split {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 50vh;
  }

  .left {
    top: 0;
  }

  .right {
    top: auto;
    padding: 2rem 1rem;
  }

  .content h1 {
    font-size: 2rem;
  }

  .probit-logo {
    max-width: 150px;
  }

  .background-image {
    display: block; /* Stellt sicher, dass das Bild sichtbar bleibt */
  }
  
  .split.right {
    background-color: rgba(0, 16, 24, 0.7); /* Transparenter Hintergrund */
  }

  .overlay {
    padding: 2rem;
    min-height: 50vh;
  }

  .button {
    padding: 0.75rem 1.5rem;
    margin: 1.5rem 0;
  }

  .socials {
    margin-top: 1.5rem;
  }

  .socials img {
    width: 25px;
    height: 25px;
    margin: 0 0.75rem;
  }

  .footer-links {
    position: fixed;
    bottom: 0;
    background-color: rgba(0, 16, 24, 0.9);
    padding: 1rem;
    margin: 0;
  }
  
  .footer-links a {
    display: inline-block;
    margin: 0.5rem 1rem;
  }

  .legal-content {
    padding: 1rem;
    max-width: 100%;
  }
  
  .legal-text h2 {
    font-size: 1.1rem;
  }

  .footer-links {
    background: #001018;
  }
  .footer-links a {
    color: #fff !important;
  }
}

/* Für sehr kleine Bildschirme */
@media screen and (max-width: 480px) {
  .content h1 {
    font-size: 1.25rem;
  }

  .probit-logo {
    max-width: 120px;
  }
}

/* Content-Bereich anpassen */
.split.right {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: rgba(0, 16, 24, 0.9);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
}

.content {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .split.right {
    min-height: auto;
  }
  
  .content {
    padding: 1.5rem;
  }
  
  .probit-logo {
    max-width: 150px;
  }
  
  .content h1 {
    font-size: 1.5rem;
  }
  
  .legal-content {
    padding: 1rem;
    max-width: 100%;
  }
  
  .footer-links {
    position: fixed;
    bottom: 0;
    background-color: rgba(0, 16, 24, 0.9);
    padding: 1rem;
    margin: 0;
  }
  
  .footer-links a {
    display: inline-block;
    margin: 0.5rem 1rem;
  }
}

/* Zusätzliche Anpassungen für sehr kleine Bildschirme */
@media screen and (max-width: 480px) {
  .content h1 {
    font-size: 1.25rem;
  }
  
  .probit-logo {
    max-width: 120px;
  }
}

.legal-content {
  max-width: 800px;
  margin: 3rem auto 4rem auto; /* oben 3rem, unten 4rem Abstand */
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.legal-text {
  text-align: left;
  margin: 2rem 0;
}

.legal-text h2 {
  margin: 1.5rem 0 1rem 0;
  font-size: 1.2rem;
}

.legal-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Hintergrundbild für Startseite stärker abschwächen */
body:not(.legal-page) .background-image img {
  opacity: 0.4; /* Bild wird stärker transparent */
}

/* Hintergrundbild für Unterseiten ausblenden und dunkleren Hintergrund setzen */
.legal-page .background-image {
  display: none;
}

.legal-page .split.right {
  background-color: #001018; /* Solider dunkler Hintergrund für Unterseiten */
}

/* Nur auf der Startseite vertikal zentrieren */
body:not(.legal-page) .split.right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

body:not(.legal-page) .content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 600px) {
  .content h1 {
    font-size: 2rem;
  }
  .footer-links {
    background: #001018;
  }
  .footer-links a {
    color: #fff !important;
  }
  .legal-content {
    margin: 2rem auto 5rem auto; /* oben 2rem, unten 5rem für Footer */
    padding: 1rem 0.5rem;
  }
}
