:root {
    color-scheme: light dark;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #000;
}

main {
    padding: 2rem;
}

footer {
    margin-top: 2rem;
    padding: 1rem 0;
    background-color: #333;
    color: white;
}

header {
    background-color: #1e1e1e;
    color: #fff;
    padding: 15px 30px;
    font-family: Arial, sans-serif;
}

.header-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.main-nav a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #00aaff;
}

.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.social-links a img {
    width: 20px;
    height: 20px;
}

.social-links a:hover {
    color: #00aaff;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        margin-top: 10px;
    }

    .social-links {
        margin-top: 10px;
    }
}

/* Dark Mode automatisch */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #444;
        color: #fff;
    }
    header {
        background-color: #111;
    }
    .main-nav a, .social-links a {
        color: #fff;
    }
}
/* Start Seite Text */
.start-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.start {
    display: flex;
    align-items: center;
    gap: 20px;
}
.start:nth-child(even) {
    flex-direction: row-reverse;
}
.start img {
    width: 40%;
    height: auto;
    object-fit: cover;
}
.start-text {
    width: 60%;
}

/* Projekt */
.project-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.project {
    display: flex;
    align-items: center;
    gap: 20px;
}
.project:nth-child(even) {
    flex-direction: row-reverse;
}
.project img {
    width: 40%;
    height: auto;
    object-fit: cover;
}
.project-text {
    width: 60%;
}

.dark-veil {
    position: fixed;       /* immer im Hintergrund */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* halbtransparent schwarz */
    backdrop-filter: blur(10px);    /* Unschärfe-Effekt */
    z-index: 5;           /* hinter allen Inhalten */
    background: rgba(30, 30, 30, 0.6);  /* dunklerer Hintergrund */
    backdrop-filter: blur(15px);        /* stärkere Unschärfe */
  }