/* ==========================================================================
   Bestellstrecke im neuen Design (Anfrageseite, Angebotsseite, Bestellseite,
   Danke-Seiten nach den Auftragsdetails und nach der Bestellung, später
   Warenkorb und Kasse)

   Lädt nur auf Seiten mit Body-Klasse .cantana-flow (functions-quote-request.php).
   Übernimmt Aufbau und Bedienung des neuen Designs, bleibt aber beim heutigen
   Auftritt: Open Sans, Shop-Buttons in Lime mit schwarzer Schrift, Farben vom
   Konfigurator der Produktseite (cantana-print-options/assets/form.css).
   ========================================================================== */

.cantana-flow {
    --flow-green-deep: #2c4c35;
    --flow-green: #67d127;
    --flow-green-hover: #5bbf20;
    --flow-green-soft: #dfecd8;
    --flow-green-tint: #f3f8ef;
    --flow-ring: 0 0 0 4px rgb(103 209 39 / 16%);
    --flow-line: #e3e2d9;
    --flow-line-strong: #cfcdc4;
    --flow-surface: #fff;
    --flow-surface-muted: #f6f5f0;
    --flow-text: #1f1f1f;
    --flow-muted: #656a63;
    --flow-red: #d63b4f;
    --flow-radius: var(--cantana-radius, 10px);
    --flow-radius-card: 16px;
    --flow-radius-pill: 999px;
    --flow-shadow: 0 2px 16px rgb(44 76 53 / 6%);
    --flow-shadow-card: 0 8px 40px rgb(44 76 53 / 8%), 0 2px 8px rgb(0 0 0 / 3%);
    /* Abstand der mitlaufenden Karte unter dem Basel-Sticky-Header. */
    --flow-sticky-top: 90px;
    /* Mitlaufende Leiste am unteren Rand (Absenden, Jetzt bestellen). */
    --flow-bar-bg: rgb(247 245 239 / 88%);
    --flow-bar-blur: blur(20px) saturate(1.2);
    --flow-bar-shadow: 0 -8px 32px rgb(44 76 53 / 8%);
}

.cantana-flow [hidden] {
    display: none !important;
}

/* Basel schneidet mit overflow: hidden ab, das verhindert position: sticky.
   clip schneidet genauso ab, ohne einen Scroll-Container zu bilden. Browser
   ohne clip ignorieren die Zeile und behalten hidden (dann ohne Mitlaufen). */
.cantana-flow .website-wrapper {
    overflow: clip;
}

.cantana-flow .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* --- Seitenraster der Anfrageseite --------------------------------------- */

.cantana-flow .cantana-quote {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 40px;
    color: var(--flow-text);
}

.cantana-flow .cantana-quote__actions { order: 1; display: flex; flex-direction: column; gap: 16px; }
.cantana-flow .cantana-quote__aside { display: contents; }
.cantana-flow .flow-summary { order: 2; }
.cantana-flow .cantana-quote__form { order: 3; }
.cantana-flow .cantana-quote__trust { order: 4; }

@media (min-width: 992px) {
    .cantana-flow .cantana-quote {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
        grid-template-areas:
            "actions aside"
            "form    aside";
        grid-template-rows: auto 1fr;
        gap: 40px 48px;
    }

    .cantana-flow .cantana-quote__actions { grid-area: actions; }
    .cantana-flow .cantana-quote__form { grid-area: form; }

    .cantana-flow .cantana-quote__aside {
        grid-area: aside;
        align-self: start;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .cantana-flow .cantana-quote__aside.is-sticky,
    .cantana-flow .cantana-order__aside.is-sticky {
        position: sticky;
        top: var(--flow-sticky-top);
    }
}

.cantana-flow .cantana-quote__action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 16px;
}

.cantana-flow :is(.cantana-quote, .cantana-order) .woocommerce-error,
.cantana-flow :is(.cantana-quote, .cantana-order) .woocommerce-message,
.cantana-flow :is(.cantana-quote, .cantana-order) .woocommerce-info {
    margin: 0;
    border-radius: var(--flow-radius);
}

/* --- Abschnitte ---------------------------------------------------------- */

.cantana-flow .cantana-quote__form {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cantana-flow .flow-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 0 48px;
}

.cantana-flow .flow-section__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cantana-flow .flow-section .flow-section__title {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-section__lead,
.cantana-flow .flow-hint {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--flow-muted);
}

.cantana-flow .flow-hint { font-size: 14px; }

.cantana-flow .flow-hint--warn {
    font-size: 13px;
    font-weight: 600;
    color: #b3261e;
}

/* --- Buttons ------------------------------------------------------------- */

.cantana-flow .flow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    margin: 0;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 35px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}

.cantana-flow .flow-btn svg { flex: none; }

/* Varianten mit doppelter Klasse (0,3,0), damit sie Basels Button-Regeln auf jeder
   Seite der Strecke schlagen, ohne Selektor-Listen pro Seite. */
.cantana-flow .flow-btn.flow-btn--primary {
    background-color: var(--flow-green);
    border-color: var(--flow-green);
    color: #000;
    box-shadow: 0 2px 10px rgb(103 209 39 / 28%);
}

.cantana-flow .flow-btn.flow-btn--primary:hover,
.cantana-flow .flow-btn.flow-btn--primary:focus-visible {
    background-color: var(--flow-green-hover);
    border-color: var(--flow-green-hover);
    color: #000;
    box-shadow: 0 6px 18px rgb(103 209 39 / 36%);
}

.cantana-flow .flow-btn.flow-btn--primary:active { transform: scale(.98); }

.cantana-flow .flow-btn.flow-btn--secondary {
    min-height: 46px;
    padding: 0 20px;
    background: var(--flow-surface);
    border-color: var(--flow-green-deep);
    color: var(--flow-green-deep);
    box-shadow: none;
}

.cantana-flow .flow-btn.flow-btn--secondary:hover,
.cantana-flow .flow-btn.flow-btn--secondary.is-active {
    background: var(--flow-green-soft);
    color: var(--flow-green-deep);
}

.cantana-flow .flow-btn.flow-btn--ghost {
    min-height: 40px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--flow-green-deep);
    box-shadow: none;
}

.cantana-flow .flow-btn.flow-btn--ghost:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cantana-flow .flow-btn--block { width: 100%; }

.cantana-flow .flow-btn:focus-visible {
    outline: 2px solid var(--flow-green-deep);
    outline-offset: 2px;
}

/* Ladeanzeige im Knopf (Klasse is-loading per JS): Spinner vor dem Text, ein
   Symbol im Knopf weicht ihm. Ring in Textfarbe, passt auf Lime und auf Weiß. */
.cantana-flow .flow-btn .flow-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgb(0 0 0 / 15%);
    border-top-color: currentColor;
}

.cantana-flow .flow-btn:not(.is-loading) .flow-spinner,
.cantana-flow .flow-btn.is-loading svg {
    display: none;
}

.cantana-flow .flow-btn.is-loading { cursor: progress; }

/* --- Badges -------------------------------------------------------------- */

.cantana-flow .flow-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--flow-radius-pill);
    background: var(--flow-green);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

.cantana-flow .flow-badge--neutral {
    background: var(--flow-surface-muted);
    border: 1px solid var(--flow-line);
    color: var(--flow-muted);
    font-weight: 600;
}

/* --- Login-Hinweis ("Bestandskunde?") ------------------------------------ */

.cantana-flow .flow-login-hint {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 6px 20px 6px 7px;
    background: var(--flow-surface);
    border: 1px solid var(--flow-line);
    border-radius: var(--flow-radius-pill);
    font-size: 15px;
    line-height: 1.4;
}

.cantana-flow .flow-login-hint__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--flow-green-soft);
    color: var(--flow-green-deep);
}

.cantana-flow .flow-login-hint a {
    font-weight: 700;
    color: var(--flow-green-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Formularfelder ------------------------------------------------------ */

.cantana-flow .flow-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
}

.cantana-flow .flow-fields .form-row {
    grid-column: 1 / -1;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.cantana-flow .flow-fields .form-row-first { grid-column: 1; }
.cantana-flow .flow-fields .form-row-last { grid-column: 2; }

.cantana-flow .flow-fields--address {
    grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
    gap: 16px;
}

.cantana-flow .flow-fields--address #billing_postcode_field { grid-column: 1; }
.cantana-flow .flow-fields--address #billing_city_field { grid-column: 2; }

.cantana-flow .flow-fields .form-row > label,
.cantana-flow .flow-date .form-row > label {
    display: block;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--flow-muted);
}

.cantana-flow .form-row label .required {
    border: 0;
    color: var(--flow-green-deep);
    text-decoration: none;
}

/* Im Klappfeld ist alles optional, das sagt schon das Badge. Das Land markiert
   WooCommerce selbst als Pflicht, es ist aber immer vorbelegt. */
.cantana-flow .cantana-quote .flow-fields--address .form-row label .optional,
.cantana-flow .cantana-quote .flow-fields--address .form-row label .required { display: none; }

/* Bei Firmenname, USt-ID und Telefon ausdrücklich gewünscht, klein statt in Versalien wie das Label. */
.cantana-flow .flow-fields--address #billing_company_field label .optional,
.cantana-flow .flow-fields--address #billing_vat_field label .optional,
.cantana-flow .flow-fields--address #billing_phone_field label .optional,
.cantana-flow .cantana-order .form-row label .optional {
    display: inline;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.cantana-flow .flow-fields .form-row .input-text,
.cantana-flow .flow-date .form-row .input-text,
.cantana-flow .cantana-quote .form-row textarea,
.cantana-flow .flow-item__note textarea {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 16px;
    background: var(--flow-surface);
    border: 1px solid var(--flow-line);
    border-radius: var(--flow-radius);
    box-shadow: none;
    font-size: 16px;
    line-height: normal;
    color: var(--flow-text);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.cantana-flow .cantana-quote .form-row textarea,
.cantana-flow .flow-item__note textarea {
    height: auto;
    min-height: 110px;
    padding: 12px 16px;
    line-height: 1.5;
    resize: vertical;
}

.cantana-flow :is(.flow-fields--address, .flow-fields--muted) .form-row .input-text {
    background: var(--flow-surface-muted);
}

.cantana-flow .flow-fields .form-row .input-text:focus,
.cantana-flow .flow-date .form-row .input-text:focus,
.cantana-flow .cantana-quote .form-row textarea:focus,
.cantana-flow .flow-item__note textarea:focus {
    background: var(--flow-surface);
    border-color: var(--flow-green);
    box-shadow: var(--flow-ring);
    outline: none;
}

.cantana-flow :is(.cantana-quote, .cantana-order) ::placeholder { color: #a3a79f; opacity: 1; }

.cantana-flow .flow-fields .woocommerce-invalid .input-text,
.cantana-flow .flow-date .woocommerce-invalid .input-text {
    border-color: var(--flow-red);
}

/* Fehlertext unter einem Pflichtfeld (Bestellseite, order-details.js) */
.cantana-flow .flow-field-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #b3261e;
}

/* Länderauswahl: normales Auswahlfeld wie die übrigen Felder, Pfeil bleibt von Basel. */
.cantana-flow .flow-fields .form-row select {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 40px 0 16px;
    background-color: var(--flow-surface);
    border: 1px solid var(--flow-line);
    border-radius: var(--flow-radius);
    box-shadow: none;
    font-size: 16px;
    color: var(--flow-text);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.cantana-flow :is(.flow-fields--address, .flow-fields--muted) .form-row select { background-color: var(--flow-surface-muted); }

.cantana-flow .flow-fields .form-row select:focus {
    background-color: var(--flow-surface);
    border-color: var(--flow-green);
    box-shadow: var(--flow-ring);
    outline: none;
}

/* Länderauswahl, falls WooCommerce sie als Such-Dropdown (selectWoo) ausgibt */
.cantana-flow .flow-fields .select2-container .select2-selection--single {
    height: 50px;
    background: var(--flow-surface-muted);
    border: 1px solid var(--flow-line);
    border-radius: var(--flow-radius);
}

.cantana-flow .flow-fields .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 16px;
    line-height: 48px;
    color: var(--flow-text);
}

.cantana-flow .flow-fields .select2-container .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 8px;
    height: 48px;
}

.cantana-flow .flow-fields .select2-container--open .select2-selection--single,
.cantana-flow .flow-fields .select2-container--focus .select2-selection--single {
    border-color: var(--flow-green);
    box-shadow: var(--flow-ring);
}

/* --- Klappkarte "Eigene Adresse aufs Angebot?" --------------------------- */

.cantana-flow .flow-collapse {
    margin-top: 24px;
    overflow: hidden;
    background: var(--flow-surface);
    border: 1px solid var(--flow-line);
    border-radius: var(--flow-radius-card);
}

.cantana-flow :is(.cantana-quote, .cantana-order) .flow-collapse__toggle,
.cantana-flow :is(.cantana-quote, .cantana-order) .flow-summary__toggle {
    width: 100%;
    min-height: 0;
    margin: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font: inherit;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    color: inherit;
    cursor: pointer;
}

.cantana-flow :is(.cantana-quote, .cantana-order) .flow-collapse__toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}

.cantana-flow .flow-collapse__toggle:focus-visible,
.cantana-flow .flow-summary__toggle:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--flow-green);
}

.cantana-flow .flow-collapse__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--flow-green-soft);
    color: var(--flow-green-deep);
}

.cantana-flow .flow-collapse__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cantana-flow .flow-collapse__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-collapse__desc {
    font-size: 14px;
    line-height: 1.45;
    color: var(--flow-muted);
}

.cantana-flow .flow-collapse__chevron {
    flex: none;
    color: var(--flow-green-deep);
    transition: transform .2s;
}

.cantana-flow .flow-collapse.is-open .flow-collapse__chevron { transform: rotate(180deg); }

.cantana-flow .flow-collapse__panel {
    padding: 20px;
    border-top: 1px solid var(--flow-line);
}

/* --- Motiv & Anmerkungen ------------------------------------------------- */

.cantana-flow .flow-motiv {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.cantana-flow .flow-segment {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    background: var(--flow-surface);
    border: 1px solid var(--flow-line);
    border-radius: var(--flow-radius-pill);
}

.cantana-flow .flow-segment__option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.cantana-flow .flow-segment__option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.cantana-flow .flow-segment__option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 18px;
    border-radius: var(--flow-radius-pill);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    color: var(--flow-muted);
    transition: background-color .2s, color .2s, box-shadow .2s;
}

.cantana-flow .flow-segment__option span svg { flex: none; }

.cantana-flow .flow-segment__option input:checked + span {
    background: var(--flow-green);
    color: #000;
    box-shadow: 0 4px 14px rgb(103 209 39 / 28%);
}

.cantana-flow .flow-segment__option input:focus-visible + span {
    outline: 2px solid var(--flow-green-deep);
    outline-offset: 2px;
}

.cantana-flow #req-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 32px 24px 36px;
    background: var(--flow-surface);
    border: 1.5px dashed var(--flow-line-strong);
    border-radius: var(--flow-radius-card);
    text-align: center;
    color: var(--flow-green-deep);
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.cantana-flow #req-dropzone:hover,
.cantana-flow #req-dropzone.is-hover,
.cantana-flow #req-dropzone:focus-visible {
    background: #fbfdf9;
    border-color: var(--flow-green);
    outline: none;
}

.cantana-flow .flow-dropzone__title { font-weight: 600; }

.cantana-flow .flow-dropzone__title a {
    color: var(--flow-green-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cantana-flow .flow-dropzone__meta {
    font-size: 14px;
    color: var(--flow-muted);
}

.cantana-flow #req-count {
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-size: 12px;
    color: var(--flow-muted);
}

.cantana-flow #req-thumbnails .file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--flow-line);
    font-size: 14px;
}

.cantana-flow #req-thumbnails .imgcontainer {
    flex: none;
    width: 40px;
    text-align: center;
}

.cantana-flow #req-thumbnails .thumb {
    max-width: 40px;
    max-height: 40px;
    border-radius: 4px;
}

.cantana-flow #req-thumbnails .file-row span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.cantana-flow #req-thumbnails .file-row a {
    padding: 8px;
    color: var(--flow-muted);
}

.cantana-flow #req-thumbnails .file-row a:hover { color: var(--flow-red); }

.cantana-flow .flow-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cantana-flow .flow-upload__error {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #b3261e;
}

/* --- Versand: Auswahlkarten, Datum, Checkboxen --------------------------- */

.cantana-flow .flow-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.cantana-flow .flow-choice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 20px;
    background: var(--flow-surface);
    border: 1px solid var(--flow-line);
    border-radius: var(--flow-radius-card);
    box-shadow: var(--flow-shadow);
    font-weight: 400;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.cantana-flow .flow-choice:has(.flow-choice__input:checked) {
    background: var(--flow-green-tint);
    border-color: var(--flow-green);
    box-shadow: 0 0 0 4px rgb(103 209 39 / 10%);
}

.cantana-flow :is(.cantana-quote, .cantana-order) .flow-choice__input {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    background: var(--flow-surface);
    border: 1.5px solid var(--flow-line-strong);
    border-radius: 50%;
    cursor: pointer;
}

.cantana-flow .flow-choice__input::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--flow-green);
    transform: scale(0);
    transition: transform .15s;
}

.cantana-flow :is(.cantana-quote, .cantana-order) .flow-choice__input:checked { border: 2px solid var(--flow-green); }
.cantana-flow .flow-choice__input:checked::before { transform: scale(1); }

.cantana-flow .flow-choice__input:focus-visible {
    outline: 2px solid var(--flow-green-deep);
    outline-offset: 2px;
}

.cantana-flow .flow-choice__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cantana-flow .flow-choice__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-choice__desc {
    font-size: 14px;
    line-height: 1.45;
    color: var(--flow-muted);
}

.cantana-flow .flow-choice__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-date {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
}

.cantana-flow .flow-date .form-row {
    margin: 0;
    padding: 0;
}

.cantana-flow .flow-checks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 4px;
}

.cantana-flow :is(.cantana-quote, .cantana-order) .flow-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.cantana-flow :is(.cantana-quote, .cantana-order) .flow-check input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    background: var(--flow-surface);
    border: 1.5px solid var(--flow-line-strong);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.cantana-flow :is(.cantana-quote, .cantana-order) .flow-check input[type="checkbox"]:checked {
    background: var(--flow-green);
    border-color: var(--flow-green);
}

.cantana-flow .flow-check input[type="checkbox"]:checked::before {
    content: "";
    width: 10px;
    height: 6px;
    border: solid #000;
    border-width: 0 0 2px 2px;
    transform: translateY(-1px) rotate(-45deg);
}

.cantana-flow .flow-check input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--flow-green-deep);
    outline-offset: 2px;
}

.cantana-flow :is(.cantana-quote, .cantana-order) .flow-check label {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
    text-transform: none;
    color: var(--flow-text);
    cursor: pointer;
}

/* --- Absenden ------------------------------------------------------------ */

.cantana-flow .flow-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--flow-muted);
}

.cantana-flow .flow-privacy svg { flex: none; }

.cantana-flow .flow-privacy a {
    font-weight: 600;
    color: var(--flow-green-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cantana-flow .flow-submit {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cantana-flow .cantana-quote #quote_place_order,
.cantana-flow .flow-btn.flow-btn--lg {
    min-height: 56px;
    font-size: 16px;
}

.cantana-flow .cantana-quote #quote_place_order.disabled {
    background-color: #aaa;
    border-color: #aaa;
    box-shadow: none;
}

.cantana-flow .flow-submit__note,
.cantana-flow .req-submit-exp {
    margin: 0;
    font-size: 14px;
    text-align: center;
    color: var(--flow-muted);
}

/* --- Karte "Ihre Anfrage" ------------------------------------------------ */

.cantana-flow .flow-summary {
    overflow: hidden;
    background: var(--flow-surface);
    border: 1px solid var(--flow-line);
    border-radius: 20px;
    box-shadow: var(--flow-shadow-card);
}

.cantana-flow :is(.cantana-quote, .cantana-order) .flow-summary__toggle { display: none; }

.cantana-flow .flow-summary .flow-summary__title {
    margin: 0;
    padding: 26px 24px 6px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-summary form { margin: 0; }

.cantana-flow .flow-summary .quote_cart {
    margin: 0;
    border: 0;
}

.cantana-flow .flow-item {
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--flow-line);
}

/* Abstände als margin statt gap: Der Design-Knopf ist oft ausgeblendet und sein
   leerer Container soll keinen Abstand erzeugen. */
.cantana-flow .flow-item__specs { margin-top: 14px; }
.cantana-flow .flow-item__design .design-button { margin-top: 12px; }
.cantana-flow .flow-item__note { margin-top: 8px; }

.cantana-flow .flow-item__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cantana-flow .flow-item__thumb {
    position: relative;
    flex: none;
    width: 72px;
    height: 88px;
    border-radius: var(--flow-radius);
    background: var(--flow-surface-muted);
}

.cantana-flow .flow-item__thumb .thumbnails-default {
    position: relative;
    height: 100%;
}

.cantana-flow .flow-item__thumb img {
    display: block;
    width: 72px !important;
    height: 88px !important;
    max-width: none !important;
    object-fit: contain;
    border-radius: var(--flow-radius);
}

/* Design-Status als Badge, gleiche Optik wie in Blattwerk (src/index.css .badge).
   Rot = Design offen, Grün = fertig (.is-complete); Werte wie bisher in adq-list.php. */
.cantana-flow .flow-item__thumb .thumbnails-default .text {
    position: absolute;
    left: 50%;
    bottom: -8px;
    z-index: 1;
    align-items: center;
    padding: 3px 7px;
    border: 1px solid #f9bebe;
    border-radius: var(--flow-radius-pill);
    background-color: #fde5e5;
    color: #dc2626;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transform: translateX(-50%);
}

.cantana-flow .flow-item__thumb .thumbnails-default .text.is-complete {
    background-color: #dff1e9;
    border-color: #afddc8;
    color: #157a4d;
}

/* Lade-Schimmer im reservierten Bildfeld, bis das Design-Vorschaubild da ist. */
.cantana-flow .flow-item__thumb .thumbnails-default.thumb-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--flow-radius);
    background: linear-gradient(90deg, #ececec 25%, #f6f6f6 37%, #ececec 63%);
    background-size: 400% 100%;
    animation: flowThumbShimmer 1.4s ease infinite;
}

@keyframes flowThumbShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.cantana-flow .flow-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cantana-flow .flow-item__name,
.cantana-flow .flow-item__name a {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--flow-text);
    text-decoration: none;
}

.cantana-flow .flow-item__name a:hover { color: var(--flow-green-deep); }

.cantana-flow .flow-item__compare {
    font-size: 13px;
    font-weight: 700;
    color: var(--flow-red);
}

.cantana-flow .flow-item__qty .quantity {
    display: block;
    width: auto;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-item__qty .quantity::before { content: "×"; }

.cantana-flow .flow-item__remove { flex: none; }

.cantana-flow .cantana-quote .flow-item__remove a.remove {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: var(--flow-surface);
    border: 1px solid var(--flow-line);
    border-radius: 50%;
    color: var(--flow-muted) !important;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}

.cantana-flow .cantana-quote .flow-item__remove a.remove:hover {
    background: var(--flow-surface);
    border-color: var(--flow-red);
    color: var(--flow-red) !important;
}

.cantana-flow .flow-item__specs,
.cantana-flow .flow-item__design,
.cantana-flow .flow-item__note {
    padding-left: 86px;
}

.cantana-flow .flow-item__specs dl.variation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 12px;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 14px;
    line-height: 1.45;
}

.cantana-flow .flow-item__specs dl.variation dt,
.cantana-flow .flow-item__specs dl.variation dd {
    float: none;
    clear: none;
    margin: 0;
    padding: 0;
}

.cantana-flow .flow-item__specs dl.variation dt {
    font-weight: 400;
    color: var(--flow-muted);
}

.cantana-flow .flow-item__specs dl.variation dd {
    font-weight: 600;
    text-align: right;
    color: var(--flow-text);
}

.cantana-flow .flow-item__specs dl.variation dd p { margin: 0; }

/* Auf der Anfragekarte blendet adq-list.php den Knopf erst nach der Prüfung ein,
   auf der Bestellseite steht er schon im Markup richtig. */
.cantana-flow .cantana-quote .design-button { display: none; }

.cantana-flow :is(.cantana-quote, .cantana-order) .design-button {
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 14px;
    background: var(--flow-surface);
    border: 1px solid var(--flow-green-deep);
    border-radius: var(--flow-radius-pill);
    color: var(--flow-green-deep);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}

.cantana-flow :is(.cantana-quote, .cantana-order) .design-button.is-add {
    background: var(--flow-green);
    border-color: var(--flow-green);
    color: #000;
}

.cantana-flow :is(.cantana-quote, .cantana-order) .design-button.is-edit:hover { background: var(--flow-green-soft); }
.cantana-flow :is(.cantana-quote, .cantana-order) .design-button.is-add:hover { background: var(--flow-green-hover); }

.cantana-flow :is(.cantana-quote, .cantana-order) .design-button.loading {
    opacity: .6;
    cursor: not-allowed;
}

.cantana-flow .flow-item__note .show_product_meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    font-size: 14px;
    font-weight: 600;
    color: var(--flow-green-deep);
    text-decoration: none;
}

.cantana-flow .flow-item__note .show_product_meta:hover { color: #3fae10; }

.cantana-flow .flow-item__note textarea {
    min-height: 64px;
    padding: 10px 14px;
    font-size: 14px;
}

.cantana-flow .flow-summary__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 24px 24px;
}

.cantana-flow .flow-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    width: 100%;
    margin: 0;
    font-size: 15px;
}

.cantana-flow .flow-summary__row > span:first-child { color: var(--flow-muted); }

.cantana-flow .flow-summary__shipping {
    padding-top: 16px;
    border-top: 1px solid var(--flow-line);
}

.cantana-flow .flow-summary__coupons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--flow-line);
}

/* --- Sofort-Angebot und Team --------------------------------------------- */

.cantana-flow .cantana-quote__trust {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cantana-flow .flow-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 16px 18px;
    background: var(--flow-green-soft);
    border-radius: var(--flow-radius-card);
    font-size: 14px;
    line-height: 1.55;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-notice svg {
    flex: none;
    margin-top: 1px;
}

.cantana-flow .flow-team {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 22px;
    background: var(--flow-surface);
    border: 1px solid var(--flow-line);
    border-radius: 20px;
    box-shadow: var(--flow-shadow);
}

.cantana-flow .flow-team__image {
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    height: 48px;
}

.cantana-flow .flow-team p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--flow-text);
}

.cantana-flow .flow-team strong { color: var(--flow-green-deep); }

/* --- Tablet und Handy: eine Spalte, Karte oben zum Aufklappen ------------- */

@media (max-width: 991px) {
    .cantana-flow :is(.cantana-quote, .cantana-order) .flow-summary__toggle {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 64px;
        padding: 14px 18px;
        background: var(--flow-green-soft);
        color: var(--flow-green-deep);
    }

    .cantana-flow .flow-summary__toggle-text {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .cantana-flow .flow-summary__toggle-title {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.3;
    }

    .cantana-flow .flow-summary__toggle-meta {
        font-size: 14px;
        line-height: 1.4;
    }

    .cantana-flow .flow-summary__chevron {
        flex: none;
        transform: rotate(180deg);
        transition: transform .2s;
    }

    .cantana-flow .flow-summary.is-collapsed .flow-summary__chevron { transform: none; }
    .cantana-flow .flow-summary.is-collapsed .flow-summary__body { display: none; }

    .cantana-flow .flow-summary .flow-summary__title,
    .cantana-flow .flow-summary__footer { display: none; }

    .cantana-flow .flow-summary {
        border-radius: 20px;
        box-shadow: var(--flow-shadow);
    }

    .cantana-flow .flow-item { padding: 16px 18px; }
    .cantana-flow .flow-item__specs { margin-top: 12px; }

    .cantana-flow .flow-item:last-child { border-bottom: 0; }

    .cantana-flow .flow-item__specs,
    .cantana-flow .flow-item__design,
    .cantana-flow .flow-item__note {
        padding-left: 0;
    }

    .cantana-flow .flow-item__specs dl.variation {
        padding: 12px 14px;
        background: var(--flow-surface-muted);
        border-radius: 12px;
    }
}

@media (max-width: 767px) {
    .cantana-flow .cantana-quote { gap: 24px; }

    .cantana-flow .cantana-quote__action-row .flow-btn--primary { width: 100%; }
    .cantana-flow .flow-login-hint { flex-basis: 100%; font-size: 14px; }

    .cantana-flow .flow-section { margin-bottom: 40px; gap: 16px; }
    .cantana-flow .flow-section .flow-section__title { font-size: 23px; }
    .cantana-flow .flow-section__lead { font-size: 15px; }

    .cantana-flow .flow-fields { gap: 20px 12px; }
    .cantana-flow .flow-fields--address { grid-template-columns: 110px minmax(0, 1fr); gap: 14px 12px; }
    .cantana-flow .flow-collapse { margin-top: 20px; }

    .cantana-flow .cantana-quote .flow-collapse__toggle {
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .cantana-flow .flow-collapse__icon { width: 40px; height: 40px; }
    .cantana-flow .flow-collapse__chevron { margin-top: 10px; }
    .cantana-flow .flow-collapse__panel { padding: 16px; }

    .cantana-flow .flow-motiv {
        flex-direction: column;
        align-items: stretch;
    }

    .cantana-flow .flow-segment {
        display: grid;
        border-radius: var(--flow-radius-card);
    }

    .cantana-flow .flow-segment__option span {
        min-height: 52px;
        padding: 6px 10px;
        border-radius: 12px;
    }

    .cantana-flow #req-dropzone { padding: 24px 16px 34px; }

    .cantana-flow .flow-choices { gap: 10px; }
    .cantana-flow .flow-choice { padding: 18px 16px; box-shadow: none; }

    .cantana-flow .flow-checks { gap: 4px; }
    .cantana-flow :is(.cantana-quote, .cantana-order) .flow-check { padding: 10px 0; }

    .cantana-flow .flow-privacy {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .cantana-flow .flow-privacy svg { margin-top: 4px; }

    .cantana-flow .flow-item__thumb,
    .cantana-flow .flow-item__thumb img {
        width: 64px !important;
        height: 76px !important;
    }

    .cantana-flow .cantana-quote .flow-item__remove a.remove {
        width: 40px;
        height: 40px;
    }

    /* Absendeleiste läuft am unteren Rand mit, solange das Formular sichtbar ist. */
    .cantana-flow .flow-submit {
        position: sticky;
        bottom: 0;
        z-index: 20;
        gap: 8px;
        margin: 0 -15px;
        padding: 12px 15px calc(14px + env(safe-area-inset-bottom));
        background: var(--flow-bar-bg);
        -webkit-backdrop-filter: var(--flow-bar-blur);
        backdrop-filter: var(--flow-bar-blur);
        border-top: 1px solid var(--flow-line);
        box-shadow: var(--flow-bar-shadow);
    }

    .cantana-flow .cantana-quote #quote_place_order { min-height: 52px; }
    .cantana-flow .flow-submit__note { font-size: 13px; }
}

/* --- Danke-Seiten (includes/thanks-page.php) ----------------------------- */

.cantana-flow .cantana-thanks {
    max-width: 760px;
    margin: 40px auto 80px;
    padding: 56px;
    background: var(--flow-surface);
    border: 1px solid var(--flow-line);
    border-radius: 24px;
    box-shadow: var(--flow-shadow-card);
    color: var(--flow-text);
}

.cantana-flow .cantana-thanks__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 32px;
    border-radius: 50%;
    background: var(--flow-green-soft);
    color: var(--flow-green-deep);
}

.cantana-flow .cantana-thanks .cantana-thanks__title {
    margin: 0 0 24px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--flow-green-deep);
}

.cantana-flow .cantana-thanks__lead {
    margin: 0 0 32px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--flow-text);
}

/* Der große Umschlag rechts ist nur Dekor und wird vom Kasten angeschnitten. */
.cantana-flow .cantana-thanks__note {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
    padding: 24px 28px;
    overflow: hidden;
    border-radius: var(--flow-radius-card);
    background: var(--flow-green-soft);
}

.cantana-flow .cantana-thanks__note p {
    position: relative;
    max-width: 470px;
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--flow-text);
}

.cantana-flow .cantana-thanks__note strong {
    font-weight: 700;
    color: var(--flow-green-deep);
}

.cantana-flow .cantana-thanks__note a {
    font-weight: 700;
    color: var(--flow-green-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cantana-flow .cantana-thanks__note a:hover { text-decoration-thickness: 2px; }

.cantana-flow .cantana-thanks__note-icon {
    flex: none;
    margin-top: 2px;
    color: var(--flow-green-deep);
}

.cantana-flow .cantana-thanks__note-art {
    position: absolute;
    right: -10px;
    bottom: -38px;
    width: 140px;
    height: auto;
    color: rgb(44 76 53 / 10%);
    transform: rotate(-14deg);
    pointer-events: none;
}

.cantana-flow .cantana-thanks__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.cantana-flow .cantana-thanks .flow-btn {
    min-height: 52px;
    padding: 0 32px;
    font-size: 15px;
}

@media (max-width: 575px) {
    .cantana-flow .cantana-thanks {
        margin: 16px 0 48px;
        padding: 32px 22px;
        border-radius: var(--flow-radius-card);
    }

    .cantana-flow .cantana-thanks__icon {
        width: 48px;
        height: 48px;
        margin-bottom: 24px;
    }

    .cantana-flow .cantana-thanks .cantana-thanks__title {
        margin-bottom: 16px;
        font-size: 28px;
    }

    .cantana-flow .cantana-thanks__lead {
        margin-bottom: 24px;
        font-size: 17px;
    }

    .cantana-flow .cantana-thanks__note {
        gap: 12px;
        margin-bottom: 28px;
        padding: 20px;
    }

    .cantana-flow .cantana-thanks__note p { font-size: 15px; }
    .cantana-flow .cantana-thanks__note-art { display: none; }
    .cantana-flow .cantana-thanks .flow-btn { width: 100%; }
}

/* --- Angebotsseite (woocommerce/checkout/thankyou.php) -------------------- */

/* Kopf mit Anfragenummer, Überschrift und Hinweis */
.cantana-flow .flow-page-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--flow-line);
}

.cantana-flow .flow-page-head__eyebrow {
    font-size: 15px;
    font-weight: 600;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-page-head .flow-page-head__title {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-page-head__lead {
    max-width: 620px;
    margin: 4px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--flow-muted);
}

.cantana-flow .flow-page-head__warn { color: #b3261e; }

/* Karte mit Titelzeile */
.cantana-flow .flow-card {
    overflow: hidden;
    background: var(--flow-surface);
    border: 1px solid var(--flow-line);
    border-radius: 20px;
    box-shadow: var(--flow-shadow);
}

.cantana-flow .flow-card--padded {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 26px 28px 28px;
}

.cantana-flow .flow-card__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--flow-line);
}

.cantana-flow .flow-card .flow-card__title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-card__meta {
    font-size: 14px;
    white-space: nowrap;
    color: var(--flow-muted);
}

.cantana-flow :is(.cantana-offer, .cantana-order, .cantana-lookup) .amount { color: inherit; }

.cantana-flow .cantana-offer .flow-btn {
    min-height: 52px;
    font-size: 15px;
}

.cantana-flow .cantana-offer .flow-btn.flow-btn--ghost { min-height: 40px; }

/* Position: Bild links, daneben Name, Menge und die Preiszeilen */
.cantana-flow .flow-item.flow-item--offer {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-areas:
        "thumb info"
        "thumb lines";
    grid-template-rows: auto 1fr;
    column-gap: 24px;
    padding: 24px 28px;
}

.cantana-flow .flow-item--offer:last-child { border-bottom: 0; }

/* Hochformat 3:4 wie die Shop-Thumbnails (woocommerce_thumbnail 213 × 284). */
.cantana-flow .flow-item--offer .flow-item__thumb {
    grid-area: thumb;
    width: 108px;
    height: 144px;
    overflow: hidden;
    border-radius: 14px;
}

.cantana-flow .flow-item--offer .flow-item__thumb img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
}

.cantana-flow .flow-item--offer .flow-item__info {
    grid-area: info;
    padding-bottom: 12px;
}

.cantana-flow .flow-item__meta {
    font-size: 14px;
    color: var(--flow-muted);
}

.cantana-flow .flow-item--offer :is(.flow-lines, .flow-item__lines) { grid-area: lines; }

/* Preiszeile: links Bezeichnung über Wert, rechts Gesamtpreis über Stückpreis */
.cantana-flow .flow-lines {
    margin: 0;
    padding: 0;
    border: 0;
}

.cantana-flow .flow-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    padding: 12px 0;
    border-top: 1px dashed var(--flow-line);
}

.cantana-flow .flow-line:last-child { padding-bottom: 0; }

.cantana-flow .flow-lines dt,
.cantana-flow .flow-lines dd {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.cantana-flow .flow-lines .flow-line__label {
    grid-column: 1;
    font-size: 14px;
    font-weight: 400;
    color: var(--flow-muted);
}

.cantana-flow .flow-lines .flow-line__value {
    grid-column: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--flow-text);
}

.cantana-flow .flow-line__value p { margin: 0; }

.cantana-flow .flow-lines .flow-line__price {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--flow-text);
}

.cantana-flow .flow-line__unit {
    font-size: 14px;
    font-weight: 400;
    color: var(--flow-muted);
}

/* Gebühren, Versand und Summen nutzen die Zeilen der Anfragekarte (.flow-summary__row). */
.cantana-flow .flow-offer__extras,
.cantana-flow .flow-totals {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 28px 24px;
}

.cantana-flow :is(.cantana-offer, .cantana-order, .cantana-lookup) .flow-summary__row > span:last-child {
    flex: none;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.cantana-flow .flow-totals {
    padding-top: 22px;
    background: var(--flow-surface-muted);
    border-bottom: 1px solid var(--flow-line);
}

.cantana-flow .flow-summary__row--strong > span:first-child,
.cantana-flow .flow-summary__row--grand > span:first-child {
    font-weight: 700;
    color: var(--flow-text);
}

.cantana-flow .flow-summary__row--muted {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--flow-line);
    color: var(--flow-muted);
}

.cantana-flow :is(.cantana-offer, .cantana-order, .cantana-lookup) .flow-summary__row--muted > span:last-child { font-weight: 400; }

.cantana-flow :is(.cantana-offer, .cantana-order) .flow-summary__row--grand > span:last-child {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-summary__row--compare,
.cantana-flow .flow-summary__row--compare > span:first-child {
    font-size: 14px;
    color: var(--flow-red);
}

/* Nächste Schritte: Kacheln im Raster der Versandkarten (.flow-choices) */
.cantana-flow .flow-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
    background: var(--flow-surface);
    border: 1px solid var(--flow-line);
    border-radius: var(--flow-radius-card);
}

/* Hervorgehoben nur über einen kräftigeren Rand, ohne Ring außen. */
.cantana-flow .flow-tile--featured {
    background: var(--flow-green-tint);
    border: 1.5px solid var(--flow-green);
}

.cantana-flow .flow-tile .flow-choice__desc { flex: 1; }
.cantana-flow .flow-tile .flow-btn { margin-top: 14px; }

.cantana-flow .flow-notice--muted {
    background: var(--flow-surface-muted);
    font-size: 15px;
    color: var(--flow-text);
}

.cantana-flow .flow-notice--muted svg,
.cantana-flow .flow-notice--muted strong {
    font-weight: 700;
    color: var(--flow-green-deep);
}

/* Zusammenfassung */
.cantana-flow .flow-total__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 28px 0;
}

.cantana-flow .flow-total__later {
    margin: 0;
    padding: 8px 28px 14px;
    text-align: center;
}

/* Trustindex-Badge (includes/google-rating.php): Platz freihalten, bis er geladen ist
   (geladen 65px hoch, davon 20px eigener Rand). */
.cantana-flow .flow-rating {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 65px;
}

/* Trustindex richtet den Badge per Attribut-Selektor links aus und lädt sein CSS nach
   unserem, daher hier ausnahmsweise !important. */
.cantana-flow .flow-rating .ti-widget-container { text-align: center !important; }

.cantana-flow .flow-total .flow-rating {
    margin: 0 28px;
    padding: 14px 0 10px;
}

.cantana-flow .flow-total .flow-rating:not(:last-child) { border-bottom: 1px solid var(--flow-line); }

/* Leiste am unteren Rand, nur einspaltig. Optik wie die Absendeleiste der Anfrageseite. */
.cantana-flow .flow-dock {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 -15px;
    padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
    background: var(--flow-bar-bg);
    -webkit-backdrop-filter: var(--flow-bar-blur);
    backdrop-filter: var(--flow-bar-blur);
    border-top: 1px solid var(--flow-line);
    box-shadow: var(--flow-bar-shadow);
}

.cantana-flow .flow-dock__total {
    flex: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    line-height: 1.25;
}

.cantana-flow .flow-dock__label {
    font-size: 13px;
    color: var(--flow-muted);
}

.cantana-flow .flow-dock__amount {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-dock .flow-btn { flex: 1; }

/* Desktop: Angebot und nächste Schritte links, Zusammenfassung und Team rechts */
@media (min-width: 992px) {
    .cantana-flow :is(.cantana-offer, .cantana-order) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
        grid-template-areas:
            "head head"
            "main aside";
        gap: 36px 48px;
        align-items: start;
        margin-bottom: 48px;
        color: var(--flow-text);
    }

    .cantana-flow .flow-page-head { grid-area: head; }

    .cantana-flow :is(.cantana-offer__main, .cantana-offer__aside, .cantana-order__main, .cantana-order__aside) {
        display: flex;
        flex-direction: column;
        gap: 24px;
        min-width: 0;
    }

    .cantana-flow :is(.cantana-offer__main, .cantana-order__main) { grid-area: main; }
    .cantana-flow :is(.cantana-offer__aside, .cantana-order__aside) { grid-area: aside; }

    .cantana-flow .flow-dock { display: none; }
}

/* Tablet und Handy: eine Spalte. Die Spalten und die Zusammenfassung lösen sich auf,
   damit die Summen direkt unter dem Angebot stehen (wie .cantana-quote__aside). */
@media (max-width: 991px) {
    .cantana-flow .cantana-offer {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        color: var(--flow-text);
    }

    .cantana-flow .cantana-offer__main,
    .cantana-flow .cantana-offer__aside,
    .cantana-flow .cantana-offer .flow-total { display: contents; }

    .cantana-flow .flow-offer { order: 1; }
    .cantana-flow .flow-totals { order: 2; }
    .cantana-flow .flow-next { order: 3; }
    .cantana-flow .cantana-offer .flow-rating { order: 4; }
    .cantana-flow .cantana-offer .flow-team { order: 5; }
    .cantana-flow .flow-dock { order: 6; }

    /* Summen schließen unten an die Angebotskarte an. */
    .cantana-flow .flow-offer { border-radius: 20px 20px 0 0; }

    .cantana-flow .flow-totals {
        margin-top: -20px;
        border: 1px solid var(--flow-line);
        border-top: 0;
        border-radius: 0 0 20px 20px;
        box-shadow: var(--flow-shadow);
    }

    /* Bestellen übernehmen die Kacheln und die Leiste unten. */
    .cantana-flow .flow-total > .flow-card__head,
    .cantana-flow .flow-total__actions,
    .cantana-flow .flow-total__later { display: none; }

    /* Ohne fertige Preise gibt es keine Leiste, dann bleibt „Fertig“ sichtbar. */
    .cantana-flow .cantana-offer.is-pending .flow-total__actions {
        order: 2;
        display: flex;
        padding: 0;
    }

    .cantana-flow .flow-total .flow-rating,
    .cantana-flow .flow-total .flow-rating:not(:last-child) {
        min-height: 81px;
        margin: 0;
        padding: 12px 16px 2px;
        background: var(--flow-surface);
        border: 1px solid var(--flow-line);
        border-radius: 20px;
        box-shadow: var(--flow-shadow);
    }
}

@media (max-width: 767px) {
    .cantana-flow .flow-page-head { padding-bottom: 20px; }
    .cantana-flow .flow-page-head .flow-page-head__title { font-size: 30px; }
    .cantana-flow .flow-page-head__lead { font-size: 15px; }

    .cantana-flow .flow-card__head { padding: 18px 18px 16px; }
    .cantana-flow .flow-card .flow-card__title { font-size: 20px; }
    .cantana-flow .flow-card--padded { gap: 16px; padding: 20px 18px; }

    .cantana-flow .flow-item.flow-item--offer {
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-areas:
            "thumb info"
            "lines lines";
        grid-template-rows: auto;
        align-items: center;
        gap: 12px 14px;
        padding: 18px;
    }

    /* Schlägt die !important-Größen der Anfragekarte (64 × 76) für Handys, 3:4 wie oben. */
    .cantana-flow .flow-item--offer .flow-item__thumb {
        width: 72px !important;
        height: 96px !important;
        border-radius: 12px;
    }

    .cantana-flow .flow-item--offer .flow-item__info { padding-bottom: 0; }

    .cantana-flow .flow-offer__extras,
    .cantana-flow .flow-totals {
        gap: 10px;
        padding: 16px 18px 18px;
    }

    .cantana-flow :is(.cantana-offer, .cantana-order, .cantana-lookup) .flow-summary__row { font-size: 14px; }
    .cantana-flow :is(.cantana-offer, .cantana-order) .flow-summary__row--grand > span:last-child { font-size: 24px; }

    .cantana-flow .flow-tile { padding: 18px; }
    .cantana-flow .flow-notice--muted { font-size: 14px; }
}

@media (max-width: 575px) {
    .cantana-flow .flow-page-head .flow-page-head__title { font-size: 28px; }
}

/* --- Bestellseite (page-auftragsdetails.php, order-details.js) ----------- */

/* Raster wie die Angebotsseite (Desktop siehe oben), hier nur das Eigene. Die
   Karte „Lieferadresse“ nutzt den Kopf der Klappkarte, ohne zu klappen. */
.cantana-flow .cantana-order .flow-collapse { margin-top: 4px; }

/* Die Reihenfolge der Anfragekarte (.flow-summary { order: 2 }) gilt hier nicht. */
.cantana-flow .cantana-order .flow-summary { order: 0; }
.cantana-flow .cantana-order .flow-collapse__toggle { cursor: default; }

.cantana-flow .cantana-order .form-row select.input-text { padding-right: 40px; }

.cantana-flow .cantana-order #billing_vat_field .flow-hint {
    display: block;
    margin-top: 8px;
}

.cantana-flow .flow-hint a {
    font-weight: 600;
    color: var(--flow-green-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cantana-flow .flow-summary__sub {
    font-size: 13px;
    font-weight: 400;
    color: var(--flow-muted);
}

/* Design-Status je Position und Hinweis auf offene Designs */
.cantana-flow .flow-badge--open,
.cantana-flow .flow-badge--done {
    align-self: flex-start;
    gap: 6px;
    margin-top: 4px;
    font-weight: 600;
}

.cantana-flow .flow-badge--open { background: #fde5e5; color: #dc2626; }
.cantana-flow .flow-badge--done { background: #dff1e9; color: #157a4d; }

.cantana-flow .flow-badge--open::before,
.cantana-flow .flow-badge--done::before,
.cantana-flow .flow-badge--dot::before,
.cantana-flow .flow-design-hint::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.cantana-flow .flow-design-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #b3261e;
}

/* Position: Design-Knopf unter den Preiszeilen, rechts neben dem Bild */
.cantana-flow .cantana-order .flow-item--offer {
    grid-template-areas:
        "thumb info"
        "thumb lines"
        "thumb action";
    grid-template-rows: auto auto 1fr;
}

.cantana-flow .flow-item__media { display: contents; }

.cantana-flow .cantana-order .flow-item__design {
    grid-area: action;
    padding-left: 0;
}

.cantana-flow .cantana-order .design-button { display: inline-flex; }

/* Summen schließen die Karte unten ab */
.cantana-flow .cantana-order .flow-summary .flow-totals { border-bottom: 0; }

/* Gesamt: Anzahl statt Betrag, die Bestellseite zeigt keine Preise */
.cantana-flow .cantana-order .flow-summary__row--count > span:last-child {
    font-size: 18px;
    font-weight: 700;
    color: var(--flow-green-deep);
}

/* So geht es weiter, Absenden, Datenschutz-Hinweis */
.cantana-flow .flow-order-action {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cantana-flow .cantana-order .flow-order-action .flow-hint { text-align: center; }

.cantana-flow .flow-notice--error {
    background: #fde5e5;
    font-weight: 600;
    color: #b3261e;
}

.cantana-flow .flow-btn.loading {
    opacity: .7;
    cursor: progress;
}

/* So geht es weiter: drei Schritte, verbunden durch eine gestrichelte Linie */
.cantana-flow .flow-next-steps__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cantana-flow .flow-next-steps .flow-badge--neutral {
    gap: 6px;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cantana-flow .flow-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    margin: 0;
}

.cantana-flow .flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 52px;
    right: -14px;
    border-top: 1.5px dashed var(--flow-line-strong);
}

.cantana-flow .flow-step__icon {
    position: relative;
    z-index: 1;
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--flow-green-soft);
    color: var(--flow-green-deep);
}

.cantana-flow .flow-step.is-current .flow-step__icon {
    background: var(--flow-green-deep);
    color: #fff;
}

.cantana-flow .flow-step__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cantana-flow .flow-step__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--flow-muted);
}

.cantana-flow .flow-step__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-step__desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--flow-muted);
}

/* Handy: Leiste unter dem Header, sobald die Karte aus dem Bild ist (order-details.js) */
.cantana-flow .cantana-order .flow-pinbar {
    position: fixed;
    top: var(--flow-pinbar-top, 0px);
    right: 0;
    left: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 12px 16px;
    background: var(--flow-bar-bg);
    -webkit-backdrop-filter: var(--flow-bar-blur);
    backdrop-filter: var(--flow-bar-blur);
    border: 0;
    border-bottom: 1px solid var(--flow-line);
    border-radius: 0;
    box-shadow: 0 8px 24px rgb(44 76 53 / 10%);
    font: inherit;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    color: var(--flow-green-deep);
    cursor: pointer;
}

.cantana-flow .flow-pinbar__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cantana-flow .flow-pinbar__title {
    font-size: 15px;
    font-weight: 700;
}

.cantana-flow .flow-pinbar__meta {
    font-size: 13px;
    color: var(--flow-muted);
}

.cantana-flow .flow-pinbar svg { flex: none; }

@media (min-width: 992px) {
    .cantana-flow .cantana-order .flow-pinbar { display: none; }
}

/* Tablet und Handy: Kopf, Karte (zugeklappt), Formular, Team */
@media (max-width: 991px) {
    .cantana-flow .cantana-order {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        color: var(--flow-text);
    }

    .cantana-flow .cantana-order__aside { display: contents; }
    .cantana-flow .cantana-order .flow-summary { order: 1; }
    .cantana-flow .cantana-order__main { order: 2; }
    .cantana-flow .cantana-order .flow-team { order: 3; }

    .cantana-flow .cantana-order .flow-summary > .flow-card__head { display: none; }
}

@media (max-width: 575px) {
    /* Kontakt- und Namensfelder untereinander, PLZ und Stadt bleiben nebeneinander. */
    .cantana-flow .cantana-order .flow-fields:not(.flow-fields--address) > .form-row { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    .cantana-flow .cantana-order .flow-item.flow-item--offer {
        grid-template-areas:
            "thumb info"
            "lines lines"
            "action action";
    }

    .cantana-flow .cantana-order .flow-item__design .design-button { margin-top: 2px; }

    .cantana-flow .flow-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .cantana-flow .flow-step { flex-direction: row; }

    .cantana-flow .flow-step:not(:last-child)::after {
        top: 48px;
        right: auto;
        bottom: -16px;
        left: 20px;
        border-top: 0;
        border-left: 1.5px dashed var(--flow-line-strong);
    }
}

/* --- Angebotssuche und -liste (auftragsdetails_render_lookup, offer-list.js) -- */

/* Wiederverwendet: Kopf, Karten, Felder, Knöpfe, Badges, Hinweise, Team, Google-Badge
   und die Positionen der Angebotsseite (.flow-item--offer). Neu ist nur, was es dort
   nicht gibt: die Liste, die Karten darunter und das Panel rechts. */
.cantana-flow .cantana-lookup {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
    color: var(--flow-text);
}

.cantana-flow .cantana-lookup__card { max-width: 560px; }
.cantana-flow .cantana-lookup__card > .flow-btn { align-self: flex-start; }

.cantana-flow .cantana-lookup__form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
}

.cantana-flow .cantana-lookup__form .flow-fields {
    align-self: stretch;
    grid-template-columns: minmax(0, 1fr);
}

.cantana-flow .cantana-lookup__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
}

.cantana-flow .cantana-lookup__actions form { margin: 0; }
.cantana-flow .cantana-lookup__sep { color: var(--flow-line-strong); }

/* „Angebote für … · Andere E-Mail-Adresse verwenden“ unter der Liste */
.cantana-flow .cantana-lookup__account {
    margin-top: 12px;
    font-size: 14px;
    color: var(--flow-muted);
}

.cantana-flow .cantana-lookup__account strong {
    overflow-wrap: anywhere;
    font-weight: 600;
    color: var(--flow-text);
}

/* Schritte E-Mail und Code: Kopf mit Symbol und Unterzeile, Hinweis mit Punkt,
   breiter Knopf mit Spinner (offer-lookup.js). Beim Code dazu sechs Kästchen und
   die Hilfe „Keine E-Mail erhalten?“ unten. */
.cantana-flow .cantana-lookup__head {
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 26px 28px;
}

.cantana-flow .cantana-lookup__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    background: var(--flow-green-soft);
    border-radius: 14px;
    color: var(--flow-green-deep);
}

.cantana-flow .cantana-lookup__titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cantana-flow .cantana-lookup__sent {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--flow-muted);
}

.cantana-flow .cantana-lookup__sent strong {
    overflow-wrap: anywhere;
    font-weight: 600;
    color: var(--flow-text);
}

.cantana-flow .cantana-lookup__sent .cantana-lookup__sep { color: var(--flow-muted); }

.cantana-flow .cantana-lookup__sent form {
    display: inline;
    margin: 0;
}

/* „Ändern“: ein Knopf (POST mit der Adresse), der wie ein Link aussieht */
.cantana-flow .cantana-lookup .cantana-lookup__link {
    display: inline;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--flow-green-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.cantana-flow .cantana-lookup .cantana-lookup__link:hover { text-decoration-thickness: 2px; }

.cantana-flow .cantana-lookup__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px;
}

.cantana-flow .flow-notice--dot {
    align-items: center;
    font-weight: 600;
}

.cantana-flow .flow-notice--dot::before {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--flow-green);
}

.cantana-flow .flow-notice--dot.flow-notice--error::before { background: var(--flow-red); }

/* Das Feld liegt unsichtbar über den Kästchen und nimmt alle Klicks an. */
.cantana-flow .flow-otp {
    position: relative;
    max-width: 420px;
}

.cantana-flow .flow-fields .form-row .flow-otp__input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 0;
    opacity: 0;
    font-size: 16px; /* kein Zoom beim Fokus auf iOS */
    cursor: text;
}

.cantana-flow .flow-otp__slots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cantana-flow .flow-otp__slot {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 56px;
    height: 60px;
    display: grid;
    place-items: center;
    background: var(--flow-surface);
    border: 1px solid var(--flow-line-strong);
    border-radius: var(--flow-radius);
    font-size: 24px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--flow-text);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.cantana-flow .flow-otp__slot.is-active {
    border-color: var(--flow-green);
    box-shadow: var(--flow-ring);
}

/* Blinkende Einfügemarke im leeren aktiven Kästchen */
.cantana-flow .flow-otp__slot.is-active:empty::after {
    content: "";
    width: 2px;
    height: 26px;
    background: var(--flow-green-deep);
    animation: flowCaret 1s steps(1) infinite;
}

.cantana-flow .flow-otp__sep {
    flex: none;
    width: 14px;
    height: 2px;
    margin: 0 4px;
    background: var(--flow-line-strong);
}

.cantana-flow .flow-otp.is-invalid .flow-otp__slot {
    background: #fdf5f5;
    border-color: var(--flow-red);
}

/* Hinweis unter einem Feld (E-Mail-Adresse, Code) */
.cantana-flow .flow-field-hint {
    display: block;
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--flow-muted);
}

.cantana-flow .flow-field-hint--error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
    color: var(--flow-text);
}

.cantana-flow .flow-field-hint--error svg {
    flex: none;
    margin-top: 1px;
    color: var(--flow-red);
}

/* Sobald neu getippt wird, verschwindet der Feldfehler (offer-lookup.js nimmt is-invalid weg). */
.cantana-flow .flow-otp:not(.is-invalid) + .flow-field-hint--error { display: none; }

.cantana-flow .cantana-lookup__note {
    align-self: stretch;
    margin: 0;
    font-size: 14px;
    text-align: center;
    color: var(--flow-muted);
}

.cantana-flow .cantana-lookup__help {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 24px;
    border-top: 1px solid var(--flow-line);
}

.cantana-flow .cantana-lookup__help form { margin: 6px 0 0; }

.cantana-flow .cantana-lookup .cantana-lookup__help-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
    color: var(--flow-text);
}

.cantana-flow .cantana-lookup__resend.flow-btn {
    min-height: 32px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cantana-flow .cantana-lookup__resend .flow-spinner { border-color: var(--flow-green-soft); border-top-color: currentColor; }

@keyframes flowCaret { 50% { opacity: 0; } }

@media (max-width: 767px) {
    .cantana-flow .cantana-lookup__head { gap: 14px; padding: 20px 18px; }
    .cantana-flow .cantana-lookup__icon { width: 48px; height: 48px; border-radius: 12px; }
    .cantana-flow .cantana-lookup__body { gap: 20px; padding: 20px 18px 24px; }
    .cantana-flow .flow-otp__slots { gap: 6px; }
    .cantana-flow .flow-otp__slot { height: 52px; font-size: 22px; }
    .cantana-flow .flow-otp__sep { width: 10px; margin: 0 2px; }
}

.cantana-flow .cantana-lookup__offers { margin: 0; }

/* Kopf der Liste: Titel mit Zähler, Hinweis, rechts „Neues Angebot erstellen“ */
.cantana-flow .flow-offers-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.cantana-flow .flow-offers-head__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cantana-flow .flow-offers-head__title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cantana-flow .flow-badge--soft {
    padding: 3px 11px;
    background: var(--flow-green-soft);
    color: var(--flow-green-deep);
    font-size: 14px;
    line-height: 1.4;
}

.cantana-flow .flow-badge--dot {
    gap: 8px;
    padding: 4px 12px;
    font-size: 13px;
    white-space: nowrap;
}

/* Liste: eine Zeile je Angebot. Breit als Tabelle, schmaler ohne Spalte „Anfrage“,
   auf dem Handy als Karten. Die Stufen hängen an der Breite der Liste (Container). */
/* Kopf und jede Zeile sind eigene Raster. Damit die Spalten übereinander stehen, darf
   keine Spalte vom Inhalt abhängen: die Aktionsspalte ist fest (Breite des Knopfs
   „Angebot annehmen“), sonst fällt sie im Kopf ohne Knopf auf 0 und alles rutscht. */
.cantana-flow .flow-offers {
    --flow-offers-action: 184px;
    container: offers / inline-size;
}

.cantana-flow .flow-offers__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cantana-flow .flow-offers__item {
    margin: 0;
    border-top: 1px solid var(--flow-line);
    transition: background-color .16s;
}

.cantana-flow .flow-offers__item:hover,
.cantana-flow .flow-offers__item.is-active { background: var(--flow-surface-muted); }

.cantana-flow .flow-offers__row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 1.4fr) minmax(80px, .7fr) minmax(130px, 1fr) minmax(100px, .8fr) var(--flow-offers-action) 40px;
    grid-template-areas: "offer req net status action chev";
    align-items: center;
    column-gap: 16px;
    padding: 16px 24px;
}

.cantana-flow .flow-offers__row--head {
    padding-top: 12px;
    padding-bottom: 12px;
    background: var(--flow-surface-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--flow-muted);
}

.cantana-flow .flow-offers__offer { grid-area: offer; }
.cantana-flow .flow-offers__req { grid-area: req; }
.cantana-flow .flow-offers__net { grid-area: net; }
.cantana-flow .flow-offers__status { grid-area: status; justify-self: start; }
.cantana-flow .flow-offers__action { grid-area: action; }
.cantana-flow .flow-offers__chev { grid-area: chev; justify-self: end; }
.cantana-flow .flow-offers__more { grid-area: more; display: none; }

/* Die ganze Zeile öffnet das Panel: Klickfläche des ersten Knopfs über die Zeile
   gestreckt, „Angebot annehmen“ und der Pfeil liegen darüber. */
.cantana-flow .flow-offers button.flow-offers__offer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font: inherit;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    color: inherit;
    cursor: pointer;
}

.cantana-flow .flow-offers__hit {
    position: absolute;
    inset: 0;
}

.cantana-flow .flow-offers button.flow-offers__offer:focus-visible { outline: none; }

.cantana-flow .flow-offers button.flow-offers__offer:focus-visible .flow-offers__hit {
    outline: 2px solid var(--flow-green-deep);
    outline-offset: -2px;
}

.cantana-flow .flow-offers__nr {
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--flow-text);
}

.cantana-flow .flow-offers__date {
    font-size: 14px;
    white-space: nowrap;
    color: var(--flow-muted);
}

.cantana-flow .flow-offers__sub-req { display: none; }

.cantana-flow .flow-offers__req {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cantana-flow .flow-offers__net {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
}

.cantana-flow .flow-offers__row--head > span {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.cantana-flow .flow-offers__row--head .flow-offers__net { display: block; text-align: right; }

.cantana-flow .flow-offers__label {
    display: none;
    font-size: 14px;
    color: var(--flow-muted);
}

.cantana-flow .flow-offers__amount {
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cantana-flow .flow-offers__tax {
    font-size: 13px;
    color: var(--flow-muted);
}

.cantana-flow .flow-offers__action {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.cantana-flow .flow-offers__count {
    display: none;
    font-size: 14px;
    color: var(--flow-muted);
}

.cantana-flow .flow-offers__action .flow-btn {
    min-height: 42px;
    padding: 0 20px;
    white-space: nowrap;
}

/* Runde Symbolknöpfe (Pfeil in der Zeile, Schließen und Download im Panel) */
.cantana-flow button.flow-icon-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 0;
    height: 40px;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: var(--flow-surface);
    border: 1px solid var(--flow-line);
    border-radius: 50%;
    box-shadow: none;
    color: var(--flow-text);
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.cantana-flow button.flow-icon-btn:hover { border-color: var(--flow-green-deep); }

.cantana-flow button.flow-icon-btn:focus-visible {
    outline: 2px solid var(--flow-green-deep);
    outline-offset: 2px;
}

.cantana-flow .flow-offers button.flow-offers__chev {
    position: relative;
    z-index: 1;
    background: transparent;
    border-color: transparent;
}

.cantana-flow .flow-offers__item:hover button.flow-offers__chev {
    background: var(--flow-surface);
    border-color: var(--flow-line);
}

@container offers (max-width: 860px) {
    .cantana-flow .flow-offers__row {
        grid-template-columns: minmax(150px, 1.4fr) minmax(120px, 1fr) minmax(100px, .8fr) var(--flow-offers-action) 40px;
        grid-template-areas: "offer net status action chev";
    }

    .cantana-flow .flow-offers__req { display: none; }
    .cantana-flow .flow-offers__sub-req { display: inline; }
}

@container offers (max-width: 640px) {
    .cantana-flow .flow-offers__box {
        overflow: visible;
        background: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .cantana-flow .flow-offers__row--head { display: none; }

    .cantana-flow .flow-offers__list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .cantana-flow .flow-offers__item {
        overflow: hidden;
        background: var(--flow-surface);
        border: 1px solid var(--flow-line);
        border-radius: var(--flow-radius-card);
        box-shadow: var(--flow-shadow);
    }

    .cantana-flow .flow-offers__item:hover,
    .cantana-flow .flow-offers__item.is-active { background: var(--flow-surface); }

    .cantana-flow .flow-offers__row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "offer  status"
            "net    more"
            "action action";
        row-gap: 14px;
        padding: 18px 20px 0;
    }

    .cantana-flow .flow-offers__nr { font-size: 16px; }
    .cantana-flow .flow-offers__date { white-space: normal; }
    .cantana-flow .flow-offers__status { align-self: start; justify-self: end; }
    .cantana-flow .flow-offers__net { align-items: flex-start; }
    .cantana-flow .flow-offers__label { display: block; }
    .cantana-flow .flow-offers__amount { font-size: 20px; }

    .cantana-flow .flow-offers__more {
        display: inline-flex;
        align-items: center;
        align-self: end;
        gap: 2px;
        font-size: 14px;
        font-weight: 600;
        color: var(--flow-muted);
    }

    .cantana-flow .flow-offers__action {
        justify-content: space-between;
        margin: 0 -20px;
        padding: 10px 12px 10px 20px;
        background: var(--flow-surface-muted);
        border-top: 1px solid var(--flow-line);
    }

    .cantana-flow .flow-offers__count {
        display: block;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .cantana-flow .flow-offers button.flow-offers__chev { display: none; }
}

/* Karten unter der Liste: Team, Google-Bewertung, neues Angebot */
.cantana-flow .flow-trust-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.cantana-flow .flow-trust-grid .flow-team { padding: 24px 28px; }
.cantana-flow .flow-trust-grid__rating { justify-content: center; }
.cantana-flow .flow-trust-grid__new .flow-btn { align-self: flex-start; margin-top: auto; }

.cantana-flow .flow-team__links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin-top: auto;
}

.cantana-flow .flow-team__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    font-size: 15px;
    font-weight: 600;
    color: var(--flow-green-deep);
    text-decoration: none;
}

.cantana-flow .flow-team__links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1199px) {
    .cantana-flow .flow-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cantana-flow .flow-trust-grid .flow-team { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    .cantana-flow .cantana-lookup { gap: 24px; }
    .cantana-flow .flow-offers-head > .flow-btn { display: none; }
    .cantana-flow .flow-trust-grid { grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
    .cantana-flow .flow-trust-grid .flow-team { padding: 20px; }
}

/* Panel rechts: Eckdaten, Positionen, PDF-Download (offer-list.js) */
html.flow-drawer-open { overflow: hidden; }

/* HubSpot-Chat liegt sonst über dem Panel (z-index 2147483647) und verdeckt
   „Angebot annehmen“. Für Fragen gibt es im Panel „Rückfrage“. HubSpot setzt
   display: initial !important nur mit #id, das hier ist spezifischer. */
html.flow-drawer-open #hubspot-messages-iframe-container { display: none !important; }

.cantana-flow .flow-drawer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    justify-content: flex-end;
}

.cantana-flow .flow-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(32 32 32 / 28%);
    animation: flowFadeIn .22s ease both;
}

.cantana-flow .flow-drawer__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(720px, 100%);
    height: 100%;
    background: var(--flow-surface-muted);
    border-left: 1px solid var(--flow-line);
    box-shadow: 0 8px 48px rgb(44 76 53 / 16%);
    outline: none;
    animation: flowDrawerIn .28s cubic-bezier(.25, 0, 0, 1) both;
}

.cantana-flow .flow-drawer__head {
    flex: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 28px 18px;
    background: var(--flow-surface);
    border-bottom: 1px solid var(--flow-line);
}

.cantana-flow .flow-drawer__titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cantana-flow .flow-drawer__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--flow-muted);
}

.cantana-flow .flow-drawer .flow-drawer__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: none;
    overflow-wrap: anywhere;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-drawer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 8px;
    font-size: 14px;
    color: var(--flow-muted);
}

.cantana-flow .flow-drawer__tools {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
}

.cantana-flow .flow-drawer__download.flow-btn {
    min-height: 40px;
    padding: 0 16px;
}

/* Während sevDesk das PDF erzeugt (offer-list.js): Spinner statt Pfeil. Ring
   halbtransparent, damit er auch auf dem hellgrünen Hover-Hintergrund sichtbar bleibt. */
.cantana-flow .flow-drawer__download .flow-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgb(44 76 53 / 22%);
    border-top-color: currentColor;
}

.cantana-flow .flow-drawer__download:not(.is-loading) .flow-spinner,
.cantana-flow .flow-drawer__download.is-loading svg {
    display: none;
}

.cantana-flow .flow-drawer__download.is-loading { cursor: progress; }

.cantana-flow .flow-drawer__download-error {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #b3261e;
}

.cantana-flow .flow-drawer__body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 28px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cantana-flow .flow-drawer__tiles {
    flex: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    background: var(--flow-line);
    border: 1px solid var(--flow-line);
    border-radius: 12px;
}

.cantana-flow .flow-drawer__tiles > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    background: var(--flow-surface);
}

.cantana-flow .flow-drawer__tiles dt {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--flow-muted);
}

.cantana-flow .flow-drawer__tiles dd {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--flow-text);
}

.cantana-flow .flow-drawer__team {
    flex: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--flow-surface);
    border: 1px solid var(--flow-line);
    border-radius: 12px;
    font-size: 14px;
    color: var(--flow-muted);
}

.cantana-flow .flow-drawer__team img {
    flex: none;
    width: auto;
    height: 36px;
}

.cantana-flow .flow-drawer__team strong { color: var(--flow-green-deep); }

.cantana-flow .flow-drawer__items { flex: none; }

.cantana-flow .flow-drawer__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 160px;
    font-size: 15px;
    font-weight: 600;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--flow-green-soft);
    border-top-color: var(--flow-green-deep);
    border-radius: 50%;
    animation: flowSpin .8s linear infinite;
}

.cantana-flow .flow-drawer__items .flow-notice { margin: 20px 28px; }

/* Summen schließen die Positionskarte im Panel ab (auch auf dem Handy, wo .flow-totals
   sonst als eigene Karte unter dem Angebot hängt). */
.cantana-flow .flow-drawer__items .flow-totals {
    margin-top: 0;
    border: 0;
    border-top: 1px solid var(--flow-line);
    border-radius: 0;
    box-shadow: none;
}

.cantana-flow .flow-drawer__items .flow-summary__row--grand > span:last-child {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--flow-green-deep);
}

.cantana-flow .flow-drawer__foot {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 16px;
    padding: 16px 28px;
    background: var(--flow-bar-bg);
    -webkit-backdrop-filter: var(--flow-bar-blur);
    backdrop-filter: var(--flow-bar-blur);
    border-top: 1px solid var(--flow-line);
}

.cantana-flow .flow-drawer__sum {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    color: var(--flow-muted);
}

.cantana-flow .flow-drawer__sum strong {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--flow-text);
}

.cantana-flow .flow-drawer__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
}

@keyframes flowFadeIn { from { opacity: 0; } }
@keyframes flowDrawerIn { from { opacity: 0; transform: translateX(48px); } }
@keyframes flowSpin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
    .cantana-flow .flow-drawer__panel {
        border-left: 0;
        animation-name: flowFadeIn;
    }

    .cantana-flow .flow-drawer__head { padding: 18px 16px 16px 20px; }
    .cantana-flow .flow-drawer .flow-drawer__title { font-size: 24px; }

    /* Download nur als Symbol, der Text bleibt für Screenreader. */
    .cantana-flow .flow-drawer__download.flow-btn {
        width: 40px;
        padding: 0;
        border-radius: 50%;
    }

    .cantana-flow .flow-drawer__download-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .cantana-flow .flow-drawer__body { padding: 20px 16px 28px; }
    .cantana-flow .flow-drawer__items .flow-notice { margin: 16px 18px; }
    .cantana-flow .flow-drawer__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
    .cantana-flow .flow-drawer__actions { flex: 1 1 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    .cantana-flow .cantana-thanks *,
    .cantana-flow .cantana-offer *,
    .cantana-flow .cantana-order * {
        transition: none !important;
    }

    .cantana-flow .cantana-quote *,
    .cantana-flow .cantana-quote *::before,
    .cantana-flow .cantana-lookup *,
    .cantana-flow .cantana-lookup *::after,
    .cantana-flow .flow-drawer * {
        transition: none !important;
        animation: none !important;
    }

    /* Ein stehender Ring sähe nicht nach Laden aus: langsamer, aber er dreht sich. */
    .cantana-flow :is(.cantana-lookup, .flow-drawer) .flow-spinner {
        animation: flowSpin 1.6s linear infinite !important;
    }
}
