* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

html, body {
  overflow-x: hidden;
}

/* GLOBAL */
body {
  font-family: 'Exo 2', sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #ffffff;
}

/* HEADER */
header {
  background-color: #fff;
  padding: 80px 40px 20px 40px;
  border-bottom: 1px solid #ffffff;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
}

.logo img {
  height: 80px;
  width: auto;
  margin-top: -50px;
}

.logo-right img {
  height: 80px;
  width: auto;
}

@media (max-width: 900px) {
  .logo img,
  .logo-right img {
    height: 60px;
  }
}

@media (max-width: 600px) {
  .logo img {
    height: 45px;
  }
}

/* NAVIGATION */
nav {
  margin-top: 20px;
  text-align: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 60px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
}

.nav-links a.active {
  font-weight: 900;
  color: #cc0000;
  border-bottom: 3px solid #cc0000;
  padding-bottom: 5px;
}

.home-icon {
  position: relative;
  top: -10px;
}

/* MAIN */
main {
  flex: 1;
  display: block;
}

/* SCROLL-SEKTIONEN */
.scroll-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 60px;
  width: 100%;
  max-width: 1400px;
  margin: 120px auto;
  padding: 40px;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

.text-box {
  background-color: #edebeb;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.text-box h2 {
  text-align: center;
}

.scroll-section img {
  width: 45%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.scroll-text {
  width: 45%;
  opacity: 0;
  transform: translateX(0);
  transition: all 1s ease;
}

/* Startpositionen */
.from-right {
  transform: translateX(80px);
}

.from-left {
  transform: translateX(-80px);
}

/* Sichtbar */
.scroll-text.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile */
@media (max-width: 900px) {
  .scroll-section {
    flex-direction: column;
  }

  .scroll-section img,
  .scroll-text {
    width: 100%;
  }
}

/* TEXTSEITEN (Impressum, Datenschutz, Kontakt) */
.textseite {
  max-width: 700px;   /* Blockbreite */
  margin: 0 auto;     /* Block zentriert */
}

/* Überschriften mittig */
.textseite h1,
.textseite h2 {
  text-align: center;
}

/* Text linksbündig, aber im zentrierten Block */
.textseite p,
.textseite li,
.textseite br {
  text-align: left;
}

/* FOOTER */
footer {
  background-color: #cc0000;
  color: white;
  text-align: center;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

footer a {
  color: white;
  text-decoration: none;
}

.kontakt-titel {
  text-align: center;
  font-size: 2.2em;
  font-weight: 700;
  text-decoration: underline;
  margin-top: 60px;
  margin-bottom: 40px;
}

.kontakt-box {
  width: 10%;
  margin: 0 auto;        /* Box zentriert */
}

/* Weniger Abstand zwischen den Kontakt-Boxen */
.scroll-section {
  margin: 20px auto;   /* vorher 120px → jetzt viel kompakter */
}

.kontakt-box {
  width: 35%;          /* falls du sie schmaler willst */
  margin: 1px auto;   /* Abstand zwischen den Boxen */
}

.timeline {
  position: relative;
  width: 80%;
  margin: 80px auto;
  padding: 40px 0;
}

/* Mittellinie */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: #cc0000;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Einzelne Elemente */
.timeline-item {
  width: 50%;
  padding: 20px 40px;
  position: relative;
}

/* Punkte auf der Linie */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 18px;
  height: 18px;
  background: #cc0000;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* Links */
.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.left::before {
  right: -9px;
}

/* Rechts */
.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-item.right::before {
  left: -9px;
}

/* Inhalt */
.timeline-content {
  background: #edebeb;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.timeline-content h3 {
  margin-top: 0;
  color: #cc0000;
  font-weight: 900;
}

.trenner {
    border: none;
    border-top: 2px solid black;
    margin: 15px 0;
}


