/* ===========================================================
   DESKTOP.CSS — nur ab 769px Breite aktiv (media-Attribut im <link>)
   Splitscreen links Text / rechts Fotos. Regeln sind 1:1 aus der
   bisherigen main.css übernommen; Mobile kann sie nicht mehr beeinflussen.
=========================================================== */

/* ===========================
   BODY / LAYOUT
=========================== */
body {
  cursor: crosshair;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh; /* berücksichtigt die ein-/ausblendbare Werkzeugleiste */
  overflow: hidden;
}

.flexmama {
  display: flex;
  width: 100vw;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  gap: 0;
}

.flexone,
.flextwo {
  flex-grow: 1;
  font-family: 'Navi';
}

.flexone {
  background-color: rgb(245, 245, 245);
  position: relative;
  min-width: 0;
}

.flexone-scroll {
  height: 100%;
  overflow-y: scroll;
}

.flextwo {
  background-color: rgb(0, 0, 0);
  min-width: 30%;
  max-width: 65%;
  cursor: crosshair;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.flextwo .photo {
  position: relative;
  width: 100%;
  cursor: pointer;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.flextwo .photo img,
.flextwo .photo video {
  width: 100%;
  height: auto;
}

/* Nur bei Poster Collection (img-section5): Größe & Hintergrund hier frei anpassen. */
#img-section5 .credit {
  mix-blend-mode: normal; /* das Poster-Label hat einen eigenen schwarzen Hintergrund */
  font-size: 15pt;
  color: white;
  padding: 0 0.4rem 0.8rem 0.2rem;
  border-radius: 0 0 2rem 0;
  top: 0;
  left: 0;
  bottom: auto;
  right: auto;
  background-color: rgb(0, 0, 0);
}

/* Poster Collection: jedes Foto wird unabhängig vom eigenen Seitenverhältnis
   im festen DIN-A-Hochformat gezeigt (Breite : Höhe = 1 : √2) und dafür bei
   Bedarf mittig zugeschnitten. Die Startbreite von .flextwo wird passend
   dazu in js/desktop.js berechnet (computePosterCollectionWidth). */
#img-section5 .photo {
  aspect-ratio: 1 / 1.41421356;
}

#img-section5 .photo img,
#img-section5 .photo video {
  height: 100%;
  object-fit: cover;
}

/* ===========================
   RESIZABLE HANDLE
=========================== */
.resizable-handle {
  width: 0.2%;
  background-color: rgb(0, 0, 0);
  cursor: col-resize;
  padding: 0;
  z-index: 1;
  resize: horizontal;
  transition: 0.3s;
}

.resizable-handle:hover {
  width: 0.4%;
  background-color: #f6ff00;
}

/* ===========================
   COPYRIGHT / IMPRESSUM / DATENSCHUTZ
=========================== */
.sm {
  position: absolute;
  bottom: 0.1rem;
  left: 0;
}

.imprint {
  position: absolute;
  bottom: 0.1rem;
  right: 0;
}

.imprint:hover {
  background-color: rgb(218, 218, 218);
  border-radius: 5rem;
}

.privacy {
  opacity: 0;
}

.sm:hover .privacy {
  opacity: 1;
  color: rgba(0, 0, 0, 0.431);
  cursor: pointer;
}

/* Legal-Modal: Breite wird zusätzlich per JS an .flexone angepasst */
.legal-modal {
  width: 50%;
}

/* ===========================
   TOP NAV
=========================== */
.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 0.8rem;
  row-gap: 0.2rem;
}

.site-email {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.top-nav a:hover {
  background-color: rgb(255, 255, 255);
  border-radius: 5rem;
  padding: 0 0.8rem 0;
  margin-right: -0.8rem;
  color: black;
}

/* DE ist (anders als EN) nicht am rechten Rand der Nav "verankert", daher
   bewirkt das normale margin-right:-0.8rem beim Hovern kein sichtbares
   Verschieben. Spiegelverkehrt (margin-left statt margin-right) wächst DE
   stattdessen sichtbar nach rechts und schiebt EN mit — analog dazu, wie
   EN beim Hovern DE nach links schiebt. */
.lang-btn[data-lang="de"]:hover {
  margin-right: 0;
  margin-left: -0.8rem;
}

/* ===========================
   TEXT / INFO BLOCKS
=========================== */
.Text {
  font-size: 20pt;
  line-height: 1.7rem;
}

.Text:hover {
  color: #00b862;
  cursor: pointer;
}

/* Hover soll auch dann grün werden, wenn der Titel gerade als "viewing"
   markiert ist (das Projekt, das man z.B. anfangs standardmäßig sieht) —
   sonst gewinnt .viewing wegen gleicher/höherer Spezifität. */
.Text:hover .title {
  color: #00b862;
  
}
/* Scrollspy: Beim Durchscrollen der Bilderspalte (kein Projekt aufgeklappt)
   leuchtet der Titel des Projekts grün, dessen Bilder gerade im Blick sind. */
   .Text .title {
    transition: color 0.25s ease;
  }
  
  .flexmama:not(:has(.slideshow.grid-view)) .Text.viewing,
  .flexmama:not(:has(.slideshow.grid-view)) .Text.viewing .title {
    color: #00b862;
  }

  .info-text {
    font-size: 15pt;
  }

.project-list {
  margin-top: 1.5rem;
  padding: 7rem 2rem 0 5rem;
}

.about-text {
  margin: 1rem 0.8rem 0 6.6rem;
}

.about-text a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.scatter-text:hover .letter,
.scatter-text.scattered .letter {
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot));
  opacity: 0.75;
}

/* ===========================
   SLIDESHOW
=========================== */
.slideshow {
  display: none;
}

.slideshow .photo:last-child img,
.slideshow .photo:last-child video {
  border-bottom: solid 6px rgb(0, 0, 0);
}

.slideshow.grid-view .photo:last-child img,
.slideshow.grid-view .photo:last-child video {
  border-bottom: none;
}

.slideshow.grid-view {
  display: block;
  column-count: 2;
  column-gap: 4px;
}

.slideshow.grid-view .photo {
  width: 100%;
  margin-bottom: 4px;
  break-inside: avoid;
}

.slideshow.grid-view .photo.wide {
  column-span: all;
}

/* desktop.css: schmale Textspalte */
#privacyModal .lang-de {
  max-width: 800px;
  margin-left: 5.7rem;
  margin-right: auto;
}

/* desktop.css */
#privacyModal .modal-content {
  --sb-offset: 1rem;                         /* Abstand zum linken Rand */             
  --sb-thumb: 6px;/* sichtbare Breite */
  --sb-w: calc(var(--sb-offset) + var(--sb-thumb));

  direction: rtl;                              /* Scrollbar nach links */
  overflow-y: auto;
}

/* Text normal laufen lassen und die Scrollbar-Breite ausgleichen,
   damit er genau an seiner bisherigen Stelle bleibt */
#privacyModal .modal-content > .lang-de,
#privacyModal .modal-content > .lang-en {
  direction: ltr;
  position: relative;
  left: calc(-1 * var(--sb-w));
}

/* Chrome, Safari, Edge */
#privacyModal .modal-content::-webkit-scrollbar {
  width: var(--sb-w);
}
#privacyModal .modal-content::-webkit-scrollbar-track {
  background: transparent;
}
#privacyModal .modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.25);     /* vorher rgba(255, 255, 255, 0.25) */
  border-left: var(--sb-offset) solid transparent;
  border-top: 1.5rem solid transparent;
  border-bottom: 1.5rem solid transparent;
  background-clip: padding-box;
  border-radius: 10px;
}
#privacyModal .modal-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);      /* vorher rgba(255, 255, 255, 0.5) */
}

@supports not selector(::-webkit-scrollbar) {
  #privacyModal .modal-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;   /* vorher weiß */
  }
}
}