
/* MALER GERI – DIGITALER GEBÄUDE-PASS */

:root {
    --navy: #102b4c;
    --blue: #1765a7;
    --lightblue: #eaf3fb;
    --orange: #f4a52c;
    --background: #f3f6fa;
    --white: #ffffff;
    --text: #203247;
    --muted: #68798c;
    --border: #dce5ee;
    --shadow: 0 8px 30px rgba(16,43,76,.07);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* Firmenkopf */

header {
    background: var(--white);
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    border-bottom: 4px solid var(--orange);
    box-shadow: var(--shadow);
}

header .brand-logo {
    display: block;
    width: min(100%, 270px);
    height: auto;
    object-fit: contain;
}

header strong {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 1px;
}

header span {
    font-size: 15px;
    color: var(--blue);
    font-weight: 600;
    letter-spacing: .6px;
}

/* Hauptbereich */

main {
    max-width: 1180px;
    margin: 35px auto;
    padding: 0 24px;
    min-height: 60vh;
}

h1 {
    color: var(--navy);
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    margin: 0 0 25px;
    letter-spacing: -.6px;
}

h2 {
    color: var(--navy);
    font-size: 22px;
    margin: 30px 0 18px;
}

p {
    color: var(--muted);
}

/* Navigation */

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 13px;
    background: var(--navy);
    border-radius: 15px;
    margin-bottom: 35px;
    box-shadow: var(--shadow);
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 17px;
    border-radius: 9px;
    font-weight: 600;
    transition: .2s ease;
}

nav a:hover,
nav a:focus-visible {
    background: var(--blue);
    color: #ffffff;
}

nav form {
    margin: 0 0 0 auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

nav button {
    background: #ffffff;
    color: var(--navy);
    border: 0;
    padding: 10px 18px;
}

nav button:hover {
    background: var(--orange);
    color: var(--navy);
}

/* Gebäudekarten */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 22px 0 35px;
}

article {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    transition: transform .2s ease, box-shadow .2s ease;
}

article:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16,43,76,.11);
}

article h2 {
    margin: 8px 0;
    font-size: 21px;
}

article strong {
    color: var(--navy);
    font-size: 18px;
}

article small {
    display: inline-block;
    color: var(--blue);
    background: var(--lightblue);
    padding: 5px 12px;
    border-radius: 30px;
    font-weight: 700;
}

article p {
    margin: 12px 0;
    overflow-wrap: anywhere;
}

article a {
    display: inline-block;
    margin: 5px 8px 5px 0;
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

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

/* Formulare */

main > form,
main > form:not(nav form) {
    background: var(--white);
    padding: 30px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin: 25px 0;
}

form h2 {
    margin-top: 0;
}

label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 18px;
}

input,
textarea,
select {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 13px 15px;
    border: 1px solid #ccd8e4;
    border-radius: 10px;
    background: #fbfdff;
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--blue);
    outline-offset: 1px;
    border-color: var(--blue);
    background: white;
}

input[type="file"] {
    padding: 12px;
    background: var(--lightblue);
}

button {
    display: inline-block;
    padding: 13px 23px;
    background: var(--blue);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

button:hover {
    background: var(--navy);
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

/* Hinweise */

.notice {
    background: #fff5e4;
    border-left: 4px solid var(--orange);
    padding: 18px;
    border-radius: 10px;
    margin: 20px 0;
}

/* Fotogalerie – vollständige Bilder */

.photo-gallery img,
.photo-card img,
.gallery img,
article img:not(.brand-logo) {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    background: #edf2f7;
}

/* Verhindert Abschneiden in Bildkarten */

.photo-gallery,
.photo-card,
.gallery {
    min-width: 0;
}

.photo-gallery a img,
.photo-card a img,
.gallery a img {
    object-fit: contain;
}

/* Footer */

footer {
    background: var(--navy);
    color: #ffffff;
    text-align: center;
    padding: 25px 15px;
    margin-top: 55px;
    font-size: 14px;
}

/* Mobilgeräte */

@media (max-width: 700px) {
    header {
        padding: 18px 15px;
    }

    header .brand-logo {
        width: min(100%, 210px);
    }

    main {
        margin: 20px auto;
        padding: 0 15px;
    }

    nav {
        gap: 6px;
        border-radius: 12px;
    }

    nav a {
        padding: 9px 12px;
        font-size: 14px;
    }

    nav form {
        margin: 5px 0 0;
        width: 100%;
    }

    nav button {
        width: 100%;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    main > form {
        padding: 20px;
    }

    article {
        padding: 20px;
    }

    .photo-gallery img,
    .photo-card img,
    .gallery img,
    article img:not(.brand-logo) {
        height: 220px;
    }
}
