:root {
    --blue: #004f75;
    --red: #e30613;
    --text: #222;
    --sidebar-width: 222px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: Lato, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.site {
    max-width: 1260px;
    margin: 0 auto;
}

.site-header {
    position: relative;
    height: 47px;
    background: var(--blue);
}

.site-logo {
    display: block;
    width: var(--sidebar-width);
    height: 47px;
    background: #fff url("/navbar-logo.png") no-repeat center;
}

.lang-switch {
    position: absolute;
    top: 0;
    right: 0;
}

.lang-switch a {
    display: block;
    padding: 15px 13px;
    color: #fff;
    font-size: 12px;
    line-height: 17px;
    text-decoration: none;
    text-transform: uppercase;
}

.site-header-burger {
    display: none;
}

.site-main {
    display: flex;
    min-height: calc(100vh - 47px);
}

.secondary {
    flex: 0 0 var(--sidebar-width);
    background: var(--blue);
}

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

.secondary-navigation li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.secondary-navigation a {
    display: block;
    padding: 6px 9px;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    text-transform: uppercase;
}

.secondary-navigation a:hover,
.secondary-navigation a.active {
    background: var(--red);
    color: #fff;
}

.content {
    width: calc(100% - var(--sidebar-width));
    padding: 92px 40px 60px;
}

.entry-header h1 {
    margin: 0 0 28px;
    font-size: 30px;
    font-weight: 400;
}

.entry-content h3,
.entry-content h4 {
    margin-top: 24px;
}

.entry-content p {
    margin: 0 0 22px;
}

.home > p:first-child {
    margin: 0 0 35px;
    text-align: center;
}

a {
    color: var(--red);
}

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

.isnew {
    color: var(--red);
}

.product-card {
    margin-top: 36px;
    padding-top: 1px;
    border-top: 1px solid #ddd;
}

.product-card h4 {
    margin: 22px 0 16px;
    font-size: 18px;
    text-transform: uppercase;
}

.product-card-body {
    display: grid;
    grid-template-columns: minmax(180px, 300px) minmax(260px, 1fr);
    gap: 30px;
    align-items: start;
}

.product-image img {
    display: block;
    max-height: 300px;
    margin: 0 auto;
    object-fit: contain;
}

.product-summary p,
.product-summary ul {
    margin-top: 0;
}

.document-links a,
.product-actions a {
    display: inline-block;
    margin: 6px 20px 6px 0;
}

.product-detail {
    max-width: 900px;
}

.product-detail-image {
    display: block;
    max-width: 420px;
    max-height: 360px;
    object-fit: contain;
}

.product-detail-image-link {
    display: inline-block;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.product-gallery img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.product-documents {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid #ddd;
}

.product-documents h2 {
    font-size: 21px;
}

.order-button,
.order-form button {
    display: inline-block;
    border: 0;
    background: var(--red);
    color: #fff;
    padding: 10px 16px;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.order-form {
    display: grid;
    max-width: 650px;
    gap: 7px;
    margin-top: 30px;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    max-width: 650px;
}

.form-status.success,
.form-status.error {
    margin: 0 0 20px;
    padding: 12px 15px;
    border: 1px solid;
}

.form-status.success {
    border-color: #277c3a;
    background: #edf8ef;
    color: #175526;
}

.form-status.error {
    border-color: #b0000b;
    background: #fff0f1;
    color: #8a0009;
}

.product-contact-note {
    margin-top: 28px;
}

.order-form input,
.order-form select,
.order-form textarea {
    width: 100%;
    margin-bottom: 13px;
    border: 1px solid #aaa;
    padding: 9px;
    font: inherit;
}

.order-form .checkbox-row {
    display: flex;
    gap: 9px;
    align-items: center;
}

.order-form .checkbox-row input {
    width: auto;
    margin: 0;
}

.field-help {
    margin: -3px 0 15px;
    color: #555;
    font-size: 14px;
}

@media (max-width: 900px) {
    .site-header {
        height: 47px;
    }

    .site-header-burger {
        display: block;
        height: 42px;
        background: var(--blue);
    }

    .burger {
        height: 42px;
        border: 0;
        padding: 0 12px 0 43px;
        background: transparent url("/hamburger_icon_klein_white.png") no-repeat 10px center;
        color: #fff;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    .secondary {
        position: fixed;
        z-index: 20;
        top: 0;
        bottom: 0;
        left: calc(-1 * var(--sidebar-width));
        width: var(--sidebar-width);
        overflow-y: auto;
        transition: left 0.25s ease;
    }

    .secondary.active {
        left: 0;
    }

    .content {
        width: 100%;
        padding: 30px 20px 50px;
    }

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

/* =====================================================================
   Patente & Erfindungen
   Abgestimmt auf style.css: nutzt --blue, --red, --text, Lato,
   eckige Kanten und die Grautöne der Produktseiten (#ddd, #555).
   ===================================================================== */
.patente {
    max-width: 900px;
}

.patente-lead p {
    max-width: 46em;
}

/* Kennzahlen */
.patente-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 6px 0 32px;
}

.patente-fact {
    padding: 12px 16px;
    border-left: 4px solid var(--red);
    background: #f4f7f9;
}

.patente-fact strong {
    display: block;
    color: var(--blue);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.patente-fact span {
    color: #555;
    font-size: 14px;
}

/* Karten */
.patente-list {
    display: grid;
    gap: 18px;
    margin-bottom: 32px;
}

.patente-card {
    padding: 18px 20px;
    border: 1px solid #ddd;
    border-top: 3px solid var(--blue);
}

.patente-card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 12px;
}

.patente-card h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    text-transform: uppercase;
}

.patente-year,
.patente-applicant {
    color: #555;
    font-size: 14px;
}

.patente-applicant {
    margin: 2px 0 10px;
}

.patente-card p {
    margin: 0 0 10px;
}

.patente-tag {
    display: inline-block;
    margin: 0 4px 4px 0;
    padding: 1px 9px;
    background: #e6eef2;
    color: var(--blue);
    font-size: 13px;
}

/* Veröffentlichungen */
.patente-pubs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin: 10px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid #ddd;
    list-style: none;
    font-size: 14px;
}

.patente-pubs li {
    margin: 0;
}

.patente-nr {
    font-family: Consolas, "Courier New", monospace;
    font-weight: 700;
}

.patente-pubs small {
    color: #555;
}

/* Handlungsaufforderung – Blau/Rot wie die Navigation */
.patente-benefit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    background: var(--blue);
    color: #fff;
}

.patente-benefit p {
    max-width: 40em;
    margin: 0;
}

.patente-btn,
.patente-btn:visited {
    display: inline-block;
    padding: 10px 16px;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.patente-btn:hover {
    filter: brightness(1.1);
}

.patente-note {
    margin-top: 14px;
    color: #555;
    font-size: 13px;
}

@media (max-width: 900px) {
    .patente-card {
        padding: 14px 15px;
    }

    .patente-fact strong {
        font-size: 22px;
    }
}
