/* ==========================================================
   CSS RESET & GRUNDLAGEN
   ========================================================== */
html, body {
  /* overflow-x: hidden; ist korrekt und bleibt */
  overflow-x: hidden; 
  /* Scroll-Verhalten ist smooth, falls du Anker-Links hast */
  scroll-behavior: smooth; 
   scrollbar-gutter: stable;


}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Source Code Pro", monospace;
  background: #000;
  color: #fff;
  /* padding-top wird über JS gesetzt, um Platz für die Navbar zu schaffen */
}

/* CONTENT WRAPPER (zentriert UND limitiert) */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ----------------------------------------------------------
   NAVBAR & DROP-DOWN (Optimierte Sektion)
   ---------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000; /* Sehr hoch, damit es über allem liegt */
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  
  /* Zentriert den Inhalt der Navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Initialer, leichter Hintergrund */
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}

/* ZUSTAND: Navbar wird versteckt (Scroll-Down) */
.nav-hidden {
  /* Transparenz wird nicht geändert, nur die Position */
  transform: translateY(-110%);
}

/* ZUSTAND: Navbar hat gescrollt (Schatten) */
.nav-scrolled {
  background: rgba(0,0,0,0.7); /* Etwas dunkler nach Scroll */
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* NAV LINKS (Der innere Container, der zentriert wird) */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  max-width: 1200px; /* Begrenzt die Breite */
  width: 100%;
  padding: 1rem 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: rgb(30, 255, 0);
  font-weight: 400;
  font-size: 1.35rem;
  padding: 0.6rem 0.4rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  list-style: none;
  min-width: 210px;
  border-radius: 6px;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10; /* Niedriger als die Navbar, aber höher als der Content */
}

.dropdown-menu li {
  padding: 10px 18px;
}

.dropdown-menu a {
  font-weight: 500;
  font-size: 1.2rem;
  color: rgb(30,255,0);
  display: block;
  width: 100%;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ----------------------------------------------------------
   HEADLINES & ANIMATION (Optimiert)
   ---------------------------------------------------------- */

/* WICHTIG: position: sticky wurde entfernt, um Konflikte zu vermeiden */
.ueberschrift, .unter_ueberschrift {
  margin: 0 0 -5% 0; /* Zusammenführung der Abstände */
  font-size: 100pt;
  font-style: oblique;
  font-weight: 1000;
  transition: transform 0.8s ease, opacity 0.8s ease;
}



.ueberschrift {
  color: #fff;
  margin-top: 5%;
}

.unter_ueberschrift {
  color: rgb(30, 255, 0);
  margin-bottom: 5%;
}

.pink {
  color: magenta;
}

/* Überschrift – von links rein */
@keyframes slideInFromLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutToLeft {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-100%); opacity: 0; }
}

/* Unter-Überschrift – von rechts rein */
@keyframes slideInFromRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutToRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}


.ueberschrift.slide-in { animation: slideInFromLeft 1s ease forwards; }
.ueberschrift.slide-out { animation: slideOutToLeft 1s ease forwards; }

.unter_ueberschrift.slide-in { animation: slideInFromRight 1s ease forwards; }
.unter_ueberschrift.slide-out { animation: slideOutToRight 1s ease forwards; }


/* ----------------------------------------------------------
   GRID FOTOS & VIDEO (Bereinigt)
   ---------------------------------------------------------- */

/* ------------------ NEUES INTRO GRID: TEXT + BILD ------------------ */
.intro-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Text größer, Bild kleiner */
  gap: 20px;
  margin-bottom: 150px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

/* Text-Box */
.intro-text {
  font-family: "Quicksand", sans-serif;
  font-size: 15pt;
  line-height: 1.5;
  color: white;
  background: transparent;
  padding: 6px 8px;
  /* Keine hover/animation hier */
  pointer-events: auto;
}

/* Bild-Box */
.intro-image {
  border-radius: 12px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111; /* fallback bg */
}

/* echtes Bild im Block — nutzt object-fit damit es schön skaliert */
.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Sicherstellen: Intro-Grid löst keine Lightbox/Hover-Animation aus */
/* (Lightbox in script.js targetet später nur .grid-container_fotos .item) */

/* -------- responsive: auf kleineren Bildschirmen spalten untereinander -------- */
@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .intro-image {
    min-height: 300px;
  }
}




.grid-container_fotos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 150px;
}

.grid-container_bild_text {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 150px;
}

.item {
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  min-height: 300px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}





.item:hover {
  transform: scale(1.05);
}

/* Grid Areas (Unverändert) */
.item1 { grid-area: 1 / 1 / 3 / 2; background-image: url(assets/Fotos/dzedd.jpg); }
.item2 { grid-area: 1 / 2 / 2 / 4; background-image: url(assets/Fotos/gebeude.jpg); }
.item3 { grid-area: 2 / 2 / 3 / 4; background-image: url(assets/Fotos/taxi.jpg); }
.item4 { grid-area: 3 / 1 / 4 / 2; background-image: url(assets/Fotos/1.jpg); min-height: 500px; }
.item5 { grid-area: 3 / 2 / 4 / 3; background-image: url(assets/Fotos/gebaude.jpg); min-height: 600px; }
.item6 { grid-area: 3 / 3 / 4 / 4; background-image: url(assets/Fotos/2.jpg); min-height: 500px; }
.item7 { grid-area: 4 / 1 / 5 / 3; background-image: url(assets/Fotos/cross.jpg); min-height: 400px; }
.item8 { grid-area: 5 / 1 / 6 / 3; background-image: url(assets/Fotos/ganz.jpg); min-height: 400px; }
.item9 { grid-area: 4 / 3 / 6 / 4; background-image: url(assets/Fotos/bell.jpg); }

.itembild { grid-area: 1 / 3 / 2 / 4; background-image: url(assets/Fotos/dasbinich.png); min-height: 500px;}

.itemtext { grid-area: 1 / 1 / 2 / 3; 
  font-family: "Quicksand", sans-serif;
  font-size: 15pt;
}


/* Video Grid */
.grid-container_video {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 10%;
  width: 100%;
  max-width: 1200px;
}

.item-with-vid1 {
  font-family: "Quicksand", sans-serif;
  font-weight: 100;
  font-size: 15pt;
  min-height: 40px;
  border-radius: 10px;
  background: #000;
  color:white;
  text-align: left;
  line-height: 1.4;
}


.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-wrapper:hover {
  cursor: pointer;
}

.more-info-btn {
  text-align: right;
  margin-top: 10px;
  background: transparent;
  color: rgb(30,255,0);
  padding: 8px 16px;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s ease;
}
.more-info-btn:hover {
  color: rgb(255, 255, 255);
}

/* ===== DAZED LOOKS GRID ===== */

.dazed-fits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 120px;
}

.dazed-fit {
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  min-height: 500px;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.dazed-fit:hover {
  transform: scale(1.05);
}

/* ------ Assign images like your other grids ------ */

.fit1 { background-image: url(assets/Fotos/dazedfit1.png); }
.fit2 { background-image: url(assets/Fotos/dazedfit2.png); }
.fit3 { background-image: url(assets/Fotos/dazedfit3.png); }
.fit4 { background-image: url(assets/Fotos/dazedfit4.png); }

.fit1_dr_best { background-image: url(assets/Fotos/mug1.jpg);}
.fit2_dr_best { background-image: url(assets/Fotos/drbest1.png);}
.fit3_dr_best { background-image: url(assets/Fotos/drbest2.png);}
.fit4_dr_best { background-image: url(assets/Fotos/mug2.jpg);}


/* ------ Responsive Breakpoints ------ */

@media (max-width: 1000px) {
  .dazed-fits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dazed-fits-grid {
    grid-template-columns: 1fr;
  }



  .dazed-fit {
    min-height: 450px;
  }
}

@media (max-width: 600px) {

  /* Text + Bild bleiben nebeneinander */
  .intro-grid {
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    align-items: center;
  }

  /* Container ohne graue Box */
  .intro-image {
    background: none;
    min-height: unset;
    display: block;
  }

  /* Bild klein & hochkant */
  .intro-image img {
    width: 100%;
    max-width: 170px;
    aspect-ratio: 3 / 4;   /* Portrait */
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

}


/* ==== DAZED LOCATION GRID (asymmetrical editorial layout) ==== */

.dazed-location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 120px;
}

.dazed-location {
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  transition: transform 0.4s ease;
  cursor: pointer;
}

/* Hover scaling – same energy */
.dazed-location:hover {
  transform: scale(1.05);
}


/* ---- Layout Mapping (based on your reference image) ---- */

.loc1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  min-height: 700px;
  background-image: url(assets/Fotos/location1.png);
}

.loc2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  min-height: 350px;
  background-image: url(assets/Fotos/location2.png);
}

.loc3 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  min-height: 350px;
  background-image: url(assets/Fotos/location3.png);
}

.loc4 {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  min-height: 700px;
  background-image: url(assets/Fotos/location4.png);
}



.loc1_dr {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  min-height: 700px;
  background-image: url(assets/Fotos/location1_dr.png);
}

.loc2_dr {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  min-height: 350px;
  background-image: url(assets/Fotos/location2_dr.png);
}

.loc3_dr {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  min-height: 350px;
  background-image: url(assets/Fotos/location3_dr.JPG);
}

.loc4_dr {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  min-height: 700px;
  background-image: url(assets/Fotos/location4_dr.png);
}


/* ===== BEFORE/AFTER MOUSE-FOLLOW SLIDER ===== */

.grading-compare {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  cursor: crosshair;
}

.grading-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
}

.ungraded {
  z-index: 1;
}

/* Masked graded image */
.graded {
  z-index: 2;
  clip-path: inset(0 50% 0 0); /* Start: center */
  transition: clip-path .18s ease-out;
  will-change: transform, clip-path, left;
}

/* Vertical divider line */
.grading-divider {
  position: absolute;
  top: 0;
  left: 50%; /* start centered */
  width: 4px;
  height: 100%;
  background: white;
  z-index: 3;
  transition: left .18s ease-out;
  will-change: transform, clip-path, left;
    transform: translateZ(0);

}

/* Mobile optimization */
@media (max-width: 700px) {
  .grading-divider {
    width: 2px;
  }
}

/* ---- Responsive behavior ---- */

@media (max-width: 1000px) {
  .dazed-location-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .loc1, .loc4 {
    grid-row: auto;
    min-height: 500px;
  }
}

@media (max-width: 600px) {
  .dazed-location-grid {
    grid-template-columns: 1fr;
  }

  .dazed-location {
    min-height: 420px;
  }
}



/* ----------------------------------------------------------
   IMAGE MODAL (Lightbox)
   ---------------------------------------------------------- */
.img-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.img-modal.show {
  display: flex;
}

.img-content-wrapper {
  position: relative;
  display: flex;
  flex-direction: column; 
  align-items: center; 
  max-width: 85%; 
  max-height: 85%; 
  width: 100%;
  height: 100%;
}

.img-modal img {
  max-width: 100%; 
  max-height: 100%; 
  height: auto;
  width: auto; 
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
  user-select: none;
  -webkit-user-drag: none;
}

.img-caption-minimal {
  position: absolute; 
  bottom: 0; 
  left: 0; 
  width: auto; 
  max-width: 95%; 
  color: white;
  text-align: left;
  padding: 0; 
  background: transparent; 
  font-size: 1rem;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translateY(100%); 
  max-height: 100px; 
  overflow: hidden; 
}

#img-modal-close {
  position: absolute;
  top: 70px;
  right: 40px;
  color: white;
  font-size: 50px;
  cursor: pointer;
  user-select: none;
  transition: 0.2s;
  z-index: 2010; /* Höher als der Rest des Modals */
}
#img-modal-close:hover { transform: scale(1.15); color: rgb(30,255,0); }


/* Pfeile */
.img-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 8px 12px;
  z-index: 2010;
}
.img-arrow.left { left: 20px; }
.img-arrow.right { right: 20px; }
.img-arrow:hover { color: rgb(30,255,0); }


/* ----------------------------------------------------------
   FOOTER (Bereinigt)
   ---------------------------------------------------------- */
.footer {
  width: 100%;
  padding: 40px 0 50px 0;
  margin-top: 80px;
  background: #000;
  color: white;
  font-family: "Source Code Pro", monospace;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.footer-links a {
  color: rgb(30,255,0);
  text-decoration: none;
  font-size: 1.1rem;
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer .separator {
  color: rgba(255,255,255,0.4);
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.5;
  margin-top: 5px;
}

/* ----------------------------------------------------------
   RESPONSIVE & MOBILE
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-container_fotos {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-container_fotos .item {
    grid-area: auto !important;
    min-height: 260px;
  }
  .item1 { display: none; }
}

@media (max-width: 600px) {
  
  /* Navbar Mobile Dropdown */
  .dropdown-menu {
    position: static;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: none;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    box-shadow: none; 
  }
  .dropdown:hover .dropdown-menu {
    max-height: 300px;
    opacity: 1;
    pointer-events: auto;
  }
  
  /* Grid Mobile */
  .grid-container_fotos {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .grid-container_fotos .item {
    min-height: 400px;
    border-radius: 12px;
  }
  .item-with-vid1 {
    min-height: 26px;
  }
  
  /* Footer Mobile */
  .footer-links a { font-size: 1rem; }
  .footer { padding: 30px 0 40px 0; }
}

/* ---- Responsive Dazed Page (Beibehalten) ------------------------- */
@media (max-width: 900px) {
    .dazed-storyboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .dazed-headline { font-size: 60pt; }
    .dazed-storyboard-title { font-size: 28pt; }
    .dazed-storyboard-grid { grid-template-columns: 1fr; }
    .dazed-storyboard-item { min-height: 300px; }
}

  :root {
    --plyr-color-main: #1EFF00; /* Hauptfarbe */
    --plyr-video-control-color: #ffffff; /* Icon-Farbe */
    --plyr-video-control-color-hover: #1EFF00; /* Icon Hover */
    --plyr-video-control-background-hover: rgba(0, 0, 0, 0.2); /* Hover Hintergrund */
  }

/* =========================
   KONTAKT PAGE
   ========================= */

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 24px;
  margin-bottom: 120px;
  padding: 0 16px;
}

@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.contact-info{
  border: 2px solid rgba(167, 167, 167, 0.592);
  border-radius: 12px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.03);
}

.contact-block-title{
  font-family: "Source Code Pro", monospace;
  font-weight: 900;
  letter-spacing: 1px;
  color: rgb(30,255,0);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.contact-text{
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 18px;
}

.contact-lines{
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.contact-line{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: baseline;
}

.contact-label{
  color: rgba(255,255,255,0.6);
  font-family: "Source Code Pro", monospace;
  font-size: 0.95rem;
}

.contact-link{
  color: rgb(30,255,0);
  text-decoration: none;
  font-family: "Source Code Pro", monospace;
  font-size: 1rem;
}
.contact-link:hover{ color: #fff; }

.contact-value{
  font-family: "Source Code Pro", monospace;
  font-size: 1rem;
}

.contact-note{
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-chip{
  border: 1px solid rgba(30,255,0,0.35);
  color: rgb(30,255,0);
  padding: 6px 10px;
  border-radius: 999px;
  font-family: "Source Code Pro", monospace;
  font-size: 0.9rem;
  background: rgba(30,255,0,0.06);
}

/* FORM */
.contact-form-wrap{
  border: 2px solid rgba(167, 167, 167, 0.592);
  border-radius: 12px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.03);
}

.contact-form{
  display: grid;
  gap: 10px;
  
}

.form-label{
  font-family: "Source Code Pro", monospace;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-top: 6px;
}

.form-input, .form-textarea{
  width: 100%;
  border: 2px solid rgba(167, 167, 167, 0.592);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 10px;
  padding: 12px 12px;
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s ease, transform 0.2s ease;
}

.form-input:focus, .form-textarea:focus{
  border-color: rgba(30,255,0,0.8);
  transform: translateY(-1px);
}

.form-button{
  margin-top: 10px;
  justify-self: end;
  background: transparent;
  border: 1px solid rgba(30,255,0,0.65);
  color: rgb(30,255,0);
  padding: 10px 16px;
  border-radius: 10px;
  font-family: "Source Code Pro", monospace;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.25s ease;
}

.form-button:hover{
  color: #fff;
  border-color: #fff;
}

.form-status{
  margin-top: 10px;
  font-family: "Quicksand", sans-serif;
  color: rgba(255,255,255,0.85);
  min-height: 22px;
}

.form-hint{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: "Quicksand", sans-serif;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.hint-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: magenta; /* passt zu deinem pink accent */
  display: inline-block;
}

.honeypot{
  display:none !important;
}


/* =========================
   404 – ACCUMULATION MODE
   ========================= */

.page-404{
  background: #000;
  font-family: "Source Code Pro", monospace;
  height: 100vh;
  overflow: hidden;
}

.error-stage{
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* Base text */
.dvd{
  position: absolute;
  top: 0;
  left: 0;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -4px;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

/* MAIN (sharp, white) */
.dvd.main{
  color: #1dff59fd;
  z-index: 50;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* STATIC GHOSTS (accumulation) */
.dvd.ghost-static{
  color: rgb(30,255,0);
  opacity: 0.12;
  z-index: 1;

  /* THIS is the magic */
  mix-blend-mode: screen;
  filter: blur(0.4px);

  text-shadow:
    0 0 18px rgba(30,255,0,0.25);

  transition: opacity 3s linear;
}

/* Hint */
.error-hint{
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
}

.error-hint a{
  color: rgb(30,255,0);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 1px;
}
.error-hint a:hover{ color: #fff; }


html {
  scrollbar-gutter: stable;  /* modern */
  overflow-y: scroll;        /* fallback */
}

/* ================= MOBILE: Überschriften + Galerien fix ================= */
@media (max-width: 768px) {

  /* --- Überschrift/Unterüberschrift: NICHT überlappen --- */
  .ueberschrift,
  .unter_ueberschrift {
    position: static !important;   /* killt absolute/relative-Overlaps */
    display: block;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Abstand zwischen den beiden */
  .ueberschrift { margin-top: 10px !important; }
  .unter_ueberschrift { margin-top: 10px !important; }

  /* Gleich groß + minimal größer (ohne Overlap) */
  .ueberschrift,
  .unter_ueberschrift {
    font-size: 2.1rem !important;
  }

  /* --- Nur TEXT Abstand zum Rand (nicht die ganze Seite) --- */
  .intro-text,
  .item-with-vid1,
  .contact-info,
  .contact-form-wrap {
    padding-left: 12px;
    padding-right: 12px;
        font-size: 1rem;
  }

  .intro-text {
    text-align: justify;
  }
  /* --- HOME Photography: 2 Spalten erzwingen --- */
  .grid-container_fotos {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* --- DAZED + DRBEST: Galerien 2 Spalten + weniger Höhe --- */
  .dazed-fits-grid,
  .dazed-location-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Die eigentlichen Kacheln: Höhe runter via aspect-ratio */
  .dazed-fit,
  .dazed-location {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;        /* <— macht sie deutlich weniger hoch */
    background-size: cover;
    background-position: center;
  }


}


/* Optional: noch kompakter auf sehr kleinen Handys */
@media (max-width: 480px) {
  .ueberschrift,
  .unter_ueberschrift {
    font-size: 3rem !important;
    
  }

  .dazed-fit,
  .dazed-location {
    aspect-ratio: 1 / 1;        /* quadratischer = wirkt noch “cleaner” */
    
  }
}

/* =========================
   MOBILE FIX – DAZED FITS (clean 2x2, crop nur unten)
   ========================= */
@media (max-width: 600px) {

  /* 2 neben einander, dann unter einander */
  .dazed-fits-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  /* Quadratische Kacheln + nur unten crop */
  .dazed-fit{
    aspect-ratio: 1 / 1 !important;     /* 1:1 Box */
    min-height: 0 !important;
    height: auto !important;

    background-size: cover !important;   /* füllt die Box */
    background-position: top center !important; /* oben bleibt sichtbar */
    background-repeat: no-repeat !important;

    border-radius: 14px !important;
    overflow: hidden !important;
  }

}


/* Fix für "ein Bild verrutscht" + Gallery überall 2-spaltig */
@media (max-width: 1024px) {

  /* DAZED + DRBEST: Fits & Location immer 2 Spalten */
  .dazed-fits-grid,
  .dazed-location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    grid-auto-flow: row;
    align-items: stretch;
  }

  /* GANZ wichtig: keine Spans mehr -> sonst verschiebt sich eins */
  .dazed-fits-grid .dazed-fit,
  .dazed-location-grid .dazed-location {
    grid-column: auto !important;
    grid-row: auto !important;

    /* einheitliche Höhe -> kein "masonry" Look */
    height: auto !important;
    aspect-ratio: 16 / 10; /* weniger hoch als 4/3 */
    min-height: 0 !important;

    background-size: cover;
    background-position: center;
    border-radius: 14px; /* falls du rounded willst */
    overflow: hidden;
  }
}


@media (max-width: 768px) {
  .fit1_dr_best,
  .fit2_dr_best,
  .fit3_dr_best,
  .fit4_dr_best {
  background-position:  60% !important; /* höher */
  background-size: cover;
  }
}


.back-btn-wrapper {
  display: flex;
  justify-content: flex-end; /* rechts bündig */
  margin-top: 20px;
}

.back-btn {
  background: black;
  border: 2px solid #00ff00;
  color: #00ff00;
  border-radius: 5px;
  font-family: 'Source Code Pro', monospace;
  font-size: 1rem;

  padding: 8px 18px;
  cursor: pointer;
  text-decoration: none;

  transition: all 0.2s ease;
}

.back-btn:hover {
  background: #00ff00;
  color: black;
}


@media (max-width: 768px) {
  .back-btn-wrapper {
    padding-right: 12px;
  }

  .back-btn {
    font-size: 0.9rem;
    padding: 6px 14px;
  }
}


/* =========================
   MOBILE LIGHTBOX FIX
   ========================= */
@media (max-width: 768px) {

  /* Modal zentriert wirklich */
  .img-modal {
    padding: 16px;
    align-items: center;
    justify-content: center;
  }

  /* Wrapper NICHT full height -> sonst klebt das Bild oben */
  .img-content-wrapper {
    max-width: 92vw !important;
    max-height: 72vh !important;
    width: 100% !important;
    height: auto !important;            /* <-- wichtig */
    justify-content: center !important;  /* zentriert vertikal */
    align-items: center !important;
  }

  /* Bild sauber in die Mitte + passt in den Screen */
  .img-modal img {
    max-width: 92vw !important;
    max-height: 72vh !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;      /* kein Crop */
    margin: 0 auto !important;
  }

  /* Close Button anständig auf Mobile */
  #img-modal-close {
    top: 12px !important;
    right: 12px !important;
    font-size: 42px !important;
    z-index: 3000 !important;
  }

  /* Pfeile: mittig & näher ans Bild */
  .img-arrow {
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 44px !important;
    padding: 10px 12px !important;
    z-index: 3000 !important;
  }

  .img-arrow.left  { left: calc(8px + env(safe-area-inset-left)) !important; }
  .img-arrow.right { right: calc(8px + env(safe-area-inset-right)) !important; }

  
}

/* =========================
   MOBILE LIGHTBOX – X BUTTON FIX
   ========================= */
@media (max-width: 768px) {

  #img-modal-close {
    position: fixed !important;   /* nicht mehr relativ zum Wrapper */
    top: 12px !important;
    right: 12px !important;
    font-size: 38px !important;
    z-index: 9999 !important;

    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 44px;
    height: 44px;

    display: flex !important;
    align-items: center;
    justify-content: center;
  }

}

/* =========================
   MOBILE LIGHTBOX – NAVBAR OVERLAY FIX (X wieder sichtbar)
   ========================= */
@media (max-width: 768px) {

  /* Modal muss ÜBER der Navbar liegen */
  .img-modal {
    z-index: 50000 !important;
  }

  /* X Button ganz oben drüber */
  #img-modal-close {
    z-index: 50001 !important;
    position: fixed !important;
    top: calc(12px + env(safe-area-inset-top)) !important;
    right: calc(12px + env(safe-area-inset-right)) !important;

    width: 44px !important;
    height: 44px !important;
    display: grid !important;
    place-items: center !important;

    font-size: 40px !important;
    line-height: 1 !important;
    background: rgba(0,0,0,0.6) !important;
    border-radius: 999px !important;

    pointer-events: auto !important;
  }

  /* Pfeile optional auch über alles */
  .img-arrow {
    z-index: 50001 !important;
  }
}


/* =========================
   DR BEST – Mobile: Kopf sichtbar (Top-Crop, unten weg)
   ========================= */
@media (max-width: 768px) {

  /* höherer Selector + !important = gewinnt gegen deine anderen Regeln */
  .dazed-fits-grid .dazed-fit.fit1_dr_best,
  .dazed-fits-grid .dazed-fit.fit2_dr_best,
  .dazed-fits-grid .dazed-fit.fit3_dr_best,
  .dazed-fits-grid .dazed-fit.fit4_dr_best {
    background-size: cover !important;
    background-repeat: no-repeat !important;

    /* DAS ist der key: oben fixieren -> Kopf bleibt, Crop nur unten */
    background-position: 50% 0% !important;  /* center top */
  }

}
