/* Lokale Einbindung der Fonts: Work Sans als Primärfont, Material Icons */
@font-face {
    font-family: 'Material Symbols Rounded';
    src: url('./fonts/MaterialSymbolsRounded[FILL,GRAD,opsz,wght].woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Work Sans';
    src: url('./fonts/work-sans-v24-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue: #0084cb;
    --blue-dark: #0b6fae;
    --blue-light: #54a2e6;
    --sand: #ffe2c7;
    --gray: #e7e4e0;
    --gray-text: #222;
    --gray-muted: #7a7a7a;
    --radius: 8px;
    --shadow: none;
    --font: 'Work Sans', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background: var(--blue);
    font-family: var(--font);
    color: var(--gray-text);
}

.calc-container {
    background-color: var(--blue);
    width: 100%;
    max-width: 620px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-sizing: border-box;
    border-radius: var(--radius);
}

.calc-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-icon {
    font-family: 'Material Symbols Rounded', sans-serif;
    font-size: 24px;
    color: #fff;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.calc-heading {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
}

.calc-select {
    width: 100%;
    padding: 16px 18px;
    font-size: 17px;
    border: 2px solid #d3d0cc;
    border-radius: var(--radius);
    background: var(--gray);
    color: var(--gray-text);
    cursor: pointer;
    appearance: none;
    padding-right: 46px;
    font-weight: 600;
}

.calc-select:focus {
    outline: none;
    border-color: #c4c0bb;
    background: #f0eeeb;
}

.calc-select::-ms-expand {
    display: none;
}

.calc-select {
    background-image: linear-gradient(45deg, transparent 50%, #444 50%), linear-gradient(135deg, #444 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
}

.calc-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.calc-radio-btn {
    padding: 16px 12px;
    border: 2px solid #448bc2;
    border-radius: var(--radius);
    background-color: #5aa0d6;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    min-height: 70px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.calc-button-group.is-transport {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    width: 100%;
}

.calc-button-group.is-speed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    width: 100%;
}

.calc-button-group.is-speed .calc-radio-btn {
    width: 100%;
    padding: 7px 10px;
    min-height: 56px;
}

.calc-button-group.is-transport .calc-radio-btn {
    width: 100%;
    padding-top: 18px;
    padding-bottom: 18px;
}

.calc-radio-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.calc-radio-btn:hover {
    background-color: #a6c5dc;
}

label:has(.calc-radio-radio:checked),
.calc-radio-btn.active {
    background-color: var(--sand);
    border-color: #F28F45;
    color: #000;
}

label:has(.calc-radio-radio:checked) .calc-button-secondary,
.calc-radio-btn.active .calc-button-secondary {
    color: #111;
}

label:has(.calc-radio-radio:checked) .calc-button-primary,
.calc-radio-btn.active .calc-button-primary {
    color: #111;
}

.calc-button-primary {
    font-size: 18px;
    font-weight: 700;
    color: #2C5981;
    line-height: 1.1;
}

.calc-button-secondary {
    font-size: 14px;
    color: #2C5981;
    line-height: 1.2;
}

.calc-price-section {
    background-color: #5aa0d6;
    border-radius: var(--radius);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    align-items: center;
    color: #fff;
    text-align: center;
}

.calc-price-label {
    font-size: 18px;
    font-weight: 700;
}

.calc-price-amount {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.calc-price-vat {
    font-size: 15px;
    color: #e6f2ff;
    font-weight: 600;
}