/* 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; /* Blockiert Textauswahl global */
    overflow-x: hidden;
}

.text-content, .marquee-content {
    user-select: text;
}

.no-style-link, .no-style-link1 {
    text-decoration: none;
    color: inherit;
}

.no-style-link:hover {
    text-decoration: none;
    /* Optional: Unterstreichung beim Überfahren mit der Maus */
    text-decoration: underline yellow solid 2px;
    cursor: pointer;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    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; /* Anpassung für die Ausrichtung */
}

/* Sidebar Anpassungen */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0px;
    width: 280px;
    background-color: #ca212100;
    padding: 20px 10px 20px 15px; /* Linker Padding erhöht */
    margin-left: -5px; /* Feinjustierung */
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    margin-bottom: 10px;
    text-indent: -0.5em; /* Feinjustierung der Einrückung */
}

.sidebar nav ul li a {
    color: black;
    text-decoration: none;
    display: block;
    padding: 10px 10px 10px 0; /* Rechter Padding reduziert */
    border-radius: 5px;
    font-size: 28px;
    margin-left: 0.5em; /* Feinjustierung */
}

/* Fettdarstellung für aktive Menüpunkte */
.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);
}

/* Diashow Styles */
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 1400px; /* Gleiche Breite wie Textcontainer */
  margin: 0 auto 30px; /* Zentriert und Abstand zum Text */
  height: 600px; /* Feste Höhe */
  overflow: hidden; /* Verhindert Überlauf */
}

.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Füllt den Container ohne Verzerrung */
  object-position: center; /* Zentriert das Bild */
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}


.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.content h2 {
    margin-left: 0px; /* Anpassung nach Bedarf */
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .text-container {
    width: 100%;
    max-width: 1400px; /* Gleiche Breite wie Diashow */
    margin-top: 0; /* Direkt unter der Diashow */
  }
  
  .text-content {
    max-height: 300px;
    max-width: 800px;
    overflow-y: auto;
    padding-left: 0px; /* Zusätzlicher Einzug */
    text-indent: 0; /* Keine Erstzeileneinrückung */
    text-align: justify;
  }
  
  .text-content p {
    margin-top: 0;
    break-inside: avoid; /* Verhindert Absatz-Zerteilung */
  }

/* Rechte Sidebar */
.sidebar-right {
    position: fixed;
    right: 0;
    top: 0;
    width: 200px;
    height: 52vh;
    padding: 20px;
    overflow-y: auto;
    scroll-behavior: smooth; /* Sanfte Übergänge */
    background-color: white;
}

.image-button {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    padding: 5px;
    background: #f0f0f000;
    border: none;
    cursor: pointer;
}

.image-button:hover {
    transform: scale(1.05);/* Vergrößert den Button beim Hover */
    transition: transform 0.3s ease; /* Sanfte Animation */
}

.image-button img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: cover;
}

.modern-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: #d6333300;
    padding: 0px 0;
    margin: 20px 0px 20px 0px;
}

.marquee-container {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite; /* Kürzere Dauer für flüssigeren Loop */
}

.marquee-content {
    display: inline-block;
    color: rgb(41, 56, 131);
    font-weight: bold;
    font-size: 20px;
    padding-right: 50px; /* Abstand zwischen Wiederholungen */
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); } /* Bewegt sich nur um 1/3 der Breite */
}

/* Pause bei Hover */
.modern-marquee:hover .marquee-container {
    animation-play-state: paused;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
  .marquee-content {
    font-size: 16px;
  }
}

/* Scrollbar für Textfeld und Sidebar (versteckt standardmäßig) */
.text-content::-webkit-scrollbar,
.sidebar-right::-webkit-scrollbar {
    width: 6px;
    height: 6px; /* Für horizontale Scrollbars falls nötig */
    background: transparent; /* Unsichtbar wenn inaktiv */
}

/* Scrollbar für Textfeld und Sidebar (versteckt standardmäßig) */
.text-content::-webkit-scrollbar,
.sidebar-right::-webkit-scrollbar {
    width: 6px;
    height: 6px; /* Für horizontale Scrollbars falls nötig */
    background: transparent; /* Unsichtbar wenn inaktiv */
}

.custom-down-arrow {
    width: 0;
    height: 10;
    margin-left: 350px;
    rotate: 90deg;
}

.scroll-arrow {
    position: fixed; /* Fixe Position im Viewport */
    right: 100px; /* Anpassen an deine Scrollbar-Position */
    bottom: 50%; /* Vertikal zentriert */
    transform: translateY(50%); /* Präzise Zentrierung */
    font-size: 24px;
    color: #ffffff; 
    pointer-events: none; /* Nicht klickbar */
    z-index: 1000; /* Über allen anderen Elementen */
    text-shadow: 0 0 5px rgba(0,0,0,0.3); /* Lesbarkeit verbessern */
    rotate: 90deg; /* Pfeil drehen */
}

@keyframes float {
    0%, 100% { transform: translateY(50%); }
    50% { transform: translateY(60%); }
}

/* 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: yellow;
}

/* Sicherstellen, dass die Punkte über den Bildern liegen */
.slideshow-container {
    position: relative;
}


/* Kontaktbereich */
.contact {
    position: fixed;
    bottom: 20px;
    left: 35px; /* An h1-Ausrichtung angepasst */
    padding: 10px 0;
    font-size: 28px;
    z-index: 1000;
}

.contact a {
    color: rgb(255, 145, 0);
    text-decoration: none;
}

.bottom-right-image {
    position: fixed;
    bottom: -700px;
    right: -500px;
    width: 1400px; /* Breite des Bildes anpassen */
    height: auto;
    z-index: 100; /* Sicherstellen, dass das Bild über anderen Elementen liegt */
    transform: rotate(245deg); /* Bild um 45 Grad drehen */
    pointer-events: none; /* macht das Bild durchklickbar */
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #57505000;
    color: #000;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
}

* {
    box-sizing: border-box; /* Stellt sicher, dass Padding nicht zur Breite addiert wird */
}

@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;
    }
    
    .sidebar-right {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .image-button {
        width: 150px;
    }
}
/* MOBILE OPTIMIERUNG - ABRISS & PUNSCH */
@media (max-width: 768px) {
    /* 1. Basis-Layout */
    body {
        grid-template-columns: 1fr;
        overflow-x: hidden;
        overflow-y: auto;
        display: block;
    }

    /* 2. Header & Navigation */
    header {
        position: relative;
        width: 100%;
        height: auto;
        padding: 15px;
    }

    header h1 {
        font-size: 32px;
    }

    .sidebar {
        position: relative;
        width: 100%;
        top: auto;
        left: auto;
        padding: 10px 15px;
        margin: 0;
        height: auto;
        margin-bottom: -10px; /* vorher war evtl. zu groß oder leer */
    }

    .sidebar nav ul li a {
        font-size: 24px;
        padding: 8px 0;
    }

    /* 3. Hauptinhalt */
    .content {
        grid-column: 1;
        padding: 0px 15px !important;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* 4. Diashow */
    .slideshow-container {
        width: 100vw;
        height: 60vh;
        margin-left: -15px;
        max-width: none;
        margin-bottom: -90px; /* vorher war evtl. zu groß oder leer */
    }

    .slide img {
        object-fit: contain;
    }

    .prev, .next {
        padding: 20px;
        font-size: 22px;
    }

    .dots-container {
        bottom: 100px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* 5. Lauftext */
    .modern-marquee {
        margin-top: 0px !important; /* Statt 20px */
        margin-bottom: 10px !important;
    }

    .marquee-content {
        font-size: 16px;
    }

    /* 6. Textbereich */
    .text-container {
        width: 100%;
        margin-top: 20px;
    }

    .text-content {
        max-height: none;
        overflow-y: visible;
        padding: 0;
    }
    

    /* 7. Rechte Sidebar (Bildvorschau) */
    .sidebar-right {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        overflow-x: auto;
        padding: 10px 0;
        margin-top: 20px;
        flex-wrap: nowrap;
    }

    .image-button {
        min-width: 120px;
        margin: 0 5px;
    }

    .contact {
        position: fixed;
        bottom: 1px;
        left: 1px;
        font-size: 20px; /* Kleiner als original */
        padding: 5px 10px; /* Kompakter */
        z-index: 1000;
    }

    footer {
        position: fixed;
        bottom: 15px;
        right: 15px;
        width: auto;
        padding: 5px 10px;
    }
    
    footer p {
        font-size: 10px; /* Kleiner als original */
        margin: 0;
        color: #000;
    }

    /* 9. Elemente entfernen */
    .custom-down-arrow,
    .scroll-arrow,
    .bottom-right-image {
        display: none !important;
    }
}

/* Feinjustierung für sehr kleine Displays */
@media (max-width: 480px) {
    .slideshow-container {
        height: 50vh;
    }

    .sidebar nav ul li a {
        font-size: 22px;
    }

    .marquee-content {
        font-size: 14px;
    }

    .prev, .next {
        padding: 15px;
        font-size: 20px;
    }
}

/* Tablet-Optimierungen (1024x768) */
@media (max-width: 1024px) and (min-width: 769px) {
    body {
        grid-template-columns: 80px 1fr 140px;
    }
    
    .content {
        margin-left: 200px;
        padding: 60px;
        max-width: 900px;
    }
    
    .slideshow-container {
        max-width: 900px;
        height: 500px;
    }
    
    .text-content {
        max-width: 600px;
    }
    
    .sidebar-right {
        width: 140px;
        height: 45vh;
    }
    
    .bottom-right-image {
        width: 700px;
        bottom: -450px;
        right: -350px;
    }
    
    header {
        width: 240px;
    }
    
    .sidebar {
        width: 240px;
    }
    
    header h1 {
        font-size: 36px;
    }
    
    .sidebar nav ul li a {
        font-size: 24px;
    }
    
    .sidebar .submenu a {
        font-size: 18px;
    }
    
    .marquee-content {
        font-size: 18px;
    }
}

/* Full HD Anpassungen (1920x1080) */
@media (min-width: 1600px) and (max-width: 1920px) {
    body {
        grid-template-columns: 120px 1fr 160px;
    }
    
    .content {
        margin-left: 280px;
        padding: 80px;
        max-width: 1200px;
    }
    
    .sidebar-right {
        width: 160px;
    }
    
    .slideshow-container {
        max-width: 1200px;
        height: 675px; /* 16:9 Verhältnis */
    }
    
    .text-content {
        max-width: 700px;
    }
    
    .bottom-right-image {
        width: 900px;
        bottom: -550px;
        right: -350px;
    }
}

@media (min-width: 3000px) and (max-width: 3100px) and (min-height: 1900px) and (max-height: 2000px) {
    body {
        grid-template-columns: 150px 1fr 220px;
    }

    .content {
        margin-left: 300px;
        padding: 100px;
        max-width: 1800px;
    }

    .slideshow-container {
        max-width: 1800px;
        height: 900px;
    }

    .text-container {
        max-width: 1400px;
        width: 100%;
    }

    .text-content {
        max-width: 1400px;
        max-height: none;
        font-size: 28px;
        line-height: 1.8;
        overflow-y: auto; /* Scrollen wieder aktiv */
    }

    .text-content p[style*="font-size: 14px"],
    .text-content a[style*="font-size: 14px"] {
        font-size: 26px !important;
    }

    .sidebar-right {
        width: 240px;
        height: 120vh;
    }

    .bottom-right-image {
        width: 1600px;
        bottom: -800px;
        right: -600px;
    }

    header {
        width: 500px;
    }

    .sidebar {
        width: 300px;
    }

    header h1 {
        font-size: 44px;
    }

    .sidebar nav ul li a {
        font-size: 32px;
    }

    .sidebar .submenu a {
        font-size: 22px;
    }

    .marquee-content {
        font-size: 24px;
    }
}

@media (min-width: 1000px) and (max-width: 1100px) and (min-height: 1300px) and (max-height: 1400px) {
    body {
        grid-template-columns: 1fr;
        overflow-x: hidden;
        overflow-y: auto;
        display: block;
    }

    header {
        position: relative;
        width: 100%;
        height: auto;
        padding: 20px;
        z-index: 1000;
    }

    .sidebar {
        position: relative;
        width: 100%;
        top: auto;
        left: auto;
        padding: 15px;
        margin: 0;
        height: auto;
        background-color: transparent;
    }

    .content {
        grid-column: 1;
        padding: 20px;
        margin: 0 auto;
        width: 100%;
        max-width: 1000px;
        box-sizing: border-box;
    }

    .text-container {
        width: 100%;
        max-width: 900px;
        margin-top: 20px;
    }

    .text-content {
        max-width: 900px;
        max-height: none;
        overflow-y: visible;
        font-size: 22px;
        line-height: 1.7;
    }

    .text-content p[style*="font-size: 14px"],
    .text-content a[style*="font-size: 14px"] {
        font-size: 20px !important;
    }

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 600px; /* oder 500px, je nach Look */
    margin: 0 auto 30px;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none; /* JavaScript aktiviert das sichtbare */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


    .sidebar-right {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        overflow-x: auto;
        padding: 10px 0;
        margin-top: 20px;
        flex-wrap: nowrap;
    }

    .image-button {
        min-width: 140px;
        margin: 0 8px;
    }

    .bottom-right-image,
    .custom-down-arrow,
    .scroll-arrow {
        display: none !important;
    }

    header h1 {
        font-size: 36px;
    }

    .sidebar nav ul li a {
        font-size: 24px;
    }

    .sidebar .submenu a {
        font-size: 18px;
    }

    .marquee-content {
        font-size: 20px;
    }

    .contact {
        position: static;
        font-size: 20px;
        padding: 10px 0;
        margin-top: 20px;
    }

    footer {
        position: static;
        text-align: center;
        padding: 10px;
    }
}

