
html {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Candara', sans-serif;
    background: #ffffff;
    color: #000000;
    display: flex;
    justify-content: center;
    overflow: hidden;
    height: 100vh;
}

.wrapper {
    width: 100%;
    max-width: 1100px;
    min-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px;
    height: 100px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #ccc;
    z-index: 1000;
    box-sizing: border-box;
}

.logo {
    height: 60px;
}

.header-title {
    height: 60px;
    margin-left: auto;
}

.container {
    margin-top: 100px;
    display: flex;
    flex-direction: row;
    width: 100%;
    box-sizing: border-box;
}

.sidebar {
    width: 175px;
    height: calc(100vh - 100px);
    position: absolute;
    top: 100px;
    left: 0;
    background: #ffffff;
    border-right: 1px solid #ccc;
    padding: 0px 10px 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.sidebar ul {
    list-style-type: none;
    padding-left: 0;
}

.sidebar .nav-bottom {
    margin-bottom: 0px;
}

.sidebar a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #000;
    font-weight: lighter;
    font-size: 16px;
    text-align: left;
}

.sidebar a:hover {
    font-weight: bold;
}

h2 {
  margin-top: 1.5em;       /* Abstand nach oben – kann so bleiben */
  margin-bottom: 0.4em;    /* ↓ Hier den Abstand nach unten reduzieren */
  font-size: 1.4em;         /* Optional: Schriftgröße */
  font-weight: bold;        /* Optional: Fettdruck */
}


.content {
    margin-left: 180px;
    padding: 0px 25px 25px 30px;
    flex: 1;
    max-width: calc(100% - 180px);
    box-sizing: border-box;
    text-align: justify;
    overflow-y: auto;
    height: calc(100vh - 100px);
    position: relative;
}

p {
    padding: 0px 20px 0px 20px;
}

.carousel-container.carousel-loading {
  opacity: 0;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 280px;
  margin: 10px auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  align-items: center;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel-slide {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide img {
  height: 85%;
  width: auto;
  cursor: pointer;
  transform: scale(0.7);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

/* Mittleres Bild stark hervorheben */
.carousel-slide.active img {
  transform: scale(0.9);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Navigation */
.carousel-prev, .carousel-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 8px;
  color: #000;
  font-size: 24px;
  font-weight: bold;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border-radius: 4px;
  user-select: none;
  z-index: 10;
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* Fade-Out Effekt */
.carousel-fade-left, .carousel-fade-right {
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}
.carousel-fade-left {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}
.carousel-fade-right {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

/* Lightbox */
.lightbox {
  display: none; /* wichtig: unsichtbar beim Start */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* leichtere Abdunkelung */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 80%;
  max-height: 80%;
  margin-bottom: 15px;
  border: 3px solid #fff;
}

.lightbox-caption {
  text-align: center;
  color: #fff;
  font-size: 1em;
  max-width: 80%;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 70px;
  color: white;
  cursor: pointer;
}




@media screen and (max-width: 600px) {
    body {
        justify-content: flex-start;
    }

    .wrapper {
        width: 100%;
    }

    .container {
        flex-direction: column;
        width: 100%;
    }

    .sidebar {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        border-right: none;
        border-top: 1px solid #ccc;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
    }

    .sidebar ul {
        flex: 1;
        padding: 10px;
    }

    .content {
        margin: 20px;
        padding: 10px;
        max-width: 100%;
    }

    .header {
        flex-direction: column;
        height: auto;
        padding: 10px;
        width: 100%;
        transform: none;
        left: 0;
    }

    .logo, .header-title {
        height: 40px;
    }
}
