body {
    margin: 10px;
    font-family: "Avenir Next", Avenir, "Avenir Next W01", system-ui, sans-serif;
    font-size: 20px;
    max-width: 1100px;
    margin: 2em auto;
}

main {
    margin: 0 1em;
}

footer {
    display: grid;
    margin: 0 1em;
    grid-template-columns: 1fr;
}

section {
    display: grid;
    grid-template-columns: 1fr;
}

img {
    max-width: 100%;
}

img.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Common card styling */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.card:hover,
.card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.card:focus-within {
    outline: 2px solid #5a7a8a;
    outline-offset: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.service-card {
    text-align: center;
}

.service-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.service-card h4 {
    margin: 0 0 12px 0;
    font-weight: 400;
    font-size: 16px;
    color: #333;
    line-height: 1.4;
}

.service-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

img.team {
    width: 60%;
    display: block;
    border-radius: 50%;
    border: 8px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px auto 0 auto;
}


/* Typography */
h1 {
    font-size: 3rem;
    margin-top: 0;
    font-weight: lighter;
}

.tagline {
    margin-top: 0;
    font-size: 1.5em;
    font-weight: 300;
    line-height: 1.6;
}

p {
    font-weight: 300;
}

h2 {
    font-weight: lighter;
}

h2.team {
    text-align: center;
}

h3 {
    margin: 1rem 0 0 0;
    font-weight: lighter;
}

h4 {
    margin: 1rem 0 0 0;
    font-weight: lighter;
}

ul.plain {
    list-style-type: none;
    padding: 0;
    margin-top: 0;
}

.contact-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    float: left;
    margin-right: 15px;
}

/* Contact Card */
.contact-card {
    margin: 40px auto;
    max-width: 480px;
    padding: 24px;
}

.contact-card h3 {
    margin: 0 0 8px 0;
    text-align: center;
    font-weight: 400;
    color: #333;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: inherit;
    text-decoration: none;
}

.contact-item:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    opacity: 1;
}

.contact-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-value {
    font-size: 16px;
    color: #333;
}

/* Address styling */
address {
    font-style: normal;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Imprint page spacing */
#imprint h2 {
    margin-bottom: 24px;
    margin-top: 0;
}

#imprint h3 {
    margin-top: 40px;
    margin-bottom: 16px;
}

#imprint p {
    margin-bottom: 24px;
}

/* Links */
a {
    text-decoration: none;
    color: #5a7a8a;
    transition: opacity 0.2s ease;
}

a:hover,
a:focus {
    opacity: 0.8;
}

a:focus {
    outline: 2px solid #5a7a8a;
    outline-offset: 2px;
}

/* Desktop Layout */
@media screen and (width >= 700px) {
    section#team {
        margin-top: 0px;
        grid-template-columns: 1fr 1fr;
        column-gap: 40px;
    }

    section#banner {
        margin-top: 100px;
        margin-bottom: 0px;
        grid-template-columns: 1.2fr 2fr;
        column-gap: 60px;
    }

    section#contact {
        margin-bottom: 40px;
    }
    
    footer {
        margin-top: 40px;
        grid-template-columns: 1fr 1fr 1fr;
    }

    h1 {
        font-size: 3rem;
    }


    .contact-card {
        max-width: 700px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 8px;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }
}