﻿.back-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.4); /* halbtransparent schwarz */
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 22px;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.scrollable-container {
    overflow-y: auto;
    height: 95vh;
    margin-right: 0px !important;
    margin-left: 0px !important;
    max-width: unset !important;
}

.scrollable-container::-webkit-scrollbar {
    width: 2px; /* Breite der Scrollbar */
}

.scrollable-container::-webkit-scrollbar-thumb {
    background-color: #4C00A3; /* Farbe des Scrollbar-Schiebereglers */
    border-radius: 4px; /* Abrundung der Ecken */
}

.project-page__image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 500px; /* Höhe anpassen nach Wunsch */
    overflow: hidden; /* Verhindert, dass das Bild über den Container hinausgeht */
    border-radius: 25px;
}

.project-page__image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Skaliert das Bild und cropped es, um den Container auszufüllen */
    display: block;
}


.project-page__name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Work Sans', sans-serif;
    font-style: italic;
    font-size: 3rem;
    color: white;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9); /* Schatten für bessere Lesbarkeit */
}

.project-page__metadata {
    display: flex;
    justify-content: center; /* Verteilung über die gesamte Breite */
    align-items: center;
    flex-wrap: wrap; /* Falls es zu breit wird, neue Zeile */
    padding: 30px;
    border-radius: 20px;
}

.project-page__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: black;
    font-family: 'Quattrocento Sans';
    text-align: center;
    background: white; /* Hintergrund */
    padding: 20px 24px;
    border-radius: 25px; /* Starke Abrundung */
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
    margin: 0px 25px;
}

.project-page__item p{
    margin-bottom: 0px;
}

.project-page__icon {
    width: 32px;
    height: 32px;
}

.project-page__technology {
    width: 32px !important;
    height: 32px !important;
}

.project-article {
    margin: 20px
}

.project-article-codeblock,
.project-article-imageblock
{
    background-color: #221E27;
    border: 20px solid #221E27;
    border-radius: 20px;
}

.project-article-textblock{
    margin: 20px;
}

.project-article:nth-child(odd){
    margin-right: 50px;
}

.project-article:nth-child(even) {
    margin-left: 50px;
}

.project-article__headline {
    text-transform: uppercase; /* Umwandlung der Schrift in Großbuchstaben */
    color: white; /* Weiße Schriftfarbe */
    display: inline-block; /* Damit die Linie nur unter dem Text ist */
    padding-bottom: 10px; /* Abstand zwischen Text und Linie */
    margin-bottom: 20px; /* Abstand zur nächsten Karte */
    position: relative; /* Notwendig, um die Linie relativ zum Text zu positionieren */
    font-family: 'Quattrocento Sans';
}

    .project-article__headline::after {
        content: ''; /* Fügt ein leeres Element nach der Überschrift hinzu */
        position: absolute; /* Absolute Positionierung relative zur Überschrift */
        left: 0; /* Linie startet am linken Rand der Überschrift */
        bottom: 0; /* Linie kommt direkt unter der Überschrift */
        width: 100%; /* Linie geht über die gesamte Breite des Textes */
        border-bottom: 2px solid #FFCA0D; /* Dicker unterer Rand */
    }

.project-article__text {
    font-family: 'Hind';
}

.project-article__code pre {
    background-color: #322E37; /* dunkler Hintergrund */
    color: #abb2bf; /* helle Schriftfarbe */
    padding: 1rem;
    border-radius: 15px;
    overflow-x: auto; /* Scrollen bei zu langem Code */
}

.project-article__description 
{
    color: #524E57;
    font-size: 14pt;
}

.project-article__image
{
    /*object-fit: cover;*/ /* Skaliert das Bild und schneidet es zu, um den Container auszufüllen */
    display: block;
    max-width: 100%;
    max-height: 500px; /* Passe diesen Wert nach Bedarf an */
    height: auto;
    width: auto;
    margin: 0 auto;
}

.to-top-button-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.to-top-button-wrapper button {
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
}
