/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: var(--space-top);
  padding-left: var(--space-left);
  padding-right: var(--space-left);

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: white;
  z-index: 100;
}

/* ---------- HORIZONTAL DESKTOP SCROLL ---------- */
.horizontal-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 80px;
  margin-left: var(--space-left);
  padding-right: var(--space-left);
  padding-top: var(--space-top);
  padding-bottom: var(--space-bottom);

  height: 100vh;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.panel {
  height: calc(100vh - var(--space-top) - var(--space-bottom));
  object-fit: contain;
  flex-shrink: 0;
  scroll-snap-align: start;
  width: auto;
}

.vertical-track .panel {width: 100%;}






/* ---------- MOBILE: VERTIKAL ---------- */
@media (max-width: 900px) {

  .header {
    height: var(--space-top-m);
    padding-left: var(--space-left-m);
    padding-right: var(--space-left-m);
  }

  .horizontal-track {
    flex-direction: column;
    gap: 40px;

    /*padding-left: var(--space-left-m);*/
    padding-right: var(--space-left-m);
    padding-top: var(--space-top-m);
    padding-bottom: var(--space-bottom-m);

    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .panel {
    height: auto;
    width: 100%;
    margin-bottom: 60px;
  }
}

  /* ---------- MOBILE: VERTIKAL ---------- */
  @media (max-width: 500px) {

    .header {
      padding-left: 3%;
      padding-right: 3%;
      height: 120px;
    }

   /* figure {
      margin-left: -13%;
      margin-right: -13%;
  }*/

    .fullwidth-page-wrapper {
      padding-top: 120px!important;
  }
  
    .horizontal-track {
      padding-right: 3%;
      padding-top: 120px;
      padding-bottom: var(--space-bottom-m);
      margin-left: 3%
    }

    .fullwidth-page-wrapper {
      padding-left: 3%!important;
      padding-right: 3%!important;
     }

     .vertical-track {
      padding-left: 3%!important;
      padding-right: 3%!important;
      padding-top: 120px!important;
      gap: 3%;
  }

  .panel {
    margin-bottom: 3%!important;
  }


  .logo img {
    width: 80vw!important;
  }

  
  }



/* -----------------------------
 NAV PANEL (Slide-In Right)
------------------------------ */

.nav-panel {
  position: fixed;
  top: 0;
  right: 0;

  width: 320px;
  height: 100vh;

  background: #ffffff;

  transform: translateX(100%);
  transition: transform 0.35s ease;

  padding: 40px 30px;

  display: flex;
  flex-direction: column;
  gap: 40px;

  z-index: 9999;
}

/* Wenn geöffnet */
.nav-panel.open {
  transform: translateX(0);
}

/* Close Button */
.nav-close {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  align-self: flex-end;
}

/* Navigation Links */
.nav-links {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.subn.nav-links a {
  color: #888;
  font-size: 0.7rem;
}

/* Mobile Breite adaptieren */
@media (max-width: 900px) {
  .nav-panel {
    width: 100%;
    padding-top: 20px;
  }
}


.text-panel {
  flex-shrink: 0;
  scroll-snap-align: start;

  display: flex;
  flex-direction: column;

  max-width: 600px;
 /* padding-right: 60px;*/

  height: calc(100vh - var(--space-top) - var(--space-bottom));
  overflow-y: auto;
 /* border-top: 1px solid black;
border-bottom: 1px solid black;*/
}

.two.text-panel {
  max-width: 1200px;
}

.onehalf.text-panel {
  max-width: 900px;
}

/* HEADLINE */
.tp-headline {
 /* margin-bottom: 40px;*/

  font-size: 1.4em;
  font-weight: normal;
  text-transform: lowercase;
  /*margin-top: 40px; */
  position: relative;
    top: -3px;
}

/* Schwarze Linie */
.tp-line {
  width: 100%;
  height: 1px;
  background-color: #000;
  margin-bottom: 25px;
}

/* CONTENT */
.tp-content {
  flex: 1 1 auto; /* Damit Text den mittleren Bereich einnimmt */
  display: flex;
  flex-direction: column;
  text-align: justify;
}

/* TABELLE */
.text-panel table {
/*  padding: 15px 0;
  border-top: 1px solid black;
  padding-bottom: 0px;*/
  font-size: 0.8em;
  table-layout: auto;
  width: fit-content;
}

.text-panel table td {
  padding-right: 30px;
  }

.text-panel hr {
  height: 1px;
border: none;
border-top: 1px solid black;
padding: 6px;
}

.text-panel table div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}


@media (max-width: 900px) {

  .text-panel {
    max-width: 100%;
    height: auto;
    overflow-y: visible;
    padding-right: 0;
  }

  .text-panel table {
    font-size: var(--font-body-m);
  }
} 



/* ---------- VERTICAL TRACK (zweite Seite) ---------- */

.vertical-track {
display: flex;
flex-direction: column;
align-items: center;         /* Zentriert den Inhalt */
gap: 80px;

padding-left: var(--space-left);
padding-right: var(--space-left);
padding-top: var(--space-top);
padding-bottom: var(--space-bottom);

max-width: 1100px;           /* maximale Breite */
margin: 0 auto;              /* zentriert die gesamte Sektion */
}

.vertical-panel {
width: 100%;
max-width: 900px;            /* Breite der Inhalte */
scroll-snap-align: start;
}

/* Standard: mobile gallery ausgeblendet */
section.vertical-track.vertical-only {
  display: none;
}

/* Mobile aktiviert alternative Galerie */
@media (max-width: 900px) {
  .desktop-only {
      display: none;
  }
  .vertical-only {
      display: block!important;
  }
}


/* MOBILE */
@media (max-width: 900px) {
.vertical-track {
  padding-left: var(--space-left-m);
  padding-right: var(--space-left-m);
  padding-top: var(--space-top-m);
  padding-bottom: var(--space-bottom-m);
  gap: 40px;
}

.vertical-panel {
  max-width: 100%;
}
}

.wp-block-separator {
  border: none;
  border-top: 1px solid;
  margin-bottom: 30px;
}

article a {
  color: #555;
  text-decoration: none;
}

h2.visu-title {
  font-weight: 200 !important;
  font-size: 1em;
  text-transform: lowercase;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid black;
  padding-top: 20px;
  text-align: right;
}

/* ================================
   STARTSEITE – GALERIE SLIDER
================================ */

/* Galerie-Wrapper */
.home .wp-block-gallery {
  position: relative;
  aspect-ratio: 1;
}

/* Einzelne Slides */
.home .wp-block-gallery .wp-block-image {
  position: absolute !important;
  inset: 0;

  width: 100%;
  height: 100%;
  margin: 0 !important;
  justify-content: flex-start!important;
  opacity: 0;
  animation: fadeSlider 20s infinite;
}

/* Bilder */
.home .wp-block-gallery .wp-block-image img {
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  aspect-ratio: 1 !important;
  flex: none !important;
  max-height: 100%;
}

.home-col-2 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-col-2 p {
margin: 0;
}

.h3vw {
  font-size: 1.1vw;
  margin-bottom: 5vw;
}

.h4vw {
  font-size: 1.1vw;
  margin-top: 20px;
}

.home a {text-decoration: none; color: black;}



/* Timing je Slide */
.home .wp-block-gallery .wp-block-image:nth-child(1) { animation-delay: 0s; }
.home .wp-block-gallery .wp-block-image:nth-child(2) { animation-delay: 5s; }
.home .wp-block-gallery .wp-block-image:nth-child(3) { animation-delay: 10s; }
.home .wp-block-gallery .wp-block-image:nth-child(4) { animation-delay: 15s; }

/* Fade Animation */
@keyframes fadeSlider {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  30%  { opacity: 0; }
  100% { opacity: 0; }
}

.navalign {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.menu-item {
  padding: 8px 0;
  margin: 3px;

  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.subn .menu-item {
  padding: 0px 0;
}

.current-menu-item {
  border-top: 1px solid #888;
  border-bottom: 1px solid #888;
}

.current-menu-item a {
  color: #888;
}



/* --- FULLWIDTH PAGE LAYOUT --- */

.fullwidth-page-wrapper {
  padding-left: var(--space-left);
  padding-right: var(--space-left);
  padding-top: var(--space-top);
  padding-bottom: var(--space-bottom);
}

/* Inhalt soll 100% Breite haben – keine max-width */
.fullwidth-inner {
  width: 100%;
}

.page-id-659 .fullwidth-inner, .page-id-680 .fullwidth-inner {
  width: 80%;
}

@media (max-width: 900px) {

  .page-id-659 .fullwidth-inner, .page-id-680 .fullwidth-inner {
    width: 100%;
  }

  .fullwidth-page-wrapper {
      padding-left: var(--space-left-m);
      padding-right: var(--space-left-m);
      padding-top: var(--space-top-m);
      padding-bottom: var(--space-bottom-m);
  }

  .h3vw {
    font-size: 2.3vw;
  }
  
  .h4vw {
    font-size: 2.1vw;
    margin-top: 20px;
  }
}

.page-id-659 figure.wp-block-gallery.is-layout-flex {
  gap: var(--wp--style--block-gap) !important;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.page-id-659 figure.wp-block-image.size-full {
  width: 100% !important;
}

@media (max-width: 1200px) {
.page-id-659 figure.wp-block-gallery.is-layout-flex {
  grid-template-columns: 1fr 1fr;
}
}

@media (max-width: 700px) {
  .page-id-659 figure.wp-block-gallery.is-layout-flex {
    grid-template-columns: 1fr;
  }
  }





.frontpage-track {
  position: fixed;
  top: var(--space-top);
  bottom: var(--space-bottom);
  left: var(--space-left);
  right: var(--space-left);
  }


/* ===== FRONT PAGE HERO LAYOUT ===== */
.frontpage-hero {
  padding-top: var(--space-top);
  padding-bottom: var(--space-bottom);
  padding-left: var(--space-left);
  padding-right: var(--space-left);
}

.frontpage-hero__layout {
  display: flex;
  gap: 70px;
  align-items: flex-start;
  overflow: hidden;
  top: var(--space-top);
  bottom: var(--space-bottom);
  left: var(--space-left);
  right: var(--space-left);
  position: absolute;
}


.frontpage-hero__left {
  flex: 1 1 auto;
  height: 100%;
  width: 66%;
  aspect-ratio: 1;
}

/* RECHTE SPALTE: volle Höhe + oben/unten-Verteilung */
.frontpage-hero__right {
  width: 33%;
  height: calc(100vh - var(--space-top) - var(--space-bottom));

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* oben / unten */
  gap: 0; /* wichtig, sonst verschiebt es die Logik */
}

/* Oben: Text 1 */
.frontpage-hero__top {
  margin: 0;
  font-size: 2vw;
}

/* Unten: Gruppe aus Bild + Text 2 */
.frontpage-hero__bottom {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.frontpage-hero__thumb img {
  width: auto;
  max-height: 30vh;
  display: block;
  aspect-ratio: 1;
  float: right;
}

/* Optional: falls in WYSIWYG viele <p> drin sind */
.frontpage-hero__top p,
.frontpage-hero__projects p {
  margin: 0;
  line-height: 1.35;
}


.frontpage-hero__projects {
  font-size: 1.3em;
}


.frontpage-hero__projects a{
  color: var(--color-text);
  text-decoration: none;
}

.wp-block-columns {
  gap: 5vw;
  /*margin-bottom: 5vw;*/
}

.home .wp-block-columns {

  margin-bottom: 0vw;
}

.wp-block-image :where(figcaption) {
  font-size: 1.1vw;
  margin: 10px 0px;
  text-transform: lowercase;
}

figure.wp-block-image.size-large {
  display: flex;
  flex-direction: column;
}

.small figure.wp-block-image.size-large {
  flex-direction: column-reverse;
}

/* Mobile: untereinander */
@media (max-width: 900px) {
  .frontpage-hero {
    padding-top: var(--space-top-m);
    padding-bottom: var(--space-bottom-m);
    padding-left: 10%;
    padding-right: 10%;
  }

  .frontpage-hero__layout {
    overflow: visible;
    flex-direction: column;
    position: relative;
    left: 0;
    padding-bottom: 50px;
    top: 0px;
  }

  .frontpage-hero__right {
    width: 100%;
    height: auto;      /* keine volle Viewport-Höhe mobil */
    gap: 40px;
  }

  .frontpage-hero__bottom {
    gap: 24px;
  }

  .frontpage-hero__left.frontpage-slider {
    width: 100%;
}

.frontpage-hero__thumb img {
  float: none;
  width: 100%;
  height: auto;
}

.wp-block-image :where(figcaption) {
  font-size: 2vw;
}

.small figure.wp-block-image.size-large {
  flex-direction: column;
}

p {
  font-size: 0.9rem;
}

.tp-table {
  font-size: 14px;
}

.tp-headline {
  font-size: 1.3em!important;
}
}
.wp-block-column a {color: black;text-decoration: none;}

p.justify {
  text-align: justify;
}


.header, .fullwidth-page-wrapper {
  max-width: 1600px;
  margin: auto;
  
}

.single-projekt .header, .single-projekt .fullwidth-page-wrapper {
  max-width: none;
}


#cmplz-document {
  max-width: 100%!important;
}