/* Minimal Bootstrap-Grid + Form + Table Subset für Datenblattselektor. */

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    padding: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.embed {
    padding: 20px 0;
}

:root {
    --sticky-top: 0px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    color: #004885;
    padding: 16px 0;
    margin-bottom: 20px;
    border-bottom: 3px solid #004885;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #004885;
    text-transform: uppercase;
}

.site-logo img {
    display: block;
    background: #fff;
    max-height: 60px;
    width: auto;
    height: auto;
}

.site-footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid #eee;
    background: #f7f7f7;
    color: #666;
    font-size: 13px;
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer a {
    color: #004885;
    text-decoration: none;
    padding: 0 4px;
}

.site-footer a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.row > [class^="col-"] {
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 15px;
}

.col-xs-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 1200px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
}

label {
    display: inline-block;
    margin-bottom: 5px;
}

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.form-control:focus {
    border-color: #004885;
    outline: 0;
}

.datasheets form[name="datasheets-filter"] {
    position: sticky;
    top: var(--sticky-top);
    z-index: 50;
    background: #fff;
    margin: 0 -15px;
    padding: 10px 15px 0;
    border-bottom: 1px solid #eee;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table.table-condensed th,
.table.table-condensed td {
    padding: 6px 10px;
    border-top: 1px solid #eee;
    vertical-align: top;
    text-align: left;
}

.table th {
    border-top: 2px solid #004885 !important;
    background: #f7f7f7;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    font-weight: bold;
    font-size: 15px;
}

.text-right,
.align-right { text-align: right; }

.datasheets a {
    color: #004885;
    text-decoration: none;
}

.datasheets a:hover { text-decoration: underline; }

.datasheets .fa-download {
    display: inline-block;
    margin-right: 5px;
    color: #004885;
    font-size: 14px;
}

.datasheets[data-loading] table.datasheets-list::after {
    content: "…";
    display: block;
    padding: 20px;
    color: #999;
}

.mb-3, .m-b-3 { margin-bottom: 1rem; }

.lang-switch {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

.lang-switch a {
    color: #004885;
    text-decoration: none;
    padding: 0 4px;
}

.lang-switch a[aria-current="true"] {
    color: #333;
    font-weight: bold;
    cursor: default;
    text-decoration: none;
}

.lang-switch a:not([aria-current="true"]):hover {
    text-decoration: underline;
}
