/*
Theme Name: PCW Projekt Consulting Weitzer
Description: A bilingual English and German WordPress theme for PCW Projekt Consulting Weitzer.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: company-partners
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face {
    font-family: Outfit;
    src: url("assets/fonts/outfit-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: Outfit;
    src: url("assets/fonts/outfit-latin-ext.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0100-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: "DM Sans";
    src: url("assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0100-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
    --ink: #252327;
    --graphite: #262329;
    --deep: #1b191d;
    --brand: #b21062;
    --brand-hover: #8b0d4c;
    --brand-light: #ffa2cc;
    --brand-tint: #f6e4ed;
    --brand-wash: #f9eff4;
    --brand-line: #d8a4be;
    --paper: #fbf9fa;
    --card: #fff;
    --white: #fff;
    --muted: #58535a;
    --light-muted: #e8dfe4;
    --line: #e5dce2;
    --dark-line: #544852;
    --font-display: Outfit, "DM Sans", system-ui, sans-serif;
    --font-body: "DM Sans", system-ui, sans-serif;
    --gutter: clamp(1.25rem, 5.55vw, 5.75rem);
    --wrap: 80rem;
    --section: clamp(3.8rem, 7vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .24em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.hero :focus-visible, .contact-banner :focus-visible, .site-footer :focus-visible, .page-heading :focus-visible { outline-color: var(--brand-light); }
main:focus { outline: none; }
[hidden] { display: none !important; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.07;
    letter-spacing: -.035em;
    overflow-wrap: break-word;
}

h2 { font-size: clamp(2.35rem, 4.1vw, 4.05rem); }
h3 { font-size: clamp(1.35rem, 1.85vw, 1.75rem); }
p { overflow-wrap: break-word; }

.wrap {
    width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
    margin-inline: auto;
}

.section-wrap { padding-block: var(--section); }
.skip-link { position: fixed; z-index: 20; top: .75rem; left: .75rem; padding: .75rem 1rem; color: var(--ink); background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header {
    position: relative;
    z-index: 2;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    min-height: 5.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .72rem;
    width: fit-content;
    text-decoration: none;
}

.header-navigation, .site-nav {
    display: flex;
    align-items: center;
}

.header-navigation { gap: clamp(1.2rem, 2.5vw, 2.35rem); }
.site-nav { gap: clamp(1rem, 2.5vw, 2.5rem); }
.site-nav a { font-size: .9375rem; font-weight: 650; text-decoration: none; }
.nav-link { padding-block: .6rem; }
.nav-link:hover, .nav-link[aria-current] { color: var(--brand); text-decoration: underline; }

.lang-switch {
    display: flex;
    align-items: center;
    gap: .15rem;
    border: 1px solid var(--line);
    padding: .18rem;
}

.lang-switch a {
    padding: .27rem .45rem;
    color: var(--muted);
    min-width: 2.1rem;
    text-align: center;
    font-size: .875rem;
    line-height: 1.35;
    font-weight: 700;
    text-decoration: none;
}

.lang-switch a:hover, .lang-switch a[aria-current] { background: var(--brand-tint); color: var(--brand-hover); }
.menu-toggle { display: none; }

.button {
    display: inline-flex;
    width: fit-content;
    min-height: 3.35rem;
    padding: .65rem 1.4rem;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: .9375rem;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s, color .18s, border-color .18s;
}

.button--header, .button--gold { background: var(--brand); color: var(--white); }
.button--header { min-height: 2.68rem; padding-inline: 1.15rem; }
.button--dark { background: var(--graphite); color: var(--white); }
.button--dark:hover { background: var(--brand); }
.button--header:hover, .button--gold:hover { background: var(--brand-hover); }
.button--gold { border-color: #f181b2; }
.button--outline { color: var(--white); border-color: #bdb0ba; }
.button--outline:hover { background: var(--white); color: var(--deep); border-color: var(--white); }

.hero {
    position: relative;
    isolation: isolate;
    background: var(--deep);
    color: var(--white);
    overflow: hidden;
}

.hero-photo, .hero::after { position: absolute; inset: 0; z-index: -1; }

.hero-photo {
    left: 24%;
    background: url("assets/riverfront.webp") center 58% / cover no-repeat;
    filter: saturate(.48);
}

.hero::after {
    content: "";
    background:
        linear-gradient(90deg, #231d24 0%, #231d24 21%, rgba(35,29,36,.96) 30%, rgba(35,29,36,.76) 46%, rgba(64,28,46,.24) 70%, rgba(64,28,46,.10) 100%),
        linear-gradient(0deg, rgba(27,25,29,.42), transparent 57%);
}

.hero-inner {
    display: flex;
    align-items: center;
    min-height: clamp(32rem, 43vw, 41rem);
    padding-block: clamp(4.75rem, 7vw, 7.3rem);
}

.hero-content { max-width: 46rem; }
.hero h1 {
    max-width: 46rem;
    margin-top: 1.35rem;
    font-size: clamp(3.45rem, 6.45vw, 6.35rem);
    line-height: .98;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.kicker {
    display: flex;
    gap: .65rem;
    align-items: center;
    width: fit-content;
    font-size: .875rem;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand);
}

.kicker span { width: 1.45rem; height: 1px; background: currentColor; flex: 0 0 1.45rem; }
.kicker--light { color: var(--brand-light); }
.hero-summary { margin-top: 1.5rem; color: var(--light-muted); max-width: 30rem; font-size: clamp(1.08rem, 1.55vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.hero-actions:empty { display: none; }

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, .65fr);
    align-items: end;
    gap: 2rem;
    margin-bottom: 2.2rem;
}

.section-heading h2, .about-copy h2 { margin-top: .7rem; }
.section-heading > p { color: var(--muted); max-width: 27rem; }

.sector-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.sector-card {
    background: var(--card);
    border: 1px solid var(--line);
    padding: clamp(1.35rem, 2.3vw, 2rem);
    min-height: 16.1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    transition: background-color .18s, border-color .18s;
}

.sector-card:hover { background: var(--brand-wash); border-color: var(--brand-line); }
.sector-card h3 { margin-top: 1.15rem; }
.sector-card h3, .sector-card p { width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.sector-card p { margin: .65rem 0 1.25rem; color: var(--muted); }
.sector-count { margin-top: auto; color: var(--brand); font-weight: 700; font-size: .875rem; }
.sector-card:hover .sector-count { text-decoration: underline; }

.sector-icon {
    display: grid;
    position: relative;
    place-items: center;
    color: var(--brand);
    background: var(--brand-tint);
    width: 2.9rem;
    height: 2.9rem;
    flex: 0 0 2.9rem;
}

.sector-icon::before, .sector-icon::after, .sector-icon i { position: absolute; display: block; content: ""; }
.sector-icon--advisory::before { width: 1.15rem; height: 1.15rem; border-left: 1.5px solid; border-bottom: 1.5px solid; }
.sector-icon--advisory::after { width: .85rem; height: .55rem; border-left: 1.5px solid; border-top: 1.5px solid; transform: translate(.16rem,-.1rem) skewY(-29deg); }
.sector-icon--digital::before { width: 1.28rem; height: .92rem; border: 1.5px solid; border-radius: 2px; top: .83rem; }
.sector-icon--digital::after { width: .76rem; height: .22rem; border: solid; border-width: 0 0 1.5px 0; top: 1.8rem; }
.sector-icon--digital i { width: 1.15rem; border-top: 1.5px solid; top: 1.08rem; }
.sector-icon--trade::before { width: 1.24rem; height: 1.24rem; border: 1.5px solid; border-radius: 100%; }
.sector-icon--trade::after { width: .58rem; height: 1.24rem; border: 1.5px solid; border-radius: 100%; }
.sector-icon--trade i { width: 1.12rem; border-top: 1.5px solid; }
.sector-icon--engineering::before { width: 1.28rem; height: 1.19rem; border: 1.5px solid; border-top: 0; transform: translateY(.04rem); clip-path: polygon(0 29%, 50% 0, 100% 29%, 100% 100%, 0 100%); }
.sector-icon--engineering::after { width: .94rem; height: .94rem; border-top: 1.5px solid; border-left: 1.5px solid; transform: translateY(-.16rem) rotate(45deg); }
.sector-icon--engineering i { width: .35rem; height: .52rem; border: 1.5px solid; border-bottom: 0; transform: translateY(.4rem); }

.text-link {
    display: inline-block;
    color: var(--brand);
    font-weight: 700;
    text-decoration-color: var(--brand-line);
    text-decoration-thickness: 1px;
}

.text-link:hover { color: var(--deep); text-decoration-thickness: 2px; }
.capabilities .text-link { margin-top: 1.85rem; }

.home-about { background: var(--brand-wash); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }

.about-image {
    position: relative;
    min-height: 25rem;
    background: var(--graphite) url("assets/design-worktable.webp") center 45% / cover no-repeat;
}

.about-image::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: clamp(2rem, 5vw, 5rem);
    height: .3rem;
    background: var(--brand);
}

.about-copy .article-copy { margin-top: 1.1rem; }
.about-copy .text-link { margin-top: 1.55rem; }
.about-image--inner { min-height: clamp(17rem, 32vw, 26rem); }

.contact-banner {
    padding-block: clamp(3rem, 5.3vw, 5.7rem);
    color: white;
    background: radial-gradient(ellipse at 95% 12%, #602440 0, transparent 64%), var(--graphite);
    border-top: 1px solid var(--dark-line);
}

.contact-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.contact-banner h2 { font-size: clamp(2.2rem, 3.4vw, 3.35rem); }
.contact-banner p { margin-top: .65rem; color: var(--light-muted); }
.contact-banner .button { flex: 0 0 auto; }

.site-footer { padding-top: clamp(2.7rem, 5.1vw, 4.8rem); color: var(--white); background: var(--deep); }
.footer-top { display: flex; align-items: start; justify-content: space-between; gap: 2rem; padding-bottom: 2.3rem; }
.footer-identity p { margin-top: .8rem; color: var(--light-muted); }
.footer-nav, .footer-legal { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; }
.footer-nav a, .footer-legal a { color: var(--light-muted); font-size: .9375rem; text-decoration: none; }
.footer-nav a:hover, .footer-legal a:hover { text-decoration: underline; color: white; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--dark-line); padding-block: 1.35rem; color: var(--light-muted); }
.footer-bottom small { font-size: .875rem; }

.page-heading {
    padding-block: 2.1rem clamp(3rem, 6.4vw, 6.5rem);
    background: radial-gradient(ellipse at 100% 0%, #54273e, transparent 66%), var(--graphite);
    color: var(--white);
}

.breadcrumbs { display: flex; gap: .65rem; align-items: center; margin-bottom: clamp(2rem, 4.2vw, 4rem); color: var(--light-muted); font-size: .9375rem; }
.breadcrumbs a:hover { color: white; }
.page-heading h1, .standalone h1 { font-size: clamp(2.7rem, 5.75vw, 5.6rem); max-width: 70rem; }
.page-heading .kicker { margin-bottom: .8rem; }
.page-summary { max-width: 46rem; margin-top: 1rem; color: var(--light-muted); font-size: clamp(1.1rem, 1.6vw, 1.28rem); }

.page-heading--service .page-heading-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.page-heading--service h1 {
    font-size: clamp(2.65rem, 4.5vw, 4.7rem);
    text-wrap: balance;
}

.service-feature {
    position: relative;
    margin: 0;
    background: var(--deep);
}

.service-feature::after {
    content: "";
    position: absolute;
    inset: auto 0 0 auto;
    width: clamp(2.5rem, 5vw, 4.5rem);
    height: .24rem;
    background: var(--brand);
}

.service-feature-photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
}

.directory-intro { margin-bottom: 1.5rem; }
.sector-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: 0 0 3rem; }
.sector-nav a { display: inline-block; background: var(--card); border: 1px solid var(--line); padding: .55rem .9rem; color: var(--ink); font-weight: 650; text-decoration: none; }
.sector-nav a:hover { border-color: var(--brand-line); background: var(--brand-wash); color: var(--brand-hover); }

.directory { padding-block-start: clamp(3rem, 5vw, 4.6rem); }

.directory-group {
    padding-block: clamp(1.8rem, 4.25vw, 3.65rem);
    border-top: 1px solid var(--line);
    scroll-margin-top: 1.5rem;
}

.directory-group:last-child { border-bottom: 1px solid var(--line); }

.directory-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(13rem, .82fr);
    align-items: center;
    gap: .75rem 1rem;
    margin-bottom: 1.55rem;
}

.directory-heading h2 { font-size: clamp(1.8rem, 3vw, 3.05rem); }
.directory-heading p { color: var(--muted); max-width: 26rem; justify-self: end; }

.directory-list, .related-links { margin: 0; padding: 0; list-style: none; }
.directory-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.7vw, 1.5rem); }

.directory-list a {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    text-decoration: none;
    transition: border-color .18s, background-color .18s;
}

.directory-list a:hover { border-color: var(--brand-line); background: var(--brand-wash); }

.directory-photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    background: var(--brand-wash);
}

.directory-card-copy { padding: clamp(1rem, 1.8vw, 1.5rem); }
.directory-card-copy h3 { font-size: clamp(1.25rem, 1.9vw, 1.65rem); line-height: 1.14; overflow-wrap: anywhere; hyphens: auto; }
.directory-card-copy p { margin-top: .55rem; color: var(--muted); }
.directory-list a:hover h3, .related-links a:hover { color: var(--brand); text-decoration: underline; }
.related-links li + li { border-top: 1px solid var(--line); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .54fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.article-copy { color: var(--muted); max-width: 48rem; }
.article-copy > :first-child { margin-top: 0; }
.article-copy > :last-child { margin-bottom: 0; }
.article-copy p, .article-copy ul, .article-copy ol { margin: 0 0 1.15rem; }
.article-copy h2, .article-copy h3, .article-copy h1 { margin: 2rem 0 .8rem; color: var(--ink); }
.article-copy h2 { font-size: clamp(1.7rem, 2.6vw, 2.45rem); }
.article-copy h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.article-copy li + li { margin-top: .3rem; }
.article-copy .text-link { margin-top: .75rem; }
.aside-panel { padding: clamp(1.35rem, 2.8vw, 2.3rem); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brand); }
.aside-panel h2 { font-size: 1.55rem; margin: .4rem 0 1rem; }
.aside-panel p:not(.kicker) { color: var(--muted); }
.related-links a { display: block; padding-block: .65rem; line-height: 1.4; text-decoration: none; }
.contact-list { margin-bottom: 0; }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0 0 .75rem; overflow-wrap: break-word; }
.standalone { padding-block: var(--section); }
.standalone > * + * { margin-top: 1.7rem; }

@media (max-width: 1020px) {
    .directory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .page-heading--service .page-heading-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .page-heading--service h1 { overflow-wrap: anywhere; hyphens: auto; }
    .service-feature-photo { aspect-ratio: 16 / 10; }
    .directory-heading { grid-template-columns: auto minmax(0, 1fr); }
    .directory-heading p { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 960px) {
    .site-header .wrap { flex-wrap: wrap; gap: 0; padding-block: .65rem; min-height: 4.45rem; }

    .header-navigation {
        flex-basis: 100%;
        width: 100%;
        align-items: start;
        justify-content: space-between;
        margin-top: .7rem;
        padding-block: .75rem;
        border-top: 1px solid var(--line);
    }

    .site-nav { flex-wrap: wrap; justify-content: start; }

    [data-menu-ready]:not([data-menu-open]) .header-navigation { display: none; }
    [data-menu-ready] .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: .55rem;
        min-height: 2.7rem;
        padding: .4rem .65rem;
        border: 1px solid var(--line);
        color: var(--ink);
        background: var(--white);
        font-weight: 650;
    }

    .menu-symbol { display: block; position: relative; width: .9rem; height: .59rem; border-top: 1.5px solid; border-bottom: 1.5px solid; }
    .menu-symbol::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1.5px solid; transform: translateY(-50%); }
    .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sector-card { min-height: 14.25rem; }
    .hero-photo { left: 15%; }
    .hero::after { background: linear-gradient(90deg, #231d24 0%, rgba(35,29,36,.95) 26%, rgba(35,29,36,.79) 48%, rgba(64,28,46,.37) 100%), linear-gradient(0deg, rgba(27,25,29,.42), transparent 57%); }
    .about-image { min-height: 20rem; }
}

@media (max-width: 640px) {
    .header-inner { min-height: 4.2rem; }
    .brand { gap: .55rem; }
    .site-nav { align-items: flex-start; flex-direction: column; gap: .12rem; }
    .site-nav .button { margin-top: .45rem; }
    .hero-inner { min-height: 32rem; padding-block: 4.1rem 4.4rem; }
    .hero-photo { left: 0; background-position: 65% center; }
    .hero::after { background: linear-gradient(90deg, rgba(35,29,36,.91), rgba(50,25,39,.69)), linear-gradient(0deg, rgba(27,25,29,.85), transparent 80%); }
    .hero h1 { font-size: clamp(2.75rem, 11.05vw, 4.4rem); }
    .hero-summary { margin-top: 1.15rem; }
    .hero-actions { margin-top: 1.55rem; }
    .hero-actions { gap: .5rem; }
    .button { padding-inline: .85rem; }
    .section-heading, .about-grid, .detail-grid { grid-template-columns: 1fr; gap: 1.15rem; }
    .section-heading { margin-bottom: 1.45rem; }
    .section-heading > p { max-width: 32rem; }
    .sector-grid { gap: .65rem; }
    .sector-card { min-height: 0; padding: 1rem .9rem; }
    .sector-card h3 { font-size: 1.23rem; }
    .sector-card p { line-height: 1.47; }
    .about-grid { gap: 2rem; }
    .about-image { min-height: 15.5rem; }
    .contact-banner-inner, .footer-top { flex-direction: column; align-items: start; gap: 1.4rem; }
    .sector-nav { margin-bottom: 1.75rem; }
    .directory-group { padding-block: 1.75rem; }
    .directory-heading p { margin-bottom: .25rem; }
    .page-heading { padding-top: 1.6rem; }
    .detail-grid { gap: 2rem; }
    .footer-nav { gap: .6rem 1.1rem; }
}

@media (max-width: 560px) {
    .directory-list { grid-template-columns: 1fr; }

    .directory-list a {
        grid-template-rows: 1fr;
        grid-template-columns: clamp(5.5rem, 26vw, 7.5rem) minmax(0, 1fr);
    }

    .directory-photo { height: 100%; min-height: 7rem; aspect-ratio: auto; }
    .directory-card-copy { padding: .85rem .75rem; }
    .directory-card-copy p { line-height: 1.45; overflow-wrap: anywhere; hyphens: auto; }
}

@media (max-width: 520px) {
    .sector-grid { grid-template-columns: 1fr; }
    .sector-card {
        display: grid;
        grid-template-columns: 2.9rem minmax(0, 1fr);
        gap: .5rem .85rem;
        padding: 1rem;
    }
    .sector-card .sector-icon { grid-column: 1; grid-row: 1 / span 3; }
    .sector-card h3, .sector-card p, .sector-card .sector-count { grid-column: 2; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}
