/* =========================================================
   01 – GRUNDLAGEN
   ========================================================= */

:root {
    --green: #50b400;
    --black: #090a09;
    --paper: #f3f3f3;
    --line: #3a3b39;
}

body {
    background: var(--black);
    font-family: ff-meta-web-pro, Arial, sans-serif;
    font-weight: 400;
}


/* =========================================================
   02 – HEADER / NAVIGATION
   ========================================================= */

.nav {
    height: 105px;
    padding: 0 5.75vw;
    border-bottom: 1px solid #363735;
    position: absolute;
}

.nav .brand {
    width: 150px;
}

.nav nav {
    margin-left: auto;
}

.nav nav a {
    color: #50b400 !important;
    border-bottom: 1px solid #4d554a !important;
    padding: 10px 7px !important;
}

.quick-links {
    display: flex;
    border: 1px solid #383a38;
    border-radius: 26px;
    padding: 9px 14px;
    margin-left: 34px;
    gap: 15px;
}

.quick-links img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}


/* =========================================================
   03 – HERO / STARTSEITE
   ========================================================= */

.hero {
    height: 700px;
    min-height: 700px;
    padding: 105px 5.75vw 70px;
    justify-content: flex-start;
}

.hero:before,
.hero:after {
    border-color: #565a56;
    box-shadow: none;
}

.hero:before {
    width: 115px;
    height: 115px;
    top: 138px;
    left: -54px;
}

.hero:after {
    width: 355px;
    height: 355px;
    right: -80px;
    top: 85px;
}

.hero .eyebrow {
    padding-top: 7px;
    border-top: 1px solid #343534;
    letter-spacing: 5px;
    font-size: 10px;
}

.hero h1 {
    font-size: clamp(68px, 7.2vw, 110px);
    line-height: .82;
    margin-top: 155px;
    max-width: 850px;
}

.hero h1 em {
    font-weight: 400;
}

.hero-copy {
    font-size: 16px;
    font-weight: 700;
    margin-top: 30px;
    line-height: 1.55;
}


/* =========================================================
   04 – AGENTUR
   ========================================================= */

.intro {
    padding: 80px 5.75vw 70px;
    gap: 8vw;
}

.intro h2,
.process h2 {
    font-size: clamp(42px, 4.2vw, 63px);
    line-height: 1.02;
    margin-top: 24px;
}

.intro-copy {
    padding-top: 25px;
}

.intro-copy .lead {
    font-size: 18px;
    margin-bottom: 16px;
}

.intro-copy p:not(.lead) {
    margin-top: 0;
    margin-bottom: 12px;
}

.intro-copy p {
    font-size: 12px;
    line-height: 1.45;
}


/* =========================================================
   05 – LEISTUNGEN
   ========================================================= */

.services {
    padding: 75px 5.75vw 70px;
}

.section-head h2 {
    font-size: clamp(42px, 4.2vw, 64px);
    line-height: 1.02;
}

.service-list {
    margin-top: 55px;
}

.service-list article {
    grid-template-columns: 48px 1.1fr 1.8fr 35px;
    padding: 21px 0;
}

.service-list article > img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.service-list article > a {
    color: #555;
    font-size: 42px;
    line-height: 1;
}

.service-list h3 {
    font-size: 20px;
}

.service-list article p {
    font-size: 12px;
}


/* =========================================================
   06 – STATEMENT
   ========================================================= */

.statement {
    padding: 82px 5.75vw;
    background: var(--green);
    color: #4a4a4a;
}

.statement p {
    font-size: clamp(62px, 7.6vw, 115px);
    line-height: .84;
}

.statement em {
    color: white;
    font-family: "ff-meta-serif-web-pro";
    font-weight: 400;
    font-style: italic;
}


/* =========================================================
   07 – ARBEITSWEISE
   ========================================================= */

.process {
    padding: 80px 5.75vw;
    gap: 6vw;
}

.process > div > p {
    font-size: 14px;
    font-weight: 700;
}

.process li {
    grid-template-columns: 42px 1fr;
    padding: 19px 0;
}

.process li > img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.process h3 {
    font-size: 16px;
    margin-bottom: 3px;
}

.process li p {
    font-size: 11px;
}


/* =========================================================
   08 – KONTAKT
   ========================================================= */

.contact {
    padding: 78px 5.75vw 0;
}

.contact h2 {
    font-size: clamp(65px, 8vw, 120px);
    line-height: .78;
    margin: 55px 0 70px;
}

.mail {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    border: 1px solid #3a3b39;
    border-radius: 10px;
    width: max-content;
    padding: 9px 18px;
    font-family: hoefler-text, Georgia, serif;
    font-size: 25px;
}

.mail img {
    width: 22px;
    height: 18px;
}

.mail span {
    margin-left: 270px;
}

.contact-spacer {
    height: 280px;
    border-bottom: 1px solid #333;
}

.contact-meta {
    padding: 48px 0 44px;
    margin: 0;
    border-bottom: 1px solid #333;
    font-size: 11px;
}


/* =========================================================
   09 – FOOTER
   ========================================================= */

.contact + footer {
    border: 0;
}

footer {
    padding: 35px 5.75vw 45px;
}

.footer-brand {
    width: 150px !important;
}


/* =========================================================
   10 – REFERENZEN
   ========================================================= */

.references-page .nav {
    position: absolute;
}

.reference-masthead {
    padding: 105px 5.75vw 55px;
    min-height: 570px;
    background:
        linear-gradient(#51b800c9, #0b7e00d9),
        url('../references-new/OER_A4_Tarifheft_Mockup.webp') center 35% / cover;
}

.reference-masthead .eyebrow {
    padding-top: 7px;
    border-top: 1px solid #343534;
}

.reference-masthead h1 {
    font-family: hoefler-text, Georgia, serif;
    font-size: clamp(70px, 11vw, 175px);
    font-weight: 400;
    letter-spacing: .2em;
    line-height: 1;
    margin: 80px 0 55px;
}

.reference-masthead sup {
    font-family: inherit;
    font-size: .35em;
}

.logo-wall {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px 45px;
    align-items: center;
}

.logo-wall img {
    width: 100%;
    height: 35px;
    object-fit: contain;
}

.portfolio {
    background: #f4f4f4;
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 0;
    gap: 0;
}

.portfolio aside {
    padding: 35px 25px;
    color: white;
    position: relative;
}

.portfolio aside > img {
    width: 110px;
    max-height: 45px;
    object-fit: contain;
    margin: 0 auto 30px;
}

.portfolio ul {
    font-size: 13px;
    letter-spacing: 3px;
    line-height: 1.7;
}

.portfolio li:before {
    content: '• ';
}

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

.portfolio-grid img {
    width: 100%;
    height: 285px;
    object-fit: cover;
    background: #eee;
}

.portfolio-grid img:nth-child(5n+1) {
    grid-column: span 2;
}

.oerag aside {
    background:
        #f20b0b
        url('../references-new/oerag_Muster_02.webp')
        right / auto 100% no-repeat;
}

.bueckmann aside {
    background:
        #0d93cf
        url('../references-new/bueckmann_Muster_02.webp')
        right / auto 100% no-repeat;
}

.dominique aside {
    background:
        #c32740
        url('../references-new/GD_Muster_02.webp')
        right / auto 100% no-repeat;
}


/* =========================================================
   11 – NAVIGATION: INTERAKTION
   ========================================================= */

.nav nav a {
    border-bottom: 0 !important;
    position: relative;
    transition: color .22s ease, transform .22s ease;
}

.nav nav a:after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 4px;
    height: 1px;
    background: var(--green);
    transform: scaleX(.35);
    transform-origin: left;
    opacity: .55;
    transition: transform .22s ease, opacity .22s ease;
}

.nav nav a:hover,
.nav nav a:focus-visible {
    color: #fff !important;
    transform: translateY(-2px);
}

.nav nav a:hover:after,
.nav nav a:focus-visible:after,
.nav nav a[aria-current="page"]:after {
    transform: scaleX(1);
    opacity: 1;
}

.quick-links {
    transition: border-color .22s ease, background .22s ease;
}

.quick-links:hover {
    border-color: var(--green);
    background: #50b4000d;
}

.quick-links a {
    transition: transform .22s ease;
}

.quick-links a:hover,
.quick-links a:focus-visible {
    transform: translateY(-2px) scale(1.12);
}

.references-page .nav {
    background: var(--black);
    border-bottom: 1px solid #363735;
}


/* =========================================================
   12 – IMPRESSUM / DATENSCHUTZ
   ========================================================= */

.legal-page {
    background: var(--paper);
    color: #292b28;
}

.legal-page .nav {
    position: relative;
    background: var(--black);
}

.legal-page main {
    background: var(--paper);
    padding: 80px 5.75vw 100px;
}

.legal-shell {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 2fr);
    gap: 8vw;
    max-width: 1180px;
    margin: 0 auto;
}

.legal-intro {
    position: sticky;
    top: 40px;
    align-self: start;
}

.legal-kicker {
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: none;
}

.legal-page h1 {
    color: #555753;
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: .92;
    margin: 24px 0 30px;
}

.legal-intro p {
    color: #72746f;
    font-size: 13px;
    line-height: 1.65;
}

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

.legal-content section {
    border-top: 1px solid #c9cbc5;
    padding: 28px 0;
}

.legal-content section:first-child {
    border-top: 0;
    padding-top: 0;
}

.legal-content h2 {
    color: #3f413e;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
}

.legal-content h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 22px 0 8px;
}

.legal-content p,
.legal-content li {
    color: #555852;
    font-size: 14px;
    line-height: 1.7;
}

.legal-content p + p {
    margin-top: 12px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}

.legal-content a {
    color: #278d00;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.legal-note {
    background: #e8e9e4;
    border-left: 3px solid var(--green);
    padding: 16px 18px;
}

.legal-page footer {
    background: var(--black);
    color: #888;
}

.legal-page footer a[aria-current="page"] {
    color: var(--green);
}


/* =========================================================
   13 – KONTAKTFORMULAR
   ========================================================= */

.form-page {
    background: var(--black);
}

.form-page .nav {
    position: relative;
    background: var(--black);
}

.contact-form-main {
    min-height: calc(100vh - 105px);
    padding: 80px 5.75vw 110px;
    position: relative;
    overflow: hidden;
}

.contact-form-main:before,
.contact-form-main:after {
    content: "";
    border: 1px solid #3a3b39;
    border-radius: 50%;
    position: absolute;
    pointer-events: none;
}

.contact-form-main:before {
    width: 115px;
    height: 115px;
    left: -55px;
    top: 90px;
}

.contact-form-main:after {
    width: 520px;
    height: 520px;
    right: -170px;
    top: 10px;
}

.form-kicker {
    color: var(--green);
    font-size: 11px;
    letter-spacing: 6px;
    text-transform: none;
}

.contact-form-main h1 {
    font-size: clamp(62px, 8vw, 118px);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: .85;
    margin: 90px 0 75px;
    text-align: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 7vw;
    position: relative;
    z-index: 1;
}

.form-aside {
    color: #6e706c;
    font-family: hoefler-text, Georgia, serif;
    font-size: 14px;
    font-style: italic;
    line-height: 1.55;
}

.form-aside address {
    font-style: inherit;
    margin-top: 42px;
}

.form-aside a:hover {
    color: var(--green);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px 55px;
}

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

.form-field.full,
.form-consent,
.form-actions,
.form-status {
    grid-column: 1 / -1;
}

.form-field label {
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    border-bottom: 1px solid #474945;
    color: #fff;
    padding: 7px 0 12px;
    outline: none;
    width: 100%;
    transition: border-color .2s;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--green);
}

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

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #666;
    font-family: hoefler-text, Georgia, serif;
    font-style: italic;
}

.form-consent {
    align-items: flex-start;
    color: #90928d;
    display: flex;
    font-size: 12px;
    gap: 10px;
    line-height: 1.5;
}

.form-consent input {
    accent-color: var(--green);
    margin-top: 3px;
}

.form-consent a {
    color: var(--green);
    text-decoration: underline;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-submit {
    background: var(--green);
    border: 0;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 13px 30px;
    transition: background .2s, transform .2s;
}

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

.form-back {
    border: 1px solid #444;
    border-radius: 50%;
    color: #777;
    display: grid;
    font-size: 34px;
    height: 52px;
    place-items: center;
    width: 52px;
}

.form-back:hover {
    border-color: var(--green);
    color: var(--green);
}

.form-status {
    border-left: 3px solid var(--green);
    background: #50b40014;
    color: #dce5d7;
    padding: 14px 18px;
}

.form-status.error {
    border-color: #d75555;
    background: #d7555514;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* =========================================================
   14 – FORMULAR-ERGÄNZUNGEN
   ========================================================= */

.logo-wall img {
    display: block;
    width: 150px;
    max-width: 100%;
    height: 48px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

.form-phones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 55px;
    border: 0;
    padding: 0;
    margin: 0;
}

.form-phones legend {
    grid-column: 1 / -1;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.form-phones > div {
    display: flex;
    flex-direction: column;
}

.form-phones > div label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}


/* =========================================================
   15 – REFERENZEN / MOSAIK
   ========================================================= */

.portfolio {
    display: block;
    background: #f4f4f4;
}

.portfolio .portfolio-grid {
    width: 100%;
}

.portfolio-grid .pattern {
    display: block;
    min-height: 285px;
    background-position: right center;
    background-repeat: no-repeat;
    background-size: auto 100%;
}

.portfolio-grid aside {
    min-height: 285px;
}

.portfolio-grid aside > img {
    width: 120px;
    max-width: 100%;
    height: 45px;
    object-fit: contain;
    margin: 0 auto 30px;
}


/* =========================================================
   16 – REFERENZEN / ORIGINAL-BILDVERHÄLTNISSE
   ========================================================= */

.portfolio .portfolio-grid {
    grid-auto-rows: auto;
}

.portfolio-grid > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}


/* =========================================================
   17 – DESKTOP REFERENZEN
   ========================================================= */

@media (min-width: 901px) {

    .portfolio .portfolio-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        grid-auto-rows: 285px;
    }

    .portfolio-grid aside {
        grid-column: span 2;
    }

    .portfolio-grid img {
        height: 285px;
    }

    .oerag .tarif {
        grid-column: span 4 !important;
    }

    .oerag .flag-red {
        grid-column: span 2 !important;
    }

    .oerag .flag-bau {
        grid-column: span 2 !important;
    }

    .oerag .catalog,
    .oerag .flyer {
        grid-column: span 3 !important;
    }

    .oerag .poster-a,
    .oerag .poster-b {
        grid-column: span 4 !important;
    }

    .oerag .coaster,
    .oerag .bag,
    .oerag .wallflag {
        grid-column: span 2 !important;
    }

    .oerag .pattern {
        grid-column: span 2;
        background-image: url('../references-new/oerag_Muster_02.webp');
    }

    .bueckmann .logo-de,
    .bueckmann .logo-en {
        grid-column: span 3 !important;
    }

    .bueckmann .brochure-cover {
        grid-column: span 3 !important;
    }

    .bueckmann .pattern-mid {
        grid-column: span 1;
    }

    .bueckmann .brochure-inside {
        grid-column: span 3 !important;
    }

    .bueckmann .brochure-cover-copy {
        grid-column: span 1 !important;
    }

    .bueckmann .pattern-left,
    .bueckmann .pattern-right {
        grid-column: span 1;
    }

    .bueckmann .fair-wall {
        grid-column: span 6 !important;
    }

    .bueckmann .pattern {
        background-image: url('../references-new/bueckmann_Muster_02.webp');
    }

    .dominique .stand-wide {
        grid-column: span 6 !important;
    }

    .dominique .stand-side,
    .dominique .cards {
        grid-column: span 2 !important;
    }

    .dominique .stand-logo {
        grid-column: span 3 !important;
    }

    .dominique .pattern {
        grid-column: span 1;
        background-image: url('../references-new/GD_Muster_02.webp');
    }
}


/* =========================================================
   18 – TABLET
   ========================================================= */

@media (max-width: 900px) {

    .quick-links {
        display: none;
    }

    .nav nav {
        gap: 18px;
    }

    .reference-masthead h1 {
        letter-spacing: .1em;
    }

    .portfolio .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
    }

    .portfolio-grid aside {
        grid-column: 1 / -1;
        min-height: 220px;
    }

    .portfolio-grid img {
        grid-column: auto !important;
        height: 300px;
    }

    .portfolio-grid .pattern {
        display: none;
    }
}


/* =========================================================
   19 – SMARTPHONE
   ========================================================= */

@media (max-width: 760px) {

    /* Navigation */

    .nav {
        height: 78px;
    }

    .nav .brand {
        width: 145px;
    }

    .nav nav {
        margin: 0;
    }

    .nav nav a {
        border: 0 !important;
        color: #fff !important;
    }

    .nav nav a:after {
        display: none;
    }

    .nav nav a:hover,
    .nav nav a:focus-visible {
        color: var(--green) !important;
        transform: none;
    }

    .quick-links {
        display: none;
    }


    /* Hero */

    .hero {
        height: 680px;
        min-height: 680px;
        padding: 78px 6vw 40px;
    }

    .hero h1 {
        font-size: clamp(52px, 15vw, 76px);
        line-height: .82;
        margin-top: 145px;
    }

    .hero-copy {
        font-size: 14px;
    }


    /* Agentur / Leistungen / Arbeitsweise */

    .intro,
    .process {
        padding: 70px 6vw;
    }

    .services {
        padding: 70px 6vw;
    }

    .service-list article {
        grid-template-columns: 34px 1fr 25px;
    }

    .service-list article p {
        grid-column: 2 / 4;
    }

    .statement {
        padding: 70px 6vw;
    }


    /* Kontakt */

    .contact {
        padding: 70px 6vw 0;
    }

    .contact h2 {
        font-size: 16vw;
    }

    .mail {
        font-size: 18px;
        max-width: 100%;
        padding: 9px 12px;
    }

    .mail span {
        margin-left: auto;
    }

    .contact-spacer {
        height: 150px;
    }

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


    /* Referenzen */

    .reference-masthead {
        padding: 78px 6vw 45px;
        min-height: 500px;
    }

    .reference-masthead h1 {
        font-size: 15vw;
        margin: 70px 0 50px;
    }

    .logo-wall {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }

    .logo-wall img {
        width: 120px;
        height: 42px;
    }

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

    .portfolio-grid aside {
        min-height: 190px;
    }

    .portfolio-grid img {
        height: auto;
        max-height: 440px;
    }

    .portfolio-grid > img {
        max-height: none;
    }

    .portfolio-grid .pattern {
        display: none;
    }


    /* Rechtliche Seiten */

    .legal-page main {
        padding: 55px 6vw 75px;
    }

    .legal-shell {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .legal-intro {
        position: static;
    }

    .legal-page h1 {
        font-size: clamp(44px, 14vw, 65px);
        margin-bottom: 18px;
    }

    .legal-content h2 {
        font-size: 20px;
    }


    /* Kontaktformular */

    .contact-form-main {
        padding: 55px 6vw 80px;
    }

    .contact-form-main h1 {
        text-align: left;
        margin: 65px 0 55px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .form-field.full,
    .form-consent,
    .form-actions,
    .form-status {
        grid-column: auto;
    }

    .form-aside address {
        margin-top: 25px;
    }

    .contact-form-main:after {
        width: 330px;
        height: 330px;
        right: -200px;
    }

    .form-phones {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-phones legend {
        margin-bottom: 0;
    }
}