
#mobile-sidebar-toggle {
    display: none;
}

#sidebar-overlay {
    opacity: 0;
}

#max-intro-section, #eva-intro-section, #pub-intro-section {
    padding-top: 0px;
}
/* --- IT-Hosting Sektion --- */
/* Wiederverwendet die Stile von .simple-text-block-section für Konsistenz */
.it-hosting-section {
    /* Hintergrundfarbe: Hier explizit auf weiss gesetzt, um den Wechsel zu gewährleisten */
    background-color: var(--color-white); /* Oder var(--color-off-white) je nach Platzierung */
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
    transition: background-color 0.5s ease; /* Für Dark Mode Übergang */
}

/* Der Inhalt selbst verwendet die Stile von .simple-text-content */
.it-hosting-section .simple-text-content {
    color: var(--color-dark-gray);
    font-size: 1.1em;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: color 0.5s ease; /* Für Dark Mode Übergang */
}

/* Anpassung für vom CKEditor erzeugte Elemente innerhalb des Textblocks */
.it-hosting-section .simple-text-content p {
    margin-bottom: 1em;
}
.it-hosting-section .simple-text-content h1,
.it-hosting-section .simple-text-content h2,
.it-hosting-section .simple-text-content h3,
.it-hosting-section .simple-text-content h4,
.it-hosting-section .simple-text-content h5,
.it-hosting-section .simple-text-content h6 {
    color: var(--color-black);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
    transition: color 0.5s ease; /* Für Dark Mode Übergang */
}
.it-hosting-section .simple-text-content ul,
.it-hosting-section .simple-text-content ol {
    text-align: left;
    padding-left: 20px;
    margin-bottom: 1em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.it-hosting-section .simple-text-content li {
    margin-bottom: 0.5em;
}

/* Media Queries (können die von .simple-text-block-section wiederverwenden) */
@media (max-width: 960px) {
    .it-hosting-section .simple-text-content {
        font-size: 1em;
    }
}

@media (max-width: 640px) {
    .it-hosting-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .it-hosting-section .simple-text-content {
        font-size: 0.95em;
    }
}

/* --- Prozessoptimierung Sektion --- */
/* Wiederverwendet die Stile von .simple-text-block-section für Konsistenz */
.process-optimization-section {
    /* Hintergrundfarbe: Hier explizit auf off-white gesetzt, um den Wechsel zu gewährleisten */
    background-color: var(--color-off-white); /* Oder var(--color-white) je nach Platzierung */
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
    transition: background-color 0.5s ease; /* Für Dark Mode Übergang */
}

/* Der Inhalt selbst verwendet die Stile von .simple-text-content */
.process-optimization-section .simple-text-content {
    color: var(--color-dark-gray);
    font-size: 1.1em;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* Text linksbündig für besseren Lesefluss bei längeren Texten */
}

/* Anpassung für vom CKEditor erzeugte Elemente innerhalb des Textblocks */
.process-optimization-section .simple-text-content p {
    margin-top: 0.8em;
    margin-bottom: 0.8em;
}

.process-optimization-section .simple-text-content p:first-child {
    margin-top: 0;
}
.process-optimization-section .simple-text-content p:last-child {
    margin-bottom: 0;
}

.process-optimization-section .simple-text-content ul,
.process-optimization-section .simple-text-content ol {
    list-style: disc;
    padding-left: 25px;
    margin-top: 1em;
    margin-bottom: 1em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.process-optimization-section .simple-text-content li {
    margin-bottom: 0.5em;
}

/* Media Queries (können die von .simple-text-block-section wiederverwenden) */
@media (max-width: 960px) {
    .process-optimization-section .simple-text-content {
        font-size: 1em;
    }
}

@media (max-width: 640px) {
    .process-optimization-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .process-optimization-section .simple-text-content {
        font-size: 0.95em;
    }
}


/* --- Styles für die Software-Übersichtsseite (software.css) --- */

/* Der Hauptcontainer für den Inhalt und die Sidebar */
#main-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Explizit auf stretch gesetzt, damit Kinder die Höhe füllen */
    gap: 40px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    margin: 20px auto;
}

/* Der Container für die Sektionen des Hauptinhalts */
#main-content {
    flex-grow: 1;
    flex-shrink: 1;
     max-width: 1000px; /* Optional: Eine maximale Breite für den Hauptinhalt, wenn gewünscht */
    
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* height: 100%; /* DIESE ZEILE WIRD ENTFERNT */
    /* Optional: Eine min-height, falls der Inhalt sehr kurz sein könnte */
    min-height: calc(100vh - 100px); /* Beispiel: Mindestens Viewport-Höhe minus Header/Footer */
}

/* Die Sidebar (Desktop-Standard) */
#sidebar { 
    flex-basis: 450px;
    width: 450px;
    overflow-y: auto; /* Scrollbar für Inhalt */
    max-height: calc(100vh - 40px);
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    padding: 20px;
    
    position: sticky;
    top: 20px;
    /* max-height: calc(100vh - 40px); /* Diese Zeile bleibt entfernt, da sie die Höhe begrenzt */
    box-sizing: border-box;
    
    opacity: 1; /* Initial sichtbar auf Desktop */
    pointer-events: auto;
    transform: translateX(0);
    
    transition: transform 0.5s ease-out, opacity 0.5s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Styles für Sidebar-Inhalt */
#sidebar h3 { 
    color: var(--color-red); 
    margin-top: 0; 
    margin-bottom: 15px; 
    font-size: 1.5em; 
}
#sidebar p { 
    font-size: 0.95em; 
    margin-bottom: 15px; 
}
#sidebar .next-steps-title { 
    font-weight: bold; 
    margin-top: 20px; 
    margin-bottom: 10px; 
    color: #555;
}
#sidebar .sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#sidebar .sidebar-buttons button {
    background-color: var(--color-red); 
    color: white; 
    border: none; 
    padding: 10px 15px;
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 0.9em; 
    transition: background-color 0.3s ease;
    text-align: left;
}
#sidebar .sidebar-buttons button:hover { 
    background-color: #cc0000; 
}
#sidebar .sidebar-buttons button:disabled { 
    background-color: #ccc; 
    cursor: not-allowed; 
}

/* Styles für Modul-Details im Sidebar */
#sidebar .module-details-list {
    list-style: disc; 
    padding-left: 20px; 
    margin-bottom: 15px; 
    font-size: 0.9em; 
    color: var(--color-dark-gray);
}
#sidebar .module-details-list li { 
    margin-bottom: 5px; 
}
#sidebar .module-details-list strong { 
    color: var(--color-black);
}

#mobile-sidebar-close {
    display: none;
}


/* --- Responsive Anpassungen für das Layout --- */
@media (max-width: 1224px) {
    #main-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        position: relative; /* Für das Hamburger-Icon */
    }

    #mobile-sidebar-close 
    {
        display: block;
    }

    #main-content {
        width: 100%;
        max-width: 700px;
        padding: 0 15px;
    }

    /* NEU: Sidebar als Off-Canvas / Drawer */
    #sidebar {
        position: fixed; /* Bleibt fest im Viewport */
        top: 0;
        right: -350px; /* Initial ausserhalb des Bildschirms */
        width: 450px; /* Feste Breite des Drawers */
        height: 100%; /* Volle Höhe des Viewports */
        max-height: 100vh; /* Sicherstellen, dass es nicht über den Viewport hinausgeht */
        padding: 20px;
        margin: 0; /* Keine Margins, da fixed */
        border-radius: 0; /* Keine abgerundeten Ecken, da es den Rand berührt */
        box-shadow: -5px 0 15px rgba(0,0,0,0.2); /* Schatten, der nach innen fällt */
        z-index: 1000; /* Über dem Hauptinhalt */
        
        opacity: 0; /* Initial unsichtbar */
        pointer-events: none; /* Keine Interaktion, wenn versteckt */
        transform: translateX(0); /* Keine initiale Verschiebung, da right gesteuert wird */
        transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* Sanfteres Ein-/Ausblenden */
    }

    /* Klasse, um die Sidebar auf Mobil einzublenden */
    #sidebar.is-active {
        transform: translateX(-350px); /* Schiebt die Sidebar von rechts nach links in den Viewport */
        opacity: 1;
        pointer-events: auto;
    }

   /* NEU: Overlay, um den Hintergrund abzudunkeln, wenn Sidebar offen ist */
    #sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999; /* Zwischen Hauptinhalt und Sidebar */
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    #sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* NEU: Hamburger-Icon für Mobil */
    #mobile-sidebar-toggle {
        display: block; /* Standardmässig sichtbar auf Mobil */
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1001; /* Über der Sidebar */
        background-color: var(--color-red);
        color: white;
        border: none;
        border-radius: 5px;
        padding: 10px 15px;
        font-size: 1.2em;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        transition: background-color 0.3s ease;
    }
    #mobile-sidebar-toggle:hover {
        background-color: #cc0000;
    }
}

@media (max-width: 600px) {
    #main-wrapper {
        padding: 0 10px;
    }
    #main-content {
        padding: 0 5px;
    }
    #sidebar {
        width: 100%; /* Sidebar nimmt volle Breite ein */
        right: -100%; /* Schiebt sich komplett raus */
        transform: translateX(0); /* Reset transform */
        opacity: 0;
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    }
    #sidebar.is-active {
        transform: translateX(-100%); /* Schiebt sich komplett in den Viewport */
        opacity: 1;
    }
    .mobile-sidebar-toggle {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 1em;
    }
}

/* NEU: Styling für den #sidebar-module-detail Block */
#sidebar-module-detail {
   

    opacity: 0; /* Initial unsichtbar für die Einblend-Animation */
    transform: translateY(10px); /* Startet leicht nach unten verschoben */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out; /* Sanfte Einblend-Animation */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, background-color 0.3s ease, box-shadow 0.3s ease; /* NEU: Übergang für Hintergrund/Schatten */

}

/* Zustand, wenn der #sidebar-module-detail Block aktiv/sichtbar ist (per JS gesteuert) */
#sidebar-module-detail.is-active {
    opacity: 1;
    margin-bottom: 20px; /* Abstand zum oberen Inhalt der Sidebar */
    padding: 15px; /* Innenabstand */
    background-color: var(--color-info-bg); /* Heller Blauton als Hintergrund */
    border-radius: 8px; /* Leicht abgerundete Ecken */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Dezenter Schatten */
    transform: translateY(0);
}

.mobile-sidebar-toggle {
	background-color: var(--color-red);
    color: white;
	font-size: 1.2em;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	padding: 5px 10px;
	margin-bottom: 2px;
}

#prices-section.card  .simple-text-content {
    border-top: 1px solid;
    border-bottom: 1px solid;
    color: var(--color-red);
    font-size: 2rem;
}


