/* CSS Variablen für einfache Anpassung */
:root {
    --bg-color: #1a1a1a;
    --primary-color: #2a2a2a;
    --secondary-color: #3a3a3a;
    --accent-color: #00aaff;
    --text-color: #e0e0e0;
    --header-font: 'Fira Code', monospace;
    --body-font: 'Inter', sans-serif;
}

/* Globale Stile und Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

h1, h2, h3 {
    font-family: var(--header-font);
    color: #ffffff;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; border-bottom: 2px solid var(--accent-color); display: inline-block; padding-bottom: 0.5rem; margin-bottom: 2rem;}
h3 { font-size: 1.5rem; color: var(--accent-color); }

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* Header und Navigation */
header {
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--secondary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav.logo {
    font-family: var(--header-font);
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 600;
}

.lang-switcher button {
    background: none;
    border: 1px solid var(--secondary-color);
    color: var(--text-color);
    padding: 0.3rem 0.6rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.lang-switcher button:hover,.lang-switcher button.active {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

/* Hero Sektion */
#hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

#hero.subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
}

/* Über Mich Sektion */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-content p {
    margin-bottom: 15px;
    color: var(--secondary-text-color);
}

.profile-pic-wrapper {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.profile-pic {
    width: 250px;
    height: 300px;
    border-radius: 50%;
    object-position: 50% 20%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    align-self: center;
}

/* Skills Sektion */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    background-color: var(--secondary-color);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
}

/* Portfolio Sektion */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-media {
    margin-bottom: 1rem;
}

.project-media img {
    width: 100%;
    height: auto;
    display: block;
}

.project-card p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.project-tags {
    margin-bottom: 1rem;
}

.project-tags span {
    background-color: var(--secondary-color);
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.project-links a {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.project-links a:hover {
    background-color: #0088cc;
}

/* Kontakt Sektion */
#contact {
    text-align: center;
}

#contact p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.contact-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.contact-button:hover {
    background-color: #0088cc;
    color: #ffffff;
}

.social-links a {
    margin: 0 1rem;
    font-size: 1.1rem;
}

.contact-options {
    margin-bottom: 40px;
}

.contact-options p {
    margin-top: 20px;
    color: var(--secondary-text-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--secondary-color);
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
   .about-content {
        flex-direction: column;
        text-align: center;
    }
}

.impressum-container {
    padding-top: 120px; /* Extra space because of the fixed header */
    padding-bottom: 80px;
}

.impressum-container h2 {
    text-align: left;
}

.impressum-container h2::after {
    left: 0;
    transform: translateX(0);
}

.impressum-container h3 {
    margin-top: 40px;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.impressum-container p {
    color: var(--secondary-text-color);
    max-width: 800px; /* Makes long text easier to read */
}
