.about-section {
  max-width: 70vw;
  margin: 2rem auto;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 2rem 1.5rem;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-section ul {
  list-style-type: none;
}

/* 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: cover;
}

/* “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%;
  height: 100%;
  /*overflow: hidden;*/
  z-index: 2;
}

/* “Nachher”-Bild initial bei 50% Crop */
.aboverlay .comp-img {
  clip-path: inset(0 50% 0 0);
  z-index: 2;
  pointer-events: none;
}

/* 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;
}

/* Unique styles for Scan page */

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

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


/* Prozess-Slider */
.process-slider {
  max-width: 700px;
  margin: 1rem 1rem;
  position: relative;
}

.img-comp-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: #f7fafd;
}

.comp-img {
  width: 100%;
  display: block;
}

.aboverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.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:focus {
  outline: 2px solid var(--secondary);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  margin: 0.5rem auto 0 auto;
  font-size: 1rem;
  color: var(--primary);
}

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

.info-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

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

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

.info-card strong {
  color: var(--primary);
}

/* Prozess-Schritte */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  overflow-x: hidden;
  gap: 1rem;
  padding: 1rem 0;
  max-width: 1100px;
  margin: 0 auto 2rem auto;
}

.step-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 1rem;
  min-width: 220px;
  text-align: center;
  flex: 0 0 220px;
  transition: transform 0.15s;
}

.step-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 85, 164, 0.12);
}

.step-card img {
  max-width: 64px;
  margin-bottom: 0.5rem;
}

.step-card strong {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  display: block;
}


/* 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;
}

/* Testimonial Slider */
.testimonial-slider {
  max-width: 700px;
  margin: 3rem auto;
  text-align: center;
}

.testimonial-slider blockquote {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem 1rem;
  margin: 1rem auto;
  font-style: italic;
  color: #333;
  position: relative;
}

.testimonial-slider .author {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--primary);
  font-style: normal;
}

/* 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 */
}

/* CTA Section */
.cta-section {
  background-color: var(--secondary);
  padding: 2rem;
  text-align: center;
  border-radius: var(--border-radius);
  max-width: 900px;
  margin: 3rem auto;
}

.cta-section strong {
  font-size: 1.3rem;
}

.cta-section a {
  display: inline-block;
  margin-top: 1rem;
  background: var(--primary);
  color: var(--text-light);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}

.cta-section a:hover,
.cta-section a:focus {
  background: var(--text-light);
  color: var(--primary);
  border: 1px solid var(--primary);
}


/* Responsive Design for Verfahren Cards */
@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;
  }
}