/* Konrad Kern - Shared Styles */

/* Reset & Base */
html {
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

a {
    color: #313131;
    text-decoration: none;
}

a:hover {
    color: #000;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    padding: 20px 40px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.header-content {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 5px 20px;
}

.logo {
    grid-column: 1;
    grid-row: 1;
}

.header-content h1 {
    grid-column: 1;
    grid-row: 2;
    font-size: 11px;
    font-weight: normal;
    color: #444;
    letter-spacing: 0.5px;
}

nav {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    font-size: 13px;
    color: #444;
    padding: 5px 0;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: #000;
}

/* Main Content */
.main-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px;
    flex: 1;
}

.page-title {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 30px;
    color: #000;
}

.featured-image {
    width: 100%;
    margin-bottom: 30px;
}

.featured-image img {
    width: 100%;
    height: auto;
}

.content-text {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.content-text p {
    margin-bottom: 20px;
}

.content-text .highlight {
    font-weight: bold;
}

.content-image {
    margin: 20px 0;
}

.image-row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.image-row img {
    flex: 1;
    max-width: 300px;
}

/* Contact Box */
.contact-box {
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
}

.contact-box h4 {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 15px;
    color: #000;
}

.contact-box p {
    font-size: 13px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Services Grid (Dienstleistungen) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.service-item {
    background: #fff;
}

.service-image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
}

.service-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image:hover img {
    transform: scale(1.05);
}

.service-content h3 {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 8px;
}

.service-content h3 a {
    color: #000;
}

.service-content h3 a:hover {
    color: #444;
}

.service-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 30px 40px;
    margin-top: auto;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.footer-content a {
    color: #999;
}

.footer-content a:hover {
    color: #fff;
}

.footer-links {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #555;
}

.footer-links a {
    margin: 0 10px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .header-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
        justify-items: center;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
    }

    .header-content h1 {
        grid-column: 1;
        grid-row: 2;
    }

    nav {
        grid-column: 1;
        grid-row: 3;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .main-content {
        padding: 20px;
    }

    .featured-image {
        width: 100%;
    }

    .image-row {
        flex-direction: column;
    }

    .image-row img {
        max-width: 100%;
    }

    footer {
        padding: 30px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
