body {
  background-color: var(--cd-secondary);
  padding-top: var(--navbar-height);
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
}


.section-wrapper {
  background-color: var(--cd-secondary);
  padding: 10px;
  min-height: 85vh;
}

hr {
  margin: 2rem 0;
}

.titel {
  margin: 1rem 0;
}



:root {
  --cd-primary: rgb(119, 211, 49);
  --cd-primary-dark: #46a302;

  --cd-secondary: #f8faf7;
  --cd-gray: rgb(175, 175, 175);

  --cd-text: rgb(60, 60, 60);
  --navbar-height: 56px;
}

a {
  color: var(--cd-primary-dark);
}

a:hover,
a:focus {
  color: var(--cd-primary);
}

.navbar-basic {
  background-color: var(--cd-primary);
}

.navbar-basic .nav-link:hover {
  color: color-mix(in srgb, var(--cd-primary) 80%, rgb(0, 0, 0));
}

.navbar-basic .nav-link.active {
  color: rgb(0, 0, 0);
  font-weight: 600;
}

@media (min-width: 992px) {
  .card-body-responsive {
    min-height: 60vh;
  }
}



.row-equal{
  display: flex;
}

.row-equal > .col > .card {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}


.image-wrapper {
  height: 60vh;
  /* immer gleich */
  width: auto;
  overflow: hidden;
  /* wichtig */
}

@media (max-width: 575.98px) {
  .image-wrapper {
    height: 20vh;
    width: auto;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .image-wrapper {
    height: 25vh;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .image-wrapper {
    height: 30vh;
  }
}

@media (min-width: 1200px) {
  .image-wrapper {
    height: 35vh;
  }
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}




h1 {
  margin-top: 4vh;
  margin-bottom: 2vh;
  scroll-margin-top: var(--navbar-height);
}

h2, h3, h4, h5, h6 {
  scroll-margin-top: var(--navbar-height);
}



.accordion-button:not(.collapsed) {
  background-color: var(--cd-primary);
  color: var(--cd-text);
}

/* gesamtes Dropdown */
.dropdown-icons {
  min-width: auto;
  padding: 0.5rem;
  border-radius: 0.75rem;
  /* runde Box */
}

/* einzelne Icon-Einträge */
.dropdown-icons .dropdown-item {
  padding: 0.4rem;
  width: auto;
  border-radius: 0.5rem;
  /* runde Icons */
  text-align: center;
}

/* Icon zentrieren */
.dropdown-icons img {
  display: block;
  margin: 0 auto;
}

/* Hover-Effekt */
.dropdown-icons .dropdown-item:hover {
  background-color: var(--cd-secondary);
}

.dropdown-icons .dropdown-item.active,
.dropdown-icons .dropdown-item:active {
  background-color: transparent;
  border: 2px solid var(--cd-gray);
  color: var(--cd-text);
}

.interface-img {
  width: 100%;
  height: auto;
  /* WICHTIG */
  object-fit: contain;
  /* NICHT cover */
}



.tab-scroll {
  max-height: none;
  overflow: visible;
}

/* Kleine Screens (Bootstrap < lg) */
@media (max-width: 991.98px) {
  .tab-scroll {
    max-height: 50vh;
    /* oder z.B. 300px */
    overflow-y: auto;
    padding-right: 0.5rem;
    /* Platz für Scrollbar */
  }
}

.object-fit-contain {
  object-fit: contain;
}

.card,
.card-body {
  overflow-x: hidden;
}

/* Card Body */
.card-body {
  flex: 1 1 auto;
  /* nimmt den restlichen Platz ein */
  overflow-y: auto;
  /* Text scrollbar, falls zu lang */
}



.card-body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.form-control:focus{
  box-shadow: 0 0 0 0.25rem var(--cd-primary);

}
.form-check-input:focus{
  box-shadow: 0 0 0 0.25rem var(--cd-primary);
}


.qr-code-lg {
  width: 200px;
}

.screenshot-wrapper {
  max-height: 420px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.screenshot {
  max-height: 100%;
  max-width: 100%;
  
  object-fit: contain;
}

.modal-screenshot {
  max-width: fit-content;
  max-height: 80vh;
 
}

.list-group-item {
  background-color: transparent;
}

.list-group-numbered {
  background-color: var(--cd-secondary);
}
.step-card {
  /* Layout-Struktur */
  display: flex;
  flex-direction: column;
  
  min-height: 55vh;
}

.step-card .step {
  flex-grow: 1;
}

.step-card .d-flex.justify-content-between {
  margin-top: auto;
}

@media (min-width: 768px) {
  .step-card {
    min-height: 40vh;
  }
}

@media (min-width: 1200px) {
  .step-card {
    min-height: 30vh; 
  }
}

.hero-section {
  background-color: var(--cd-secondary);
  height: 100vh;
  display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--cd-primary);
}

.hero-text {
  font-size: 1.1rem;
  max-width: 480px;
  color: #555;
}

.hero-images {
  min-height: 420px;
}

.hero-img {
  border-radius: 1.25rem;
}

.hero-img-1 {
  width: 60%;
}

@media (max-width: 991px) {
  .hero-images {
    height: auto;
  }
}

.btn {
  font-weight: 600;
  border-radius: 999px; /* modern, pill */
  padding: 0.6rem 1.4rem;
  transition: all 0.2s ease;
  color: #ffffff;
  border: none;
}
.btn-primary {
  background-color: var(--cd-primary);
  border-color: var(--cd-primary);
}

.btn-primary:hover {
  background-color: var(--cd-primary-dark);
  border-color: var(--cd-primary-dark);
}

.btn-outline-secondary {
  background-color: var(--cd-gray);
  
}

.btn-outline-secondary:hover {
  background-color: var(--cd-primary-dark);
}

.btn-primary:active {
  background-color: var(--cd-primary-dark) !important;
  border-color: var(--cd-primary-dark);
}



.progress-bar {
  background-color: var(--cd-primary);
}

.modal-carousel {
  max-height: 80vh; 
  margin: auto;
}

#CarouselLektionSlides img {
  max-height: 80vh;
  width: auto;
  object-fit: contain;
 
}

#CarouselLektionModal .carousel-control-prev,
#CarouselLektionModal .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background-color: var(--cd-primary);
    border-radius: 50%;
    opacity: 1;
    z-index: 10; 
}

#CarouselLektionModal .carousel-control-prev {
    left: 1.5rem; 
}

#CarouselLektionModal .carousel-control-next {
    right: 1.5rem; 
}

#CarouselLektionDesktop {
  height: 420px;       
  display: flex;
  justify-content: center;
  align-items: center;  
}
#CarouselLektionDesktop .carousel-inner,
#CarouselLektionDesktop .carousel-item {
  height: 100%;        
}
#CarouselLektionDesktop .carousel-item img {
  max-height: 100%;   
  width: auto;        
  object-fit: contain; 
  display: block;
  margin: 0 auto;     
}
