:root {
    --red: #c4261d;
    --ink: #182530;
    --muted: #5f6f7d;
    --line: #dbe3ea;
    --soft: #f4f7fa;
    --panel: #ffffff;
    --blue: #536a7b;
    --green: #0f8f7a;
    --shadow: 0 18px 48px rgba(24, 37, 48, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Oswald", Arial, Helvetica, sans-serif;
    background: #fff;
    line-height: 1.55;
}

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

a:hover {
    text-decoration: underline;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 880px;
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: 0;
    font-weight: 700;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: 0;
    font-weight: 600;
    text-transform: uppercase;
}

h3 {
    font-size: 1.15rem;
    line-height: 1.25;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 5vw, 64px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(219, 227, 234, .8);
    backdrop-filter: blur(16px);
}

.brand img {
    width: 118px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 14px;
    color: var(--ink);
    border-radius: 6px;
    font-weight: 700;
}

.main-nav a[aria-current="page"],
.main-nav a:hover {
    color: var(--red);
    background: #fff0ef;
    text-decoration: none;
}

.nav-toggle {
    display: none;
}

.hero {
    position: relative;
    min-height: calc(100vh - 84px);
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--ink);
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(24, 37, 48, .86), rgba(24, 37, 48, .42) 58%, rgba(24, 37, 48, .18));
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding: 9vh clamp(18px, 6vw, 76px) 11vh;
    color: #fff;
}

.hero__content p {
    max-width: 680px;
    font-size: 1.15rem;
}

.hero__actions,
.dialog-actions,
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    color: #fff;
    gap: 2px;
    font-family: "Caveat", cursive;
    font-size: 1.42rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--red), #e94a3f);
    border: 1px solid var(--red);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(196, 38, 29, .22);
}

.button:hover {
    background: #a91f18;
    text-decoration: none;
}

.button:disabled {
    cursor: wait;
    opacity: .65;
}

.button--ghost {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
}

.hero .button--ghost {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .45);
}

.section,
.page-hero,
.product-hero,
.text-page {
    padding: clamp(52px, 8vw, 92px) clamp(18px, 6vw, 76px);
}

.section--tight {
    padding-bottom: 36px;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--red);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.intro-grid,
.split-band,
.product-hero,
.product-layout,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.intro-grid p {
    font-size: 1.08rem;
    color: var(--muted);
}

.split-band {
    background: var(--soft);
}

.split-band img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.check-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0 0 28px;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: .52em;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

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

.product-card {
    min-height: 100%;
}

.product-card__main {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(24, 37, 48, .06);
}

.product-card__image {
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 14px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 8px;
}

.product-card__image img {
    width: 100%;
    height: 190px;
    object-fit: contain;
}

.product-card__main:hover {
    border-color: rgba(196, 38, 29, .42);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.product-card__badge,
.meta-pills span,
.tag-list span {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    color: var(--blue);
    font-size: .82rem;
    font-weight: 800;
    background: var(--soft);
    border-radius: 999px;
}

.product-card p {
    min-height: 100px;
    color: var(--muted);
}

.product-card dl {
    display: grid;
    gap: 8px;
    margin: auto 0 0;
}

.product-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

dt {
    color: var(--muted);
    font-size: .85rem;
}

dd {
    margin: 0;
    text-align: right;
    font-weight: 800;
}

.page-hero,
.product-hero {
    background: linear-gradient(180deg, #fff, var(--soft));
}

.page-hero p,
.product-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.12rem;
}

.product-aside,
.side-panel,
.contact-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(24, 37, 48, .06);
}

.product-aside img,
.contact-card img,
.manufacturer img {
    max-width: 160px;
    max-height: 76px;
    object-fit: contain;
    margin-bottom: 18px;
}

.product-aside .product-visual {
    position: relative;
    margin-bottom: 22px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--ink);
}

.product-aside .product-visual img {
    width: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    padding: 18px;
    background: #fff;
    margin: 0;
}

.product-aside .company-logo {
    max-width: 150px;
}

.meta-pills,
.tag-list,
.link-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
}

.product-layout h2 {
    margin-top: 12px;
    font-size: 1.55rem;
}

.price-block {
    margin: 18px 0 28px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--ink);
    background: var(--soft);
    font-size: .88rem;
}

tr:last-child td {
    border-bottom: 0;
}

.note {
    color: var(--muted);
    font-size: .95rem;
}

.side-panel {
    position: sticky;
    top: 110px;
}

.side-panel h2 {
    margin-top: 24px;
    font-size: 1.1rem;
}

.side-panel h2:first-child {
    margin-top: 0;
}

.link-stack {
    flex-direction: column;
}

.manufacturer {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.inquiry-section {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .78)),
        url("/images/whiteboard-struktur.jpg") center / cover;
}

.inquiry-form {
    display: grid;
    gap: 16px;
    padding: clamp(22px, 4vw, 34px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.inquiry-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
    color: var(--ink);
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    color: var(--ink);
    font: inherit;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.inquiry-form textarea {
    resize: vertical;
}

.form-status {
    min-height: 24px;
    margin: 0;
    color: var(--green);
}

.text-page {
    max-width: 920px;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    padding: 38px clamp(18px, 6vw, 76px);
    color: #d7e1e8;
    background: var(--ink);
}

.site-footer img {
    width: 92px;
    filter: brightness(0) invert(1);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.site-footer a,
.link-button {
    color: #fff;
}

.link-button {
    padding: 0;
    font: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    display: grid;
    max-width: 520px;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner h2 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.cookie-banner p {
    margin-bottom: 0;
    color: var(--muted);
}

.download-dialog {
    width: min(520px, calc(100vw - 28px));
    padding: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.download-dialog::backdrop {
    background: rgba(24, 37, 48, .62);
}

.download-dialog form {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 28px;
}

.download-dialog label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.download-dialog input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    color: var(--muted);
    background: var(--soft);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

@media (max-width: 980px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .intro-grid,
    .split-band,
    .product-hero,
    .product-layout,
    .contact-grid,
    .inquiry-section {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .site-header {
        align-items: flex-start;
    }

    .nav-toggle {
        display: inline-flex;
        min-height: 40px;
        padding: 8px 12px;
        color: var(--ink);
        background: var(--soft);
        border: 1px solid var(--line);
        border-radius: 6px;
    }

    .main-nav {
        position: absolute;
        top: 74px;
        right: 18px;
        left: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

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

    .hero {
        min-height: 760px;
    }

    .hero__media::after {
        background: linear-gradient(180deg, rgba(24, 37, 48, .35), rgba(24, 37, 48, .9));
    }

    .hero__content {
        padding-bottom: 70px;
    }

    .section-heading,
    .site-footer,
    .cookie-banner {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
    }

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

    .cookie-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .cookie-actions,
    .dialog-actions,
    .form-row {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
}
