/* ----------------------------------------------------------------- Fonts */

@font-face {
    font-family: 'IBMPlexMono';
    src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IBMPlexMono';
    src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* ----------------------------------------------------------------- Specials */

::selection {
    background-color: #d17927;
    color: #111;
}

/* ----------------------------------------------------------------- A */

a {
    color: #fff;
}

.admonition-note {
    background-color: #333333dd;
    color: #aaa;
    padding-left: 10px;
    padding-right: 40px;
    padding-top: 10px;
    padding-bottom: 10px;
    display: inline-block;
    border-left: 7px solid #555555dd;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    max-width: 88%;
}

amount {
    background-color: #111;
    position: relative;
    top: -2px;
    font-size: .6em;
    margin-left: .7em;
    padding: .2em .5em;
    color: #eee;
    font-weight: normal;
}

/* ----------------------------------------------------------------- B */

body {
    font-family: 'IBMPlexMono';
    font-size: 1em;
    background-color: #2c2c2c;
    margin-top: 10px;
    margin-left: 8px;
    user-select: none;
}

/* ----------------------------------------------------------------- C */

:not(pre) > code {
    user-select: text;
    background-color: #111111bb;
    padding: .2em;
    padding-left: .4em;
    padding-right: .4em;
    font-size: 1.3em;
}

color {
    color: #dbdd4485;
}

/* ----------------------------------------------------------------- D */

date {
    background-color: #18797c;
    padding: .2em .6em;
    color: #111;
}

date-tutorial {
    background-color: #eee;
    padding: .2em .6em;
    color: #111;
    font-size: .8em;
    position: relative;
}

/* ----------------------------------------------------------------- H */

h1, h2, h3 {
    margin-left: .6em;
    color: #aaa;
}

h2:nth-of-type(n+2) {
    margin-top: 2.5em;
}

/* ----------------------------------------------------------------- I */

img {
    border: 4px solid #eeeeee22;
    outline: 1px solid #111;
    border-radius: 6px;
    opacity: .85;
    max-width: 90%;
}

/* ----------------------------------------------------------------- L */

li {
    margin-bottom: .7em;
}

links {
    color: #fff;
    padding-left: .7em;
    padding-right: .7em;
    padding-top: .5em;
    padding-bottom: .5em;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
}

links:hover {
    background-color: #18797c;
    color: #eee;
}

links[active] {
    background-color: #fff;
    color: #111;
    cursor: default;
}

/* ----------------------------------------------------------------- M */

message {
    font-size: .5em;
    font-weight: normal;
    position: relative;
    top: -5px;
    margin-left: .9em;
    background-color: #111;
    color: #aaa;
    padding: .2em .4em;
}

/* ----------------------------------------------------------------- N */

navigation-bar {
    position: fixed;
    z-index: 1;
    top: 0px;
    left: 0px;
    padding-left: 8px;
    padding-top: 10px;
    padding-bottom: 9px;
    background-color: #222;
    width: 100%;
}

/* ----------------------------------------------------------------- P */

p {
    margin-left: 1.4em;
}

pre {
    user-select: text;
    background-color: #000000bb;
    margin-left: 1.4em;
    margin-top: 0em;
    margin-bottom: 0em;
    padding-left: 1.1em;
    padding-right: 1em;
    padding-top: 1em;
    color: #fff;
    font-size: 1.2em;
    display: inline-block;
    min-width: 60em;
    border-radius: 5px;
}

/* ----------------------------------------------------------------- S */

#scroll-menu {
    position: fixed;
    right: 12px;
    top: 72px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    z-index: 1;
}

.scroll-menu-item {
    position: relative; /* Wichtig für die Positionierung des Textes */
    width: 12px;
    height: 4px;
    background-color: #444; /* Inaktive Striche */
    border-radius: 2px;
    cursor: default;
    /* transition: all sorgt dafür, dass auch der margin animiert wird */
    transition: all 200ms;
    /* Sicherstellen, dass kein Standard-Margin das Ergebnis verfälscht */
    margin: 0;
    will-change: height, margin, width; /* Optimiert die Performance für flüssige Animationen */
}

/* Der Text-Label */
.scroll-menu-item::before {
    content: attr(data-title); /* Holt den Text aus dem Attribut */
    position: absolute;
    right: 23px; /* Abstand zum Strich */
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    color: #111;
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms;
    background-color: #aaa;
    padding: 2px 5px;
    border-radius: 3px;
}

.scroll-menu-item-selected {
    width: 15px;
    background-color: #eee;
}

/* Hover-Effekt mit vertikaler Zentrierung */
.scroll-menu-item:hover {
    background-color: #aaa;
    height: 8px;
    /* Verschiebt den Strich um die Hälfte des Höhenzuwachses nach oben */
    margin-top: -2px;
    margin-bottom: -2px;
}

/* Text nur beim Hover anzeigen */
.scroll-menu-item:hover::before {
    opacity: 1;
}

.separator {
    color: #fff38a;
}

/* ----------------------------------------------------------------- T */

/* Container-Styling */
table {
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background-color: #1a1a1a; /* Dunkler Hintergrund passend zum Design */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    max-width: 90%;
    margin-left: 1em;
}

/* Kopfzeile (Titel links orientiert) */
table thead th {
    background-color: #252525;
    color: #aaa;
    text-align: left; /* Titel links orientiert */
    padding: 12px 15px;
    font-weight: bold;
    border-bottom: 1px solid #444;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Zellen-Styling und Trennung */
table tbody td {
    padding: 12px 15px;
    color: #aaa;
    border-bottom: 1px solid #333; /* Horizontale Zellentrennung */
    vertical-align: top;
}

/* Vertikale Trennung (optional, falls gewünscht) */
table td:not(:last-child), 
table th:not(:last-child) {
    border-right: 1px solid #333;
}

/* Zeilen-Highlighting beim Drüberfahren */
table tbody tr:hover {
    background-color: #222;
}

/* Letzte Zeile ohne unteren Rand */
table tbody tr:last-child td {
    border-bottom: none;
}

/* Spezielle Formatierung für die "Term" Spalte */
table td:first-child {
    font-weight: bold;
    color: #aaa;
}

tag {
    background-color: #111;
    color: #aaa;
    padding: .2em .6em;
    display: inline-block;
    cursor: pointer;
}

tag:hover {
    background-color: #fff;
    color: #111;
}

titles {
    font-size: 3em;
}

titles code {
    background-color: #eeeeeebb;
}

tutorial {
    color: #fff38a;
    padding: .7em;
    padding-left: .8em;
    padding-right: .8em;
    display: inline-block;
    cursor: pointer;
}

tutorial:hover {
    background-color: #fff38aaa;
    color: #111;
}

/* ----------------------------------------------------------------- U */

ul {
    color: #aaa;
    list-style: square;
}