:root {
    --navy: #102d45;
    --ink: #10233d;
    --cream: #f8f6f3;
    --yellow: #ffda32;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 16px/1.5 Arial, Helvetica, sans-serif;
}

.wrap {
    max-width: 1200px;
    width: 86%;
    margin: auto;
}

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

a:hover {
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #d5a900;
    outline-offset: 4px;
}

/* Header */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.brand {
    position: relative;
    padding-left: 28px;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 3px;
}

.brand i {
    position: absolute;
    left: 5px;
    top: 0;
    width: 4px;
    height: 40px;
    background: var(--yellow);
    transform: skew(-23deg);
}

nav {
    display: flex;
    gap: 36px;
    font-weight: bold;
}

/* Hero */

.hero {
    position: relative;
    background: #243e54;
    color: white;
    overflow: hidden;
}

.photo {
    position: absolute;
    inset: 0 0 0 30%;
    background:
        linear-gradient(90deg, #243e54 0%, rgba(36, 62, 84, .65) 13%, transparent 42%),
        url(assets/portrait.jpg) center 43% / cover no-repeat;
}

.hero-inner {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 65px 0;
}

.intro {
    width: 46%;
    max-width: 510px;
}

.intro:before {
    content: '';
    display: block;
    width: 58px;
    height: 5px;
    background: var(--yellow);
    margin-bottom: 15px;
}

h1 {
    font-size: 21px;
    line-height: 1.3;
    margin: 0 0 8px;
}

.intro p {
    margin: 0;
}

blockquote {
    margin: 44px 0 34px;
    font: italic 32px/1.16 Georgia, serif;
    text-wrap: pretty;
}

cite {
    display: block;
    font: 16px/1.5 Arial, sans-serif;
    margin-top: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: var(--yellow);
    color: var(--ink);
    border: 0;
    border-radius: 2px;
    padding: 14px 26px;
    font: bold 17px Arial;
    cursor: pointer;
}

.button:hover {
    background: #ffe66b;
    text-decoration: none;
}

/* Über mich */

.about {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 48px;
    padding: 38px 0;
}

.eyebrow {
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.eyebrow:after {
    content: '';
    width: 54px;
    height: 3px;
    background: var(--yellow);
}

h2 {
    font: bold 38px/1.15 Georgia, serif;
    margin: 14px 0;
}

p {
    margin: 0 0 12px;
}

.about aside {
    border-left: 1px solid #c9c4bd;
    padding-left: 45px;
    align-self: center;
}

.about article {
    display: flex;
    gap: 26px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #c9c4bd;
    font-size: 14px;
    line-height: 1.3;
}

.about article:last-child {
    border: 0;
}

h3 {
    font-size: 18px;
    line-height: 1.2;
    margin: 0 0 4px;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about svg {
    width: 46px;
    flex: none;
}

/* Kontakt */

.contact {
    background: var(--navy);
    color: white;
    padding: 35px 0 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.contact h2 {
    position: relative;
    margin: 0 0 22px;
    font-size: 36px;
}

.contact h2:before {
    content: '';
    position: absolute;
    left: -23px;
    top: 0;
    height: 44px;
    width: 4px;
    background: var(--yellow);
    transform: skew(-22deg);
}

.contact p {
    font-size: 18px;
}

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
}

input:not([type=checkbox]),
textarea {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid #b4c2ce;
    border-radius: 3px;
    color: white;
    padding: 10px;
    font: inherit;
}

textarea {
    resize: vertical;
}

.consent {
    font-size: 12px;
    line-height: 1.5;
}

.consent a {
    text-decoration: underline;
}

/* Honeypot field, moved off-screen */
.trap {
    position: absolute;
    left: -10000px;
}

form button {
    float: right;
}

/* Footer */

footer {
    clear: both;
    margin-top: 30px !important;
    border-top: 1px solid #a7b4bf;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

footer a {
    margin-right: 20px;
    font-size: 14px;
}

.social {
    display: flex;
    align-items: center;
}

.social a {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.social svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* Impressum, Datenschutz, Formular-Rückmeldung */

.legal {
    max-width: 800px;
    padding: 35px 0;
}

.legal a {
    text-decoration: underline;
}

/* Mobile */

@media (max-width: 760px) {
    .wrap {
        width: 88%;
    }

    .nav {
        gap: 12px;
    }

    .brand {
        font-size: 15px;
        letter-spacing: 2px;
    }

    nav {
        gap: 15px;
        font-size: 14px;
    }

    .hero-inner {
        min-height: 0;
        padding: 300px 0 35px;
    }

    .photo {
        inset: 0 0 auto;
        height: 320px;
        background:
            linear-gradient(0deg, #243e54, transparent 35%),
            url(assets/portrait.jpg) center 35% / cover;
    }

    .intro {
        width: 100%;
        max-width: none;
    }

    blockquote {
        margin: 28px 0;
        font-size: 28px;
    }

    .about,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .about aside {
        border-left: 0;
        border-top: 1px solid #c9c4bd;
        padding: 0;
    }

    .contact h2:before {
        left: -12px;
        width: 3px;
    }

    h2,
    .contact h2 {
        font-size: 30px;
    }

    footer {
        flex-wrap: wrap;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
