:root {
    --st-red: #d4192d;
    --st-red-dark: #a80f20;
    --st-ink: #11151a;
    --st-ink-soft: #1c232b;
    --st-steel: #5d6874;
    --st-cloud: #f2f4f5;
    --st-warm: #f7f5f2;
    --st-line: #dce1e5;
    --st-white: #ffffff;
    --st-shell: min(1240px, calc(100vw - 48px));
    --st-radius: 6px;
    --st-shadow: 0 24px 70px rgba(17, 21, 26, 0.14);
}

html {
    scroll-behavior: smooth;
}

body.stakotec-site {
    color: #242a31;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--st-white);
}

.stakotec-site * {
    box-sizing: border-box;
}

.stakotec-site a {
    text-underline-offset: 0.18em;
}

.st-shell {
    width: var(--st-shell);
    margin-inline: auto;
}

.st-utility {
    position: relative;
    z-index: 1001;
    color: rgba(255, 255, 255, 0.75);
    background: var(--st-ink);
    font-size: 0.76rem;
    letter-spacing: 0.035em;
}

.st-utility__inner,
.st-utility__links,
.st-language {
    display: flex;
    align-items: center;
}

.st-utility__inner {
    min-height: 38px;
    justify-content: space-between;
    gap: 2rem;
}

.st-utility__links {
    gap: 1.35rem;
}

.st-utility a {
    color: inherit;
    text-decoration: none;
}

.st-utility a:hover {
    color: var(--st-white);
}

.st-language {
    gap: 0.2rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.st-language a {
    min-width: 29px;
    padding: 0.18rem 0.36rem;
    border-radius: 3px;
    text-align: center;
}

.st-language a.is-active {
    color: var(--st-white);
    background: var(--st-red);
    font-weight: 800;
}

.stakotec-site .site-header-wrap {
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid rgba(17, 21, 26, 0.09);
    box-shadow: 0 8px 28px rgba(17, 21, 26, 0.045);
}

.stakotec-site .site-main-header-wrap .site-header-row-container-inner {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
}

.stakotec-site .site-branding img {
    max-height: 52px;
    width: auto;
}

.stakotec-site .main-navigation .primary-menu-container > ul {
    gap: clamp(0.15rem, 1.2vw, 1.15rem);
}

.stakotec-site .main-navigation .primary-menu-container > ul > li > a {
    position: relative;
    min-height: 84px;
    padding-inline: 0.45rem;
    color: var(--st-ink);
    font-size: 0.82rem;
    font-weight: 760;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.stakotec-site .main-navigation .menu-item-has-children > a::before {
    content: '';
    position: absolute;
    right: -0.15rem;
    top: 50%;
    width: 0.42rem;
    height: 0.42rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
}

.stakotec-site .main-navigation .sub-menu .menu-item-has-children > a::before {
    right: 1rem;
    transform: translateY(-50%) rotate(-45deg);
}

.stakotec-site .main-navigation .menu-item-has-children:hover > .sub-menu,
.stakotec-site .main-navigation .menu-item-has-children:focus-within > .sub-menu {
    display: block;
    width: 270px;
    height: auto;
    overflow: visible;
    clip: auto;
    opacity: 1;
    visibility: visible;
}

.stakotec-site .main-navigation .sub-menu > li > a {
    padding: 0.8rem 1.15rem;
    line-height: 1.35;
}

.stakotec-site .main-navigation .primary-menu-container > ul > li > a::after {
    position: absolute;
    right: 0.45rem;
    bottom: 23px;
    left: 0.45rem;
    height: 2px;
    content: "";
    background: var(--st-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.stakotec-site .main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.stakotec-site .main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a,
.stakotec-site .main-navigation .primary-menu-container > ul > li > a:hover {
    color: var(--st-red);
}

.stakotec-site .main-navigation .primary-menu-container > ul > li.current-menu-item > a::after,
.stakotec-site .main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a::after,
.stakotec-site .main-navigation .primary-menu-container > ul > li > a:hover::after {
    transform: scaleX(1);
}

.st-kicker {
    margin: 0 0 1rem;
    color: var(--st-red);
    font-size: 0.76rem;
    font-weight: 820;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.st-home-hero {
    position: relative;
    overflow: hidden;
    color: var(--st-white);
    background:
        radial-gradient(circle at 83% 14%, rgba(212, 25, 45, 0.2), transparent 28%),
        linear-gradient(125deg, #0d1116 0%, #171d24 58%, #101419 100%);
}

.st-home-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}

.st-home-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: clamp(640px, 76vh, 850px);
    grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 8rem);
    padding-block: clamp(5.5rem, 10vw, 9rem) 8.5rem;
}

.st-home-hero__grid > .st-home-hero__visual {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-inline: 0;
}

.st-home-hero__copy h1 {
    max-width: 780px;
    margin: 0;
    color: var(--st-white);
    font-size: clamp(3.1rem, 6vw, 6.5rem);
    font-weight: 790;
    line-height: 0.94;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.st-home-hero__intro {
    max-width: 680px;
    margin: 2rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    line-height: 1.65;
}

.st-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2.2rem;
}

.st-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.45rem;
    border: 1px solid transparent;
    border-radius: var(--st-radius);
    font-size: 0.88rem;
    font-weight: 790;
    letter-spacing: 0.035em;
    text-decoration: none;
    transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.st-button:hover {
    transform: translateY(-2px);
}

.st-button--primary {
    color: var(--st-white);
    background: var(--st-red);
    box-shadow: 0 15px 38px rgba(212, 25, 45, 0.27);
}

.st-button--primary:hover {
    color: var(--st-white);
    background: var(--st-red-dark);
}

.st-button--ghost {
    color: var(--st-white);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

.st-button--ghost:hover {
    color: var(--st-white);
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.09);
}

.st-home-hero__visual {
    position: relative;
    min-height: 535px;
}

.st-visual-card {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    background-position: center;
    background-size: cover;
    box-shadow: var(--st-shadow);
}

.st-visual-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(145deg, transparent 38%, rgba(13, 17, 22, 0.64));
}

.st-visual-card--main {
    inset: 0 8% 5% 0;
    background-image: url("../images/technische-dienstleistungen.jpg");
}

.st-visual-card--top {
    top: -4%;
    right: 0;
    width: 42%;
    height: 38%;
    background-image: url("../images/chemische-industrie.jpg");
}

.st-visual-card--bottom {
    right: -3%;
    bottom: -3%;
    width: 48%;
    height: 40%;
    background-image: url("../images/baustoffindustrie.jpg");
}

.st-signal {
    position: absolute;
    bottom: 9%;
    left: -5%;
    display: flex;
    width: 180px;
    height: 68px;
    align-items: flex-end;
    gap: 9px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 4px;
    background: rgba(13, 17, 22, 0.88);
    backdrop-filter: blur(10px);
}

.st-signal span {
    flex: 1;
    background: var(--st-red);
    animation: st-signal 3s ease-in-out infinite alternate;
}

.st-signal span:nth-child(1) { height: 34%; }
.st-signal span:nth-child(2) { height: 68%; animation-delay: 250ms; }
.st-signal span:nth-child(3) { height: 48%; animation-delay: 500ms; }
.st-signal span:nth-child(4) { height: 88%; animation-delay: 750ms; }

@keyframes st-signal {
    to { height: 78%; }
}

.st-proof {
    position: relative;
    z-index: 2;
    display: grid;
    margin-top: -62px;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
}

.st-proof > div {
    display: grid;
    gap: 0.18rem;
    padding: 1.45rem clamp(1rem, 3vw, 2rem);
}

.st-proof > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.st-proof strong {
    color: var(--st-white);
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    line-height: 1.2;
}

.st-proof span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
}

.st-section {
    padding-block: clamp(5.5rem, 10vw, 9rem);
}

.st-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: clamp(2rem, 7vw, 7rem);
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.st-section-heading h2,
.st-services > .st-shell > h2,
.st-home-cta h2 {
    max-width: 860px;
    margin: 0;
    color: var(--st-ink);
    font-size: clamp(2.4rem, 4.7vw, 5rem);
    font-weight: 780;
    line-height: 1.02;
    letter-spacing: -0.052em;
    text-wrap: balance;
}

.st-section-heading > p {
    margin: 0;
    color: var(--st-steel);
    font-size: 1.04rem;
    line-height: 1.7;
}

.st-sectors {
    background: var(--st-warm);
}

.st-sector-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.st-sector-card {
    position: relative;
    display: flex;
    min-height: 360px;
    flex-direction: column;
    justify-content: space-between;
    grid-column: span 4;
    overflow: hidden;
    padding: 1.35rem;
    border-radius: var(--st-radius);
    color: var(--st-white);
    background-color: var(--st-ink);
    background-position: center;
    background-size: cover;
    text-decoration: none;
    isolation: isolate;
}

.st-sector-card:nth-child(1),
.st-sector-card:nth-child(5) {
    grid-column: span 5;
}

.st-sector-card:nth-child(2),
.st-sector-card:nth-child(4) {
    grid-column: span 7;
}

.st-sector-card::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(180deg, rgba(12, 16, 21, 0.15), rgba(12, 16, 21, 0.91));
    transition: background 220ms ease;
}

.st-sector-card:hover::before {
    background: linear-gradient(180deg, rgba(212, 25, 45, 0.28), rgba(12, 16, 21, 0.93));
}

.st-sector-card--1 { background-image: url("../images/baustoffindustrie.jpg"); }
.st-sector-card--2 { background-image: url("../images/chemische-industrie.jpg"); }
.st-sector-card--3 { background-image: url("../images/lebensmittelindustrie.jpg"); }
.st-sector-card--4 { background-image: url("../images/spezialanwendungen.jpg"); }
.st-sector-card--5 { background-image: url("../images/verpackung-und-versand.jpg"); }
.st-sector-card--6 { background-image: url("../images/technische-dienstleistungen.jpg"); }

.st-sector-card__number {
    align-self: flex-start;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--st-red);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.st-sector-card__content {
    display: grid;
    max-width: 88%;
    gap: 0.65rem;
}

.st-sector-card__content strong {
    color: var(--st-white);
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.st-sector-card__content small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    line-height: 1.5;
}

.st-sector-card__arrow {
    position: absolute;
    right: 1.35rem;
    bottom: 1.35rem;
    font-size: 1.4rem;
    transition: transform 180ms ease;
}

.st-sector-card:hover .st-sector-card__arrow {
    transform: translate(3px, -3px);
}

.st-method {
    color: var(--st-white);
    background: var(--st-ink);
}

.st-section-heading--light h2 {
    color: var(--st-white);
}

.st-section-heading--light > p {
    color: rgba(255, 255, 255, 0.58);
}

.st-process {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.st-process article {
    position: relative;
    min-height: 280px;
    padding: 1.6rem 1.25rem 1.4rem 0;
}

.st-process article + article {
    padding-left: 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.st-process article > span {
    display: block;
    margin-bottom: 3rem;
    color: var(--st-red);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.1em;
}

.st-process h3 {
    margin: 0 0 0.85rem;
    color: var(--st-white);
    font-size: 1.32rem;
}

.st-process p {
    margin: 0;
    color: rgba(255, 255, 255, 0.57);
    font-size: 0.9rem;
    line-height: 1.65;
}

.st-services {
    background: var(--st-white);
}

.st-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: clamp(3rem, 6vw, 5rem);
}

.st-service-grid article {
    min-height: 310px;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-cloud);
}

.st-service-grid article > span {
    display: inline-block;
    margin-bottom: 4.5rem;
    color: var(--st-red);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.1em;
}

.st-service-grid h3 {
    margin: 0 0 1rem;
    color: var(--st-ink);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.st-service-grid p {
    margin: 0;
    color: var(--st-steel);
    line-height: 1.65;
}

.st-promise {
    display: grid;
    margin-top: 1rem;
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    padding: clamp(1.7rem, 4vw, 3rem);
    color: var(--st-white);
    background: var(--st-red);
}

.st-promise strong {
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: -0.04em;
}

.st-promise p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.04rem;
    line-height: 1.7;
}

.st-home-cta {
    padding-block: clamp(5rem, 9vw, 8rem);
    color: var(--st-white);
    background:
        linear-gradient(110deg, rgba(12, 16, 21, 0.93), rgba(12, 16, 21, 0.62)),
        url("../images/header-clouds.jpg") center / cover;
}

.st-home-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 4rem;
}

.st-home-cta h2 {
    max-width: 900px;
    color: var(--st-white);
}

.st-home-cta p:not(.st-kicker) {
    max-width: 720px;
    margin: 1.35rem 0 0;
    color: rgba(255, 255, 255, 0.67);
    line-height: 1.7;
}

.st-button--white {
    color: var(--st-ink);
    background: var(--st-white);
}

.st-button--white:hover {
    color: var(--st-white);
    background: var(--st-red);
}

/* Editable Gutenberg layouts */
.st-landing > .wp-block-group,
.st-landing > .wp-block-group + .wp-block-group {
    margin-block: 0;
}

.stakotec-site .wp-block-button__link {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.45rem;
    border: 1px solid transparent;
    border-radius: var(--st-radius);
    color: var(--st-white);
    background: var(--st-red);
    font-size: 0.88rem;
    font-weight: 790;
    letter-spacing: 0.035em;
    text-decoration: none;
    transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.stakotec-site .wp-block-button__link:hover {
    color: var(--st-white);
    background: var(--st-red-dark);
    transform: translateY(-2px);
}

.stakotec-site .st-button--primary .wp-block-button__link {
    color: var(--st-white);
    background: var(--st-red);
    box-shadow: 0 15px 38px rgba(212, 25, 45, 0.27);
}

.stakotec-site .st-button--ghost .wp-block-button__link {
    color: var(--st-white);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

.stakotec-site .st-button--ghost .wp-block-button__link:hover {
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.09);
}

.stakotec-site .st-button--white .wp-block-button__link {
    color: var(--st-ink);
    background: var(--st-white);
}

.stakotec-site .st-button--white .wp-block-button__link:hover {
    color: var(--st-white);
    background: var(--st-red);
}

.st-home-hero .wp-block-group,
.st-section .wp-block-group,
.st-home-cta .wp-block-group {
    margin-block: 0;
}

.st-proof .st-proof__item {
    display: grid;
    gap: 0.18rem;
    padding: 1.45rem clamp(1rem, 3vw, 2rem);
}

.st-proof .st-proof__item + .st-proof__item {
    border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.st-proof .st-proof__item h3,
.st-proof .st-proof__item p {
    margin: 0;
}

.st-proof .st-proof__item h3 {
    color: var(--st-white);
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    line-height: 1.2;
}

.st-proof .st-proof__item p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
}

.st-sectors > .st-shell > h2,
.st-services > .st-shell > h2 {
    max-width: 900px;
    margin: 0;
    color: var(--st-ink);
    font-size: clamp(2.4rem, 4.7vw, 5rem);
    font-weight: 780;
    line-height: 1.02;
    letter-spacing: -0.052em;
    text-wrap: balance;
}

.st-sectors > .st-shell > .st-page-lead,
.st-method > .st-shell > p:not(.st-kicker) {
    max-width: 760px;
    margin: 1.4rem 0 0;
    color: var(--st-steel);
    font-size: 1.04rem;
    line-height: 1.7;
}

.st-editable-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: clamp(3rem, 6vw, 5rem) !important;
}

.st-editable-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 300px;
    flex-direction: column;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-white);
    box-shadow: 0 16px 45px rgba(17, 21, 26, 0.07);
}

.st-editable-card > * {
    margin-block: 0;
    margin-inline: 0 !important;
    max-width: none !important;
}

.st-editable-card h3 {
    margin-top: auto;
    color: var(--st-ink);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.15;
}

.st-editable-card h3 + p {
    margin-top: 0.85rem;
    color: var(--st-steel);
}

.st-editable-card .wp-block-buttons {
    margin-top: 1.3rem;
}

.st-sectors .st-editable-card {
    min-height: 360px;
    overflow: hidden;
    color: var(--st-white);
    background-color: var(--st-ink);
    background-position: center;
    background-size: cover;
    box-shadow: var(--st-shadow);
    isolation: isolate;
}

.st-sectors .st-editable-card::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(180deg, rgba(12, 16, 21, 0.2), rgba(12, 16, 21, 0.94));
    transition: background 220ms ease;
}

.st-sectors .st-editable-card:hover::before {
    background: linear-gradient(180deg, rgba(212, 25, 45, 0.3), rgba(12, 16, 21, 0.95));
}

.st-sectors .st-editable-card:nth-child(1) {
    background-image: url("../images/baustoffindustrie.jpg");
}

.st-sectors .st-editable-card:nth-child(2) {
    background-image: url("../images/chemische-industrie.jpg");
}

.st-sectors .st-editable-card:nth-child(3) {
    background-image: url("../images/lebensmittelindustrie.jpg");
}

.st-sectors .st-editable-card:nth-child(4) {
    background-image: url("../images/spezialanwendungen.jpg");
}

.st-sectors .st-editable-card:nth-child(5) {
    background-image: url("../images/verpackung-und-versand.jpg");
}

.st-sectors .st-editable-card:nth-child(6) {
    background-image: url("../images/technische-dienstleistungen.jpg");
}

.st-sectors .st-editable-card h3,
.st-sectors .st-editable-card h3 + p {
    color: var(--st-white);
}

.st-sectors .st-editable-card h3 + p {
    color: rgba(255, 255, 255, 0.72);
}

.st-sectors .st-editable-card .st-card-number {
    color: rgba(255, 255, 255, 0.8);
}

.st-sectors .st-editable-card .wp-block-button__link {
    color: var(--st-ink);
    background: var(--st-white);
}

.st-sectors .st-editable-card .wp-block-button__link:hover {
    color: var(--st-white);
    background: var(--st-red);
}

.st-editable-card-grid > .st-editable-cover-card {
    position: relative;
    width: 100%;
    min-height: 360px;
    max-width: none !important;
    margin: 0 !important;
    overflow: hidden;
    align-items: stretch;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow);
}

.st-editable-cover-card .wp-block-cover__inner-container {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 312px;
    flex-direction: column;
    color: var(--st-white);
}

.st-editable-cover-card .wp-block-cover__inner-container > * {
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.st-editable-cover-card .st-card-number {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.82);
}

.st-editable-cover-card h3 {
    margin-bottom: 0;
    color: var(--st-ink);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.15;
}

.st-editable-cover-card h3 + p {
    margin-top: 0.85rem;
    margin-bottom: 0;
    color: var(--st-ink);
}

.st-editable-cover-card .wp-block-buttons {
    margin-top: 1.3rem;
    margin-bottom: 0;
}

.st-editable-cover-card .wp-block-button__link {
    color: var(--st-ink);
    background: var(--st-white);
}

.st-editable-cover-card .wp-block-button__link:hover {
    color: var(--st-white);
    background: var(--st-red);
}

.st-card-number {
    color: var(--st-red);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.st-method > .st-shell > h2 {
    max-width: 980px;
    margin: 0;
    color: var(--st-white);
    font-size: clamp(2.4rem, 4.7vw, 5rem);
    font-weight: 780;
    line-height: 1.02;
    letter-spacing: -0.052em;
}

.st-method > .st-shell > p:not(.st-kicker) {
    color: rgba(255, 255, 255, 0.58);
}

.st-process .st-process__item {
    position: relative;
    width: 100%;
    min-height: 280px;
    max-width: none !important;
    margin: 0 !important;
    padding: 1.6rem 1.25rem 1.4rem 0;
}

.st-process .st-process__item + .st-process__item {
    padding-left: 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.st-process .st-process__item > * {
    margin-block: 0;
    margin-inline: 0 !important;
    max-width: none !important;
}

.st-process .st-process__item .st-card-number {
    margin-bottom: 3rem;
}

.st-process .st-process__item h3 {
    margin-bottom: 0.85rem;
}

.st-service-grid .st-service-card {
    width: 100%;
    min-height: 310px;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-cloud);
}

.st-service-card > * {
    margin-block: 0;
    margin-inline: 0 !important;
    max-width: none !important;
}

.st-service-card .st-card-number {
    margin-bottom: 4.5rem;
}

.st-service-card h3 {
    margin-bottom: 1rem;
}

.st-promise h3 {
    margin: 0;
    color: var(--st-white);
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: -0.04em;
}

.st-home-cta__inner > .wp-block-buttons {
    margin-top: 2rem;
}

.st-page-layout {
    display: grid;
    max-width: 1180px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.35rem 1.2rem;
    margin-inline: auto;
}

.st-page-layout > * {
    max-width: none !important;
    grid-column: 1 / -1;
}

.st-page-layout > .alignwide {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.st-page-layout > p,
.st-page-layout > ul,
.st-page-layout > ol {
    max-width: 880px !important;
}

.st-page-layout > p:first-of-type,
.st-page-lead {
    color: var(--st-steel);
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    line-height: 1.65;
}

.st-page-layout > h2,
.st-page-intro h2 {
    max-width: 930px !important;
    margin-top: clamp(3.5rem, 7vw, 6rem);
    padding-top: 1rem;
    border-top: 3px solid var(--st-red);
    color: var(--st-ink);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.08;
}

.st-page-layout > h3 {
    max-width: 850px !important;
    margin-top: 2.5rem;
    color: var(--st-ink);
    font-size: clamp(1.45rem, 2.6vw, 2.35rem);
    line-height: 1.18;
}

.st-page-layout > .wp-block-image {
    margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
}

.st-page-layout > .wp-block-image img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow);
}

.st-page-layout > .wp-block-list {
    padding: 1.5rem 1.6rem 1.5rem 2.8rem;
    border: 1px solid var(--st-line);
    border-left: 4px solid var(--st-red);
    border-radius: var(--st-radius);
    background: var(--st-cloud);
}

.st-detail-card {
    width: 100%;
    min-height: 100%;
    grid-column: span 6;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-cloud);
}

.st-detail-card > * {
    margin-block: 0;
    margin-inline: 0 !important;
    max-width: none !important;
}

.st-detail-card h4 {
    color: var(--st-ink);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.3;
}

.st-detail-card h4 + p,
.st-detail-card p + p,
.st-detail-card .wp-block-image + p {
    margin-top: 0.8rem;
}

.st-detail-card .wp-block-image {
    margin-bottom: 1.25rem;
}

.st-detail-card .wp-block-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
}

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

.st-image-grid .wp-block-image {
    margin: 0;
    overflow: hidden;
    border-radius: var(--st-radius);
    background: var(--st-cloud);
}

.st-image-grid .wp-block-image img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.st-page-intro {
    padding: clamp(2.3rem, 5vw, 4.5rem);
    border-left: 4px solid var(--st-red);
    background: var(--st-cloud);
}

.stakotec-site .st-page-intro {
    padding: clamp(2.3rem, 5vw, 4.5rem);
}

.st-page-intro > * {
    margin-block: 0;
    margin-inline: 0 !important;
}

.st-page-intro h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.st-page-intro .st-page-lead {
    max-width: 820px;
    margin-top: 1.2rem;
}

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

.st-overview-card {
    display: flex;
    width: 100%;
    min-height: 320px;
    flex-direction: column;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(1.5rem, 3vw, 2.3rem);
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-white);
    box-shadow: 0 16px 45px rgba(17, 21, 26, 0.07);
}

.st-overview-card > * {
    margin-block: 0;
    margin-inline: 0 !important;
    max-width: none !important;
}

.st-overview-card h3 {
    margin-top: auto;
    color: var(--st-ink);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.15;
}

.st-overview-card h3 + p {
    margin-top: 0.85rem;
    color: var(--st-steel);
}

.st-overview-card .wp-block-buttons {
    margin-top: 1.4rem;
}

.st-page-cta {
    margin-top: clamp(3rem, 7vw, 6rem) !important;
    padding: clamp(2.2rem, 5vw, 4.5rem);
    color: var(--st-white);
    background:
        linear-gradient(110deg, rgba(12, 16, 21, 0.95), rgba(12, 16, 21, 0.7)),
        url("../images/header-clouds.jpg") center / cover;
}

.stakotec-site .st-page-cta {
    padding: clamp(2.2rem, 5vw, 4.5rem);
}

.st-page-cta > * {
    max-width: 840px !important;
    margin-block: 0;
}

.st-page-cta h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    color: var(--st-white);
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.08;
}

.st-page-cta p:not(.st-kicker) {
    margin-top: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.st-page-cta .wp-block-buttons {
    margin-top: 1.7rem;
}

/* Inner pages */
.stakotec-has-content-hero .st-page-layout > .wp-block-image:first-child {
    display: none;
}

.stakotec-site:not(.home) .entry-hero.page-hero-section {
    position: relative;
    overflow: hidden;
    color: var(--st-white);
    background:
        radial-gradient(circle at 78% 15%, rgba(212, 25, 45, 0.24), transparent 30%),
        linear-gradient(120deg, #101419, #202832);
}

.stakotec-page-baustoffindustrie .entry-hero.page-hero-section,
.stakotec-page-material-industry .entry-hero.page-hero-section {
    background-image: linear-gradient(90deg, rgba(12, 16, 21, 0.93), rgba(12, 16, 21, 0.36)), url("../images/baustoffindustrie.jpg");
}

.stakotec-page-chemische-industrie .entry-hero.page-hero-section,
.stakotec-page-chemical-industry .entry-hero.page-hero-section {
    background-image: linear-gradient(90deg, rgba(12, 16, 21, 0.93), rgba(12, 16, 21, 0.36)), url("../images/chemische-industrie.jpg");
}

.stakotec-page-lebensmittelindustrie .entry-hero.page-hero-section,
.stakotec-page-food-industry .entry-hero.page-hero-section {
    background-image: linear-gradient(90deg, rgba(12, 16, 21, 0.93), rgba(12, 16, 21, 0.36)), url("../images/lebensmittelindustrie.jpg");
}

.stakotec-page-spezialanwendungen .entry-hero.page-hero-section,
.stakotec-page-spezielle-anwendungen .entry-hero.page-hero-section,
.stakotec-page-special-applications .entry-hero.page-hero-section {
    background-image: linear-gradient(90deg, rgba(12, 16, 21, 0.93), rgba(12, 16, 21, 0.36)), url("../images/spezialanwendungen.jpg");
}

.stakotec-page-verpackung-und-versand .entry-hero.page-hero-section,
.stakotec-page-packaging-and-forwarding .entry-hero.page-hero-section {
    background-image: linear-gradient(90deg, rgba(12, 16, 21, 0.93), rgba(12, 16, 21, 0.36)), url("../images/verpackung-und-versand.jpg");
}

.stakotec-page-technische-dienstleistungen .entry-hero.page-hero-section,
.stakotec-page-technical-service .entry-hero.page-hero-section,
.stakotec-page-profibus-analyse .entry-hero.page-hero-section,
.stakotec-page-profibus-analysis .entry-hero.page-hero-section,
.stakotec-page-ethernet-analyse .entry-hero.page-hero-section,
.stakotec-page-ethernet-analysis .entry-hero.page-hero-section,
.stakotec-page-druckmessung .entry-hero.page-hero-section,
.stakotec-page-differential-pressure .entry-hero.page-hero-section {
    background-image: linear-gradient(90deg, rgba(12, 16, 21, 0.93), rgba(12, 16, 21, 0.36)), url("../images/technische-dienstleistungen.jpg");
}

.stakotec-site:not(.home) .entry-hero.page-hero-section {
    background-position: center;
    background-size: cover;
}

.stakotec-site:not(.home) .entry-hero.page-hero-section::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to right, transparent 10%, #000 100%);
}

.stakotec-site:not(.home) .entry-hero-container-inner {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: clamp(300px, 25vw, 330px);
    align-items: flex-end;
    padding-block: 72px;
    background: transparent !important;
}

.stakotec-site:not(.home) .entry-header {
    min-height: 0;
    height: auto;
}

.stakotec-site:not(.home) .entry-hero h1 {
    max-width: 980px;
    margin: 0;
    color: var(--st-white);
    font-size: clamp(42px, 4vw, 56px);
    font-weight: 780;
    line-height: 0.96;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.stakotec-site:not(.home) .entry-hero h1::before {
    display: block;
    margin-bottom: 1rem;
    color: var(--st-red);
    content: "PROCESS AUTOMATION · HAMBURG";
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.18em;
}

.stakotec-lang-de:not(.home) .entry-hero h1::before {
    content: "PROZESSAUTOMATION · HAMBURG";
}

.stakotec-site:not(.home) .content-area {
    margin-block: clamp(4rem, 8vw, 8rem);
}

.stakotec-site:not(.home) .content-container {
    max-width: 1180px;
}

.stakotec-site:not(.home) .entry-content {
    color: #303740;
    font-size: clamp(1rem, 1.12vw, 1.12rem);
    line-height: 1.75;
}

.stakotec-site:not(.home) .entry-content > p {
    max-width: 880px;
}

.stakotec-site:not(.home) .entry-content > p:first-child {
    color: var(--st-steel);
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    line-height: 1.65;
}

.stakotec-site:not(.home) .entry-content > p:first-child:has(img),
.stakotec-site:not(.home) .entry-content > img:first-child {
    max-width: none;
    margin: 0 0 clamp(3rem, 6vw, 5rem);
    font-size: inherit;
}

.stakotec-site:not(.home) .entry-content > p:first-child img,
.stakotec-site:not(.home) .entry-content > img:first-child {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow);
}

.stakotec-site .entry-content > :where(h2, h3, h4) {
    color: var(--st-ink);
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.stakotec-site .entry-content > h2 {
    max-width: 930px;
    margin-top: clamp(4rem, 8vw, 7rem);
    padding-top: 1rem;
    border-top: 3px solid var(--st-red);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.08;
}

.stakotec-site .entry-content > h3 {
    max-width: 850px;
    margin-top: 3rem;
    font-size: clamp(1.45rem, 2.6vw, 2.35rem);
    line-height: 1.18;
}

.stakotec-site .entry-content > h4 {
    margin-top: 2rem;
    font-size: 1.15rem;
}

.stakotec-site .entry-content > ul,
.stakotec-site .entry-content > ol {
    max-width: 920px;
    padding: 1.5rem 1.6rem 1.5rem 2.8rem;
    border: 1px solid var(--st-line);
    border-left: 4px solid var(--st-red);
    border-radius: var(--st-radius);
    background: var(--st-cloud);
}

.stakotec-site .entry-content li {
    margin: 0.55rem 0;
}

.stakotec-site .entry-content img {
    border-radius: 4px;
}

.stakotec-page-partner .entry-content,
.stakotec-page-partners .entry-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.stakotec-page-partner .entry-content > *,
.stakotec-page-partners .entry-content > * {
    flex-basis: 100%;
}

.stakotec-page-partner .entry-content > p:has(img),
.stakotec-page-partners .entry-content > p:has(img),
.stakotec-page-partner .entry-content > img,
.stakotec-page-partners .entry-content > img {
    display: grid;
    min-height: 150px;
    flex: 1 1 220px;
    align-items: center;
    justify-items: center;
    padding: 1.5rem;
    border: 1px solid var(--st-line);
    background: var(--st-white);
}

.st-reference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.st-reference-grid figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-cloud);
}

.st-reference-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.st-reference-grid figcaption {
    padding: 0.9rem 1rem;
    color: var(--st-steel);
    font-size: 0.82rem;
}

.stakotec-site .site-footer {
    color: rgba(255, 255, 255, 0.7);
    border-top: 4px solid var(--st-red);
    background: var(--st-ink);
}

.stakotec-site .site-footer a {
    color: var(--st-white);
}

@media (max-width: 1080px) {
    .st-home-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
        gap: 3rem;
    }

    .st-home-hero__visual {
        min-height: 440px;
    }

    .st-process {
        grid-template-columns: repeat(3, 1fr);
    }

    .st-process article:nth-child(4) {
        border-left: 0;
    }

    .st-process article {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .st-editable-card-grid,
    .st-overview-grid,
    .st-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .st-process .st-process__item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .st-process .st-process__item:nth-child(4) {
        border-left: 0;
    }
}

@media (max-width: 767px) {
    :root {
        --st-shell: min(100% - 32px, 1240px);
    }

    .site-mobile-header-wrap .site-title-wrap {
        display: none !important;
    }

    .site-mobile-header-wrap .site-header-main-section-left {
        min-width: 0;
        width: auto;
    }

    .site-mobile-header-wrap .site-header-main-section-right {
        margin-left: auto;
    }

    .site-mobile-header-wrap .custom-logo {
        width: 100%;
        max-width: 200px;
        height: auto;
    }

    .st-utility__claim,
    .st-utility__links > a {
        display: none;
    }

    .st-utility__inner {
        min-height: 34px;
        justify-content: flex-end;
    }

    .st-language {
        border-left: 0;
    }

    .stakotec-site .main-navigation .primary-menu-container > ul > li > a {
        min-height: auto;
    }

    .stakotec-site .mobile-navigation .drawer-nav-drop-wrap {
        display: flex;
        align-items: stretch;
    }

    .stakotec-site .mobile-navigation .drawer-nav-drop-wrap > a {
        flex: 1 1 auto;
    }

    .stakotec-site .mobile-navigation .stakotec-submenu-toggle {
        position: relative;
        flex: 0 0 3.25rem;
        border: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        background: transparent;
        color: inherit;
        cursor: pointer;
    }

    .stakotec-site .mobile-navigation .stakotec-submenu-toggle span {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 0.55rem;
        height: 0.55rem;
        border-right: 1px solid currentColor;
        border-bottom: 1px solid currentColor;
        transform: translate(-50%, -70%) rotate(45deg);
        transition: transform 0.2s ease;
    }

    .stakotec-site .mobile-navigation .stakotec-submenu-toggle[aria-expanded="true"] span {
        transform: translate(-50%, -30%) rotate(225deg);
    }

    .stakotec-site .mobile-navigation ul.has-collapse-sub-nav ul.sub-menu {
        display: none;
    }

    .stakotec-site .mobile-navigation ul.has-collapse-sub-nav ul.sub-menu.show-drawer {
        display: block;
    }

    .stakotec-site .mobile-navigation .sub-menu a {
        padding-left: 2rem;
    }

    .stakotec-site .mobile-navigation .sub-menu .sub-menu a {
        padding-left: 3rem;
    }

    .st-home-hero__grid {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-block: 5rem 6rem;
    }

    .st-home-hero__copy h1 {
        font-size: clamp(2.85rem, 13vw, 4.4rem);
    }

    .st-home-hero__visual {
        min-height: 330px;
    }

    .st-proof {
        width: 100%;
        margin-top: 0;
        grid-template-columns: 1fr;
    }

    .st-proof > div + div {
        border-top: 1px solid rgba(255, 255, 255, 0.13);
        border-left: 0;
    }

    .st-section-heading,
    .st-home-cta__inner {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.5rem;
    }

    .st-sector-grid {
        grid-template-columns: 1fr;
    }

    .st-sector-card,
    .st-sector-card:nth-child(1),
    .st-sector-card:nth-child(2),
    .st-sector-card:nth-child(4),
    .st-sector-card:nth-child(5) {
        min-height: 310px;
        grid-column: auto;
    }

    .st-process,
    .st-service-grid,
    .st-reference-grid,
    .st-editable-card-grid,
    .st-overview-grid,
    .st-image-grid {
        grid-template-columns: 1fr;
    }

    .st-process article,
    .st-process article + article {
        min-height: 0;
        padding: 1.5rem 0;
        border-left: 0;
    }

    .st-process article > span,
    .st-service-grid article > span {
        margin-bottom: 1.8rem;
    }

    .st-process .st-process__item,
    .st-process .st-process__item + .st-process__item {
        min-height: 0;
        padding: 1.5rem 0;
        border-left: 0;
    }

    .st-process .st-process__item .st-card-number,
    .st-service-card .st-card-number {
        margin-bottom: 1.8rem;
    }

    .st-detail-card {
        grid-column: 1 / -1;
    }

    .st-page-intro,
    .st-page-cta {
        margin-inline: -8px;
    }

    .st-promise {
        grid-template-columns: 1fr;
    }

    .stakotec-site:not(.home) .entry-hero-container-inner {
        min-height: 230px;
        padding-block: 48px;
    }

    .stakotec-site:not(.home) .entry-hero h1 {
        font-size: clamp(34px, 10vw, 44px);
    }

    .stakotec-site:not(.home) .content-area {
        margin-block: 3rem 5rem;
    }
}

@media (max-width: 380px) {
    .site-mobile-header-wrap .custom-logo {
        max-width: 170px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .st-signal span {
        animation: none;
    }

    .stakotec-site * {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}
