/* ==========================================================================
   Fonts (self-hosted variable fonts, one file per unicode subset)
   ========================================================================== */

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/roboto-normal-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/roboto-normal-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Roboto";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/roboto-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Roboto";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/roboto-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Roboto Slab";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/roboto-slab-normal-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Roboto Slab";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/roboto-slab-normal-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Poppins is only used in the regular weight, so these are static fonts */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-normal-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-normal-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
    --color-primary: #0053a1;
    --color-secondary: #54595f;
    --color-text: #7a7a7a;
    --color-whatsapp: #25d366;
    --color-white: #ffffff;
    --color-error: #c62828;
    --color-border: #69727d;

    --font-primary: "Roboto", sans-serif;
    --font-secondary: "Roboto Slab", serif;
    --font-tertiary: "Poppins", sans-serif;

    --container-width: 1140px;
    --header-width: 1200px;
    --header-height: 108px;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

p {
    margin: 0 0 0.9rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: 16px;
}

.visually-hidden,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 5px;
    left: 5px;
    z-index: 100;
    padding: 12px 24px;
    background: #eeeeee;
    color: #333333;
    font-size: 1rem;
    line-height: normal;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--color-white);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: var(--header-width);
    min-height: var(--header-height);
    margin-inline: auto;
    padding-inline: 16px;
}

.site-header__logo img {
    display: block;
    width: 280px;
}

.main-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    position: relative;
    display: block;
    padding: 13px 20px;
    color: var(--color-primary);
    font-family: var(--font-secondary);
    font-weight: 400;
}

/* Double-line pointer above and below the active/hovered item */
.main-nav a::before,
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.main-nav a::before {
    top: 0;
}

.main-nav a::after {
    bottom: 0;
}

.main-nav a:hover::before,
.main-nav a:hover::after,
.main-nav a:focus-visible::before,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::before,
.main-nav a[aria-current="page"]::after {
    opacity: 1;
}

/* Framed burger button on a light grey background; shows an X while the menu is open */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5.5px;
    border: 2px solid currentColor;
    border-radius: 3px;
    background: rgb(0 0 0 / 5%);
    color: var(--color-primary);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Only on devices that really hover; on touch screens :hover would stick after a tap */
@media (hover: hover) {
    .menu-toggle:hover {
        color: var(--color-white);
    }
}

.menu-toggle__icon {
    display: block;
    width: 22px;
    height: 22px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon--open,
.menu-toggle:not([aria-expanded="true"]) .menu-toggle__icon--close {
    display: none;
}

@media (max-width: 767px) {
    /* Logo in the left 75%, button centred in the remaining 25% */
    .site-header__logo {
        flex: 0 0 75%;
    }

    .site-header__logo img {
        width: 200px;
    }

    .menu-toggle {
        display: flex;
        margin: 10px auto 0;
    }

    /* Collapsed to zero height; the grid row lets the menu slide open to its natural height.
       visibility keeps the hidden links out of the tab order once the menu has closed. */
    .main-nav {
        display: grid;
        grid-template-rows: 0fr;
        flex-basis: 100%;
        visibility: hidden;
    }

    .main-nav.is-open {
        grid-template-rows: 1fr;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
        text-align: center;
    }

    .main-nav a {
        -webkit-tap-highlight-color: transparent;
    }

    .main-nav a[aria-current="page"] {
        background: var(--color-primary);
        color: var(--color-white);
    }

    .main-nav a:active {
        background: rgb(0 0 0 / 5%);
    }

    .main-nav a::before,
    .main-nav a::after {
        display: none;
    }
}

@media (max-width: 767px) and (hover: hover) {
    .main-nav a:hover {
        background: var(--color-primary);
        color: var(--color-white);
    }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
    .main-nav {
        transition: grid-template-rows 0.3s ease, visibility 0s 0.3s;
    }

    .main-nav.is-open {
        transition: grid-template-rows 0.3s ease, visibility 0s;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    color: var(--color-primary);
    font-family: var(--font-secondary);
}

.site-footer__main {
    padding-inline: 4%;
    border-block: 2px solid var(--color-primary);
}

.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
    min-height: 300px;
    padding-block: 40px;
}

.site-footer__columns > .site-footer__column:first-child p {
    text-align: justify;
}

.site-footer__heading {
    margin: 0 0 16px;
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 400;
}

.site-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__list li + li {
    margin-top: 4px;
}

.site-footer__icon {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    vertical-align: -1px;
}

.site-footer__bar {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 15px;
}

.site-footer__bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 10px;
}

.site-footer__bar p {
    margin: 0;
}

.site-footer__legal {
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Separator line of 60% of the item height, centred in the gap */
.site-footer__legal li {
    position: relative;
    display: flex;
    align-items: center;
}

.site-footer__legal li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20%;
    right: -18px;
    height: 60%;
    border-inline-start: 1px solid var(--color-white);
}

.site-footer__bar a {
    color: var(--color-white);
}

.site-footer__bar a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    /* First column centred across the full width, the other three side by side below it */
    .site-footer__columns {
        grid-template-columns: 28fr 33fr 36fr;
    }

    .site-footer__columns > .site-footer__column:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    .site-footer__columns > .site-footer__column:first-child p {
        text-align: center;
    }

    .site-footer__bar-inner {
        flex-direction: column-reverse;
    }
}

@media (max-width: 767px) {
    .site-footer__columns {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 3px;
    font-family: var(--font-secondary);
    font-size: 15px;
    line-height: 1;
}

.button__icon {
    width: 1.2em;
    height: 1.2em;
}

.button--whatsapp,
.button--whatsapp:hover {
    background: var(--color-whatsapp);
    color: var(--color-white);
}

.button--large {
    gap: 10px;
    padding: 17px 40px;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-weight: 500;
}

/* Solid blue button that turns white with a blue outline on hover */
.button--primary {
    border: 2px solid var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
    transition: background-color 0.3s, color 0.3s;
}

.button--primary:hover,
.button--primary:focus-visible {
    background: var(--color-white);
    color: var(--color-primary);
}

.button--xl {
    justify-content: center;
    min-height: 72px;
    padding: 20px 150px;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 500;
}

@media (max-width: 767px) {
    .button--large {
        padding-inline: 24px;
    }

    .button--xl {
        padding-inline: 50px;
    }
}

/* ==========================================================================
   Section titles (heading with a short blue line underneath)
   ========================================================================== */

/*
 * --title-shift moves the heading text to the left of the content edge while the line
 * underneath stays aligned with the content.
 */
.section-title {
    margin: 0 0 40px var(--title-shift, 0px);
    font-size: 29px;
}

.section-title::after {
    content: "";
    display: block;
    width: 187px;
    max-width: 100%;
    margin-top: 40px;
    margin-left: calc(-1 * var(--title-shift, 0px));
    border-top: 2px solid var(--color-primary);
}

.section-title--xl {
    font-size: 39px;
}

.section-title--slab {
    font-family: var(--font-secondary);
    font-weight: 400;
}

.section-title--center {
    text-align: center;
}

.section-title--center::after {
    margin-inline: auto;
}

@media (max-width: 767px) {
    .section-title--center {
        text-align: start;
    }

    .section-title--center::after {
        margin-inline: 0;
    }
}

/* ==========================================================================
   Entrance animations
   ========================================================================== */

/*
 * Elements with data-animate stay hidden until main.js marks them with .is-animated
 * when they scroll into view. Section titles fade their text via the colour, so the
 * line underneath can follow its own delay.
 */
@media (prefers-reduced-motion: no-preference) {
    .js [data-animate]:not(.is-animated) {
        visibility: hidden;
    }

    .js [data-animate].is-animated {
        animation: 1.25s ease var(--animate-delay, 0ms) both;
    }

    .js [data-animate="fade-in"].is-animated {
        animation-name: fade-in;
    }

    .js [data-animate="slide-in-right"].is-animated {
        animation-name: slide-in-right;
    }

    .js .section-title[data-animate].is-animated {
        animation-name: fade-in-text;
    }

    .js .section-title[data-animate].is-animated::after {
        animation: fade-in 1.25s ease var(--animate-line-delay, var(--animate-delay, 0ms)) both;
    }

    .js .section-title[data-animate-line="static"]::after {
        visibility: visible;
    }

    .js .section-title[data-animate-line="static"].is-animated::after {
        animation: none;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-in-text {
    from {
        color: transparent;
    }
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* ==========================================================================
   Home page
   ========================================================================== */

/* Hero: text on the left, photo covering the right 58.5% of the viewport */
.hero {
    position: relative;
    min-height: 93.3vh;
    overflow: hidden;
    border-top: 2px solid var(--color-primary);
}

.hero__image {
    position: absolute;
    top: 0;
    right: 0;
    width: 58.5%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-top: 5vh;
    padding-bottom: 40px;
}

/* Never wider than the space left of the photo (which starts at 41.5vw), minus a 32px gap;
   the content's left edge is the container's left padding: max(16px, centred offset + 16px) */
.hero__content > * {
    max-width: min(38%, calc(41.5vw - max(16px, 50vw - var(--container-width) / 2 + 16px) - 32px));
}

.hero .section-title {
    --title-shift: -28px;
}

.hero__tagline {
    margin: 2vh 0 3vh;
    color: var(--color-primary);
    font-family: var(--font-secondary);
    font-size: 27px;
    line-height: 35px;
}

.hero__lead {
    margin: 0;
    font-size: 20px;
    line-height: 25px;
}

.hero__badge {
    display: block;
    width: 170px;
    margin-top: 25px;
}

.hero__badge img {
    display: block;
}

/* About: portrait on the left, personal introduction on the right */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
    min-height: 650px;
    padding: 60px 4%;
}

.about__photo {
    justify-self: end;
}

.about__text {
    padding-right: 9%;
}

.about__text p:last-of-type {
    margin-bottom: 40px;
}

.about__name {
    color: var(--color-primary);
}

/* Services: four image boxes */
.services {
    max-width: 1589px;
    margin-inline: auto;
    padding: 40px 4% 3vh;
}

.services .section-title {
    margin-bottom: 50px;
    font-size: 2rem;
}

.services .section-title::after {
    margin-top: 45px;
}

.services__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 60px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service__image {
    display: block;
    width: 100%;
    margin-bottom: 34px;
    transition: filter 0.3s;
}

.service:hover .service__image {
    filter: brightness(110%) saturate(120%);
}

.service__title {
    margin: 0 0 16px;
    font-size: 1.5rem;
}

.service p {
    margin: 0;
}

/* Awards: partner badge and certificates in one centered row */
.awards {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px 80px;
    max-width: 1080px;
    margin-inline: auto;
    padding: 3vh 16px;
}

.awards img {
    display: block;
    width: 200px;
}

/* Testimonials, preceded by the link to the current offers */
.testimonials {
    padding-block: 6vh 50px;
}

.testimonials__offers {
    margin: 0 0 10vh;
    text-align: center;
}

.testimonials__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 5%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.testimonial {
    margin: 0;
}

.testimonial__quote {
    margin: 0 0 20px;
    color: var(--color-primary);
    font-size: 1.3em;
}

.testimonial__quote p {
    margin: 0;
}

.testimonial__name {
    color: var(--color-primary);
    font-weight: 600;
}

.rating {
    margin: 4px 0 24px;
    color: #fec000;
    font-size: 25px;
    letter-spacing: 5.5px;
    line-height: 1;
}

/* Sale: large photo of Trier next to the closing text */
.sale {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    padding-right: 5%;
}

.sale__image {
    display: block;
    width: calc(100% - 60px);
    margin-left: 50px;
}

.sale__text {
    padding-left: 11%;
}

.contact-cta {
    margin-block: 50px 5vh;
    text-align: center;
}

@media (max-width: 1024px) {
    .hero {
        min-height: 70vh;
    }

    .hero__image {
        width: 58vw;
    }

    .hero__content > * {
        max-width: 40%;
    }

    .hero .section-title {
        --title-shift: -6px;
    }

    /* Text on the left, portrait on the right */
    .about {
        grid-template-columns: 1fr 40%;
        gap: 40px;
        min-height: 601px;
    }

    .about__photo {
        order: 1;
        justify-self: stretch;
        height: 500px;
        padding-top: 25px;
        object-fit: contain;
    }

    .about__text {
        padding-right: 6%;
    }

    .services {
        margin-top: 5%;
        padding-inline: 5%;
    }

    .services__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials {
        padding: 5%;
    }

    .sale {
        grid-template-columns: 1fr;
        padding-right: 0;
    }

    .sale__image {
        width: 100%;
        margin-left: 0;
    }

    .sale__text {
        padding: 5% 5% 0 10%;
    }
}

@media (max-width: 767px) {
    /* Stack the hero: photo on top, text below */
    .hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .hero__image {
        position: static;
        width: 100%;
        height: 46vh;
    }

    .hero__content {
        padding: 20px 6% 0;
    }

    .hero__content > * {
        max-width: none;
    }

    .hero .section-title {
        --title-shift: -3px;
        margin-bottom: 35px;
    }

    .hero .section-title::after {
        margin-top: 35px;
    }

    .hero__tagline {
        margin-top: 0;
    }

    .hero__badge {
        width: 150px;
        margin-top: 20px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
        padding: 10% 6%;
    }

    .about__photo {
        order: 0;
        justify-self: start;
        height: 60vh;
        object-fit: contain;
        object-position: left center;
    }

    .about__text {
        padding: 10% 0 0;
    }

    .about__text .section-title {
        margin-bottom: 30px;
        font-size: 22px;
    }

    .about__text .section-title::after {
        margin-top: 30px;
    }

    .services {
        padding: 0 6% 10%;
    }

    .services .section-title {
        margin-bottom: 35px;
    }

    .services .section-title::after {
        margin-top: 35px;
    }

    .testimonials .section-title {
        margin-bottom: 30px;
    }

    .testimonials .section-title::after {
        margin-top: 30px;
    }

    .sale .section-title {
        margin-bottom: 35px;
    }

    .sale .section-title::after {
        margin-top: 35px;
    }

    .services__list {
        grid-template-columns: 1fr;
    }

    .service__image {
        margin-bottom: 20px;
    }

    .awards {
        flex-direction: column;
    }

    .testimonials {
        padding: 10% 6%;
    }

    .testimonials__offers {
        margin-bottom: 25px;
    }

    .testimonials__list {
        grid-template-columns: 1fr;
    }

    .sale__text {
        padding: 10% 6%;
    }

    .contact-cta {
        margin-block: 0 20px;
    }
}

/* ==========================================================================
   Current offers page
   ========================================================================== */

/* Offers next to a contact box, behind an empty first column of 17% of the page width */
.offers {
    display: grid;
    grid-template-columns: 17% 48% 34.332%;
    align-items: start;
    min-height: 58vh;
    border-top: 2px solid var(--color-primary);
}

.offers__main {
    grid-column: 2;
    padding: 8vh 50px 50px 0;
}

.offers__title {
    --title-shift: -12px;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

.offers__title::after {
    margin-top: 42px;
}

.offers__intro {
    margin: 0 0 20px;
    padding: 1%;
    color: var(--color-primary);
    font-family: var(--font-tertiary);
    text-align: center;
}

.offers__empty {
    margin: 0;
    padding: 50px 0;
    border: 3px double var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    line-height: 1.2;
    text-align: center;
}

.offers__contact {
    padding: 9vh 5% 50px 0;
}

.offers__contact-title {
    margin: 10px 0 20px;
    font-size: 1.75rem;
}

/* Phone and e-mail with large blue icons */
.contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list li + li {
    margin-top: 15px;
}

.contact-list__icon {
    flex: none;
    width: 25px;
    height: 25px;
    color: var(--color-primary);
}

.contact-list a {
    color: var(--color-secondary);
}

.contact-list a:hover {
    color: var(--color-primary);
}

/* Reference teaser: four sold properties linking to the references page */
.reference-teaser {
    max-width: 1600px;
    margin-inline: auto;
    padding: 2% 4% 4%;
}

.reference-teaser .section-title {
    margin-bottom: 45px;
    font-size: 1.75rem;
}

.reference-teaser .section-title::after {
    margin-top: 45px;
}

.reference-teaser__intro {
    margin: 0 0 20px;
    color: var(--color-primary);
    font-family: var(--font-tertiary);
    text-align: center;
}

.reference-teaser__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.reference-card {
    padding-inline: 62px;
}

.reference-card__image-link {
    display: block;
    margin-bottom: 34px;
}

.reference-card__image {
    display: block;
    width: 100%;
    transition: filter 0.3s;
}

.reference-card:hover .reference-card__image {
    filter: brightness(110%) saturate(120%);
}

.reference-card__title {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.reference-card__title a {
    color: inherit;
}

.reference-card p {
    margin: 0;
}

@media (max-width: 1024px) {
    .offers {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        min-height: 70vh;
        padding-inline: 5%;
    }

    .offers__main {
        grid-column: auto;
        padding: 33px 0 50px;
    }

    .offers__title {
        --title-shift: -6px;
    }

    .offers__title::after {
        margin-top: 60px;
    }

    .offers__contact {
        padding: 50px 0;
    }

    .reference-teaser {
        padding: 8% 4% 14%;
    }

    .reference-teaser__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 14%;
        margin-top: 100px;
    }

    .reference-card {
        padding-inline: 0;
    }
}

@media (max-width: 767px) {
    /* Stack offers and contact box, everything centered */
    .offers {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
        padding-inline: 16px;
    }

    .offers__main {
        padding: 10vh 0 50px;
    }

    .offers__title {
        --title-shift: 0px;
        margin-bottom: 35px;
        text-align: center;
    }

    .offers__title::after {
        margin: 35px auto 0;
    }

    .offers__intro {
        padding: 7%;
    }

    .offers__empty {
        margin-inline: 50px;
        padding-block: 25px;
    }

    .offers__contact {
        padding: 0 0 50px;
        text-align: center;
    }

    .contact-list li {
        justify-content: center;
    }

    .reference-teaser {
        padding: 0 6% 25%;
    }

    .reference-teaser .section-title {
        text-align: center;
    }

    .reference-teaser .section-title::after {
        width: 46%;
        margin-inline: auto;
    }

    .reference-teaser__list {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-top: 0;
        text-align: center;
    }

    .reference-card__image-link {
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   References page
   ========================================================================== */

/* Page intro: title and lead text below a blue top border */
.references-intro {
    padding: 8vh 4% 1%;
    border-top: 2px solid var(--color-primary);
}

.references-intro__title {
    --title-shift: -28px;
    margin-bottom: 45px;
    font-size: 2.5rem;
}

.references-intro__title::after {
    margin-top: 45px;
}

.references-intro__text {
    margin: 0;
    color: var(--color-primary);
    font-family: var(--font-tertiary);
}

/* Overview: one thumbnail per reference, each jumping to its entry */
.references-overview {
    max-width: 1276px;
    margin: 3vh auto 40px;
    padding-inline: 10px;
}

.references-overview__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.references-overview a {
    display: block;
}

.references-overview img {
    display: block;
    width: 100%;
    transition: filter 0.3s;
}

.references-overview a:hover img {
    filter: brightness(110%) saturate(120%);
}

/* Reference entry: numbered divider, then photos, key facts and description side by side */
.reference {
    max-width: 1280px;
    margin-inline: auto;
    padding: 3vh 10px 0;
    scroll-margin-top: var(--header-height);
}

.reference__label {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding-block: 25px;
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.reference__label::before,
.reference__label::after {
    content: "";
    flex: 1;
    border-top: 2px solid var(--color-primary);
}

.reference__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 20px;
    padding-bottom: 20px;
}

.reference__title {
    margin: 0;
    padding: 9px;
    font-size: 1.75rem;
}

.reference__facts {
    display: grid;
    margin: 50px 0 0;
}

/* One bordered row per fact: icon, label, value; neighbouring rows touch */
.reference__fact {
    display: grid;
    grid-template-columns: 15% 30% 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #d5d5d5;
    border-radius: 5px;
    color: var(--color-primary);
    font-weight: 700;
}

.reference__fact-icon {
    justify-self: center;
    width: 20px;
    height: 20px;
}

.reference__fact dt {
    text-align: end;
}

.reference__fact dd {
    margin: 0;
}

.reference__description {
    margin-top: 50px;
    padding: 15px;
    border: 1px solid #d5d5d5;
    border-radius: 5px;
    color: var(--color-primary);
}

.reference__description p {
    margin: 0;
}

.reference__description p + p {
    margin-top: 10px;
}

/* Photo carousel: a horizontally scrolling track, snapping to one photo at a time */
.carousel {
    position: relative;
    margin-top: 3px;
    padding: 5px;
    border: 1px solid #d5d5d5;
    border-radius: 5px;
}

.carousel__track {
    display: flex;
    gap: 10px;
    height: 32vh;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x mandatory;
}

.carousel__track:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* The buttons replace the scrollbar once main.js is active */
.carousel.is-enhanced .carousel__track {
    scrollbar-width: none;
}

.carousel.is-enhanced .carousel__track::-webkit-scrollbar {
    display: none;
}

.carousel__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel__button {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(0 0 0 / 35%);
    color: var(--color-white);
    cursor: pointer;
    transform: translateY(-50%);
}

.carousel__button[hidden] {
    display: none;
}

.carousel__button:hover,
.carousel__button:focus-visible {
    background: var(--color-primary);
}

.carousel__button svg {
    width: 20px;
    height: 20px;
}

.carousel__button--prev {
    left: 15px;
}

.carousel__button--next {
    right: 15px;
}

/* Keep the buttons centred on the photo, above the dots */
.carousel.is-enhanced .carousel__button {
    top: calc(50% - 15px);
}

/* Pagination dots below the photo, one per photo */
.carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
}

.carousel__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.carousel__dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #000000;
    opacity: 0.2;
}

.carousel__dot[aria-current="true"]::before {
    opacity: 1;
}

.carousel__dot:focus-visible {
    outline: 2px solid var(--color-primary);
}

@media (prefers-reduced-motion: no-preference) {
    .carousel__track {
        scroll-behavior: smooth;
    }
}

@media (max-width: 1024px) {
    .references-intro {
        min-height: 30vh;
        padding-bottom: 2%;
    }

    .references-intro__title {
        --title-shift: -5px;
    }

    .references-intro__text {
        padding-right: 40%;
    }

    .references-overview {
        margin-bottom: 30px;
    }

    /* Photos and facts side by side, description below across the full width */
    .reference {
        padding-inline: 25px;
    }

    .reference__grid {
        grid-template-columns: 1fr 1fr;
    }

    .reference__description {
        grid-column: 1 / -1;
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .references-intro {
        min-height: 40vh;
        padding-inline: 6%;
        text-align: center;
    }

    .references-intro__title {
        --title-shift: -3px;
        margin-bottom: 35px;
    }

    .references-intro__title::after {
        margin: 35px auto 0;
    }

    .references-intro__text {
        padding-right: 0;
    }

    .references-overview {
        margin: 0 auto;
    }

    .references-overview__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .reference {
        padding: 0 16px;
    }

    .reference__grid {
        grid-template-columns: 1fr;
    }

    .reference__facts {
        margin-top: 0;
    }

    .reference__fact {
        grid-template-columns: 40px 1fr 1fr;
    }
}

@media (max-width: 479px) {
    .references-overview__list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

/* Title, text and form on the left, photo covering the right 58.5% of the viewport */
.contact {
    position: relative;
    min-height: 92vh;
    overflow: hidden;
    border-top: 2px solid var(--color-primary);
}

.contact__image {
    position: absolute;
    top: 0;
    right: 0;
    width: 58.5%;
    height: 100%;
    object-fit: cover;
}

.contact__content {
    position: relative;
    z-index: 1;
    max-width: calc(var(--container-width) + 8vw);
    margin-inline: auto;
    padding: 8vh 4vw 60px;
}

.contact__title {
    --title-shift: -26px;
}

.contact__intro {
    max-width: 27%;
    margin: 0 0 20px;
    color: var(--color-primary);
    font-family: var(--font-secondary);
}

.contact__notice {
    max-width: 33%;
    margin: 0;
    padding: 15px 20px;
    border-left: 4px solid var(--color-primary);
    background: var(--color-white);
    color: var(--color-primary);
}

.contact__notice--error {
    margin-bottom: 20px;
    border-left-color: var(--color-error);
    color: var(--color-error);
}

/* Contact form: labels above full-width fields, submit button at a third of the width */
.contact-form {
    max-width: 33%;
}

.contact-form__field {
    margin-bottom: 10px;
}

/* Honeypot: moved off-screen instead of display: none, which some bots detect */
.contact-form__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__label {
    display: block;
    padding-bottom: 15px;
    color: var(--color-primary);
    font-family: var(--font-secondary);
}

.contact-form__input {
    display: block;
    width: 100%;
    min-height: 47px;
    padding: 6px 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.4;
}

.contact-form__input--textarea {
    resize: vertical;
}

.contact-form__input[aria-invalid="true"] {
    border-color: var(--color-error);
}

/* Consent checkbox with its label text wrapping next to it */
.contact-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
}

.contact-form__checkbox input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--color-primary);
}

.contact-form__checkbox input[aria-invalid="true"] {
    outline: 2px solid var(--color-error);
    outline-offset: 1px;
}

.contact-form__checkbox a {
    text-decoration: underline;
}

.contact-form__error {
    margin: 6px 0 0;
    color: var(--color-error);
    font-size: 14px;
}

.contact-form__submit {
    justify-content: center;
    width: 33%;
    min-width: max-content;
    min-height: 47px;
    padding: 15px 30px;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .contact {
        min-height: 77vh;
    }

    .contact__image {
        width: 52vw;
    }

    .contact__content {
        padding-top: 35px;
    }

    .contact__title {
        --title-shift: -6px;
    }

    .contact__intro {
        max-width: 40%;
    }
}

@media (max-width: 767px) {
    /* Stack the section: photo on top, text and form below */
    .contact {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .contact__image {
        position: static;
        width: 100%;
        height: 46vh;
    }

    .contact__content {
        width: 100%;
        padding: 6vh 6% 50px;
    }

    .contact__title {
        --title-shift: -3px;
        margin-bottom: 35px;
        font-size: 30px;
    }

    .contact__title::after {
        margin-top: 35px;
    }

    .contact__intro,
    .contact__notice,
    .contact-form {
        max-width: none;
    }
}

/* ==========================================================================
   Legal pages (Impressum, Datenschutz)
   ========================================================================== */

/* Title above the text; the Impressum splits it into two columns: 55% and 45% of the container */
.legal {
    max-width: var(--container-width);
    margin-inline: auto;
    padding: 35px 10px 20px;
}

.legal__title {
    margin: 0 0 15px;
    font-size: 2.5rem;
    line-height: 1;
}

.legal__columns {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 20px;
}

.legal p,
.legal__list {
    margin: 0 0 0.9rem;
}

/* Section headings look like the bold blue paragraphs they replace */
.legal h2,
.legal h3 {
    margin: 0 0 0.9rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

/* Heading that works as a label: its text follows on the next line without a gap */
.legal .legal__label {
    margin-bottom: 0;
}

/* One blank line instead of the paragraph gap */
.legal .legal__heading--line-after {
    margin-bottom: 1.5em;
}

.legal .legal__heading--line-before {
    margin-top: 1.5em;
}

.legal strong {
    color: var(--color-primary);
}

/* Long e-mail addresses and URLs must not widen the page on phones */
.legal a {
    overflow-wrap: anywhere;
}

/* List items introduced by a dash, as in the printed legal texts */
.legal__list {
    padding: 0;
    list-style: none;
}

.legal__list li::before {
    content: "– ";
}

/* Lettered list: "a)", "b)", … */
.legal__list--alpha {
    counter-reset: legal-item;
}

.legal__list--alpha li::before {
    counter-increment: legal-item;
    content: counter(legal-item, lower-alpha) ") ";
}

@media (max-width: 1024px) {
    .legal {
        padding-inline: 25px;
    }

    /* The title is indented 5px less than the text */
    .legal__title {
        margin-inline: -5px;
    }

    .legal__columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ==========================================================================
   404 page
   ========================================================================== */

/* Short message and a way back, below a blue top border like the other subpages */
.not-found {
    max-width: calc(var(--container-width) + 8vw);
    margin-inline: auto;
    padding: 8vh 4vw 80px;
    border-top: 2px solid var(--color-primary);
}

.not-found p {
    max-width: 640px;
    margin: 0 0 20px;
}

.not-found__button {
    margin-top: 10px;
}

@media (max-width: 767px) {
    .not-found {
        padding: 6vh 6% 50px;
    }
}
