/* =========================================
   1. FONTS & GLOBALS
   ========================================= */
@font-face {
    font-family: "GeistMono";
    font-style: normal;
    font-weight: 300;
    src: url("/portfolio/assets/font/GeistMono-Light.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "GeistMono";
    font-style: normal;
    font-weight: 400;
    src: url("/portfolio/assets/font/GeistMono-Regular.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "GeistMono";
    font-style: normal;
    font-weight: 500;
    src: url("/portfolio/assets/font/GeistMono-Medium.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "GeistMono";
    font-style: normal;
    font-weight: 600;
    src: url("/portfolio/assets/font/GeistMono-SemiBold.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "GeistMono";
    font-style: normal;
    font-weight: 700;
    src: url("/portfolio/assets/font/GeistMono-Bold.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "GeistMono";
    font-style: normal;
    font-weight: 800;
    src: url("/portfolio/assets/font/GeistMono-ExtraBold.ttf") format("truetype");
    font-display: swap;
}

html {
    scroll-padding-top: 130px;
}

body {
    background-color: #222121;
    color: #dddddd;
    font-family: "GeistMono", monospace;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

h1 {
    font-size: 65px;
    font-weight: 800;
}

h2 {
    font-size: 45px;
    font-weight: 700;
}

.secondary {
    display: inline;
    color: #ab00bc;
}

p {
    display: inline;
}

/* =========================================
   2. NAVIGATION
   ========================================= */
nav {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 20px;
    z-index: 9999;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0.3rem;
    gap: 1rem;
    display: flex;
    background: rgba(221, 221, 221, 0.15);
    border-radius: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.1px);
    -webkit-backdrop-filter: blur(6.1px);
}

nav li {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #dddddd;
    font-weight: 600;
    background-color: transparent;
    border-radius: 50%;
    transition: all 0.5s;
}

nav a:hover {
    color: #dddddd;
    background-color: #ab00bc;
    border-radius: 50%;
}

nav a:focus,
nav a.active {
    background-color: #ab00bc;
    border-radius: 50%;
}

.nav-link {
    display: flex;
    padding: 0;
}

.nav-icon {
    filter: brightness(0) saturate(100%) invert(97%) sepia(0%) saturate(2500%) hue-rotate(263deg) brightness(117%) contrast(73%);
}

/* =========================================
   3. LAYOUT & SECTIONS
   ========================================= */
.content {
    width: 60%;
    margin: auto;
    padding-top: 60px;
}

.content-container {
    width: 100%;
    height: auto;
    padding-top: 5%;
}

.lines {
    width: 5vw;
    height: 5vw;
    border: 5px dotted #ab00bc;
    border-radius: 50%;
    background: transparent;
    box-sizing: border-box;
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.section {
    min-height: 100vh;
    scroll-snap-type: y mandatory;
}

.section.tool {
    min-height: 50vh !important;
    scroll-snap-type: y mandatory;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
    background-color: #222121;
    padding-top: 8%;
}

/* Media Queries Layout */
@media screen and (max-width: 1200px) {
    .sidebar {
        position: static;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        background-color: #222121;
        padding-top: 8%;
        margin-bottom: 200px;
    }
    .lines {
        display: none;
    }
    h1 {
        font-size: 45px;
        font-weight: 800;
    }
    h2 {
        font-size: 25px;
        font-weight: 700;
    }
    .content-container {
        width: 60%;
        margin: auto;
    }
    .section {
        min-height: 50vh;
    }
}

@media screen and (max-width: 600px) {
    .content-container {
        width: 80%;
        margin: auto;
    }
}

/* =========================================
   4. PROFILE & SIDEBAR ELEMENTS
   ========================================= */
.portrait-container {
    position: relative;
    width: 300px;
    height: 400px;
}

.portrait-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lines.bottom-right {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 5vw;
    height: 5vw;
    border: 5px dotted #ab00bc;
    border-radius: 50%;
    background: transparent;
    box-sizing: border-box;
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.lines.top-left {
    position: absolute;
    left: -25px;
    top: -25px;
    width: 10vw;
    height: 10vw;
    border: 5px dotted #ab00bc;
    border-radius: 50%;
    background: transparent;
    box-sizing: border-box;
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.profile-list {
    list-style: none;
    margin-top: 20px;
    padding: 0.3rem;
    gap: 1rem;
    display: flex;
}

.profile-list li {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.profile-link:hover {
    color: #dddddd;
    border-radius: 50%;
}

.profile-icon {
    filter: brightness(0) saturate(100%) invert(17%) sepia(87%) saturate(4037%) hue-rotate(288deg) brightness(81%) contrast(121%);
}

.profile-icon:hover {
    filter: brightness(0) saturate(100%) invert(89%) sepia(2%) saturate(0%) hue-rotate(132deg) brightness(96%) contrast(104%);
}

/* =========================================
   5. LOADER
   ========================================= */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #222121;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ab00bc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#content {
    opacity: 0;
}

/* =========================================
   6. FILTER BUTTONS (NEU & ANGEPASST)
   ========================================= */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #ab00bc; /* Lila Border */
    background: transparent;
    color: #dddddd; /* Helle Schrift */
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.filter-btn:hover, 
.filter-btn.active {
    background: #ab00bc; /* Lila Hintergrund aktiv */
    color: #fff;
    border-color: #ab00bc;
}

/* =========================================
   7. PROJECT CARDS & GRID
   ========================================= */

/* Zum Ausblenden der Items beim Filtern */
.project-item.hide {
    display: none !important;
}

/* Animation beim Einblenden */
.project-item {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* 1. DAS GRID (Damit sie nebeneinander stehen) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Genau 2 Spalten */
    gap: 30px; /* Abstand dazwischen */
    padding: 20px 0;
}

/* Auf Handy untereinander */
@media screen and (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* 2. DIE KARTE (Container) */
.project-card {
    /* Layout */
    display: flex;
    flex-direction: column; /* Bild oben, Text unten */
    height: 100%; /* Füllt die ganze Grid-Zelle aus */
    
    /* Optik */
    background-color: #2a2a2a; /* Etwas heller als Background für Kontrast */
    border: 1px solid #ab00bc;
    border-radius: 30px;
    overflow: hidden; /* WICHTIG: Damit das Bild die runden Ecken nicht überlappt */
    padding: 0; /* WICHTIG: Kein Padding, damit Bild randlos ist */
    
    /* Animation */
    text-decoration: none; /* Unterstrich bei Links weg */
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(171, 0, 188, 0.2);
}

/* 3. DAS BILD (Oben) */
.card-thumb {
    width: 100%;
    height: 250px; /* FESTE HÖHE: Damit alle Bilder gleich hoch sind */
    object-fit: cover; /* Schneidet Bild zu statt es zu verzerren */
    border-bottom: 1px solid #ab00bc; /* Trennlinie zum Text */
    display: block;
}

/* 4. DER INHALT (Unten) */
/* Wir brauchen einen Wrapper für den Text, damit der Padding hat */
.card-body {
    padding: 25px; /* Hier ist der Abstand für den Text */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Drückt den Footer nach unten, falls Text kurz ist */
}

.card-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.card-desc {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* 5. TAGS & ICONS */
.card-tags {
    margin-top: auto; /* Schiebt Tags ganz nach unten */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.card-tags span {
    font-size: 0.8rem;
    color: #ab00bc;
    background: rgba(171, 0, 188, 0.1);
    padding: 4px 10px;
    border-radius: 15px;
}
/* Icons in der Karte (HTML, CSS etc.) */
.technology-button {
    padding: 5px;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 5px;
}

.technology-icon {
    width: 32px;
    height: 32px;
}

/* =========================================
   8. TOOLS / KENNTNISSE
   ========================================= */
.tools-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}
.tools-icon svg {
    width: 100%;
    max-width: 64px;
    height: auto;
}

/* =========================================
   9. TIMELINE
   ========================================= */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ab00bc;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 30px;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 0;
    width: 16px;
    height: 16px;
    background: #ab00bc;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #ab00bc;
}

.timeline-date {
    color: #ab00bc;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content {
    background: #333232;
    padding: 20px;
    border-radius: 12px;
    border-left: 3px solid #ab00bc;
    transition: transform 0.2s;
    overflow-wrap: break-word;
    white-space: normal; 
}

.timeline-content:hover {
    transform: translateX(5px);
}

.timeline-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ddd;
}

.timeline-description {
    color: #ddd;
    line-height: 1.6;
}

.btn {
    background-color: #222121;
    color: #ab00bc !important;
    padding: 10px 15px;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.2s ease;
    border: 1px solid #ab00bc;
	width: fit-content;
}

.btn:hover {
    background-color: #ab00bc;
    color: #222121 !important;
}

/* =========================================
   10. FORMULARE
   ========================================= */
.form-btn {
    background-color: #222121;
    color: #ddd !important;
    padding: 10px 15px;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.2s ease;
    border: 1px solid #ddd;
}

.form-btn:hover {
    background-color: #ddd;
    color: #222121 !important;
    border: 1px solid #222121;
}

.success {
    color: #28a745; 
}

.success-container {
    height: calc(90vh - 60px);
    width: 80%;
    margin: auto;
    margin-top: 10vh;
}

.formular input, textarea {
    min-height: 46px;
    border: 1px solid #ddd;
    background: #222121;
    color: #ab00bc;
    margin-bottom: 20px;
    padding: 10px 15px;
    border-radius: 30px;
    width: 100%;
}

.form-message {
    min-height: 100px !important;
    overflow-y: hidden;
}

.form-container {
    margin: auto;
    margin-top: 20px;
}

/* =========================================
   11. FOOTER & EXTRAS
   ========================================= */
.impressum {
    width: 80%;
    margin: auto;
}

.footer {
    background: #222121;
    color: #ddd;
    padding: 20px 0;
}

.footer .container {
    display: flex;
    justify-content: flex-end;
}

.footer-content {
    text-align: right;
}

.footer-content img {
    width: 120px;
    height: 40px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    margin-left: 20px;
}

.footer-link:hover {
    color: ab00bc;
}

.impressum a {
    color: #ab00bc;
}

.back-btn {
    background-color: #ddd;
    color: #222121 !important;
    padding: 10px 15px;
    text-decoration: none;
    margin-top: 200px;
    display: inline-block;
    border-radius: 30px;
}

/* =========================================
   12. PROJEKT DETAIL SEITEN
   ========================================= */
.project-container {
    padding-top: 80px;
    width: 70%;
    margin: auto;
}

.carousel {
    margin: 40px 0px;
}

.carousel-inner img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
}

@media screen and (max-width: 1200px) {
    .carousel-inner img {
        height: 40vh;       
    }
}

@media screen and (max-width: 768px) {
    .carousel-inner img {
        height: 30vh;
    }
}

@media screen and (max-width: 480px) {
    .carousel-inner img {
        height: 20vh;
    }
}

.back-btn-project {
    margin-top: 0px;
    margin-bottom: 60px;
}

.description-project {
    margin-bottom: 20px;
}

.project-link {
    color: #ddd;
    text-decoration: none;
}

.project-link:hover {
    color: #ddd;
}

.btn-support {
    background-color: #ab00bc;
    padding: 10px 15px;
    color: #ddd;
}

/* Grid System für 2 Spalten */
.portfolio-grid {
    display: grid;
    /* repeat(2, 1fr) bedeutet: Mache genau 2 Spalten, die gleich groß sind */
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; /* Abstand zwischen den Karten */
    padding: 20px 0;
}

/* WICHTIG: Damit es auf dem Handy nicht zu gequetscht aussieht */
@media screen and (max-width: 768px) {
    .portfolio-grid {
        /* Auf kleinen Handys lieber untereinander (1 Spalte) */
        grid-template-columns: 1fr; 
    }
}
/* Diese Klasse blendet Elemente aus, wenn sie nicht zum Filter passen */
.project-card.hide {
    display: none !important; /* !important überschreibt andere Display-Regeln */
}

/* --- Icons in den Filter Buttons --- */
.btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

/* Flexbox für den Button, damit Icon & Text mittig sind */
.filter-btn {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
}

/* --- Icons in den Projekt-Karten (unten) --- */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.tag-wrapper {
    display: inline-flex;
    align-items: center;
    background: rgba(171, 0, 188, 0.1); /* Dein Lila, leicht transparent */
    padding: 4px 10px;
    border-radius: 15px;
}

.tag-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    object-fit: contain;
}

.card-tags span {
    font-size: 0.8rem;
    color: #ab00bc;
}