/* =========================
   Grundlagen
   ========================= */

:root {
    --hintergrund: #f5f5f2;
    --header-footer: #e3e3de;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
    background: #fff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    width: 100%;
}

section {
    width: 100%;
    padding: 80px 24px;
}

.section-content {
    max-width: 1100px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h2 {
    margin-top: 0;
}


/* =========================
   Header
   ========================= */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    padding: 20px max(24px, calc((100% - 1100px) / 2 + 24px));

    background: var(--header-footer);
    border-bottom: 1px solid #ddd;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

nav a {
    font-size: 1rem;
}

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

.button {
    display: inline-block;
    padding: 10px 20px;

    border-radius: 6px;

    background: #2f4f5f;
    color: #fff;

    font-weight: 600;
}

.button:hover {
    background: #243d4a;
}

a:focus-visible {
    outline: 2px solid #2f4f5f;
    outline-offset: 4px;
}


/* =========================
   Hero
   ========================= */

#hero {
    min-height: 70vh;
    background: var(--hintergrund);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
}

.eyebrow {
    margin-bottom: 12px;

    font-size: 1rem;
    font-weight: 600;
}

#hero h1 {
    margin: 0 0 24px;

    font-size: 3.5rem;
}

.hero-text {
    margin: 0 0 30px;

    font-size: 1.2rem;
}


/* Über mich */

#ueber-mich .section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.ueber-mich-inhalt {
    display: flex;
    align-items: center;
    gap: 60px;
}

.ueber-mich-bild {
    flex: 0 0 320px;
}

.ueber-mich-bild img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.ueber-mich-text {
    flex: 1;
}

#ueber-mich h2 {
    margin-top: 0;
    margin-bottom: 40px;
}

.ueber-mich-text p {
    margin: 0 0 20px;
}

.ueber-mich-text p:last-child {
    margin-bottom: 0;
}


/* =========================
   Ablauf
   ========================= */

#ablauf {
    background: var(--hintergrund);
}

#ablauf .section-content {
    max-width: 700px;
    margin: 0 auto;
}

#ablauf h2 {
    margin-bottom: 40px;
}

.ablauf-schritt {
    margin-bottom: 40px;
}

.ablauf-schritt:last-child {
    margin-bottom: 0;
}

.ablauf-nummer {
    display: block;
    margin-bottom: 8px;

    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.ablauf-schritt h3 {
    margin: 0 0 12px;
    font-size: 1.4rem;
}


/* =========================
   Preise
   ========================= */

#preise {
    text-align: center;
}

#preise h2 {
    margin-bottom: 30px;
}

#preise p {
    max-width: 700px;
    margin: 0 auto;
}

.preis {
    margin: 0 auto 25px;
    font-size: 1.2rem;
}

.preis strong {
    font-size: 2rem;
}


/* =========================
   Kontakt
   ========================= */

#kontakt {
    text-align: center;
    background: var(--hintergrund);
}

#kontakt h2 {
    margin-bottom: 20px;
}

#kontakt>p {
    max-width: 700px;
    margin: 0 auto 30px;
}

.kontakt-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.kontakt-buttons .button {
    min-width: 140px;
    text-align: center;
}

#kontakt .kontakt-buttons+p {
    font-size: 0.95rem;
    max-width: 650px;
    margin: 0 auto;
}


/* =========================
   Footer
   ========================= */

footer {
    display: flex;
    justify-content: center;
    gap: 30px;

    padding: 30px 24px;

    font-size: 0.9rem;
    background: var(--header-footer);
}

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

/* =========================
   Rechtliche Seiten
   ========================= */

.rechtliche-seite {
    max-width: 800px;
}

.rechtliche-seite h1 {
    margin-bottom: 40px;
}

.rechtliche-seite h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.rechtliche-seite h2:first-of-type {
    margin-top: 0;
}

.rechtliche-seite p {
    margin: 0 0 20px;
}

.rechtliche-seite a {
    text-decoration: underline;
}

.rechtliche-seite a:hover {
    text-decoration: none;
}

/* =========================
   Smartphone
   ========================= */

@media (max-width: 850px) {
    .ueber-mich-inhalt {
        flex-direction: column;
        align-items: center;
    }

    .ueber-mich-bild {
        flex: none;
        width: 320px;
    }

    .ueber-mich-text {
        width: 100%;
    }
}

@media (max-width: 700px) {

    /* Allgemein */

    section {
        padding: 60px 20px;
    }

    /* Header */

    header {
        padding: 18px 20px;

        flex-wrap: wrap;
        gap: 15px;
    }

    .logo {
        font-size: 1.1rem;
    }

    nav {
        order: 3;
        width: 100%;

        justify-content: center;
        gap: 22px;

        padding-top: 15px;
        border-top: 1px solid #ddd;
    }

    nav a {
        font-size: 0.95rem;
    }

    /* Hero */

    #hero {
        min-height: 65vh;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }


    /* Über mich */

    #ueber-mich h2 {
        margin-bottom: 25px;
        text-align: center;
    }


    /* Ablauf */

    #ablauf h2 {
        margin-bottom: 35px;
    }

    .ablauf-schritt {
        margin-bottom: 35px;
    }

    .ablauf-schritt h3 {
        font-size: 1.25rem;
    }


    /* Preise */

    #preise {
        text-align: left;
    }

    #preise h2 {
        margin-bottom: 25px;
    }


    /* Kontakt */

    #kontakt {
        text-align: left;
    }

    #kontakt>p {
        margin-bottom: 25px;
    }

    .kontakt-buttons {
        justify-content: stretch;
        flex-direction: column;
    }

    .kontakt-buttons .button {
        width: 100%;
        text-align: center;
    }


    /* Footer */

    footer {
        padding: 25px 20px;

        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Rechtliche Seiten */

    .rechtliche-seite h1 {
        font-size: 2.2rem;
        margin-bottom: 35px;
    }

    .rechtliche-seite h2 {
        font-size: 1.35rem;
        margin-top: 35px;
        margin-bottom: 15px;
    }

}