/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #f8f9fa, #e9ecef); /* Heller Verlauf für den Hintergrund */
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Hinzufügen eines Schattens */
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #343a40;
    color: #fff;
    padding: 15px 20px;
    overflow-x: auto;
    white-space: nowrap;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    position: relative;
    transition: color 0.3s, transform 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a i {
    transition: transform 0.3s;
}

nav a:hover i {
    transform: rotate(20deg);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 10px;
    bottom: -5px;
    right: 0;
    background: #ffffff;
    transition: width 0.3s ease, background-color 0.3s ease;
}

nav a:hover {
    color: #ffc107;
}

nav a:hover::after {
    width: 100%;
    left: 0;
    background: #ffc107;
}

.container {
    padding: 40px;
    max-width: 1200px;
    margin: 40px auto;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    animation: fadeIn 1.5s;
}

.about-section {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 10px;
}

.about-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.about-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.about-content {
    flex: 1;
}

.about-content h1 {
    color: #343a40;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.about-content h2 {
    color: #ffc107;
    margin-bottom: 20px;
    font-size: 2em;
}

.about-content p {
    color: #343a40;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.1em;
}

h2 {
    font-size: 2em;
    color: #000000;
    margin-bottom: 1em;
    font-weight: 700;
    animation: fadeInUp 1.5s;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ffc107;
    margin: 10px auto;
    border-radius: 2px;
}

p {
    font-size: 1.1em;
    margin-bottom: 1em;
    animation: fadeIn 2s;
}

.project {
    display: inline-block;
    margin: 20px;
    text-align: center;
    animation: fadeIn 2s;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

.project:hover img {
    transform: scale(1.05);
}

.project p {
    font-size: 1.2em;
    margin: 15px 0;
    color: #333;
    padding: 10px 20px;
    position: relative;
}

.project::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffc107;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project:hover::after {
    transform: scaleX(1);
}

footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffc107;
}

.footer-links i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        width: 100%;
        justify-content: center;
    }
}

footer p {
    font-size: 0.9em;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 1.2em;
    margin-bottom: 0.5em;
    color: #333;
}

.contact-form input, 
.contact-form textarea {
    padding: 0.8em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: #888;
    outline: none;
}

.contact-form input::placeholder, 
.contact-form textarea::placeholder {
    color: #999;
}

.contact-form .error {
    color: red;
    font-size: 0.9em;
    display: none;
}

.contact-form button {
    padding: 0.8em 1.5em;
    font-size: 1em;
    color: #fff;
    background-color: #343a40;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-form button:hover {
    background-color: #ffc107;
    color: #000;
}

.success-message {
    color: green;
    font-size: 1.2em;
    margin-top: 1em;
    text-align: center;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .language-container {
        margin: 10px 0;
    }

    .container {
        padding: 15px;
        margin: 15px auto;
        width: 95%;
    }

    .project {
        margin: 10px;
        width: calc(100% - 20px);
    }

    .project img {
        height: 180px;
    }

    h2 {
        font-size: 1.8em;
    }

    p {
        font-size: 1em;
    }

    .about-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .about-image {
        width: 200px;
        height: 200px;
    }

    .about-content h1 {
        font-size: 2em;
    }

    .about-content h2 {
        font-size: 1.5em;
    }

    .contact-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    nav a {
        font-size: 1em;
    }

    h2 {
        font-size: 2em;
    }

    p {
        font-size: 0.9em;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(52, 58, 64, 0.95);
    color: #fff;
    padding: 20px;
    z-index: 1000;
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cookie-button.accept {
    background-color: #28a745;
    color: white;
}

.cookie-button.decline {
    background-color: #dc3545;
    color: white;
}

.cookie-button:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Ladeanimation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background-color: #343a40;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.scroll-to-top:hover {
    background-color: #ffc107;
    transform: translateY(-3px);
}

.scroll-to-top i {
    font-size: 20px;
}

/* Sprachauswahl */
.language-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.language-flag {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    border-radius: 4px;
    display: block;
}

.language-flag:hover {
    opacity: 1;
}

.language-flag.active {
    opacity: 1;
    border: 2px solid #ffc107;
}

@media (max-width: 768px) {
    .language-container {
        margin: 10px 0;
    }
}
