html {
    scroll-behavior: smooth;
}

/* Allgemeine Stile */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #191641;
    color: #ffffff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #24204f;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #ffcc00;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    padding: 12px 20px;
    transition: 0.3s;
}

nav ul li a:hover {
    background-color: #ffcc00;
    color: #191641;
    border-radius: 5px;
}

.active {
    background-color: #ffcc00;
    color: #191641;
    border-radius: 5px;
}

/* Hero Sektion */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 50px;
    background-color: #24204f;
    border-radius: 30px;
    margin: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 50px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content span {
    color: #ffcc00;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 25px;
    color: #ddd;
}

.hero-image img {
    position: static;
    width: 450px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 1s ease-in-out; /* Stellt sicher, dass die Rückkehr auch smooth ist */
}

.hero-image:hover img {
    transform: scale(1.1);
}


/* Features Sektion */
.features {
    display: flex;
    justify-content: space-around;
    padding: 80px 50px;
    gap: 40px;
}

.feature-box {
    background-color: #24204f;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 30%;
    text-align: center;
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateY(-50px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.feature-box h2 {
    color: #ffcc00;
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-box p {
    font-size: 18px;
    color: #ccc;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background-color: #24204f;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    color: #ccc;
}

/* About Me */

.about {
    background-color: #191641;
    color: white;
    padding: 100px 50px;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 50px;
}

.about-text {
    max-width: 50%;
}

.about-text h2 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 15px;
}

.about-image {
    flex-shrink: 0;
    position: relative;
}

.about-image img {
    width: 450px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease-in-out;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Button Stil */
.btn {
    background-color: #ffcc00;
    color: #191641;
    padding: 14px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    transition: 0.3s;
    display: inline-block;
}

.btn:hover {
    background-color: #e6b800;
    transform: scale(1.05);
}

/* Kontakt Sektion */
/* Kontakt Sektion */
.contact {
    text-align: center;
    padding: 60px 20px;
    background-color: #191641;
    color: white;
}

.contact-container {
    max-width: 800px;
    margin: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    text-align: center;
    min-width: 250px; /* Fix für zu schmale Boxen */
    flex: 1; /* Stellt sicher, dass die Boxen gleichmäßig verteilt sind */
    max-width: 350px; /* Maximale Breite für jede Box */
    margin: 10px; /* Etwas Abstand zwischen den Boxen */
}

.contact-item:hover {
    transform: scale(1.05);
}

.contact a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
    display: block; /* Links untereinander */
    margin-top: 5px;
}

.contact a:hover {
    text-decoration: underline;
}

.contact-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

/* Fix für mobile Ansicht */
@media (max-width: 600px) {
    .contact-info {
        flex-direction: column;
        text-align: center;
    }

    .contact-item {
        width: 100%; /* Boxen sollen sich über die ganze Breite strecken */
        margin: 10px 0; /* Abstand zwischen den Boxen in der mobilen Ansicht */
    }
}
