html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    margin: 0;
    padding: 0;
    background-color: #f3f6f9; /* Sehr helles Grau für den Hintergrund */
    color: #333; /* Dunkelgrau für den Text */
}

header {
    background-color: #003d77; /* Dunkelblau für Header */
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header p {
    margin: 0;
    font-size: 1rem;
}

nav ul {
    list-style-type: none;
    padding: 1rem 0;
    margin: 0;
    background-color: #0073b1; /* LinkedIn Blau für die Navigation */
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
    background-color: #005a9e; /* Dunkleres Blau beim Hover */
    border-radius: 5px;
}

section {
    margin: 2rem auto;
    max-width: 800px;
    padding: 1rem;
    background-color: #ffffff; /* Weißer Hintergrund für Abschnitte */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sanfter Schatten */
}

h2 {
    border-bottom: 2px solid #e2e2e2; /* Sehr helles Grau für Trennlinie */
    padding-bottom: 0.5rem;
    color: #0073b1; /* LinkedIn Blau für Überschriften */
}

#technologies h3 {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333; /* optional: etwas dunkler für Kontrast */
}

.projects {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project {
    background-color: #ffffff; /* Weißer Hintergrund für Projekte */
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    padding: 1rem;
    flex: 1 1 calc(50% - 1rem);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.project h3 {
    margin-top: 0;
}

footer {
    background-color: #003d77; /* Gleiche Farbe wie der Header für Konsistenz */
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

footer a {
    color: #0073b1; /* LinkedIn Blau für Links */
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    text-decoration: underline;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center; /* Zentriert die Items innerhalb des Containers */
}

#contact a {
    color: blue;               /* Linkfarbe */
    text-decoration: none;     /* Unterstreichung entfernen */
}

#contact a:visited {
    color: blue;               /* auch besuchte Links bleiben blau */
}

#contact a:hover {
    text-decoration: underline; /* optional: Unterstreichung nur beim Hover */
}

.tech-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: #333;
    text-align: center;
}

.tech-item i, .tech-item img {
    margin-right: 0.5rem;
    font-size: 1.2rem; /* Größere Icons für bessere Sichtbarkeit */
}

.tech-item img {
    width: 24px; /* Größe des Bildes anpassen */
    height: 24px; /* Größe des Bildes anpassen */
}


/* Icons für die verwendeten Technologien */
.fab, .fas, .devicon {
    font-size: 1.5rem; /* Größenanpassung der Icons */
}


/* Back-to-top Button Styling */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0073b1;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 50%;
    display: none; /* Standardmäßig unsichtbar */
    font-size: 24px;
    text-decoration: none;
    z-index: 100;
    transition: background-color 0.3s ease;
}

#back-to-top:hover {
    background-color: #005a9e;
}

#back-to-top i {
    pointer-events: none; /* Verhindert, dass das Icon den Klick beeinflusst */
}

/* Responsive Design für Bildschirme kleiner als 768px (Tablet und Handy) */
@media (max-width: 768px) {
    nav ul {
        padding: 1rem 0;
    }
    
    nav ul li {
        display: block; /* Die Links stehen untereinander */
        margin: 0.5rem 0;
    }
    
    nav ul li a {
        display: block; /* Links füllen die gesamte Breite */
        padding: 1rem;
    }
}
