html { font-size: 13.6px; }
body {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > nav,
body > footer {
    flex-shrink: 0;
}

.section {
    padding: 75px 60px;
    max-width: 1190px;
    width: 100%;
    margin: 0 auto;
    scroll-margin-top: 79px;
}

#konfigurator {
    flex: 1 0 auto;
}

.section-label {
    margin-bottom: 11px;
}

.section-title {
    margin-bottom: 15px;
}

.cfg {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
    margin-top: 37px;
}

.cfg-steps {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cfg-step {
    padding: 24px 26px;
    background: linear-gradient(180deg, var(--card-hi) 0%, var(--card) 60%);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.cfg-step-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
}

.cfg-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8em;
    color: var(--muted);
}

.cfg-title {
    font-size: 1.25em;
    font-weight: 600;
}

.cfg-hint {
    margin-left: auto;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78em;
    color: var(--muted);
    text-align: right;
}

.cfg-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 4px;
    margin-bottom: 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.cfg-tabs button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 8px;
    background: none;
    border: 0;
    border-radius: 4px;
    color: var(--muted);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: color .15s, background .15s;
}

.cfg-tabs button small {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75em;
    font-weight: 400;
    opacity: .8;
}

.cfg-tabs button:hover {
    color: var(--text);
}

.cfg-tabs button.active {
    background: var(--text);
    color: var(--bg);
}

.cfg-cpus {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cpu-group-name {
    margin-bottom: 9px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.cpu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}

.cpu,
.cfg-opt {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.cpu:hover,
.cfg-opt:hover {
    border-color: var(--line-hi);
}

.cpu.active,
.cfg-opt.active {
    border-color: var(--text);
    background: var(--card-hi);
}

.cpu.active::after,
.cfg-opt.active::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text);
}

.cpu-name {
    font-weight: 500;
    padding-right: 14px;
}

.cpu-meta {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8em;
    color: var(--muted);
}

.cfg-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 8px;
}

.cfg-opt-name {
    font-weight: 500;
    padding-right: 14px;
}

.cfg-opt-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8em;
    color: var(--muted);
}

.cfg-locs {
    grid-template-columns: repeat(4, 1fr);
}

.cfg-locs .cfg-opt {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.cfg-locs .flag {
    width: 23px;
    height: 15px;
    flex-shrink: 0;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, .4);
}

.cfg-summary {
    position: sticky;
    top: 100px;
    padding: 26px 24px;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, .05), transparent 70%),
        var(--card);
    border: 1px solid var(--line-hi);
    border-radius: 6px;
}

.sum-list {
    list-style: none;
    margin: 6px 0 18px;
}

.sum-list li {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95em;
}

.sum-list li strong {
    min-width: 72px;
    color: var(--muted);
    font-weight: 500;
}

.sum-price {
    margin-bottom: 18px;
}

.sum-price-label {
    display: block;
    margin-bottom: 2px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.sum-price .pricing-price {
    letter-spacing: -0.5px;
}

.sum-order {
    display: block;
    text-align: center;
    text-decoration: none;
}

.sum-mail {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 0.9em;
    color: var(--muted);
    text-underline-offset: 3px;
}

.sum-mail:hover {
    color: var(--text);
}

.sum-note {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 0.85em;
    line-height: 1.6;
    color: var(--muted);
}

.cfg-bar {
    display: none;
}

@media (max-width: 1050px) {
    .cfg-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        padding: 12px 20px;
        background: rgba(11, 12, 14, .94);
        border-top: 1px solid var(--line-hi);
        backdrop-filter: blur(8px);
    }

    .cfg-bar-label {
        display: block;
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.72em;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--muted);
    }

    .cfg-bar-price {
        font-size: 1.35em;
        font-weight: 600;
    }

    .cfg-bar a {
        padding: 10px 18px;
        background: var(--text);
        color: var(--bg);
        border-radius: 4px;
        font-weight: 600;
        text-decoration: none;
    }

    body {
        padding-bottom: 68px;
    }

    .section {
        padding-left: 30px;
        padding-right: 30px;
    }

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

    .cfg-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 37px 20px;
    }

    #konfigurator {
        margin-top: 37px;
    }

    .cfg {
        margin-top: 30px;
    }

    .cfg-step {
        padding: 20px 18px;
    }

    .cfg-step-head {
        flex-wrap: wrap;
    }

    .cfg-hint {
        margin-left: 0;
        width: 100%;
        text-align: left;
    }

    .cfg-tabs {
        grid-template-columns: 1fr;
    }

    .cpu-grid,
    .cfg-options,
    .cfg-locs {
        grid-template-columns: 1fr 1fr;
    }
}


#zusammenfassung {
    scroll-margin-top: 90px;
}

.cpu:disabled,
.cfg-opt:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.cpu:disabled:hover,
.cfg-opt:disabled:hover {
    border-color: var(--line);
}

.cfg-locs .loc-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cfg-locs .loc-text .cfg-opt-sub {
    font-size: 0.9em;
    font-weight: 500;
    color: #c4c8ce;
}

.loc-info {
    margin-top: 16px;
    padding: 16px 18px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 2px solid var(--line-hi);
    border-radius: 4px;
}

.loc-info-head {
    margin-bottom: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.loc-info-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px 18px;
}

.loc-info-list li {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    font-size: 0.92em;
}

.loc-info-list li span:last-child {
    margin-top: 2px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95em;
    font-weight: 500;
    color: #d6d9de;
}

.loc-info-note {
    margin-top: 8px;
    font-size: 0.92em;
    line-height: 1.6;
    color: #b3b8bf;
}

.order-open {
    overflow: hidden;
}

.order-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(4px);
}

.order-overlay[hidden] {
    display: none;
}

.order-modal {
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px 30px 26px;
    background: var(--card);
    border: 1px solid var(--line-hi);
    border-radius: 6px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}

.order-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 6px;
}

.order-price {
    margin: 4px 0 18px;
}

.order-wait {
    padding: 14px 16px;
    margin-bottom: 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 2px solid #e0b341;
    border-radius: 4px;
}

.order-wait-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.order-wait p {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--muted);
}

.order-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
}

.order-back {
    padding: 0 20px;
    background: none;
    border: 1px solid var(--line-hi);
    border-radius: 4px;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
}

.order-back:hover {
    color: var(--text);
    border-color: var(--text);
}

.order-go {
    display: block;
    text-align: center;
    text-decoration: none;
    background: var(--text);
    color: var(--bg);
}

.order-go:hover {
    background: var(--hover);
}

@media (max-width: 768px) {
    .loc-info-list {
        grid-template-columns: 1fr 1fr;
    }

    .order-modal {
        padding: 24px 20px 20px;
    }

    .order-actions {
        grid-template-columns: 1fr;
    }

    .order-back {
        padding: 12px;
        order: 1;
    }
}
