
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;
}


.slideshow-container {
    width: 95%;
    margin: 30px auto;
    position: relative;
}

.slideshow-slide {
    display: none;
    text-align: center;
}

.slideshow-slide img {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
}

.slideshow-caption {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.95em;
    color: #333;
    padding: 0 4px;
}

.caption-title {
    font-weight: bold;
    text-align: left;
}

.caption-text {
    text-align: right;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 8px;
    color: #000;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(255,255,255,0.7);
    border: 1px solid #aaa;
    border-radius: 4px;
}

.prev:hover, .next:hover {
    background-color: rgba(200,200,200,0.9);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* RESPONSIVE VERHALTEN AB CA. 650PX */
@media screen and (max-width: 800px) {
    .projektblock {
        flex-direction: column;
    }

    .projektbeschreibung {
        order: 1;
    }

    .projektdaten {
        flex-direction: row;
        gap: 20px;
    }
}

@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;
    }
}
