/* Allgemeine Stile */
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 100px 1fr 200px;
    background-color: rgb(255, 255, 255);
    overflow: hidden;
    user-select: none;
}

.text-content, .marquee-content {
    user-select: text;
}

.no-style-link, .no-style-link1 {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: #ffffff;
    font-family: 'Times New Roman', Times, serif;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
}

header h1 {
    margin: 0;
    font-size: 40px;
    color: blue;
    padding-left: 0px;
}

/* Sidebar Anpassungen */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0px;
    width: 280px;
    background-color: #ca212100;
    padding: 20px 10px 20px 15px;
    margin-left: -5px;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    margin-bottom: 10px;
    text-indent: -0.5em;
}

.sidebar nav ul li a {
    color: black;
    text-decoration: none;
    display: block;
    padding: 10px 10px 10px 0;
    border-radius: 5px;
    font-size: 28px;
    margin-left: 0.5em;
}

.sidebar nav ul li a.active {
    font-weight: bold;
}

/* Submenüs */
.submenu {
    display: none;
    background-color: rgba(135, 206, 250, 0);
    margin-left: 10px !important;
    padding-left: 10px !important;
}

.submenu li {
    margin-bottom: 0px !important;
}

.sidebar .submenu a {
    font-size: 20px;
    padding: 5px 8px !important;
    line-height: 1.2 !important;
}

.submenu li a {
    font-size: 14px;
}

.submenu .submenu {
    margin-left: 20px;
    background-color: #55555500;
    border-radius: 5px;
    padding: 5px 0;
}

.submenu .submenu a {
    padding: 4px 6px;
    font-size: 14px;
}

.sidebar nav ul li ul li ul li a {
    font-family: Helvetica;
}

.sidebar nav ul li ul li ul li a:hover {
    text-decoration: underline #f5e505 !important;
}

/* Hauptinhalt */
.content {
    grid-column: 2;
    padding: 90px;
    margin-left: 250px;
    max-width: 1400px;
    background-color: rgba(255, 228, 196, 0);
}

/* Slideshow Wrapper */
.slideshow-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
}

/* Diashow Styles */
.slideshow-container {
    flex: 1;
    position: relative;
    max-width: 1000px;
    height: 1000px;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Textcontainer */
.text-container {
    flex: 1;
    max-width: 400px;
    position: relative;
    height: 1000px;
}

.text-content {
    position: absolute;
    top: 462px;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: none;
    padding: 20px;
    box-sizing: border-box;
}

.text-content.active {
    display: block;
}

.text-content p {
    margin: 0;
    line-height: 1.6;
}

/* Navigationsbuttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: rgb(0, 0, 0);
    font-weight: bold;
    font-size: 18px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    z-index: 100;
}

.next {
    right: 0;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(59, 58, 58, 0.8);
}

/* Navigationspunkte */
.dots-container {
    text-align: center;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: rgba(197, 46, 46, 0.9);
}

/* Kontaktbereich */
.contact {
    position: fixed;
    bottom: 20px;
    left: 35px;
    padding: 10px 0;
    font-size: 28px;
    z-index: 1000;
}

.contact a {
    color: rgb(255, 145, 0);
    text-decoration: none;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #57505000;
    color: #000;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 1024px) {
    body {
        grid-template-columns: 1fr;
    }
    
    header, .sidebar-right {
        position: static;
        width: 100%;
        height: auto;
    }
    
    .content {
        margin-left: 0;
        grid-column: 1;
        padding: 20px;
    }
    
    .sidebar-right {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .image-button {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .slideshow-wrapper {
        flex-direction: column;
    }
    
    .text-container {
        max-width: 100%;
        height: auto;
        margin-top: 20px;
    }
    
    .slideshow-container {
        height: auto;
        aspect-ratio: 1/1;
    }
    
    .text-content {
        position: static;
        height: auto;
    }
}