/* eigentlich #pagecontent[data-page="Druck"] aber buggy mit cube seiten wechsel*/
.img-comp-container {
  position: relative;
  max-width: 50vw;
  max-height: 50vh;
  aspect-ratio: 1/1;
  /* Höhe automatisch zur Breite */
  margin: 40px auto;
  overflow: hidden;
  user-select: none;
}

.comp-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* “Vorher”-Bild */
.abbase {
  z-index: 1;
}

/* Wrapper zum Croppen – overflow bleibt für Sicherheit, Clip-Path übernimmt das Masking */
.aboverlay {
  position: absolute;
  top: 0;
  left: 0;
  /* width: 100%; */
  /* Initial width, JS will control this for the effect */
  /* height: 100%; */
  /* Let top/left/right/bottom define size relative to parent */
  right: 0;
  /* Ensure it spans full width initially or as defined by parent */
  bottom: 0;
  /* Ensure it spans full height */
  overflow: hidden;
  /* CRUCIAL for cropping */
  z-index: 2;
  border-radius: var(--border-radius);
  /* To match parent container */
}

/*remove image clip-path, we’ll size the wrapper instead*/
.aboverlay .comp-img {
  /* clip-path removed so image fills wrapper */
  z-index: 2;
  pointer-events: none;
}

.aboverlay img,
/* Apply to the image specifically within .aboverlay */
.aboverlay .comp-img {
  /* Also ensure if .comp-img is used directly */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  /* ENSURE THIS IS APPLIED for cropping behavior */
  pointer-events: none;
  /* Usually good for the overlay image */
}

/* Verschiebbarer Slider-Knopf */
.abslider {
  position: absolute;
  z-index: 3;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 50%;
  cursor: ew-resize;
  top: 50%;
  transform: translateY(-50%);
  left: calc(50% - 16px);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: background .2s;
}

.abslider:hover {
  background: #f0f0f0;
}

#abslider {
  z-index: 15;
  /* above the overlay/image */
  pointer-events: auto;
}

.abwrapper {
  background-color: none;
  height: fit-content;
}

.aboverlay img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Ensure the image fills the overlay */
  height: 100%;
  /* Maintain the image's aspect ratio */
}

.page-inner {
  transition: background-color 0.6s ease-in-out;
}


#druck-container {
  font-family: var(--font-main);
  color: var(--text-dark);
  padding: 0;
}

#druckinfos {
  width: 80vw;
  max-width: 1200px;
  margin: 3rem auto;
}

.druckinfoheading {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* Prozess-Slider (AB-Slider) - Main Container for the whole section */
.process-slider {
  max-width: 700px;
  /* Or your preferred max-width for the section */
  margin: 3rem auto 1.5rem auto;
  position: relative;
}

/* Image Comparison Container - This holds the two images and the slider */
.img-comp-container {
  position: relative;
  width: 100%;
  /* Takes width from .process-slider or its direct parent */
  max-width: 600px;
  /* Max width for the comparison itself */
  aspect-ratio: 1/1;
  /* Keeps it square, adjust if needed */
  margin: 0 auto;
  /* Center it within .process-slider */
  overflow: hidden;
  /* Important for rounded corners and if anything unexpected overflows */
  user-select: none;
  /* Prevent text selection during drag */
  border-radius: var(--border-radius);
  /* Consistent styling */
  box-shadow: var(--card-shadow);
  /* Consistent styling */
  background: #f7fafd;
  /* Optional background */
}

/* General style for ALL comparison images (base and overlay) */
.comp-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  /* CRUCIAL: Ensures images cover, maintaining aspect ratio, leading to crop */
  display: block;
  /* Good practice for images */
}

/* Base image (e.g., "3D-Modell" - wireframe) */
.abbase {
  z-index: 1;
  /* Below the overlay */
  /* Inherits object-fit: cover from .comp-img */
}

/* Overlay DIV - This div contains the "after" image. It stays full size. */
.aboverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* Clips the image inside if it were larger, though object-fit handles it */
  z-index: 2;
  /* Above the base image */
  border-radius: var(--border-radius);
  /* Match parent container if needed */
}

/* Hero background image is now defined inline in Druck.html */

/* The "after" image INSIDE the overlay - THIS is what gets clip-path applied by JS */
.aboverlay .comp-img {
  /* Explicitly ensure object-fit: cover here, though it should inherit from the general .comp-img rule.
     Being explicit can prevent issues if other CSS rules interfere. */
  object-fit: fill;
  /* CRUCIAL for the overlay image as well */
  /* clip-path will be set by JavaScript, e.g., inset(0 50% 0 0) for initial 50% view */
  pointer-events: none;
}

/* Slider Handle */
.abslider {
  position: absolute;
  top: 50%;
  /* Center vertically */
  /* left will be set by JavaScript, e.g., calc(50% - 16px) */
  width: 32px;
  height: 32px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%);
  /* Adjust for vertical centering */
  z-index: 3;
  /* Above everything else */
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border 0.2s;
  pointer-events: auto;
  /* Make sure it's interactive */
}

.abslider:after {
  /* Optional inner dot for the slider handle */
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
}

.abslider:hover,
.abslider:focus {
  background: #f0f0f0;
  /* Example hover */
  border-color: var(--secondary);
  /* Example focus */
  outline: none;
}

.abslider:focus:after {
  background: var(--secondary);
}


/* Labels above the slider */
.slider-labels {
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  /* Match .img-comp-container max-width */
  margin: 0.5rem auto 0.5rem auto;
  /* Spacing around labels */
  font-size: 1rem;
  color: var(--primary);
}

/* Vertical line that moves with the slider */
.abline {
  position: absolute;
  top: 0;
  bottom: 0;
  /* left will be set by JavaScript */
  width: 4px;
  /* Or 2px, depending on preference */
  background: var(--primary);
  z-index: 2;
  /* Can be same as .aboverlay or slightly higher if distinct from slider handle */
  transform: translateX(-50%);
  /* Center the line on its 'left' position */
  pointer-events: none;
  /* Non-interactive */
}



/* Galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto;
}

.gallery-item {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 0.5rem;
  text-align: center;
  transition: transform 0.15s;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 85, 164, 0.12);
}

.gallery-item img {
  width: 100%;
  border-radius: var(--border-radius);
}

.caption {
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Panorama Viewer Section */
.pano-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* position the prev/next over the pano container 

.pano-visual {
display:flex;
flex-direction: column;
justify-content: center;
width: 100vw;
}
*/

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  color: var(--c3);
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s;
}

.pano-visual .slider-btn:hover {
  background: rgba(255, 255, 255, 1);
}

.pano-visual .slider-btn.prev {
  left: 15vw;
}

.pano-visual .slider-btn.next {
  right: 15vw;
}

/* Play/Pause-Button */
.pano-visual .play-pause-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transform: translateY(200px);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  color: var(--c3);
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s;
}

.pano-visual .play-pause-btn:hover {
  background: rgba(255, 255, 255, 1);
}

#pano-viewer-container {
  width: 70vw;
  /*war 900px*/
  margin: 2rem auto;
  height: 500px;
  /* Feste Höhe für den Rahmen */
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  /* Wichtig: Verbirgt den Teil des Bildes, der außerhalb des Rahmens ist */
  position: relative;
  cursor: grab;
  padding: 2rem 1.5rem;
}

/* make the viewer a repeating pano background */
#pano-viewer-container {
  background: url('/data/img/jpg/pano.jpg') repeat-x center / auto 100%;
}

/* hide the old <img> */
#pano-viewer-container img#pano-image {
  display: none;
}

#pano-image {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  /* Bild füllt die Höhe des Containers */
  width: auto;
  /* Breite passt sich proportional an */
  pointer-events: none;
  /* Verhindert, dass das Bild Maus-Events abfängt */
  transition: left 0.1s linear;
  /* Sorgt für eine sanfte Bewegung */
}

.pano-caption {
  text-align: center;
  margin-top: 1.2rem;
  max-width: 600px;
}



/* Styling for the Verfahren Cards */
.verfahren-card {
  background: var(--card-bg);
  /* Use a consistent background color */
  border-radius: var(--border-radius);
  /* Rounded corners */
  box-shadow: var(--card-shadow);
  /* Subtle shadow for depth */
  padding: 1.5rem;
  margin-bottom: 2rem;
  /* Spacing between cards */
  transition: transform 0.2s, box-shadow 0.2s;
  /* Smooth hover effect */
}

.verfahren-card:hover {
  transform: translateY(-5px);
  /* Slight lift on hover */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  /* Enhanced shadow on hover */
}

.verfahren-card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  /* Highlighted color for headings */
  margin-bottom: 1rem;
}

.verfahren-card h4 {
  font-size: 1.2rem;
  color: var(--secondary);
  /* Secondary color for subheadings */
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.verfahren-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  /* Standard text color */
  margin-bottom: 1rem;
}

.verfahren-card ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style: disc;
}

.verfahren-card ul li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--text-dark);
}

.verfahren-card strong {
  color: var(--primary);
  /* Highlighted text */
}


.three-steps {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  margin: 2rem auto;
  max-width: 800px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 2rem 1.5rem;
}


/* Responsive Design */
@media (max-width: 768px) {
  .verfahren-card {
    padding: 1rem;
  }

  .verfahren-card h3 {
    font-size: 1.3rem;
  }

  .verfahren-card h4 {
    font-size: 1.1rem;
  }

  .verfahren-card p,
  .verfahren-card ul li {
    font-size: 0.95rem;
  }
}



/* animate background-position-x from 0 to –100% in 10s, loop 
#pano-viewer-container.auto-scroll {
  animation: pano-scroll 10s linear infinite;
}

@keyframes pano-scroll {
  from { background-position-x:    0; }
  to   { background-position-x: 100%; }
}
macht GSAP jetzt
*/