/* Bestellformular (lcube-order): Karten wie die neuen Seiten (lc-card), Markenfarben aus chrome.css */
.lco { --lco-brand: #0f6f93; --lco-dark: #0b5876; --lco-ink: #10283a; --lco-muted: #5f7380; --lco-line: #d5e2e8; --lco-soft: #f2f8fa; --lco-err: #b3261e;
    max-width: 1140px; margin: 0 auto; color: var(--lco-ink); font: 400 15px/1.55 Roboto, Arial, sans-serif; text-align: left; }
.lco *, .lco *::before, .lco *::after { box-sizing: border-box; }
.lco p { padding: 0; text-align: left; }
.lco-test { margin: 0 0 18px; padding: 10px 14px; border-radius: 8px; background: #fff4d6; color: #6b4e00; font-weight: 600; }
.lco-noscript { padding: 12px 16px; border-radius: 8px; background: var(--lco-soft); }

.lco-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.lco-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.lco-step { padding: 28px; background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 111, 147, .06), 0 6px 20px rgba(15, 111, 147, .08); }
.lco-step h2, .lco-sum-card h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 0; color: var(--lco-ink); font: 700 22px/1.25 Roboto, Arial, sans-serif; }
.lco-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lco-brand); color: #fff; font-size: 16px; flex: none; }
.lco-intro { margin: -6px 0 18px; color: var(--lco-muted); }

.lco-group { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.lco-group:last-child { margin-bottom: 0; }
.lco-group legend { margin: 0 0 10px; padding: 0; color: var(--lco-ink); font-weight: 700; font-size: 15px; }
.lco-choices { display: grid; gap: 12px; }
.lco-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lco-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Auswahlkarten */
.lco-choice { position: relative; display: flex; gap: 12px; margin: 0; padding: 14px 16px; border: 1.5px solid var(--lco-line); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.lco-choice[hidden] { display: none; }
.lco-choice:hover { border-color: #9cc3d2; }
.lco-choice input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--lco-brand); }
.lco-choice:has(input:checked) { border-color: var(--lco-brand); background: var(--lco-soft); box-shadow: 0 0 0 3px rgba(15, 111, 147, .12); }
.lco-choice:has(input:focus-visible) { outline: 2px solid var(--lco-brand); outline-offset: 2px; }
.lco-choice-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lco-choice-title { font-weight: 700; color: var(--lco-ink); }
.lco-choice-sub { color: var(--lco-muted); font-size: 14px; line-height: 1.45; }
.lco-specs { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px; }
.lco-price { color: var(--lco-dark); font-weight: 700; font-size: 18px; white-space: nowrap; }
.lco-price small { color: var(--lco-muted); font-weight: 400; font-size: 13px; }
.lco-delta { color: var(--lco-dark); font-weight: 600; }
/* Paketliste ab 4 Paketen: Name | Leistungsdaten | Preis in einer Zeile */
.lco-list { gap: 8px; }
.lco-list .lco-choice { padding: 11px 16px; align-items: center; }
.lco-list .lco-choice input { margin: 0; }
.lco-list .lco-choice-body { display: grid; grid-template-columns: minmax(4.5em, max-content) minmax(0, 1fr) auto; align-items: baseline; gap: 2px 18px; flex: 1; }
.lco-list .lco-choice-sub { display: contents; }
.lco-list .lco-specs { flex-direction: row; flex-wrap: wrap; gap: 2px 14px; margin: 0; color: var(--lco-muted); font-size: 14px; }
.lco-common { margin: 10px 0 0; color: var(--lco-muted); font-size: 14px; }
.lco-list .lco-price { grid-column: 3; text-align: right; }
.lco-list .lco-price-term { grid-column: 3; text-align: right; }

/* Umschalter (Zahlungsintervall, Kundenart) */
.lco-segment { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: #e9f1f4; }
.lco-segment label { margin: 0; cursor: pointer; }
.lco-segment input { position: absolute; opacity: 0; pointer-events: none; }
.lco-segment span { display: block; padding: 8px 16px; border-radius: 7px; color: var(--lco-muted); font-weight: 600; transition: background .15s, color .15s; }
.lco-segment input:checked + span { background: #fff; color: var(--lco-dark); box-shadow: 0 1px 3px rgba(16, 40, 58, .15); }
.lco-segment input:focus-visible + span { outline: 2px solid var(--lco-brand); outline-offset: 1px; }

/* Felder */
.lco-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 14px 0 0; }
.lco-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lco-field[hidden], .lco-sepa[hidden] { display: none; }
.lco-wide { grid-column: 1 / -1; }
.lco-field label { margin: 0; color: var(--lco-ink); font-weight: 600; font-size: 14px; }
.lco-opt { color: var(--lco-muted); font-weight: 400; }
.lco input[type=text], .lco input[type=email], .lco input[type=tel], .lco select, .lco textarea {
    width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; border: 1.5px solid #cbdbe2; border-radius: 8px; background: #fff; color: var(--lco-ink); font: inherit; }
.lco textarea { min-height: 96px; resize: vertical; }
.lco input:focus, .lco select:focus, .lco textarea:focus { outline: none; border-color: var(--lco-brand); box-shadow: 0 0 0 3px rgba(15, 111, 147, .15); }
.lco-hint { margin: 0; color: var(--lco-muted); font-size: 13px; line-height: 1.45; }
.lco-error { display: none; margin: 0; color: var(--lco-err); font-size: 13px; font-weight: 600; }
.lco-invalid .lco-error, .lco-group.lco-invalid > .lco-error { display: block; }
.lco-invalid input, .lco-invalid select { border-color: var(--lco-err); }
.lco-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; cursor: pointer; font-weight: 400 !important; }
.lco-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--lco-brand); }
.lco-accept { margin: 14px 0 0; }
.lco-sepa { margin: 4px 0 18px; padding: 16px; border-radius: 10px; background: var(--lco-soft); }
.lco-sepa .lco-grid { margin: 0; }
.lco-mandate { margin: 12px 0 0; font-size: 13px; color: var(--lco-muted); }
.lco-mandate summary { cursor: pointer; color: var(--lco-dark); font-weight: 600; }
.lco-mandate p { margin: 8px 0 0; }
.lco-privacy { margin: 14px 0 0; color: var(--lco-muted); font-size: 13px; }
.lco a { color: var(--lco-brand); text-decoration: underline; }
.lco-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lco-submit { display: block; width: 100%; margin: 20px 0 0; padding: 15px 22px; border: 0; border-radius: 8px; background: var(--lco-brand); color: #fff; font: 700 17px/1.2 Roboto, Arial, sans-serif; cursor: pointer; transition: background .15s; }
.lco-submit:hover { background: var(--lco-dark); }
.lco-submit:disabled { opacity: .6; cursor: wait; }
.lco-form-error { display: none; margin: 16px 0 0; padding: 10px 14px; border-radius: 8px; background: #fdecea; color: var(--lco-err); font-weight: 600; }
.lco-form-error.lco-show { display: block; }
.lco-help { margin: 12px 0 0; color: var(--lco-muted); font-size: 13px; text-align: center !important; }

/* Preisuebersicht */
.lco-summary { position: sticky; top: 130px; }
.lco-sum-card { padding: 24px; background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 111, 147, .06), 0 6px 20px rgba(15, 111, 147, .08); }
.lco-sum-card h2 { font-size: 19px; margin-bottom: 12px; }
.lco-sum-body { transition: opacity .15s; }
.lco-sum-body.lco-loading { opacity: .5; }
.lco-sum-name { margin: 0 0 6px; font-weight: 700; font-size: 17px; color: var(--lco-dark); }
body.lcube-divi .lco .lco-sum-lines { margin: 0 0 8px; padding: 0; list-style: none; }
body.lcube-divi .lco .lco-sum-lines li { margin: 0; padding-left: 0; list-style: none; }
.lco-sum-lines li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 4px 0; font-size: 14px; }
.lco-sum-net { margin: 0 0 12px; color: var(--lco-muted); font-size: 13px; }
.lco-sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px 0 0; padding: 12px 0 0; border-top: 1px solid var(--lco-line); }
.lco-sum-total strong { font-size: 24px; color: var(--lco-ink); white-space: nowrap; }
.lco-sum-tax, .lco-sum-month, .lco-sum-term { margin: 2px 0 0; color: var(--lco-muted); font-size: 13px; }
.lco-sum-saving { margin: 8px 0 0; padding: 6px 10px; border-radius: 6px; background: #e7f6ec; color: #1e6b3a; font-size: 13px; font-weight: 600; }
.lco-sum-term { margin-top: 10px; }
.lco-sum-domain { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--lco-line, #d5e2e8); font-size: 13px; }
.lco-domain .lco-check small { display: block; color: var(--lco-muted); font-size: 13px; }
.lco-domain .lco-hint { margin: 4px 0 10px; }

/* Ergebnis (Testversion) */
.lco-result { margin: 24px 0 0; padding: 24px; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(15, 111, 147, .08); }
.lco-result pre { margin: 12px 0 0; padding: 14px; overflow-x: auto; border-radius: 8px; background: var(--lco-soft); font: 13px/1.5 Consolas, monospace; white-space: pre-wrap; }

/* Leiste unten (Smartphone) */
.lco-bar { display: none; }

@media (max-width: 980px) {
    .lco-form { grid-template-columns: minmax(0, 1fr); }
    .lco-summary { position: static; }
    .lco-submit-side { display: none; }
    .lco-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 990; display: flex; justify-content: space-between; align-items: center; gap: 12px;
        padding: 10px 16px; background: #fff; box-shadow: 0 -4px 16px rgba(16, 40, 58, .12); }
    .lco-bar strong { font-size: 18px; }
    .lco-bar small { display: block; color: var(--lco-muted); font-size: 12px; }
    .lco-bar a { padding: 10px 16px; border-radius: 8px; background: var(--lco-brand); color: #fff !important; font-weight: 700; text-decoration: none; white-space: nowrap; }
    .lco { padding-bottom: 72px; }
}
@media (max-width: 640px) {
    .lco-step { padding: 20px 16px; }
    .lco-cols-2, .lco-cols-3, .lco-grid { grid-template-columns: minmax(0, 1fr); }
    .lco-list .lco-choice-body { grid-template-columns: minmax(0, 1fr) auto; }
    .lco-list .lco-specs { grid-column: 1 / -1; grid-row: 2; }
    .lco-list .lco-price, .lco-list .lco-price-term { grid-column: 2; grid-row: auto; }
    .lco-step h2 { font-size: 19px; }
}
/* Gesamtpreis ueber die Vertragslaufzeit (Vorgabe Anwalt) */
.lco-price-term { color: var(--lco-muted); font-size: 13px; }
.lco-sum-termtotal { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--lco-soft); font-weight: 600; }
.lco-sum-termtotal strong { font-size: 18px; white-space: nowrap; }
/* Auswahlliste als Option (Betriebssystem) */
.lco-field .lco-legend { font-weight: 700; font-size: 15px; }
.lco-field select { max-width: 420px; }
.lco select option:disabled { color: #a3b1b8; }
.lco-thanks { margin: 0; font-size: 17px; font-weight: 600; color: var(--lco-dark); }
.lco-form[hidden], .lco-bar[hidden], .lco-bar small[hidden] { display: none !important; }
/* Software und Lizenzen: Gruppe vor dem Namen, Zwischenueberschrift in der Uebersicht */
.lco-group-name { display: inline-block; margin: 0 0 0 6px; vertical-align: 2px; padding: 2px 8px; border-radius: 999px; background: #e9f1f4; color: var(--lco-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; vertical-align: 1px; }
body.lcube-divi .lco .lco-sum-lines li.lco-sum-head { display: block; margin: 6px 0 0; padding: 6px 0 2px; border-top: 1px dashed var(--lco-line); color: var(--lco-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.lco-hint-top { margin: -4px 0 10px; }
/* Aufpreisprodukte deutlich voneinander getrennt (je ein Block mit Linie) */
.lco-step .lco-addon { margin: 0; padding: 22px 0; border-top: 1px solid var(--lco-line); }
.lco-step .lco-addon:first-of-type { padding-top: 4px; border-top: 0; }
.lco-step .lco-addon:last-of-type { padding-bottom: 0; }
.lco-addon legend { font-size: 16px; }
.lco-addon > legend { float: left; width: 100%; margin: 0 0 10px; }
.lco-addon > legend + * { clear: both; }
/* Im Preis enthalten ohne Auswahl (z.B. KernelCare auf Managed Servern) */
.lco-step .lco-addon.lco-incl { padding-top: 22px; border-top: 1px solid var(--lco-line); }
.lco-incl .lco-legend { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.lco-incl-item { display: inline-block; margin: 0; padding: 10px 14px; border: 1.5px solid var(--lco-line); border-radius: 10px; background: #f4f9f6; }
/* Kompakte Auswahl der Aufpreisprodukte (Knoepfe statt Karten) */
.lco-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lco-pill { margin: 0; cursor: pointer; }
.lco-pill input { position: absolute; opacity: 0; pointer-events: none; }
.lco-pill span { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 7px 14px; border: 1.5px solid var(--lco-line); border-radius: 10px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.lco-pill strong { color: var(--lco-ink); font-size: 14px; line-height: 1.3; }
.lco-pill small { color: var(--lco-dark); font-size: 12px; font-weight: 600; line-height: 1.3; }
.lco-pill small:empty { display: none; }
.lco-pill:hover span { border-color: #9cc3d2; }
.lco-pill input:checked + span { border-color: var(--lco-brand); background: var(--lco-soft); box-shadow: 0 0 0 3px rgba(15, 111, 147, .12); }
.lco-pill input:focus-visible + span { outline: 2px solid var(--lco-brand); outline-offset: 2px; }
/* Aufpreisprodukte als eigene Kaesten (deutlicher getrennt als mit Linie, Vorgabe 2026-11-02) */
.lco-step .lco-addon, .lco-step .lco-addon:first-of-type, .lco-step .lco-addon:last-of-type {
    margin: 0 0 14px; padding: 16px 18px; border: 1px solid var(--lco-line); border-left: 4px solid var(--lco-brand); border-radius: 10px; background: #f7fafb; }
.lco-step .lco-addon:last-of-type { margin-bottom: 0; }
.lco-addon .lco-pill input:checked + span { background: #dceff6; }

/* Testmonat (VSM, VS): Haken unter den Paketen, Hinweis in der Uebersicht */
.lco-trial { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #b9e0c6; border-radius: 10px; background: #f1faf4; }
.lco-trial strong { color: #1e6b3a; }
.lco p.lco-trial { display: block; padding: 12px 14px; cursor: default; } /* Testaktion: Testmonat fest, ohne Haken */
.lco-sum-trial { margin: 0 0 12px; padding: 8px 10px; border-radius: 6px; background: #e7f6ec; color: #1e6b3a; font-size: 13px; line-height: 1.45; }
.lco-sum-trial[hidden] { display: none; }
/* Kontakt-, Kuendigungs- und Widerrufsformular (forms.php) */
.lcfo { max-width: 820px; }
.lcfo .lco-step h2 { font-size: 22px; }
.lco input[type=date] { width: 100%; max-width: 260px; min-height: 44px; margin: 0; padding: 10px 12px; border: 1.5px solid #cbdbe2; border-radius: 8px; background: #fff; color: var(--lco-ink); font: inherit; }
.lcfo .lco-group { margin-top: 6px; }
.lcfo .lco-group > .lco-hint { margin: -4px 0 0; }
.lcfo .lco-group.lco-invalid > .lco-hint { color: var(--lco-err); }
.lcfo .lco-step > .lco-field, .lcfo-if-extra, .lcfo-if-date { margin-top: 14px; }
.lcfo-if-extra[hidden], .lcfo-if-date[hidden] { display: none; }
.lcfo .lco-submit { width: auto; min-width: 240px; }
.lco-thanks { margin: 0; font-weight: 600; color: var(--lco-dark); }
.lcfo-rows { width: 100%; margin: 16px 0 0; border-collapse: collapse; font-size: 14px; }
.lcfo-rows th, .lcfo-rows td { padding: 7px 12px 7px 0; border-bottom: 1px solid var(--lco-line); text-align: left; vertical-align: top; white-space: pre-wrap; }
.lcfo-rows th { width: 38%; color: var(--lco-muted); font-weight: 600; }
@media (max-width: 640px) { .lcfo .lco-submit { width: 100%; } }
@media print {
    body * { visibility: hidden; }
    .lcfo .lco-result, .lcfo .lco-result * { visibility: visible; }
    .lcfo .lco-result { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
    .lcfo-print { display: none !important; }
}
