body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}
.container {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 300px; /* Standardbreite der aufgeklappten Seitenleiste */
    background-color: #24292e;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: width 0.3s ease, padding 0.3s ease; /* Übergang für Breite UND Padding */
}
.main-content {
    flex: 1;
    padding: 20px;
    position: relative;
    transition: margin-left 0.3s ease; /* Übergang für main-content bei Sidebar-Änderung */
}
/* Neuer CSS für die Sidebar-Header und den Toggle-Button */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; /* Abstand zum Inhalt */
}

.sidebar-header h2 {
    margin: 0; /* Standard-Margin von h2 entfernen */
    white-space: nowrap; /* Verhindert Zeilenumbruch des Titels */
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.3s ease; /* Übergang für Deckkraft UND Breite */
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease; /* Übergang für das Icon */
}

.sidebar-toggle:hover {
    color: #ccc;
}

/* Neuer CSS für den Sidebar-Inhalt */
.sidebar-content {
    overflow: hidden; /* Inhalt verbergen, wenn nicht genug Platz */
    max-height: 1000px; /* Genug Platz für den gesamten Inhalt, anpassen falls Projekte sehr lang sind */
    opacity: 1;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out; /* Sanfter Übergang für Höhe und Deckkraft */
    visibility: visible; /* Standardmäßig sichtbar */
}

/* Zustand, wenn die Seitenleiste eingeklappt ist */
.sidebar.collapsed {
    width: 60px; /* Kleinere Breite, wenn eingeklappt */
    padding: 10px; /* Weniger Padding */
}

.sidebar.collapsed .sidebar-header {
    justify-content: center; /* Button zentrieren */
}

.sidebar.collapsed .sidebar-header h2 {
    opacity: 0; /* Titel ausblenden */
    width: 0; /* Breite auf 0 setzen */
}

.sidebar.collapsed .sidebar-toggle {
    transform: rotate(180deg); /* Pfeil drehen */
}

.sidebar.collapsed .sidebar-content {
    max-height: 0; /* Höhe auf 0 setzen, um Platz zu sparen */
    opacity: 0; /* Inhalt ausblenden */
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out 0.2s, visibility 0s 0.5s;
    visibility: hidden; /* Inhalt nicht anklickbar machen, NACHDEM die Animation fertig ist */
}

/* Anpassung des Main-Content, wenn Sidebar eingeklappt ist */
.sidebar.collapsed + .main-content {
    /* margin-left: -240px; <-- Diese Zeile entfernen oder auskommentieren */
    /* Der main-content passt sich durch flex: 1; automatisch an */
}
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-tabs {
    display: flex;
    gap: 20px;
}
.nav-tab {
    color: #24292e;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}
.nav-tab:hover, .nav-tab.active {
    background-color: #f0f0f0;
}
.clock {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #24292e;
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
}
.title-container {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}
.title-moved-up {
    top: 80px;
    transform: translateX(-50%);
}
h1 {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    margin: 0;
    color: #24292e;
}
.repo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}
.repo-item {
    background-color: #2d333b;
    padding: 15px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
.repo-item:hover {
    background-color: #444c56;
}
.repo-name {
    display: flex;
    align-items: center;
    gap: 8px; 
    font-weight: bold;
    color: var(--repo-name-color);
    margin: 0;
}
.language-icon {
    font-size: 1.1em;
    vertical-align: middle;
}
.language-icon.language-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.2);
}
.readme-container, .future-projects-container {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 80px;
    display: none;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}
.error-message {
    color: #d73a49;
    font-weight: bold;
}
.project-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
}
.about-me-container {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 80px;
    display: none;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}
.project-title {
    font-size: 1.2rem;
    color: #24292e;
    margin: 0 0 10px 0;
}
.project-content {
    color: #333;
    white-space: pre-line;
}
.download-btn {
    background: #2ea44f;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.github-link {
    background: #f6f8fa;
    color: #24292e;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid #d1d5da;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.download-btn:hover {
    background: #22863a;
    transform: translateY(+2px);
}
.github-link:hover {
    border-color: #0366d6;
    transform: translateY(-2px);
}
.repo-actions {
    opacity: 0;
    height: 0;
    transition: opacity 0.3s, height 0.3s;
}
.repo-actions.visible {
    opacity: 1;
    height: auto;
    margin: 30px 0;
}
.gif1 {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 99px;
  height: 55px;
  margin: 10px;
  z-index: 100;
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        /* Für mobile Ansicht auch den toggle button nutzen */
        /* Wenn sidebar auf mobile ausgeklappt ist, soll sie sich auf die volle Breite erstrecken und der Inhalt sichtbar sein */
    }

    .sidebar.collapsed {
        height: auto; /* Höhe anpassen, damit nur Header sichtbar ist */
        width: 100%;
    }

    .sidebar.collapsed .sidebar-content {
        display: none; /* Inhalt auf Mobilgeräten komplett ausblenden */
        height: auto;
        opacity: 1; /* Transparenz zurücksetzen */
        visibility: visible; /* Sichtbarkeit zurücksetzen */
    }

    .sidebar-toggle {
        font-size: 1.2rem; /* Kleinerer Button auf Mobilgeräten */
    }

    .title-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 20px 0;
    }
    .title-moved-up {
        top: 20px;
        transform: none;
    }
    .nav-bar  {
        flex-direction: column;
        gap: 10px;
    }
    .nav-tabs {
        width: 100%;
        justify-content: space-around;
    }
    .clock {
        width: 100%;
        text-align: center;
    }
} 
