Files
Webklar-Kundenbereich/public/funktionen.css
T
ClaudeandClaude Opus 5.5 a9f0711e97 Analyse: Cockpit-Übersicht mit Reitern Übersicht, Heatmap, Einstellungen
analyse.js setzt die Bausteine aus analyse-cards.js zusammen: Kopfleiste mit
Stand und Zeitraum, Reiter (Pfeiltasten), Übersicht mit Ladegerüst und
Fehlerkarte, Diagramm-Blase, Ranglisten-Umschalter, Heatmap erst beim Öffnen
des Reiters, Einstellungen. Einschalten, gesperrt, nicht verfügbar und
unbekannt erscheinen im selben Rahmen, Texte unverändert.

analyse.css (neu) trägt alle Analyse-Regeln unter .an mit eigenem türkisen
Akzent; der Analyse-Abschnitt in funktionen.css entfällt. Der Client-Test des
Banners liest die Banner-Regeln jetzt aus analyse.css.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 21:34:43 +00:00

140 lines
11 KiB
CSS

/* Tab "Funktionen" und News-Pinnwand (funktionen.js). Farben aus den Tokens von kundenbereich.css;
Aufbau des Editors nach dem freigegebenen Entwurf (Art, Felder, Zettelfarben, Live-Vorschau, "Hängt gerade"). */
/* Fortschritt unter Projekte (app.js, loadCustomerActivity) */
.kb-activity { margin-top: 32px; scroll-margin-top: calc(var(--kb-appbar-h, 0px) + 16px); }
.kb-activity h2 { margin: 0 0 14px; font-size: 20px; }
#activity-body { display: grid; gap: 16px; }
#activity-body > .muted { margin: 0; }
.kb-activity-all { justify-self: start; }
/* ------------------------------------------------------------- Kacheln --- */
.fn-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fn-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: 16px; background: var(--kb-surface); border: 1px solid var(--kb-border); }
.fn-tile h3 { margin: 4px 0 0; font-size: 18px; }
.fn-tile p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--kb-muted); }
.fn-tile .fn-count { font-size: 13px; color: var(--kb-lilac); }
.fn-tile-cta { margin-top: auto; }
.fn-tile-soon { opacity: 0.75; }
.fn-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.fn-ico { width: 34px; height: 34px; padding: 7px; box-sizing: border-box; border-radius: 10px; background: var(--kb-purple-soft); fill: none; stroke: var(--kb-lilac); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fn-pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.fn-pill-off, .fn-pill-soon { color: var(--kb-muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--kb-border-strong); }
.fn-pill-setup { color: #fcd34d; background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.4); }
.fn-pill-on { color: #86efac; background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.4); }
/* ------------------------------------------------- Buchung und Status --- */
#view-news .kb-panel { max-width: 640px; }
#view-news .nw .kb-panel { max-width: none; }
#view-news .fn-project { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
.fn-project label { font-size: 13px; font-weight: 600; }
.fn-project select { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--kb-border-strong); background: rgba(255, 255, 255, 0.05); color: inherit; font: inherit; }
.fn-project select option { color: #111; }
.fn-booking p, .fn-status p { margin: 0 0 12px; line-height: 1.55; }
.fn-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.fn-price strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.fn-price span, .fn-estimate { color: var(--kb-muted); font-size: 14px; }
.fn-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.fn-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--kb-purple); }
.fn-thanks { margin: 0 0 16px; padding: 12px 16px; max-width: 640px; border-radius: 12px; font-size: 14px; background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.4); }
.fn-status h3 { margin: 10px 0 8px; }
.fn-facts { display: grid; gap: 10px; margin: 16px 0; }
.fn-facts > div { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fn-facts dt { min-width: 150px; color: var(--kb-muted); font-size: 14px; }
.fn-facts dd { margin: 0; font-weight: 600; }
/* -------------------------------------------------------------- Editor --- */
.nw { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.nw-form { display: grid; gap: 16px; min-width: 0; }
.nw-side { display: grid; gap: 16px; min-width: 0; position: sticky; top: 84px; }
.nw-card h3 { margin: 0 0 16px; }
.nw-step { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kb-lilac); }
.nw-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nw-type {
display: grid; justify-items: center; gap: 8px; padding: 16px 6px 12px; border-radius: 14px; cursor: pointer;
border: 2px solid var(--kb-border-strong); background: transparent; color: inherit; font: inherit; font-weight: 700; font-size: 14px; text-align: center;
}
.nw-type small { font-size: 12px; font-weight: 400; color: var(--kb-muted); }
.nw-type-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--kb-purple-soft); transform: rotate(-3deg); }
.nw-type-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--kb-lilac); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nw-type[aria-pressed="true"] { border-color: var(--kb-purple); background: var(--kb-purple-soft); }
.nw-field { display: grid; gap: 6px; margin-bottom: 18px; }
.nw-field > label { font-size: 13px; font-weight: 600; }
.nw-field input:not([type=file]), .nw-field select, .nw-field textarea {
width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 12px; font: inherit; font-size: 16px;
border: 1px solid var(--kb-border-strong); background: rgba(255, 255, 255, 0.05); color: inherit; resize: vertical;
}
.nw-field select option { color: #111; }
.nw-field input:focus, .nw-field select:focus, .nw-field textarea:focus { outline: none; border-color: var(--kb-purple-line); box-shadow: 0 0 0 3px var(--kb-purple-soft); }
.nw-hint { margin: 0; font-size: 12.5px; color: var(--kb-muted); }
.nw-hint-row { display: flex; justify-content: space-between; gap: 12px; }
.nw-err { margin: 0; font-size: 13px; color: #fca5a5; }
.nw-err:empty { display: none; }
.nw-drop { display: grid; justify-items: center; gap: 12px; padding: 18px 14px; text-align: center; border: 2px dashed var(--kb-purple-line); border-radius: 14px; background: var(--kb-purple-soft); }
.nw-drop-img { width: 100%; }
.nw-drop-img img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; }
.nw-drop-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nw-drop .nw-hint { margin: 0; }
.nw-only-phone { display: none; }
@media (pointer: coarse) { .nw-only-phone { display: inline-flex; } }
.nw-swatches { display: flex; gap: 10px; }
.nw-sw { width: 42px; height: 42px; padding: 0; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.2); cursor: pointer; transform: rotate(-4deg); }
.nw-sw[aria-pressed="true"] { outline: 3px solid #fff; outline-offset: 2px; }
.nw-actions { margin-top: 6px; }
.nw-paper-sun { --paper: #fff6d6; }
.nw-paper-sky { --paper: #ddeffb; }
.nw-paper-coral { --paper: #ffe1d9; }
.nw-paper-white { --paper: #fff; }
.nw-sw, .nw-thumb.nw-paper-sun, .nw-thumb.nw-paper-sky, .nw-thumb.nw-paper-coral, .nw-thumb.nw-paper-white { background: var(--paper); }
/* Vorschau: Papierzettel und Polaroid, dunkler Text auf hellem Papier */
.nw-prev-label { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kb-muted); }
.nw-prev-label i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2); }
#nw-preview { max-width: 380px; margin: 0 auto; color: #232a33; }
.nw-paper { padding: 24px 22px 20px; border-radius: 6px 6px 18px 6px; background: var(--paper, #fff); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); transform: rotate(-1.2deg); }
.nw-paper h4 { margin: 8px 0; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.nw-paper p { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.nw-date { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7684; }
.nw-polaroid { margin: 0; padding: 10px 10px 14px; border-radius: 4px; background: #fff; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4); transform: rotate(-2deg); }
.nw-polaroid img, .nw-ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; background: #e6e9ee; }
.nw-ph { display: grid; place-items: center; color: #8a94a3; font-size: 14px; }
.nw-polaroid figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 10px; }
.nw-polaroid figcaption b { font-size: 16px; overflow-wrap: anywhere; }
.nw-polaroid figcaption span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7684; }
.nw-combo { display: grid; gap: 0; }
.nw-combo .nw-paper { margin: -22px 10px 0 24px; transform: rotate(2deg); position: relative; }
.nw-prev-toggle { display: none; width: 100%; justify-content: center; }
/* Listen */
.nw-lists h3 { margin: 0; font-size: 16px; }
.nw-lists-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.nw-expired-title { margin-top: 22px !important; }
.nw-empty { margin: 8px 0 0; color: var(--kb-muted); font-size: 14px; }
.nw-rows { list-style: none; margin: 0; padding: 0; }
.nw-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 12px 0; border-top: 1px solid var(--kb-border); }
.nw-thumb { width: 46px; height: 46px; flex: none; border-radius: 8px; object-fit: cover; display: grid; place-items: center; color: #232a33; font-weight: 700; }
.nw-row-text { flex: 1 1 140px; min-width: 0; }
.nw-row-text b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-row-text small { color: var(--kb-muted); font-size: 12.5px; }
.nw-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nw-row-actions button, .nw-row-actions select { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--kb-border-strong); background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.nw-row-actions select option { color: #111; }
.nw-row-actions button:hover { background: rgba(255, 255, 255, 0.07); }
.nw-row-actions .nw-del { color: #fca5a5; }
.nw-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.nw-row-err { flex: 1 0 100%; }
@media (max-width: 880px) {
.nw { grid-template-columns: minmax(0, 1fr); }
.nw-side { position: static; }
.nw-prev-toggle { display: flex; }
.nw-prev { display: none; }
.nw-prev.is-open { display: block; }
.nw-side { order: 2; }
.nw-types { gap: 8px; }
.nw-type small { display: none; }
.nw-actions .abo-btn { flex: 1 1 auto; }
.fn-tiles { grid-template-columns: minmax(0, 1fr); }
.fn-facts dt { min-width: 0; flex: 1 0 100%; }
}