/* ===== Reset ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Basis ===== */

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

a {
    color: #4e7394;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Layout ===== */

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 40px;
}

/* ===== Header ===== */

.header {
    max-width: 1000px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: center;
}

.logo {
    width: 220px;
    margin: 0 auto;
}

.header-content {
    text-align: center;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.claim {
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 20px;
}

.intro-text {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* ===== Leistungen ===== */

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 40px;
}

.service {
    text-align: center;
    padding: 10px;
}

.service-icon {
    width: 180px;
    margin: 0 auto 10px;
}

.service h2 {
    color: #4e7394;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.service p {
    margin-bottom: 10px;
}

.service ul {
    list-style: none;
}

.service li {
    margin-bottom: 4px;
}

/* ===== Kontakt ===== */

.contact {
    max-width: 1200px;
    margin: 0 auto;
    background: #f5f7f9;
    border-radius: 10px;
    text-align: center;
    padding: 30px 20px;
}

.contact h2 {
    color: #4e7394;
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact p {
    margin-bottom: 15px;
}

.contact-links {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ===== Footer ===== */

.footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.footer span {
    margin: 0 10px;
    color: #999;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {

    .header {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .header-content {
        text-align: center;
    }

    .logo {
        width: 140px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .claim {
        font-size: 1.1rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .services {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer button {
    border: 0;
    background: none;
    color: #4e7394;
    font: inherit;
    cursor: pointer;
}

.footer button:hover {
    text-decoration: underline;
}

.modal {
    width: min(800px, 92vw);
    max-height: 85vh;
    padding: 0;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    overflow: hidden;
}
.modal[open] {
    display: flex;
    flex-direction: column;
}

.modal-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 18px 60px 18px 28px;
    border-bottom: 1px solid #ddd;
    z-index: 2;
}

.modal-header h2 {
    margin: 0;
    color: #4e7394;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    border: 0;
    background: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 28px;
}

.modal::backdrop {
    background: rgba(0,0,0,.45);
}
@media (max-width: 600px) {

    .page {
        padding: 20px 15px 30px;
    }

    .header h1 {
        font-size: 1.7rem;
    }

    .contact {
        padding: 25px 15px;
    }
}