:root {
    --background: #f7f7f5;
    --black: #242424;
    --grey: #d4d4d2;
    --muted: #858580;
    --orange: #e77a5b;

    --sans:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;

    --serif:
        Georgia,
        "Times New Roman",
        serif;
   --Adobe: "ff-meta-web-pro", sans-serif;
}



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


body {
    background: var(--background);
    color: var(--black);
    font-family: var(--Adobe);
    font-weight: 700;
    font-style: normal;
    
}



.header {
    width: calc(100% - 100px);
    max-width: 1500px;
    margin: auto;
    padding: 32px 0;

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

.logo {
    color: var(--black);
    text-decoration: none;
    font-size: 21px;
    font-weight: 800;
    font-family: var(--sans)
        
}

.logo span {
    font-size: 9px;
    vertical-align: top;
    margin-left: 2px;
}

.header-center,
.header-right {
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 1.6px;
    color: var(--muted);
}



main {
    width: calc(100% - 100px);
    max-width: 1500px;
    margin: auto;
}

.intro {
    max-width: 1050px;
    margin: 100px auto 10px;
}

p
{
    margin-bottom: 14px; 
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--orange);
}

.intro h1 {
    display: flex;
    flex-direction: column;

    font-size: clamp(65px, 11.5vw, 158px);
    font-weight: 750;
    line-height: 0.76;
    letter-spacing: -0.09em;
    text-transform: uppercase;
}

.intro-muted {
    color: var(--grey);
}

.intro-dark {
    color: var(--black);
}



.intro-bottom {
    display: flex;
    align-items: flex-start;
    gap: -70px;

    max-width: 590px;
    margin-top: 41px;
    margin-left: 8px;
    
}

.orange-mark {
    color: var(--orange);
    font-family: var(--serif);
    font-size: 396px;
    line-height: 1.6;
    margin-top: -149px;
    
}

.intro-bottom p {
    color: var(--muted);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
}



.journal {
    max-width: 1050px;
    margin: auto;
}

.post {
    margin-bottom: 100px;
    margin-right: 300px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 36px;



    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.7px;
    color: var(--muted);
}

.post-meta span {
    color: var(--orange);
}

.post-meta time {
    text-align: right;
}


.post h2 {
    font-size: clamp(65px, 10.5vw, 140px);
    font-weight: 750;
    line-height: 0.86;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.post h2 .accent {
    color: var(--orange);
    margin-left: 9px;

}

.red-hill {
    font-size: clamp(65px, 10vw, 130px) !important;
    line-height: 0.84 !important;
}



.subtitle {
    margin-top: 28px;
    margin-bottom: 55px;

    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.35px;
    color: var(--muted);
}


.article-text {
    max-width: 650px;
    margin-left: 8px;
}

.article-text p {
    margin-bottom: 24px;

    font-family: var(--serif);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: 0.05px;
    color: var(--black);
}

.article-text strong {
    font-weight: 700;
}

.article-text em {
    color: var(--orange);
}


.credits {
    max-width: 650px;
    margin-top: 40px;
    margin-left: 8px;

    font-size: 10px;
    line-height: 1.8;
    letter-spacing: -1px;
    color: var(--muted);
}



.credits p {
    display: grid;
    grid-template-columns: 190px 1fr;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.credits strong {
    color: var(--black);
    font-weight: 700;
}




.footer {
    width: calc(100% - 160px);
    max-width: 1500px;
    margin: auto;
    padding: 30px 0 65px;

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

    font-size: 9px;
    font-weight: 650;
    letter-spacing: 1.5px;
    color: var(--muted);
}


.hero-image {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

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

.hero-image h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100%;
    display: flex;
    flex-direction: column;

    font-family: "ff-meta-web-pro", sans-serif;
    font-size: clamp(65px, 11.5vw, 158px);
    font-weight: 750;
    line-height: 0.76;
    letter-spacing: -0.09em;
    text-transform: uppercase;

    color: white;
    mix-blend-mode: difference;
}


/* ==========================================
   NEU: Startseite / Portfolio (nach Entwurf)
   ========================================== */

.name-bar {
    background: #d9d9d9;
    border-radius: 28px;
    padding: 8px 30px 0;
    overflow: hidden;
}

.name-bar h1 {
    font-size: clamp(50px, 13.2vw, 190px);
    font-weight: 750;
    line-height: 0.82;
    letter-spacing: -0.09em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #000;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.about-box {
    grid-column: 1;
    align-self: end;
    background: #d9d9d9;
    border-radius: 24px;
    padding: 24px 28px;
    margin-bottom: 14%;
    text-align: right;
}

.about-box p {
    margin: 0;
    font-size: clamp(13px, 1.25vw, 18px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.06em;
    color: #000;
}

.grid-image {
    aspect-ratio: 3 / 8;
    border-radius: 24px;
    overflow: hidden;
    background: var(--grey);
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Blog-Bereich unter dem Grid */
.journal-section {
    margin-top: 140px;
}

.section-label {
    max-width: 1050px;
    margin: 0 auto 40px;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--orange);
}

/* Handy / Tablet */
@media (max-width: 800px) {
    .portfolio-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .about-box {
        grid-column: 1 / -1;
        order: 2;
        margin-bottom: 0;
        text-align: left;
    }

    .post {
        margin-right: 0;
    }

    .hero-image {
        height: 420px;
    }
}


/* ==========================================
   AUFGABE 7: Eine Seite, Editorial Grid, Linien
   ========================================== */

:root { --line: #cfcfcb; }
body.dark {
    --background: #1d1d1c;
    --black: #f7f7f5;
    --grey: #4a4a47;
    --muted: #9a9a94;
    --line: #3d3d3a;
}
html { scroll-behavior: smooth; }
body { transition: background .7s ease, color .7s ease; }
section[id] { scroll-margin-top: 70px; }

/* Header, Inhalt und Footer sind gleich breit, damit die Linien durchlaufen */
.header, main, .footer { width: calc(100% - 100px); max-width: 1500px; margin: auto; }
.header { position: sticky; top: 0; z-index: 10; background: var(--background); border-bottom: 1px solid var(--line); padding: 26px 0; transition: background .7s ease; }
.header-center { display: flex; gap: 28px; }
.header-center a { color: inherit; text-decoration: none; position: relative; }
.header-center a::after {
    content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
    background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.header-center a:hover::after { transform: scaleX(1); }
.footer { border-top: 1px solid var(--line); margin-top: 0; padding: 22px 0 60px; }

/* Einblenden */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.line.in > span { transform: none; }

/* Bildrahmen: schneidet ab, das Bild ist immer größer als der Rahmen (scale >= 1) */
.zoom { overflow: hidden; position: relative; background: var(--grey); border-radius: 24px; }
.zoom img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); will-change: transform; }

/* Landingpage nach Beispiel-PNG */
.name-bar { margin-top: 14px; background: #d9d9d9; border-radius: 28px; padding: 8px 30px 0; overflow: hidden; }
.name-bar h1 { white-space: nowrap; color: #000; font-size: clamp(50px, 13.2vw, 190px); font-weight: 750; line-height: .82; letter-spacing: -0.09em; text-transform: uppercase; }
.portfolio-grid { display: grid; grid-template-columns: 2.05fr 1fr 1fr 1fr; gap: 14px; margin: 14px 0 0; }
.about-cell { position: relative; }
.about-box { position: absolute; top: 52%; left: 0; right: 0; margin: 0; padding: 26px 30px; background: #d9d9d9; border-radius: 24px; text-align: right; }
.about-box p { margin: 0; color: #000; font-size: clamp(12px, 1.2vw, 18px); font-weight: 500; line-height: 1.35; letter-spacing: -0.06em; }
.grid-image { aspect-ratio: 285 / 768; display: block; }

.statement { margin: 120px 0 110px; overflow: hidden; }
.statement-text { display: flex; flex-direction: column; font-size: clamp(60px, 15vw, 230px); font-weight: 750; line-height: .8; letter-spacing: -0.09em; text-transform: uppercase; }

/* Projekte */
.work { border-top: 1px solid var(--line); padding: 0 0 110px; }
.work-head { padding: 80px 0 50px; }
.work-title { font-size: clamp(48px, 11vw, 160px); font-weight: 750; line-height: .86; letter-spacing: -0.07em; text-transform: uppercase; margin-top: 10px; }
.accent { color: var(--orange); font-style: normal; margin-left: 9px; }
.work .post-meta { margin-bottom: 36px; }

.text-row { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-bottom: 50px; }
.text-row > div { padding: 40px 0; }
.text-row > div + div { border-left: 1px solid var(--line); padding-left: 40px; }
.text-row .article-text { margin: 0; max-width: 560px; }
.info-line { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 36px; }
.info-line div { flex: 1 1 130px; padding: 12px 16px 0 0; font-size: 10px; color: var(--muted); font-weight: 600; }
.info-line b { display: block; font-size: 9px; letter-spacing: 1.7px; color: var(--black); margin-bottom: 4px; }
.todo { color: var(--orange); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery figure { aspect-ratio: 3 / 2; margin: 0; }
.gallery figure.wide { grid-column: 1 / -1; aspect-ratio: 2 / 1; }

/* Animierter Abschluss */
.closing { border-top: 1px solid var(--line); }
.end-row { display: block; position: relative; padding: 46px 0 40px; color: var(--black); text-decoration: none; }
.end-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.end-row + .end-row::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.end-row.in::before { transform: scaleX(1); }
.end-title { font-size: clamp(38px, 10vw, 150px); font-weight: 750; line-height: .9; letter-spacing: -0.07em; text-transform: uppercase; }
.end-title .line > span { transition: transform 1.1s cubic-bezier(.2,.8,.2,1), color .3s ease, padding-left .5s cubic-bezier(.2,.8,.2,1); }
.end-row:hover .line > span { color: var(--orange); padding-left: 18px; }
.end-row:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.closing .end-row:last-child { margin-bottom: 110px; }

@media (max-width: 800px) {
    .header, main, .footer { width: calc(100% - 40px); }
    .header-center { gap: 14px; }
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .about-cell { grid-column: 1 / -1; }
    .about-box { position: static; padding: 22px; text-align: left; }
    .d { display: none; }
    .work-head { padding-top: 60px; }
    .text-row { grid-template-columns: 1fr; }
    .text-row > div:first-child { display: none; }
    .text-row > div + div { border-left: 0; padding-left: 0; }
    .gallery { grid-template-columns: 1fr; gap: 10px; }
    .gallery figure.wide { aspect-ratio: 3 / 2; }
    .zoom { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .line > span { transition: none; opacity: 1; transform: none; }
    .end-row + .end-row::before { transform: none; }
    .zoom img { transform: scale(1.1) !important; }
}
