:root {
    --dr-primary: #1a56db;
    --dr-secondary: #7c3aed;
    --dr-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --dr-bg: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

body.dr-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dr-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dr-main {
    flex: 1;
    animation: drFadeIn 0.15s ease-in;
}

@keyframes drFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dr-header {
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.dr-brand {
    font-weight: 700;
    color: #111827 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dr-nav-main .nav-link {
    font-weight: 500;
    color: #374151;
}

.dr-nav-main .nav-link:hover {
    color: var(--dr-primary);
}

.dr-hero {
    background: var(--dr-gradient);
    color: #fff;
}

.dr-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dr-hero-sub {
    color: rgba(255, 255, 255, 0.9);
    max-width: 42rem;
    margin: 0 auto;
}

.dr-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
}

.dr-section {
    padding: 2.5rem 0;
}

.dr-section--alt {
    background: rgba(255, 255, 255, 0.55);
}

.dr-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.dr-section-lead {
    color: #6b7280;
    margin-bottom: 1.25rem;
}

.dr-calc-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    color: inherit;
}

.dr-calc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
}

.dr-calc-card__icon {
    font-size: 1.75rem;
    line-height: 1;
}

.dr-calc-card__title {
    display: block;
    color: #111827;
    margin-bottom: 0.15rem;
}

.dr-calc-card__desc {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.dr-calc-hero {
    background: var(--dr-gradient);
    color: #fff;
}

.dr-calc-hero__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dr-calc-hero__icon {
    font-size: 2.5rem;
}

.dr-calc-hero__title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dr-calc-hero__lead {
    color: rgba(255, 255, 255, 0.88);
}

.dr-breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5);
    --bs-breadcrumb-item-active-color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

.dr-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.dr-breadcrumb a:hover {
    color: #fff;
}

.dr-page-header {
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.dr-page-header .dr-breadcrumb {
    --bs-breadcrumb-divider-color: #9ca3af;
    --bs-breadcrumb-item-active-color: #374151;
}

.dr-page-header .dr-breadcrumb a {
    color: #2563eb;
}

.dr-page-header .dr-breadcrumb a:hover {
    color: #1d4ed8;
}


.dr-page-title {
    font-size: 1.75rem;
    font-weight: 800;
}

.dr-page-lead {
    color: #6b7280;
}

.dr-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.dr-card--landing {
    max-width: 100%;
}

.dr-btn-calc {
    min-width: 12rem;
    font-weight: 600;
    border-radius: 0.65rem;
    padding: 0.75rem 1.5rem;
    background: var(--dr-gradient);
    border: none;
}

.dr-btn-calc:hover,
.dr-btn-calc:focus {
    filter: brightness(1.05);
    background: var(--dr-gradient);
}

.dr-results .dr-result-box {
    background: var(--dr-gradient);
    color: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
}

.dr-results .dr-result-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dr-results .dr-result-row:last-child {
    border-bottom: none;
}

.dr-info-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.dr-info-card__icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.dr-footer {
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.dr-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.dr-stepper button {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
}

.dr-stepper .dr-stepper-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dr-primary);
    min-width: 3rem;
    text-align: center;
}

@media (max-width: 767.98px) {
    .dr-calc-hero__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Calculator form widgets ── */
.dr-calculator-app .dr-calc-field {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
}

.dr-calculator-app .dr-calc-field:last-child {
    margin-bottom: 0;
}

.dr-calc-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

.dr-calc-hint {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

.dr-calc-input,
.dr-calc-select {
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    padding: 0.65rem 0.85rem;
}

.dr-calc-input:focus,
.dr-calc-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* Segmented toggle */
.dr-segment {
    display: inline-flex;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 0.75rem;
    gap: 0.15rem;
}

.dr-segment__btn {
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem;
    border-radius: 0.55rem;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.dr-segment__btn.is-active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.dr-segment[data-accent="purple"] .dr-segment__btn.is-active { color: #7c3aed; }
.dr-segment[data-accent="amber"] .dr-segment__btn.is-active { color: #d97706; }

/* Pills */
.dr-pills {
    display: grid;
    gap: 0.5rem;
}

.dr-pills--cols-6 { grid-template-columns: repeat(6, 1fr); }
.dr-pills--cols-5 { grid-template-columns: repeat(5, 1fr); }
.dr-pills--cols-4 { grid-template-columns: repeat(4, 1fr); }
.dr-pills--cols-3 { grid-template-columns: repeat(3, 1fr); }

.dr-pill {
    border: none;
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.65rem 0.35rem;
    border-radius: 0.75rem;
    transition: transform 0.12s, background 0.12s, color 0.12s, box-shadow 0.12s;
}

.dr-pill:hover { background: #e5e7eb; }

.dr-pills[data-accent="blue"] .dr-pill.is-active,
.dr-pill.is-active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: scale(1.04);
}

.dr-pills[data-accent="purple"] .dr-pill.is-active { background: #7c3aed; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35); }
.dr-pills[data-accent="amber"] .dr-pill.is-active { background: #f59e0b; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35); }

@media (max-width: 575.98px) {
    .dr-pills--cols-6 { grid-template-columns: repeat(3, 1fr); }
}

/* Card choices */
.dr-cards {
    display: grid;
    gap: 0.75rem;
}

.dr-cards--cols-2 { grid-template-columns: repeat(2, 1fr); }

.dr-card-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.85rem;
    background: #f9fafb;
    color: #4b5563;
    padding: 1rem 0.75rem;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.dr-card-choice:hover { border-color: #d1d5db; }

.dr-cards[data-accent="blue"] .dr-card-choice.is-active,
.dr-card-choice.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.dr-cards[data-accent="purple"] .dr-card-choice.is-active { border-color: #7c3aed; background: #f5f3ff; color: #6d28d9; }
.dr-cards[data-accent="amber"] .dr-card-choice.is-active { border-color: #f59e0b; background: #fffbeb; color: #b45309; }
.dr-cards[data-accent="pink"] .dr-card-choice.is-active { border-color: #ec4899; background: #fdf2f8; color: #be185d; }

.dr-card-choice__icon { font-size: 1.75rem; line-height: 1; }
.dr-card-choice__title { font-weight: 700; font-size: 0.95rem; }
.dr-card-choice__sub { font-size: 0.78rem; opacity: 0.85; }

/* List cards (MwSt) */
.dr-list-cards { display: flex; flex-direction: column; gap: 0.65rem; }

.dr-list-card {
    display: block;
    width: 100%;
    text-align: left;
    border: 2px solid #e5e7eb;
    border-radius: 0.85rem;
    background: #fff;
    padding: 0.85rem 1rem;
    transition: border-color 0.15s, background 0.15s;
}

.dr-list-card:hover { border-color: #d1d5db; }

.dr-list-cards[data-accent="amber"] .dr-list-card.is-active,
.dr-list-card.is-active {
    border-color: #f59e0b;
    background: #fffbeb;
}

.dr-list-card__title { display: block; font-weight: 700; color: #111827; }
.dr-list-card__desc { display: block; font-size: 0.8rem; color: #6b7280; margin-top: 0.15rem; }

/* Hero number + range */
.dr-hero-input__wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.dr-hero-input__number {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.85rem !important;
    padding: 0.85rem 2.5rem 0.85rem 1rem !important;
}

.dr-hero-input__number:focus {
    border-color: #2563eb !important;
    box-shadow: none !important;
}

.dr-hero-input[data-accent="purple"] .dr-hero-input__number:focus { border-color: #7c3aed !important; }
.dr-hero-input[data-accent="amber"] .dr-hero-input__number:focus { border-color: #f59e0b !important; }

.dr-hero-input__unit {
    position: absolute;
    right: 1rem;
    font-weight: 600;
    color: #6b7280;
    pointer-events: none;
}

.dr-hero-input__range {
    margin-top: 0.85rem;
    accent-color: #2563eb;
}

.dr-hero-input[data-accent="purple"] .dr-hero-input__range { accent-color: #7c3aed; }
.dr-hero-input[data-accent="amber"] .dr-hero-input__range { accent-color: #f59e0b; }

.dr-hero-input__scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.35rem;
}

/* Stepper variants */
.dr-stepper--inline {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.dr-stepper--inline .dr-stepper-minus,
.dr-stepper--inline .dr-stepper-plus {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.dr-stepper--inline .dr-stepper-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2563eb;
    min-width: 5rem;
    text-align: center;
}

.dr-stepper--inline .dr-stepper-value small {
    font-weight: 500;
    color: #6b7280;
}

/* Checkbox row */
.dr-check-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.dr-check-row:last-child { margin-bottom: 0; }

.dr-check-row .form-check-input {
    margin-top: 0.2rem;
    width: 1.15rem;
    height: 1.15rem;
}

.dr-check-row__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.dr-check-row__text small {
    color: #6b7280;
    font-weight: 400;
}

/* Toggle button */
.dr-toggle-btn {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dr-toggle-btn__state {
    width: 100%;
    border: none;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font-weight: 600;
    text-align: left;
    background: #f3f4f6;
    color: #4b5563;
    transition: background 0.15s, color 0.15s;
}

.dr-toggle-btn__state.is-active {
    background: #22c55e;
    color: #fff;
}

.dr-toggle-btn[data-accent="purple"] .dr-toggle-btn__state.is-active { background: #7c3aed; }

/* Quick pills */
.dr-quick-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.dr-quick-pill {
    border: none;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 0.5rem;
}

.dr-quick-pill.is-active,
.dr-quick-pill:hover {
    background: #2563eb;
    color: #fff;
}

/* Range label */
.dr-range-value {
    font-weight: 700;
    color: #2563eb;
    font-size: 0.95rem;
}

.dr-field-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.dr-field-header .dr-calc-label { margin-bottom: 0; }

