@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

:root {
  --base-clr: #ffffff;
  --line-clr: #42434a;
  --hover-clr: #6e7075;
  --text-clr: #202022;
  --texthover-clr: white;
  --accent-clr: #f8693e;
  --secondary-text-clr: #777575;
  --sidebar-clr: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
}

html {
  font-family: Poppins, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5rem;
}

body {
  min-height: 100vh;
  min-height: 100dhv;
  background-color: var(--base-clr);
  color: var(--text-clr);
}

main {
  padding: min(30px, 7%);
}

main p {
  color: var(--secondary-text-clr);
  margin-top: 5px;
  margin-bottom: 15px;
  align-items: center;
  text-align: center;
}

/* -----------------------CATS IMAGE SLIDER--------------------------------- */

.slider {
  height: 100%;
  margin-top: -50px;
  width: 100%;
  overflow: hidden;
  object-fit: cover;
}

.slider .list .item {
  width: 100%;
  height: 100vh;
  position: absolute;
  overflow: hidden;
  inset: 0 0 0 0;
}

.slider .list .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*------------------------------ANZEIGE DER KATZENDATEN-(Content)---------------- */
.slider .list .item .content {
  position: absolute;
  top: 20px;
  height: auto;
  width: 270px;
  left: 440px;
  transform: translateX(-58%);
  box-sizing: border-box;
  color: #ffffff;
  text-shadow: 0 5px 10px #0004;
  backdrop-filter: blur(5px);
  border-radius: 25px;
  background-color: rgba(233, 229, 229, 0.5);
  border-top: 1px solid rgb(255, 255, 255, 0.4);
  border-left: 1px solid rgb(255, 255, 255, 0.3);
  box-shadow: 3px 3px 3px rgb(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

#sidebar.close ~ .slider .list .item .content {
  left: 250px; /* Muss der Breite der Sidebar entsprechen */
}

/* -----------------------CONTENT Präsentation------------------------------ */

.slider .list .item .content .katze {
  font-size: 36px;
  font-weight: bold;
  padding: 25px 20px 0px 20px;
  color: var(--accent-clr);
  text-shadow: 2px 2px 5px rgb(0, 0, 0);
}
.slider .list .item .content .ID {
  font-size: 18px;
  color: #000;
  font-weight: bold;
  padding: 5px 20px 0px 20px;
  color: var(--accent-clr);
  text-shadow: 1px 1px 2px rgb(0, 0, 0);
}

.slider .list .item .content .age {
  font-size: 18px;
  font-weight: bold;
  padding: 20px 20px 0px 20px;
  color: #222020;
  text-decoration: underline;
}

.slider .list .item .content .age_text {
  font-size: 16px;
  padding: 0px 20px 0px 20px;
  color: #222020;
}

.slider .list .item .content .vermittlung {
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px 0px 20px;
  color: #222020;
  text-decoration: underline;
}

.slider .list .item .content .vermittlung_text {
  font-size: 16px;
  padding: 0px 20px 0px 20px;
  color: #222020;
}
.slider .list .item .content .haltung {
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px 0px 20px;
  color: #222020;
  text-decoration: underline;
}

.slider .list .item .content .haltung_text {
  font-size: 16px;
  padding: 0px 20px 0px 20px;
  color: #222020;
}

.slider .list .item .content .sonstiges {
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px 0px 20px;
  color: #222020;
  text-decoration: underline;
}

.slider .list .item .content .sonstiges_text {
  font-size: 16px;
  padding: 0px 20px 0px 20px;
  color: #222020;
}

.slider .list .item .content .bilder {
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px 0px 20px;
  color: #222020;
  text-decoration: underline;
}

.slider .list .item .content .preview {
  position: absolute;
  border-color: #000;
  border: 1px solid rgb(255, 255, 255, 0.4);
  border-radius: 0 0 25px 25px;
  margin: 0;
  width: 349px;
  height: 100px;
  bottom: 0px;
}

/* Thumbnail Section  */
.thumbnail {
  position: absolute;
  bottom: 50px;
  left: 55%;
  width: 680px;
  overflow: hidden;
  z-index: 100;
  display: flex;
  gap: 20px;
}

.thumbnail .item {
  width: 150px;
  height: 220px;
  flex-shrink: 0;
  position: relative;
}

.thumbnail .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 5px 0 5px rgba(0, 0, 0, 0.8);
}

/* nextPrevArrows Section  */
.nextPrevArrows {
  position: absolute;
  bottom: 140px;
  right: 48%;
  z-index: 100;
  width: 100px;
  max-width: 30%;
  display: flex;
  gap: 10px;
  align-items: center;
}

.nextPrevArrows button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-clr);
  border: none;
  color: #fff;
  font-family: monospace;
  font-weight: bold;
  transition: 0.5s;
  cursor: pointer;
}

.nextPrevArrows button:hover {
  background-color: #fff;
  color: #000;
}

/* Animation Part */
.slider .list .item:nth-child(1) {
  z-index: 1;
}

/* animation text in first item */
.slider .list .item:nth-child(1) .content .katze,
.slider .list .item:nth-child(1) .content .ID,
.slider .list .item:nth-child(1) .content .age,
.slider .list .item:nth-child(1) .content .age_text,
.slider .list .item:nth-child(1) .content .vermittlung,
.slider .list .item:nth-child(1) .content .vermittlung_text,
.slider .list .item:nth-child(1) .content .haltung,
.slider .list .item:nth-child(1) .content .haltung_text,
.slider .list .item:nth-child(1) .content .sonstiges,
.slider .list .item:nth-child(1) .content .sonstiges_text,
.slider .list .item:nth-child(1) .content .bilder {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 5;

  animation: showContent 0.5s 1s linear 1 forwards;
}

@keyframes showContent {
  to {
    transform: translateY(0px);
    filter: blur(0px);
    opacity: 100%;
  }
}

.slider .list .item:nth-child(1) .content .katze {
  animation-delay: 0.4s !important;
}

.slider .list .item:nth-child(1) .content .age {
  animation-delay: 0.6s !important;
}
.slider .list .item:nth-child(2) .content .age_text {
  animation-delay: 1.6s !important;
}

.slider .list .item:nth-child(1) .content .vermittlung_text {
  animation-delay: 0.8s !important;
}

.slider .list .item:nth-child(1) .content .haltung {
  animation-delay: 1s !important;
}

.slider .list .item:nth-child(1) .content {
  animation-delay: 1s !important;
}

/* Animation for next button click */
.slider.next .list .item:nth-child(1) .content img {
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  opacity: 0;
  animation: fadein 3s;
}

@keyframes showImage {
  to {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.slider.next .list .item:nth-child(1) img {
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: showImage 0.5s linear 1 forwards;
}

@keyframes showImage {
  to {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.slider.next .thumbnail .item:nth-last-child(1) {
  overflow: hidden;
  animation: showThumbnail 0.5s linear 1 forwards;
}

.slider.prev .list .item img {
  z-index: 100;
}

@keyframes showThumbnail {
  from {
    width: 0;
    opacity: 0;
  }
}

.slider.next .thumbnail {
  animation: effectNext 0.5s linear 1 forwards;
}

@keyframes effectNext {
  from {
    transform: translateX(150px);
  }
}

/* Animation for prev button click */

.slider.prev .list .item:nth-child(2) img {
  animation: outFrame 0.5s linear 1 forwards;
  position: absolute;
  bottom: 0;
  left: 0;
}

@keyframes outFrame {
  to {
    width: 150px;
    height: 220px;
    bottom: 50px;
    left: 50%;
    border-radius: 20px;
  }
}

.slider.prev .thumbnail .item:nth-child(1) {
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail 0.5s linear 1 forwards;
}

.slider.next .nextPrevArrows button,
.slider.prev .nextPrevArrows button {
  pointer-events: none;
}

.slider.prev .list .item:nth-child(2) .content .title,
.slider.prev .list .item:nth-child(2) .content .type,
.slider.prev .list .item:nth-child(2) .content .description,
.slider.prev .list .item:nth-child(2) .content .buttons {
  animation: contentOut 1.5s linear 1 forwards !important;
}

@keyframes contentOut {
  to {
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}

.slider .list .item .content .vorschau {
  /* opacity: 0; /* Standard: Ausgeblendet */
  transition: opacity 1s ease-in-out; /* Dauer: 1 Sekunde */
  margin-bottom: 20px;
}

.slider .list .item .content .vorschau .pre {
  display: block;
  gap: 10px;
  z-index: 100;
  position: relative;
  flex: 1;
  height: 80px;
  width: 160px;
  left: 0px;
  padding: 10px 20px 0px 20px;
  object-fit: cover;
}

.pre img:hover {
  outline: 1px solid rgb(60, 255, 0); /* Außenlinie erscheint */
  outline-offset: 1px; /* Optional: Abstand zum Element */
}
.pre img {
  animation: fadeIn 3s; /* 2 Sekunden Einblendzeit */
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.8);
  outline: 0.5px solid rgba(134, 132, 132, 0.8);
  margin-bottom: 20px;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* -----------------------OVERLAY--------------------------------- */
.overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Schwarz mit 60% Deckkraft */
  border: 1px solid #333;
  box-shadow: 5px 2px 10px rgba(58, 57, 57, 0.8);
  z-index: 999; /* Sehr hoch, damit es über allem liegt */
  opacity: 90%;
  /* Zentrierung des Inhalts (optional) */
  justify-content: center;
  align-items: center;
}

/* Zeigt das Overlay an, wenn die Klasse "active" hinzugefügt wird */
.overlay.active {
  display: none;
}

.modal {
  background: white;
  width: 800px;
  height: auto;
  padding: 20px;
  border-radius: 25px;
  text-align: center;
}

.modal button {
  font-family: Poppins, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin-top: 20px;
  font-size: 16px;
  background: #318ac5;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 30px;
  box-shadow: 5px 2px 10px rgba(58, 57, 57, 0.8);
}

.modal h2 {
  margin-top: 15px;
  text-decoration: underline;
}
.modal button:hover {
  background: #27b44b;
}

/* -----------------------SMARTPHONE ANSICHT--------------------------------- */
@media (max-width: 768px) {
  body {
    grid-template-columns: 1r;
  }

  main {
    margin: 0;
    padding: 2em 1em 60px 1em;
  }

  .item-box {
    margin-top: 20px;
    height: 60px;
    width: 100%;
    padding: 0;
    border-color: #000;
  }

  #sidebar {
    height: 60px;
    width: 100%;
    border-right: none;
    border-top: 1px solid var(--line-clr);
    padding: 0;
    position: fixed;
    top: unset;
    bottom: 0;

    > ul {
      padding: 0;
      display: grid;
      grid-auto-columns: 60px;
      grid-auto-flow: column;
      align-items: center;
      overflow-x: scroll;
    }

    ul li {
      height: 100%;
    }

    ul a,
    ul .dropdown-btn {
      width: 60px;
      height: 60px;
      padding: 0;
      border-radius: 0;
      justify-content: center;
    }

    ul li span,
    ul li:first-child,
    .dropdown-btn svg:last-child,
    .logopng,
    .logo,
    #toggle-btn {
      display: none;
    }
  }

  /* ---SLIDER-------------------------------------------------------------------------------- */
  .slider-wrapper {
    margin: 0 10px 0px;
  }

  .slider-wrapper .swiper-slide-button {
    display: none;
  }

  .slider .list .item .content {
    display: grid;
    justify-content: center; /* Horizontal zentrieren */
    align-items: center; /* Vertikal zentrieren */
    align-items: baseline;
    top: 300px;
    font-size: 12px;
    left: 200px;
    width: 300px;
    max-width: 300px;
    height: 260px;
    grid-template-columns: 30% 65%;
    align-items: stretch;
    place-items: start;
    line-height: 1.2;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
  }

  .slider .list .item img {
    width: 100%;
    height: 50vh;
    position: absolute;
  }

  .slider .list .item {
    width: 100%;
    height: 100vh;
    position: absolute;
    object-fit: cover;
  }

  .slider .list .item .content .katze {
    font-size: 24px;
    font-weight: bold;
    width: 200px;
    padding: 10px 15px 0px 10px;
    color: var(--accent-clr);
    text-shadow: 2px 2px 5px rgb(0, 0, 0);
    grid-column: 1;
    border-color: #000;
  }
  .slider .list .item .content .ID {
    font-size: 12px;

    padding: 0px 0px 0px 10px;
    color: var(--accent-clr);

    grid-column: 1;
  }

  .slider .list .item .content .age {
    font-size: 12px;
    padding: 0px 0px 0px 10px;
    color: #222020;

    grid-column: 1;
    border-color: #000 solid;
  }

  .slider .list .item .content .age_text {
    font-size: 12px;
    padding: 0px 0px 0px 0px;
    color: #222020;
    grid-column: 2;
  }

  .slider .list .item .content .vermittlung {
    font-size: 12px;
    font-weight: bold;
    padding: 0px 0px 0px 10px;
    color: #222020;
    grid-column: 1;
  }

  .slider .list .item .content .vermittlung_text {
    font-size: 12px;
    padding: 0px 0px 0px 0px;
    color: #222020;
    overflow: hidden;
    grid-column: 2;
  }
  .slider .list .item .content .haltung {
    font-size: 12px;
    font-weight: bold;
    padding: 10px 0px 0px 10px;
    color: #222020;
    grid-column: 1;
  }

  .slider .list .item .content .haltung_text {
    font-size: 12px;
    padding: 10px 0px 0px 0px;
    color: #222020;
    grid-column: 2;
  }

  .slider .list .item .content .sonstiges {
    font-size: 12px;

    padding: 0px 0px 0px 10px;
    color: #222020;

    grid-column: 1;
  }

  .slider .list .item .content .sonstiges_text {
    font-size: 12px;
    padding: 0px 0px 0px 0px;
    color: #222020;
    grid-column: 2;
  }

  .slider .list .item .content .bilder {
    font-size: 12px;
    padding: 0px 0px 0px 10px;
    color: #222020;

    grid-column: 1;
  }

  .slider .list .item .content .preview {
    position: absolute;
    border-color: #000;
    border: 1px solid rgb(255, 255, 255, 0.4);
    border-radius: 0 0 25px 25px;
    margin: 0;
    width: 349px;
    height: 100px;
    bottom: 0px;
  }

  .thumbnail {
    position: fixed;
    bottom: 70px;
    left: 55%;
    overflow: hidden;
    z-index: 100;
    display: flex;
    gap: 20px;
  }

  .thumbnail .item {
    width: 60px;
    height: 80px;
    flex-shrink: 0;
    position: relative;
  }

  .nextPrevArrows {
    position: fixed;
    bottom: 14%;
    right: 40%;
    z-index: 100;
    width: 100px;
    max-width: 30%;
    display: flex;
    gap: 5px;
    align-items: center;
  }

  .nextPrevArrows .prev {
    width: 25px;
    height: 25px;
  }
  .nextPrevArrows .next {
    width: 25px;
    height: 25px;
  }

  .overlay {

    overflow-y: auto;
    height: auto;
    top: 0;
    left: 0;

    background-color: rgba(0, 0, 0, 0.6); /* Schwarz mit 60% Deckkraft */
    border: 1px solid #333;
    box-shadow: 5px 2px 10px rgba(58, 57, 57, 0.8);
    z-index: 999; /* Sehr hoch, damit es über allem liegt */
    opacity: 90%;
    /* Zentrierung des Inhalts (optional) */

    justify-content: center;
    align-items: center;
  }
  .modal {
    background: white;
    width: 280px;
    height: 600px;
    padding: 20px;
    border-radius: 25px;
    text-align: center;
    overflow-y: auto;
  }

  .slider .list .item .content .vorschau {
  /* opacity: 0; /* Standard: Ausgeblendet */
  transition: opacity 1s ease-in-out; /* Dauer: 1 Sekunde */
  margin-bottom: 20px;
  display: flex;


}

.slider .list .item .content .vorschau .pre {
 
  
  z-index: 100;
 
  width: 40px;
  left: 0;
  object-fit: cover;
}

.slider .list .item .content .vorschau .pre1{
  width: 80px;
  height: 50px;
  left:-84px;
  top: 30px;
}
.slider .list .item .content .vorschau .pre2{
  width: 80px;
  height: 50px;
  left:-74px;
  top: 30px;
}
.slider .list .item .content .vorschau .pre3{
  width: 80px;
  height: 50px;
  left: -64px;
  top: 30px;
}

.slider .list .item .content {
    display: grid;
    justify-content: center; /* Horizontal zentrieren */
    align-items: center; /* Vertikal zentrieren */
    align-items: baseline;
    top: 240px;
    font-size: 12px;
    left: 200px;
    width: 300px;
    max-width: 300px;
    height: 260px;
    grid-template-columns: 30% 65%;
    align-items: stretch;
    place-items: start;
    line-height: 1.2;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
  }


}
