/* Grundlayout */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-color: black;
  color: white;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
}

.logo {
  font-size: 1.2rem;
  font-weight: 300;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 300;
  font-size: 1.2rem;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  z-index: 1000;
  background: transparent;
}

footer a {
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
}

/* Scroll-Wrapper */
.scroll-wrapper {
  height: 800vh; /* je nach Anzahl Slides anpassen */
  position: relative;
}

/* Horizontal Scrollbereich */
.horizontal-scroll {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Slides */
.slide {
  flex: 0 0 100vw;
  height: 100vh;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



main.textseite {
  padding: 1rem 1rem 1rem 1rem; /* oben, rechts, unten, links */
  max-width: 1000px;
  margin: 0 auto;
  color: white;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 35px;
  line-height: 1.6;
}

h1 {
  font-size: 1rem;  /* gleiche GrÃ¶ÃŸe wie FlieÃŸtext */
  font-weight: bold;
  margin-bottom: 1rem;
}
body {
  background-color: black;
  color: white;
  font-family: 'Helvetica', sans-serif;
  margin: 0;
  padding: 0;
}

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

a:hover {
  text-decoration: underline;
}
.logo {
  font-size: 1.2rem;
  font-weight: 300;
  color: white;
}

.logo,
.logo a {
  color: white;
  text-decoration: none;  /* kein Unterstrich standardmÃ¤ÃŸig */
}

.logo:hover,
.logo:focus,
.logo a:hover,
.logo a:focus {
  text-decoration: underline; /* nur bei Hover/Klick */
}

main ul {
  list-style: none;
  padding-left: 0;
}

.scroll-wrapper {
  height: 800vh; /* Anzahl Slides Ã— 100vh + Puffer */
  position: relative;
}

.horizontal-scroll {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  will-change: transform;
  transition: transform 0.1s ease-out;
  gap: 0;
}

.slide {
  flex: 0 0 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.slide img {
  display: block; /* entfernt Standard-BildlÃ¼cke */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-text {
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.6;
  color: white;
}

/* neue script fÃ¼r loop */

.horizontal-scroll {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  will-change: transform;
}

.slide {
  flex: 0 0 100vw; /* immer volle Breite */
  height: 100vh;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* entfernt eventuelle LÃ¼cken */
}

.slide.text-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.scroll-wrapper {
  position: relative;
  width: 100%;
}

.horizontal-scroll {
  display: flex;
  height: 100vh;
  position: sticky;
  top: 0;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* keine LÃ¼cken zwischen Bildern */
}

.slide-text {
  padding: 2rem;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

.scroll-wrapper {
  position: relative;
  width: 100%;
}

.horizontal-scroll {
  display: flex;
  height: 100vh;
  position: sticky;
  top: 0;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
}

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

.slide-text {
  padding: 2rem;
  box-sizing: border-box;
  padding: 2rem 2rem 4rem 2rem; /* oben, rechts, unten, links */
  max-width: 800px;
  margin: 0 auto;
  color: white;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 35px;
  line-height: 1.6;
}

/* Nur fÃ¼r die Datenschutz-Seite (alles gleiche GrÃ¶ÃŸe, keine Ãœberschriften-Styles) */
main.textseite.privacy-simple {
  max-width: 1000px;      /* gleiche Breite wie About */
  margin: 0 auto;
  padding: 2rem;          /* Abstand wie bei deinen Textseiten */
  font-size: 1rem;        /* einheitliche GrÃ¶ÃŸe fÃ¼r gesamten Text */
  line-height: 1.6;
  color: white;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 300;       /* normaler Schriftschnitt */
}

main.textseite.privacy-simple p {
  margin: 0 0 1rem 0;     /* AbsatzabstÃ¤nde */
}

/* ===========================
   Mobile: horizontales Scrollen per Finger
   =========================== */
   @media (max-width: 768px) {

    /* Scroll-Wrapper anpassen */
    .scroll-wrapper {
      height: 100%;           /* HÃ¶he des sichtbaren Bereichs */
      overflow-x: auto;       /* horizontal scrollen mÃ¶glich */
      overflow-y: hidden;     /* vertikales Scrollen verhindern */
      -webkit-overflow-scrolling: touch; /* sanftes Scrollen auf iOS */
    }
  
    /* Horizontal Scrollbereich */
    .horizontal-scroll {
      display: flex;          /* nebeneinander */
      flex-wrap: nowrap;      /* keine ZeilenumbrÃ¼che */
      height: 100%;           /* volle HÃ¶he */
      transform: none !important; /* Script-Transform ignorieren */
    }
  
    /* Einzelne Slides */
    .slide {
      flex: 0 0 auto;         /* Slide behÃ¤lt seine Breite */
      width: 100vw;           /* volle Bildschirmbreite */
      height: 100%;           /* volle HÃ¶he des sichtbaren Bereichs */
      margin: 0;              /* kein zusÃ¤tzlicher Abstand */
    }
  
    /* Bilder in Slides */
    .slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;      /* Bild fÃ¼llt Slide, nichts verzerrt */
      display: block;
    }
  
    /* Slide-Text anpassen */
    .slide-text {
      font-size: 1rem;
      padding: 1rem;
      max-width: 100%;
    }
  
    /* Header/Footer bleiben fixiert */
    header, footer {
      position: fixed;
      width: 100%;
    }
  }
  
  /* ===========================
   Basis: allgemeines Layout
   =========================== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  background-color: black;
  color: white;
}

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

a:hover {
  text-decoration: underline;
}

/* ---------------------------
   Header
   --------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
}

.logo {
  font-size: 1.2rem;
  font-weight: 300;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 300;
  font-size: 1.2rem;
}

/* ---------------------------
   Footer
   --------------------------- */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  z-index: 1000;
  background: transparent;
}

footer a {
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
}

/* ===========================
   Desktop: horizontales Scrollen via Script
   =========================== */
.scroll-wrapper {
  position: relative;
  height: 800vh; /* je nach Anzahl Slides */
  overflow: visible; /* wichtig fÃ¼r Script */
}

.horizontal-scroll {
  display: flex;
  flex-wrap: nowrap;
  height: 100vh;
  position: sticky;
  top: 0;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.slide {
  flex: 0 0 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.slide-text {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  font-size: 35px;
  line-height: 1.6;
  color: white;
  text-align: left;
}

/* ===========================
   Mobile: horizontales Finger-Scrollen
   =========================== */
   @media (max-width: 768px) {
    .horizontal-scroll {
      display: flex;
      flex-wrap: nowrap;
      height: 100vh;
      align-items: flex-start; /* Start oben */
    }
  
    .slide {
      flex: 0 0 auto;
      width: auto;
      height: 50vh;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 45%; /* optische Verschiebung nach oben */
    }
  
    .slide img {
      height: 50vh;
      width: auto;
      object-fit: contain;
      display: block;
    }
  }
  
  /* Standardtextgröße für Desktop */
main.textseite {
  font-size: 1.5rem;
  line-height: 1.6;
}

/* Mobile-Version */
@media (max-width: 768px) {
  main.textseite {
    font-size: 1.2rem;  /* kleiner auf Handy */
    line-height: 1.4; /* optional, enger Zeilenabstand */
  }
}

@media (max-width: 768px) {
  /* Text auf About- und Projektseiten bündig mit Logo */
  main.textseite,
  .slide-text {
    padding-left: 2rem;  /* gleiches Padding wie das Header-Logo */
    padding-right: 2rem; /* optional, für Abstand rechts */
    box-sizing: border-box;
  }
}
