/* ===================================
1. Grundeinstellungen
=================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f4ef;
    color: #111111;
    line-height: 1.5;
}

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


/* ===================================
2. Navigation
=================================== */

.header {
    position: fixed;
    top: 12px;
    left: 2%;
    z-index: 10;

    width: 96%;
    padding: 13px 22px;

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

    background: rgba(245, 244, 239, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 30px;

    box-shadow:
        0 10px 35px rgba(17, 17, 17, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);

    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.navigation {
    display: flex;
    gap: 30px;
}

.navigation a {
    font-size: 14px;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.navigation a:hover {
    opacity: 0.5;
}

.navigation a.active {
    color: #ff4d00;
}


/* ===================================
3. Hero
=================================== */

.hero {
    min-height: min(100vh, 950px);
    padding: 160px 5% 80px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    margin-bottom: 30px;

    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-name-row {
    margin-bottom: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(30px, 4vw, 70px);
}

.hero h1 {
    min-width: 0;

    font-size: clamp(80px, 14vw, 200px);
    line-height: 0.86;
    letter-spacing: -0.07em;
}


/* Hero Name */

.hero-name {
    overflow: visible;
}

.hero-name span {
    display: block;

    opacity: 0;
    transform: translateY(100px);

    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-name span.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Hero Portrait */

.hero-portrait {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    flex: 0 0 clamp(220px, 23vw, 360px);

    aspect-ratio: 1;
    padding: clamp(12px, 1.5vw, 22px);

    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: clamp(30px, 4vw, 58px);
    box-shadow:
        0 24px 60px rgba(17, 17, 17, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);

    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);

    opacity: 0;
    transform: translateY(100px) scale(0.96);

    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-portrait.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Hero Statement */

.hero-statement {
    max-width: 750px;
    overflow: hidden;

    font-size: clamp(28px, 4vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-statement-line {
    display: block;

    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.hero-statement-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-statement-line.accent {
    color: #ff4d00;
}


/* Hero Link */

.hero-link {
    width: fit-content;
    margin-top: 50px;

    font-size: 14px;
    border-bottom: 1px solid #111111;
}


/* ===================================
4. Allgemeine Sections
=================================== */

.section {
    padding: 140px 5%;

    display: grid;
    grid-template-columns: 1fr 4fr;

    border-top: 1px solid #cccccc;
}

.section-number {
    font-size: 13px;
    opacity: 0.5;
}

.section-content {
    width: 100%;
    max-width: 1100px;
}

.section h2 {
    margin-bottom: 70px;

    font-size: clamp(45px, 7vw, 100px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.large-text {
    max-width: 900px;
    margin-bottom: 40px;

    font-size: clamp(28px, 4vw, 50px);
    line-height: 1.15;
}

.section-content > p:last-child {
    max-width: 650px;
}


/* ===================================
5. Skills
=================================== */

.skills {
    border-top: 1px solid #cccccc;
}

.skill {
    padding: 30px 0;

    display: grid;
    grid-template-columns: 1fr 2fr;

    border-bottom: 1px solid #cccccc;
}

.skill span {
    font-size: 24px;
    font-weight: bold;
}


/* ===================================
6. Werdegang
=================================== */

.career-timeline {
    position: relative;
    max-width: 900px;
    padding-left: 55px;
}

.career-timeline::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 8px;

    width: 1px;
    background: #cccccc;
}

.career-item {
    position: relative;

    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 40px;

    padding-bottom: 70px;
}

.career-item:last-child {
    padding-bottom: 0;
}

.career-item::before {
    content: "";
    position: absolute;
    top: 6px;
    left: -55px;

    width: 17px;
    height: 17px;

    background: #f5f4ef;
    border: 2px solid #111111;
    border-radius: 50%;
}

.career-date {
    padding-top: 2px;

    font-size: 14px;
    font-weight: bold;
    opacity: 0.5;
}

.career-content h3 {
    margin-bottom: 5px;

    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.1;
}

.career-company {
    margin-bottom: 18px;

    font-size: 18px;
    font-weight: bold;
}

.career-description {
    max-width: 600px;
}


/* ===================================
7. Projekte & Leistungen
=================================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    min-height: 400px;
    padding: 30px;

    display: flex;
    flex-direction: column;

    background: #ffffff;
    border-radius: 20px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.project-card:hover {
    transform: scale(1.015);
    box-shadow: 0 14px 35px rgba(17, 17, 17, 0.09);
}

.project-number {
    font-size: 13px;
    opacity: 0.5;
}

.project-card h3 {
    margin-top: auto;
    margin-bottom: 20px;

    font-size: 32px;
    line-height: 1.05;
}

.project-card p {
    max-width: 300px;
}

.project-link {
    margin-top: 30px;

    font-size: 14px;
}


/* Leistungen */

.service-price {
    margin-top: 30px;

    font-size: 13px;
    opacity: 0.55;
}

.service-card .project-link {
    margin-top: 8px;
}


/* ===================================
8. Qualifikationen
=================================== */

.qualifications {
    position: relative;
    max-width: 850px;
    padding-left: 55px;
}

.qualifications::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 8px;

    width: 1px;
    background: #cccccc;
}

.qualification {
    position: relative;
    padding: 0 0 60px;
}

.qualification:last-child {
    padding-bottom: 0;
}

.qualification::before {
    content: "";
    position: absolute;
    top: 6px;
    left: -55px;

    width: 17px;
    height: 17px;

    background: #f5f4ef;
    border: 2px solid #111111;
    border-radius: 50%;
}

.qualification span {
    display: block;
    margin-bottom: 8px;

    font-size: 14px;
    font-weight: bold;
    opacity: 0.5;
}

.qualification p {
    max-width: 700px;

    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.25;
    letter-spacing: -0.02em;
}


/* ===================================
9. Kontakt
=================================== */

.contact {
    padding: 120px 5% 70px;

    background: #111111;
    color: #f5f4ef;
}

.contact h2 {
    margin-top: 50px;

    font-size: clamp(70px, 13vw, 180px);
    line-height: 0.8;
    letter-spacing: -0.07em;
}

.contact-content {
    margin-top: 100px;

    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(460px, 2fr);
    gap: 8vw;
    align-items: start;
}

.contact-intro > p {
    max-width: 380px;

    font-size: 20px;
}

.contact-links {
    margin-top: 50px;

    display: flex;
    gap: 40px;
}

.contact-links a {
    font-size: 20px;
    border-bottom: 1px solid currentColor;
}


/* Kontaktformular */

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px 30px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field label {
    margin-bottom: 12px;

    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.6;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 8px 0 16px;

    border: none;
    border-bottom: 1px solid #666666;
    border-radius: 0;
    outline: none;

    background: transparent;
    color: #f5f4ef;

    font: inherit;
    font-size: 20px;

    transition: border-color 0.2s ease;
}

.form-field textarea {
    min-height: 145px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #ff4d00;
}

.form-submit {
    width: fit-content;
    padding: 15px 24px;

    border: 1px solid #f5f4ef;
    border-radius: 100px;

    background: transparent;
    color: #f5f4ef;

    font: inherit;
    font-size: 16px;
    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.form-submit:hover,
.form-submit:focus-visible {
    background: #f5f4ef;
    color: #111111;
    transform: translateY(-2px);
}


/* ===================================
10. Zurück-nach-oben-Button
=================================== */

.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 20;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: #111111;
    color: #f5f4ef;

    font-size: 22px;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: scale(1.06);
}

.scroll-top.on-dark {
    background: #f5f4ef;
    color: #111111;
}


/* ===================================
11. Footer
=================================== */

footer {
    padding: 30px 5%;

    display: flex;
    justify-content: space-between;

    background: #111111;
    color: #f5f4ef;

    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    transition: opacity 0.2s ease;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
    opacity: 0.55;
}


/* ===================================
12. Rechtliche Seiten
=================================== */

.legal-page {
    min-height: 100vh;
}

.legal-back {
    font-size: 14px;
    transition: color 0.2s ease;
}

.legal-back:hover {
    color: #ff4d00;
}

.legal-main {
    padding: 170px 5% 140px;
}

.legal-main > .eyebrow {
    margin-bottom: 38px;
}

.legal-main > h1 {
    margin-bottom: 120px;

    font-size: clamp(76px, 13vw, 180px);
    line-height: 0.82;
    letter-spacing: -0.07em;
}

.legal-layout {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 50px;

    border-top: 1px solid #cccccc;
    padding-top: 60px;
}

.legal-index {
    position: sticky;
    top: 100px;

    height: fit-content;

    display: flex;
    flex-direction: column;
    gap: 10px;

    font-size: 13px;
}

.legal-index p {
    margin-bottom: 12px;
    opacity: 0.5;
}

.legal-index a {
    width: fit-content;
    transition: color 0.2s ease;
}

.legal-index a:hover {
    color: #ff4d00;
}

.legal-content {
    max-width: 850px;
}

.legal-content section {
    scroll-margin-top: 100px;
    padding: 0 0 80px;
}

.legal-content section + section {
    padding-top: 80px;
    border-top: 1px solid #cccccc;
}

.legal-content h2 {
    margin-bottom: 32px;

    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.legal-content p,
.legal-content address,
.legal-content li {
    font-size: 18px;
}

.legal-content p,
.legal-content address,
.legal-content ul {
    margin-bottom: 24px;
}

.legal-content address {
    font-style: normal;
}

.legal-content ul {
    padding-left: 22px;
}

.legal-content li + li {
    margin-top: 8px;
}

.legal-content a {
    border-bottom: 1px solid currentColor;
}

.legal-number {
    margin-bottom: 16px !important;

    font-size: 13px !important;
    opacity: 0.5;
}

.placeholder {
    color: #d74100;
}

.legal-note {
    margin-top: 32px;
    padding: 22px 24px;

    background: #ffffff;
    border-left: 3px solid #ff4d00;
    border-radius: 0 14px 14px 0;
}


/* ===================================
13. Responsive
=================================== */


/* Große, breite Bildschirme */

@media (min-width: 1200px) and (min-aspect-ratio: 4/3) {

    .hero {
        min-height: 900px;
        padding-top: 180px;
        padding-bottom: 100px;
    }

    .hero h1 {
        font-size: clamp(100px, 12vw, 190px);
    }

    .hero-statement {
        max-width: 800px;
    }
}


/* Tablets */

@media (min-width: 801px) and (max-width: 1199px) {

    .navigation {
        gap: 18px;
    }

    .navigation a {
        font-size: 13px;
    }

    .hero {
        min-height: 800px;
        padding-top: 170px;
        padding-bottom: 90px;
    }

    .hero h1 {
        font-size: clamp(80px, 13vw, 140px);
    }
}


/* Hohe / hochkantige Bildschirme */

@media (min-width: 801px) and (max-aspect-ratio: 4/5) {

    .hero {
        min-height: auto;
        padding-top: 220px;
        padding-bottom: 140px;
        justify-content: flex-start;
    }

    .hero h1 {
        font-size: clamp(85px, 13vw, 150px);
    }

    .hero-name-row {
        margin-bottom: 60px;
    }

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


/* Smartphones */

@media (max-width: 800px) {

    .navigation {
        display: none;
    }

    .legal-main {
        padding: 140px 5% 90px;
    }

    .legal-main > h1 {
        margin-bottom: 75px;
        font-size: clamp(68px, 21vw, 110px);
    }

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .legal-index {
        position: static;
    }

    .legal-content section,
    .legal-content section + section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero {
        min-height: auto;
        padding: 130px 5% 90px;
        justify-content: flex-start;
    }

    .hero h1 {
        font-size: 22vw;
        line-height: 0.86;
    }

    .hero-name-row {
        margin-bottom: 50px;

        flex-direction: column;
        align-items: flex-start;
        gap: 42px;
    }

    .hero-portrait {
        flex: none;
        align-self: center;

        width: min(70vw, 280px);
    }

    .hero-statement {
        font-size: clamp(26px, 8vw, 42px);
    }

    .hero-link {
        margin-top: 40px;
    }


    /* Sections */

    .section {
        padding: 100px 5%;

        grid-template-columns: 1fr;
        gap: 40px;
    }


    /* Skills */

    .skill {
        grid-template-columns: 1fr;
        gap: 10px;
    }


    /* Werdegang */

    .career-timeline {
        padding-left: 40px;
    }

    .career-timeline::before {
        left: 7px;
    }

    .career-item {
        grid-template-columns: 1fr;
        gap: 8px;

        padding-bottom: 55px;
    }

    .career-item::before {
        left: -40px;

        width: 15px;
        height: 15px;
    }


    /* Projekte & Leistungen */

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

    .project-card {
        min-height: 300px;
    }


    /* Qualifikationen */

    .qualifications {
        padding-left: 40px;
    }

    .qualifications::before {
        left: 7px;
    }

    .qualification::before {
        left: -40px;

        width: 15px;
        height: 15px;
    }


    /* Kontakt */

    .contact {
        padding: 90px 5% 50px;
    }

    .contact h2 {
        font-size: clamp(64px, 19vw, 110px);
    }

    .contact-content {
        margin-top: 70px;

        grid-template-columns: 1fr;
        gap: 70px;
    }

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

    .form-field-wide {
        grid-column: auto;
    }

    .contact-links {
        margin-top: 60px;

        flex-direction: column;
        align-items: flex-start;
    }


    /* Zurück nach oben */

    .scroll-top {
        right: 20px;
        bottom: 20px;

        width: 46px;
        height: 46px;
    }

    footer {
        gap: 20px;
        align-items: flex-start;
    }

    .footer-links {
        gap: 14px;
    }
}
