/* Goldrechner – Kartenlayout */
.gr-card-calculator {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: #303030;
    font-family: inherit;
    box-sizing: border-box;
}

.gr-card-calculator *,
.gr-card-calculator *::before,
.gr-card-calculator *::after {
    box-sizing: border-box;
}

.gr-intro {
    margin: 0 0 18px;
}

.gr-intro h2 {
    margin: 0 0 5px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 700;
}

.gr-intro p {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    color: #555;
}

.gr-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.gr-card {
    overflow: hidden;
    border: 1px solid #d5d5d5;
    border-radius: 18px;
    background: #fff;
}

.gr-card-gold {
    border-color: #d7bd35;
}

.gr-card-silver {
    border-color: #c4c4c4;
}

.gr-card-platinum {
    border-color: #bdbab3;
}

.gr-card-palladium {
    border-color: #9b8f86;
}

.gr-card-title {
    padding: 13px 10px;
    text-align: center;
    font-size: 23px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .02em;
}

.gr-card-gold .gr-card-title {
    background: #ead86d;
}

.gr-card-silver .gr-card-title {
    background: #d4d4d4;
}

.gr-card-platinum .gr-card-title {
    background: #d7d5cf;
}

.gr-card-palladium .gr-card-title {
    background: #c9c1ba;
}

.gr-card-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 105px;
    grid-template-areas:
        "metal input"
        "value value";
    column-gap: 10px;
    row-gap: 2px;
    min-height: 67px;
    padding: 9px 9px 8px;
}

.gr-card-row:nth-child(even) {
    background: #fff9d8;
}

.gr-card-silver .gr-card-row:nth-child(even) {
    background: #f1f1f1;
}

.gr-card-platinum .gr-card-row:nth-child(even) {
    background: #efeee9;
}

.gr-card-metal {
    grid-area: metal;
    min-width: 0;
    align-self: center;
}

.gr-card-metal strong {
    display: block;
    font-size: 17px;
    line-height: 1.1;
}

.gr-card-metal span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.1;
    color: #666;
}

.gr-input-wrap {
    grid-area: input;
    align-self: center;
}

.gr-weight {
    display: block;
    width: 100%;
    height: 41px;
    padding: 5px 10px;
    border: 1px solid #333;
    border-radius: 11px;
    background: #fff;
    color: #555;
    font: inherit;
    font-size: 16px;
    text-align: center;
    outline: none;
}

.gr-weight::placeholder {
    color: #777;
    opacity: 1;
}

.gr-weight:focus {
    border-width: 2px;
    border-color: #555;
    box-shadow: 0 0 0 2px rgba(0,0,0,.08);
}

.gr-card-value {
    grid-area: value;
    min-height: 17px;
    padding-right: 2px;
    text-align: right;
    font-size: 13px;
    color: #555;
}

.gr-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding: 15px 18px;
    border: 1px solid #d5d5d5;
    border-radius: 10px;
    background: #f5f5f5;
}

.gr-summary > div {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.gr-summary span {
    font-size: 17px;
    font-weight: 600;
}

.gr-total {
    font-size: 24px;
}

.gr-print {
    border: 1px solid #555;
    border-radius: 8px;
    background: #fff;
    padding: 8px 17px;
    cursor: pointer;
    font: inherit;
}

.gr-print:hover {
    background: #eee;
}

.gr-update-info {
    margin-top: 10px;
    font-size: 12px;
    color: #777;
}

.gr-note {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #777;
}

@media (max-width: 850px) {
    .gr-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gr-card-row {
        grid-template-columns: minmax(0, 1fr) 125px;
        grid-template-areas: "metal input";
        min-height: 64px;
    }

    .gr-card-value {
        display: none;
    }
}

@media print {
    .gr-intro p,
    .gr-summary .gr-print,
    .gr-update-info,
    .gr-note {
        display: none;
    }

    .gr-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .gr-card {
        border-radius: 8px;
    }

    .gr-card-row {
        grid-template-areas: "metal input";
    }
}
