/* Grundlegendes Layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: black;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 2rem;
    background-color: #333;
    position: relative;
    flex-direction: row;
}

nav .social-icons {
    align-items: center;
    display: flex;
}

.logo {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    object-fit: contain;
}

.navbar-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    align-self: flex-end;
}

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

.navbar-links a {
    color: white;
    text-decoration: none;
    text-align: right;
}

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

/* Hauptinhalt */
main {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

section, .content {
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 1rem;
    box-sizing: border-box;
    text-align: left;
}

.content-main{
    text-align: center;
}

.content-dc{
    text-align: center;
}

section h2 {
    text-align: left;
    margin-bottom: 1rem;
}

section ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 0 auto;
    display: inline-block;
}

ul li {
    margin-bottom: 0.5rem;
}

/* Formulare */
form {
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

form input, form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    color: black;
    width: 100%;
}

body.dark form input,
body.dark form textarea {
    background-color: #1e1e1e;
    border: 1px solid #444;
    color: white;
}

form button {
    padding: 0.8rem;
    border: none;
    background-color: #333;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

form button:hover {
    background-color: #555;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 2rem 0.5rem;
    gap: 1rem;
    text-align: center;
    background-color: transparent;
    color: black;
    margin-top: auto;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
}

.footer-left p {
    margin: 0;
    order: 0;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

footer button {
    background: none;
    border: 1px solid #333;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    color: inherit;
}

/* Social Icons */
.social-icons, .footer-social {
    margin-bottom: 0.5rem;
    text-align: center;
}

.social-icons .icons,
.footer-social .icons {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.social-icons i,
.footer-social i {
    font-size: 20px;
    transition: transform 0.3s ease;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.3rem;
    border-radius: 8px;
    color: inherit;
}

.social-icons i:hover,
.footer-social i:hover {
    transform: scale(1.2);
}

body.dark .social-icons i,
body.dark .footer-social i {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Dark Mode */
body.dark {
    background-color: #121212;
    color: white;
}

body.dark nav {
    background-color: #1f1f1f;
}

body.dark .navbar-links a {
    color: #ccc;
}

body.dark :not(.social-icons i):not(.footer-social i) {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-toggle {
        display: block;
        position: absolute;
        right: 2rem;
        top: 1.2rem;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .navbar-links.active {
        display: flex;
        max-height: 500px;
        opacity: 1;
    }

    .footer-left, .footer-right {
        flex: 1 1 100%;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    footer {
        flex-direction: column;
        align-items: center;
        padding-bottom: 1rem;
    }

    .footer-left {
        flex-direction: column;
    }

    .footer-left p {
        order: 2;
        margin-top: 0.5rem;
    }

    .social-icons i,
    .footer-social i {
        font-size: 20px;
    }

    h1, h2 {
        font-size: 1.5rem;
    }

    .content {
        text-align: left;
    }
}