/* ==========================================================================
   maslyuk.com — final design system
   Editorial layout of maslyuk.com-combined, delivered as static CSS.
   No framework, no icon font on the landing page, one source of truth.
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
    font-family: "Maslyuk Sans";
    src: url("/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2") format("woff2");
    font-display: swap;
    font-weight: 100 900;
}

/* 2. Tokens --------------------------------------------------------------- */

:root {
    /* One typeface for every language. "Maslyuk Sans" is the Latin subset,
       "Inter" from assets/css/fonts.css carries Cyrillic and Greek, so DE, UA
       and RU render in the same face at the same weights. */
    --font-body: "Maslyuk Sans", "Inter", "Segoe UI", Arial, sans-serif;
    --font-display: var(--font-body);

    --ink: #142943;
    --ink-deep: #0b1c31;
    --ink-soft: #31445b;
    --muted: #5d6c7e;
    --orange: #dd7a24;
    /* #dd7a24 reaches only 2.78:1 on the paper background. The darker tone is
       4.8:1 and is used wherever orange carries text; the bright tone stays
       for fills, rules and badges, where text contrast is not measured. */
    --orange-text: #a85510;
    --orange-deep: #b95f16;
    --orange-soft: #f5e1cf;
    --sage: #8ea18c;
    --paper: #f7f4ee;
    --paper-warm: #fffdfa;
    --white: #ffffff;

    --line: rgba(20, 41, 67, 0.14);
    --line-soft: rgba(20, 41, 67, 0.08);
    --line-invert: rgba(255, 255, 255, 0.14);

    --shadow-sm: 0 12px 30px rgba(20, 41, 67, 0.07);
    --shadow-md: 0 18px 50px rgba(20, 41, 67, 0.09);
    --shadow-lg: 0 30px 80px rgba(20, 41, 67, 0.13);

    --gutter: clamp(22px, 5vw, 88px);
    --shell: 1440px;
    --measure: 74ch;
    --header-h: 78px;
    --ease: 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
    --autoplay-duration: 8s;
}

/* 3. Base ----------------------------------------------------------------- */

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

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 18px);
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1 0 auto;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--ease);
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 200;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.skip-link:focus {
    top: 12px;
}

/* 4. Shared utilities ----------------------------------------------------- */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 25px;
    color: var(--orange-text);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-transform: uppercase;
}

.eyebrow::before {
    flex: 0 0 34px;
    width: 34px;
    height: 1px;
    background: currentColor;
    content: "";
}

.arrow {
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

.arrow::before {
    content: "\2197";
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
    transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.button-primary {
    background: var(--ink);
    color: #fff;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(20, 41, 67, 0.22);
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.48);
    color: var(--ink);
}

.button-secondary:hover {
    transform: translateY(-2px);
    background: var(--white);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.text-link:hover {
    color: var(--orange-deep);
}

/* 5. Header --------------------------------------------------------------- */

.main-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: rgba(247, 244, 238, 0.9);
    border-bottom: 1px solid rgba(20, 41, 67, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: box-shadow var(--ease);
}

.main-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    height: 100%;
    padding: 12px clamp(22px, 4vw, 70px);
}

.logo {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: max-content;
}

.logo-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.logo-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.nav-menu {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.4vw, 38px);
    height: 100%;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 12px 0;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 6px;
    left: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right;
    background: var(--orange);
    content: "";
    transition: transform var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.public-header-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 14px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.lang-btn {
    display: grid;
    place-items: center;
    min-width: 33px;
    height: 30px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    transition: background var(--ease), color var(--ease);
}

.lang-btn:hover {
    color: var(--ink);
}

.lang-btn.active {
    background: var(--ink);
    color: #fff;
}

.portal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 16px;
    min-height: 47px;
    white-space: nowrap;
    padding: 0 23px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform var(--ease), box-shadow var(--ease);
}

/* .portal-link is also a .nav-link, so the underline rules above apply to the
   same pseudo-element. Reset them before drawing the arrow badge. */
.portal-link::after {
    position: static;
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    content: "\2197";
    font-size: 13px;
    line-height: 1;
    transform: none;
}

.portal-link:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 14px 30px rgba(20, 41, 67, 0.22);
}

.portal-link:hover::after,
.portal-link.active::after {
    transform: none;
}

.nav-toggle {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.nav-toggle span {
    position: relative;
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    transition: transform var(--ease), background var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    left: 0;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    content: "";
    transition: transform var(--ease);
}

.nav-toggle span::before {
    top: -5px;
}

.nav-toggle span::after {
    top: 5px;
}

.nav-toggle.is-open span {
    background: transparent;
}

.nav-toggle.is-open span::before {
    transform: translateY(5px) rotate(45deg);
}

.nav-toggle.is-open span::after {
    transform: translateY(-5px) rotate(-45deg);
}

/* 6. Hero ----------------------------------------------------------------- */

.section-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-h) + 64px) var(--gutter) 86px;
    background:
        radial-gradient(circle at 77% 30%, rgba(221, 122, 36, 0.11), transparent 24%),
        linear-gradient(145deg, #fffdfa 0%, #f7f4ee 62%, #eef0eb 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: clamp(50px, 7vw, 120px);
    align-items: center;
    max-width: var(--shell);
    min-height: 520px;
    margin: 0 auto 78px;
}

.hero-title {
    max-width: 15ch;
    font-size: clamp(44px, 6vw, 92px);
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.hero-tagline {
    max-width: 62ch;
    margin-top: 34px;
    color: var(--muted);
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 37px;
}

/* Paper stack: three sheets, an accent rule row and the approval stamp. */
.hero-art {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1.02;
}

.sheet {
    position: absolute;
    top: 7%;
    left: 11%;
    width: 76%;
    height: 86%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper-warm);
    box-shadow: 0 26px 60px rgba(20, 41, 67, 0.13);
}

.sheet-back {
    transform: rotate(-7deg) translate(-18px, 12px);
    background: #f1eee8;
}

.sheet-mid {
    transform: rotate(-3deg) translate(-7px, 5px);
    background: #f7f4ee;
}

.sheet-front {
    display: block;
    transform: rotate(2.5deg);
}

.sheet-rule {
    position: absolute;
    left: 13%;
    height: 9px;
    border-radius: 2px;
    background: rgba(20, 41, 67, 0.1);
}

.rule-accent {
    top: 15%;
    width: 46%;
    height: 12px;
    background: var(--orange);
}

.rule-a {
    top: 29%;
    width: 65%;
}

.rule-b {
    top: 38%;
    width: 56%;
}

.rule-c {
    top: 47%;
    width: 67%;
}

.rule-d {
    top: 56%;
    width: 38%;
}

.sheet-mark {
    position: absolute;
    right: 11%;
    bottom: 8%;
    width: 30%;
    height: auto;
}

.hero-stamp {
    position: absolute;
    top: 3%;
    right: 3%;
    width: clamp(62px, 6vw, 80px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 16px 34px rgba(221, 122, 36, 0.35);
}

.hero-stamp::after {
    position: absolute;
    top: 45%;
    left: 50%;
    width: 32%;
    height: 16%;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: translate(-50%, -50%) rotate(-45deg);
    content: "";
}

/* 7. Pillars -------------------------------------------------------------- */

.positioning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.positioning-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 288px;
    padding: 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.37);
    transition: background var(--ease);
}

.positioning-card:hover {
    background: var(--paper-warm);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 42px;
}

.card-number {
    color: var(--orange-text);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.card-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: rgba(20, 41, 67, 0.5);
    transition: color var(--ease), transform var(--ease);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.positioning-card:hover .card-icon {
    transform: translateY(-2px);
    color: var(--orange);
}

.positioning-card h2 {
    font-size: clamp(19px, 1.6vw, 23px);
    line-height: 1.18;
}

.positioning-card p {
    flex: 1 1 auto;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.62;
}

.card-line {
    width: 28px;
    height: 2px;
    margin-top: 26px;
    background: var(--orange);
    transition: width 280ms ease;
}

.positioning-card:hover .card-line {
    width: 64px;
}

/* 7b. Trust strip ---------------------------------------------------------- */

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: var(--shell);
    margin: 60px auto 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trust-item {
    padding: 24px 30px 26px;
    border-right: 1px solid var(--line);
}

.trust-item:first-child {
    padding-left: 0;
}

.trust-item:last-child {
    padding-right: 0;
    border-right: 0;
}

.trust-label {
    display: block;
    margin-bottom: 9px;
    color: var(--orange-text);
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.trust-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(17px, 1.4vw, 20px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.trust-text {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

/* 8. Section frame -------------------------------------------------------- */

.section-services,
.section-document-prep,
.section-contact,
.section-legal {
    padding: clamp(72px, 8vw, 118px) var(--gutter);
}

.section-services {
    background: var(--ink);
    color: #fff;
}

.section-services .eyebrow,
.section-ablauf-dark .eyebrow {
    color: var(--orange);
}

.section-services .section-title-main {
    max-width: 20ch;
    font-size: clamp(38px, 4.7vw, 70px);
    line-height: 1;
}

.section-container {
    max-width: var(--shell);
    margin: 0 auto;
}

.section-header {
    max-width: var(--measure);
    margin-bottom: 52px;
}

.section-title-main {
    font-size: clamp(32px, 3.9vw, 58px);
    letter-spacing: -0.045em;
}

.section-subtitle {
    margin-top: 18px;
    color: var(--muted);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.62;
}

.section-services .section-subtitle {
    color: rgba(255, 255, 255, 0.62);
}

/* 9. Services ------------------------------------------------------------- */

.audience-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
    border: 1px solid var(--line-invert);
}

.audience-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 114px;
    padding: 25px 30px;
    border-right: 1px solid var(--line-invert);
    color: rgba(255, 255, 255, 0.62);
    text-align: left;
    transition: background var(--ease), color var(--ease);
}

.audience-tab:last-child {
    border-right: 0;
}

.audience-tab:hover {
    color: #fff;
}

.audience-tab.is-active {
    background: var(--orange);
    color: #fff;
}

.audience-tab span {
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.audience-tab small {
    font-size: 12px;
    line-height: 1.45;
}

.service-feature {
    display: grid;
    grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
    background: var(--paper-warm);
    color: var(--ink);
    cursor: grab;
    touch-action: pan-y;
}

.service-feature.is-swiping {
    cursor: grabbing;
    user-select: none;
}

.service-media {
    position: relative;
    min-height: 710px;
    overflow: hidden;
}

.service-media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 28, 49, 0.55), transparent 42%);
    content: "";
}

.service-media img {
    width: 100%;
    height: 100%;
    min-height: 710px;
    object-fit: cover;
    animation: revealImage 500ms ease;
}

@keyframes revealImage {
    from {
        opacity: 0.4;
        transform: scale(1.02);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.media-counter {
    position: absolute;
    z-index: 2;
    right: 30px;
    bottom: 28px;
    display: flex;
    align-items: baseline;
    color: #fff;
}

.media-counter strong {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
}

.media-counter span {
    margin-left: 8px;
    opacity: 0.6;
    font-size: 14px;
}

.service-detail {
    padding: clamp(38px, 5vw, 76px);
    animation: revealDetail 420ms ease;
}

@keyframes revealDetail {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.service-number {
    display: block;
    color: var(--orange-text);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-detail h3 {
    max-width: 22ch;
    margin: 20px 0 15px;
    font-size: clamp(34px, 4vw, 58px);
    letter-spacing: -0.04em;
    line-height: 1;
}

.service-subtitle {
    max-width: 68ch;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.service-detail h4 {
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 24px;
}

.check-list li,
.boundaries li {
    position: relative;
    padding-left: 21px;
    color: #36495d;
    font-size: 13px;
    line-height: 1.5;
}

.check-list li::before {
    position: absolute;
    top: 7px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    content: "";
}

.detail-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-top: 35px;
    padding: 19px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.detail-toggle:hover {
    color: var(--orange-deep);
}

.detail-toggle i {
    color: var(--orange-text);
    font-size: 20px;
    font-style: normal;
    line-height: 1;
}

.boundaries {
    display: none;
    margin-top: 22px;
    padding: 24px;
    background: #f0ede7;
}

.boundaries.expanded {
    display: block;
}

.boundaries h4 {
    margin-bottom: 14px;
    letter-spacing: 0.1em;
}

.boundaries ul {
    display: grid;
    gap: 8px;
}

.boundaries li::before {
    position: absolute;
    top: 0;
    left: 2px;
    color: var(--orange);
    content: "\2014";
}

.boundaries p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.service-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
    border-top: 1px solid var(--line-invert);
    border-left: 1px solid var(--line-invert);
}

.service-selector button {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 96px;
    padding: 20px;
    border-right: 1px solid var(--line-invert);
    border-bottom: 1px solid var(--line-invert);
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
    transition: background var(--ease), color var(--ease);
}

.service-selector button:hover,
.service-selector button.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.service-selector button.is-active {
    box-shadow: inset 0 -3px rgba(240, 163, 93, 0.3);
}

/* Autoplay progress: the bar fills over one interval on the active service. */
.service-selector button.is-active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    transform: scaleX(1);
    transform-origin: left;
    background: var(--orange);
    content: "";
}

.service-selector.is-playing button.is-active::after {
    animation: selectorProgress var(--autoplay-duration) linear forwards;
}

@keyframes selectorProgress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.service-selector button span {
    flex: 0 0 auto;
    color: #f0a35d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.services-empty {
    padding: 40px 0;
    color: rgba(255, 255, 255, 0.6);
}

/* 9b. Ablauf --------------------------------------------------------------- */

.section-ablauf {
    padding: clamp(72px, 8vw, 118px) var(--gutter);
    background: var(--paper);
}

.ablauf-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.ablauf-step {
    position: relative;
    padding: 32px 30px 36px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.45);
    transition: background var(--ease);
}

.ablauf-step:hover {
    background: var(--paper-warm);
}

.ablauf-number {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 26px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.ablauf-step h3 {
    font-size: clamp(19px, 1.6vw, 23px);
    line-height: 1.18;
}

.ablauf-step p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.62;
}

/* Connector between the steps. */
.ablauf-step::after {
    position: absolute;
    top: 54px;
    right: -7px;
    z-index: 2;
    width: 13px;
    height: 13px;
    border-top: 1.5px solid var(--orange);
    border-right: 1.5px solid var(--orange);
    transform: rotate(45deg);
    background: var(--paper);
    content: "";
}

.ablauf-step:last-child::after {
    display: none;
}

/* Visible AI-transparency note. Art. 50(4) AI Act expects a clear and
   distinguishable disclosure — a line buried in the terms or in the footer
   does not qualify, so this block sits in the page flow. */
.ai-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    max-width: 92ch;
    margin-top: 42px;
    padding: 26px 30px;
    border-left: 2px solid var(--orange);
    background: rgba(221, 122, 36, 0.08);
}

.ai-note-badge {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.ai-note h3 {
    margin-bottom: 10px;
    font-size: 19px;
}

.ai-note p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.65;
}

.ai-note-images {
    margin-top: 12px;
}

.ai-note-editor {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.ai-note-person {
    color: var(--ink);
    font-weight: 700;
}

@media (max-width: 620px) {
    .ai-note {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 22px;
    }
}

/* 9c. Preise --------------------------------------------------------------- */

.section-preise {
    padding: clamp(72px, 8vw, 118px) var(--gutter);
    background: var(--ink);
    color: #fff;
}

.section-preise .eyebrow {
    color: var(--orange);
}

.section-preise .section-subtitle {
    color: rgba(255, 255, 255, 0.62);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line-invert);
    border-left: 1px solid var(--line-invert);
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: 32px 30px 34px;
    border-right: 1px solid var(--line-invert);
    border-bottom: 1px solid var(--line-invert);
    transition: background var(--ease);
}

.price-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.price-label {
    color: var(--orange);
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.price-card h3 {
    margin: 14px 0 10px;
    font-size: clamp(20px, 1.7vw, 24px);
    line-height: 1.18;
}

.price-card p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 1.6;
}

.price-value {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line-invert);
}

.price-amount {
    font-family: var(--font-display);
    font-size: clamp(30px, 2.8vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
}

.price-amount-word {
    font-size: clamp(24px, 2.2vw, 32px);
    color: var(--orange);
}

.price-prefix,
.price-unit {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 700;
}

.price-hint {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12.5px;
    line-height: 1.5;
}

.price-vat {
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 700;
}

.price-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    margin-top: 34px;
}

.price-note {
    max-width: 88ch;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.65;
}

.section-preise .button-primary {
    background: var(--orange);
    color: #fff;
}

.section-preise .button-primary:hover {
    box-shadow: 0 14px 30px rgba(221, 122, 36, 0.35);
}

/* 10. Document preparation ------------------------------------------------ */

.section-document-prep {
    background: var(--paper);
}

.document-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(30px, 4vw, 66px);
    align-items: center;
    max-width: var(--shell);
    margin: 0 auto;
    padding: clamp(30px, 3.4vw, 54px);
    border: 1px solid var(--line);
    background: var(--paper-warm);
    box-shadow: var(--shadow-sm);
}

.document-card .section-header {
    margin-bottom: 26px;
}

.document-prep-image-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    border-radius: 3px;
}

.document-prep-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.document-prep-image-link:hover img {
    transform: scale(1.04);
}

.document-prep-image-link .arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    font-size: 19px;
}

/* 11. Contact ------------------------------------------------------------- */

.section-contact {
    background: linear-gradient(160deg, var(--paper) 0%, #eef0eb 100%);
}

.business-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    max-width: var(--shell);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper-warm);
    box-shadow: var(--shadow-md);
}

/* Identity panel — dark, centred, brand-first. */
.card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: clamp(42px, 4.4vw, 68px) clamp(26px, 3vw, 44px);
    background:
        radial-gradient(circle at 50% 22%, rgba(221, 122, 36, 0.16), transparent 55%),
        linear-gradient(165deg, #16304f 0%, var(--ink-deep) 100%);
    color: #fff;
    text-align: center;
}

.card-logo {
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    padding: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.card-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-header-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-name {
    font-family: var(--font-body);
    font-size: clamp(26px, 2.4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.card-title {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(15px, 1.2vw, 18px);
    letter-spacing: 0;
    text-transform: none;
}

.card-badge {
    margin-top: 22px;
    padding: 14px 26px;
    border-radius: 999px;
    background: linear-gradient(100deg, var(--orange) 0%, #f0b071 100%);
    color: var(--ink-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.card-audience {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.card-right {
    padding: clamp(30px, 3.4vw, 54px);
}

.contact-info-list {
    display: grid;
    gap: 26px;
}

.contact-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line-soft);
}

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

.contact-icon-wrapper {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--orange);
    font-size: 16px;
    font-style: normal;
    line-height: 1;
}

.contact-detail {
    min-width: 0;
}

.detail-label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.detail-value {
    display: block;
    font-size: 17px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

a.detail-value:hover {
    color: var(--orange-deep);
}

.detail-note {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

.detail-note a {
    color: var(--orange-deep);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.messenger-hint {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12.5px;
}

.messenger-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 10px;
}

.messenger-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.messenger-link::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
}

.messenger-whatsapp::before {
    background: #25d366;
}

.messenger-telegram::before {
    background: #2aabee;
}

.messenger-link:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

/* 12. Footer -------------------------------------------------------------- */

.main-footer {
    padding: 72px var(--gutter) 35px;
    background: var(--ink-deep);
    color: #fff;
}

.footer-container {
    max-width: var(--shell);
    margin: 0 auto;
}

.footer-bottom {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 35px 50px;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--line-invert);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: max-content;
    color: #fff;
}

.footer-brand img {
    width: 46px;
    height: 46px;
    padding: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
}

.footer-brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.footer-brand strong {
    font-size: 13px;
    letter-spacing: 0.04em;
}

.footer-brand small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.copyright {
    justify-self: end;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.footer-links {
    grid-column: 1 / -1;
    justify-self: start;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-links a,
.footer-links button {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}

.footer-links a:hover,
.footer-links button:hover {
    color: #f0a35d;
}

/* 13. Cookie consent ------------------------------------------------------ */

.cookie-consent {
    position: fixed;
    z-index: 3000;
    inset: auto 22px 22px;
}

.cookie-consent-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 25px;
    align-items: center;
    width: min(100%, 1000px);
    margin: 0 auto;
    padding: 22px 25px;
    border: 1px solid var(--line-invert);
    background: var(--ink-deep);
    color: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.cookie-consent-title {
    font-family: var(--font-display);
    font-size: 19px;
}

.cookie-consent-text {
    margin: 7px 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 12px;
    line-height: 1.5;
}

.cookie-consent-policy {
    color: #f0a35d;
    font-size: 11px;
}

.cookie-consent-actions {
    display: flex;
    gap: 8px;
}

.cookie-consent-button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.cookie-consent-button-primary {
    border-color: var(--orange);
    background: var(--orange);
}

/* 14. Legal and document pages -------------------------------------------- */

.section-legal {
    padding-top: calc(var(--header-h) + 56px);
    background: var(--paper);
}

.legal-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(28px, 3.4vw, 54px);
    border: 1px solid var(--line);
    background: var(--paper-warm);
    box-shadow: var(--shadow-sm);
}

.legal-page-container h1 {
    margin-bottom: 26px;
    font-size: clamp(30px, 3.4vw, 48px);
    letter-spacing: -0.04em;
}

.legal-page-container h2 {
    margin-top: 40px;
    margin-bottom: 12px;
    font-size: clamp(20px, 1.9vw, 26px);
}

.legal-page-container h3 {
    margin-top: 26px;
    margin-bottom: 10px;
    font-size: 17px;
}

.legal-page-container p,
.legal-page-container li {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.72;
}

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

.legal-page-container ul,
.legal-page-container ol {
    margin: 14px 0 14px 4px;
    display: grid;
    gap: 8px;
}

.legal-page-container ul li {
    position: relative;
    padding-left: 20px;
}

.legal-page-container ul li::before {
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 8px;
    height: 1.5px;
    background: var(--orange);
    content: "";
}

.legal-page-container ol {
    padding-left: 20px;
    list-style: decimal;
}

.legal-page-container a {
    color: var(--orange-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page-container table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
    font-size: 14px;
}

.legal-page-container th,
.legal-page-container td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal-page-container th {
    background: rgba(20, 41, 67, 0.04);
    font-weight: 800;
}

.legal-notice-box {
    margin-bottom: 40px;
    padding: 22px 26px;
    border-left: 2px solid var(--orange);
    background: rgba(221, 122, 36, 0.08);
}

.notice-text {
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.66;
}

/* 15. Blog ---------------------------------------------------------------- */

body[data-page="blog"] .section-services,
.section-services#blog-index {
    padding-top: calc(var(--header-h) + 56px);
    background: var(--paper);
    color: var(--ink);
}

.section-services#blog-index .section-subtitle {
    color: var(--muted);
}

.blog-browser {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: clamp(28px, 4vw, 60px);
    align-items: start;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper-warm);
    transition: transform var(--ease), box-shadow var(--ease);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
}

.blog-card-date {
    color: var(--orange-text);
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.blog-card-title {
    font-size: 20px;
    line-height: 1.22;
}

.blog-card-excerpt {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.blog-card-action {
    margin-top: auto;
    padding-top: 14px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.blog-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 26px;
    border: 1px solid var(--line);
    background: var(--paper-warm);
}

.blog-sidebar h2 {
    margin-bottom: 18px;
    font-size: 19px;
}

.blog-sidebar-nav {
    display: grid;
    gap: 16px;
}

.blog-sidebar-link {
    display: grid;
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
}

.blog-sidebar-link:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.blog-sidebar-date {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.blog-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.blog-sidebar-link:hover .blog-sidebar-title {
    color: var(--orange-deep);
}

.blog-article {
    max-width: 820px;
    margin: 0 auto;
}

.blog-article-hero {
    width: 100%;
    margin-bottom: 30px;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

.blog-article-meta {
    margin-bottom: 14px;
    color: var(--orange-text);
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.blog-article h1 {
    margin-bottom: 22px;
    font-size: clamp(30px, 3.4vw, 48px);
}

.blog-article h2 {
    margin: 36px 0 12px;
    font-size: clamp(20px, 1.9vw, 26px);
}

.blog-article p,
.blog-article li {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.74;
}

.blog-article p + p {
    margin-top: 14px;
}

.blog-article ul,
.blog-article ol {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.blog-article ul li {
    position: relative;
    padding-left: 20px;
}

.blog-article ul li::before {
    position: absolute;
    top: 0.74em;
    left: 0;
    width: 8px;
    height: 1.5px;
    background: var(--orange);
    content: "";
}

.blog-article ol {
    padding-left: 20px;
    list-style: decimal;
}

.blog-article a {
    color: var(--orange-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.blog-back-link:hover {
    color: var(--orange-deep);
}

/* 16. Responsive ---------------------------------------------------------- */

/* Middle widths: the mark keeps its place beside the headline, while the
   explanation and the buttons run the full width underneath it. */
@media (min-width: 761px) and (max-width: 1180px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(210px, 0.58fr);
        gap: 26px clamp(28px, 4vw, 56px);
        align-items: start;
        min-height: 0;
        margin-bottom: 60px;
    }

    .hero-intro {
        display: contents;
    }

    .hero-eyebrow {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 16px;
    }

    .hero-title {
        grid-column: 1;
        grid-row: 2;
        max-width: none;
    }

    .hero-art {
        grid-column: 2;
        grid-row: 1 / span 2;
        justify-self: end;
        width: 100%;
        max-width: 330px;
    }

    .hero-tagline {
        grid-column: 1 / -1;
        grid-row: 3;
        max-width: none;
        margin-top: 4px;
    }

    .hero-actions {
        grid-column: 1 / -1;
        grid-row: 4;
        margin-top: 6px;
    }
}

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

    .service-feature {
        grid-template-columns: 0.75fr 1.25fr;
    }

    .service-media,
    .service-media img {
        min-height: 740px;
    }

    .check-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ablauf-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ablauf-step:nth-child(2)::after {
        display: none;
    }

    .blog-browser {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 1120px) {
    .header-container {
        gap: 14px;
    }

    .nav-toggle {
        display: grid;
    }

    .nav-menu {
        grid-column: 1 / -1;
        grid-row: 2;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid rgba(20, 41, 67, 0.1);
        background: var(--paper);
        transition: max-height 240ms ease;
    }

    .nav-menu.open {
        max-height: 38rem;
        box-shadow: 0 24px 50px rgba(20, 41, 67, 0.14);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 22px 24px;
    }

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid rgba(20, 41, 67, 0.1);
        font-size: 15px;
    }

    .nav-link::after {
        display: none;
    }

    /* Language switch and portal action live in the menu list at this width. */
    .nav-list .lang-selector-item {
        display: flex;
        justify-content: flex-start;
        padding-top: 18px;
    }

    .nav-list .lang-selector {
        padding: 4px;
    }

    .nav-list .lang-btn {
        min-width: 48px;
        height: 36px;
        font-size: 11px;
    }

    .nav-list .portal-link {
        margin-top: 16px;
        padding: 0 23px;
        border-bottom: 0;
        font-size: 12px;
    }

    .nav-list .portal-link::after {
        display: inline-grid;
    }
}

@media (max-width: 900px) {
    .document-card,
    .business-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .card-left {
        padding: 46px 26px;
    }
}

@media (max-width: 760px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        margin-bottom: 56px;
    }

    .hero-intro {
        display: block;
    }

    .hero-art {
        display: none;
    }

    .header-container {
        padding: 10px 16px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 12px;
    }

    .logo-copy small {
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .public-header-actions {
        gap: 7px;
    }

    .trust-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .trust-item {
        padding: 20px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-item:last-child {
        border-bottom: 0;
    }

    .ablauf-steps,
    .price-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ablauf-step::after {
        display: none;
    }

    .section-ablauf {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .ablauf-step {
        padding: 18px 18px 20px;
    }

    .ablauf-number {
        width: 38px;
        height: 38px;
        margin-bottom: 12px;
        font-size: 11px;
    }

    .ablauf-step h3 {
        font-size: 19px;
    }

    .ablauf-step p {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.45;
    }

    .price-foot {
        grid-template-columns: minmax(0, 1fr);
    }

    .positioning-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .positioning-card {
        min-height: 0;
        padding: 16px 18px 18px;
    }

    .positioning-card .card-head {
        margin-bottom: 10px;
    }

    .positioning-card .card-icon {
        width: 24px;
        height: 24px;
    }

    .positioning-card h2 {
        font-size: 18px;
        line-height: 1.2;
    }

    .positioning-card p {
        flex: 0 0 auto;
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.4;
    }

    .positioning-card .card-line {
        margin-top: 12px;
    }

    .audience-tabs {
        grid-template-columns: minmax(0, 1fr);
    }

    .audience-tab {
        min-height: 100px;
        border-right: 0;
        border-bottom: 1px solid var(--line-invert);
    }

    .audience-tab:last-child {
        border-bottom: 0;
    }

    .service-feature {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-media,
    .service-media img {
        min-height: 380px;
        max-height: 460px;
    }

    .service-detail {
        padding: 38px 24px;
    }

    .service-detail h3 {
        font-size: 34px;
    }

    .service-selector {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-selector button {
        min-height: 0;
        padding: 15px;
        font-size: 11px;
    }

    .hero-actions .button {
        flex: 1 1 100%;
    }

    .cookie-consent {
        inset: auto 12px 12px;
    }

    .cookie-consent-panel {
        grid-template-columns: 1fr;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    /* Narrow screens: the link row becomes a tappable list. As an inline row it
       wrapped into an unreadable block and could be pushed out of view. Order:
       brand, links, copyright. */
    .footer-bottom {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .footer-brand {
        min-width: 0;
    }

    .footer-links {
        grid-column: auto;
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .footer-links a,
    .footer-links button {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 4px 14px 4px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.78);
        font-size: 12.5px;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .copyright {
        order: 3;
        justify-self: start;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 420px) {
    .logo {
        gap: 9px;
    }

    .logo-text {
        font-size: 11px;
    }

    .logo-copy small {
        font-size: 8px;
        letter-spacing: 0.08em;
    }

    .section-hero {
        padding-top: calc(var(--header-h) + 40px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media print {
    .main-header,
    .main-footer,
    .cookie-consent,
    .hero-art {
        display: none !important;
    }

    body {
        background: #fff;
    }
}
