@charset "UTF-8";

/* ==========================================
   1. SCHRIFTARTEN (Rokkitt & Poppins)
   ========================================== */

@font-face {
  font-family: 'Rokkitt';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/rokkitt-v18-latin-regular.woff2') format('woff2'),
       url('fonts/rokkitt-v18-latin-regular.woff') format('woff');
}

@font-face {
  font-family: 'Rokkitt';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/rokkitt-v18-latin-600.woff2') format('woff2'),
       url('fonts/rokkitt-v18-latin-600.woff') format('woff');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/poppins-v9-latin-500.woff2') format('woff2'),
       url('fonts/poppins-v9-latin-500.woff') format('woff');
}

/* ==========================================
   2. GLOBAL RESET & BASE STYLES
   ========================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Rokkitt', serif;
  background-color: #f4f4f4;
  color: #303133;
  -webkit-font-smoothing: antialiased;
}

p, li {
  font-family: 'Rokkitt', serif;
  font-weight: 400;
  color: #303133;
  line-height: 1.3;
  margin: 6px 0 6px 0;
  font-size: 17px;
}

a {
  color: #303133;
  text-decoration: none;
}

a.liner {
  color: #303133;
  border-bottom: 1px solid #a7bfcb;
}

/* Überschriften */
h1, .h1 {
  font-family: 'Rokkitt', serif;
  color: #303133;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 50px;
  line-height: 1.1;
  margin-bottom: 5px;
}

h2, .h2 {
  font-family: 'Rokkitt', serif;
  color: #303133;
  font-size: 25px;
  margin-top: 7px;
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  margin: 2px 0 0 0;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #7c95a1;
  font-weight: 500;
}

h4, .h4 {
  font-family: 'Rokkitt', serif;
  color: #f4f4f4;
  font-size: 25px;
  margin-top: 7px;
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

/* ==========================================
   3. VERTIKALES LOGO IN DER MITTE & BUTTON
   ========================================== */

#etuilogo, .center-logo {
  position: fixed;
  z-index: 100;
  cursor: pointer;
  pointer-events: auto !important;
  display: block;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  transition: opacity 3s ease-out, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

body.is-loaded #etuilogo,
body.is-loaded .center-logo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (min-width: 681px) {
  #etuilogo, .center-logo {
    width: 90px;
    height: 391px;
    top: 50%;
    left: 50%;
    background: url(images/etuipop-logo.svg) no-repeat center/contain;
  }
}

@media (min-width: 1300px) {
  #etuilogo, .center-logo {
    width: 122px;
    height: 530px;
  }
}

.center-logo span {
  display: none;
}

/* ==========================================
   4. SPLIT-SCREEN LAYOUT & SEKTIONEN
   ========================================== */

.split-container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

.split-left, .split-right {
  width: 50%;
  height: 100%;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.section {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Inhalte näher an das Logo rücken */
.split-left .section {
  display: flex;
  justify-content: flex-end;
  padding-right: 8vw;
  padding-left: 1vw;
}

.split-right .section {
  display: flex;
  justify-content: flex-start;
  padding-left: 8vw;
  padding-right: 2vw;
}

/* ==========================================
   5. PROJECT CARD & BILDER / SLIDER
   ========================================== */

.project-card,
.intro-text-wrapper,
.intro-img-wrapper {
  margin: 0;
}

.project-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  width: 95%;
  max-width: 600px;
}

/* Alle Kind-Elemente strikt linksbündig */
.project-card > * {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  align-self: flex-start !important;
}

.project-card img {
  display: block !important;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  object-position: left center !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.project-card h2,
.project-card h3,
.project-card p,
.project-card .project-btn {
  text-align: left;
  margin-left: 0;
}

.project-card .img-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.img-wrapper.over {
  margin-left: -25px !important;
}

.img-wrapper.shad img {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.project-card.big {
  margin-left: 10vw !important;
}

.project-card.big img {
  max-width: 100%;
  max-height: 58vh;
}

.project-card.small img {
  max-width: 85%;
  max-height: 55vh;
}

/* Intro-Bereich */
.intro-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0vh 0 4vh;
  max-height: 90vh;
}

.intro-img-wrapper img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 5px;
  overflow: hidden;
  clip-path: inset(0 round 5px);
}

.intro-text-wrapper {
  max-width: 500px;
  text-align: left;
}

/* ==========================================
   6. BUTTON STYLES
   ========================================== */

.project-btn,
.project-card .project-btn {
  display: inline-block !important;
  color: #303133;
  outline: none;
  box-shadow: none;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 10px;
  border: 1px solid #a7bfcb;
  background-color: transparent;
  margin-top: 16px;
  line-height: 11px;
  padding: 8px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 0 !important;
}

.project-btn:hover {
  color: #f4f4f4;
  background-color: #a7bfcb;
}

/* ==========================================
   7. PROJECT SLIDER
   ========================================== */

.project-card .project-slider {
  width: 100% !important;
  position: relative;
  margin-bottom: 10px;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.slider-slides {
  position: relative;
  width: 100%;
  height: 62vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-slides .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.slider-slides .slide.active {
  opacity: 1;
  visibility: visible;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: -62px auto 20px auto;
  z-index: 100;
  position: relative;
}

.s-dot {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  border-radius: 50%;
  border: 2px solid #b4cad6;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.s-dot:hover,
.s-dot.active {
  background-color: #b4cad6;
}

/* ==========================================
   8. DOTS NAVIGATION (Rechts fixiert)
   ========================================== */

.nav-dots {
  position: fixed;
  right: 1.5vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dot {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  border-radius: 50%;
  background-color: #b4cad6;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

.dot:hover, .dot.active {
  background-color: #d9dfe2;
  opacity: 0.6;
}

/* ==========================================
   9. INFORMATION DRAWER
   ========================================== */

.info-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #b5cad3;
  color: #f4f4f4;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  padding: 2.5rem 0 3rem 0;
}

.info-drawer.open {
  transform: translateY(0);
}

.info-toggle {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 40px;
  background-color: #b5cad3;
  border: none;
  color: #f4f4f4;
  font-family: 'Rokkitt', serif;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 40px;
  text-align: center;
  outline: none;
}

.info-toggle:hover {
  background-color: #91a7b1;
}

.info-content {
  display: flex;
  justify-content: space-between;
  width: 96%;
  margin: 0 auto;
  gap: 2%;
}

.info-column:nth-child(1) { width: 40%; }
.info-column:nth-child(2) { width: 40%; }
.info-column:nth-child(3) { width: 20%; }

.info-column h3 {
  color: #f4f4f4;
  font-size: 28px;
  font-family: 'Rokkitt', serif;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  font-weight: normal;
}

.info-column p {
  color: #303133;
  font-size: 17px;
  line-height: 1.3;
}

.info-column ul, ul {
  list-style: none;
  margin-left: 0;
}

.info-column ul li {
  position: relative;
  padding-left: 18px;
  margin: 4px 0;
  color: #303133;
  font-size: 17px;
  line-height: 1.2;
}

.info-column ul li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: #303133;
}

.info-column a {
  color: #f4f4f4;
  font-weight: 600;
}

/* ==========================================
   10. START-ANIMATION OVERLAYS
   ========================================== */

.intro-mask-left,
.intro-mask-right {
  position: fixed;
  top: 0;
  width: 50vw;
  height: 100vh;
  background-color: #f4f4f4;
  z-index: 90;
  transition: transform 3s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

.intro-mask-left { left: 0; }
.intro-mask-right { right: 0; }

body.is-loaded .intro-mask-left { transform: translateY(-100%); }
body.is-loaded .intro-mask-right { transform: translateY(100%); }

/* ==========================================
   11. PRIVACY MODAL
   ========================================== */

.privacy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #f4f4f4;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.privacy-modal h2{
	margin-top: 30px;
}

.privacy-modal.open {
  opacity: 1;
  visibility: visible;
}

.privacy-close {
  position: absolute;
  top: 25px;
  right: 30px;
  background: none;
  border: none;
  font-size: 36px;
  color: #303133;
  cursor: pointer;
  line-height: 1;
  z-index: 310;
}

.privacy-container {
  display: flex;
  justify-content: space-between;
  width: 98%;
  max-width: 1200px;
  height: 90vh;
  margin-left: 2%;
  overflow-y: auto;
}

.privacy-column {
  width: 50%;
  padding: 10px;
  text-align: left;
}

/* ==========================================
   12. MOBIL-OPTIMIERUNG (Unter 900px)
   ========================================== */

@media screen and (max-width: 900px) {
  html, body {
    overflow: auto;
  }
  h3 {
    letter-spacing: 3px;
}
.project-btn, .project-card .project-btn{
	margin-bottom: 30px;
}
#go-to-portfolio{
	display: none !important;
}
.slider-slides {
    height: 350px;
}
.slider-dots {
    margin: -2px auto 20px auto;
}

  #etuilogo, .center-logo, .nav-dots {
    display: none !important;
  }

  /* Spalten-Hüllen mobil auflösen */
  .split-left,
  .split-right {
    display: contents !important;
  }

  .split-container {
    flex-direction: column;
    height: auto;
  }

  /* Intro-Reihenfolge erzwingen */
  .intro-img-section { order: -2 !important; }
  .intro-text-section { order: -1 !important; }

  .section {
    height: auto;
    padding: 3rem 1.5rem;
  }

  .split-left .section,
  .split-right .section {
    padding: 3rem 1.5rem 0;
  }

  .project-card {
    width: 100%;
    max-width: 100%;
  }

  .project-card.big {
    margin-left: 0 !important;
  }

  .project-card.big img, 
  .project-card.small img {
    max-width: 100%;
    max-height: none;
  }

  .img-wrapper.over {
    margin-left: 0 !important;
  }

  .intro-text-wrapper {
    max-width: 100%;
    text-align: left;
  }

  .intro-img-wrapper {
    padding: 0;
    max-height: none;
  }

  .intro-img-wrapper img {
    max-width: 100%;
    max-height: none;
  }

  /* Info Drawer Mobil */
  .info-content {
    flex-direction: column;
    width: 90%;
    gap: 2rem;
  }

  .info-column:nth-child(1),
  .info-column:nth-child(2),
  .info-column:nth-child(3) {
    width: 100%;
  }

  .info-drawer {
    position: relative;
    transform: none;
    padding: 2rem 1.5rem;
    margin-top: 50px;
  }

  .info-toggle {
    display: none;
  }

  /* Modal-Anpassungen Mobil */
  .privacy-container {
    flex-direction: column;
    width: 100%;
    padding: 20px;
    height: 100vh;
    box-sizing: border-box;
  }

  .privacy-column {
    width: 100%;
    padding: 0;
    margin-bottom: 25px;
  }

  body.modal-open #etuilogo,
  body.modal-open .center-logo {
    display: none !important;
  }
}