/* Grundlegende Basiseinstellungen */
html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0 auto;
    max-width: 900px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #0d1b2a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-color: #f4f4f4;
}

/* Versteckte Elemente für Screenreader und Skip-Links */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    color: #0a3871;
    border-radius: 4px;
    text-decoration: none;
    z-index: 1000;
}

/* Kopfbereich */
.site-header {
    position: static;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    color: #ffffff;
    text-align: center;
    padding: 0;
    /* background-image: url('backround_header.jpg'); */
    left: 0;
    border-left-width: 0;
    border-bottom-width: 0px;
    border-bottom-right-radius: 0px;
    border-right-width: 0;
    border-top-width: 0px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    top: 0px;
    bottom: 0px;
    right: 0px;
    flex-shrink: -0;
    flex-grow: 0;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-color: #f4f4f4;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    display: flex;

    /* Flexbox aktivieren */
    justify-content: center;

    /* horizontal zentrieren */
    align-items: center;

    /* vertikal zentrieren */
    height: 100%;
}

/* Alle Bilder im Header & Footer proportional */
.site-header img,
.site-footer img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Logo als Bild */
.site-header .logo {
    max-width: 200px;

    /* Desktop maximale Größe */
}

/* Tagline Text neben Logo */
.tagline {
    margin: 0;
    font-size: clamp(0.9rem, 3vw, 1.3rem);
    font-weight: 400;
    line-height: 1.2;
    color: #02172e;
    margin-left: 1rem;

    /* Abstand zwischen Logo und Tagline */
}

/* Hauptinhalt */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: #ffffff;
}

.main-content section {
    margin-bottom: 3rem;
}

.main-content h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-bottom: 1rem;
    color: #000000;
    border-left: 4px solid #000000;
    padding-left: 0.5rem;
}

.intro p {
    font-size: 1.125rem;
}

.prices p,
.examples p,
.contact p {
    font-size: 1rem;
}

/* Liste der Beispiele */
.examples ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.examples li {
    margin-bottom: 0.5rem;
}

.examples a {
    color: #000000;
    font-weight: 500;
}

.examples a:hover,
.examples a:focus {
    text-decoration: underline;
}

/* Kontaktbereich */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0a3871;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid transparent;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.contact-link svg {
    flex-shrink: 0;
}

.contact-link:hover,
.contact-link:focus {
    color: #ffffff;
    background-color: #296fa8;
    text-decoration: none;
}

@media (min-width: 600px) {
    .contact-options {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .contact-link {
        flex: 0 1 auto;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 600px;
}

.contact-form input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccdff8;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #0d1b2a;
}

.contact-form input:focus {
    outline: none;
    border-color: #296fa8;
    box-shadow: 0 0 0 3px rgba(41, 111, 168, 0.25);
}

.contact-form button {
    padding: 0.6rem 1rem;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.contact-form button:hover,
.contact-form button:focus {
    background-color: #296fa8;
}

.form-message {
    margin-top: 1rem;
    font-weight: 500;
}

.form-message.success {
    color: #007c0e;
}

.form-message.error {
    color: #c7002f;
}

/* Overlay für Rückmeldungen nach AJAX-Formularversand */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #02172e;
    text-align: center;
}

#overlay-close {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #0a3871;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

#overlay-close:hover,
#overlay-close:focus {
    background-color: #296fa8;
}

/* Fußzeile */
.site-footer {
    /* background-image: url('footer_landscape.jpg'); */

    /* Landschaftsbild */
    background-size: cover;
    background-position: center;

    /* Standard */
    background-repeat: no-repeat;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Footer Text */
.site-footer p {
    margin: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0);
}

.site-footer a {
    text-decoration: underline;
}

.site-footer a:hover,
.site-footer a:focus {
    text-decoration: underline;
}

/* Logo & Bilder responsive */
@media (max-width: 600px) {
    .site-header .logo {
        max-width: 100px;

        /* kleine Handys */
    }

    .site-footer {
        background-position: left center;
        min-height: 200px;

        /* ausreichend Höhe für Fokus links */
    }
}

@media (max-width: 400px) {
    .site-header .logo {
        max-width: 80px;

        /* winzige Geräte */
    }

    .site-footer {
        background-position: left top;

        /* links-oben */
        min-height: 220px;
    }
}

@media (max-width: 350px) {
    .header-content {
        flex-direction: column;

        /* Logo und Tagline untereinander */
        align-items: center;
    }

    .tagline {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
        font-size: clamp(0.8rem, 4vw, 1rem);
    }

    .site-header .logo {
        max-width: 70px;
    }

    .site-footer {
        background-position: left top;

        /* ganz links oben */
        min-height: 250px;

        /* maximal Höhe auf winzigen Screens */
    }
}
