/* Globale Einstellungen */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6; /* Heller Hintergrund */
    color: #333;
}
/* Update für Code-Blöcke, um horizontale Überlappung zu verhindern */
pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    overflow-x: auto; /* Wichtig: Ermöglicht horizontales Scrollen im Block */
    white-space: pre-wrap; /* Neu: Erlaubt Zeilenumbruch, wenn der Platz knapp wird */
    word-wrap: break-word; /* Neue: Hilft beim Umbrechen von sehr langen Wörtern/Strings */
    border-radius: 4px;
    font-family: 'Consolas', 'Courier New', monospace;
    line-height: 1.4;
    /* max-width: 100%; wird automatisch durch das Eltern-Element geerbt, wenn der content-wrapper korrekt begrenzt ist */
}

/* Stellen Sie sicher, dass Ihr content-wrapper diese Begrenzung hat (siehe Basis-CSS) */
.content-wrapper {
    width: 90%;
    max-width: 1200px; /* Diese Regel ist entscheidend */
    margin: 20px auto;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Standard-Tabelle für das 2-Spalten-Layout */
table {
    width: 100%;
    border-collapse: collapse;
}

table tr {
    vertical-align: top;
}

/* Linke Spalte (Menü/Sidebar) */
.sidebar-col {
    width: 250px; /* Feste Breite für das Menü */
    background-color: #333;
    padding: 20px 0;
    color: #fff;
}

/* Rechte Spalte (Inhalt) */
.content-col {
    padding: 20px 40px;
    border-left: 1px solid #eee;
}

/* --- Navigation & Menü-Styling --- */
#maintxt {
    font-size: 1.2em;
    font-weight: bold;
    padding: 0 20px 10px 20px;
    color: #ff9900; /* Akzentfarbe für den Menü-Titel */
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li a {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    color: #ccc;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}

.sidebar-nav li a:hover {
    background-color: #555;
    color: #fff;
}

.sidebar-nav li a.active {
    background-color: #ff9900; /* Aktive Seite hervorheben */
    color: #333;
    font-weight: bold;
}

#home_link, #subtxt {
    /* Setzt die Spans zurück, falls nötig, aber die Listenelemente sind besser zum Stylen */
    display: inline; 
}

/* --- Inhalt-Styling --- */
h1 {
    color: #0056b3;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}

h2 {
    color: #007bff;
    margin-top: 25px;
}

h3 {
    color: #495057;
    margin-top: 15px;
    font-size: 1.1em;
}

/* Code-Blöcke (pre)
pre {
    background-color: #2c3e50;
    color: #ecf0f1; 
    padding: 15px;
    overflow-x: auto;
    border-radius: 4px;
    font-family: 'Consolas', 'Courier New', monospace;
    line-height: 1.4;
}
 */
code {
    font-family: 'Consolas', 'Courier New', monospace;
}

/* Spezielle Hinweis-Box */
.attention-box, .note {
    background-color: #fff3cd; /* Gelb-ähnlich */
    border-left: 5px solid #ffc107; /* Gelber Rand */
    padding: 15px;
    margin: 15px 0;
    color: #856404;
    border-radius: 4px;
}

/* Navigation am Ende der Seite */
.navigation-bottom {
    border-top: 1px dashed #ccc;
    padding-top: 15px;
    margin-top: 30px;
    text-align: right;
}

.navigation-bottom a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.navigation-bottom a:hover {
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: #fff;
    font-size: 0.8em;
    clear: both; /* Stellt sicher, dass der Footer unter den Spalten bleibt */
}

/* --- Header (falls vorhanden) --- */
.blog-header {
    background-color: #0056b3;
    color: white;
    padding: 15px 0;
    text-align: center;
}

.blog-header h1 {
    margin: 0;
    font-size: 1.8em;
    border-bottom: none;
    color: white;
}