/* KINKSGEAR Größentabellen */
.kg-gt-cq { container-type: inline-size; }
.kg-gt {
    --kg-gt-orange: #ff6b00;
    --kg-gt-surface: #141416;
    --kg-gt-surface-2: #1c1c1f;
    --kg-gt-border: #2f2f34;
    --kg-gt-text: #e8e8ea;
    --kg-gt-muted: #a0a0a8;
    display: grid;
    gap: 1.5rem 2rem;
    grid-template-columns: 1fr;
    color: var(--kg-gt-text);
    font-size: .95rem;
    line-height: 1.5;
}
@container (min-width: 720px) {
    .kg-gt { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .kg-gt-hints { grid-column: 1 / -1; }
}
@container (min-width: 1080px) {
    .kg-gt { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr) minmax(0, .75fr); align-items: start; }
    .kg-gt-hints { grid-column: auto; }
}
.kg-gt-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .5rem; }
.kg-gt-title {
    margin: 0;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    white-space: nowrap;
    letter-spacing: .02em;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
}
.kg-gt-slashes { color: var(--kg-gt-orange); font-style: italic; margin-right: .15em; }
.kg-gt-brand { max-height: 28px; max-width: 130px; width: auto; height: auto; object-fit: contain; flex: none; }
.kg-gt-brand-name {
    flex: none; border: 1px solid var(--kg-gt-border); border-radius: 3px; padding: .15rem .5rem;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; text-transform: uppercase; color: var(--kg-gt-muted);
}
.kg-gt-intro { margin: 0 0 1rem; color: var(--kg-gt-text); max-width: 34rem; }
.kg-gt-measure { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.kg-gt-sketch { flex: 0 0 175px; max-width: 175px; color: #f2f2f2; }
.kg-gt-sketch svg, .kg-gt-sketch img { display: block; width: 100%; height: auto; }
.kg-gt-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 180px; }
.kg-gt-legend li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .85rem; }
.kg-gt-legend li:last-child { margin-bottom: 0; }
.kg-gt-legend strong { display: block; color: #fff; font-weight: 700; }
.kg-gt-legend small { display: block; color: var(--kg-gt-muted); font-size: .82rem; line-height: 1.35; }
.kg-gt-letter {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 1.35rem; height: 1.35rem; margin-top: .1rem; border-radius: 2px;
    background: var(--kg-gt-orange); color: #0b0b0c; font-weight: 800; font-size: .8rem;
}
.kg-gt-table-wrap { overflow-x: auto; border: 1px solid var(--kg-gt-border); border-radius: 4px; background: #0f0f11; }
.kg-gt-table { width: 100%; border-collapse: collapse; margin: 0; text-align: center; font-size: .92rem; }
.kg-gt-table th, .kg-gt-table td { padding: .62rem .6rem; border-bottom: 1px solid var(--kg-gt-border); white-space: nowrap; }
.kg-gt-table thead th {
    background: var(--kg-gt-surface-2); color: #fff; font-weight: 700; font-size: .82rem; border-bottom-color: var(--kg-gt-border);
}
.kg-gt-table tbody th {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; font-size: 1.08rem; color: #fff;
}
.kg-gt-table tbody tr:last-child th, .kg-gt-table tbody tr:last-child td { border-bottom: 0; }
.kg-gt-table th + th, .kg-gt-table td, .kg-gt-table tbody th { border-right: 1px solid var(--kg-gt-border); }
.kg-gt-table tr > :last-child { border-right: 0; }
.kg-gt-table tbody tr { transition: background-color .15s ease; }
.kg-gt-table tbody tr:hover { background: var(--kg-gt-surface-2); }
.kg-gt-table tbody tr.is-active { background: linear-gradient(90deg, rgba(255, 107, 0, .55), rgba(170, 60, 0, .7)); }
.kg-gt-table tbody tr.is-active th, .kg-gt-table tbody tr.is-active td { color: #fff; }
.kg-gt-hints {
    border: 1px solid var(--kg-gt-border); border-radius: 6px; background: var(--kg-gt-surface-2); padding: 1.1rem 1.25rem;
}
.kg-gt-hints-title {
    display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 1.2rem; font-weight: 800; color: #fff;
}
.kg-gt-hints-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem;
    border: 2px solid var(--kg-gt-orange); border-radius: 50%; color: var(--kg-gt-orange);
    font-family: Georgia, serif; font-style: normal; font-weight: 700; font-size: .95rem;
}
.kg-gt-hints ul { list-style: none; margin: 0; padding: 0; }
.kg-gt-hints li { position: relative; padding-left: 1.3rem; margin-bottom: .7rem; font-size: .88rem; color: var(--kg-gt-text); }
.kg-gt-hints li:last-child { margin-bottom: 0; }
.kg-gt-hints li::before {
    content: ""; position: absolute; left: 0; top: .42em; width: .55rem; height: .55rem; background: var(--kg-gt-orange);
}

/* Link an der Größen-Variation */
.kg-gt-link {
    display: inline-flex; align-items: center; gap: .35rem; margin-left: .75rem; padding: 0; border: 0; background: none;
    color: var(--primary, #ff6b00); font-size: .85rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
    cursor: pointer; vertical-align: middle;
}
.kg-gt-link:hover, .kg-gt-link:focus-visible { color: #ff8a33; }
.kg-gt-link-icon { width: 1.25rem; height: 1.25rem; flex: none; }

/* Fenster */
.kg-gt-modal { position: fixed; inset: 0; z-index: 1060; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.kg-gt-modal[hidden] { display: none; }
.kg-gt-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }
.kg-gt-modal-box {
    position: relative; width: min(1180px, 100%); max-height: calc(100vh - 2rem); overflow: auto;
    background: #141416; border: 1px solid #2f2f34; border-radius: 6px; padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.kg-gt-modal-close {
    position: absolute; top: .5rem; right: .6rem; width: 2.4rem; height: 2.4rem; border: 0; background: none;
    color: #a0a0a8; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.kg-gt-modal-close:hover { color: #fff; }
body.kg-gt-noscroll { overflow: hidden; }

@media (max-width: 575.98px) {
    .kg-gt-title { font-size: 1.35rem; }
    .kg-gt-sketch { flex-basis: 150px; max-width: 150px; }
    .kg-gt-table th, .kg-gt-table td { padding: .55rem .45rem; font-size: .85rem; }
    .kg-gt-modal { padding: 0; align-items: stretch; }
    .kg-gt-modal-box { max-height: 100vh; border-radius: 0; padding: 2.5rem 1rem 1.25rem; }
}

/* Listen-Icons des Templates (.tab-content ul li::before) neutralisieren */
.kg-gt .kg-gt-legend li, .kg-gt .kg-gt-hints li { list-style: none; }
.kg-gt .kg-gt-legend li { padding-left: 0; }
.kg-gt .kg-gt-legend li::before { content: none; display: none; }
.kg-gt .kg-gt-hints li { padding-left: 1.3rem; }
.kg-gt .kg-gt-hints li::before {
    content: ""; font-family: inherit; position: absolute; left: 0; top: .42em; width: .55rem; height: .55rem;
    background: var(--kg-gt-orange); color: transparent;
}
@media (max-width: 575.98px) { .kg-gt-title { white-space: normal; } }
@container (max-width: 520px) {
    .kg-gt-table thead th { white-space: normal; font-size: .75rem; line-height: 1.2; }
    .kg-gt-table th, .kg-gt-table td { padding: .5rem .3rem; font-size: .84rem; }
    .kg-gt-measure { align-items: flex-start; }
    .kg-gt-sketch { flex-basis: 140px; max-width: 140px; margin: 0 auto; }
}
/* Spaltenköpfe dürfen umbrechen (v1.1.0) */
.kg-gt-table thead th { white-space: normal; line-height: 1.25; }
.kg-gt-table th, .kg-gt-table td { padding-left: .45rem; padding-right: .45rem; }
