203 lines
16 KiB
CSS
203 lines
16 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%; }
|
|
}
|
|
|
|
/* ------------------------------------------------------------- Analyse --- */
|
|
#view-analyse .kb-panel { max-width: none; }
|
|
#view-analyse .an-panel { max-width: 720px; }
|
|
#view-analyse .fn-project { max-width: 640px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
|
|
#view-analyse .kb-panel + .kb-panel { margin-top: 16px; }
|
|
.an-panel p { margin: 0 0 12px; line-height: 1.55; }
|
|
.an-h4 { margin: 18px 0 8px; font-size: 14px; }
|
|
.an-colors { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
|
|
.an-colors input[type=color] { width: 48px; height: 40px; padding: 2px; border-radius: 10px; border: 1px solid var(--kb-border-strong); background: transparent; cursor: pointer; }
|
|
.an-presets { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.an-preset { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--kb-border-strong); cursor: pointer; padding: 0; }
|
|
.an-hint { margin: 10px 0 0; font-size: 13px; color: #fcd34d; }
|
|
/* Banner-Vorschau: gleiche Optik wie der echte Banner (analytics/client/w.js), immer hell */
|
|
.an-bn { margin: 16px 0; padding: 14px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; color: #111; border: 1px solid #d0d0d0; border-radius: 12px; font: 15px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
|
|
.an-bn-text { flex: 1 1 260px; min-width: 0; margin: 0 !important; color: #111 !important; font-size: 15px !important; line-height: 1.45 !important; }
|
|
.an-bn-link { text-decoration: underline; }
|
|
.an-bn-row { display: flex; gap: 10px; flex: none; }
|
|
.an-bn-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 120px; height: 44px; padding: 0 20px; border: 2px solid; border-radius: 8px; font: 600 15px/1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
|
|
|
|
.an-range { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
|
|
.an-tab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--kb-border-strong); background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
|
|
.an-tab.active { background: var(--kb-purple-soft); border-color: var(--kb-purple-line); }
|
|
.an-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
|
|
.an-kpi { padding: 14px 16px; border-radius: 14px; background: var(--kb-surface); border: 1px solid var(--kb-border); min-width: 0; }
|
|
.an-kpi span { display: block; font-size: 13px; color: var(--kb-muted); }
|
|
.an-kpi b { display: block; margin-top: 4px; font-size: 26px; font-variant-numeric: tabular-nums; }
|
|
.an-chart-box { margin-bottom: 16px; }
|
|
.an-chart { display: block; width: 100%; height: auto; }
|
|
.an-grid { stroke: var(--kb-border-strong); stroke-width: 1; }
|
|
.an-axis { fill: var(--kb-muted); font-size: 11px; }
|
|
.an-line { fill: none; stroke: var(--kb-lilac); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
|
|
.an-area { fill: var(--kb-purple-soft); stroke: none; }
|
|
.an-dot { fill: var(--kb-lilac); }
|
|
.an-grid-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
|
|
#view-analyse .an-grid-lists .kb-panel { margin-top: 0; }
|
|
.an-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
|
|
.an-row-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
|
|
.an-row-label { min-width: 0; overflow-wrap: anywhere; }
|
|
.an-row-top b { font-variant-numeric: tabular-nums; }
|
|
.an-bar { height: 6px; margin-top: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
|
|
.an-bar i { display: block; height: 100%; border-radius: 3px; background: var(--kb-purple); }
|
|
.an-note, .an-credit { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--kb-muted); }
|
|
.an-credit { font-size: 11.5px; color: var(--kb-faint); }
|
|
.an-credit a { color: inherit; }
|
|
.an-heat { margin-top: 16px; }
|
|
.an-heat p, .an-off p { margin: 0 0 12px; line-height: 1.55; }
|
|
.an-heat-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
|
|
.an-heat-row label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; flex: 1 1 200px; min-width: 0; }
|
|
.an-heat-row select { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--kb-border-strong); background: rgba(255, 255, 255, 0.05); color: inherit; font: inherit; min-width: 0; }
|
|
.an-heat-row select option { color: #111; }
|
|
.an-off { margin-top: 16px; }
|
|
.an-ghost { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--kb-border-strong); background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
|
|
.an-ghost:hover { background: rgba(255, 255, 255, 0.07); }
|
|
.an-danger { color: #fca5a5; }
|
|
|
|
@media (max-width: 880px) {
|
|
.an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.an-grid-lists { grid-template-columns: minmax(0, 1fr); }
|
|
.an-bn { display: block; margin: 12px 0; padding: 16px; }
|
|
.an-bn-row { flex-direction: column; margin-top: 12px; }
|
|
.an-bn-btn { width: 100%; }
|
|
}
|