﻿/* Komet Medical: Medical-CI palette, locally hosted Roboto Condensed.
   Base layout retains the existing catalog structure. */
@font-face {
    font-family: "Roboto Condensed";
    src: url("../fonts/roboto-condensed/RobotoCondensed.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
:root {
    --ink: #26332e; /* Komet grey 01 */
    --muted: #4d6666; /* Komet grey 02 */
    --line: #ced9d9; /* Komet grey 03 */
    --accent: #006ab3; /* Komet blue 01 */
    --blue-light: #cee8f0; /* Komet blue 03 */
    --gold: #ffcc1a; /* Komet gold 01 */
    --gold-hover: #e9c230; /* Komet gold 03 */
    --paper: #f5f7f7;
    --white: #fff;
    --heading: "Roboto Condensed", Arial, sans-serif;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font:
        14px/1.55 Arial,
        Helvetica,
        sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
textarea {
    font: inherit;
}
button,
a,
input,
summary,
textarea {
    outline-offset: 4px;
}
:focus-visible {
    outline: 2px solid var(--accent);
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: default;
    opacity: 0.5;
}
/* Header and navigation */
.site-header {
    display: flex;
    align-items: center;
    gap: 38px;
    padding: 30px 4%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.brand {
    display: inline-flex;
    flex: 0 0 auto;
    max-width: 100%;
    align-items: center;
    line-height: 1;
}
.brand img {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
}
.workspace {
    max-width: 340px;
    color: var(--muted);
    font: 400 28px var(--heading);
    /*letter-spacing: 1.8px;*/
}
nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-header nav {
    margin-left: auto;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 13px;
}
.site-header nav > a {
    padding: 9px 0;
    border-bottom: 2px solid transparent;
}
.site-header nav > a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.site-header b {
    display: inline-block;
    min-width: 25px;
    margin-left: 4px;
    padding: 2px 7px;
    text-align: center;
    border-radius: 3px;
    background: var(--blue-light);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
/* Page structure */
main {
    max-width: 1900px;
    margin: auto;
    padding: 34px 4% 60px;
}
.intro {
    margin-bottom: 30px;
}
.eyebrow {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.intro > .eyebrow {
    color: var(--accent);
}
h1 {
    margin: 10px 0;
    font: 300 44px/1.12 var(--heading);
    overflow-wrap: anywhere;
}
h2 {
    margin: 0;
    font: 500 23px/1.25 var(--heading);
}
h3 {
    font: 500 19px/1.3 var(--heading);
}
.intro > p:last-child {
    color: var(--muted);
    margin: 12px 0 0;
}
.catalog-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr); /* Filters 340, Rest flex verteilt */
    gap: 32px;
}
.results {
    min-width: 0;
}
/* Filters */
aside {
    align-self: start;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 3px;
}
.filter-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 19px 20px;
}
.filter-heading h2 {
    font-size: 24px;
    font-weight: 400;
}
.filter-heading a {
    color: var(--accent);
    font-size: 11px;
}
.filter-heading a:hover {
    text-decoration: underline;
}
.filter {
    padding: 15px 20px;
    border-top: 1px solid var(--line);
}
.filter summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}
.filter summary::marker {
    color: var(--muted);
}
.filter[open] summary::marker {
    color: var(--accent);
}
.filter summary b {
    margin-left: 8px;
    padding: 2px 6px;
    background: var(--blue-light);
    border-radius: 2px;
}
.options {
    max-height: 240px;
    overflow: auto;
    margin-top: 12px;
    scrollbar-width: thin;
}
.choice {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 0;
    cursor: pointer;
    font-size: 12px;
}
.choice span {
    flex: 1;
    overflow-wrap: anywhere;
}
.choice small {
    font-size: 11px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.choice input {
    accent-color: var(--accent);
}
.choice:has(input:checked) span {
    color: var(--accent);
    font-weight: 700;
}
.choice.empty {
    color: var(--muted);
}
.range {
    display: flex;
    gap: 8px;
}
.range label {
    min-width: 0;
    font-size: 11px;
}
.range input {
    width: 100%;
    margin-top: 5px;
}
.muted {
    color: var(--muted);
    font-size: 11px;
}
input,
textarea {
    max-width: 100%;
    padding: 10px;
    border: 1px solid #a5b6b6;
    border-radius: 3px;
    background: var(--white);
    color: var(--ink);
}
/* Gold: primary actions. Blue: selections and secondary actions. */
button,
.primary {
    padding: 9px 12px;
    border: 1px solid var(--accent);
    border-radius: 3px;
    background: var(--white);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}
button:not(:disabled):hover {
    background: var(--blue-light);
}
.primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}
.primary:not(:disabled):hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
}
.apply {
    margin: 15px 20px 20px;
    width: calc(100% - 40px);
}
.toolbar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--line);
}
.toolbar > strong {
    margin-right: auto;
    font: 500 23px/1.25 var(--heading);
}
.segmented {
    display: flex;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 3px;
}
.segmented a {
    padding: 7px 12px;
    font-size: 12px;
    background: var(--white);
}
.segmented a:hover {
    background: var(--blue-light);
}
.segmented .active,
.pagination a.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}
.active-filters a {
    padding: 5px 9px;
    border-radius: 3px;
    background: var(--blue-light);
    color: var(--ink);
    font-size: 11px;
    overflow-wrap: anywhere;
}
.active-filters a:hover {
    outline: 1px solid var(--accent);
}
.active-filters span {
    margin-left: 10px;
}
.bulk {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 11px;
}
.bulk form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
/* Product cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--white);
}
.product-card:focus-within {
    border-color: var(--accent);
}
.product-line {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.card-body > .badge {
    align-self: flex-start;
    margin-bottom: 12px;
}
.badge {
    padding: 3px 6px;
    background: var(--gold);
    color: var(--ink);
    border-radius: 2px;
    font-size: 9px;
    font-weight: 700;
}
.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 15px 25px;
}
.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-image > span {
    color: var(--muted);
    font-size: 12px;
}
.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}
.card-body .eyebrow {
    margin: 0 0 6px;
    font-size: 9px;
}
.card-body h2 {
    font: 600 21px/1.2 var(--heading);
    overflow-wrap: anywhere;
}
.card-body h2 a:hover {
    color: var(--accent);
}
.connection {
    margin: 6px 0 18px;
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}
dl {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #e8eeee;
}
dt {
    color: var(--muted);
}
dd {
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
    min-width: 0;
}
.card-body dl {
    min-height: 92px;
    margin-top: auto;
}
.card-body button {
    width: 100%;
    margin-top: 10px;
}
button[aria-pressed="true"] {
    background: var(--blue-light);
    color: var(--ink);
    border-color: var(--blue-light);
}
.pagination {
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}
.pagination a {
    padding: 8px 13px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 3px;
}
.pagination a:hover {
    border-color: var(--accent);
}
.pagination span {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
}
.empty-state {
    padding: 70px 25px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--muted);
}
/* Search, product details and login */
.search-form {
    padding: 24px;
    margin-bottom: 25px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 3px;
}
.search-form > label,
.search-form details label {
    display: block;
    font-size: 12px;
}
.search-form input,
.search-form textarea {
    display: block;
    width: 100%;
    margin: 8px 0 18px;
}
.search-form summary {
    cursor: pointer;
    margin: 10px 0;
}
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding: 35px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 3px;
}
.detail-layout > .product-image {
    height: 400px;
}
.detail-layout dl {
    font-size: 14px;
}
.detail-layout h2 {
    margin-top: 25px;
}
.detail-layout li {
    overflow-wrap: anywhere;
}
.project-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.project-share-link {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-underline-offset: 3px;
}

.sharing-page {
    max-width: 1100px;
    margin: 0 auto;
}

.sharing-panel {
    padding: 24px;
    margin-bottom: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 3px;
}

.sharing-member,
.sharing-search {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0;
}

.sharing-member {
    border-bottom: 1px solid var(--line);
}

.sharing-member > div {
    flex: 1 1 250px;
}

.sharing-member label {
    display: grid;
    gap: 6px;
    font-size: 13px;
}

.sharing-email {
    display: block;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.sharing-recipients {
    max-height: 360px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid var(--line);
}

.sharing-recipient {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
}

.sharing-recipient:has(input:checked) {
    background: var(--blue-light);
}

.sharing-message {
    padding: 16px;
    background: var(--blue-light);
    border-left: 4px solid var(--accent);
}

.login {
    max-width: 480px;
    margin: 8vh auto;
    padding: 44px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: 3px;
}
.login .brand {
    margin-bottom: 26px;
}
.login .brand img {
    width: 290px;
}
.login h1 {
    font-size: 36px;
}
.login > p {
    color: var(--muted);
}
.login label {
    display: block;
    margin-top: 20px;
    font-size: 13px;
}
.login input {
    width: 100%;
    margin-top: 6px;
}
.login button {
    width: 100%;
    margin-top: 25px;
    padding: 12px;
}
footer {
    padding: 24px 4%;
    border-top: 1px solid var(--line);
    background: var(--white);
    color: var(--muted);
    font-size: 12px;
}
footer span {
    float: right;
}
#notice:not(:empty) {
    padding: 10px 4%;
    border-bottom: 1px solid var(--line);
    background: var(--blue-light);
    color: var(--ink);
    font-size: 13px;
}
[aria-busy="true"] {
    opacity: 0.65;
    pointer-events: none;
}
/* Responsive layouts */
.project-context {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4%;
    border-bottom: 1px solid var(--line);
    background: var(--blue-light);
    font-size: 13px;
}
.project-context strong {
    overflow-wrap: anywhere;
}
.project-context a {
    color: var(--accent);
}
.project-create {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    background: white;
}
.project-create input {
    flex: 1 1 250px;
    min-width: 0;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}
.project-tile {
    padding: 24px;
    border: 1px solid var(--line);
    background: white;
}
.project-tile h2 {
    overflow-wrap: anywhere;
}
.project-tile details {
    margin-top: 20px;
}
.project-tile summary {
    cursor: pointer;
}
.project-tile input {
    display: block;
    width: 100%;
    margin: 10px 0;
}
.unavailable {
    padding: 8px 16px;
    color: var(--ink);
    background: var(--line);
    font-size: 12px;
}
@media (min-width: 1600px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 1150px) {
    .workspace {
        display: none;
    }
    .site-header {
        gap: 28px;
    }
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .catalog-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 24px;
    }
    .bulk {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 750px) {
    .site-header {
        flex-wrap: wrap;
        gap: 22px;
        padding: 26px 5% 16px;
    }
    .brand img {
        width: 230px;
    }
    .site-header nav {
        width: 100%;
        margin: 0;
        gap: 18px;
    }
    main {
        padding-top: 24px;
    }
    h1 {
        font-size: 36px;
    }
    .catalog-layout,
    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .product-grid {
        gap: 12px;
    }
    .card-body {
        padding: 14px;
    }
    .card-body h2 {
        font-size: 20px;
    }
    .toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }
    .segmented a {
        padding: 7px 10px;
    }
    .detail-layout {
        padding: 20px;
    }
    .detail-layout > .product-image {
        height: 220px;
    }
    footer span {
        float: none;
        display: block;
    }
    .login {
        margin: 30px 16px;
        padding: 30px;
    }
}
@media (max-width: 420px) {
    .product-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
