Funktionen: Bestellseite und Statuskarten

Terminplaner TP2 C8: public/funktion-bestellen.js mit sicherLink, bestellKoerper,
fortsetzenKoerper, renderBestellen (Zusammenfassung, offene Punkte, Preis,
vollstaendige Widerrufsbelehrung als scrollbarer Text, Unterlagen, Zustimmungs-Haken,
Knopf mit bestellung.consent.knopf) und statusKarte (ordered/setup, Danke).
request() in termine-dom.js behaelt den ganzen Body der Fehlerantwort (err.body),
damit 409 bestellung_offen und fassung_veraltet offen/consent zeigen koennen.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-10-04 21:27:36 +00:00
1 parent 747be432c5
commit 20583424a3
4 files changed
+1051 -2

No files matched your search

+41
View File
@@ -188,6 +188,45 @@
.tm-status { margin: 0; }
.tm-abschnitt details.tm-details { margin-top: 12px; }
/* ---------------------------------------- Bestellseite und Statuskarte (funktion-bestellen.js) --- */
.tm-bestellen > * + * { margin-top: 18px; }
.tm-bestellen h3 { margin-bottom: 0; }
.tm-bestellen h4 { margin: 0 0 6px; font-size: 14.5px; }
.tm-bestellen .tm-abschnitt-text { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }
.tm-bestellen-zusammenfassung { display: grid; gap: 10px; }
.tm-bestellen-gruppe { padding: 12px 14px; border-radius: 12px; background: var(--kb-surface); border: 1px solid var(--kb-border); }
.tm-bestellen-gruppe-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; }
.tm-bestellen-gruppe-kopf h4 { margin: 0; }
.tm-bestellen-gruppe ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.tm-bestellen-gruppe .tm-hinweis { margin-top: 8px; }
.tm-bestellen-offen { padding: 12px 16px; border-radius: 12px; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.45); }
.tm-bestellen-offen ul { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.tm-bestellen-offen li { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; font-size: 14px; line-height: 1.5; }
.tm-bestellen-offen li > span { min-width: 0; overflow-wrap: anywhere; }
.tm-bestellen-betrag { margin: 0 0 4px; font-size: 14px; }
.tm-bestellen-betrag strong { font-size: 22px; }
.tm-bestellen-preis p { margin: 0 0 4px; line-height: 1.5; }
.tm-bestellen-belehrung .tm-hinweis { margin-bottom: 8px; }
.tm-rechtstext {
max-height: 320px; overflow-y: auto; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--kb-border-strong); background: rgba(255, 255, 255, 0.03);
font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere;
}
.tm-rechtstext:focus-visible { outline: 3px solid #d4b4ff; outline-offset: 2px; }
.tm-bestellen-dokumente { display: grid; gap: 6px; margin: 0; padding-left: 18px; font-size: 14px; }
.tm-bestellen-dokumente a { color: var(--kb-lilac); overflow-wrap: anywhere; }
.tm-bestellen-text { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--kb-muted); }
.tm-bestellen-aktion { display: grid; justify-items: start; gap: 8px; }
.tm-bestellen-aktion .tm-fehler { font-size: 14px; line-height: 1.5; }
.tm-bestellen-knopf { padding: 13px 22px; font-size: 15px; }
.tm-statuskarte > * + * { margin-top: 12px; }
.tm-statuskarte h3 { margin: 10px 0 0; }
.tm-statuskarte p { margin: 0; line-height: 1.55; }
.tm-statuskarte .tm-hinweis { font-size: 13.5px; }
.tm-statuskarte .tm-fakten { margin: 0; }
.tm-statuskarte .tm-aktionen { margin-top: 16px; }
.tm-statuskarte a.kb-btn-outline { display: inline-flex; align-items: center; text-decoration: none; }
.tm-danke { padding: 12px 16px; border-radius: 12px; background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.4); font-weight: 600; }
/* ----------------------------------------------------------------- Handy --- */
@media (max-width: 880px), (pointer: coarse) {
#view-termine button:not(.tm-link-knopf), #view-termine .kb-btn-outline, #view-termine .kb-btn-primary { min-height: 44px; }
@@ -218,5 +257,7 @@
.tm-kopf { flex-wrap: wrap; }
.tm-feed { padding: 12px; }
.tm-frage-knoepfe > * { flex: 1 1 auto; }
.tm-bestellen-aktion { justify-items: stretch; }
.tm-rechtstext { max-height: 260px; }
}
@media (prefers-reduced-motion: reduce) { #view-termine * { transition: none !important; animation: none !important; } }