/* LIGO CUBE DEBEKA-Bereich. Baut auf dem Design-System des Themes auf (Farben, Schriften,
   Knöpfe, Formularfelder) und ergänzt nur, was es dort nicht gibt. Eckig, viel Weiß. */

.lcdb { --lcdb-ok: var(--lc-green, #34ab67); --lcdb-wait: var(--lc-blue, #40b7ea); }
.lcdb-narrow { max-width: 880px; }
.lcdb-h3 { font-family: var(--lc-title); font-weight: 300; font-size: clamp(24px, 2.6vw, 32px); text-transform: uppercase; line-height: 1.1; margin: 0 0 14px; }
.lcdb .lc-icon { width: 20px; height: 20px; flex: none; }

/* ---------- Leiste im Bereich ---------- */
.lcdb-bar { border-bottom: 1px solid var(--lc-line); background: var(--lc-bg-2); }
.lcdb-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 52px; }
.lcdb-bar__nav { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--lc-gutter)); padding: 0 var(--lc-gutter); }
.lcdb-bar__nav a { display: block; padding: 15px 12px 13px; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--lc-ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.lcdb-bar__nav a:hover { color: var(--lc-ink); }
.lcdb-bar__nav a[aria-current="page"] { color: var(--lc-ink); border-bottom-color: var(--lc-red); }
.lcdb-bar__user { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--lc-ink-2); padding-bottom: 8px; }
.lcdb-bar__user form { margin: 0; }
@media (min-width: 720px) { .lcdb-bar__nav { margin: 0 0 0 -12px; padding: 0; } .lcdb-bar__user { padding-bottom: 0; } }
.lcdb-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--lc-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Anmelden ---------- */
.lcdb-login { display: grid; gap: 40px; }
@media (min-width: 900px) { .lcdb-login { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 80px; align-items: start; } }
.lcdb-login__form { border: 1px solid var(--lc-line); padding: clamp(20px, 4vw, 36px); }
.lcdb-login__info { padding-top: 4px; color: var(--lc-ink-2); }
.lcdb-login__info .lcdb-h3 { color: var(--lc-ink); }

/* ---------- Kacheln Übersicht ---------- */
.lcdb-tiles { display: grid; gap: 16px; }
@media (min-width: 900px) { .lcdb-tiles { grid-template-columns: 1.3fr 1fr 1fr; } }
.lcdb-tile { display: grid; align-content: start; gap: 10px; padding: 26px 24px 22px; border: 1px solid var(--lc-line-2); text-decoration: none; background: #fff; transition: border-color 0.15s, background 0.15s; min-height: 220px; }
.lcdb-tile:hover { border-color: var(--lc-ink); }
.lcdb-tile .lc-icon { width: 30px; height: 30px; stroke-width: 1.3; margin-bottom: 8px; }
.lcdb-tile strong { font-family: var(--lc-title); font-weight: 300; font-size: 28px; text-transform: uppercase; line-height: 1.05; }
.lcdb-tile span { color: var(--lc-ink-2); font-size: 15px; }
.lcdb-tile em { font-style: normal; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.lcdb-tile em .lc-icon { width: 16px; height: 16px; margin: 0; }
.lcdb-tile--main { background: var(--lc-ink); color: #fff; border-color: var(--lc-ink); }
.lcdb-tile--main span { color: rgba(255, 255, 255, 0.75); }
.lcdb-tile--main:hover { background: #000; }

/* ---------- Ablauf ---------- */
.lcdb-ablauf { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; counter-reset: lcdb; }
@media (min-width: 900px) { .lcdb-ablauf { grid-template-columns: repeat(4, 1fr); } }
.lcdb-ablauf li { counter-increment: lcdb; position: relative; padding: 18px 16px 18px 56px; border-top: 1px solid var(--lc-ink); }
.lcdb-ablauf li::before { content: counter(lcdb, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-family: var(--lc-title); font-weight: 300; font-size: 28px; line-height: 1; color: var(--lc-red); }
@media (min-width: 900px) { .lcdb-ablauf li { padding: 60px 24px 0 0; } .lcdb-ablauf li::before { top: 18px; } }
.lcdb-ablauf strong { display: block; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.lcdb-ablauf span { display: block; color: var(--lc-ink-2); font-size: 15px; margin-top: 6px; }

/* ---------- Kundengespräch ---------- */
.lcdb-facts { display: grid; gap: 32px; margin-top: 28px; }
@media (min-width: 900px) { .lcdb-facts { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.lcdb-groessen { min-width: 0; }
.lcdb-groessen tbody th { font-size: 22px; }
.lcdb-actions { margin-top: 32px; }
.lcdb-cols { display: grid; gap: 40px; }
@media (min-width: 900px) { .lcdb-cols { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
.lcdb-cols a { display: inline-flex; align-items: center; gap: 8px; }
.lcdb-cols .lc-icon { width: 18px; height: 18px; }
.lcdb-downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lcdb-downloads li { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }

/* ---------- Datenschutzhinweise und Angaben ---------- */
.lcdb-hinweise, .lcdb-daten { margin: 0; border-top: 1px solid var(--lc-ink); }
.lcdb-hinweise dt, .lcdb-daten dt { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lc-ink-2); padding-top: 14px; }
.lcdb-hinweise dd, .lcdb-daten dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--lc-line); font-size: 15px; }
@media (min-width: 720px) {
	.lcdb-hinweise, .lcdb-daten { display: grid; grid-template-columns: 220px 1fr; }
	.lcdb-hinweise dt, .lcdb-daten dt { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--lc-line); }
	.lcdb-hinweise dd, .lcdb-daten dd { margin: 0; padding: 14px 0; }
}
.lcdb-daten { margin-bottom: 48px; }

/* ---------- Reiter und Formular ---------- */
.lcdb-tabs { display: flex; border-bottom: 1px solid var(--lc-line-2); margin-bottom: 28px; overflow-x: auto; }
.lcdb-tabs a { padding: 12px 16px 11px; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--lc-ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.lcdb-tabs a[aria-current="page"] { color: var(--lc-ink); border-bottom-color: var(--lc-ink); }
.lcdb-tabs + .lc-form-test { margin-bottom: 24px; }

.lcdb-form { gap: 0; }
.lcdb-step { border: 0; margin: 0 0 40px; padding: 0; min-width: 0; }
.lcdb-step__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; width: 100%; padding: 0 0 14px; margin: 0 0 22px; border-bottom: 1px solid var(--lc-ink); font-family: var(--lc-title); font-weight: 300; font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; line-height: 1.1; }
.lcdb-step__nr { color: var(--lc-red); }
.lcdb-step__of { margin-left: auto; font-family: var(--lc-font); font-size: 12px; letter-spacing: 0.12em; color: var(--lc-ink-3); }
.lcdb-step__text { color: var(--lc-ink-2); margin: -6px 0 22px; max-width: 46em; }
.lcdb-step__nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--lc-line); }
.lcdb-step__nav [data-lcdb="weiter"], .lcdb-step__nav [type="submit"] { margin-left: auto; }
.lcdb-step__nav .lc-icon { width: 16px; height: 16px; }
.lcdb-grid { align-items: start; }

/* JS aktiv: ein Schritt nach dem anderen */
.lcdb-form.is-steps .lcdb-step { display: none; }
.lcdb-form.is-steps .lcdb-step.is-active { display: block; animation: lcdb-in 0.25s ease-out; }
@keyframes lcdb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lcdb-form.is-steps .lcdb-step.is-active { animation: none; } }

.lcdb-progress { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.lcdb-progress li { margin: 0; }
.lcdb-progress button { width: 100%; display: grid; gap: 8px; padding: 0; background: none; border: 0; cursor: pointer; text-align: left; color: var(--lc-ink-3); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.lcdb-progress button::before { content: ''; display: block; height: 4px; background: var(--lc-line); transition: background 0.2s; }
.lcdb-progress span { display: none; }
.lcdb-progress em { font-style: normal; display: none; }
.lcdb-progress li.is-done button::before { background: var(--lc-ink); }
.lcdb-progress li.is-active button::before { background: var(--lc-red); }
.lcdb-progress li.is-active button { color: var(--lc-ink); }
.lcdb-progress button:disabled { cursor: default; }
@media (min-width: 900px) { .lcdb-progress em { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; } }

/* Kacheln für Auswahl (wie die Kästchen im Bogen) */
.lcdb-choice { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.lcdb-choice__hint { font-size: 13px; color: var(--lc-ink-2); margin: 0; }
.lcdb-choice__grid { display: grid; gap: 8px; }
@media (min-width: 640px) {
	.lcdb-choice--2 .lcdb-choice__grid { grid-template-columns: repeat(2, 1fr); }
	.lcdb-choice--3 .lcdb-choice__grid { grid-template-columns: repeat(3, 1fr); }
	.lcdb-choice--4 .lcdb-choice__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) { .lcdb-choice--4 .lcdb-choice__grid { grid-template-columns: repeat(4, 1fr); } }
.lcdb-option { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--lc-line-2); background: #fff; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.lcdb-option:hover { border-color: var(--lc-ink-3); }
.lcdb-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lcdb-option__box { width: 20px; height: 20px; border: 1px solid var(--lc-ink); margin-top: 2px; background: #fff; display: grid; place-items: center; }
.lcdb-option input[type="radio"] + .lcdb-option__box { border-radius: 50%; }
.lcdb-option__text { display: grid; gap: 2px; }
.lcdb-option__text strong { font-weight: 400; font-size: 15.5px; line-height: 1.35; }
.lcdb-option__text small { font-size: 13px; color: var(--lc-ink-2); line-height: 1.4; }
.lcdb-option:has(input:checked) { border-color: var(--lc-ink); box-shadow: inset 0 0 0 1px var(--lc-ink); }
.lcdb-option input:checked + .lcdb-option__box { background: var(--lc-ink); }
.lcdb-option input[type="checkbox"]:checked + .lcdb-option__box::after { content: ''; width: 12px; height: 12px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat; }
.lcdb-option input[type="radio"]:checked + .lcdb-option__box::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.lcdb-option input:focus-visible + .lcdb-option__box { outline: 2px solid var(--lc-ink); outline-offset: 3px; }
.lcdb-choice--kompakt .lcdb-option { padding: 11px 14px; }
.lcdb-choice.is-invalid .lcdb-option { border-color: var(--lc-red); }

.lcdb-suffix { display: flex; }
.lcdb-suffix input { flex: 1; min-width: 0; }
.lcdb-suffix span { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--lc-line-2); border-left: 0; background: var(--lc-bg-2); color: var(--lc-ink-2); font-size: 14px; white-space: nowrap; }
.lc-form__field input[type="file"] { padding: 10px; min-height: 0; font-size: 14px; }
.lc-form__field input.is-invalid, .lc-form__field textarea.is-invalid { border-color: var(--lc-red); box-shadow: inset 0 0 0 1px var(--lc-red); }
.lcdb-err { font-size: 13px; color: var(--lc-red); }

.lcdb-note { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; background: var(--lc-bg-2); border-left: 3px solid var(--lc-blue); font-size: 14px; color: var(--lc-ink-2); }
.lcdb-note[hidden] { display: none; }
.lcdb-summary { border: 1px solid var(--lc-line); padding: 18px 20px 6px; }
.lcdb-summary dl { margin: 10px 0 0; display: grid; grid-template-columns: minmax(110px, 34%) 1fr; font-size: 14px; }
.lcdb-summary dt { color: var(--lc-ink-2); padding: 6px 12px 6px 0; border-top: 1px solid var(--lc-line); }
.lcdb-summary dd { margin: 0; padding: 6px 0; border-top: 1px solid var(--lc-line); white-space: pre-line; }
.lcdb-summary button { background: none; border: 0; padding: 0; color: var(--lc-ink-2); font-size: 12px; text-decoration: underline; cursor: pointer; margin-left: 6px; }
.lcdb-berater { padding: 16px 20px; background: var(--lc-bg-2); }
.lcdb-berater p { margin: 6px 0; }
[data-lcdb-wenn][hidden] { display: none; }

/* ---------- Meine Kunden ---------- */
.lcdb-list { list-style: none; padding: 0; margin: 28px 0 16px; border-top: 1px solid var(--lc-ink); }
.lcdb-row { display: grid; gap: 10px 24px; padding: 18px 0; border-bottom: 1px solid var(--lc-line); align-items: center; }
@media (min-width: 900px) { .lcdb-row { grid-template-columns: 1fr 260px 190px; } }
.lcdb-row__main { display: grid; gap: 2px; }
.lcdb-row__nr { font-size: 12px; letter-spacing: 0.1em; color: var(--lc-ink-3); }
.lcdb-row__name { font-family: var(--lc-title); font-weight: 300; font-size: 24px; text-transform: uppercase; line-height: 1.1; }
.lcdb-row__meta { font-size: 13.5px; color: var(--lc-ink-2); }
.lcdb-row__status { display: grid; gap: 8px; justify-items: start; }
.lcdb-row__action { margin: 0; }
@media (min-width: 900px) { .lcdb-row__action { justify-self: end; } }
.lcdb-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.lcdb-status::before { content: ''; width: 9px; height: 9px; background: var(--lc-ink-3); }
.lcdb-status--einwilligung::before { background: var(--lcdb-wait); }
.lcdb-status--eingegangen::before, .lcdb-status--pruefung::before, .lcdb-status--angebot::before { background: var(--lc-yellow); }
.lcdb-status--vertrag::before, .lcdb-status--abgeschlossen::before { background: var(--lcdb-ok); }
.lcdb-status--abgelehnt, .lcdb-status--kein_vertrag { color: var(--lc-ink-3); }
.lcdb-track { display: grid; grid-template-columns: repeat(4, 40px); gap: 3px; }
.lcdb-track i { height: 3px; background: var(--lc-line); }
.lcdb-track i.is-on { background: var(--lc-ink); }
.lcdb-row--abgelehnt .lcdb-row__name { color: var(--lc-ink-3); }
.lcdb-empty { padding: 48px 24px; border: 1px dashed var(--lc-line-2); text-align: center; color: var(--lc-ink-2); }
.lcdb-empty .lc-btn { margin-top: 12px; }
.lc-form-msg h3 + p { margin-top: 0; }
.lc-form-msg .lc-form-msg--error { color: var(--lc-red); margin: 8px 0 0; }
.lcdb .lc-form-test a { color: inherit; font-weight: 700; }

/* ---------- Einwilligung des Kunden ---------- */
.lcdb-ew { margin-bottom: 56px; gap: 14px; }
.lcdb-ew__item { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; padding: 18px 20px; border: 1px solid var(--lc-line-2); font-size: 15px; line-height: 1.55; cursor: pointer; margin: 0; }
.lcdb-ew__item input[type="checkbox"] { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--lc-ink); }
.lcdb-ew__item:has(> input:checked) { border-color: var(--lc-ink); box-shadow: inset 0 0 0 1px var(--lc-ink); }
.lcdb-ew__item.is-fehlt { border-color: var(--lc-red); box-shadow: inset 0 0 0 1px var(--lc-red); }
.lcdb-ew__item--wege { display: block; cursor: default; }
.lcdb-ew__item--wege legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; }
.lcdb-ew__wege { clear: both; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.lcdb-ew__wege label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.lcdb-ew__wege input { width: 22px; height: 22px; margin: 0; accent-color: var(--lc-ink); }
.lcdb-ew__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.lcdb-ew .lc-btn { justify-self: auto; }
.lcdb-ew .lc-btn .lc-icon { width: 16px; height: 16px; }
.lcdb-weiter { margin-top: 24px; color: var(--lc-ink-2); }

@media print {
	.lcdb-bar, .lc-dock, .lcdb-step__nav, .lcdb-progress { display: none !important; }
}
