/* =================================================
   BODY / LAYOUT
   ================================================= */
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Farb-Set: Green Nuances (Basiert auf #3cb371) */
    --color-1: #4adb92; /* Hell */
    --color-2: #3cb371; /* Medium (Original) */
    --color-3: #2c8b5a; /* Dunkel */
}

/* =================================================
   SLIDER WRAPPER & CONTAINER
   ================================================= */
.slider-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  min-height: 560px;
}

.slider {
  position: relative;
  width: 80%;
  height: 600px;
  overflow: visible;
  perspective: 1000px;
}

/* =================================================
   SLIDER ITEM / CARD
   ================================================= */
.item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 600px;
  border-radius: 10px;
  overflow: visible;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease,
    filter 0.5s ease,
    z-index 0.5s ease;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
  image-rendering: -webkit-optimize-contrast;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f8f9fa;
  display: block;
  border-radius: 10px 10px 0 0;
}

.item:nth-child(5) .card-image {
  object-fit: cover;
}

.item:nth-child(3) .card-image {
  object-fit: cover;
}

/* =================================================
   CARD FOOTER / BUTTONS
   ================================================= */
.card-footer {
  display: flex;
  justify-content: space-around;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px;
  transition: background 0.3s ease;
  z-index: 10;
}

.card-btn {
  flex: 1;
  margin: 0 2px;
  padding: 5px;
  font-size: 0.8rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.8);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.card-btn:hover {
  background-color: rgba(0, 0, 0, 1);
  transform: translateY(-2px);
}

.live-link:hover,
.live-link.glow {
  background-color: var(--color-1) !important;
  box-shadow: 0 0 15px var(--color-1);
}

.structure:hover,
.structure.glow {
  background-color: var(--color-2) !important;
  box-shadow: 0 0 15px var(--color-2);
}

.info:hover,
.info.glow {
  background-color: var(--color-3) !important;
  box-shadow: 0 0 15px var(--color-3);
}

.card-btn {
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease !important;
}

/* =================================================
   OVERLAY WINDOWS (Info & Struktur - Bereinigt)
   ================================================= */
.card-info,
.card-structure {
  display: none;
  position: absolute;
  bottom: 85px;
  left: -25%;
  width: 150%;
  max-height: 520px;
  overflow-y: auto !important;
  background-color: rgba(15, 15, 15, 0.98);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 25px 0 0 0;
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
  transform: translateZ(200px);
  z-index: 10000 !important;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.card-structure h3,
.card-info h3 {
  padding-left: 20px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #4d96ff;
}

.card-info p,
.card-info small {
  padding: 0 20px;
  display: block;
  line-height: 1.6;
  color: #ddd;
}

.close-info {
  position: absolute;
  right: 20px !important;
  top: 15px !important;
  font-size: 28px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
  z-index: 10001;
}

.close-info:hover {
  color: #e74c3c;
}

/* =================================================
   SPEZIFISCH: STRUKTUR-TEXT (Terminal-Look)
   ================================================= */
.structure-text {
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  background: #1e1e1e;
  color: #d4d4d4;
  width: 100%;
  padding: 20px 20px 20px 40px;
  margin: 10px 0 0 0;
  border-radius: 0 0 20px 20px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: hidden;
  display: block;
  box-sizing: border-box;
  text-indent: -20px;
  border-left: 5px solid #4d96ff;
}

/* =================================================
   NAV BUTTONS, SCROLLBARS & MEDIA QUERIES
   ================================================= */
#prev,
#next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 15px 20px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

#prev {
  left: -60px;
}
#next {
  right: -60px;
}

.card-info::-webkit-scrollbar,
.card-structure::-webkit-scrollbar,
.structure-text::-webkit-scrollbar {
  width: 6px;
}

.card-info::-webkit-scrollbar-thumb,
.structure-text::-webkit-scrollbar-thumb {
  background: #4d96ff;
  border-radius: 10px;
}

@media (min-width: 1600px) {
  .card-info,
  .card-structure {
    max-width: 750px;
    left: 50%;
    transform: translateZ(200px) translateX(-50%);
  }
}

@media (max-width: 768px) {
  .slider-wrapper {
    min-height: 480px; /* Solid base for mobile */
    margin: 20px 0;
  }
  .slider {
    width: 90%;
    height: 440px;
  }
  .item {
    width: 280px;
    height: 400px;
  }
  #prev,
  #next {
    font-size: 2rem;
    padding: 10px 15px;
  }
  #prev {
    left: -30px;
  }
  #next {
    right: -30px;
  }

  .card-info,
  .card-structure {
    width: 95%;
    left: 2.5%;
    bottom: 75px;
    padding: 15px 0 0 0;
    max-height: 400px;
  }
  .structure-text {
    font-size: 0.75rem;
    padding-left: 30px;
    text-indent: -15px;
  }
}
