:root {
    --bg-light: #f5f1e8;
    --bg-dark: #11222b;
    --bg-dark-2: #0b1820;
    --text-dark: #111314;
    --text-light: #f2f5f6;
    --accent: #f0652a;
    --accent-soft: #ffab78;
    --accent-hover: #d85119;
    --accent-ghost-hover-bg: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.17);
    --max-width: 100%;
    --nav-height: 74px;
    --subnav-height: 46px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
}

a {
    text-decoration: none;
}

.site-container {
    width: 100%;
    padding-inline: clamp(1rem, 3vw, 2.8rem);
    margin-inline: 0;
}

.section-inner {
    width: 100%;
    max-width: none;
    padding-inline: clamp(1rem, 4.2vw, 4.2rem);
    margin-inline: auto;
}

.site-navbar {
    min-height: var(--nav-height);
    backdrop-filter: blur(14px);
    background: rgba(9, 20, 24, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-navbar .site-container {
    justify-content: flex-start;
    gap: 0.5rem;
}

.site-brand img {
    height: 42px;
}

.site-navbar .navbar-toggler {
    margin-left: auto;
}

.site-navbar .nav-link {
    color: rgba(245, 250, 251, 0.85);
    font-size: 1.02rem;
    border-radius: 999px;
    padding: 0.42rem 1rem;
}

@media (min-width: 992px) {
    .site-navbar .navbar-collapse {
        flex-grow: 0;
        justify-content: flex-start;
        margin-left: 0.5rem;
    }

    .site-navbar .navbar-nav {
        flex-wrap: wrap;
        margin-right: 0 !important;
    }

    .site-navbar .navbar-toggler {
        margin-left: 0;
    }
}

.site-navbar .nav-link.active,
.site-navbar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.site-navbar .dropdown-menu {
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(8, 17, 22, 0.98);
}

.site-navbar .dropdown-item {
    color: rgba(242, 245, 246, 0.92);
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.navbar-toggler-icon {
    background-image: url('/images/menu.png');
}

.site-offcanvas {
    background: linear-gradient(180deg, #09161d, #122733);
    color: #fff;
}

.site-offcanvas .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.2rem 0;
}

.site-offcanvas .nav-link.active {
    color: var(--accent-soft);
    text-decoration: underline;
    text-underline-offset: 0.22rem;
}

.site-offcanvas .nav-subitem {
    margin-left: 1rem;
    opacity: 0.86;
}

.subnav-wrap {
    position: fixed;
    top: var(--nav-height);
    width: 100%;
    height: var(--subnav-height);
    z-index: 1025;
    background: rgba(17, 34, 43, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.subnav-scroll {
    width: 100%;
    padding-inline: clamp(1rem, 3vw, 2.8rem);
    margin-inline: auto;
    height: 100%;
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    align-items: center;
    scrollbar-width: none;
}

.subnav-scroll::-webkit-scrollbar {
    display: none;
}

.subnav-link {
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
    padding: 0.52rem 0.95rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.subnav-link:hover {
    color: #fff;
    border-color: var(--accent);
}

.subnav-link.active,
.subnav-link.is-current {
    color: #fff;
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.site-main {
    margin-top: var(--nav-height);
}

body.has-subnav .site-main {
    margin-top: calc(var(--nav-height) + var(--subnav-height));
}

body.snap-enabled {
    overflow: hidden;
}

body.snap-enabled .site-main {
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: thin;
}

body.snap-enabled .snap-section {
    scroll-snap-align: start;
    min-height: calc(100vh - var(--nav-height));
}

body.snap-enabled.has-subnav .site-main {
    height: calc(100vh - (var(--nav-height) + var(--subnav-height)));
}

body.snap-enabled.has-subnav .snap-section {
    min-height: calc(100vh - (var(--nav-height) + var(--subnav-height)));
}

.snap-section {
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: clip;
}

.snap-section.is-current {
    outline: none;
}

.snap-section > .section-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(2.2rem, 5vh, 4.4rem);
}

.hero {
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    color: #fff;
    isolation: isolate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 20%, rgba(240, 101, 42, 0.3), transparent 44%), linear-gradient(135deg, rgba(12, 24, 31, 0.82), rgba(7, 15, 21, 0.8));
    z-index: -1;
}

.hero-inner h1 {
    font-size: clamp(2.8rem, 7vw, 6.2rem);
    margin-bottom: 1rem;
    line-height: 1.03;
    max-width: 20ch;
}

.hero-lead {
    max-width: 72ch;
    font-size: clamp(1.18rem, 2.6vw, 1.9rem);
}

.section-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 700;
}

.section-title {
    font-size: clamp(2.1rem, 4.4vw, 4rem);
    margin: 0 0 1rem;
}

.section-copy {
    font-size: clamp(1.08rem, 1.25vw, 1.34rem);
    line-height: 1.78;
    max-width: 78ch;
}

.section-intro {
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    line-height: 1.62;
    max-width: 78ch;
    margin-bottom: 1.1rem;
    opacity: 0.9;
}

.section-light {
    background: var(--bg-light);
    color: var(--text-dark);
}

.section-dark {
    background: linear-gradient(165deg, var(--bg-dark), var(--bg-dark-2));
    color: var(--text-light);
}

.section-dark .section-copy,
.section-dark .section-title {
    color: var(--text-light);
}

.feature-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.feature-list li {
    margin-bottom: 0.55rem;
}

.media-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.16);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
}

.media-shell img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero-actions {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.hero-highlights {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.hero-highlights::-webkit-scrollbar {
    display: none;
}

.hero-highlight {
    min-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.65rem 0.78rem;
}

.hero-highlight strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    line-height: 1.2;
}

.hero-highlight span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-accent,
.btn-accent-ghost {
    border-radius: 999px;
    padding: 0.62rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    color: #fff;
    background: var(--accent-hover);
}

.btn-accent-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-accent-ghost:hover {
    color: #fff;
    border-color: var(--accent-soft);
    background: var(--accent-ghost-hover-bg);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    padding: 1rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.section-light .service-card {
    background: rgba(17, 34, 43, 0.05);
    border-color: rgba(17, 34, 43, 0.2);
}

.service-card-image {
    width: 100%;
    height: clamp(90px, 12vw, 124px);
    object-fit: cover;
    margin-bottom: 0.8rem;
}

.service-card h3 {
    font-size: 1.32rem;
    margin: 0 0 0.5rem;
}

.service-card p {
    margin: 0;
    line-height: 1.72;
    font-size: 1.04rem;
    flex: 1;
}

.card-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    margin: 0 0 0.35rem;
    color: var(--accent);
    font-weight: 700;
}

.section-dark .card-eyebrow {
    color: var(--accent-soft);
}

.card-items {
    margin: 0.7rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
}

.card-items li {
    margin-bottom: 0.35rem;
}

.text-link {
    margin-top: 0.85rem;
    color: var(--accent-soft);
    font-weight: 700;
}

.section-light .text-link {
    color: var(--accent);
}

.contact-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    padding: 1rem;
}

.contact-form {
    background: transparent;
    border: 0;
    padding: 0;
}

.section-light .contact-box {
    background: rgba(17, 34, 43, 0.04);
    border-color: rgba(17, 34, 43, 0.2);
}

.section-light .contact-form {
    background: transparent;
    border: 0;
}

.contact-form label {
    font-size: 0.86rem;
    margin-bottom: 0.3rem;
    display: block;
}

.contact-form .form-control,
.contact-form .form-select,
.contact-form textarea.form-control {
    border: 0;
    border-bottom: 2px solid var(--accent);
    border-radius: 0 !important;
    box-shadow: none;
    background: transparent;
    color: inherit;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.contact-form .form-control:hover,
.contact-form .form-select:hover,
.contact-form textarea.form-control:hover {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 14%, transparent);
    transform: translateY(-1px);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus,
.contact-form textarea.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 22%, transparent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    transform: translateY(-1px);
}

.contact-form .form-select {
    background-image: none;
}

.contact-form .input-error {
    border-bottom-color: #d23b3b !important;
    box-shadow: none !important;
}

.contact-form .input-error:hover,
.contact-form .input-error:focus {
    background: rgba(210, 59, 59, 0.08) !important;
    box-shadow: 0 8px 18px rgba(210, 59, 59, 0.18) !important;
}

.contact-form .form-legend {
    margin: 0.5rem 0 0.7rem;
    font-size: 0.95rem;
}

.contact-form .form-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-form .form-check {
    position: relative;
    margin: 0;
    padding-left: 0;
}

.contact-form .form-check-inline-custom {
    margin-right: 0.25rem;
}

.contact-form .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-form .form-check-label {
    position: relative;
    padding-left: 2.1rem;
    cursor: pointer;
    user-select: none;
    margin: 0;
    display: inline-block;
}

.contact-form .form-check-input[type="checkbox"] + .form-check-label::before,
.contact-form .form-check-input[type="radio"] + .form-check-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.08rem;
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid color-mix(in srgb, var(--accent) 58%, #fff 42%);
    background-color: color-mix(in srgb, var(--accent) 26%, #121212 74%);
    box-shadow: inset 2px 2px 3px rgba(0, 0, 0, 0.45), inset -2px -2px 3px rgba(255, 255, 255, 0.2);
}

.contact-form .form-check-input[type="radio"] + .form-check-label::before {
    border-radius: 50%;
}

.contact-form .form-check-input[type="checkbox"]:checked + .form-check-label::after {
    content: "";
    position: absolute;
    left: 0.45rem;
    top: 0.21rem;
    width: 0.35rem;
    height: 0.7rem;
    border: solid var(--accent-soft);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.contact-form .form-check-input[type="radio"]:checked + .form-check-label::after {
    content: "";
    position: absolute;
    left: 0.4rem;
    top: 0.46rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--accent-soft);
}

.contact-form .form-options.input-error .form-check-label::before {
    border-color: #d23b3b;
}

.hp-field {
    position: absolute;
    left: -9999px;
}

.form-alert {
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--line);
}

.form-alert.error {
    border-color: rgba(222, 83, 83, 0.7);
}

.small-note {
    font-size: 0.82rem;
    opacity: 0.86;
}

.small-note a {
    color: var(--accent);
}

.small-note a:hover {
    opacity: 0.75;
}

.timeline-grid,
.reference-grid,
.link-tile-grid {
    display: grid;
    gap: 1rem;
}

.timeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-step {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem;
}

.section-light .timeline-step {
    background: rgba(17, 34, 43, 0.05);
    border-color: rgba(17, 34, 43, 0.2);
}

.timeline-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
    color: var(--accent);
}

.section-dark .timeline-number {
    color: var(--accent-soft);
}

.timeline-step h3 {
    margin: 0 0 0.55rem;
    font-size: 1.18rem;
}

.timeline-step p {
    margin: 0;
    line-height: 1.68;
    font-size: 1rem;
}

.reference-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reference-card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.section-light .reference-card {
    background: rgba(17, 34, 43, 0.05);
    border-color: rgba(17, 34, 43, 0.2);
}

.reference-card img {
    width: 100%;
    height: clamp(130px, 16vw, 170px);
    object-fit: cover;
    display: block;
}

.reference-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.reference-body h3 {
    font-size: 1.28rem;
    margin: 0 0 0.55rem;
}

.reference-body p {
    margin: 0;
    line-height: 1.67;
    font-size: 1rem;
    flex: 1;
}

.reference-tag {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
    color: var(--accent);
}

.section-dark .reference-tag {
    color: var(--accent-soft);
}

.link-tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.link-tile {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    padding: 1rem;
    display: block;
    min-height: 220px;
}

.section-light .link-tile {
    background: rgba(17, 34, 43, 0.05);
    border-color: rgba(17, 34, 43, 0.2);
}

.link-tile:hover {
    border-color: var(--accent);
    color: inherit;
}

.link-tile-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    margin: 0 0 0.4rem;
    color: var(--accent);
    font-weight: 700;
}

.section-dark .link-tile-kicker {
    color: var(--accent-soft);
}

.link-tile h3 {
    font-size: 1.3rem;
    margin: 0 0 0.6rem;
}

.link-tile p {
    margin: 0;
    line-height: 1.65;
    font-size: 1rem;
}

body.page-home {
    --accent: #f0652a;
    --accent-soft: #ffb084;
    --accent-hover: #d85119;
    --accent-ghost-hover-bg: rgba(240, 101, 42, 0.16);
    --bg-light: #f5f1e8;
    --bg-dark: #11222b;
    --bg-dark-2: #0b1820;
}

body.page-home .hero {
    background-position: center right;
}

body.page-home .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 154, 92, 0.24), transparent 46%),
        linear-gradient(90deg, rgba(9, 18, 23, 0.42) 0%, rgba(9, 18, 23, 0.1) 65%, transparent 100%);
    z-index: -1;
}

body.page-home .hero-inner h1 {
    max-width: 17ch;
    text-wrap: balance;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.page-home .hero-lead {
    max-width: 68ch;
    background: rgba(7, 15, 20, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.8rem 1rem;
}

body.page-home .section-light {
    background: linear-gradient(180deg, #faf7f0 0%, #f3ecdf 100%);
}

body.page-home .section-dark {
    background: linear-gradient(165deg, #11222b 0%, #0b1820 55%, #142833 100%);
}

body.page-home #services .service-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 234, 221, 0.95));
    border: 1px solid rgba(17, 34, 43, 0.2);
    box-shadow: 0 16px 30px rgba(17, 34, 43, 0.14);
}

body.page-home #services .service-card-image {
    height: 130px;
    object-fit: contain;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
}

body.page-home #services .service-card h3,
body.page-home #services .service-card p {
    color: #122029;
}

body.page-home #services .service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 101, 42, 0.5);
}

body.page-home #faq .service-card {
    background: rgba(17, 34, 43, 0.03);
    border-color: rgba(17, 34, 43, 0.15);
}

body.page-home .reference-card {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

body.page-home .link-tile {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

body.page-home .link-tile:hover {
    background: linear-gradient(180deg, rgba(240, 101, 42, 0.18), rgba(240, 101, 42, 0.08));
}

body.page-seo {
    --accent: #1e9a76;
    --accent-soft: #91f0d2;
    --accent-hover: #17795d;
    --accent-ghost-hover-bg: rgba(30, 154, 118, 0.18);
    --bg-light: #edf8f3;
    --bg-dark: #0d2a22;
    --bg-dark-2: #071a15;
}

body.page-webdesign {
    --accent: #207fc2;
    --accent-soft: #8bc9f2;
    --accent-hover: #17659c;
    --accent-ghost-hover-bg: rgba(32, 127, 194, 0.18);
    --bg-light: #eef4fa;
    --bg-dark: #10283f;
    --bg-dark-2: #091725;
}

body.page-beratung {
    --accent: #ce6c27;
    --accent-soft: #f2c291;
    --accent-hover: #ab5419;
    --accent-ghost-hover-bg: rgba(206, 108, 39, 0.2);
    --bg-light: #f8f1ea;
    --bg-dark: #2b1f16;
    --bg-dark-2: #1c130d;
}

body.page-beratung .section-title {
    max-width: 18ch;
}

body.page-beratung .section-variant-beratung-kern .section-inner {
    position: relative;
    background: linear-gradient(170deg, rgba(255, 249, 243, 0.98), rgba(246, 233, 221, 0.95));
    border: 1px solid rgba(206, 108, 39, 0.28);
    padding: 1.4rem;
    box-shadow: 0 22px 40px rgba(43, 31, 22, 0.16);
}

body.page-beratung .section-variant-beratung-kern .section-inner::before {
    content: "";
    position: absolute;
    left: -1.2rem;
    top: 50%;
    width: 22px;
    height: 22px;
    background: #ce6c27;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 7px rgba(206, 108, 39, 0.18);
}

body.page-beratung .section-variant-beratung-kern .section-copy {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(206, 108, 39, 0.25);
    padding: 0.62rem 0.78rem;
}

body.page-beratung .section-variant-beratung-prozess .timeline-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
    position: relative;
}

body.page-beratung .section-variant-beratung-prozess .timeline-grid::before {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 2.65rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(242, 194, 145, 0.55), rgba(242, 194, 145, 0.18));
    pointer-events: none;
}

body.page-beratung .section-variant-beratung-prozess .timeline-step {
    border: 1px solid rgba(242, 194, 145, 0.5);
    background: linear-gradient(180deg, rgba(48, 29, 20, 0.88), rgba(24, 14, 10, 0.93));
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

body.page-beratung .section-variant-beratung-prozess .timeline-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.05rem;
    height: 2.05rem;
    border: 1px solid rgba(242, 194, 145, 0.6);
    background: rgba(206, 108, 39, 0.42);
    border-radius: 50%;
    margin-bottom: 0.55rem;
}

body.page-beratung .section-variant-beratung-branchen .service-card {
    border: 1px solid rgba(206, 108, 39, 0.35);
    box-shadow: 0 16px 34px rgba(43, 31, 22, 0.14);
    min-height: 280px;
}

body.page-beratung .section-variant-beratung-branchen .service-card:nth-child(1) {
    background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(255, 232, 212, 0.96));
}

body.page-beratung .section-variant-beratung-branchen .service-card:nth-child(2) {
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(243, 235, 224, 0.96));
}

body.page-beratung .section-variant-beratung-branchen .service-card:nth-child(3) {
    background: linear-gradient(180deg, rgba(253, 247, 241, 0.98), rgba(249, 225, 205, 0.95));
}

body.page-beratung .section-variant-beratung-branchen .service-card h3,
body.page-beratung .section-variant-beratung-branchen .service-card p {
    color: #2b1f16;
}

body.page-beratung .section-variant-beratung-branchen .service-card-image {
    height: 132px;
}

body.page-beratung .section-variant-beratung-immobilien {
    background:
        linear-gradient(158deg, rgba(28, 19, 13, 0.95), rgba(20, 13, 9, 0.94)),
        radial-gradient(circle at 75% 22%, rgba(206, 108, 39, 0.22), transparent 48%);
}

body.page-beratung .section-variant-beratung-immobilien .media-shell {
    border: 2px solid rgba(242, 194, 145, 0.45);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

body.page-beratung .section-variant-beratung-immobilien .feature-list li {
    list-style-type: square;
}

body.page-beratung .section-variant-beratung-dienstleister .section-inner {
    background:
        linear-gradient(165deg, rgba(255, 245, 236, 0.96), rgba(250, 235, 222, 0.92)),
        repeating-linear-gradient(0deg, transparent, transparent 12px, rgba(206, 108, 39, 0.06) 12px, rgba(206, 108, 39, 0.06) 13px);
    border: 1px solid rgba(206, 108, 39, 0.25);
    border-left: 6px solid rgba(206, 108, 39, 0.52);
    padding: 1.2rem 1.2rem 1.2rem 1rem;
}

body.page-beratung .section-variant-beratung-dienstleister .section-title,
body.page-beratung .section-variant-beratung-dienstleister .section-copy {
    color: #2b1f16;
}

body.page-beratung .section-variant-beratung-dienstleister .feature-list li {
    position: relative;
    list-style: none;
    padding-left: 1.1rem;
}

body.page-beratung .section-variant-beratung-dienstleister .feature-list li::before {
    content: ">>";
    position: absolute;
    left: 0;
    color: #ce6c27;
    font-weight: 700;
}

body.page-angebote {
    --accent: #1c8d66;
    --accent-soft: #8fe2c6;
    --bg-light: #edf6f1;
    --bg-dark: #122e24;
    --bg-dark-2: #0a1e17;
}

body.page-kontakt {
    --accent: #c89a1e;
    --accent-soft: #f4df9a;
    --accent-hover: #aa7f10;
    --accent-ghost-hover-bg: rgba(200, 154, 30, 0.2);
    --bg-light: #fbf7e8;
    --bg-dark: #3e3310;
    --bg-dark-2: #2a220b;
}

body.page-seo .hero-overlay {
    background: radial-gradient(circle at 20% 15%, rgba(30, 154, 118, 0.32), transparent 45%), linear-gradient(145deg, rgba(10, 36, 29, 0.84), rgba(7, 20, 17, 0.8));
}

body.page-webdesign .hero-overlay {
    background: radial-gradient(circle at 80% 18%, rgba(32, 127, 194, 0.34), transparent 45%), linear-gradient(140deg, rgba(12, 35, 58, 0.83), rgba(8, 22, 35, 0.82));
}

body.page-beratung .hero-overlay {
    background: radial-gradient(circle at 32% 20%, rgba(206, 108, 39, 0.32), transparent 47%), linear-gradient(145deg, rgba(37, 25, 18, 0.84), rgba(23, 15, 10, 0.82));
}

body.page-angebote .hero-overlay {
    background: radial-gradient(circle at 65% 20%, rgba(28, 141, 102, 0.34), transparent 47%), linear-gradient(145deg, rgba(10, 35, 26, 0.84), rgba(8, 23, 18, 0.82));
}

body.page-kontakt .hero-overlay {
    background: radial-gradient(circle at 25% 15%, rgba(200, 154, 30, 0.35), transparent 47%), linear-gradient(145deg, rgba(62, 51, 16, 0.86), rgba(42, 34, 11, 0.84));
}

.cta-footer .section-inner {
    width: 100%;
    max-width: none;
}

.footer-cta {
    border: 1px solid var(--line);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
}

.site-footer {
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.3rem;
}

.site-footer h3 {
    font-size: 1rem;
    margin-top: 0;
}

.site-footer a,
.site-footer span,
.site-footer p {
    color: rgba(242, 245, 246, 0.86);
    display: block;
    margin-bottom: 0.38rem;
    font-size: 0.92rem;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 0.8rem;
    opacity: 0.8;
    font-size: 0.88rem;
}

/* SEO page footer: full-width layout aligned to the bottom of the 100vh section */
body.page-seo .cta-footer > .section-inner {
    justify-content: flex-end;
    padding-inline: 0;
    padding-block: 0;
}

body.page-seo .footer-cta,
body.page-seo .site-footer {
    width: 100%;
    max-width: none;
    margin: 0;
    border-left: 0;
    border-right: 0;
}

body.page-seo .footer-cta {
    padding: clamp(1.4rem, 2.8vw, 2.4rem) clamp(1rem, 4vw, 4rem);
}

body.page-seo .site-footer {
    padding: clamp(1.2rem, 2.4vw, 2.1rem) clamp(1rem, 4vw, 4rem);
}

body.page-seo .footer-bottom {
    width: 100%;
    margin-top: 0;
    padding: 0.9rem clamp(1rem, 4vw, 4rem) 1.1rem;
    border-top: 1px solid var(--line);
    background: rgba(7, 26, 21, 0.88);
}

@media (max-width: 991.98px) {
    body.snap-enabled {
        overflow: auto;
    }

    body.snap-enabled .site-main {
        height: auto;
        overflow: visible;
        scroll-snap-type: none;
    }

    body.snap-enabled .snap-section {
        min-height: auto;
        padding: 5rem 0;
    }

    .snap-section > .section-inner {
        min-height: auto;
        padding-block: clamp(1.8rem, 5vw, 3.2rem);
    }

    .hero {
        min-height: calc(100vh - var(--nav-height));
    }

    body.has-subnav .hero {
        min-height: calc(100vh - (var(--nav-height) + var(--subnav-height)));
    }

    .card-track {
        display: flex;
        overflow-x: auto;
        gap: 0.9rem;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.4rem;
    }

    .service-card {
        min-width: min(82vw, 320px);
        scroll-snap-align: center;
    }

    .hero-highlight {
        min-width: min(82vw, 340px);
    }

    .timeline-grid,
    .reference-grid,
    .link-tile-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.9rem;
        padding-bottom: 0.4rem;
    }

    .timeline-step,
    .reference-card,
    .link-tile {
        min-width: min(84vw, 340px);
        scroll-snap-align: center;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }

    body.page-beratung .section-variant-beratung-prozess .timeline-grid {
        grid-template-columns: unset;
    }

    body.page-beratung .section-variant-beratung-kern .section-inner::before {
        display: none;
    }

    body.page-beratung .section-variant-beratung-dienstleister .section-inner {
        padding: 0.9rem;
    }
}

/* Legacy helper classes used in legal/utility pages */
.bg77 {
    background: var(--bg-dark) !important;
    color: var(--text-light) !important;
}

.text77 {
    color: var(--accent-soft) !important;
}

.link77 {
    color: var(--accent) !important;
}

.hr77 {
    border: 0;
    border-top: 1px solid var(--line);
}

.btn77,
.btn77-outline {
    border-radius: 0;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--accent);
}

.btn77 {
    background: var(--accent);
    color: #fff;
}

.btn77-outline {
    background: transparent;
    color: var(--accent-soft);
}
