body {
    font-family:Cambria, Cochin, Georgia, Times;
    
    margin: 0;
    background-color: #0b072b;
}

header {
    margin: 15;
    background: #0b072b;
    color: #0b072b;
    
}

header h1 {
    margin: 15;
    color: #ff9400;
}


.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    
}

nav a {
    color: #21cb21;
    margin: 0 10px;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 2rem 0;
    color: white;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #0b072b;
    color: white;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.project-card {
    background: rgba(255, 255, 255, 0);
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    color: #21cb21;
}

.project-card img {
    width: min-content;
    height: 50%;
    border-radius: 5px;
}

.project-card a {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #333;
    color: #ff9400;
    text-decoration: none;
    border-radius: 3px;
}

.project-card a:hover {
    background: #555;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    border-radius: 5px;
}

/* Caption */
.caption {
    color: #fff;
    font-size: 1.2rem;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0);
    border-radius: 5px;
}

/* Navigation Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    margin-top: -22px;
    color: #ff9400;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0, 0, 0, 0);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0);
}

/* Dots */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #193019;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.active, .dot:hover {
    background-color: #21cb21;
}

/* Fade Animation */
.fade {
    animation: fadeEffect 1s;
}

@keyframes fadeEffect {
    from {opacity: .4}
    to {opacity: 1}
}

/* Mini Slideshow in jeder Card */
.mini-slideshow {
    position:relative;
    width:30%;
    height: fit-content;
    overflow: hidden;
    border-radius: 5px;
    align-content: center;
}

.mini-slideshow img {
    width: 100%;
    display: none;
    border-radius: 5px;
}

.mini-slideshow img.active {
    display: block;
}

/* Buttons unter Beschreibung */
.buttons {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.5rem 1rem;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
}

.btn:hover {
    background: #555;
}
p{
    color: white;
    font-family:Cambria, Cochin, Georgia, Times;
    text-align: center;
}
h2{
    color: orange;
    font-family:Cambria, Cochin, Georgia, Times;
    text-align: center;
}
h3{
    color: orange;
    font-family:Cambria, Cochin, Georgia, Times;
    text-align: center;
}
h1{
    color: orange;
    font-family:Cambria, Cochin, Georgia, Times;
    text-align: center;
}
.logo-button {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  display: inline-block;
  width: 150px; /* Größe des Logos anpassen */
  height: auto;
}

.logo-button img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}
.carousel {
  position: relative;
  width: 90%;       /* Breite prozentual, damit es auf kleinen Bildschirmen passt */
  max-width: 960px; /* Maximalbreite auf großen Bildschirmen */
  margin: auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 70%;    /* Standardbreite der Slides (z.B. 70% vom Carousel) */
  max-width: 300px; /* Maximalbreite */
  margin: 0 10px;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.5;
  transform: scale(0.8);
  border-radius: 10px;
  background-color: transparent !important;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(0.6);
  max-width: 300px;  /* Hauptslide wird größer */
}

.carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  background-color: transparent !important;
  display: block;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 80%;
    max-width: 250px;
  }

  .carousel-slide.active {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    flex: 0 0 90%;
    max-width: 200px;
    margin: 0 5px;
  }

  .carousel-slide.active {
    max-width: 250px;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 2rem;
  border-radius: 5px;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }