:root {
    --brand-blue: #148ee0;
    --brand-blue-dark: #0872c6;

    --brand-green: #2cab17;
    --brand-green-dark: #228b12;

    --bg: #f5f7fa;
    --card: #ffffff;

    --text: #17191c;
    --muted: #69717d;

    --line: #dfe5eb;
    --soft-blue: #edf7ff;

    --danger: #c62828;

    --radius: 18px;

    --shadow:
        0 20px 60px
        rgba(20, 42, 66, 0.12);
}


/* =========================================
   BASIS
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
}

body {
    margin: 0;
}

button,
input,
select {
    font: inherit;
}


/* =========================================
   RECHNER CONTAINER
   ========================================= */

.calculator-shell {
    width: 100%;
    padding: 34px 18px;

    display: flex;
    justify-content: center;
}

.calculator-card {
    width: min(1100px, 100%);

    background: var(--card);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;
}


/* =========================================
   HEADER
   ========================================= */

.topbar {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 34px 36px 24px;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color: var(--brand-blue-dark);
}

h1 {
    margin: 0;

    font-size:
        clamp(28px, 4vw, 38px);

    line-height: 1.1;
}

h2 {
    margin: 0 0 8px;

    font-size: 26px;
}

.intro {
    margin: 0 0 30px;

    color: var(--muted);

    line-height: 1.55;
}

.step-badge {
    min-width: 50px;
    height: 38px;

    padding: 0 14px;

    border: 1px solid var(--line);

    border-radius: 999px;

    display: grid;
    place-items: center;

    color: var(--muted);

    font-weight: 700;
}


/* =========================================
   FORTSCHRITT
   ========================================= */

.progress {
    height: 5px;

    background: #edf0f3;
}

.progress span {
    display: block;

    width: 25%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--brand-blue),
            var(--brand-blue-dark)
        );

    transition: width 0.25s ease;
}


/* =========================================
   FORMULAR SCHRITTE
   ========================================= */

.form-step {
    display: none;

    padding: 34px 36px 38px;

    animation: stepIn 0.22s ease;
}

.form-step.active {
    display: block;
}

@keyframes stepIn {

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: none;
    }

}


/* =========================================
   SCHRITT 1
   ZWEISPALTIG
   ========================================= */

.calculator-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(320px, 0.85fr);

    gap: 34px;

    align-items: stretch;

    margin-top: 30px;
}

.calculator-options {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 26px;
}


/* =========================================
   FORMULARFELDER
   ========================================= */

.field-group {
    margin-bottom: 24px;
}

.calculator-options .field-group {
    margin-bottom: 0;
}

.field-group > label,
.calendar-box > label {
    display: block;

    margin-bottom: 9px;

    font-weight: 750;
}

.field-head {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 16px;
}

.field-head label {
    font-weight: 750;
}

.field-head output {
    min-width: 104px;

    padding: 10px 14px;

    text-align: center;

    border: 1px solid var(--line);

    border-radius: 10px;

    background: #fff;

    color: var(--brand-blue-dark);

    font-weight: 800;
}


/* =========================================
   RANGE
   ========================================= */

input[type="range"] {
    width: 100%;

    accent-color: var(--brand-blue);

    cursor: pointer;
}

.range-meta {
    display: flex;

    justify-content: space-between;

    margin-top: 6px;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================
   INPUT / SELECT
   ========================================= */

input:not([type="range"]):not([type="checkbox"]),
select {
    width: 100%;

    min-height: 50px;

    padding: 12px 14px;

    border: 1px solid #cfd7df;

    border-radius: 10px;

    background: #fff;

    color: var(--text);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input:focus,
select:focus {
    border-color: var(--brand-blue);

    box-shadow:
        0 0 0 3px
        rgba(20, 142, 224, 0.12);
}

input.invalid,
select.invalid {
    border-color: var(--danger);

    box-shadow:
        0 0 0 3px
        rgba(198, 40, 40, 0.08);
}


/* =========================================
   AUSWAHL LINKS
   ========================================= */

.service-info {
    padding: 22px;

    border: 1px solid #dbe4ec;

    border-radius: 16px;

    background: #f7f9fb;
}

.service-info > strong {
    display: block;

    margin-bottom: 14px;

    font-size: 15px;
}

.service-info-row {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 9px 0;

    border-bottom: 1px solid #e6ebef;

    font-size: 14px;
}

.service-info-row:last-child {
    border-bottom: 0;
}

.service-info-row span {
    color: var(--muted);
}

.service-info-row strong {
    text-align: right;
}


/* =========================================
   PREISBOX RECHTS
   ========================================= */

.price-panel-side {
    position: relative;

    overflow: hidden;

    min-height: 390px;

    padding: 34px;

    border-radius: 22px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #1597df 0%,
            #0d87d5 48%,
            #0872c6 100%
        );

    box-shadow:
        0 20px 50px
        rgba(0, 102, 172, 0.20);

    color: #fff;
}

.price-panel-side::before {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    right: -90px;
    top: -100px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.07);
}

.price-panel-side > * {
    position: relative;
    z-index: 1;
}

.price-kicker {
    display: block;

    margin-bottom: 24px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color:
        rgba(255, 255, 255, 0.78);
}

.price-row {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 10px;

    font-size: 14px;
}

.price-panel-side .price-row {
    color:
        rgba(255, 255, 255, 0.88);
}

.price-panel-side .price-row strong {
    color: #fff;

    white-space: nowrap;
}

.price-divider {
    height: 1px;

    margin: 18px 0;

    background:
        rgba(255, 255, 255, 0.25);
}

.total-label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;

    font-weight: 700;

    color:
        rgba(255, 255, 255, 0.87);
}

.total-price {
    font-size:
        clamp(42px, 5vw, 60px);

    line-height: 1;

    font-weight: 850;

    letter-spacing: -0.04em;

    color: #fff;
}

.saving-text {
    margin: 18px 0 0;

    max-width: 340px;

    font-size: 13px;

    line-height: 1.55;

    color:
        rgba(255, 255, 255, 0.80);
}


/* =========================================
   KALENDER
   ========================================= */

.calendar-box {
    padding: 24px;

    border: 1px solid var(--line);

    border-radius: 14px;

    background: #f8fafc;
}

.calendar-box small {
    display: block;

    margin-top: 10px;

    color: var(--muted);

    line-height: 1.5;
}


/* =========================================
   MINI SUMMARY
   ========================================= */

.mini-summary {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-top: 18px;

    padding: 18px;

    border-radius: 12px;

    background: var(--soft-blue);
}

.mini-summary span {
    color: var(--muted);
}

.mini-summary strong {
    white-space: nowrap;
}


/* =========================================
   GRIDS
   ========================================= */

.grid {
    display: grid;

    gap: 18px;
}

.grid.two {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.grid.zip-city {
    grid-template-columns:
        150px minmax(0, 1fr);
}


/* =========================================
   DATENSCHUTZ
   ========================================= */

.privacy {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-top: 10px;

    line-height: 1.5;

    color: var(--muted);
}

.privacy input {
    margin-top: 4px;
}


/* =========================================
   CHECKOUT SUMMARY
   ========================================= */

.checkout-summary {
    display: grid;

    gap: 1px;

    overflow: hidden;

    border: 1px solid var(--line);

    border-radius: 14px;

    background: var(--line);
}

.checkout-summary > div {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 16px 18px;

    background: #fff;
}

.checkout-summary span {
    color: var(--muted);
}

.checkout-summary strong {
    text-align: right;
}

.checkout-summary .summary-total {
    background: var(--soft-blue);

    font-size: 18px;
}


/* =========================================
   BUTTONS
   ========================================= */

.actions {
    display: flex;

    justify-content: space-between;

    gap: 14px;

    margin-top: 30px;
}

.actions.single {
    justify-content: flex-end;
}

.btn {
    min-height: 48px;

    padding: 12px 24px;

    border: 0;

    border-radius: 10px;

    cursor: pointer;

    font-weight: 800;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    min-width: 180px;

    background:
        linear-gradient(
            180deg,
            var(--brand-green),
            var(--brand-green-dark)
        );

    color: #fff;
}

.btn-secondary {
    background: #edf1f5;

    color: var(--text);
}


/* =========================================
   PAYPAL
   ========================================= */

#paypal-button-container {
    margin-top: 22px;
}

.checkout-message {
    min-height: 20px;

    margin-bottom: 12px;

    color: var(--danger);

    font-size: 14px;
}

.paypal-placeholder {
    margin-top: 18px;

    padding: 18px;

    border: 1px dashed #bec8d2;

    border-radius: 12px;

    background: #f9fafb;

    color: #4c5964;

    line-height: 1.5;
}

.paypal-placeholder code {
    padding: 2px 5px;

    border-radius: 5px;

    background: #edf1f4;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .calculator-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .price-panel-side {
        min-height: auto;

        padding: 30px;
    }

    .price-panel-side .total-price {
        font-size: 48px;
    }

}


/* =========================================
   MOBIL
   ========================================= */

@media (max-width: 620px) {

    .calculator-shell {
        padding: 0;

        display: block;
    }

    .calculator-card {
        width: 100%;

        min-height: 100vh;

        border-radius: 0;
    }

    .topbar {
        padding:
            24px 20px;
    }

    .form-step {
        padding:
            26px 20px 32px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 23px;
    }

    .calculator-layout {
        margin-top: 22px;
    }

    .grid.two,
    .grid.zip-city {
        grid-template-columns: 1fr;
    }

    .price-panel-side {
        margin: 0;

        padding: 25px 22px;

        border-radius: 18px;
    }

    .price-panel-side .total-price {
        font-size: 42px;
    }

    .service-info {
        padding: 18px;
    }

    .service-info-row {
        align-items: flex-start;
    }

    .actions {
        flex-direction: column-reverse;
    }

    .actions.single {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .mini-summary {
        align-items: flex-start;

        flex-direction: column;

        gap: 6px;
    }

}