body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
    background-color: #282c34; /* Hintergrund rechts muss gleich sein wie Content */
    overflow: hidden; /* Verhindert Scrollen des Body, nur Content scrollt */
}

/* Content Wrapper, um die Breite zu steuern */
.main-layout {
    display: flex;
    width: 100%;
    height: 100%;
}


/* --- Sidebar Styling --- */
.sidebar {
    width: 260px; /* Feste Breite */
    flex-shrink: 0; /* Verhindert Schrumpfen */
    background-color: #353b45;
    color: #ecf0f1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1e2127;
    overflow-y: auto;
    z-index: 10; /* Sidebar über dem Blur */
}

.sidebar h3 {
    cursor: pointer;
    margin-top: 0;
    border-bottom: 1px solid #4b5362;
    padding-bottom: 10px;
    color: #abb2bf;
}

.sidebar-logo {
    display: block;          /* Sorgt dafür, dass es wie ein Block element wirkt */
    width: 100px;            /* Legt die gewünschte Breite fest (hier 150px) */
    height: auto;            /* Höhe wird automatisch proportional angepasst */
    margin: 0 auto 20px 0px;/* Zentriert das Bild und gibt 20px Abstand nach unten */
    border-radius: 25px;      /* Optional: Leicht abgerundete Ecken */
    object-fit: contain;     /* Verhindert Verzerrung */
    cursor: pointer;
}

.menu-item {
    margin-bottom: 15px;
}

/* Links Styling */
.main-link, .sub-link {
    text-decoration: none;
    cursor: pointer;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.main-link {
    color: #fff;
    font-weight: bold;
    background-color: #3e4451;
}

.main-link:hover {
    background-color: #61afef; /* Helles Blau als Hover */
    color: #282c34;
}

.sub-link {
    color: #abb2bf;
    font-size: 0.95em;
    padding-left: 20px;
}

.sub-link:hover {
    color: #fff;
    background-color: #3e4451;
}

/* Untermenü Logik */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.submenu.open {
    display: block;
}

/* --- Content Bereich Styling --- */
.content {
    flex: 1;
    padding: 40px;
    background-color: #282c34;
    color: #abb2bf;
    overflow-y: auto;
}

.content-wrapper {
    /* Berechnung: Sidebar (260px) * 3.5 = 910px */
    width: 1150px; 
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background-color: #282c34;
    border-right: 1px solid #1e2127; /* Optional: Trennlinie zum leeren Rest */
    position: relative; /* Für Positionierung der Suchleiste */
}

.content h1, .content h2 {
    color: #61afef; /* Helles Blau für Überschriften */
    border-bottom: 2px solid #3e4451;
    padding-bottom: 10px;
    display: inline-block;
    margin-top: 0;
}

.content h3 {
    color: #e5c07b; /* Gelb für H3 */
}

.content p, .content li {
    line-height: 1.6;
    color: #dcdfe4; /* Leicht helleres Grau für Lesbarkeit */
}

p a {
    color: #98c379;
    text-decoration: underline;
}
/* --- Guide / Schritte Design (angepasst an Dark Mode) --- */
.guide-container {
    background: #21252b; /* Etwas dunkler als Content für Container */
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #3e4451;
    box-shadow: 0 25px 30px rgba(0,0,0,0.2);
}

.steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}


.steps li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #dcdfe4;
}

.steps li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background-color: #61afef;
    color: #282c34;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.steps li strong {
    display: block;
    margin-bottom: 5px;
    color: #e06c75; /* Rötlicher Ton für Schritt-Titel */
    font-size: 1.1em;
}

.steps a {
    color: #98c379;
    text-decoration: underline;
}


/* 1. Entferne den großen linken Abstand und den Zähler für ULs innerhalb von .steps */
.steps ul {
    list-style: disc; /* Oder 'none', wenn Sie keine Punkte wollen */
    padding-left: 20px; /* Normale Einrückung für Unterpunkte */
    margin-top: 10px;
    margin-bottom: 15px;
}

/* 2. Setze das Padding und die Positionierung für LI-Elemente innerhalb der UL zurück */
.steps ul li {
    position: static; /* Wichtig: Hebt die absolute Positionierung des Eltern-LI auf */
    padding-left: 10px; /* Nur kleiner Abstand für den eigenen Punkt */
    margin-bottom: 5px; /* Weniger Abstand als bei den Hauptschritten */
    color: #dcdfe4;
}

/* 3. Verhindere, dass der Zähler (::before) für Unterpunkte angezeigt wird */
.steps ul li::before {
    display: none; /* Kein blauer Kreis mit Nummer */
    content: none;
}

/* --- Code Snippets Design (NEU) --- */
/* Wrapper für den Kopier-Button */
.code-wrapper {
    position: relative;
    margin: 10px 0 20px 0;
}

pre {
    /* Heller als Content (#282c34), damit es sich abhebt */
    background-color: #21252b; 
    color: #abb2bf;
    padding: 0px;
    padding-left: 15px;
    padding-bottom: 10px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    margin: 0; /* Margin wird vom Wrapper übernommen */
    border: 1px solid #3e4451;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


/* Der Kopier-Button */
.copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #3e4451;
    color: #abb2bf;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75em;
    cursor: pointer;
    transition: all 0.2s;
    font-family: sans-serif;
    opacity: 0.7;
}

.copy-btn:hover {
    background-color: #61afef;
    color: #282c34;
    opacity: 1;
}

/* Inline-Code */
p code, li code {
    background-color: #3e4451;
    color: #98c379; /* Grün für Inline-Code    3e4451*/
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

pre code {
    background-color: transparent;
}


/* Der restliche Bereich rechts füllt sich automatisch durch body background-color */

/* --- Suchleiste oben rechts im Content --- */
.search-trigger-container {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 20;
}

.search-trigger {
    background-color: #3e4451;
    border: 1px solid #5c6370;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    width: 200px;
}

.search-trigger:hover {
    background-color: #4b5362;
    border-color: #61afef;
}

.search-trigger svg {
    width: 18px;
    height: 18px;
    fill: #abb2bf;
}

.search-trigger span {
    color: #5c6370;
    font-size: 0.9em;
    font-style: italic;
}

/* --- Vollbild Such-Overlay (Zentriert) --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(40, 44, 52, 0.6); /* Halbtransparent */
    backdrop-filter: blur(8px); /* Der Blur-Effekt */
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none; /* Standardmäßig ausgeblendet */
    justify-content: center;
    align-items: flex-start; /* Nach oben zentriert, aber mit Abstand */
    padding-top: 15vh; /* Abstand von oben */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-box {
    background-color: #21252b;
    width: 600px;
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid #3e4451;
    overflow: hidden;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #3e4451;
}

.search-input-wrapper svg {
    width: 20px;
    height: 20px;
    fill: #61afef;
    margin-right: 15px;
}

#search-input {
    background: transparent;
    border: none;
    color: #dcdfe4;
    font-size: 1.2em;
    width: 100%;
    outline: none;
}

#search-input::placeholder {
    color: #5c6370;
}

/* Suchergebnisse Liste */
#search-results {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 20px;
    cursor: pointer;
    color: #abb2bf;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.search-result-item:hover, .search-result-item.selected {
    background-color: #3e4451;
    color: #fff;
}

.search-result-item .path {
    font-size: 0.8em;
    color: #5c6370;
    margin-left: 10px;
}

/* Close Button im Overlay */
.close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

/* --- Prism.js Syntax Highlighting Overrides (One Dark Theme Basis) --- */
/* Diese Klassen werden von Prism.js automatisch gesetzt, wenn Sie es einbinden */
.token.comment, .token.block-comment, .token.prolog, .token.doctype, .token.cdata { color: #5c6370; font-style: italic; }
.token.punctuation { color: #abb2bf; }
.token.property, .token.number, .token.boolean, .token.constant, .token.symbol { color: #d19a66; }
.token.tag, .token.attr-name, .token.namespace, .token.deleted { color: #e06c75; }
.token.function-name { color: #61afef; }
.token.boolean, .token.number, .token.function { color: #d19a66; }
.token.property, .token.class-name, .token.constant, .token.symbol { color: #e5c07b; }
.token.selector, .token.important, .token.atrule, .token.keyword, .token.builtin { color: #c678dd; }
.token.string, .token.char, .token.attr-value, .token.regex, .token.variable { color: #61afef !important; }
.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string { color: #56b6c2; }
.token.important, .token.bold { font-weight: bold; }
.token.italic { font-style: italic; }
.token.entity { cursor: help; }
.token.inserted { color: green; }/*Copied!*/

/* --- Nur diesen Block ans Ende der style.css kopieren --- */

/* Ändert Strings (Text in Anführungszeichen) von Grün zu Hellblau */
.token.string, 
.token.char, 
.token.attr-value {
    color: #61afef !important; 
}

/* Optional: Macht Kommentare etwas dezenter */
.token.comment, 
.token.block-comment {
    color: #5c6370 !important;
    font-style: italic;
}   
