:root {
    --ivan-home-bg: #f5efe6;
    --ivan-home-body-bg: #ffffff;
    --ivan-home-surface: #fffaf4;
    --ivan-home-surface-strong: #fffdf8;
    --ivan-home-line: rgba(40, 45, 40, 0.1);
    --ivan-home-text: #1f2b29;
    --ivan-home-text-soft: #5d6964;
    --ivan-home-green: #1d1d1d;
    --ivan-home-green-2: #15312b;
    --ivan-home-clay: #c4572c;
    --ivan-home-clay-dark: #943d1c;
    --ivan-home-gold: #d89b2d;
    --ivan-home-mist: #e8e0ec;
    --ivan-home-sage: #dce6df;
    --ivan-home-ember: #d5761f;
    --ivan-home-shadow: 0 28px 80px rgba(33, 34, 30, 0.08);
    --ivan-home-radius-xl: 38px;
    --ivan-home-radius-lg: 28px;
    --ivan-home-radius-md: 20px;
    --ivan-home-max: 1520px;
}

html {
    scroll-behavior: smooth;
}

body.ivan-home-page {
    margin: 0;
    color: var(--ivan-home-text);
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
    background: var(--ivan-home-body-bg);
}

body.ivan-home-page * {
    box-sizing: border-box;
}

body.ivan-home-page img {
    display: block;
    max-width: 100%;
}

body.ivan-home-page a {
    color: inherit;
    text-decoration: none;
}

.ivan-home {
    position: relative;
    overflow: visible;
    min-height: 100vh;
    background: var(--ivan-home-body-bg);
}

body.ivan-home-page #smooth-wrapper,
body.ivan-home-page #smooth-content,
body.ivan-home-page #page {
    background: transparent !important;
}

.ivan-shell {
    width: min(calc(100% - 32px), var(--ivan-home-max));
    margin: 0 auto;
}

.ivan-kicker {
    margin: 0 0 14px;
    color: var(--ivan-home-surface);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ivan-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(145, 145, 145, 0.12);
    background: rgb(249 249 249 / 68%);
    backdrop-filter: blur(18px);
}

.admin-bar .ivan-header {
    top: 32px;
}

body.ivan-home-page .ivan-home > main {
    padding-top: 144px;
}

body.ivan-legal-page .ivan-home > main {
    padding-top: 184px;
}

.ivan-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 16px 22px;
    border-radius: 24px;
 

    transition: padding 0.2s ease, border-radius 0.2s ease, background-color 0.2s ease;
}

@media (min-width: 841px) {
    .ivan-header.is-scrolled .ivan-header__inner {
        padding: 0 22px;
    }
}

.ivan-header__brand img {
    width: clamp(200px, 14vw, 176px);
}

.ivan-header__nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ivan-header__nav a,
.ivan-header__phone {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 600;
}

.ivan-header__nav a {
    color: var(--ivan-home-text-soft);
}

.ivan-header__nav a:hover,
.ivan-header__nav a:focus {
    background: rgba(196, 87, 44, 0.1);
    color: var(--ivan-home-text);
}

.ivan-header__phone {
    color: #fff !important;
    color: #fff;
    background: linear-gradient(135deg, var(--ivan-home-green) 0%, var(--ivan-home-green-2) 100%);
    box-shadow: 0 16px 28px rgba(21, 49, 43, 0.2);
}

.ivan-hero {
    padding: 80px 0 34px;
}

.ivan-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 40px;
    align-items: center;
    min-height: 78vh;
    padding: clamp(34px, 5vw, 58px);
    border-radius: var(--ivan-home-radius-xl);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 22%),
        radial-gradient(circle at right 18%, rgba(255, 255, 255, 0.08), transparent 26%),
        linear-gradient(240deg, #a80000 0%, #7c45e4 30%, #2d6fb3 64%, #16385f 100%);
    box-shadow: var(--ivan-home-shadow);
}

.ivan-hero h1,
.ivan-section-head h2,
.ivan-process__intro h2,
.ivan-contact__copy h2 {
    margin: 0;
    font-family: "PT Serif", serif;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.ivan-hero h1 {
    max-width: 10ch;
    color: #fffaf4;
    font-size: clamp(2.9rem, 5.8vw, 5.8rem);
    text-wrap: balance;
}

.ivan-hero__lead,
.ivan-section-head p,
.ivan-process__intro p,
.ivan-contact__copy p {
    color: rgba(255, 250, 244, 0.82);
    font-size: 1.08rem;
    line-height: 1.8;
}

.ivan-hero__lead {
    max-width: 56ch;
    margin: 22px 0 0;
}

.ivan-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.ivan-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ivan-button:hover,
.ivan-button:focus {
    transform: translateY(-1px);
}

.ivan-button--primary {
    color: var(--ivan-home-text);
    background: #f4f9ff;
    box-shadow: 0 16px 30px rgba(18, 52, 93, 0.18);
}

.ivan-button--ghost {
    color: #fff7ef;
    border: 1px solid rgba(255, 247, 239, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

#leistungen,
#ablauf,
#kontakt,
#impressum,
#datenschutz {
    scroll-margin-top: 128px;
}

.ivan-hero__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.ivan-hero__facts article {
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff7ef;
}

.ivan-hero__facts strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.ivan-hero__facts span {
    color: rgba(255, 247, 239, 0.8);
    line-height: 1.65;
}

.ivan-hero__visual {
    position: relative;
    min-height: 100%;
}

.ivan-hero__image-wrap {
    height: 100%;
    min-height: 560px;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.15);
    border-radius: 34px;
    box-shadow: 0 30px 60px rgba(43, 21, 12, 0.22);
}

.ivan-hero__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ivan-hero__card {
    position: absolute;
    max-width: 240px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: rgba(244, 249, 255, 0.92);
    box-shadow: 0 18px 44px rgba(17, 48, 86, 0.16);
}

.ivan-hero__card span {
    display: block;
    margin-bottom: 6px;
    color: #255890;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ivan-hero__card strong {
    font-size: 1rem;
    line-height: 1.5;
}

.ivan-hero__card--top {
    top: 28px;
    left: -28px;
}

.ivan-hero__card--bottom {
    right: -18px;
    bottom: 26px;
}

.ivan-highlights {
    padding: 14px 0 70px;
}

.ivan-highlights__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ivan-highlights article {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: var(--ivan-home-radius-lg);
    background: rgba(255, 252, 248, 0.82);
    box-shadow: 0 18px 44px rgba(34, 35, 31, 0.06);
}

.ivan-highlights span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(36, 69, 61, 0.08);
    color: var(--ivan-home-green);
    font-weight: 700;
}

.ivan-highlights h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.ivan-highlights p,
.ivan-service p,
.ivan-process__steps p,
.ivan-contact__details span,
.ivan-contact__details a,
.ivan-contact__form .wpcf7 {
    color: var(--ivan-home-text-soft);
    line-height: 1.8;
}

.ivan-services,
.ivan-process,
.ivan-contact {
    padding: 44px 0 100px;
}

.ivan-section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.82fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 30px;
}

.ivan-section-head h2,
.ivan-process__intro h2,
.ivan-contact__copy h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: var(--ivan-home-text);
}

.ivan-section-head p,
.ivan-process__intro p,
.ivan-contact__copy p {
    margin: 0;
    color: var(--ivan-home-text-soft);
}

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

.ivan-service {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(220px, 0.85fr);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: var(--ivan-home-radius-xl);
    box-shadow: var(--ivan-home-shadow);
}

.ivan-service--terra {
    background: rgba(168, 0, 0, 0.1);
}

.ivan-service--ember {
    background: rgba(45, 111, 179, 0.1);
}

.ivan-service--mist {
    background: rgba(90, 63, 178, 0.1);
}

.ivan-service--sage {
    background: rgba(22, 56, 95, 0.1);
}

.ivan-service--terra .ivan-service__body,
.ivan-service--ember .ivan-service__body,
.ivan-service--mist .ivan-service__body,
.ivan-service--sage .ivan-service__body {
    color: #111;
}

.ivan-service--terra p,
.ivan-service--ember p,
.ivan-service--mist p,
.ivan-service--sage p {
    color: #111;
}

.ivan-service__eyebrow {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.82;
}

.ivan-service h3 {
    margin: 0 0 16px;
    font-family: "PT Serif", serif;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.ivan-service p {
    margin: 0;
    font-size: 1.02rem;
}

.ivan-service__media {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 24px 40px rgba(20, 20, 18, 0.14);
}

.ivan-service__media img {
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
}

.ivan-band {
    padding: 0 0 54px;
}

.ivan-band__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 24px;
    border: 1px solid rgba(36, 69, 61, 0.08);
    border-radius: 22px;
    background: rgba(255, 252, 248, 0.72);
}

.ivan-band__inner p {
    margin: 0;
    color: var(--ivan-home-green);
    font-weight: 600;
    line-height: 1.7;
}

.ivan-process__grid,
.ivan-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 28px;
    align-items: start;
}

.ivan-process__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ivan-process__steps article {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 26px;
    background: rgba(255, 252, 248, 0.84);
    box-shadow: 0 14px 36px rgba(36, 38, 33, 0.05);
}

.ivan-process__steps strong {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--ivan-home-clay-dark);
    font-size: 0.92rem;
    letter-spacing: 0.12em;
}

.ivan-process__steps h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.ivan-contact__grid {
    padding: clamp(28px, 4vw, 46px);
    border-radius: var(--ivan-home-radius-xl);
    background: linear-gradient(135deg, #414141 0%, #141414 100%);
    box-shadow: 0 30px 70px rgba(18, 26, 24, 0.18);
}

.ivan-contact__copy h2,
.ivan-contact__copy p,
.ivan-contact__details span,
.ivan-contact__details a {
    color: #fff7ef;
}

.ivan-contact__copy p {
    opacity: 0.82;
}

.ivan-contact__details {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.ivan-contact__details div {
    display: grid;
    gap: 6px;
}

.ivan-contact__details a {
    font-weight: 700;
}

.ivan-contact__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ivan-contact__legal a {
    color: #fff7ef;
    font-weight: 700;
}

.ivan-contact__grid a,
.ivan-contact__grid a:visited,
.ivan-contact__grid .wpcf7 a,
.ivan-contact__grid .wpcf7 a:visited {
    color: #fff7ef !important;
}

.ivan-contact__form {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
}

.ivan-contact__form .wpcf7 {
    margin: 0;
}

.ivan-contact__form .wpcf7 form {
    display: grid;
    gap: 16px;
}

.ivan-contact__form label,
.ivan-contact__form .policy,
.ivan-contact__form .wpcf7-list-item-label {
    color: rgba(255, 247, 239, 0.86);
    font-size: 0.95rem;
}

.ivan-contact__form input[type="text"],
.ivan-contact__form input[type="email"],
.ivan-contact__form input[type="tel"],
.ivan-contact__form textarea {
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
}

.ivan-contact__form textarea {
    min-height: 150px;
    resize: vertical;
}

.ivan-contact__form input::placeholder,
.ivan-contact__form textarea::placeholder {
    color: rgba(255, 247, 239, 0.54);
}

.ivan-contact__form .wpcf7-submit {
    min-height: 56px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ivan-home-clay) 0%, var(--ivan-home-clay-dark) 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.ivan-contact__form .wpcf7-spinner {
    display: none;
}

.ivan-contact__form .wpcf7-response-output {
    margin: 8px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    color: #fff7ef;
}

.ivan-contact__panel {
    display: grid;
    align-content: start;
    gap: 16px;
}

.ivan-contact__panel h3 {
    margin: 0;
    color: #fff7ef;
    font-family: "PT Serif", serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
}

.ivan-contact__panel p {
    margin: 0;
    color: rgba(255, 247, 239, 0.82);
    line-height: 1.8;
}

.ivan-contact__panel .ivan-kicker {
    margin-bottom: 0;
    color: rgba(255, 247, 239, 0.7);
}

.ivan-contact__panel-links {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.ivan-contact__panel-links a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff7ef !important;
    font-weight: 700;
}

.ivan-page {
    padding: 36px 0 28px;
}

.ivan-page__hero {
    padding: 22px 0 24px;
}

.ivan-page__hero-inner {
    padding: clamp(28px, 4vw, 42px);
    border-radius: var(--ivan-home-radius-xl);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 26%),
        radial-gradient(circle at right 18%, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(240deg, #a80000 0%, #7c45e4 30%, #2d6fb3 64%, #16385f 100%);
    box-shadow: var(--ivan-home-shadow);
}

.ivan-page__hero-inner .ivan-kicker {
    color: rgba(244, 249, 255, 0.84);
}

.ivan-page__hero-inner h1 {
    margin: 0;
    color: #fff8f1;
    font-family: "PT Serif", serif;
    font-size: clamp(2.4rem, 4.8vw, 4.6rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.ivan-page__hero-inner p:last-child {
    max-width: 58ch;
    margin: 18px 0 0;
    color: rgba(255, 248, 241, 0.84);
    font-size: 1.05rem;
    line-height: 1.8;
}

.ivan-page__content {
    padding: 16px 0 36px;
}

.ivan-page__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.ivan-copy-card {
    padding: 28px 30px;
    border: 1px solid rgba(53, 111, 174, 0.14);
    border-radius: 28px;
    background: rgba(247, 250, 255, 0.94);
    box-shadow: 0 16px 36px rgba(24, 59, 97, 0.08);
}

.ivan-copy-card--wide {
    grid-column: 1 / -1;
}

.ivan-copy-card .ivan-kicker {
    color: #255890;
}

.ivan-copy-card h2 {
    margin: 0 0 14px;
    color: #183b61;
    font-family: "PT Serif", serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
}

.ivan-copy-card p,
.ivan-copy-card a {
    margin: 0 0 10px;
    color: #4d6278;
    line-height: 1.9;
}

.ivan-copy-card a {
    color: #255890;
    font-weight: 700;
}

.ivan-legal-copy > :first-child {
    margin-top: 0;
}

.ivan-legal-copy h3,
.ivan-legal-copy h4 {
    margin: 28px 0 10px;
    color: #183b61;
    font-family: "PT Serif", serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.ivan-legal-copy h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.ivan-legal-copy h4 {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0;
}

.ivan-legal-copy p,
.ivan-legal-copy li,
.ivan-legal-copy code {
    color: #4d6278;
    font-size: 1rem;
    line-height: 1.9;
}

.ivan-legal-copy ul {
    margin: 12px 0 16px;
    padding-left: 22px;
}

.ivan-legal-copy li {
    margin-bottom: 8px;
}

.ivan-legal-copy code {
    padding: 0.08em 0.35em;
    border-radius: 8px;
    background: rgba(37, 88, 144, 0.08);
}

@media (max-width: 1180px) {
    .ivan-hero__grid,
    .ivan-section-head,
    .ivan-process__grid,
    .ivan-contact__grid,
    .ivan-page__grid,
    .ivan-services__grid,
    .ivan-highlights__grid,
    .ivan-band__inner {
        grid-template-columns: 1fr;
    }

    .ivan-services__grid,
    .ivan-highlights__grid {
        gap: 20px;
    }

    .ivan-service {
        grid-template-columns: 1fr;
    }

    .ivan-service__media img {
        aspect-ratio: 16 / 10;
    }

    .ivan-hero__visual {
        min-height: auto;
    }

    .ivan-hero__image-wrap {
        min-height: 460px;
    }
}

@media (max-width: 840px) {
    .ivan-shell {
        width: min(calc(100% - 24px), var(--ivan-home-max));
    }

    .ivan-header {
        position: static;
    }

    .ivan-header__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        border-radius: 28px;
        text-align: center;
    }

    .ivan-header__nav {
        justify-content: center;
    }

    .ivan-header__phone {
        width: 100%;
        justify-content: center;
    }

    body.ivan-home-page .ivan-home > main {
        padding-top: 0;
    }

    body.ivan-legal-page .ivan-home > main {
        padding-top: 0;
    }

    .ivan-hero {
        padding-top: 24px;
    }

    .ivan-hero__grid {
        min-height: auto;
        padding: 26px;
        border-radius: 28px;
    }

    .ivan-hero h1 {
        font-size: clamp(2.6rem, 13vw, 4.6rem);
    }

    .ivan-hero__lead {
        font-size: 1rem;
    }

    .ivan-hero__facts,
    .ivan-process__steps {
        grid-template-columns: 1fr;
    }

    .ivan-hero__image-wrap {
        min-height: 360px;
    }

    .ivan-hero__card {
        position: static;
        max-width: none;
        margin-top: 16px;
    }

    .ivan-service,
    .ivan-highlights article,
    .ivan-process__steps article,
    .ivan-copy-card,
    .ivan-contact__form {
        border-radius: 24px;
    }

    .ivan-services,
    .ivan-process,
    .ivan-contact {
        padding: 34px 0 74px;
    }

    .ivan-process__intro {
        padding: 0 10px 10px;
    }
}

@media (max-width: 782px) {
    .admin-bar .ivan-header {
        top: 0;
    }
}
