/* noto-sans-display-100 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: normal;
    font-weight: 100;
    src: url('./assets/fonts/noto-sans-display-v27-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-100italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: italic;
    font-weight: 100;
    src: url('./assets/fonts/noto-sans-display-v27-latin-100italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-200 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: normal;
    font-weight: 200;
    src: url('./assets/fonts/noto-sans-display-v27-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-200italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: italic;
    font-weight: 200;
    src: url('./assets/fonts/noto-sans-display-v27-latin-200italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: normal;
    font-weight: 300;
    src: url('./assets/fonts/noto-sans-display-v27-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-300italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: italic;
    font-weight: 300;
    src: url('./assets/fonts/noto-sans-display-v27-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: normal;
    font-weight: 400;
    src: url('./assets/fonts/noto-sans-display-v27-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: italic;
    font-weight: 400;
    src: url('./assets/fonts/noto-sans-display-v27-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-500 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: normal;
    font-weight: 500;
    src: url('./assets/fonts/noto-sans-display-v27-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-500italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: italic;
    font-weight: 500;
    src: url('./assets/fonts/noto-sans-display-v27-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: normal;
    font-weight: 600;
    src: url('./assets/fonts/noto-sans-display-v27-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-600italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: italic;
    font-weight: 600;
    src: url('./assets/fonts/noto-sans-display-v27-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: normal;
    font-weight: 700;
    src: url('./assets/fonts/noto-sans-display-v27-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-700italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: italic;
    font-weight: 700;
    src: url('./assets/fonts/noto-sans-display-v27-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-800 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: normal;
    font-weight: 800;
    src: url('./assets/fonts/noto-sans-display-v27-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-800italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: italic;
    font-weight: 800;
    src: url('./assets/fonts/noto-sans-display-v27-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-900 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: normal;
    font-weight: 900;
    src: url('./assets/fonts/noto-sans-display-v27-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-display-900italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans Display';
    font-style: italic;
    font-weight: 900;
    src: url('./assets/fonts/noto-sans-display-v27-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --background-color: #fffbf7;
    --text-color: #2b2b2b;
    --heading-color: #212121;
    --secondary-color: #fff7ed;
    --border-color: #a8a8a8;
    --font-primary: "Noto Sans Display", sans-erif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    height: 100%;
    background-color: var(--background-color);
    scroll-padding-top: 50px;
    scroll-behavior: smooth;
}

p, button, input, textarea, a {
    font-size: 1.2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

*:focus-visible {
    outline-color: var(--border-color);
    background-color: var(--secondary-color);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
}

h2 {
    font-size: 3rem;
    color: var(--heading-color);
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.7rem;
}

h5 {
    font-size: 1.3rem;
}

b {
    font-weight: 500;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--background-color);
    box-shadow: rgba(0, 0, 0, 0.16) 0 1px 4px;
}

nav {
    padding: .4rem 1.5rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-link {
    font-weight: 300;
}

.logo {
    font-size: 1.3rem;
    font-weight: 300;
    cursor: pointer;
}

.logo span {
    margin-left: 0.5rem;
    opacity: 0.7;
}

nav ul {
    display: flex;
    list-style: none;
}

nav a {
    color: var(--text-color);
    font-size: 1.2rem;
    text-decoration: none;
    padding: 1rem 0.5rem;
}

nav ul a {
    border-bottom: 1px solid transparent;
}

nav ul a:hover {
    border-bottom: 1px solid var(--border-color);
}

main {
    margin-top: 78px;
}

.hero {
    display: flex;
    height: 70vh;
    padding: 0;
}

.hero-image {
    flex: 1;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    max-height: 70vh;
    object-fit: cover;
}

@keyframes fadeInMoveDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-move-down > * {
    animation: fadeInMoveDown 1.3s ease-out;
}

section {
    position: relative;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1000px;
    font-size: 19px;
    color: #eeeeee;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 80%;
    padding: 20px;
    text-align: center;

    h1 {
        font-size: 4rem;
        margin-bottom: 2rem;
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
        letter-spacing: -0.11rem;
        line-height: 4.5rem;
        font-weight: 500 !important;
    }

    h2 {
        color: var(--font-primary);
        line-height: 4rem;
        font-size: 2.1rem;
        font-weight: 400;
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
        letter-spacing: -0.05rem;
    }
}

.section {
    padding: 5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;

    &.normal-padding {
        padding: 1.5rem;

    }
}

section .wrapper {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;

    a {
        display: flex;
        gap: 10px;
        white-space: nowrap;
        color: var(--text-color);
        text-decoration: none;
    }
}

.ueber-mich-heading {
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.vita-years {
    display: inline-block;
    width: 125px;
    font-weight: 500;
}

.vita-description {
    display: inline-flex;
    margin-bottom: 0.7rem;
}

.contact-form {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

input, textarea {
    background-color: var(--background-color);
    padding: 1rem;
    color: var(--text-color);
    width: 100%;
    border: 1px solid var(--border-color);
}

input, textarea, button, a {
    font-family: var(--font-primary);
}

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

button {
    color: var(--text-color);
    background-color: transparent;
    padding: 1rem 2rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s;

    &:hover {
        background-color: var(--secondary-color);
    }
}

.icon {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    width: 25px;
}

footer {
    border-top: 1px solid var(--border-color);
}

footer nav {
    display: flex;
    justify-content: flex-end;
    gap: .3rem;

    a {
        border-bottom: 1px solid transparent;

        &:hover {
            border-bottom: 1px solid var(--border-color);
        }
    }
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: transform 0.3s ease-in-out;
}

div, p {
    font-weight: 300;
}

#angebot {
    background-color: var(--secondary-color);
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

#kontakt {
    border-top: 1px solid var(--border-color);
}

.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider hr {
    border: none;
    border-top: 1px solid var(--border-color);
}

main button {
    box-shadow: rgba(0, 0, 0, 0.1) 0 1px 3px 0, rgba(0, 0, 0, 0.06) 0 1px 2px 0;
}

.expand-button {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    font-size: 1.5rem;
    cursor: pointer;

    &:after {
        content: '+';
    }

}

.expand-button.active:after {
    content: '-';
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.expandable-content.expanded {
    max-height: 2000px;
}

.form-message {
    text-align: center;
    padding: 10px;
    display: none;

    &.form-message-success {
        display: block;
        background: #89dc89;
    }

    &.form-message-error {
        display: block;
        background: #eb9e9e;
    }
}

@media (max-width: 1100px) {

    footer nav {
        justify-content: center;
    }

    .hero {
        flex-direction: column;
    }

    .hero-content, .hero-image {
        width: 100%;

        img {
            height: 70vh;
        }
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 3rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-form {
        flex: 0 0 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .form-group {
        grid-template-columns: 1fr;
    }

    .vita-years {
        width: 100%;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background-color);
        padding-top: 80px;
        transition: right 0.3s ease-in-out;
        flex-direction: column;
        align-items: center;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    nav ul li {
        margin: 20px 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}
