/* ======== Farbvariablen ======== */
:root {
    --primary-color: rgba(36,53,110,.95);
    --secondary-color: rgba(22, 35, 77, 0.95);
    --text-color: #333;
    --background-color: #f9f9f9;
    --white: #ffffff;
}

/* ======== Global Styles ======== */
html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

/* ======== Header & Navigation ======== */
header {
    background: var(--white);
    padding: 8px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

header h1 {
    font-size: 25px;
    margin: 0 10px;
    text-align: left;
}

nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 5px;
}

.nav-item {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    padding: 6px 10px;
    font-size: 13px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-item:hover,
.nav-item.active {
    background: var(--primary-color);
    color: var(--white);
}

/* ======== Footer ======== */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    width: 100%;
}

footer a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

footer a:visited {
    color: var(--white);
}

footer a:hover {
    text-decoration: underline;
}

/* ======== Hero Section ======== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5%;
    flex-wrap: wrap;
}

.hero .text {
    width: 50%;
    max-width: 600px;
    padding-right: 20px;
}

.hero .image {
    width: 45%;
    max-width: 400px;
}

.hero img {
    width: 100%;
    border-radius: 10px;
}

/* ======== Leistungen ======== */
.leistungen {
    text-align: center;
    padding: 60px 5%;
}

.leistungen h2,
.kontakt h2,
.ueber-uns h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.leistungen-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.leistungen-box {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 280px;
    transition: transform 0.3s, background 0.3s;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100px;
}

.leistungen-box:hover {
    transform: translateY(-5px);
}

/* ======== Kontakt ======== */
.kontakt {
    text-align: center;
    padding: 60px 5%;
}

.kontakt-box {
    background: var(--white);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

/* ======== CTA Button ======== */
.cta-button {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* ======== Über uns ======== */
.ueber-uns {
    text-align: center;
    padding: 60px 5%;
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.person-box {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 45%;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.person-box:hover {
    transform: translateY(-5px);
}

.person-box img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.person-text {
    text-align: left;
}

/* ======== Mobile Optimierung ======== */
@media (max-width: 768px) {
    header {
        padding: 8px 0;
    }

    header h1 {
        text-align: center !important;
        margin-left: 0 !important;
    }

    .nav-item {
        padding: 6px 10px;
        font-size: 12px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero .text,
    .hero .image {
        width: 90%;
        padding: 0;
    }

    .hero .image {
        margin-top: 20px;
    }

    .cta-button {
        padding: 10px 18px;
        font-size: 14px;
    }

    .person-box {
        flex-direction: column;
        width: 90%;
        text-align: center;
    }

    .leistungen-box {
        width: 90%;
    }
}