@font-face {
    font-family: "Bosch Sans";
    src: url("/assets/fonts/boschsans-regular-webfont.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bosch Sans";
    src: url("/assets/fonts/boschsans-light-webfont.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bosch Sans";
    src: url("/assets/fonts/boschsans-bold-webfont.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FontAwesome";
    src: url("/assets/fonts/fontawesome-webfont.woff2") format("woff2"),
         url("/assets/fonts/fontawesome-webfont.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

:root {
    --bosch-red: #e20015;
    --ink: #1b1b1b;
    --muted: #555f66;
    --line: #d7dce0;
    --bg: #ffffff;
    --panel: #ffffff;
    --blue: #007bc0;
    --green: #18837e;
    --dark: #202428;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Bosch Sans", Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.45;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    height: 8px;
    background: url("/supergraphic.svg") center / cover no-repeat;
}

.shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    background: #fff;
    border-bottom: 1px solid #d4d8dc;
}

.header .shell {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    text-decoration: none;
}

a.brand img {
    display: block;
    width: 128px;
    max-height: 34px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: #2b2f33;
    font-size: 15px;
}

.main {
    padding: 0 0 56px;
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 28px;
    align-items: center;
    padding: 32px 0;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.08;
    margin: 0 0 14px;
}

.lead {
    color: var(--muted);
    font-size: 18px;
    margin: 0 0 22px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 46px;
    color: #6f777d;
    font-size: 13px;
}

.breadcrumb a {
    color: #6f777d;
}

.page-intro {
    padding: 38px 0 34px;
    text-align: center;
}

.page-intro .eyebrow {
    color: #667078;
    margin: 0 0 8px;
}

.page-intro h1 {
    margin: 0 0 14px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
}

.page-intro p:last-child {
    max-width: 780px;
    margin: 0 auto;
    color: #4f5961;
    font-size: 18px;
}

.portal-intro h2 {
    max-width: 900px;
    margin: 0 auto 18px;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
}

.campaigns-section {
    padding: 10px 0 0;
}

.campaigns-section > h2 {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 28px;
}

.intro-copy {
    max-width: 820px;
    margin: 0 auto 28px;
    color: #3f474e;
    text-align: center;
}

.registration-layout {
    padding: 30px 0 62px;
}

.registration-head {
    max-width: 980px;
    margin: 0 auto 42px;
    text-align: center;
}

.registration-content {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
    gap: 52px;
    align-items: start;
}

.registration-head .eyebrow {
    color: #667078;
    margin: 0 0 8px;
}

.registration-head h1 {
    margin: 0 0 12px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
}

.registration-head h2 {
    margin: 0 0 18px;
    font-size: 21px;
    font-weight: 400;
    color: #374047;
}

.registration-text {
    color: #3f474e;
    margin-bottom: 26px;
    font-size: 16px;
}

.registration-form {
    padding: 0;
    border: 0;
}

.registration-visual {
    position: sticky;
    top: 28px;
    min-height: 620px;
    background: #eef2f4;
    overflow: hidden;
}

.registration-visual > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
}

.registration-visual .campaign-placeholder {
    min-height: 620px;
}

.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
    line-height: 1.4;
}

.autocomplete {
    position: relative;
}

.autocomplete-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #9aa7b0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.autocomplete-option {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid #e3e7ea;
    background: #fff;
    color: #1b1b1b;
    text-align: left;
    font-weight: 400;
}

.autocomplete-option:hover,
.autocomplete-option:focus {
    background: #eef7fc;
    outline: 0;
}

.autocomplete-option strong {
    font-weight: 700;
}

.autocomplete-option span,
.autocomplete-empty {
    color: #4f5961;
}

.autocomplete-empty {
    padding: 14px;
}

.image-preview {
    margin-top: 10px;
    width: min(420px, 100%);
    min-height: 140px;
    border: 1px solid var(--line);
    background: #f3f5f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.image-preview img[hidden] {
    display: none;
}

.band {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.card h2,
.card h3 {
    margin-top: 0;
}

.meta {
    color: var(--muted);
    font-size: 14px;
}

.campaign-list {
    display: grid;
    gap: 0;
    border-top: 1px solid #e1e5e8;
}

.campaign-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 360px;
    border-bottom: 1px solid #e1e5e8;
    background: #fff;
}

.campaign-row.is-reversed .campaign-media {
    order: 2;
}

.campaign-media {
    display: block;
    min-height: 360px;
    background: #edf0f2;
    overflow: hidden;
}

.campaign-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: contain;
}

.campaign-placeholder {
    min-height: 360px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f4 url("/supergraphic.svg") top center / 100% 10px no-repeat;
}

.campaign-placeholder img {
    width: 210px;
    height: auto;
    min-height: 0;
    object-fit: contain;
}

.campaign-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 58px;
}

.campaign-copy h2 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.campaign-copy h3 {
    margin: 0 0 18px;
    font-size: 19px;
    font-weight: 400;
    color: #374047;
}

.campaign-copy p {
    color: #3f474e;
}

.bosch-links {
    display: grid;
    gap: 9px;
    margin-top: 12px;
}

.bosch-links a::before {
    content: "›";
    margin-right: 8px;
    color: var(--blue);
    font-weight: 700;
}

.button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 0;
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.button.secondary {
    background: #fff;
    color: var(--blue);
}

.form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 24px;
}

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

.filter-grid {
    display: grid;
    grid-template-columns: 220px minmax(260px, 1fr) 160px;
    gap: 18px;
    align-items: end;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 700;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #bcccdc;
    border-radius: 0;
    padding: 9px 11px;
    font: inherit;
    background: #fff;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: 0;
}

textarea {
    min-height: 120px;
}

.notice {
    border-radius: 0;
    padding: 12px 14px;
    margin: 0 0 18px;
    background: #e6f4ff;
    border: 1px solid #a5d8ff;
}

.notice.error {
    background: #fff1f2;
    border-color: #fecdd3;
}
.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

th {
    background: #f8fafc;
    font-size: 13px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 700;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.footer {
    background: #fff;
    color: #1f2933;
    padding: 0;
}

.footer-social {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 38px;
}

.footer-social a {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    margin: 0;
    font-weight: 700;
    line-height: 1;
}

.fa {
    display: inline-block;
    font-family: "FontAwesome";
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-youtube-play::before {
    content: "\f16a";
}

.fa-facebook::before {
    content: "\f09a";
}

.fa-instagram::before {
    content: "\f16d";
}

.footer-social .fa {
    font-size: 22px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 90px;
    padding-top: 20px;
    padding-bottom: 44px;
}

.footer h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 26px;
    color: #000;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.4;
}

.footer a {
    color: #000;
    text-decoration: none;
}

.footer a:hover {
    color: #007bc0;
    text-decoration: underline;
}

.footer-legal {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: center;
    min-height: 76px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #000;
    background: #fff;
    color: #000;
    font-size: 12px;
}

.footer-legal a {
    display: inline;
    margin: 0;
    color: #000;
}

.footer-legal a:hover {
    color: #007bc0;
}

.admin-body {
    background: #f4f6f8;
}

.admin-header {
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.06);
}

.admin-main {
    padding: 34px 0 58px;
}

.admin-shell {
    max-width: 1240px;
}

.admin-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 22px;
}

.admin-page-head h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
}

.admin-page-head.compact {
    margin-top: 0;
    margin-bottom: 14px;
}

.admin-page-head.compact h2 {
    margin: 0;
}

.admin-kicker {
    margin: 0 0 6px;
    color: #69737c;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.metric-card,
.admin-panel {
    background: #fff;
    border: 1px solid #e1e6ea;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.metric-card {
    padding: 18px;
}

.metric-card span {
    display: block;
    color: #65717b;
    font-size: 13px;
    margin-bottom: 8px;
}

.metric-card strong {
    display: block;
    font-size: 30px;
    line-height: 1;
}

.admin-panel {
    padding: 18px;
    margin-bottom: 20px;
}

.admin-filter {
    padding-bottom: 16px;
    border-bottom: 1px solid #edf0f2;
    margin-bottom: 6px;
}

.admin-table {
    border: 0;
    border-radius: 0;
}

.admin-table table {
    font-size: 14px;
}

.admin-table th {
    background: #f7f9fb;
    color: #52606a;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: 12px;
}

.admin-table tbody tr:hover {
    background: #f7fbff;
}

.small-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #c8d2da;
    background: #fff;
    color: #007bc0;
    font-weight: 700;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.type-badge.promotion {
    background: #e8f4fd;
    color: #005691;
}

.type-badge.warranty {
    background: #e7f5ef;
    color: #0b6b4b;
}

.empty-state {
    text-align: center;
    color: #69737c;
    padding: 30px !important;
}

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

.detail-card h2,
.import-panel h2 {
    margin-top: 0;
}

.detail-card dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.detail-card dt {
    color: #69737c;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.detail-card dd {
    margin: 3px 0 0;
    font-weight: 700;
}

.file-list {
    display: grid;
    gap: 10px;
}

.file-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #e1e6ea;
    padding: 12px;
    color: #1b1b1b;
}

.file-item small {
    color: #69737c;
}

.thumb {
    width: 76px;
    height: 46px;
    object-fit: cover;
    display: block;
    background: #edf0f2;
}

.thumb.placeholder {
    border: 1px dashed #b8c2ca;
}

.import-panel form {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 360px) auto;
    gap: 18px;
    align-items: end;
}

.bulk-actions {
    margin-bottom: 12px;
}

.danger-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.danger-inline input {
    width: 170px;
}

.button.danger {
    background: #b00020;
    border-color: #b00020;
    color: #fff;
}

.link-danger {
    border: 0;
    background: transparent;
    color: #b00020;
    min-height: 0;
    padding: 0;
    font-weight: 700;
}

.rich-editor {
    border: 1px solid #bcccdc;
    background: #fff;
}

.rich-toolbar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px;
    border-bottom: 1px solid #d7dce0;
    background: #f7f9fb;
}

.rich-toolbar button {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #c8d2da;
    background: #fff;
    color: #1b1b1b;
}

.rich-surface {
    min-height: 170px;
    padding: 12px;
    outline: 0;
}

.rich-surface:focus {
    box-shadow: inset 0 0 0 2px #007bc0;
}

@media (max-width: 720px) {
    .header .shell,
    .hero {
        display: block;
    }

    .header-left {
        justify-content: space-between;
        gap: 14px;
        padding-top: 14px;
    }

    .nav {
        margin-top: 12px;
        gap: 14px;
        padding-bottom: 14px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .page-intro h1 {
        font-size: 32px;
    }

    .campaign-row,
    .campaign-row.is-reversed {
        grid-template-columns: 1fr;
    }

    .campaign-row.is-reversed .campaign-media {
        order: 0;
    }

    .campaign-media,
    .campaign-media img,
    .campaign-placeholder {
        min-height: 230px;
    }

    .campaign-copy {
        padding: 30px 0;
    }

    .registration-layout {
        padding-top: 18px;
    }

    .registration-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .registration-head {
        margin-bottom: 28px;
        text-align: left;
    }

    .registration-head h1 {
        font-size: 32px;
    }

    .registration-visual {
        position: static;
        min-height: 260px;
        order: -1;
    }

    .registration-visual > img,
    .registration-visual .campaign-placeholder {
        min-height: 260px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 30px;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-page-head,
    .import-panel form {
        display: block;
    }

    .admin-page-head .button,
    .admin-page-head form {
        margin-top: 14px;
    }

    .metric-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .file-item {
        grid-template-columns: 1fr;
    }
}
