/* === GeoGrotesque Font Faces === */
@font-face {
  font-family: 'GeoGrotesque';
  src: url('assets/fonts/Geogrotesque-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GeoGrotesque';
  src: url('assets/fonts/Geogrotesque-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GeoGrotesque';
  src: url('assets/fonts/Geogrotesque-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GeoGrotesque';
  src: url('assets/fonts/Geogrotesque-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GeoGrotesque';
  src: url('assets/fonts/Geogrotesque-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* === Sweat-Off Entsorgungsmodul Styles === */
.entsorgung-modul {
  font-family: 'GeoGrotesque', sans-serif;
  background: #F9F7F6;
  max-width: 1100px;
  margin: 40px auto;
  padding: 60px 40px;
  color: #2E2E2E;
}

/* Headline */
.entsorgung-modul h2 {
  font-weight: 400;
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 40px;
}

/* Tabs + Wrapper */
.entsorgung-tabs-wrapper {
  position: relative;
  margin-bottom: 30px;
}
.entsorgung-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  white-space: nowrap;
  scrollbar-width: none;
}
.entsorgung-tabs::-webkit-scrollbar {
  display: none;
}
.entsorgung-tabs .tab {
  border: none;
  background: none;
  font-family: 'GeoGrotesque', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #2E2E2E;
  cursor: pointer;
  position: relative;
  padding: 6px 10px;
  transition: color 0.3s ease;
}
.entsorgung-tabs .tab:hover {
  color: #2E2E2E;
}
.entsorgung-tabs .tab.active {
  font-weight: 500;
  color: #2E2E2E;
}
.entsorgung-tabs .tab.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: #2E2E2E;
  border-radius: 1px;
}

/* Tab Pfeile */
.tab-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #faf8f6;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  box-shadow: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
.tab-arrow i {
  font-size: 14px;
  color: #2E2E2E;
}
.tab-arrow.left {
  left: -10px;
}
.tab-arrow.right {
  right: -10px;
}
@media (max-width: 799px) {
  .tab-arrow {
    display: flex;
  }
}

/* === Desktop Layout (ab 800px) === */
.entsorgung-content {
  display: none;
  gap: 40px;
	margin-left: 20px;
}
.entsorgung-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.entsorgung-content .teile-liste {
  order: 1;
}
.entsorgung-content .illustrationen {
  order: 2;
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: flex-end;
	align-items: flex-end;
}
.entsorgung-content .illustrationen img {
  max-width: 220px;
  height: auto;
}

.entsorgung-header {
  text-align: center;
  margin-bottom: 30px;
}

.entsorgung-subtitle {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2E2E2E;
  margin-bottom: 8px;
}

.entsorgung-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #2E2E2E;
  margin: 0;
}

/* Text Styling */
.entsorgung-content .teile-liste ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.entsorgung-content .teile-liste ol li {
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}
.entsorgung-content .teile-liste ol li:last-child {
  border-bottom: none;
}
.entsorgung-content ol strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: 500;
	padding-left: 17px;
}
.entsorgung-content ol em {
  display: block;
  font-style: normal;
  font-weight: 300;
  color: #2E2E2E;
  margin-bottom: 0px;
}
.entsorgung-content .bemerkung {
  font-size: 0.9rem;
  font-weight: 400;
  color: #2E2E2E;
  margin-top: 6px;
  line-height: 1.4;
	font-style: italic;
}
.entsorgung-content .bemerkung::before {
  content: "* ";
  color: #2E2E2E;
}

/* --- Base tabs --- */
.entsorgung-tabs {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}

.entsorgung-tabs .tab {
  all: unset;                     /* reset button quirks */
  display: inline-block;          /* ✅ was flex, change to inline-block */
  position: relative;
  cursor: pointer;
  font-family: 'GeoGrotesque', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #2E2E2E;
  padding: 6px 12px;
  transition: color 0.3s ease;
	text-transform: uppercase;
}

.entsorgung-tabs .tab.active {
  font-weight: 500;
  color: #2E2E2E;
}

.entsorgung-tabs .tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 40%;
    transform: translateX(-50%);
    width: 48%;
    height: 1px;
    background: #2E2E2E;
    border-radius: 1px;
}
button.tab.active:after {
    content: "";
    display: inline-block;
}

/* --- Responsive adjustments --- */
@media (max-width: 799px) {
  .entsorgung-tabs {
    gap: 20px;
        height: 40px;
  }
	
  .entsorgung-tabs .tab {
    font-size: 0.95rem;
    padding: 4px 8px;
  }
	
  .entsorgung-tabs .tab.active::after {
        width: 36%;
        bottom: 0px;
        left: 22px;
    }
	.tab-arrow.left {
    top: 67%;
}
	.tab-arrow.right {
    top: 67%;
}
}

/* Nummerierung mit CSS-Counter */
.entsorgung-content .teile-liste ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: teil-counter; /* Counter starten */
}

.entsorgung-content .teile-liste ol li {
  counter-increment: teil-counter; /* Counter +1 */
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
  position: relative;
  padding-left: 0; /* Platz für die Zahl */
	font-weight: 500;
}

.entsorgung-content .teile-liste ol li:last-child {
  border-bottom: none;
}

.entsorgung-content .teile-liste ol li::before {
  content: counter(teil-counter) ".";
  position: absolute;
  left: 0px;
  top: 0;
  font-weight: 500;
  color: #2E2E2E;
}

/* Initial state: hidden */
.entsorgung-content .illustrationen,
.entsorgung-content .teile-liste li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Active tab triggers animation */
.entsorgung-content.active .illustrationen {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;  /* illustration comes first */
}

/* Stagger the list items */
.entsorgung-content.active .teile-liste li:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
.entsorgung-content.active .teile-liste li:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}
.entsorgung-content.active .teile-liste li:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}
/* add more nth-child if needed */

/* --- STAGED FADE-IN --- */
/* initial state for items (hidden & slightly down) */
.entsorgung-content .illustrationen,
.entsorgung-content .teile-liste li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

/* when JS adds .animate to the active panel, run the animations */
.entsorgung-content.animate .illustrationen {
  opacity: 1;
  transform: translateY(0);
}

/* list items will also animate to visible; the actual delays are set in JS */
.entsorgung-content.animate .teile-liste li {
  opacity: 1;
  transform: translateY(0);
}

/* === Mobile & Tablet (bis 799px) → Illustrationen links gestapelt, Text rechts === */
@media (max-width: 799px) {
  .entsorgung-content.active {
    display: grid;
    grid-template-columns: 140px 1fr; /* Illustrationen links, Text rechts */
    gap: 20px;
    align-items: start;
  }
  .entsorgung-content .illustrationen {
    order: 1; /* Links */
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
  }
  .entsorgung-content .illustrationen img {
    max-width: 120px;
    width: 100%;
    height: auto;
  }
  .entsorgung-content .teile-liste {
    order: 2; /* Rechts */
    font-size: 0.95rem;
    line-height: 1.5;
  }
}
