/* Alle Farben und Abstände an einem Ort. Keine CSS-Bibliothek erforderlich. */
.catalog-version {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    color: #91a198;
    font-size: 10px;
}
.btn.text-button {
    min-height: 22px;
    padding: 3px;
    font-size: 10px;
    text-decoration: underline;
    color: #698374;
}
.finance-alternative {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 17px 0 0;
    margin-top: 20px;
    border-top: 1px solid #dce3df;
}
.finance-alternative > span {
    font-size: 11px;
    color: #698375;
}
.finance-alternative > strong {
    font-size: 21px;
    letter-spacing: -0.04em;
}
.finance-alternative > small {
    font-size: 10px;
    color: #687b7f;
}
.finance-alternative > .btn {
    margin-top: 4px;
}
:root {
    --ink: #173e48;
    --ink-deep: #102e36;
    --muted: #687b7f;
    --paper: #f4f5f1;
    --white: #fff;
    --line: #dce3df;
    --accent: #dd793f;
    --accent-soft: #fff0e4;
    --green: #28705a;
    --green-soft: #e8f2eb;
    --warn: #9b6227;
    --warn-soft: #fcf1dc;
    --legacy: #655390;
    --legacy-soft: #f0ebf8;
    --radius: 16px;
    --shadow: 0 8px 32px #173e4807;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
    font-synthesis: none;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--paper);
}
button,
input,
select,
textarea {
    font: inherit;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}
a {
    color: inherit;
    text-decoration: none;
}
h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}
h1,
h2,
h3,
h4 {
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.2;
}
h1 {
    font-size: 32px;
    margin-bottom: 10px;
}
h2 {
    font-size: 25px;
    margin-bottom: 10px;
}
h3 {
    font-size: 19px;
    margin-bottom: 14px;
}
h4 {
    font-size: 15px;
    margin: 20px 0 10px;
}
p {
    margin-bottom: 14px;
}
small {
    font-size: 12px;
}
svg {
    flex-shrink: 0;
    vertical-align: middle;
}
.muted {
    color: var(--muted);
    font-size: 13px;
}
.multiline {
    white-space: pre-wrap;
}
.eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.15em;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--muted);
}
.eyebrow.light {
    color: #a5bbb9;
}
.text-warn {
    color: var(--warn);
}
.text-good {
    color: var(--green);
}
.full {
    width: 100%;
}
.wide {
    grid-column: 1/-1;
}
.strong {
    font-weight: 700;
}
.initial {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: 0.09em;
    line-height: 1.2;
}
.brand small {
    display: block;
    font-size: 8px;
    letter-spacing: 0.22em;
    font-weight: 650;
    margin-top: 5px;
}
.brand-mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--ink);
    color: #f8bb83;
    font-size: 28px;
    font-style: italic;
    font-weight: 700;
    letter-spacing: -0.08em;
    padding-right: 4px;
}
.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    height: 84px;
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 7px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
    transition:
        background 0.15s,
        border-color 0.15s,
        box-shadow 0.15s;
}
.btn:hover {
    background: #e8edeb;
}
.btn.primary {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.btn.primary:hover {
    background: var(--ink-deep);
    box-shadow: 0 3px 8px #102e3620;
}
.btn.secondary {
    background: #fff;
    border-color: #cdd8d4;
}
.btn.secondary:hover {
    background: #f4f7f5;
    border-color: #9bafaa;
}
.btn.small {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 12px;
}
.btn.icon-btn {
    padding: 10px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 8px;
}
.nav {
    color: var(--muted);
}
.nav.active {
    background: var(--green-soft);
    color: var(--ink);
}
.user-tools {
    display: flex;
    align-items: center;
    gap: 15px;
}
.user-name {
    font-size: 12px;
    color: var(--muted);
}
.app-body {
    max-width: 1680px;
    margin: 0 auto;
    padding: 32px 36px 60px;
}
.workspace-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.workspace-head > .actions {
    align-self: center;
}
.workspace-head p {
    color: var(--muted);
    margin-bottom: 0;
}
.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.segmented {
    display: inline-flex;
    background: #e9ede8;
    padding: 4px;
    border-radius: 10px;
    gap: 2px;
}
.segmented .btn {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
}
.segmented .selected {
    background: #fff;
    box-shadow: 0 1px 5px #173e4812;
}
.badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 5px;
    background: #eef1ef;
    font-size: 10px;
    font-weight: 650;
    color: var(--muted);
    letter-spacing: 0.015em;
}
.badge.green {
    background: var(--green-soft);
    color: var(--green);
}
.badge.warn {
    background: var(--warn-soft);
    color: var(--warn);
}
.badge.legacy {
    background: var(--legacy-soft);
    color: var(--legacy);
}
.row-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 7px;
}
.row-badges:empty {
    display: none;
}
.demo-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #81745d;
    margin: -8px 0 24px;
    padding: 9px 12px;
    background: #f9f6ec;
    border: 1px solid #eae4d5;
    border-radius: 8px;
}
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 7px;
    margin-bottom: 28px;
}
.step {
    border: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    text-align: left;
    padding: 13px;
    background: transparent;
    border-radius: 8px;
    color: var(--muted);
    min-width: 0;
}
.step strong {
    display: block;
    font-size: 13px;
    font-weight: 650;
}
.step small {
    font-size: 10px;
    color: var(--muted);
    display: block;
    margin-top: 4px;
}
.step > svg {
    margin-left: auto;
    color: #a6b5af;
}
.step.active {
    background: var(--green-soft);
    color: var(--ink);
}
.step-number {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid #dbe1dc;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
}
.step.active .step-number {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.step.done .step-number {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.consult-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 315px;
    gap: 28px;
    align-items: start;
}
.consult-main {
    min-width: 0;
}
.quote-sidebar {
    position: sticky;
    top: 24px;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}
.section-heading h2 {
    font-size: 24px;
}
.section-heading p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 0;
}
.section-heading.compact {
    margin-bottom: 16px;
}
.section-heading.compact h3 {
    margin-bottom: 0;
}
.section-heading.compact p {
    margin-top: 5px;
}
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    text-align: left;
    margin-bottom: 14px;
}
.form-grid > .field {
    margin-bottom: 0;
}
.field > span {
    font-size: 12px;
    font-weight: 600;
    color: #465e62;
}
.field input,
.field select,
.field textarea {
    width: 100%;
}
.field small {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 400;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    border: 1px solid #d6dfda;
    background: #fff;
    border-radius: 8px;
    min-height: 43px;
    padding: 10px 12px;
    outline: none;
    color: var(--ink);
    transition:
        border-color 0.1s,
        box-shadow 0.1s;
}
input::placeholder,
textarea::placeholder {
    color: #9da9a7;
    font-size: 12px;
}
input:focus,
select:focus,
textarea:focus {
    border-color: #537e76;
    box-shadow: 0 0 0 3px #537e7616;
}
input:disabled,
select:disabled,
textarea:disabled {
    background: #f0f3f1;
    color: var(--muted);
}
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--ink);
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    cursor: pointer;
}
textarea {
    resize: vertical;
}
.model-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 8px;
}
.model-intro h2 {
    font-size: 30px;
}
.model-intro p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 0;
}
.model-symbol {
    color: #99b0aa;
    background: linear-gradient(135deg, #eff4ee, #f9f6f0);
    width: 105px;
    height: 82px;
    border-radius: 14px;
    display: grid;
    place-items: center;
}
.modelyear {
    font-size: 11px;
    margin-bottom: 18px;
}
.trim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 10px;
}
.trim-card {
    position: relative;
    text-align: left;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    color: var(--ink);
    transition: 0.15s;
}
.trim-card.selected {
    background: #f3f7f2;
    border-color: var(--green);
    box-shadow: inset 0 0 0 1px var(--green);
}
.trim-card:hover {
    border-color: #7b9a8e;
}
.radio-dot {
    display: block;
    width: 16px;
    height: 16px;
    border: 1.5px solid #b6c5bd;
    border-radius: 50%;
    margin-bottom: 14px;
}
.trim-card.selected .radio-dot {
    background: var(--green);
    border: 4px solid #e0eae0;
    box-shadow: 0 0 0 1px var(--green);
}
.trim-card strong {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}
.trim-card small {
    display: block;
    font-size: 10px;
    color: var(--muted);
}
.trim-price {
    font-size: 20px;
    font-weight: 650;
    display: block;
    letter-spacing: -0.04em;
    margin-bottom: 13px;
}
.trim-price small {
    font-size: 10px;
    display: inline;
    margin-left: 4px;
    font-weight: 400;
    letter-spacing: 0;
}
.step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 25px 0 12px;
}
.step-footer > span {
    font-size: 12px;
    color: var(--muted);
}
.conditions-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
    margin: 18px 0;
}
.conditions-row b {
    font-weight: 600;
    color: var(--ink);
}
.summary-card {
    background: #fff;
    border: 1px solid #cfdad4;
    border-radius: 16px;
    padding: 25px 23px;
    box-shadow: 0 12px 32px #173e480b;
}
.summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.small-car {
    color: #78988a;
}
.summary-card h2 {
    font-size: 20px;
    line-height: 1.3;
    margin: 13px 0 8px;
    letter-spacing: -0.025em;
}
.summary-trim {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}
.summary-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.summary-tags span {
    font-size: 11px;
    background: #f1f4f0;
    border-radius: 4px;
    padding: 5px 7px;
    color: #536b63;
}
.rate-block {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}
.rate-block > span {
    font-size: 12px;
    color: var(--muted);
}
.rate-block strong {
    font-size: 43px;
    font-weight: 650;
    letter-spacing: -0.055em;
    line-height: 1.3;
    margin: 5px 0;
}
.rate-block small {
    color: var(--muted);
    font-size: 11px;
}
.price-toggle {
    margin: 14px 0 2px;
    padding: 3px;
}
.price-toggle .btn {
    font-size: 10px;
    min-height: 25px;
    padding: 5px 10px;
}
.summary-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 12px;
    border-block: 1px solid var(--line);
    padding: 20px 0;
    margin: 20px 0;
}
.summary-breakdown > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.summary-breakdown span {
    color: var(--muted);
}
.summary-breakdown b {
    font-weight: 600;
}
.summary-breakdown small {
    color: #97a7a0;
}
.saving,
.saving span,
.saving b {
    color: var(--green) !important;
}
.summary-upe {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    font-size: 11px;
    color: var(--muted);
}
.summary-upe strong {
    font-size: 12px;
    color: #4c6860;
    font-weight: 500;
}
.summary-footnote {
    text-align: center;
    font-size: 10px;
    color: #96a69e;
    margin: 12px 0 0;
}
.internal-reveal {
    border: 0;
    background: none;
    padding: 15px 5px;
    color: #788d86;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-size: 11px;
}
.summary-errors {
    background: #fff1e9;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #9c5033;
    margin: 10px 0 17px;
}
.summary-errors p {
    margin-bottom: 6px;
}
.searchbar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0 13px;
    margin-bottom: 18px;
    color: #90a199;
}
.searchbar input:not([type="checkbox"]) {
    border: 0;
    background: none;
    box-shadow: none;
    width: 100%;
    min-height: 46px;
    padding-left: 0;
}
.option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.option-card {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    cursor: pointer;
    transition: border 0.15s;
}
.option-card:hover {
    border-color: #9ab0a4;
}
.option-card.selected {
    border-color: #6e9984;
    background: #f9fcf8;
    box-shadow: inset 3px 0 var(--green);
}
.option-card.unavailable {
    background: #f0f2ef;
    color: #81918a;
}
.option-card input {
    margin: 0;
}
.option-content {
    flex: 1;
    min-width: 0;
}
.option-content > strong {
    font-size: 14px;
    display: block;
    font-weight: 600;
}
.option-content > small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    margin-top: 4px;
}
.option-price {
    text-align: right;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 650;
}
.option-price small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    font-weight: 400;
    margin-top: 4px;
}
.option-impact {
    font-size: 11px;
    color: var(--green);
    margin-top: 9px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.stock-option-edit {
    font-size: 11px;
    color: var(--legacy);
    padding: 9px 12px;
    background: var(--legacy-soft);
    border-radius: 0 0 9px 9px;
}
.stock-option-edit input {
    max-width: 90px;
    min-height: 30px !important;
    padding: 5px 8px !important;
    margin: 0 7px;
}
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 34px;
}
.package-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 23px 17px 17px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: var(--shadow);
}
.package-card.recommended {
    border: 2px solid var(--accent);
    padding: 22px 16px 16px;
    background: #fffcf9;
}
.package-card.chosen {
    box-shadow: 0 0 0 2px #2d765127;
}
.recommend-label {
    position: absolute;
    top: -15px;
    left: 15px;
    right: 15px;
    padding: 6px 9px;
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.025em;
}
.package-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 10px;
    min-height: 24px;
}
.package-top .eyebrow {
    margin: 0;
}
.package-top .badge {
    font-size: 8px;
    padding: 3px 5px;
}
.package-card h3 {
    font-size: 17px;
    line-height: 1.35;
    min-height: 47px;
    margin: 0 0 13px;
}
.package-rate {
    font-size: 31px;
    letter-spacing: -0.06em;
    font-weight: 650;
    white-space: nowrap;
}
.package-rate small {
    display: block;
    font-size: 10px;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--muted);
    margin-top: 2px;
}
.package-delta {
    font-size: 10px;
    color: var(--muted);
    margin: 10px 0 17px;
}
.package-features {
    list-style: none;
    margin: 0;
    padding: 17px 0;
    border-top: 1px solid var(--line);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.package-features li {
    display: flex;
    gap: 9px;
    font-size: 11px;
    line-height: 1.45;
}
.package-features li > span:first-child {
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    flex-shrink: 0;
}
.package-features .included {
    color: var(--green);
}
.package-features .included > span + span {
    color: var(--ink);
}
.package-features .excluded {
    color: #a3aca7;
}
.package-total {
    display: flex;
    flex-direction: column;
    font-size: 10px;
    color: var(--muted);
    padding: 15px 0 10px;
    border-top: 1px solid var(--line);
}
.package-total strong {
    font-size: 13px;
    color: var(--ink);
    font-weight: 600;
    margin-top: 4px;
}
.package-total small {
    font-size: 9px;
    line-height: 1.5;
    margin-top: 3px;
}
.package-benefit {
    font-size: 10px;
    color: var(--green);
    line-height: 1.5;
    background: var(--green-soft);
    padding: 8px;
    border-radius: 6px;
    margin: 3px 0 15px;
    min-height: 45px;
}
.package-benefit.neutral {
    background: #f4f5f1;
    color: var(--muted);
}
.individual-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    gap: 20px;
}
.individual-intro strong {
    font-size: 14px;
}
.individual-intro p {
    font-size: 12px;
    color: var(--muted);
    margin: 5px 0 0;
}
.decision-strip {
    display: flex;
    gap: 25px;
    border: 1px dashed #cbd7ce;
    border-radius: 10px;
    padding: 13px 17px;
    font-size: 12px;
    color: #8a948d;
    margin-bottom: 25px;
}
.decision-strip span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.decision-strip .resolved {
    color: var(--green);
}
.extra-section {
    margin: 28px 0;
}
.workflow-hint {
    font-size: 12px;
    color: var(--muted);
    text-align: right;
}
.internal-panel {
    background: #eaf1ed;
    border-color: #cbdad2;
    margin-top: 18px;
    padding: 22px;
}
.internal-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.internal-metrics > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.internal-metrics span {
    font-size: 11px;
    color: #698375;
}
.internal-metrics strong {
    font-size: 25px;
    letter-spacing: -0.04em;
    font-weight: 600;
}
.internal-metrics small {
    font-size: 10px;
    color: var(--muted);
}
.internal-panel .internal-metrics {
    grid-template-columns: 1fr;
    gap: 15px;
}
.internal-panel .internal-metrics strong {
    font-size: 24px;
}
.internal-panel .muted {
    font-size: 10px;
    margin: 18px 0 0;
}
.internal-box {
    margin-top: 20px;
    padding: 20px;
    background: #edf1ef;
    border-radius: 9px;
}
.internal-box h4 {
    margin-top: 0;
}
.internal-box p {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 0;
}
.stock-panel {
    border-color: #d6cee3;
}
.checkline {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 10px 0;
    font-size: 12px;
    cursor: pointer;
}
.checkline input {
    margin: 0;
    flex-shrink: 0;
}
.checkline span small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px;
}
.checkgroup {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin: 14px 0;
}
.offer-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}
.offer-heading p {
    color: var(--muted);
    margin: 0;
}
.offer-lines > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid #edf0eb;
    font-size: 13px;
}
.offer-lines > div > span {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.offer-lines svg {
    color: var(--green);
}
.offer-lines b {
    font-weight: 500;
    white-space: nowrap;
}
.offer-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
    margin-bottom: 15px;
    font-size: 13px;
}
.offer-total strong {
    font-size: 32px;
    letter-spacing: -0.05em;
}
.cost-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    margin: 24px 0;
}
.cost-grid > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.cost-grid span {
    color: var(--muted);
}
.cost-grid b {
    font-weight: 500;
}
.cost-grid .strong {
    border-top: 1px solid var(--line);
    padding-top: 15px;
}
.cost-grid .strong b,
.cost-grid .strong span {
    font-weight: 700;
    color: var(--ink);
}
.notice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #eaf0eb;
    border: 1px solid #d5e1d8;
    border-radius: 10px;
    padding: 15px 18px;
    color: #577566;
    font-size: 12px;
    line-height: 1.65;
    margin: 20px 0;
}
.notice.warn {
    background: var(--warn-soft);
    border-color: #ecdfc4;
    color: var(--warn);
}
.notice.frozen {
    background: var(--legacy-soft);
    border-color: #ddd5eb;
    color: var(--legacy);
}
.notice.frozen .btn {
    margin-left: auto;
}
.empty {
    text-align: center;
    padding: 40px 25px;
    color: var(--muted);
    font-size: 13px;
}
.empty h1 {
    color: var(--ink);
    margin-bottom: 20px;
}
.empty .btn {
    margin-top: 15px;
}
.admin-layout {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.admin-nav {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 5px;
}
.admin-nav .btn {
    justify-content: flex-start;
    color: var(--muted);
    font-weight: 550;
    font-size: 12px;
    padding: 13px 12px;
}
.admin-nav .btn.active {
    background: var(--ink);
    color: #fff;
}
.nav-help {
    font-size: 11px;
    color: #8c9c94;
    padding: 24px 12px;
    line-height: 1.8;
}
.admin-main {
    min-width: 0;
}
.save-state {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: var(--green);
    white-space: nowrap;
}
.filterbar {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1fr;
    gap: 15px;
    margin-bottom: 23px;
}
.filterbar .field {
    margin-bottom: 0;
}
.model-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}
.model-panel h2 {
    font-size: 23px;
}
.model-panel p {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 0;
}
.model-panel .actions {
    justify-content: flex-end;
    max-width: 370px;
}
.table-scroll {
    overflow-x: auto;
}
.table-scroll.panel {
    padding: 0;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
    text-align: left;
}
th {
    color: #6f8378;
    font-size: 10px;
    font-weight: 650;
    background: #f6f8f4;
    letter-spacing: 0.02em;
}
th,
td {
    padding: 15px 18px;
    border-bottom: 1px solid #e6ece5;
    vertical-align: middle;
}
tbody tr:last-child td {
    border-bottom: 0;
}
td strong {
    font-weight: 600;
    font-size: 13px;
}
td > small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}
td .row-badges {
    margin-top: 4px;
}
td .row-badges .badge {
    font-size: 9px;
}
.catalog-table th:first-child {
    width: 40%;
}
.quick-price {
    display: flex;
    align-items: center;
    gap: 3px;
}
.quick-price input {
    width: 98px;
    min-height: 36px !important;
    padding: 7px 9px !important;
}
.quick-price .btn {
    color: var(--green);
    background: var(--green-soft);
    min-height: 34px;
    min-width: 34px;
    padding: 7px;
}
.rate-table {
    font-size: 11px;
}
.rate-table input {
    width: 100%;
    min-width: 80px;
    padding: 8px !important;
    min-height: 34px !important;
}
.rate-table td,
.rate-table th {
    padding: 8px;
}
.rate-table th:first-child {
    min-width: 125px;
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 15px;
    margin: 22px 0;
}
.metric {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 21px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.metric span {
    font-size: 11px;
    color: var(--muted);
}
.metric strong {
    font-size: 30px;
    letter-spacing: -0.04em;
}
.metric small {
    font-size: 10px;
    color: var(--muted);
}
.admin-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.package-admin {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.package-admin h3 {
    margin: 15px 0 8px;
}
.package-admin p {
    font-size: 12px;
    color: var(--muted);
}
.package-admin ul {
    padding-left: 18px;
    font-size: 12px;
    line-height: 2;
    margin-top: 0;
    flex: 1;
}
.meta-line {
    font-size: 11px;
    border-top: 1px solid var(--line);
    padding: 12px 0;
    margin: 5px 0;
    color: var(--green);
    width: 100%;
}
.details {
    border-top: 1px solid var(--line);
    margin-top: 22px;
    padding: 18px 0 3px;
}
.details > summary {
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    list-style-position: outside;
    margin-left: 15px;
}
.details[open] > summary {
    margin-bottom: 18px;
}
.scope-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-height: 310px;
    overflow-y: auto;
    /* Innenabstand links/oben: sonst schneidet der Scrollbereich Rahmen und Fokusring der Häkchen ab */
    padding: 3px 12px 3px 4px;
}
.scope-grid > div {
    min-width: 0;
}
.scope-grid .checkline {
    font-size: 11px;
}
.scope-grid .checkline input {
    width: 16px;
    height: 16px;
}
.scope-grid h4 {
    margin-top: 10px;
}
.backup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 15px 0;
}
.backup-row small {
    display: block;
    color: var(--muted);
    margin-top: 5px;
}
dialog {
    border: 1px solid #d4ded7;
    border-radius: 17px;
    box-shadow: 0 35px 120px #102e3633;
    padding: 0;
    max-width: 900px;
    width: calc(100% - 40px);
    max-height: 90vh;
    background: #fff;
    color: var(--ink);
}
dialog::backdrop {
    background: #0e2f3955;
    backdrop-filter: blur(4px);
}
.dialog-head {
    padding: 24px 28px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fafbf7;
    position: sticky;
    top: 0;
    z-index: 2;
}
.dialog-head h2 {
    font-size: 23px;
    margin-bottom: 0;
}
.dialog-head .eyebrow {
    font-size: 8px;
    margin-bottom: 7px;
}
.dialog-body {
    padding: 27px 28px;
}
.dialog-foot {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 17px 28px;
    z-index: 2;
}
.toasts {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(620px, calc(100% - 32px));
    pointer-events: none;
}
.toast {
    background: var(--ink);
    color: #fff;
    padding: 15px 20px;
    font-size: 13px;
    border-radius: 10px;
    box-shadow: 0 10px 40px #102e3633;
    line-height: 1.5;
}
.toast.error {
    background: #8b4d36;
}
.form-error {
    color: #a34c32;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
}
.form-error:empty {
    display: none;
}
.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.login-story {
    background: var(--ink);
    color: #fff;
    padding: 60px 10%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.login-story:after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border: 60px solid #ffffff04;
    border-radius: 50%;
    right: -170px;
    bottom: 8%;
    pointer-events: none;
}
.login-story .brand-mark {
    background: #ffffff0e;
    color: #ffc293;
}
.login-story h1 {
    font-size: clamp(32px, 3.5vw, 54px);
    line-height: 1.18;
    margin: 20px 0 25px;
    letter-spacing: -0.045em;
    font-weight: 550;
}
.login-story p {
    color: #b1c6be;
    max-width: 360px;
    font-size: 15px;
    line-height: 1.8;
}
.login-footer {
    color: #8fa9a1;
    font-size: 11px;
}
.login-card {
    max-width: 420px;
    width: 100%;
    margin: auto;
    padding: 35px;
}
.login-card h2 {
    font-size: 28px;
}
.login-card > p {
    color: var(--muted);
    font-size: 13px;
    margin: 20px 0 30px;
    line-height: 1.7;
}
.login-card .field {
    margin: 20px 0;
}
.login-card .full {
    margin-top: 10px;
}
.login-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #8c9b93;
    margin-top: 35px;
}
code {
    font-family: ui-monospace, monospace;
    font-size: 11px;
    background: #e8eee8;
    padding: 2px 5px;
    border-radius: 4px;
    overflow-wrap: anywhere;
}
[hidden] {
    display: none !important;
}
:focus-visible {
    outline: 3px solid #db9b61;
    outline-offset: 3px;
}
@media (min-width: 1500px) {
    .consult-layout {
        grid-template-columns: minmax(0, 1fr) 355px;
        gap: 35px;
    }
    .package-rate {
        font-size: 38px;
    }
    .package-card {
        padding: 28px 23px 23px;
    }
    .package-card.recommended {
        padding: 27px 22px 22px;
    }
    .package-features li {
        font-size: 12px;
    }
    .summary-card {
        padding: 28px;
    }
    .summary-card h2 {
        font-size: 23px;
    }
    .option-card {
        padding: 21px;
    }
    .option-content > strong {
        font-size: 15px;
    }
}
@media (max-width: 1200px) {
    .app-body {
        padding: 25px 24px;
    }
    .topbar {
        padding: 0 24px;
    }
    .workspace-head {
        align-items: flex-start;
    }
    .workspace-head h1 {
        font-size: 27px;
    }
    .workspace-head > .actions {
        flex-direction: column;
        align-items: flex-end;
    }
    .consult-layout {
        grid-template-columns: minmax(0, 1fr) 285px;
        gap: 20px;
    }
    .summary-card {
        padding: 20px 17px;
    }
    .package-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .package-rate {
        font-size: 25px;
    }
    .package-card {
        padding: 22px 12px 12px;
    }
    .package-card.recommended {
        padding: 21px 11px 11px;
    }
    .package-card h3 {
        font-size: 15px;
        min-height: 60px;
    }
    .package-features li {
        font-size: 10px;
    }
    .package-card .btn {
        font-size: 11px;
        padding: 10px 5px;
    }
    .admin-layout {
        grid-template-columns: 175px minmax(0, 1fr);
        gap: 20px;
    }
    .admin-nav .btn {
        font-size: 11px;
    }
    .step small {
        display: none;
    }
    .model-panel {
        align-items: flex-start;
    }
    .model-panel .actions {
        max-width: 250px;
    }
    .trim-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 970px) {
    .consult-layout {
        grid-template-columns: 1fr;
    }
    .quote-sidebar {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px;
    }
    .quote-sidebar > .internal-reveal {
        align-self: start;
    }
    .package-grid {
        gap: 15px;
    }
    .package-card {
        padding: 25px 20px 20px;
    }
    .package-card.recommended {
        padding: 24px 19px 19px;
    }
    .package-rate {
        font-size: 34px;
    }
    .package-card h3 {
        min-height: 47px;
    }
    .package-features li {
        font-size: 12px;
    }
    .package-card .btn {
        font-size: 12px;
    }
    .summary-card {
        padding: 24px;
    }
    .topbar {
        height: 75px;
    }
    .brand {
        font-size: 14px;
    }
    .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 25px;
    }
    .nav {
        font-size: 11px;
        padding: 10px;
    }
    .user-name {
        display: none;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 5px;
    }
    .admin-nav .btn {
        white-space: nowrap;
    }
    .nav-help {
        display: none;
    }
    .filterbar {
        grid-template-columns: 1.7fr 1.2fr 1fr;
    }
    .model-panel .actions {
        max-width: unset;
    }
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 650px) {
    .topbar {
        padding: 14px 16px;
        height: auto;
        flex-wrap: wrap;
        gap: 12px;
    }
    .topbar > .brand {
        flex: 1;
    }
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        border-top: 1px solid var(--line);
        padding-top: 9px;
    }
    .main-nav .btn {
        flex: 1;
    }
    .app-body {
        padding: 24px 16px 40px;
    }
    .workspace-head {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 22px;
    }
    .workspace-head h1 {
        font-size: 26px;
    }
    .workspace-head > .actions {
        flex-direction: row;
        align-items: center;
        align-self: stretch;
        justify-content: space-between;
    }
    .workspace-head > .actions > .btn {
        font-size: 0;
        padding: 10px;
    }
    .workspace-head > .actions > .btn svg {
        width: 18px;
    }
    .demo-banner {
        font-size: 10px;
        align-items: flex-start;
        padding: 10px;
        gap: 7px;
    }
    .steps {
        padding: 4px;
        gap: 1px;
    }
    .step {
        flex-direction: column;
        gap: 6px;
        padding: 8px 3px;
        text-align: center;
    }
    .step strong {
        font-size: 9px;
    }
    .step > svg {
        display: none;
    }
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 9px;
    }
    .steps {
        margin-bottom: 24px;
    }
    .section-heading h2 {
        font-size: 22px;
    }
    .section-heading p {
        font-size: 12px;
    }
    .section-heading {
        align-items: flex-start;
    }
    .section-heading > .badge {
        font-size: 8px;
    }
    .panel {
        padding: 20px 17px;
        border-radius: 13px;
    }
    .form-grid {
        gap: 15px;
        grid-template-columns: 1fr;
    }
    .field.wide {
        grid-column: auto;
    }
    .model-intro h2 {
        font-size: 23px;
    }
    .model-symbol {
        width: 65px;
        height: 65px;
    }
    .model-symbol svg {
        width: 45px;
    }
    .trim-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trim-card {
        padding: 13px;
    }
    .trim-price {
        font-size: 20px;
    }
    .package-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .package-card,
    .package-card.recommended {
        padding: 24px;
    }
    .package-card h3 {
        min-height: unset;
    }
    .package-rate {
        font-size: 36px;
    }
    .package-features {
        gap: 10px;
    }
    .package-total {
        margin-top: 10px;
    }
    .package-benefit {
        min-height: unset;
    }
    .package-card .btn {
        font-size: 13px;
        padding: 12px;
    }
    .package-top .badge {
        font-size: 10px;
    }
    .individual-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .individual-intro .btn {
        width: 100%;
    }
    .decision-strip {
        gap: 10px;
        justify-content: space-between;
        padding: 12px 10px;
        font-size: 10px;
    }
    .decision-strip svg {
        width: 14px;
    }
    .option-card {
        padding: 15px 12px;
        gap: 11px;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .option-content > strong {
        font-size: 13px;
    }
    .option-card input {
        margin-top: 2px;
    }
    .option-price {
        font-size: 14px;
        margin-left: 30px;
    }
    .option-content {
        flex-basis: calc(100% - 40px);
    }
    .option-content > small {
        font-size: 10px;
    }
    .option-price small {
        display: inline;
        margin-left: 6px;
        font-size: 9px;
    }
    .option-impact {
        font-size: 10px;
        flex-wrap: wrap;
    }
    .option-price > span {
        font-size: 12px;
    }
    .step-footer > span {
        display: none;
    }
    .step-footer > .btn {
        font-size: 12px;
    }
    .step-footer {
        gap: 10px;
    }
    .extra-section .section-heading {
        flex-direction: column;
    }
    .extra-section .section-heading .btn {
        font-size: 11px;
    }
    .quote-sidebar {
        grid-template-columns: 1fr;
    }
    .quote-sidebar .internal-panel {
        margin-top: 0;
    }
    .summary-card h2 {
        font-size: 23px;
    }
    .offer-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    .offer-total {
        font-size: 12px;
        gap: 20px;
    }
    .offer-total strong {
        font-size: 27px;
        white-space: nowrap;
    }
    .offer-lines > div {
        font-size: 11px;
    }
    .offer-lines b {
        font-size: 10px;
    }
    .internal-metrics {
        grid-template-columns: 1fr 1fr;
    }
    .internal-metrics strong {
        font-size: 21px;
    }
    .filterbar {
        grid-template-columns: 1fr;
    }
    .model-panel {
        flex-direction: column;
    }
    .metric-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .metric {
        padding: 15px;
    }
    .metric strong {
        font-size: 25px;
    }
    .metric span {
        font-size: 10px;
    }
    .catalog-table th:first-child {
        min-width: 200px;
    }
    th,
    td {
        padding: 12px;
    }
    .admin-main > .section-heading {
        flex-direction: column;
    }
    .admin-package-grid {
        grid-template-columns: 1fr;
    }
    .save-state {
        font-size: 10px;
    }
    .scope-grid {
        grid-template-columns: 1fr;
        max-height: 350px;
        gap: 5px;
    }
    .dialog-head,
    .dialog-body,
    .dialog-foot {
        padding: 20px;
    }
    .dialog-head h2 {
        font-size: 20px;
    }
    dialog {
        width: calc(100% - 20px);
        max-height: 94vh;
    }
    .checkgroup {
        gap: 10px;
    }
    .login-shell {
        grid-template-columns: 1fr;
    }
    .login-story {
        padding: 30px;
        min-height: 280px;
        gap: 30px;
    }
    .login-story h1 {
        font-size: 35px;
        margin: 10px 0 15px;
    }
    .login-story p {
        display: none;
    }
    .login-footer {
        display: none;
    }
    .login-card {
        padding: 35px 25px;
    }
    .login-card h2 {
        font-size: 25px;
    }
    .notice.frozen {
        font-size: 11px;
    }
    .notice.frozen .btn {
        width: 100%;
        margin: 0;
    }
}
/* Angebote werden als PDF auf dem Server erzeugt (src/AngebotPdf.php); kein Browserdruck mehr. */
@media print {
    #dialog,
    #toasts {
        display: none !important;
    }
}

/* Löschen: eindeutig rot, nicht mit Speichern verwechselbar */
.btn.danger {
    background: #fff;
    color: #a3322a;
    border-color: #e2b4ae;
}
.btn.danger:hover {
    background: #fbeeec;
    border-color: #a3322a;
}
.btn.danger.solid {
    background: #a3322a;
    color: #fff;
    border-color: #a3322a;
}
.btn.danger.solid:hover {
    background: #85271f;
}
.btn.danger:disabled,
.btn.danger.solid:disabled {
    background: #f1f3f2;
    color: #8f9a98;
    border-color: #dce3df;
    cursor: not-allowed;
}
.row-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.delete-lead {
    font-size: 14px;
}
.delete-section {
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 14px 0;
}
.delete-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 14px;
}
.delete-section p {
    margin: 6px 0;
}
.delete-section.gone {
    border-left-color: #a3322a;
}
.delete-section.blocked {
    border-left-color: var(--warn);
    background: var(--warn-soft);
}
.delete-section.choose {
    border-left-color: var(--warn);
}
.delete-section.kept {
    border-left-color: var(--ink);
}
.delete-section.safe {
    border-left-color: #3d7a55;
    background: #f1f7f2;
}
.delete-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.delete-list > li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    border-top: 1px solid var(--line);
}
.delete-list > li:first-child {
    border-top: 0;
}
.delete-list small {
    display: block;
    color: var(--muted);
    margin-top: 2px;
}
.delete-list .delete-choice {
    flex-direction: column;
    gap: 4px;
}
.delete-choice .checkline {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}
.delete-keep {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-left: 24px;
}
.delete-keep[hidden] {
    display: none;
}
.delete-status {
    flex: 1;
    margin: 0;
    color: var(--warn);
    font-weight: 600;
    font-size: 12px;
    align-self: center;
}
.notice.warn > span {
    flex: 1;
}
.choice-pending p {
    color: var(--muted);
}

/* ---------- Geführte Einrichtung, Entwürfe, gegliederte Pflege (Datenformat 2) ---------- */
:root {
    --leasing: #2d6f8f;
    --leasing-soft: #eef5f9;
    --finance: #6b5a96;
    --finance-soft: #f3f0f9;
    --danger: #a34c32;
}
.form-error {
    background: #fbeee9;
    border: 1px solid #efcfc3;
    border-radius: 9px;
    padding: 11px 14px;
    font-weight: 600;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}
.status-badge.open {
    background: #eef1ef;
    color: #5b6c70;
    border-color: #dce3df;
}
.status-badge.partial {
    background: var(--warn-soft);
    color: var(--warn);
    border-color: #ecdfc4;
}
.status-badge.done {
    background: var(--green-soft);
    color: var(--green);
    border-color: #cfe3d6;
}
.status-badge.na {
    background: #f4f4f1;
    color: #7c8783;
    border: 1px dashed #cfd6d2;
}
.setup-panel {
    padding: 24px 24px 12px;
}
.setup-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.setup-head h3 {
    margin: 4px 0 10px;
    font-size: 19px;
}
.setup-head > div:first-child {
    flex: 1 1 320px;
}
.setup-next .btn {
    min-height: 48px;
}
.progress {
    appearance: none;
    display: block;
    width: 100%;
    max-width: 520px;
    height: 10px;
    border: none;
    background: #e8ece9;
    border-radius: 99px;
    overflow: hidden;
}
.progress::-webkit-progress-bar {
    background: #e8ece9;
    border-radius: 99px;
}
.progress::-webkit-progress-value {
    background: var(--green);
    border-radius: 99px;
}
.progress::-moz-progress-bar {
    background: var(--green);
    border-radius: 99px;
}
.setup-steps {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}
.setup-step {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.step-dot {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    background: #eef1ef;
    color: #5b6c70;
}
.setup-step.done .step-dot {
    background: var(--green);
    color: #fff;
}
.setup-step.na .step-dot {
    background: #fff;
    border: 1px dashed #b8c3bd;
    color: #7c8783;
}
.setup-step.partial .step-dot {
    background: var(--warn-soft);
    color: var(--warn);
    border: 1px solid #ecdfc4;
}
.setup-step-body {
    flex: 1;
    min-width: 0;
}
.setup-step-title {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}
.setup-missing {
    margin: 7px 0 4px;
    padding-left: 18px;
    font-size: 12px;
    color: #55666a;
    line-height: 1.6;
}
.setup-step .row-actions {
    margin-top: 8px;
    flex-wrap: wrap;
}
.setup-step p.muted {
    font-size: 11.5px;
    margin: 5px 0 0;
}
/* Offene Entwürfe */
.drafts-panel {
    border-color: #ecdfc4;
    background: #fffcf6;
}
.draft-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}
.draft-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid #f0e6d2;
    flex-wrap: wrap;
}
.draft-row small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}
.dialog-foot .draft-status {
    margin: 0 auto 0 0;
    align-self: center;
    font-size: 12px;
    color: var(--muted);
    flex: 1;
    min-width: 200px;
}
.dialog-foot .draft-status.error {
    color: var(--danger);
    font-weight: 600;
}
.dialog-foot .draft-status .btn {
    margin-left: 6px;
}
.dialog-foot {
    flex-wrap: wrap;
    align-items: center;
}
.draft-offer .actions,
.merge-box .actions {
    margin-top: 8px;
}
.notice > div {
    flex: 1;
}
.notice ul {
    margin: 6px 0;
    padding-left: 18px;
}
.merge-box li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
    padding: 6px 0;
    border-top: 1px dashed #e6d6b5;
}
.merge-box code {
    background: #fff;
    border: 1px solid #ecdfc4;
    border-radius: 5px;
    padding: 1px 5px;
}
input.conflict,
select.conflict {
    border-color: var(--warn) !important;
    box-shadow: 0 0 0 3px #f2dcb3;
}
input.invalid {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px #f5d8cf;
}
.impact-box {
    margin-top: 22px;
    padding: 14px 18px;
    border: 1px solid #d5e1d8;
    background: #f6faf7;
    border-radius: 10px;
    font-size: 12px;
}
.impact-box ul {
    margin: 6px 0 0;
    padding-left: 18px;
}
/* Allgemeine Angaben und Reiter Leasing / Finanzierung */
.general-section {
    border: 1px solid var(--line);
    background: #fafbf8;
    border-radius: 12px;
    padding: 18px 20px 6px;
    margin-bottom: 22px;
}
.general-section h3,
.subsection h3 {
    margin: 0 0 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.general-section h3 small {
    font-weight: 500;
    color: var(--muted);
    font-size: 11px;
}
.plan-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid var(--line);
    margin: 8px 0 0;
}
.plan-tab {
    border: 1px solid var(--line);
    border-bottom: none;
    background: #f1f3f0;
    color: var(--muted);
    border-radius: 10px 10px 0 0;
    padding: 11px 22px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: -2px;
}
.plan-tab.active.plan-leasing {
    background: var(--leasing-soft);
    color: var(--leasing);
    border-color: #c7dce7;
    border-bottom: 2px solid var(--leasing-soft);
}
.plan-tab.active.plan-finance {
    background: var(--finance-soft);
    color: var(--finance);
    border-color: #d8d0ea;
    border-bottom: 2px solid var(--finance-soft);
}
.tab-note {
    font-weight: 500;
    font-size: 10px;
    margin-left: 4px;
}
.plan-panel {
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 18px 18px 8px;
    margin-bottom: 18px;
}
.plan-panel[hidden] {
    display: none;
}
.plan-panel.plan-leasing {
    background: var(--leasing-soft);
    border-color: #c7dce7;
}
.plan-panel.plan-finance {
    background: var(--finance-soft);
    border-color: #d8d0ea;
}
.plan-intro {
    font-size: 12px;
    color: #4c6066;
    margin-bottom: 14px;
}
.plan-leasing .plan-intro strong {
    color: var(--leasing);
}
.plan-finance .plan-intro strong {
    color: var(--finance);
}
/* Unterbereiche: eingerückt, mit eigenem Hintergrund, Rahmen und Überschrift */
.subsection {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid #b9c8c1;
    border-radius: 10px;
    padding: 16px 18px 6px;
    margin: 0 0 14px 10px;
}
.plan-leasing .subsection {
    border-left-color: #8fb7cb;
}
.plan-finance .subsection {
    border-left-color: #ab9ccd;
}
.sub-no {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    flex: 0 0 24px;
}
details.sub-details {
    padding-bottom: 12px;
}
details.sub-details > summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    list-style: none;
}
details.sub-details > summary::-webkit-details-marker {
    display: none;
}
details.sub-details > summary::before {
    content: "▸";
    color: var(--muted);
    font-size: 13px;
}
details.sub-details[open] > summary::before {
    content: "▾";
}
details.sub-details > summary h3 {
    margin: 0;
}
details.sub-details > summary .muted {
    font-size: 11px;
}
.details-body {
    padding: 12px 0 0;
}
.details > .details-body {
    margin-left: 15px;
    padding-left: 14px;
    border-left: 3px solid var(--line);
}
.sub-sub {
    margin: 12px 0 4px 8px;
    padding: 14px 16px;
    border: 1px dashed #cdd8d2;
    border-radius: 9px;
    background: #fbfcfb;
}
.sub-sub h4 {
    margin: 0 0 6px;
    font-size: 13px;
}
.explain {
    font-size: 12.5px;
    color: #3f5559;
    line-height: 1.6;
    margin: 8px 0 12px;
}
.ref-combo {
    display: inline-block;
    font-weight: 700;
    font-size: 12px;
    color: var(--ink);
    background: #eef3f0;
    border: 1px solid #d5e1d8;
    border-radius: 7px;
    padding: 5px 10px;
    margin: 0 0 12px;
}
.info-box {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 12px;
    background: #f3f7f4;
    border: 1px solid #d5e1d8;
    border-radius: 9px;
    padding: 10px 12px;
    color: #3f5559;
}
.result-line {
    font-size: 12.5px;
    background: #f6f8f7;
    border-radius: 8px;
    padding: 9px 12px;
    margin: 6px 0 12px;
}
.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.markup-example {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0 10px;
}
.markup-example > div,
.example-box {
    background: #f8faf8;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 12px;
}
.markup-preview {
    background: #fffdf8 !important;
    border-color: #ecdfc4 !important;
}
.calc-lines {
    margin: 8px 0 0;
    padding-left: 18px;
    line-height: 1.75;
}
.inline-field {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
}
.inline-field input {
    width: 90px;
    min-height: 32px !important;
    padding: 5px 8px !important;
}
.round-field input[data-num] {
    margin-top: 6px;
}
.legend {
    font-size: 11px;
    color: var(--muted);
}
.legend-auto {
    color: #9aa7a2;
    font-style: italic;
}
.legend-manual {
    background: var(--accent-soft);
    border: 1px solid #f0c3a3;
    border-radius: 4px;
    padding: 0 5px;
    color: var(--ink);
    font-weight: 600;
}
/* Tabellen: automatische Vorschau grau, manuelle Werte hervorgehoben, Referenzkombination markiert */
.rate-table input::placeholder {
    color: #a6b2ad;
    font-style: italic;
}
.rate-table input:not(:placeholder-shown) {
    background: var(--accent-soft);
    border-color: #f0c3a3;
    font-weight: 600;
}
.rate-table[data-grid="grid"] input:not(:placeholder-shown) {
    background: #fff;
    border-color: #d6dfda;
    font-weight: 500;
}
.rate-table td.ref-cell input,
.rate-table[data-grid="grid"] td.ref-cell input {
    border: 2px solid var(--green);
    background: var(--green-soft);
    font-weight: 700;
}
.rate-table td small {
    display: block;
    font-size: 9px;
    color: var(--green);
    font-weight: 700;
    margin-top: 2px;
}
.rate-table input[readonly] {
    background: #f1f3f1 !important;
    color: #6d7c77;
}
.rate-table input:disabled {
    background: #eef3f0;
}
.trim-card.unavailable {
    opacity: 0.55;
    cursor: not-allowed;
}
@media (max-width: 760px) {
    .form-grid.three,
    .markup-example {
        grid-template-columns: 1fr;
    }
    .subsection {
        margin-left: 0;
    }
    .plan-tab {
        padding: 10px 14px;
    }
}
.rate-table input::placeholder {
    font-size: 10px;
    letter-spacing: -0.01em;
}

/* ---------- Einheiten (netto/brutto) und Expertenbereich ---------- */
.unit-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: 1px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.unit-badge.netto {
    background: #e9f1f6;
    color: #24617f;
    border-color: #c5dae6;
}
.unit-badge.brutto {
    background: #fff0e4;
    color: #a24f17;
    border-color: #f1c39f;
}
.trim-table th .unit-badge,
.catalog-table th .unit-badge {
    font-size: 9.5px;
}
.badge.expert {
    background: #f3e9fb;
    color: #6b3d8f;
    border: 1px solid #dcc6ec;
}
details.sub-details.expert {
    border-left-color: #b79ad0 !important;
    background: #fdfbff;
}
.expert-note {
    font-size: 12px;
    font-weight: 600;
    color: #6b3d8f;
    margin: 0 0 6px;
}
.ref-fixed {
    margin: 0;
    padding: 10px 12px;
    border: 1px dashed #cdd8d2;
    border-radius: 8px;
    background: #f8faf8;
    font-size: 13px;
}

/* ---------- Info-Symbol, kompakte Checkliste, Artikelmasken ---------- */
.info-tip {
    display: inline-block;
    font-size: 11px;
}
.info-tip > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4c6a72;
    font-weight: 600;
}
.info-tip > summary::-webkit-details-marker {
    display: none;
}
.info-i {
    display: inline-grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1.5px solid #8aa3a8;
    color: #4c6a72;
    font: italic 700 11px/1 Georgia, serif;
    background: #fff;
}
.info-tip[open] .info-i {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.info-tip small,
.info-tip .info-body {
    display: block;
    margin-top: 6px;
    padding: 9px 11px;
    background: #f5f8f6;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.55;
    color: #3f5559;
    font-weight: 400;
}
.info-tip.block {
    display: block;
    margin: 4px 0 12px;
}
.trim-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 4px;
}
.btn.trim-chip {
    border-radius: 999px;
    min-height: 30px;
    padding: 4px 12px;
    gap: 6px;
}
.btn.trim-chip.done {
    background: var(--green-soft);
    color: var(--green);
    border-color: #cfe3d6;
}
.btn.trim-chip.partial {
    background: var(--warn-soft);
    color: var(--warn);
    border-color: #ecdfc4;
}
.auto-price-box {
    border: 1px solid #cfe3d6;
    background: #f4faf6;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 14px 0;
}
.auto-price-box h3 {
    margin: 0 0 8px;
    font-size: 14px;
}
.auto-price-table {
    width: 100%;
    font-size: 12px;
}
.auto-price-table td,
.auto-price-table th {
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
}
.auto-price-table small {
    display: block;
}
.auto-price-value {
    font-size: 16px;
    color: var(--ink);
}
small.formula {
    display: block;
    font-size: 10px;
    color: #8a9a97;
    margin-top: 3px;
}
[data-price-mode][hidden] {
    display: none;
}

#ausstattungslinien {
    scroll-margin-top: 1rem;
}
#ausstattungslinien h3:focus {
    outline: none;
}

/* Automatischen Listenpreis überschrieben */
.quick-price input.manual-price {
    background: var(--warn-soft);
    border-color: var(--warn) !important;
    box-shadow: inset 0 0 0 1px var(--warn);
}

/* Pakete: Geltungsbereich, Filter, „Vollständig abgedeckt“ */
.badge.complete {
    background: var(--ink);
    color: #fff;
}
.package-scope {
    display: grid;
    gap: 4px;
    margin-bottom: 8px;
}
.package-scope .row-badges {
    flex-wrap: wrap;
}
.package-admin.is-recommended {
    box-shadow: 0 0 0 2px var(--accent-soft);
}
.filter-note {
    align-self: end;
    margin: 0 0 10px;
    font-size: 12px;
}
.complete-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.metric .metric-profit {
    color: var(--ink);
    font-weight: 650;
    font-size: 12px;
}

/* Paketvorteil über die Laufzeit */
.package-benefit strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.package-benefit span {
    display: block;
}
.saving span small {
    display: block;
    font-size: 10px;
    font-weight: 500;
}
.package-effect h4 {
    margin: 0 0 8px;
}
.package-effect-table td small {
    display: block;
}

/* Finanzierung: Schlussrate in % direkt unter der Rate */
.rate-table td.with-second {
    vertical-align: top;
}
.rate-table .cell-second {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}
.rate-table .cell-second input {
    width: 58px;
    min-width: 0;
    min-height: 30px !important;
    padding: 4px 6px !important;
    font-size: 12px;
    background: var(--finance-soft, #f3f0f9);
}
.rate-table .cell-second span {
    font-size: 9px;
    line-height: 1.15;
    color: var(--muted);
}

/* Beratung Schritt 1: Aufpreis groß, Rate klein */
.trim-price.is-base {
    font-size: 17px;
    letter-spacing: 0.02em;
}
.trim-card .trim-rate {
    font-size: 11px;
    color: var(--muted);
}
/* Pakete: gewählt deutlich, Empfehlung bleibt sichtbar */
.package-card.chosen {
    border: 3px solid var(--ink) !important;
    box-shadow: 0 10px 28px #173e4826 !important;
    background: #fff;
}
.package-card.recommended.chosen {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.package-grid.has-choice .package-card:not(.chosen) {
    opacity: 0.88;
}
.chosen-label {
    position: absolute;
    top: -15px;
    left: 15px;
    right: 15px;
    padding: 6px 9px;
    border-radius: 7px;
    background: var(--ink);
    color: #fff;
    text-align: center;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.025em;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.badge.accent {
    background: var(--accent-soft);
    color: var(--accent);
}
.package-card .package-benefit {
    margin: 6px 0 10px;
    min-height: 0;
}
.btn.chosen-btn {
    background: var(--ink);
}
/* Angebot: Gesamtrate und Vorteil im Fokus, Aufpreise klein */
.offer-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.offer-hero .offer-total {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}
.offer-saving {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 2px solid var(--green);
    background: var(--green-soft);
    color: var(--green);
}
.offer-saving strong {
    font-size: 26px;
    line-height: 1.15;
}
.offer-saving small {
    font-size: 12px;
}
.offer-saving .extra-saving {
    margin-top: 4px;
    font-size: 11px;
}
.offer-lines-title {
    font-size: 13px;
    margin: 6px 0 4px;
    color: var(--muted);
}
.offer-lines.compact-lines > div {
    font-size: 12px;
    color: var(--muted);
    padding: 5px 0;
    flex-wrap: wrap;
}
.offer-lines.compact-lines > div b {
    font-weight: 500;
    font-size: 12px;
}
.offer-lines.compact-lines .saving b {
    font-weight: 700;
}
.offer-lines.compact-lines .option-impact {
    flex-basis: 100%;
}
.lines-note {
    font-size: 11px;
}
.offer-hero .offer-total {
    border-bottom: 0;
    padding: 12px 0;
    justify-content: center;
    align-items: flex-start;
}
.offer-hero .offer-total strong {
    font-size: 40px;
}

/* Microsoft-Anmeldung, Preisliste, E-Mail-Versand und Versandstatus */
.login-card a.btn {
    text-decoration: none;
    justify-content: center;
}
.emergency-login {
    margin-top: 22px;
    border-top: 1px solid var(--line, #dfe7e5);
    padding-top: 12px;
}
.emergency-login summary {
    cursor: pointer;
    color: var(--muted, #5c6f70);
    font-size: 13px;
}
.login-card .notice {
    margin: 0 0 14px;
}
.btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
a.btn {
    text-decoration: none;
}
.badge.danger {
    background: #fbe9e7;
    color: #a3322a;
}
.pricelist-field {
    display: grid;
    gap: 6px;
    margin: 14px 0;
}
.pricelist-current small.missing {
    color: #a3322a;
}
.attachment-list,
.send-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 12px;
    display: grid;
    gap: 6px;
}
.attachment-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.send-list li {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid var(--line, #dfe7e5);
    border-radius: 8px;
}
.send-list small,
.send-cell small {
    display: block;
    color: var(--muted, #5c6f70);
}
.send-history {
    margin-top: 16px;
}
.history-row td {
    background: #f6f9f8;
}

/* Sofortentscheider-Rabatt: Vorteil über die Laufzeit groß, alles andere klein */
.quick-box {
    border: 1.5px solid #e8a77f;
    background: #fff8f2;
    color: #7c2d12;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 14px 0;
}
.quick-box.small {
    padding: 12px 14px;
    margin: 12px 0;
}
.quick-box .quick-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: #9a4a1f;
}
.quick-box .quick-total {
    display: block;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #c2410c;
    margin: 4px 0 2px;
}
.quick-box.small .quick-total {
    font-size: 24px;
}
.quick-box .quick-detail {
    display: block;
    font-size: 12.5px;
    line-height: 1.45;
    color: #7c2d12;
}
.countdown {
    color: #c2410c;
    font-weight: 600;
}
.countdown.expired {
    color: var(--muted);
    font-weight: 400;
}

/* Paketkarten: Änderung der Rate statt Gesamtrate, bereits Gewähltes ausgegraut */
.package-rate.cheaper {
    color: var(--green);
}
.package-rate.neutral {
    color: var(--muted);
    font-size: 24px;
}
.package-features li.already,
.package-features .included.already > span + span {
    color: var(--muted);
    opacity: 0.55;
}
.package-features li.already > span:first-child {
    color: var(--muted);
}
.package-note {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}
