@import url('https://cdn.jsdelivr.net/npm/glightbox@3.3.1/dist/css/glightbox.min.css');

:root {
    --cr-primary: #000;
    --cr-red: #A72A2A;
    --cr-hsv-blue: #005AAA;
    --cr-netraul-900: #171717;
    --cr-netraul-800: #262626;
    --cr-netraul-700: #404040;
    --cr-netraul-600: #525252;
    --cr-netraul-500: #737373;
    --cr-netraul-400: #A3A3A3;
    --cr-netraul-300: #D4D4D4;
    --cr-netraul-200: #E5E5E5;
    --cr-netraul-100: #F5F5F5;
    --cr-netraul-50: #FAFAFA;
}

@font-face {
    font-family: 'Lato Hairline';
    src: local('Lato-Hairline'),
    url("../fonts/Lato-Hairline-TMWUw_p.woff2") format('woff2'),
    url("../fonts/Lato-Hairline-n2ZaaJr.woff") format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: local('Lato Black Italic'), local('Lato-BlackItalic'),
    url("../fonts/Lato-BlackItalic-wVTcsUN.woff2") format('woff2'),
    url("../fonts/Lato-BlackItalic-bFp7Ddp.woff") format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: local('Lato Regular'), local('Lato-Regular'),
    url("../fonts/Lato-Regular-O5_YXiG.woff2") format('woff2'),
    url("../fonts/Lato-Regular-fmwyYrF.woff") format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: local('Lato Bold'), local('Lato-Bold'),
    url("../fonts/Lato-Bold-m06Gtvk.woff2") format('woff2'),
    url("../fonts/Lato-Bold-ZygX5SP.woff") format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato Hairline';
    src: local('Lato-HairlineItalic'),
    url("../fonts/Lato-HairlineItalic-0aogkVM.woff2") format('woff2'),
    url("../fonts/Lato-HairlineItalic-CTjx4ZG.woff") format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: local('Lato-LightItalic'),
    url("../fonts/Lato-LightItalic-_tdx_Y3.woff2") format('woff2'),
    url("../fonts/Lato-LightItalic-qSLRBnG.woff") format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: local('Lato Italic'), local('Lato-Italic'),
    url("../fonts/Lato-Italic-U9j4jSu.woff2") format('woff2'),
    url("../fonts/Lato-Italic-hEPfFcH.woff") format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: local('Lato Bold Italic'), local('Lato-BoldItalic'),
    url("../fonts/Lato-BoldItalic-CleGF7E.woff2") format('woff2'),
    url("../fonts/Lato-BoldItalic-Fa2jW0x.woff") format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: local('Lato Black'), local('Lato-Black'),
    url("../fonts/Lato-Black-Sgauke4.woff2") format('woff2'),
    url("../fonts/Lato-Black-tY2Cxk7.woff") format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: local('Lato-Light'),
    url("../fonts/Lato-Light-TvfBM8j.woff2") format('woff2'),
    url("../fonts/Lato-Light-0v6ZfP5.woff") format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

*,
body {
    font-family: 'Lato', sans-serif;
}

body.app-frontend {
    background-color: var(--cr-netraul-300);
}


.inquiry {
    section {

    }
}

.container-list {
    display: grid;
    gap: 1rem;

    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
}

.inquiry-layout {
    max-width: 1232px;
    margin-inline: auto;
    padding-inline: 1rem;
    background-color: #fff;
    padding-block: 2.5rem;

    display: flex;
    flex-direction: column;
    gap: 1rem;

    @media (min-width: 1200px) {
        display: grid;
        grid-template-columns: 1fr 400px;
    }
}


.container-card {
    padding: 1.5rem;
    position: relative;
    background-color: var(--cr-netraul-50);
    border: 1px solid var(--cr-netraul-300);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.container-card:hover {
    border-color: var(--cr-red);
}

.container-card:has(.container-card__choice input:checked) {
    border-color: var(--cr-hsv-blue);
    box-shadow: inset 0 0 0 1px var(--cr-hsv-blue);
}

.container-card__gallery,
.container-card__main-image {
    position: relative;
    z-index: 10;
}


.container-card__main-image {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    max-height: calc(100vh - 103px);
    background-color: var(--cr-netraul-200);
    overflow: hidden;
}

.container-card__main-image--image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.container-card__gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .25rem;
    margin-block-start: .25rem;
    margin-block-end: 1.5rem;

    > * {
        aspect-ratio: 1;
        object-fit: contain;
        background-color: var(--cr-netraul-200);
        cursor: pointer;
    }

    img {
        background-color: var(--cr-netraul-200);
        display: block;
        width: 100%;
        height: auto;
    }
}

.step-headline {
    font-size: 48px;
    line-height: 1.4;
}

.container-card__gallery-more {
    place-items: center;
    place-content: center;

    svg {
        width: 100%;
        height: auto;
    }
}

.container-card__title {
    margin-block-end: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    padding-bottom: 18px;
    margin-block: 0;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
}

h1 {
    line-height: 36px;
    font-size: 22px;
    padding-bottom: 0;
}

h2, .h2 {
    font-size: 28px;
    line-height: 34px;
}

h3 {
    font-size: 22px;
}

.fw-700 {
    font-weight: 700;
}

.form-delivery-methods {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
}


.container-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
    gap: .875rem;
    padding-block-end: 1rem;
}

.container-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: .25rem;
    color: var(--cr-netraul-600);
}

.container-spec__specification {
    font-weight: 700;
    line-height: 1.5;
}

.container-spec__title {
    font-size: .75rem;
}

.container-price {
    margin-block-start: .875rem;
    text-align: end;
}

.container-price__title {
    color: var(--cr-red);
    font-size: 1.875rem;
    font-weight: 700;
}


.container-contact-person__position {
    line-height: 1.3;
}

.container-contact-person__content a,
.container-datasheet a {
    display: flex;
    gap: .5rem;
    align-items: center;
    color: #000;
    text-decoration: none;

    &:hover {
        color: var(--cr-red);
    }
}

#selected-container {
    height: 100%;

    img {
        width: 100%;
        height: auto;
    }
}

.selected-container--inner {
    color: #fff;
    background-color: #000;
    padding: 1.5rem;
}

.summary-title {
    font-size: 24px;
    font-weight: 900;
    padding-bottom: 1rem;
}

.summary-subtitle {
    font-size: 20px;
    font-weight: 900;
    padding-bottom: .75rem;
}

.summary-specs {
    margin-block: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .4rem 1rem;
}

.summary-specs dt {
    font-weight: 700;
}

/* Colon after labels — kept in CSS so the shared (email/PDF) translation keys stay clean */
.summary-specs dt::after,
.summary-totals dt::after,
.summary-subtitle::after {
    content: ':';
}

.summary-price {
    text-align: end;
    margin-block-start: 1.25rem;
}

.summary-price__value {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 900;
}

.summary-price__label {
    font-size: .8rem;
    color: var(--cr-netraul-300);
}

/* Blue divider with a centred diamond node (corporate design) */
.summary-divider {
    position: relative;
    height: 2px;
    background: var(--cr-hsv-blue);
    margin-block: 1.5rem;
}

.summary-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--cr-hsv-blue);
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Totals: label left, value (+ net/brutto) stacked to the right */
.summary-totals {
    margin-block: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .75rem 1rem;
}

.summary-totals dt {
    font-weight: 700;
    align-self: center;
}

.summary-totals dd {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .1rem;
}

.summary-totals__value {
    font-weight: 900;
    font-size: 18px;
}

.summary-totals--gross dt {
    font-size: 20px;
    font-weight: 900;
}

.summary-totals__box {
    display: inline-block;
    background: var(--cr-hsv-blue);
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    padding: .5rem 1rem;
}

@media (min-width: 1200px) {
    .delivery-method details summary {
        pointer-events: none;
        cursor: default;
    }

    .container-card details summary {

        display: none;
    }
}

#selected-container__placeholder {
    place-content: center;
    place-items: center;
    text-align: center;
    border: 1px solid var(--cr-netraul-300);
    padding: 6rem 1rem;
}

.inquiry-step-indicators,
.inquiry-headlines {
    grid-column: 1 / -1;
}

.inquiry-headlines {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    justify-content: space-between;
}

.inquiry-navs {
    grid-column: 1 / -1;
}

.container-card__choice {
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    display: block;

    &::before {
        content: '';
        position: absolute;
        inset: 0;
        cursor: pointer;
    }

    input {
        visibility: hidden;
        margin: 0;
        padding: 0;
    }
}

.delivery-method {
    padding: 1.5rem;
    background-color: var(--cr-netraul-50);
    border: 1px solid var(--cr-netraul-300);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;

    @media (max-width: 780px) {
        label {
            display: grid;
            align-items: flex-start;
            gap: .5rem 1.5rem;
            grid-template-columns: 60px 1fr;
        }

        details {
            grid-column: 1 / -1;
        }
    }

    input {
        visibility: hidden;
        clip: rect(1px, 1px, 1px, 1px);
        clip-path: inset(50%);
        height: 1px;
        width: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
    }
}

.formular-input-section {
    margin-block-end: 2.5rem;
}

.delivery-method:hover {
    border-color: var(--cr-red);
}

.delivery-method:has(input:checked) {
    border-color: var(--cr-hsv-blue);
    box-shadow: inset 0 0 0 1px var(--cr-hsv-blue);
}

.delivery-method__title {

    font-size: 1rem;
}

.delivery-method {
    details {
        margin-block-start: 1rem;
    }
}

.delivery-method__info {
    margin-block-start: .5rem;
}

.sr-only {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

.inquiry-step-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-block: 2.5rem;
}

.step-indicator {
    position: relative;
    aspect-ratio: 1;
    text-align: center;
    font-size: 1rem;
    padding: .25rem;
    scale: 1;
    transition: all 250ms ease-in-out;
    color: #fff;
    flex: 0 0 22px;
    height: 22px;
    place-items: center;
    place-content: center;

    .step-indicator__number {
        transition: all 250ms ease-in-out;
        opacity: 0;
    }

    &::before {
        transition: all 250ms ease-in-out;
        content: '';
        scale: 1;
        z-index: -1;
        position: absolute;
        inset: 0;
        transform: rotate(45deg);
        aspect-ratio: 1;
        background-color: var(--cr-hsv-blue);
    }

    &::after {
        z-index: -2;
        content: '';
        position: absolute;
        left: 0;
        height: 2px;
        top: 50%;
        transform: translateY(-50%);
        width: calc(100% + 2rem);
        background-color: var(--cr-hsv-blue);
    }

    &:last-child {
        &::after {
            content: none;
        }
    }

    &.step-indicator--active {
        &::before {
            scale: 1.25;
        }

        .step-indicator__number {
            opacity: 1;
        }
    }
}

.summary-image {
    background-color: var(--cr-hsv-blue);
}

.btn {
    padding: .75rem 1.5rem;
    display: inline-flex;
    gap: .875rem;
    align-items: center;
    background-color: var(--btn-background-color, transparent);
    border: 1px solid var(--btn-border-color, transparent);
    color: var(--btn-color, currentcolor);
    transition: all 300ms ease-in-out;
    cursor: pointer;

    &:hover {
        background-color: var(--btn-hover-background-color, var(--btn-background-color, transparent));
        border-color: var(--btn-hover-border-color, var(--btn-border-color, transparent));
        color: var(--btn-hover-color, var(--btn-color, currentcolor));
    }
}

.btn-secondary {
    --btn-background-color: #fff;
    --btn-border-color: #000;
    --btn-color: #000;
    --btn-hover-color: var(--cr-hsv-blue);
}

.btn-primary {
    --btn-background-color: #000;
    --btn-border-color: #000;
    --btn-color: #fff;
    --btn-hover-background-color: #fff;
    --btn-hover-color: #000;
}

.step-nav:not([hidden]) {
    display: flex;
    justify-content: space-between;
}

.form__label {
    display: block;
    font-size: 1.125rem;
    font-weight: 400;
}

select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #000;
    border-radius: 0;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form__input {
    display: block;
    padding: .5rem;
    line-height: 1.5;
    border: 1px solid #000;
}

.form__row {
    display: flex;
    gap: .5rem;
    flex-direction: column;
}

.formular-input-section {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
}

.delivery-method__icon {
    display: block;

    img {
        width: 100%;
        object-fit: contain;
    }

    @media (min-width: 780px) {
        height: 136px;


        img {
            height: 136px;
        }
    }
}

.summary-section--totals {
    text-align: start;
}

.grid-span {
    grid-column: 1 / -1;
}

.container-contact-person {
    max-width: 500px;
    flex: 500px;
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    position: relative;
    background-color: var(--cr-netraul-50);
    border: 1px solid var(--cr-netraul-300);
}

.container-contact-person__name {
    font-size: 20px;
}

.container-contact-person__content {
    gap: 1rem .25rem;
    font-size: .875rem;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
}

/* ─────────────────────────────────────────────────────────────────────────
   Site header — "zurück zur Hauptseite" navigation.
   This app is hosted separately from www.cr-container.de; every nav link is an
   absolute URL back to the main site. Layout mirrors the main site: large logo
   on the left, phone + language flags top-right, and a right-aligned horizontal
   nav (regular weight, hover dropdowns) on the row beneath the meta line.
   Accent: #b61622 (CR red).
   ───────────────────────────────────────────────────────────────────────── */
:root {
    --cr-header-red: #b61622;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--cr-netraul-200);
}

.site-header__inner {
    max-width: 1232px;
    margin-inline: auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-header__logo {
    flex: 0 0 auto;
    line-height: 0;
}

.site-header__logo img {
    display: block;
    height: 96px;
    width: auto;
}

/* Right-hand column: meta line on top, nav underneath (both right-aligned) */
.site-header__right {
    flex: 1 1 auto;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.25rem;
}

.site-header__meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: .9rem;
}

.site-header__phone {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--cr-netraul-800);
    white-space: nowrap;
}

.site-header__phone svg {
    width: 1em;
    height: 1em;
    fill: var(--cr-header-red);
    flex: 0 0 auto;
}

.site-header__langs {
    display: flex;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__langs a {
    display: block;
    line-height: 0;
}

/* ── Main navigation ─────────────────────────────────────────────────────── */
.main-nav__toggle {
    display: none;
}

.main-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .25rem;
}

.main-nav__list li {
    position: relative;
}

.main-nav__list a {
    display: block;
    padding: .4rem .9rem;
    color: var(--cr-netraul-700);
    font-weight: 400;
    font-size: 1rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}

.main-nav__list > li > a:hover,
.main-nav__list > li:hover > a {
    color: var(--cr-header-red);
}

/* Last top-level item (Kontakt) keeps a permanent red underline, like the main site */
.main-nav__list > li:last-child > a {
    border-bottom-color: var(--cr-header-red);
}

/* Dropdown submenus (desktop: reveal on hover) */
.main-nav__list ul {
    list-style: none;
    margin: 0;
    padding: .25rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #fff;
    border-top: 2px solid var(--cr-header-red);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    z-index: 100;
    display: none;
    text-align: left;
}

.main-nav__list li:hover > ul {
    display: block;
}

.main-nav__list ul a {
    padding: .55rem 1rem;
    font-weight: 400;
    border-bottom: none;
    white-space: nowrap;
}

.main-nav__list ul a:hover {
    background: var(--cr-netraul-100);
    color: var(--cr-header-red);
}

/* Third-level menus fly out to the side */
.main-nav__list ul ul {
    top: -.25rem;
    left: 100%;
}

/* Keep the right-most dropdowns from overflowing the viewport edge */
.main-nav__list > li:nth-last-child(-n + 2) > ul {
    left: auto;
    right: 0;
}

.main-nav__list > li:nth-last-child(-n + 2) ul ul {
    left: auto;
    right: 100%;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .site-header__inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .site-header__logo {
        flex: 1 1 100%;
        text-align: center;
    }

    .site-header__logo img {
        height: 72px;
        margin-inline: auto;
    }

    .site-header__right {
        flex: 1 1 100%;
        margin-left: 0;
        align-items: center;
    }

    .site-header__meta {
        justify-content: center;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .5rem;
        width: 100%;
        background: var(--cr-header-red);
        color: #fff;
        border: none;
        padding: .8rem 1rem;
        font-family: inherit;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
    }

    .main-nav__list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        border-top: 1px solid var(--cr-netraul-200);
    }

    .main-nav.is-open .main-nav__list {
        display: flex;
    }

    .main-nav__list a {
        border-bottom: 1px solid var(--cr-netraul-100);
    }

    .main-nav__list > li:last-child > a {
        border-bottom-color: var(--cr-netraul-100);
    }

    /* Submenus stack inline instead of floating */
    .main-nav__list ul,
    .main-nav__list ul ul {
        position: static;
        display: block;
        min-width: 0;
        left: auto;
        right: auto;
        box-shadow: none;
        border-top: none;
        padding-left: 1.25rem;
        background: var(--cr-netraul-50);
    }
}

