/* ----------------------------------------------------------------- DEBUG */

/* Alles bekommt einen Rahmen, um Box-Modell-Fehler zu sehen */
* {
    outline: 0px solid rgba(255, 0, 0, 0.5) !important;  /* Set `0px` to any number*/
}

/* ----------------------------------------------------------------- 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;
}

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

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

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

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

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

a {
    color: #aaa;
}

a:hover {
    text-decoration: underline solid #ffe927 3px ;
}

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

amount {
    background-color: #111;
    position: relative;
    top: -2px;
    font-size: .6em;
    margin-left: .7rem;
    padding: .2em .5rem;
    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;
    overflow-y: scroll;
    width: 96%;
    cursor: default;
}

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

calculated {
    border-top: 2px solid transparent;
    border-bottom: 2px solid #444;
    transition: all 250ms;
}

calculated:hover {
    border-top: 2px solid #ffe927c4;
    border-bottom: 2px solid transparent;
}

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

color {
    color: #dbdd4485;
}

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

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

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

.dark {
    color: #111;
}

.download {
    color: #aaa;
    padding: .7rem;
    padding-left: .8rem;
    padding-right: .8rem;
    display: inline-block;
    cursor: pointer;
    background-color: #11111166;
    transition: all 200ms;
    border-right: 0px solid transparent;
}

.download:hover {
    background-color: #111;
    color: #eee;
    border-right: 40px solid #000;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    text-decoration: none;
}

.download::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    margin-left: 20px;
    margin-top: -2px;
    opacity: 0;
    transition: opacity 250ms;
    visibility: hidden;
}

.download:hover::after {
    opacity: 1;
    content: url('/static/svgs/arrow_downward_24dp_AAA.svg');
    visibility: visible;
}

/* ----------------------------------------------------------------- E */

.emphasize {
    color: #ffe927
}

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

h1 {
    font-family: 'Pattaya';
    color: #111 !important;
    font-size: 4em;
    line-height: 1em;
}

h1, h2, h3, h4 {
    margin-left: 1.4rem;
    color: #aaa;
}

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

hints {
    color: #aaa;
    background-color: #111;
    /* border: 1px solid #000; */
    border-radius: 4px;
    padding: 8px 13px;
    margin-left: -5px;
    opacity: 0;
    visibility: hidden;
    transition: all 600ms ease-in-out, visibility 600ms;
}

hints.visible {
    opacity: .6;
    visibility: visible;
    transition: all 70ms ease-in-out;
}

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

.icon {
    border: none !important;
    width: 26px;
    position: relative;
    top: 7px;
    left: -8px;
}

img:not(.page-header-image):not(.image-ratings) {
    border: 8px solid #111;
    max-width: 90%;
}

image-legend {
    position: absolute;
    font-size: 25px;
    font-weight: bold;
    background-color: #222;
    color: #aaa;
    padding: 2px 9px;
    border-radius: 2px;
    z-index: 1;
    transition: all 150ms;
}

image-legend:hover {
    background-color: #aaa;
    color: #222;
}

.image-ratings {
    margin-top: 3rem;
    margin-bottom: 1rem;
    margin-left: 1.2rem;
    height: 5rem;
}

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

li {
    margin-bottom: .7rem;
}

.light {
    color: #eee;
}

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

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

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

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

main {
     margin-top: 56px;
}

/* Hide first h1 Entry in Markdown */
.markdown-body h1:first-child {
    opacity: 0;
    margin: 0;
    font-size: 20px;
}

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

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

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

/* ----------------------------------------------------------------- O */

.overview {
    border: 0px solid transparent !important;
    width: 15%;
    margin-left: -5px;
    margin-right: -3px;
    margin-top: -5px;
    margin-bottom: 2px;
    transition: all 200ms;
}

.overview:hover {
    opacity: .8;
}

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

p {
    margin-left: 1.4rem;
    color: #aaa;
}

.page-header-image {
    border: 0px solid transparent !important;
    border-radius: 0px;
    width: 100vw;
    display: block;
    height: 280px;
    margin-top: 56px;
    margin-left: -24px;
    object-fit: cover;
    position: sticky;
    top: -215px;
    z-index: 2;
}

#page-title {
    color: #aaa;
    background-color: #111;
    padding: 18px 20px;
    position: relative;
    margin-left: -2px;
    opacity: 0;
    transition: opacity 100ms;
}

#page-subtitle {
    color: #111;
    background-color: #eee;
    padding: 18px 20px;
    margin-left: -8px;
    opacity: 0;
    transition: opacity 200ms;
}

page-title {
    position: absolute;
    top: 160px;
    left: 120px;
    font-weight: bold;
    font-size: 40px;
    background-color: #ffffffcc;
    border-left: 10px solid #ffbe0acc;
    padding: 4px 18px;
    z-index: 2;
}

.paragraph-medium-width {
    width: 40rem;
}

.person {
    border: 4px solid #111 !important;
    border-radius: 25px;
    box-shadow: 2px 4px 5px #11111144;
}

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

/* ----------------------------------------------------------------- Q */

quote {
    font-family: "LeagueScript";
    margin-left: 1.4rem;
    font-size: 3em;
    width: 60rem;
    display: block;
    color: #eee;
}

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

#scroll-menu-rail {
    position: absolute;
    top: 0;
    right: 11px;
    width: 60px;
    pointer-events: none;
    z-index: 2;
}

#scroll-menu {
    position: sticky;
    right: 12px;
    top: 85px; 
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    pointer-events: auto; /* Klicks auf Striche erlauben */
}

.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: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms;
    background-color: #aaa;
    padding: 4px 8px;
    border-radius: 4px;
}

.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;
}

#scroll-percentage {
    background-color: #ffd82dcc;
    margin-left: -10px;
    top: 57px;
    /* top: 64px; */
    height: 8px;
    /* height: 1px; */
    width: 0px;
    position: fixed;
    z-index: 3;
}

.search {
    background-color: transparent;
    border: 2px solid #222;
    font-size: 21px;
    font-family: 'IBMPlexMono';
    color: #aaa;
    outline: 0px solid transparent;
    padding: 10px 15px;
    width: 98%;
}

.section {
    background-color: #18797caa;
}

.separator {
    color: #fff38a;
}

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

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

/* 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.85em;
}

/* Zellen-Styling und Trennung */
table tbody td {
    user-select: text;
    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;
}

table tbody tr {
    transition: all 300ms;
}

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

table tbody tr td {
    transition: all 300ms;
}

table tbody tr:hover td {
    color: #eee;
}

/* 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 .6rem;
    display: inline-block;
    cursor: pointer;
    transition: all 100ms;
}

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

titles {
    font-size: 3em;
}

titles code {
    background-color: #eeeeeebb;
}

tutorial {
    color: #ffe927;
    padding: .7rem;
    padding-left: .8rem;
    padding-right: .8rem;
    display: inline-block;
    cursor: pointer;
    margin-left: 1.3rem;
    border: 1px solid #ffe92722;
    transition: all 100ms;
}

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

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

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

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

.workflow {
    border: 0px solid transparent !important;
    margin-top: 1rem;
}