@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Doto:wght,ROND@100..900,100&family=Pixelify+Sans:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+10&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+10&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

/* === FULL PAGE STYLING === */
body {
    background-color: rgba(249, 245, 240, 0.51);
    color: #1a1a1a;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
}

main {
    padding-bottom: 50px;
}

section {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

h1, h2, h3, h4, h5, h6 {
    scroll-margin-top: 150px;
}

h1 {
    font-family: 'Jersey 10', sans-serif;
    font-weight: normal;
    font-size: 60px;
}

h2 {
    font-family: 'Jersey 10', sans-serif;
    font-weight: normal;
    font-size: 50px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

h3, h4, h5, h6 {
    font-family: 'Jersey 10', sans-serif;
    font-weight: normal;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.header {
    z-index: 9999;
}

em {
    font-style: normal;
    background-color: #90ee90;
}

code {
    color: #464646;
}


/* DUAL MODE TOGGLE*/

.toggle.mode-toggle {
    border: none !important;
}

.toggle.mode-toggle,
.toggle.mode-toggle .toggle-handle {
    border-radius: 20rem;
}

.toggle.mode-toggle .toggle-on {
    background-color: rgb(191, 67, 65) !important;
    color: #f0efd6 !important;
}

.toggle.mode-toggle .toggle-off {
    background-color: #d7dfa3 !important;
    color: #363636 !important;
}

.navbar-nav .nav-link.active {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.navbar-nav .nav-item {
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

img.nav-logo {
    max-width: 245px;
}

input:focus, textarea:focus, select:focus {
    box-shadow: none !important;
    border-color: inherit !important;
    outline: none !important;
}

/* === NAVIGATION BAR STYLING === */

#mainSidebar, #mainSidebar .offcanvas-body {
    width: auto !important;
    transition: width 1s ease-in-out;
}

#mainSidebar .list-group{
    width: 350px;
    padding: 1rem;
}

.offcanvas-body .list-group-item {
    border: none !important;
}

.offcanvas-body .list-group-item:hover {
    background-color: rgba(248, 249, 250, 0.52);
}

.offcanvas-body .list-group-item {
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

#mainSidebar,
#mainSidebar .offcanvas-body,
.submenu-lv2,
.submenu-lv3 {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
}


.content-block {
    margin-top: 0;
    margin-bottom: 1rem;
}

a.btn.permalink:not(:hover) {
    background-color: transparent;
    border-color: transparent;
}

a.btn.permalink > svg {
    height: 1em;
    width: 1em;
    vertical-align: -0.125em;
}






/* === SCROLL SPY STYLING === */

.spyscroll-bar {
    position: fixed;
    max-height: calc(100vh - 175px);
    overflow-y: auto;
    flex-wrap: nowrap;
    top: 100px;
    scrollbar-width: thin;
}

.spyscroll-bar .nav-link {
    text-decoration: none !important;
}

.spyscroll-bar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.35) !important; /* soft white */
    color: #000 !important;
    border-radius: 0.375rem;
    font-weight: 500;
}

.spyscroll-bar .nav-link:focus {
    color: #000000 !important;
}

.spyscroll-bar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.border-end {
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
}





/* === MENU STYLING === */

#burger-toggle {
    z-index: 1051;
}

#burger-toggle:hover {
    background-color: #e9ecef;
}

/* Basis-Styles */
.offcanvas-start {
    width: 300px;
    transition: transform 0.3s ease;
}

/* Untermenü-Styles */
.submenu-lv2, .submenu-lv3 {
    position: fixed;
    top: 0;
    left: 300px; /* Startet rechts vom Hauptmenü */
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.44);
    z-index: 1055;
    transition: transform 0.3s ease;
    transform: translateX(100%);
    visibility: hidden;
}

.submenu-lv2.show, .submenu-lv3.show {
    transform: translateX(0);
    visibility: visible;
}

/* Verhindert Klick-Konflikte */
.stretched-link::after {
    z-index: 0;
}

.toggle-submenu-icon {
    cursor: pointer;
    z-index: 1;
    position: relative;
}

/* Zurück-Button */
.back-to-parent {
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
}

.back-to-parent:hover {
    background: #e9ecef;
}


/* === INHALTSVERZEICHNIS AUF KAPITELSEITEN STYLING === */

.toc {
    margin-left: 1rem;
    font-family: sans-serif;
    line-height: 1.5 !important;
}

.toc ul {
    list-style: none;
    margin: 0;
    padding-left: 1.2rem; /* Einrückung für Sub-Listen */
}

.toc li {
    position: relative;
    margin: 0.25rem 0;
    padding-left: 1.2rem; /* Platz für den Punkt */
}

.toc li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #ccc;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.toc li:hover::before {
    background-color: #bf4341;
}

.toc a {
    text-decoration: none !important;
    color: inherit !important;
    font-weight: normal;
    display: inline-block;
    width: 100%;
}

.toc a:hover {
    font-weight: bold;
}

.toc > ul > li {
    font-weight: bold !important;
    margin-top: 3rem; /* Abstand zu vorherigem Abschnitt */
}

.toc > ul > li:first-child {
margin-top: 1rem !important;
}


.table-transparent,
.table-transparent th,
.table-transparent td {
    background-color: transparent !important;
}

.table-transparent,
.table-transparent th,
.table-transparent td {
    border: 1px solid #fff !important;
}