html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'mops', serif;
    font-weight: normal;
    display: flex;
    margin: 0;
    height: 100%;
    background-color: #0e0e0e2f; /* Noch tieferes Schwarz */
    color: #EAEAEA; /* Hellgrau für bessere Lesbarkeit */
    background: #0e0e0e url(images/back.png) center center no-repeat;;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


.sidebar {
    width: 22%;
    background: #161616f5; /* Halbtransparenter Hintergrund */
    padding: 20px;
    overflow-y: auto;
    border-right: 3px solid #A5BD77; /* Leuchtendes Orange-Rot als Akzent */
    color: #DADADA;
    user-select: none;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);

    /* Acrylic-Effekt */
    backdrop-filter: blur(10px); /* Glas-Effekt mit Unschärfe */
    -webkit-backdrop-filter: blur(10px); /* Safari-Unterstützung */
}

/* Der Main-Bereich bleibt auswählbar */
main {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: #1e1e1ee6; /* Kontrastierte Schwarztöne */
    color: #FFFFFF;
    user-select: text;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px); /* Glas-Effekt mit Unschärfe */
    -webkit-backdrop-filter: blur(2px); /* Safari-Unterstützung */
}

main h1, h2, h3, h4, h5, h6 {
    color: #A5BD77;
    font-weight: bold;
    text-shadow: 1px 3px 1px rgba(0, 0, 0, 0.8);
}
pre {
    background-color: #1e1e1ee6; /* Kontrastierte Schwarztöne */
    border-left: 3px solid #A5BD77; /* Leuchtendes Orange-Rot als Akzent */
    padding: 5px;
}

/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    margin: 10px 0;
    padding: 12px;
    background: #161616;
    color: #D3D3D3;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

nav li:hover {
    background-color: #A5BD77; /* Leuchtendes Orange-Rot */
    color: #40492f;
}

nav li.folder {
    font-weight: bold;
    color: #EAEAEA;
}

nav li.folder.open {
    border-left-color: #A5BD77;
}

nav li.folder > ul {
    display: none;
}

nav li.folder.open > ul {
    display: block;
}

nav li.file a {
    text-decoration: none;
    color: #D3D3D3;
    font-weight: 400;
}

nav li.file a:hover {
    text-decoration: underline;
    color: #384128;
}

/* Styling für Ordner */
.folder {
    border-left: 3px solid transparent;
    padding: 10px 12px;
    background-color: #161616;
    color: #738453;
    transition: background-color 0.2s, border-color 0.2s;
}

.folder:hover {
    background-color: #A5BD77; /* Ein sanfterer Rotton */
    border-left-color: #738453;
}

/* Header */
.header {
    background-color: #A5BD77; /* Helles Orange-Rot */
    color: #738453;
    text-align: center;
    padding: 20px 0;
    font-size: 2rem;
    font-family: 'mops', serif;
    font-weight: bold;
    letter-spacing: 3px;
    border-bottom: 3px solid #000000;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Buttons */
.button {
    background-color: #A5BD77;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    border-radius: 5px;
}

.button:hover {
    background-color: #FFFFFF;
    color: #A5BD77;
    border-color: #A5BD77;
}

/* Footer */
.footer {
    background-color: transparent;
    color: #DADADA;
    text-align: center;
    padding: 0px 0;
    font-size: 0.9rem;
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0px;
    width: 100%;
    user-select: none;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        max-height: 30%;
    }

    main {
        padding: 20px;
    }

    .container {
        flex-direction: column;
    }

    .header {
        font-size: 1.5rem;
        padding: 15px 0;
    }
}

/* Font Import */
@font-face {
    font-family: 'mops';
    src: url('fonts/mops.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'mops';
    src: url('fonts/mops.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
