/* -------------------------
   Grundlayout & Farben
------------------------- */

:root {
    --primary: #1e6fb8;       /* kräftiges Handwerker-Blau */
    --primary-dark: #155387;
    --accent: #f2c94c;        /* warmes Gelb */
    --background: #f7f7f7;    /* helles Grau */
    --text: #333333;
    --white: #ffffff;
}

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

/* -------------------------
   Header & Navigation
------------------------- */

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 40px;
    background: var(--white);
    border-bottom: 4px solid var(--primary);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 200;
    box-sizing: border-box;
}

header img {
    height: 60px;
    margin-right: 35px;
}

nav {
    flex-grow: 1;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0;
    margin: 0 auto;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    padding: 6px 4px;
    transition: 0.2s ease;
}

nav a:hover {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
}

/* -------------------------
   Content Abstände
------------------------- */

.content, .hero {
    padding-top: 140px;
}

/* -------------------------
   Hero-Bereich (Startseite)
------------------------- */

.hero {
    height: 31vh;
    background: linear-gradient(135deg, var(--white), #e3edf3);
    display: flex;
    justify-content: center; /* zentriert wirklich vertikal */
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 100px;   /* Abstand nach oben wegen Header */
    padding-bottom: 5px; /* deutlich kleinerer Abstand */
    padding-left: 20px;
    padding-right: 20px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
}


/* -------------------------
   Allgemeiner Content
------------------------- */

.content {
    padding: 40px;
    max-width: 1000px;
    margin: auto;
}

.content h1, .content h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

/* -------------------------
   Kontaktformular
------------------------- */

.contact-form {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-left: 6px solid var(--primary);
}

.contact-form label {
    font-weight: 600;
    color: var(--primary-dark);
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #cfcfcf;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 3px var(--primary);
}

.contact-form button {
    background: var(--primary);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    transition: 0.2s;
}

.contact-form button:hover {
    background: var(--primary-dark);
}

/* Checkbox */
.contact-form .checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form .checkbox input {
    width: 18px;
    height: 18px;
}

/* -------------------------
   Footer
------------------------- */

footer {
    text-align: center;
    padding: 20px;
    background: var(--white);
    margin-top: 40px;
    border-top: 3px solid var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
}

/* -------------------------
   Responsive Breakpoints
------------------------- */

/* Tablet */
@media (max-width: 900px) {
    nav ul {
        gap: 18px;
    }
}

/* Smartphone */
@media (max-width: 600px) {

    header {
        flex-direction: column;
        padding: 15px 20px;
    }

    header img {
        height: 50px;
        margin-bottom: 10px;
    }

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

    .hero h1 {
        font-size: 2.2rem;
    }

    .content {
        padding: 20px;
    }
}
