Add booking stack, client deploys, and back-office updates

- deploy/booking: shared Easy!Appointments stack with brand-matched
  wizard (flatpickr recolor, single-tenant provider hide, iframe
  auto-fit height reporter)
- deploy/clients: per-client isolated nginx compose stacks with
  _template scaffold, new-client.sh, and happynails live site
- deploy/backup: smb-db backup script
- n8n: booking-sync workflow; onboarding tweaks
- playbooks: lead-to-customer lifecycle + outreach
- templates: nail-studio landing previews
- backoffice: app/db/init/compose updates

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-14 16:10:15 +02:00
parent 4257bd3e55
commit 156166b4e5
25 changed files with 2900 additions and 23 deletions
+54
View File
@@ -23,6 +23,9 @@ from sheets import Sheets
app = Flask(__name__, static_folder="static", static_url_path="")
CRM_TOKEN = os.environ.get("CRM_API_TOKEN", "")
# Separate read-only token for the public iCal feed (calendar apps can't send
# the basic-auth header, so the feed is gated by this query token instead).
ICS_TOKEN = os.environ.get("ICS_TOKEN", "")
# DB -> Sheets one-way mirror. Postgres is the source of truth; the Sheet is a
# best-effort projection. A mirror failure never fails the DB write.
@@ -270,6 +273,57 @@ def sync_all():
return jsonify({"synced": out})
def _ics_dt(v):
if isinstance(v, datetime):
u = v if v.tzinfo else v.replace(tzinfo=timezone.utc)
return u.astimezone(timezone.utc).strftime("%Y%m%dT%H%M%SZ")
return None
def _ics_esc(t):
return (str(t or "").replace("\\", "\\\\").replace(";", "\\;")
.replace(",", "\\,").replace("\n", "\\n"))
@app.get("/api/bookings.ics")
def bookings_ics():
"""Read-only iCal feed for Apple/Google Calendar subscription. Gated by the
ICS_TOKEN query param (no header auth, so calendar apps can fetch it)."""
if not ICS_TOKEN or request.args.get("token") != ICS_TOKEN:
return Response("forbidden\n", status=403, mimetype="text/plain")
cid = request.args.get("client_id")
with db.connect() as conn, conn.cursor() as cur:
if cid:
cur.execute("SELECT * FROM bookings WHERE client_id = %s ORDER BY start_time", (cid,))
else:
cur.execute("SELECT * FROM bookings ORDER BY start_time")
rows = cur.fetchall()
now = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ")
out = ["BEGIN:VCALENDAR", "VERSION:2.0", "PRODID:-//smb-crm//bookings//DE",
"CALSCALE:GREGORIAN", "METHOD:PUBLISH",
"X-WR-CALNAME:" + _ics_esc("Buchungen " + cid if cid else "Buchungen")]
for r in rows:
st = _ics_dt(r.get("start_time"))
if not st:
continue
summary = r.get("service") or "Termin"
if r.get("customer_name"):
summary += " " + r["customer_name"]
out += ["BEGIN:VEVENT",
"UID:%s@smb-crm" % (r.get("booking_id") or now),
"DTSTAMP:%s" % (_ics_dt(r.get("created_at")) or now),
"DTSTART:%s" % st]
en = _ics_dt(r.get("end_time"))
if en:
out.append("DTEND:%s" % en)
out.append("SUMMARY:" + _ics_esc(summary))
if r.get("customer_contact"):
out.append("DESCRIPTION:" + _ics_esc("Kontakt: " + r["customer_contact"]))
out += ["STATUS:CONFIRMED", "END:VEVENT"]
out.append("END:VCALENDAR")
return Response("\r\n".join(out) + "\r\n", mimetype="text/calendar")
@app.get("/")
def index():
return Response(INDEX_HTML, mimetype="text/html")
+7 -1
View File
@@ -21,7 +21,7 @@ TABLES = {
"cols": ["client_id", "business_name", "owner_name", "email", "phone",
"niche", "tier", "status", "domain", "stack_notes", "vault_ref",
"services", "billing_cycle", "monthly_fee_eur", "start_date",
"renewal_date", "created_at", "notes"],
"renewal_date", "created_at", "notes", "notify_channel"],
"dates": ["start_date", "renewal_date"],
"timestamps": ["created_at"],
"numbers": ["monthly_fee_eur"],
@@ -101,6 +101,12 @@ def parse_ts(v):
if isinstance(v, datetime):
return v
s = str(v).strip()
# ISO-8601 / RFC3339 (incl. trailing Z and +hh:mm offsets — what Google
# Calendar / booking tools emit). fromisoformat handles Z on Python 3.11+.
try:
return datetime.fromisoformat(s.replace("Z", "+00:00"))
except ValueError:
pass
for fmt in ("%Y-%m-%d %H:%M:%S", "%Y-%m-%d %H:%M", "%Y-%m-%dT%H:%M:%S",
"%Y-%m-%dT%H:%M", "%Y-%m-%d"):
try:
+7 -5
View File
@@ -43,11 +43,12 @@
.pillv { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600;
background: var(--teal-soft); color: var(--teal-2); }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.del { background: none; border: 1px solid var(--line); border-radius: 7px; cursor: pointer;
padding: 3px 8px; font-size: .9rem; }
.del:hover { background: #fdecec; border-color: #f3c7c7; }
.actcol { white-space: nowrap; width: 1%; text-align: right; }
.del { background: none; border: 1px solid #e6b9b9; color: #b4322e; border-radius: 7px; cursor: pointer;
padding: 4px 10px; font-size: .8rem; font-weight: 600; }
.del:hover { background: #fdecec; border-color: #e08a86; }
.act { background: none; border: 1px solid var(--line); border-radius: 7px; cursor: pointer;
padding: 3px 8px; font-size: .9rem; margin-right: 4px; }
padding: 4px 10px; font-size: .8rem; font-weight: 600; margin-right: 6px; }
.act:hover { background: var(--teal-soft); border-color: var(--teal); }
.overlay { position: fixed; inset: 0; background: rgba(8,20,19,.5); display: none;
align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 20; overflow: auto; }
@@ -151,7 +152,7 @@
if((c==='received_at'||c==='created_at') && v) v = String(v).replace('T',' ').slice(0,16);
return `<td title="${esc(v)}">${esc(v)}</td>`;
}).join('');
return `<tr>${cells}<td style="white-space:nowrap"><button class="act" title="Bearbeiten" onclick="openForm('${esc(id)}')"></button><button class="del" title="Löschen" onclick="del('${esc(id)}')">🗑</button></td></tr>`;
return `<tr>${cells}<td class="actcol"><button class="act" title="Bearbeiten" onclick="openForm('${esc(id)}')">Bearbeiten</button><button class="del" title="Löschen" onclick="del('${esc(id)}')">Löschen</button></td></tr>`;
}).join('');
document.getElementById('table').innerHTML = `<table><thead>${head}</thead><tbody>${body}</tbody></table>`;
}
@@ -183,6 +184,7 @@
{k:'status',t:'select',opts:['lead','onboarding','active','churned']},
{k:'billing_cycle',t:'select',opts:['monthly','yearly','one-off']},
{k:'monthly_fee_eur'},{k:'domain'},
{k:'notify_channel',t:'select',opts:['calendar','telegram','email','sms','whatsapp']},
{k:'start_date',t:'date'},{k:'renewal_date',t:'date'},
{k:'services',wide:true},{k:'stack_notes',t:'textarea',wide:true},
{k:'vault_ref'},{k:'notes',t:'textarea',wide:true},
+1
View File
@@ -21,6 +21,7 @@ CREATE TABLE IF NOT EXISTS clients (
renewal_date date,
created_at timestamptz,
notes text,
notify_channel text,
updated_at timestamptz NOT NULL DEFAULT now()
);
+1
View File
@@ -24,6 +24,7 @@ services:
environment:
DATABASE_URL: postgresql://smbcrm:${DB_PASSWORD}@smb-db:5432/smbcrm
CRM_API_TOKEN: ${CRM_API_TOKEN}
ICS_TOKEN: ${ICS_TOKEN}
SHEET_ID: ${SHEET_ID}
GOOGLE_SA_JSON: /run/secrets/gcp-sa.json
volumes:
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Daily backup of smb-db (the CRM Postgres = source of truth). Keeps 14 days.
# Installed on the homelab at /home/mivanchenko/backups/bin/ and run via cron.
set -euo pipefail
DEST=/home/mivanchenko/backups/smb-crm
mkdir -p "$DEST"
TS=$(date +%Y%m%d-%H%M%S)
FILE="$DEST/smbcrm-$TS.sql.gz"
# pg_dump runs inside the container; gzip on the host.
docker exec smb-db pg_dump -U smbcrm -d smbcrm | gzip > "$FILE"
# keep the 14 most recent dumps, delete older
ls -1t "$DEST"/smbcrm-*.sql.gz 2>/dev/null | tail -n +15 | xargs -r rm -f
echo "$(date -Is) backup ok: $FILE ($(du -h "$FILE" | cut -f1))"
+3
View File
@@ -0,0 +1,3 @@
# Copy to .env on the homelab and fill with strong secrets (gitignored).
EA_DB_PASSWORD=change-me
EA_DB_ROOT_PASSWORD=change-me-too
+93
View File
@@ -0,0 +1,93 @@
/* ----------------------------------------------------------------------------
* Easy!Appointments - Online Appointment Scheduler
*
* @package EasyAppointments
* @author A.Tselegidis <alextselegidis@gmail.com>
* @copyright Copyright (c) Alex Tselegidis
* @license https://opensource.org/licenses/GPL-3.0 - GPLv3
* @link https://easyappointments.org
* @since v1.5.0
* ---------------------------------------------------------------------------- */
/**
* Booking layout.
*
* This module implements the booking layout functionality.
*/
window.App.Layouts.Booking = (function () {
const $selectLanguage = $('#select-language');
/**
* Initialize the module.
*/
function initialize() {
App.Utils.Lang.enableLanguageSelection($selectLanguage);
}
document.addEventListener('DOMContentLoaded', initialize);
return {};
})();
/* ----------------------------------------------------------------------------
* SMB customisation — auto-fit iframe embed.
*
* EA doesn't report its rendered height, so when embedded in a fixed-height
* iframe the wizard overflows and gets its own scrollbar. Here we measure the
* wizard card and post its height to the parent page, which resizes the iframe
* to fit exactly (see the .booking-embed listener on the client site). Fires on
* load, on step changes, when available hours load, and on resize.
* ---------------------------------------------------------------------------- */
(function () {
function reportHeight() {
var el = document.getElementById('book-appointment-wizard');
var h;
if (el) {
h = Math.ceil(el.getBoundingClientRect().height) + 40; // breathing room
} else if (document.body) {
h = document.body.scrollHeight;
}
if (h && h > 0) {
try {
window.parent.postMessage({ eaBookingHeight: h }, '*');
} catch (e) { /* not embedded / blocked — ignore */ }
}
}
function start() {
if (window.parent === window) {
return; // not in an iframe, nothing to report
}
reportHeight();
var target = document.getElementById('book-appointment-wizard') || document.body;
if (window.ResizeObserver) {
new ResizeObserver(reportHeight).observe(target);
}
if (window.MutationObserver) {
new MutationObserver(reportHeight).observe(target, {
subtree: true,
childList: true,
attributes: true,
});
}
window.addEventListener('resize', reportHeight);
// Catch late async renders (available hours, fade transitions) for a few seconds.
var ticks = 0;
var iv = setInterval(function () {
reportHeight();
if (++ticks > 25) {
clearInterval(iv);
}
}, 250);
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', start);
} else {
start();
}
})();
+70
View File
@@ -0,0 +1,70 @@
# booking/ — self-hosted appointment scheduler (Easy!Appointments) + its DB.
#
# One shared instance serves all clients; each client = a provider/service with
# its own booking-page URL. Lightweight (PHP + MariaDB) to fit the 16 GB box.
# Booking events fire a webhook -> n8n "booking-sync" -> CRM `bookings` + notify.
# Routed by Caddy: booking.mivanchenko.de { reverse_proxy easyappointments:80 }
name: smb-booking
services:
ea-db:
image: mariadb:11
container_name: ea-db
restart: unless-stopped
environment:
MARIADB_DATABASE: easyappointments
MARIADB_USER: ea
MARIADB_PASSWORD: ${EA_DB_PASSWORD}
MARIADB_ROOT_PASSWORD: ${EA_DB_ROOT_PASSWORD}
volumes:
- ea-db-data:/var/lib/mysql
networks: [booking-net]
mem_limit: 512m
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 6
easyappointments:
image: alextselegidis/easyappointments:latest
container_name: easyappointments
restart: unless-stopped
environment:
BASE_URL: https://booking.mivanchenko.de
DEBUG_MODE: "FALSE"
DB_HOST: ea-db
DB_NAME: easyappointments
DB_USERNAME: ea
DB_PASSWORD: ${EA_DB_PASSWORD}
# Email is optional — booking notifications go via webhook -> n8n. Fill to
# also send customers EA's own confirmation emails.
MAIL_PROTOCOL: mail
MAIL_FROM_ADDRESS: info@booking.mivanchenko.de
MAIL_FROM_NAME: Buchung
volumes:
# Brand-matched booking wizard: recolours the flatpickr datepicker to the
# client's --bs-primary and compacts the layout so the embed fits its
# iframe without an outer scrollbar. (Wizard chrome colour itself comes
# from the EA "company colour" setting.) Re-sync from upstream on EA upgrade.
# NOTE: production (DEBUG_MODE=FALSE) serves the .min.* bundles, so those
# are the ones that must be overridden — the plain files are dev-only.
- ./frontend.css:/var/www/html/assets/css/frontend.css:ro
- ./frontend.css:/var/www/html/assets/css/frontend.min.css:ro
# Reports the wizard's rendered height to the embedding page so the iframe
# auto-fits to its content (no inner scrollbar). Re-sync on EA upgrade.
- ./booking_layout.js:/var/www/html/assets/js/layouts/booking_layout.js:ro
- ./booking_layout.js:/var/www/html/assets/js/layouts/booking_layout.min.js:ro
depends_on:
ea-db:
condition: service_healthy
networks: [booking-net, proxy] # proxy: reached by Caddy as easyappointments:80
mem_limit: 256m
volumes:
ea-db-data:
networks:
booking-net:
proxy:
external: true
+155
View File
@@ -0,0 +1,155 @@
/* ----------------------------------------------------------------------------
* Easy!Appointments - Online Appointment Scheduler
*
* @package EasyAppointments
* @author A.Tselegidis <alextselegidis@gmail.com>
* @copyright Copyright (c) Alex Tselegidis
* @license https://opensource.org/licenses/GPL-3.0 - GPLv3
* @link https://easyappointments.org
* @since v1.5.0
* ---------------------------------------------------------------------------- */
/* Responsive booking wizard styles (rounded corners and shadow on md+ screens) */
@media (min-width: 768px) {
#book-appointment-wizard {
border-radius: var(--bs-border-radius) !important;
box-shadow: var(--bs-box-shadow-sm) !important;
}
}
/* Active step indicator - dynamic state that changes via JavaScript */
#book-appointment-wizard .book-step.active-step {
height: 45px !important;
width: 45px !important;
background: var(--bs-white) !important;
padding: 7px !important;
margin-right: 13px !important;
margin-top: 0 !important;
}
#book-appointment-wizard .book-step.active-step strong {
color: var(--bs-primary) !important;
font-size: 21px !important;
}
/* Inactive step indicator - ensures consistent styling when step becomes inactive */
#book-appointment-wizard .book-step:not(.active-step) {
height: 35px !important;
width: 35px !important;
background: rgba(0, 0, 0, 0.2) !important;
padding: 8px !important;
margin-right: 12px !important;
margin-top: 6px !important;
}
#book-appointment-wizard .book-step:not(.active-step) strong {
color: rgba(255, 255, 255, 0.5) !important;
font-size: 12px !important;
}
/* Selected hour button state */
#book-appointment-wizard #available-hours .available-hour {
margin-bottom: 10px;
}
#book-appointment-wizard #available-hours .selected-hour {
background-color: var(--bs-primary) !important;
border-color: var(--bs-primary) !important;
color: var(--bs-white) !important;
}
/* Captcha refresh icon hover effect */
#book-appointment-wizard .captcha-title .fa-sync-alt {
cursor: pointer;
transition: all 0.3s linear;
}
#book-appointment-wizard .captcha-title .fa-sync-alt:hover {
color: var(--bs-primary);
}
/* Language popover list */
.popover .popover-title {
text-align: center;
}
.popover .popover-content #language-list .language {
margin: 15px 0;
}
#book-appointment-wizard .flatpickr-calendar.inline {
margin: auto;
}
/* ============================================================================
* SMB customisation — match the client's landing-page brand (rose/blush) and
* make the embed fit its iframe without an outer scrollbar.
* The brand colour follows --bs-primary, which is set per-instance by the EA
* "company colour" setting (Settings → Business → Company colour), so this file
* stays client-agnostic. Only the flatpickr datepicker + compact sizing live here.
* ============================================================================ */
/* --- Flatpickr datepicker: recolour the green (material_green) theme to brand --- */
.flatpickr-calendar .flatpickr-months .flatpickr-month,
.flatpickr-calendar .flatpickr-weekdays,
.flatpickr-calendar span.flatpickr-weekday,
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
background: var(--bs-primary) !important;
color: #fff !important;
fill: #fff !important;
}
.flatpickr-calendar .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-day.selected:hover,
.flatpickr-calendar .flatpickr-day.selected:focus,
.flatpickr-calendar .flatpickr-day.startRange,
.flatpickr-calendar .flatpickr-day.endRange {
background: var(--bs-primary) !important;
border-color: var(--bs-primary) !important;
color: #fff !important;
}
.flatpickr-calendar .flatpickr-day.today {
border-color: var(--bs-primary) !important;
}
.flatpickr-calendar .flatpickr-day.today:hover,
.flatpickr-calendar .flatpickr-day.today:focus {
background: var(--bs-primary) !important;
border-color: var(--bs-primary) !important;
color: #fff !important;
}
/* --- Single-tenant embed: the provider is pinned per site via ?provider=<id>,
* so the customer must never see or switch it (booking a different studio on
* e.g. happynails.mivanchenko.de would be wrong). EA's JS un-hides the
* provider control when a service is chosen, so we force it hidden here.
* The <select> keeps its value (set from the URL param), so booking works. --- */
#book-appointment-wizard #select-provider,
#book-appointment-wizard label[for="select-provider"] {
display: none !important;
}
#book-appointment-wizard .mb-3:has(> #select-provider) {
display: none !important;
}
/* --- Compact vertical rhythm so the wizard fits the embed height (no scroll) --- */
#book-appointment-wizard #header {
padding-top: 1rem !important;
padding-bottom: 1rem !important;
}
#book-appointment-wizard .frame-title {
margin-top: 1.25rem !important;
margin-bottom: 1.25rem !important;
}
#book-appointment-wizard #available-hours {
max-height: 232px;
}
/* Trim the outer wizard container padding a touch on larger screens */
@media (min-width: 768px) {
#book-appointment-wizard .frame-content {
padding-top: 0.5rem !important;
padding-bottom: 1rem !important;
}
}
+46
View File
@@ -0,0 +1,46 @@
# clients/ — one isolated stack per business client
Each signed client gets their **own Compose project** (`smb-client-<slug>`) running a
single lightweight `nginx:alpine` container that serves *their* static site on *their*
domain. Clients are fully separated: independent lifecycle, logs, and removal; no shared
container or state. Booking and lead data still flow into the **shared CRM** (Postgres
source of truth) via the n8n webhooks baked into each client's page.
## Why a container per client (not one shared host)
- **Isolation** — update / restart / remove one client without touching any other.
- **Clean billing & offboarding** — `docker compose down` removes exactly that client.
- **Cheap** — static nginx idles at a few MB; capped at 64 MB each, so dozens fit the 16 GB box.
## Layout
```
deploy/clients/
├── _template/ # DON'T deploy — the source template
│ ├── docker-compose.yml (name: smb-client-${CLIENT_SLUG})
│ ├── .env.example
│ └── site/index.html
├── new-client.sh # scaffolds a client folder from _template/
└── <slug>/ # one folder per real client (created by the script)
├── docker-compose.yml
├── .env (CLIENT_SLUG, CLIENT_DOMAIN)
└── site/ (the client's branded page)
```
## Add a client
```bash
cd deploy/clients
./new-client.sh happynails happynails.de ../../templates/landing/preview-happynails
```
Then follow the printed steps: add the Caddy block + reload, point DNS, and `docker compose up -d`
on the homelab. Each client lives at `/home/mivanchenko/clients/<slug>/` on the box.
## How this fits the whole system (compose groups)
```
edge/ caddy → TLS, routing, basic-auth (one, shared)
automation/ n8n (+ postgres, redis) → n8n.mivanchenko.de (one, shared)
crm/ smb-db + smb-crm → onboard.mivanchenko.de/crm (one, shared)
demos/ smb-demos → demos.mivanchenko.de (prospect previews)
clients/ smb-client-<slug> × N → each client's domain (one per client) ← this dir
```
Shared infra (edge / automation / crm) stays single; only the client-facing sites multiply,
one isolated stack each. Previews for *prospects* stay in `demos/` until they sign — then
scaffold them a real isolated stack here.
+7
View File
@@ -0,0 +1,7 @@
# One per client. Copy to .env and fill (new-client.sh does this for you).
CLIENT_SLUG=happynails # lowercase, no spaces — used for the Compose project + container name
CLIENT_DOMAIN=happynails.de # the domain / subdomain Caddy serves for this client
# --- reference only (NOT injected; the site/ HTML is static) ---
# CLIENT_NAME=Happy Nails Nürnberg
# BOOKING_URL=https://calendar.app.google/xxxxxxxx # bake into site/index.html during onboarding
@@ -0,0 +1,30 @@
# Per-client stack — ONE isolated static-site container per business client.
#
# Each client is its own Compose project (name: smb-client-<slug>), so they
# start / stop / update / remove fully independently and never share state.
# Booking is handled by the client's own Google Calendar Appointment Schedule
# (no container), and leads/bookings flow into the shared CRM via the n8n
# webhooks baked into the client's page — so this stack only serves the site.
#
# Don't edit this file per client. Copy the folder with ../new-client.sh, which
# fills .env (CLIENT_SLUG, CLIENT_DOMAIN) and seeds site/.
name: smb-client-${CLIENT_SLUG}
services:
site:
image: nginx:1.27-alpine
container_name: client-${CLIENT_SLUG}
restart: unless-stopped
volumes:
- ./site:/usr/share/nginx/html:ro
networks: [proxy] # shared with Caddy; reached as client-<slug>:80
mem_limit: 64m # static nginx idles at a few MB; cap keeps the 16 GB box safe
logging:
driver: json-file
options:
max-size: "5m"
max-file: "3"
networks:
proxy:
external: true
+22
View File
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Platzhalter — Kundenseite</title>
<style>
body { font-family: system-ui, sans-serif; background: #fdf6f4; color: #3b2a2e;
display: grid; place-items: center; min-height: 100vh; margin: 0; text-align: center; }
.box { max-width: 520px; padding: 32px; }
code { background: #f1e1de; padding: 2px 6px; border-radius: 5px; }
</style>
</head>
<body>
<div class="box">
<h1>Platzhalter-Kundenseite</h1>
<p>Dieser isolierte Client-Stack läuft. Ersetzen Sie den Inhalt von <code>site/</code> mit
der gebrandeten Seite des Kunden (z. B. geklont aus <code>templates/landing/…</code>),
tragen Sie den Google-Terminbuchungs-Link ein und deployen Sie neu.</p>
</div>
</body>
</html>
+7
View File
@@ -0,0 +1,7 @@
# One per client. Copy to .env and fill (new-client.sh does this for you).
CLIENT_SLUG=happynails # lowercase, no spaces — used for the Compose project + container name
CLIENT_DOMAIN=happynails.de # the domain / subdomain Caddy serves for this client
# --- reference only (NOT injected; the site/ HTML is static) ---
# CLIENT_NAME=Happy Nails Nürnberg
# BOOKING_URL=https://calendar.app.google/xxxxxxxx # bake into site/index.html during onboarding
@@ -0,0 +1,30 @@
# Per-client stack — ONE isolated static-site container per business client.
#
# Each client is its own Compose project (name: smb-client-<slug>), so they
# start / stop / update / remove fully independently and never share state.
# Booking is handled by the client's own Google Calendar Appointment Schedule
# (no container), and leads/bookings flow into the shared CRM via the n8n
# webhooks baked into the client's page — so this stack only serves the site.
#
# Don't edit this file per client. Copy the folder with ../new-client.sh, which
# fills .env (CLIENT_SLUG, CLIENT_DOMAIN) and seeds site/.
name: smb-client-${CLIENT_SLUG}
services:
site:
image: nginx:1.27-alpine
container_name: client-${CLIENT_SLUG}
restart: unless-stopped
volumes:
- ./site:/usr/share/nginx/html:ro
networks: [proxy] # shared with Caddy; reached as client-<slug>:80
mem_limit: 64m # static nginx idles at a few MB; cap keeps the 16 GB box safe
logging:
driver: json-file
options:
max-size: "5m"
max-file: "3"
networks:
proxy:
external: true
+434
View File
@@ -0,0 +1,434 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Happy Nails Nürnberg — Nagelstudio | Termin online buchen</title>
<meta name="description" content="Maniküre, Gel- & Shellac-Nägel und individuelles Nageldesign in Nürnberg. Jetzt bequem online einen Termin buchen." />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap" rel="stylesheet" />
<style>
:root {
--bg: #fdf6f4;
--bg-2: #f8e9e5;
--card: #ffffff;
--ink: #3b2a2e;
--muted: #9a8589;
--gold: #c77f93;
--gold-2: #e0a7b6;
--line: #f1e1de;
--radius: 16px;
--shadow: 0 18px 50px rgba(180,120,130,.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
background: var(--bg); color: var(--ink);
line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Playfair Display', Georgia, serif; letter-spacing: .2px; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, 92vw); margin-inline: auto; }
section { padding: 92px 0; }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: .72rem; }
/* demo ribbon */
.demo-bar {
background: repeating-linear-gradient(45deg, #f6ddd6, #f6ddd6 12px, #f9e7e2 12px, #f9e7e2 24px);
color: #a05468; font-size: .76rem; letter-spacing: 1.5px; text-transform: uppercase;
text-align: center; padding: 7px 12px; border-bottom: 1px solid var(--line);
}
/* nav */
header.nav { position: sticky; top: 0; z-index: 50; background: rgba(253,246,244,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 700; letter-spacing: .5px; }
.brand span { color: var(--gold); }
nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
nav a { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
nav a:hover { color: var(--ink); }
.btn {
display: inline-block; background: linear-gradient(180deg, var(--gold-2), var(--gold));
color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 999px;
border: 0; cursor: pointer; font-size: .95rem; transition: transform .15s, box-shadow .2s;
box-shadow: 0 8px 22px rgba(199,127,147,.32);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(199,127,147,.45); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.6rem; cursor: pointer; }
/* hero */
.hero { position: relative; background:
linear-gradient(rgba(253,246,244,.40), rgba(253,246,244,.78)),
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='%23fbeae5'/%3E%3Ccircle cx='20' cy='20' r='1.4' fill='%23f0cdc5'/%3E%3C/svg%3E");
border-bottom: 1px solid var(--line); }
.hero-inner { padding: 96px 0 104px; max-width: 720px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 14px 0 6px; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { color: var(--muted); font-size: 1.18rem; max-width: 540px; margin: 18px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-meta b { color: var(--ink); }
/* services */
.sec-head { max-width: 620px; margin-bottom: 46px; }
.sec-head h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-top: 8px; }
.sec-head p { color: var(--muted); margin-top: 10px; }
.grid { display: grid; gap: 18px; }
.services { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .18s, border-color .2s; box-shadow: 0 6px 18px rgba(180,120,130,.06); }
.svc:hover { transform: translateY(-4px); border-color: var(--gold); }
.svc .ic { font-size: 1.8rem; }
.svc h3 { font-size: 1.45rem; margin: 14px 0 6px; }
.svc p { color: var(--muted); font-size: .92rem; min-height: 42px; }
.svc .price { color: var(--gold); font-weight: 700; font-size: 1.05rem; margin-top: 12px; font-family: 'Inter'; }
/* booking */
.booking { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.booking-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.booking-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.gcal-head { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.gcal-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #4caf7d; box-shadow: 0 0 0 3px rgba(76,175,125,.18); margin-right: 12px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { text-align: center; padding: 11px 6px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: .9rem; cursor: pointer; transition: .15s; background: #fdf3f1; }
.slot:hover { border-color: var(--gold); color: var(--gold); }
.slot.off { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.booking ul.points { list-style: none; display: grid; gap: 14px; margin: 22px 0 28px; }
.booking ul.points li { padding-left: 30px; position: relative; color: var(--muted); }
.booking ul.points li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.booking-embed { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
/* Fixed height so the embedded booking wizard fits without its own scrollbar.
The wizard's brand colour + compact layout are handled server-side (EA). */
.booking-embed iframe { width: 100%; height: 760px; min-height: 0; border: 0; border-radius: 10px; display: block; background: #fff; }
@media (max-width: 800px) { .booking-embed iframe { height: 1180px; } }
/* hours / about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.hours td:last-child { text-align: right; color: var(--ink); font-weight: 500; }
/* contact */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
form.lead { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 560px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
width: 100%; background: #fdf3f1; border: 1px solid var(--line); border-radius: 9px;
color: var(--ink); padding: 12px 14px; font: inherit; font-size: .95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.toast { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 9px; background: #eef9ef; border: 1px solid #cdeccf; color: #3b7a44; font-size: .9rem; }
/* footer */
footer { padding: 54px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer .brand { color: var(--ink); }
@media (max-width: 820px) {
nav ul { display: none; }
.nav-toggle { display: block; }
nav.open ul { display: flex; position: absolute; inset: 68px 0 auto 0; flex-direction: column; background: var(--bg-2); padding: 18px 6vw; gap: 18px; border-bottom: 1px solid var(--line); }
.booking-grid, .split { grid-template-columns: 1fr; }
section { padding: 64px 0; }
}
</style>
</head>
<body>
<header class="nav">
<div class="wrap nav-inner">
<a href="#top" class="brand">HAPPY<span>NAILS</span></a>
<nav id="nav">
<ul>
<li><a href="#leistungen">Leistungen</a></li>
<li><a href="#buchen">Termin buchen</a></li>
<li><a href="#zeiten">Öffnungszeiten</a></li>
<li><a href="#kontakt">Kontakt</a></li>
<li><a href="#buchen" class="btn">Termin buchen</a></li>
</ul>
</nav>
<button class="nav-toggle" aria-label="Menü" onclick="document.getElementById('nav').classList.toggle('open')"></button>
</div>
</header>
<main id="top">
<!-- HERO -->
<section class="hero" id="hero">
<div class="wrap hero-inner">
<span class="eyebrow">Nagelstudio · Nürnberg</span>
<h1>Schöne Nägel.<br><em>Zum Wohlfühlen.</em></h1>
<p>Maniküre, Gel- &amp; Shellac-Nägel und individuelles Nageldesign — mit Liebe und ruhiger Hand gemacht. Sichern Sie sich Ihren Termin in 30 Sekunden online.</p>
<div class="hero-cta">
<a href="#buchen" class="btn">Termin online buchen</a>
<!-- Telefonnummer aus dem öffentlichen Instagram-Profil — bitte vor dem Versand prüfen. -->
<a href="tel:+4917667426558" class="btn ghost">☎ 0176 6742 6558</a>
</div>
<div class="hero-meta">
<span><b>4,9</b> · Top bewertet</span>
<span>💅 Liebe zum Detail</span>
<span>📍 Mitten in Nürnberg</span>
</div>
</div>
</section>
<!-- SERVICES -->
<section id="leistungen">
<div class="wrap">
<div class="sec-head">
<span class="eyebrow">Leistungen</span>
<h2>Was wir für Sie tun</h2>
<p>Faire Preise, gepflegte Atmosphäre — und ein Ergebnis, das man gerne herzeigt.</p>
</div>
<div class="grid services">
<article class="svc"><div class="ic">💅</div><h3>Maniküre</h3><p>Pflege, Form und Lack für gepflegte, natürliche Hände.</p><div class="price">ab 25 €</div></article>
<article class="svc"><div class="ic"></div><h3>Gel- &amp; Shellac-Nägel</h3><p>Langanhaltend, glänzend und in Ihrer Wunschfarbe.</p><div class="price">ab 45 €</div></article>
<article class="svc"><div class="ic">🦶</div><h3>Pediküre</h3><p>Wohltuende Fußpflege — entspannt und gründlich.</p><div class="price">ab 35 €</div></article>
<article class="svc"><div class="ic">🎨</div><h3>Nageldesign &amp; Nail Art</h3><p>Individuelle Designs, French, Steinchen, Muster — ganz nach Wunsch.</p><div class="price">ab 5 € / Nagel</div></article>
</div>
</div>
</section>
<!-- BOOKING -->
<section class="booking" id="buchen">
<div class="wrap">
<div class="sec-head" style="margin-bottom:28px;">
<span class="eyebrow">Termin buchen</span>
<h2>Wählen Sie Ihren Termin.</h2>
<p>Buchen Sie direkt hier rund um die Uhr — sofortige Bestätigung, automatische Erinnerung am Vortag, kein Hin und Her per DM.</p>
</div>
<!-- Online-Terminbuchung: eingebettete Self-hosted-Buchung (Easy!Appointments). -->
<div class="booking-embed">
<iframe id="booking-frame" src="https://booking.mivanchenko.de/index.php/booking?provider=4"
title="Online-Terminbuchung" loading="lazy"></iframe>
</div>
<!-- Buchungs-iframe an seinen Inhalt anpassen (kein Scrollbalken). -->
<script>
(function () {
var frame = document.getElementById('booking-frame');
window.addEventListener('message', function (e) {
if (e.origin !== 'https://booking.mivanchenko.de') return;
var h = e.data && e.data.eaBookingHeight;
if (frame && typeof h === 'number' && h > 200) {
frame.style.height = h + 'px';
}
});
})();
</script>
</div>
</section>
<!-- HOURS / ABOUT -->
<section id="zeiten">
<div class="wrap split">
<div>
<span class="eyebrow">Über uns</span>
<h2 style="font-size:clamp(2rem,4.5vw,2.8rem);margin:8px 0 14px;">Ihr Wohlfühl-Moment in Nürnberg.</h2>
<p style="color:var(--muted)">Bei Happy Nails nehmen wir uns Zeit für Sie. In ruhiger, gepflegter Atmosphäre kümmern wir uns um Ihre Hände und Füße — sorgfältig, hygienisch und mit einem Auge fürs Detail. Kommen Sie vorbei und gönnen Sie sich eine kleine Auszeit.</p>
</div>
<div>
<span class="eyebrow">Öffnungszeiten</span>
<!-- Platzhalter-Zeiten — in der Live-Version durch die echten Zeiten ersetzen. -->
<table class="hours" style="margin-top:14px;">
<tr><td>Dienstag Freitag</td><td>09:30 19:00</td></tr>
<tr><td>Samstag</td><td>09:00 16:00</td></tr>
<tr><td>Sonntag &amp; Montag</td><td>geschlossen</td></tr>
</table>
<p class="form-note" style="margin-top:16px;">📍 Nürnberg · genaue Adresse in der Live-Version</p>
</div>
</div>
</section>
<!-- CONTACT / LEAD FORM -->
<section class="contact" id="kontakt">
<div class="wrap">
<div class="sec-head">
<span class="eyebrow">Kontakt</span>
<h2>Frage stellen oder Rückruf anfordern</h2>
<p>Schreiben Sie uns kurz — wir melden uns am selben Tag.</p>
</div>
<!-- Demo: dieses Formular postet an einen n8n-Webhook -> CRM (Leads) + Telegram. -->
<form class="lead" onsubmit="return submitLead(event, this)">
<input type="hidden" name="client_id" value="C-0002" />
<input type="hidden" name="source" value="happynails-site" />
<div class="field"><label for="a-name">Name</label><input id="a-name" name="name" type="text" placeholder="Ihr Name" required /></div>
<div class="field"><label for="a-contact">E-Mail oder Telefon</label><input id="a-contact" name="contact" type="text" placeholder="name@example.de" required /></div>
<div class="field"><label for="a-svc">Gewünschte Leistung</label>
<select id="a-svc" name="service"><option>Maniküre</option><option>Gel- &amp; Shellac-Nägel</option><option>Pediküre</option><option>Nageldesign &amp; Nail Art</option><option>Auffüllen / Refill</option><option>Sonstiges</option></select>
</div>
<div class="field"><label for="a-msg">Nachricht (optional)</label><textarea id="a-msg" name="message" rows="3" placeholder="Wunschtermin, Frage, …"></textarea></div>
<button class="btn" type="submit">Anfrage senden</button>
<div class="toast">✓ Danke! Ihre Anfrage ist eingegangen — wir melden uns.</div>
<p class="form-note">Mit dem Absenden stimmen Sie der Verarbeitung Ihrer Angaben zur Kontaktaufnahme zu.</p>
</form>
</div>
</section>
</main>
<footer>
<div class="wrap foot-grid">
<div>
<div class="brand">HAPPY<span style="color:var(--gold)">NAILS</span></div>
<p style="margin-top:8px;">Nagelstudio · Nürnberg</p>
</div>
<div>
<p><b style="color:var(--ink)">Öffnungszeiten</b></p>
<p>DiFr 09:3019 · Sa 0916</p>
</div>
<div>
<p><b style="color:var(--ink)">Kontakt</b></p>
<p>0176 6742 6558 · @happynailsnuernberg</p>
</div>
</div>
<div class="wrap" style="margin-top:30px;opacity:.6;font-size:.8rem;">© 2026 Happy Nails Nürnberg · Impressum · Datenschutz</div>
</footer>
<script>
// Lead-Formular -> n8n Webhook -> CRM (Leads) + Telegram-Benachrichtigung.
const LEAD_WEBHOOK = 'https://n8n.mivanchenko.de/webhook/lead-intake';
async function submitLead(e, form) {
e.preventDefault();
const btn = form.querySelector('button[type=submit]');
const toast = form.querySelector('.toast');
const data = Object.fromEntries(new FormData(form).entries());
const old = btn.textContent;
btn.disabled = true; btn.textContent = 'Senden…';
try {
const r = await fetch(LEAD_WEBHOOK, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(data),
});
if (!r.ok) throw new Error(r.status);
toast.textContent = '✓ Danke! Ihre Anfrage ist eingegangen — wir melden uns.';
toast.style.display = 'block';
form.reset();
} catch (err) {
toast.textContent = '⚠ Senden fehlgeschlagen — bitte erneut versuchen oder direkt anrufen.';
toast.style.display = 'block';
} finally {
btn.disabled = false; btn.textContent = old;
}
return false;
}
</script>
<script>
// Keep the demo booking header on today's date so the example never looks stale.
(function () {
const M = ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'];
const t = new Date();
const el = document.getElementById('bookDate');
if (el) el.textContent = 'heute, ' + t.getDate() + '. ' + M[t.getMonth()];
})();
</script>
<script>window.CB_CTX = { client_id: "C-0002", source: "happynails-site-callback" };</script>
<!-- ===== Rückruf-Widget (lead capture popup) ===== -->
<style>
.cb-fab { position: fixed; right: 18px; bottom: 18px; z-index: 900; background: var(--gold); color: #fff; border: 0; border-radius: 999px; padding: 13px 20px; font: 600 .95rem system-ui, -apple-system, Segoe UI, Roboto, sans-serif; box-shadow: 0 10px 26px rgba(199,127,147,.32); cursor: pointer; transition: transform .15s, background .2s; }
.cb-fab:hover { transform: translateY(-2px); background: #b56a80; }
.cb-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(60,30,40,.45); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 18px; }
.cb-overlay.open { display: flex; }
.cb-modal { position: relative; width: min(440px, 100%); background: #fff; color: #3b2a2e; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.30); padding: 28px 26px 22px; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; max-height: 92vh; overflow: auto; animation: cbIn .18s ease; }
@keyframes cbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cb-modal h3 { margin: 0 0 4px; font-size: 1.35rem; }
.cb-sub { margin: 0 0 18px; color: #9a8589; font-size: .9rem; }
.cb-x { position: absolute; top: 10px; right: 13px; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: #c9b3b7; cursor: pointer; }
.cb-x:hover { color: #3b2a2e; }
.cb-modal label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 13px; }
.cb-modal label .o { color: #b6a3a7; font-weight: 400; }
.cb-modal input, .cb-modal textarea { width: 100%; margin-top: 5px; font: inherit; font-size: .94rem; color: #3b2a2e; background: #fdf3f1; border: 1px solid #f1e1de; border-radius: 9px; padding: 10px 12px; resize: vertical; }
.cb-modal input:focus, .cb-modal textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.cb-submit { width: 100%; margin-top: 4px; background: var(--gold); color: #fff; border: 0; border-radius: 999px; padding: 13px; font: 600 1rem system-ui; cursor: pointer; transition: background .2s; }
.cb-submit:hover { background: #b56a80; }
.cb-submit:disabled { opacity: .6; cursor: default; }
.cb-toast { display: none; margin-top: 14px; padding: 11px 13px; border-radius: 9px; font-size: .88rem; font-weight: 500; }
.cb-toast.ok { background: #eef9ef; color: #3b7a44; border: 1px solid #cdeccf; }
.cb-toast.err { background: #fdecec; color: #9b2226; border: 1px solid #f3c7c7; }
.cb-open { margin-left: 10px; background: rgba(160,84,104,.10); color: inherit; border: 1px solid rgba(160,84,104,.30); border-radius: 999px; padding: 3px 13px; font: 600 .74rem system-ui; cursor: pointer; letter-spacing: .4px; vertical-align: middle; }
.cb-open:hover { background: rgba(160,84,104,.20); }
@media (max-width: 560px) { .cb-fab { right: 12px; bottom: 12px; padding: 11px 17px; } }
</style>
<button class="cb-fab" type="button" onclick="cbOpen()" aria-label="Rückruf anfordern">📞 Rückruf</button>
<div class="cb-overlay" id="cbOverlay" onclick="cbBg(event)">
<div class="cb-modal" role="dialog" aria-modal="true" aria-labelledby="cbTitle">
<button class="cb-x" type="button" onclick="cbClose()" aria-label="Schließen">&times;</button>
<h3 id="cbTitle">Rückruf anfordern</h3>
<p class="cb-sub">Name &amp; Nummer genügen — wir melden uns bei Ihnen. Alles andere ist optional.</p>
<form onsubmit="return cbSubmit(event, this)">
<input type="hidden" name="client_id" />
<input type="hidden" name="source" />
<label>Name *
<input name="name" required autocomplete="name" placeholder="Vor- und Nachname" />
</label>
<label>Telefon *
<input name="phone" required autocomplete="tel" inputmode="tel" placeholder="+49 …" />
</label>
<label>Gewünschte Leistung <span class="o">(optional)</span>
<input name="service" placeholder="Maniküre, Gelnägel, Pediküre …" />
</label>
<label>Nachricht <span class="o">(optional)</span>
<textarea name="message" rows="2" placeholder="Worum geht es?"></textarea>
</label>
<button class="cb-submit" type="submit">Rückruf anfordern</button>
<div class="cb-toast" id="cbToast"></div>
</form>
</div>
</div>
<script>
const CB_WEBHOOK = 'https://n8n.mivanchenko.de/webhook/lead-intake';
const cbCtx = window.CB_CTX || { client_id: 'PREVIEW', source: 'callback' };
function cbOpen() {
const o = document.getElementById('cbOverlay');
o.querySelector('[name=client_id]').value = cbCtx.client_id;
o.querySelector('[name=source]').value = cbCtx.source;
o.classList.add('open');
document.body.style.overflow = 'hidden';
setTimeout(() => o.querySelector('[name=name]').focus(), 60);
}
function cbClose() {
document.getElementById('cbOverlay').classList.remove('open');
document.body.style.overflow = '';
}
function cbBg(e) { if (e.target.id === 'cbOverlay') cbClose(); }
document.addEventListener('keydown', e => { if (e.key === 'Escape') cbClose(); });
async function cbSubmit(e, form) {
e.preventDefault();
const btn = form.querySelector('.cb-submit');
const toast = document.getElementById('cbToast');
const d = Object.fromEntries(new FormData(form).entries());
let msg = (d.message || '').trim();
const payload = {
client_id: d.client_id, source: d.source,
name: d.name, phone: d.phone,
service_interest: d.service || '', message: msg
};
const old = btn.textContent;
btn.disabled = true; btn.textContent = 'Senden…';
toast.style.display = 'none';
try {
const r = await fetch(CB_WEBHOOK, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload) });
if (!r.ok) throw new Error(r.status);
toast.className = 'cb-toast ok';
toast.textContent = '✓ Danke! Wir rufen Sie zurück.';
toast.style.display = 'block';
form.reset();
setTimeout(cbClose, 2200);
} catch (err) {
toast.className = 'cb-toast err';
toast.textContent = '⚠ Senden fehlgeschlagen. Bitte erneut versuchen.';
toast.style.display = 'block';
} finally {
btn.disabled = false; btn.textContent = old;
}
return false;
}
</script>
<!-- ===== /Rückruf-Widget ===== -->
</body>
</html>
+53
View File
@@ -0,0 +1,53 @@
#!/usr/bin/env bash
# Scaffold a new ISOLATED client stack from _template/.
#
# Usage: ./new-client.sh <slug> <domain> [source-site-dir]
# ./new-client.sh happynails happynails.de ../../templates/landing/preview-happynails
#
# Creates deploy/clients/<slug>/ with its own .env + site/, then prints the
# Caddy block and the deploy command. Run it from deploy/clients/.
set -euo pipefail
cd "$(dirname "$0")"
SLUG="${1:?usage: new-client.sh <slug> <domain> [source-site-dir]}"
DOMAIN="${2:?domain required (e.g. happynails.de)}"
SRC="${3:-}"
[[ "$SLUG" =~ ^[a-z0-9-]+$ ]] || { echo "slug must be lowercase letters/digits/dashes"; exit 1; }
[ -e "$SLUG" ] && { echo "client '$SLUG' already exists at deploy/clients/$SLUG"; exit 1; }
cp -r _template "$SLUG"
cat > "$SLUG/.env" <<EOF
CLIENT_SLUG=$SLUG
CLIENT_DOMAIN=$DOMAIN
EOF
if [ -n "$SRC" ]; then
[ -d "$SRC" ] || { echo "source dir '$SRC' not found"; exit 1; }
rm -f "$SLUG"/site/*.html
cp -r "$SRC"/. "$SLUG"/site/
echo "Seeded site/ from $SRC"
fi
cat <<EOF
✓ Created deploy/clients/$SLUG
1) Add this block to the homelab Caddyfile, then reload Caddy:
docker exec caddy caddy reload --config /etc/caddy/Caddyfile
$DOMAIN {
reverse_proxy client-$SLUG:80
encode zstd gzip
}
2) DNS: a *.mivanchenko.de subdomain already resolves (wildcard) — nothing to do.
For a client-owned domain, add their A record $DOMAIN -> 188.193.49.3.
3) Deploy the stack:
scp -r $SLUG mivanchenko@mivanchenko.de:/home/mivanchenko/clients/
ssh mivanchenko@mivanchenko.de 'cd ~/clients/$SLUG && docker compose up -d'
Remove this client later (isolated — touches nothing else):
ssh mivanchenko@mivanchenko.de 'cd ~/clients/$SLUG && docker compose down'
EOF
+132
View File
@@ -0,0 +1,132 @@
{
"name": "SMB · Booking Sync",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "booking",
"responseMode": "onReceived",
"options": {
"allowedOrigins": "*"
}
},
"id": "b0000000-1111-2222-3333-444444444444",
"name": "Booking webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
240,
300
],
"webhookId": "smb-booking-webhook-0001"
},
{
"parameters": {
"jsCode": "const w=$input.first().json; const b=w.body||w;\nconst s=v=>{v=(v==null?'':String(v));return /^[=+\\-@\\t\\r]/.test(v)?\"'\"+v:v;};\nconst EA='http://easyappointments';\nconst AUTH='Basic __EA_AUTH__';\nconst get=p=>this.helpers.httpRequest({method:'GET',url:EA+'/index.php/api/v1/'+p,headers:{Authorization:AUTH},json:true});\nlet booking, business_name='', notify_channel='telegram';\nif(b.action&&b.payload){\n const p=b.payload;\n const r=await Promise.all([get('customers/'+p.id_users_customer),get('services/'+p.id_services),get('providers/'+p.id_users_provider)]);\n const cust=r[0], svc=r[1], prov=r[2];\n const tz=prov.timezone||'UTC';\n const toUtc=dt=>{ if(!dt) return null; const d=DateTime.fromFormat(String(dt),'yyyy-MM-dd HH:mm:ss',{zone:tz}); return d.isValid?d.toUTC().toISO():String(dt).replace(' ','T'); };\n booking={booking_id:'EA-'+p.id,client_id:String(prov.notes||'').trim(),\n customer_name:s(((cust.firstName||'')+' '+(cust.lastName||'')).trim()),\n customer_contact:s(cust.email||cust.phone||''),service:s(svc.name),\n start_time:toUtc(p.start_datetime),end_time:toUtc(p.end_datetime),\n source:'easyappointments',status:p.status||'confirmed'};\n business_name=s((prov.firstName||'')+' '+(prov.lastName||''));\n} else {\n booking={booking_id:b.booking_id||'B-'+Date.now(),client_id:s(b.client_id),\n customer_name:s(b.customer_name||b.name),customer_contact:s(b.customer_contact||b.contact||b.email||b.phone),\n service:s(b.service||b.service_interest),start_time:b.start_time||null,end_time:b.end_time||null,\n source:s(b.source||'manual'),status:s(b.status||'confirmed')};\n business_name=s(b.business_name); notify_channel=s(b.notify_channel||'telegram');\n}\nreturn [{json:{booking,business_name,notify_channel}}];"
},
"id": "b0000000-1111-2222-3333-555555555555",
"name": "Build booking row",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
460,
300
]
},
{
"parameters": {
"method": "POST",
"url": "http://smb-crm:8080/api/bookings",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "X-CRM-Token",
"value": "__CRM_TOKEN__"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={{ JSON.stringify($json.booking) }}",
"options": {}
},
"id": "b0000000-1111-2222-3333-666666666666",
"name": "Save to CRM (bookings)",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
680,
300
],
"retryOnFail": true,
"maxTries": 4,
"waitBetweenTries": 3000
},
{
"parameters": {
"resource": "message",
"operation": "sendMessage",
"chatId": "5499280257",
"text": "=📅 Neue Buchung\nBetrieb: {{ $('Build booking row').item.json.business_name || $('Build booking row').item.json.booking.client_id }}\nKunde: {{ $('Build booking row').item.json.booking.customer_name || '—' }}\nLeistung: {{ $('Build booking row').item.json.booking.service || '—' }}\nWann: {{ $('Build booking row').item.json.booking.start_time || '—' }}\nKontakt: {{ $('Build booking row').item.json.booking.customer_contact || '—' }}\nQuelle: {{ $('Build booking row').item.json.booking.source }}",
"additionalFields": {
"appendAttribution": false
}
},
"id": "b0000000-1111-2222-3333-777777777777",
"name": "Notify owner (Telegram)",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
900,
300
],
"credentials": {
"telegramApi": {
"id": "d9s4Ec5ocEH8FAxh",
"name": "SMB Telegram (leads bot)"
}
}
}
],
"connections": {
"Booking webhook": {
"main": [
[
{
"node": "Build booking row",
"type": "main",
"index": 0
}
]
]
},
"Build booking row": {
"main": [
[
{
"node": "Save to CRM (bookings)",
"type": "main",
"index": 0
}
]
]
},
"Save to CRM (bookings)": {
"main": [
[
{
"node": "Notify owner (Telegram)",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1",
"callerPolicy": "workflowsFromSameOwner",
"availableInMCP": false
}
}
+293 -16
View File
@@ -6,13 +6,18 @@
"httpMethod": "POST",
"path": "onboard",
"responseMode": "onReceived",
"options": { "allowedOrigins": "*" }
"options": {
"allowedOrigins": "*"
}
},
"id": "d1a08bba-5cc5-48fa-8063-bda2d58cab15",
"name": "Onboard webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [240, 300],
"position": [
240,
300
],
"webhookId": "96c28466-ee4b-4aa5-8f06-52d098b497a7"
},
{
@@ -23,7 +28,10 @@
"name": "Compute",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [460, 300]
"position": [
460,
300
]
},
{
"parameters": {
@@ -31,7 +39,12 @@
"url": "http://smb-crm:8080/api/clients",
"sendHeaders": true,
"headerParameters": {
"parameters": [ { "name": "X-CRM-Token", "value": "__CRM_TOKEN__" } ]
"parameters": [
{
"name": "X-CRM-Token",
"value": "__CRM_TOKEN__"
}
]
},
"sendBody": true,
"specifyBody": "json",
@@ -42,7 +55,10 @@
"name": "Save client",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [680, 300],
"position": [
680,
300
],
"retryOnFail": true,
"maxTries": 4,
"waitBetweenTries": 3000
@@ -55,7 +71,10 @@
"name": "Build project",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [900, 300]
"position": [
900,
300
]
},
{
"parameters": {
@@ -63,7 +82,12 @@
"url": "http://smb-crm:8080/api/projects",
"sendHeaders": true,
"headerParameters": {
"parameters": [ { "name": "X-CRM-Token", "value": "__CRM_TOKEN__" } ]
"parameters": [
{
"name": "X-CRM-Token",
"value": "__CRM_TOKEN__"
}
]
},
"sendBody": true,
"specifyBody": "json",
@@ -74,7 +98,10 @@
"name": "Save project",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [1120, 300],
"position": [
1120,
300
],
"retryOnFail": true,
"maxTries": 4,
"waitBetweenTries": 3000
@@ -85,24 +112,274 @@
"operation": "sendMessage",
"chatId": "5499280257",
"text": "=✅ Neuer Kunde angelegt: {{ $('Save client').item.json.added }}\n{{ $('Compute').item.json.business_name }} — Tier {{ $('Compute').item.json.tier }}\nServices: {{ $('Compute').item.json.services }}\nGebühr: {{ $('Compute').item.json.monthly_fee_eur || '—' }}€/{{ $('Compute').item.json.cycle }}\nGo-Live Ziel: {{ $('Build project').item.json.go_live_date }}",
"additionalFields": { "appendAttribution": false }
"additionalFields": {
"appendAttribution": false
}
},
"id": "ae19e543-1a6b-4466-8af8-bb436f51091b",
"name": "Notify Telegram",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [1340, 300],
"position": [
1340,
300
],
"credentials": {
"telegramApi": { "id": "d9s4Ec5ocEH8FAxh", "name": "SMB Telegram (leads bot)" }
"telegramApi": {
"id": "d9s4Ec5ocEH8FAxh",
"name": "SMB Telegram (leads bot)"
}
}
},
{
"parameters": {
"jsCode": "const cid=$('Save client').first().json.added;\nconst biz=$('Compute').first().json.business_name||'Kunde';\nconst slug=String(cid).toLowerCase().replace(/[^a-z0-9]/g,'');\nconst password=Math.random().toString(36).slice(2,10)+Math.random().toString(36).slice(2,6);\nconst serviceBody={name:'Termin',duration:30,price:0,currency:'EUR',availabilitiesType:'flexible',attendantsNumber:1,isPrivate:false};\nreturn [{json:{cid,biz,username:slug,password,serviceBody}}];"
},
"id": "ea-ea-build-service",
"name": "EA build service",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
680,
520
]
},
{
"parameters": {
"options": {},
"method": "POST",
"url": "http://easyappointments/index.php/api/v1/services",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Basic __EA_AUTH__"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={{ JSON.stringify($json.serviceBody) }}"
},
"id": "ea-ea-create-service",
"name": "EA create service",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
900,
520
],
"retryOnFail": true,
"maxTries": 3,
"waitBetweenTries": 2000,
"continueOnFail": true
},
{
"parameters": {
"jsCode": "const prep=$('EA build service').first().json;\nconst svcId=$json.id;\nconst c=($('Compute').first().json.client)||{};\nconst parts=String(prep.biz).trim().split(/\\s+/);\nconst firstName=parts[0]||prep.biz;\nconst lastName=parts.slice(1).join(' ')||'Studio';\nconst wp={start:'09:00',end:'18:00',breaks:[]};\nconst providerBody={firstName,lastName,email:'provider+'+prep.username+'@booking.mivanchenko.de',\n phone:c.phone||'',services:[svcId],isPrivate:false,timezone:'Europe/Berlin',notes:prep.cid,\n settings:{username:prep.username,password:prep.password,\n workingPlan:{monday:wp,tuesday:wp,wednesday:wp,thursday:wp,friday:wp,saturday:wp,sunday:null}}};\nreturn [{json:{providerBody,svcId,cid:prep.cid,username:prep.username,biz:prep.biz}}];"
},
"id": "ea-ea-build-provider",
"name": "EA build provider",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
1120,
520
]
},
{
"parameters": {
"options": {},
"method": "POST",
"url": "http://easyappointments/index.php/api/v1/providers",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Basic __EA_AUTH__"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={{ JSON.stringify($('EA build provider').item.json.providerBody) }}"
},
"id": "ea-ea-create-provider",
"name": "EA create provider",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1340,
520
],
"retryOnFail": true,
"maxTries": 3,
"waitBetweenTries": 2000,
"continueOnFail": true
},
{
"parameters": {
"jsCode": "const bp=$('EA build provider').first().json;\nconst provId=$json.id;\nconst embed='https://booking.mivanchenko.de/index.php/booking?service='+bp.svcId+'&provider='+provId;\nconst stack_notes='Buchung-Embed: '+embed+' | EA provider '+provId+' / svc '+bp.svcId+' / login '+bp.username;\nreturn [{json:{cid:bp.cid,embed,provId,patch:{stack_notes}}}];"
},
"id": "ea-ea-booking-info",
"name": "EA booking info",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
1560,
520
]
},
{
"parameters": {
"options": {},
"method": "PATCH",
"url": "=http://smb-crm:8080/api/clients/{{ $json.cid }}",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "X-CRM-Token",
"value": "__CRM_TOKEN__"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={{ JSON.stringify($json.patch) }}"
},
"id": "ea-ea-update-client",
"name": "EA update client",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1780,
520
],
"retryOnFail": true,
"maxTries": 3,
"waitBetweenTries": 2000,
"continueOnFail": true
}
],
"connections": {
"Onboard webhook": { "main": [[{ "node": "Compute", "type": "main", "index": 0 }]] },
"Compute": { "main": [[{ "node": "Save client", "type": "main", "index": 0 }]] },
"Save client": { "main": [[{ "node": "Build project", "type": "main", "index": 0 }]] },
"Build project": { "main": [[{ "node": "Save project", "type": "main", "index": 0 }]] },
"Save project": { "main": [[{ "node": "Notify Telegram", "type": "main", "index": 0 }]] }
"Onboard webhook": {
"main": [
[
{
"node": "Compute",
"type": "main",
"index": 0
}
]
]
},
"Compute": {
"main": [
[
{
"node": "Save client",
"type": "main",
"index": 0
}
]
]
},
"Save client": {
"main": [
[
{
"node": "Build project",
"type": "main",
"index": 0
},
{
"node": "EA build service",
"type": "main",
"index": 0
}
]
]
},
"Build project": {
"main": [
[
{
"node": "Save project",
"type": "main",
"index": 0
}
]
]
},
"Save project": {
"main": [
[
{
"node": "Notify Telegram",
"type": "main",
"index": 0
}
]
]
},
"EA build service": {
"main": [
[
{
"node": "EA create service",
"type": "main",
"index": 0
}
]
]
},
"EA create service": {
"main": [
[
{
"node": "EA build provider",
"type": "main",
"index": 0
}
]
]
},
"EA build provider": {
"main": [
[
{
"node": "EA create provider",
"type": "main",
"index": 0
}
]
]
},
"EA create provider": {
"main": [
[
{
"node": "EA booking info",
"type": "main",
"index": 0
}
]
]
},
"EA booking info": {
"main": [
[
{
"node": "EA update client",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1",
+56
View File
@@ -0,0 +1,56 @@
# Playbook — Lead → Customer
The full lifecycle for turning a lead into a live, paying, bookable client. CRM lives at
`onboard.mivanchenko.de/crm`. Booking is self-hosted (Easy!Appointments), embedded on the
client's own site.
## 1. Lead exists
The lead is in the CRM **Leads** tab, status `new` — from outreach (see `outreach.md`) or an
inbound form submission.
## 2. Reach out & qualify
Contact them (DM / call / walk-in). In the CRM, ✎-edit the lead's status:
`new``contacted``qualified` (interested) — or `lost` (dead).
## 3. Close the deal
On a short call, confirm scope (site + online booking), agree the **setup fee + monthly**
(Tier-A pricing in `tier-a-google.md`), and note their services + opening hours.
## 4. Onboard → creates the customer (automated)
Click **📝 Onboarding-Formular** in the CRM header (or go to `onboard.mivanchenko.de`).
Fill: business name, owner, email, phone, niche, tier, **domain = `<slug>.mivanchenko.de`**,
billing cycle, monthly fee → Submit.
This automatically:
- creates the **Client** (`C-xxxx`, status `onboarding`) + **Project** in the CRM,
- provisions their **Easy!Appointments booking** (service + provider, mapped to their `C-id`),
- stores their **booking embed URL** in the client's `stack_notes`.
Then ✎-edit the original **Lead → `won`**.
## 5. Build & ship their site
1. Copy the **embed URL** from the new client's `stack_notes` in the CRM.
2. Clone a template/preview (`templates/landing/…`), rebrand it (name, colours, services,
hours, photos), and wire the booking section to the client's EA.
3. Ship the isolated stack:
```bash
cd deploy/clients
./new-client.sh <slug> <slug>.mivanchenko.de <their-site-dir>
```
→ scp to the homelab → add the printed Caddy block + reload → `docker compose up -d`.
Live at `https://<slug>.mivanchenko.de` (wildcard DNS + auto-TLS).
## 6. Tune their booking
In the EA backend (admin login — see `.secrets/easyappointments.txt`), set the provider's real
**services** (duration / price) and **working hours / timezone**. Optionally hand the studio
their **provider login** so they manage their own calendar.
## 7. Hand over & go live
- Give them either their **EA provider login** (self-hosted calendar view) or the **iCal feed**
`…/crm/api/bookings.ics?client_id=C-xxxx&token=…` to subscribe in Apple / Google Calendar.
- A customer booking now flows: their site → EA → CRM `bookings` → your Telegram.
- Set the **Client → `active`**.
## 8. Ongoing
Bookings auto-land in the CRM (source of truth); renewal reminders fire; bill monthly.
Update status to `churned` if they leave (then `docker compose down` their stack to offboard).
+82
View File
@@ -0,0 +1,82 @@
# Playbook — Outreach (getting the first real leads)
Goal: turn local SMBs **without a (decent) website** into booked calls. The winning angle for
local businesses is **preview-first**: don't ask "do you want a website?" — show them one you
already built for *their* business. Costs you ~20 min per prospect (clone a demo, rebrand the
name/colours/hours) and converts far better than a cold pitch.
## The funnel (track every prospect in the CRM)
Each prospect is a row in **Leads** (`source = outreach`), moving through status:
`new``contacted``qualified` (they replied / want to talk) → `won` (booked/closed) / `lost`.
So the same dashboard you already run doubles as the outreach pipeline.
## Step 1 — Build the target list (aim for 2030 to start)
Search Google Maps for a niche + town (e.g. "Friseur <Stadt>", "Physiotherapie <Stadt>",
"Pizzeria <Stadt>"). For each result, record:
- Business name, owner name (if visible), phone, email, Instagram/FB handle, Maps URL.
- **Website?** none / outdated / "only Facebook" / "only Lieferando". These are your best targets.
- A 1-line hook (no online booking, ugly mobile site, no menu online, etc.).
Prioritise: **no website at all** > only-Facebook > outdated site. Skip anyone with a clean,
modern, booking-enabled site — not worth your time.
## Step 2 — Build the preview (the hook)
Clone the matching demo and rebrand it in ~20 min:
- Casual/booking (barber, salon, café) → `templates/landing/demo-tier-a/`
- Privacy/practice (physio, tax, clinic) → `templates/landing/demo-tier-b/`
- Food/ordering (pizzeria, imbiss) → `templates/landing/demo-pizzeria/`
Swap name, colours, hours, services, a couple of photos. Deploy under a throwaway path
(e.g. `demos.mivanchenko.de/preview-<name>`). That personalised URL is what you send.
## Step 3 — Reach out (pick ONE primary channel, follow up on a second)
### A) Cold email (best when you have the address)
> **Betreff:** Kurze Website-Idee für [BUSINESS]
>
> Hallo [NAME / „Team von BUSINESS"],
>
> ich bin [MY_NAME] aus [CITY] und baue einfache, schnelle Websites mit Online-Terminbuchung
> für lokale Betriebe. Für [BUSINESS] habe ich schon eine Beispielseite gebaut, damit Sie sehen,
> wie es aussehen könnte — ganz unverbindlich:
>
> 👉 [PREVIEW_URL]
>
> Wenn es Ihnen gefällt, mache ich daraus in wenigen Tagen Ihre echte Seite (inkl. Terminbuchung
> und Anfragen direkt aufs Handy). Hätten Sie diese Woche 10 Minuten für einen kurzen Anruf?
>
> Viele Grüße
> [MY_NAME] · [PHONE] · [BUSINESS_DOMAIN/EMAIL]
### B) Instagram / Facebook DM (best for food, salons, cafés)
> Hallo [BUSINESS] 👋 ich baue Websites mit Online-Terminbuchung/-Bestellung für lokale Betriebe.
> Hab für euch mal eine Beispielseite gebaut — schaut mal: [PREVIEW_URL]. Wenn's gefällt, mache
> ich daraus eure echte Seite. Interesse an einem kurzen Gespräch?
### C) Phone / walk-in opener
> „Guten Tag, ich bin [MY_NAME], ich baue Websites mit Online-Terminbuchung für Betriebe hier in
> [CITY]. Ich hab für [BUSINESS] schon eine Beispielseite gebaut — darf ich Ihnen den Link
> schicken, dann schauen Sie unverbindlich rein?"
Walk-in is the strongest for food/retail — bring the preview on your phone and show it live.
### Follow-up (once, after ~3 days, if no reply)
> Hallo nochmal — falls die Beispielseite untergegangen ist: [PREVIEW_URL]. Kein Stress, ich
> wollte nur kurz nachhaken, ob's für Sie interessant ist. 🙂
## Step 4 — On reply → qualify → onboard
- Reply = move the lead to `qualified`, book a 10-min call.
- On the call: confirm what they want (page, booking, online orders), agree setup fee + monthly
(see `tier-a-google.md` / `tier-b-selfhosted.md` for pricing), pick the tier.
- Closed = run the **Onboarding-Formular** (onboard.mivanchenko.de) → creates the Client + Project
in the CRM. Then follow the matching tier playbook to build the real site.
## Cadence & targets
- Daily: 510 new prospects added + contacted. ~20 min/preview, so batch previews for your best 35.
- Expect rough numbers: ~20 contacted → ~35 replies → ~1 first paying client. Volume is the lever.
- Log everything in Leads so you can see reply-rate by niche/channel and double down on what works.
## Don'ts
- Don't mass-blast identical emails (spam + low reply). Personalise the name + preview link.
- Don't write "DSGVO-konform" or make compliance promises on the public pages.
- Don't over-polish the preview — it's a hook, not the final product. 20 min, then send.
@@ -0,0 +1,433 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Best Nails Nürnberg — Nagelstudio | Termin online buchen</title>
<meta name="description" content="Maniküre, Gel- & Shellac-Nägel und individuelles Nageldesign in Nürnberg. Jetzt bequem online einen Termin buchen." />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap" rel="stylesheet" />
<style>
:root {
--bg: #fdf6f4;
--bg-2: #f8e9e5;
--card: #ffffff;
--ink: #3b2a2e;
--muted: #9a8589;
--gold: #d96e7d;
--gold-2: #ec9aa6;
--line: #f1e1de;
--radius: 16px;
--shadow: 0 18px 50px rgba(180,120,130,.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
background: var(--bg); color: var(--ink);
line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Playfair Display', Georgia, serif; letter-spacing: .2px; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, 92vw); margin-inline: auto; }
section { padding: 92px 0; }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: .72rem; }
/* demo ribbon */
.demo-bar {
background: repeating-linear-gradient(45deg, #f6ddd6, #f6ddd6 12px, #f9e7e2 12px, #f9e7e2 24px);
color: #a05468; font-size: .76rem; letter-spacing: 1.5px; text-transform: uppercase;
text-align: center; padding: 7px 12px; border-bottom: 1px solid var(--line);
}
/* nav */
header.nav { position: sticky; top: 0; z-index: 50; background: rgba(253,246,244,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 700; letter-spacing: .5px; }
.brand span { color: var(--gold); }
nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
nav a { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
nav a:hover { color: var(--ink); }
.btn {
display: inline-block; background: linear-gradient(180deg, var(--gold-2), var(--gold));
color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 999px;
border: 0; cursor: pointer; font-size: .95rem; transition: transform .15s, box-shadow .2s;
box-shadow: 0 8px 22px rgba(199,127,147,.32);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(199,127,147,.45); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.6rem; cursor: pointer; }
/* hero */
.hero { position: relative; background:
linear-gradient(rgba(253,246,244,.40), rgba(253,246,244,.78)),
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='%23fbeae5'/%3E%3Ccircle cx='20' cy='20' r='1.4' fill='%23f0cdc5'/%3E%3C/svg%3E");
border-bottom: 1px solid var(--line); }
.hero-inner { padding: 96px 0 104px; max-width: 720px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 14px 0 6px; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { color: var(--muted); font-size: 1.18rem; max-width: 540px; margin: 18px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-meta b { color: var(--ink); }
/* services */
.sec-head { max-width: 620px; margin-bottom: 46px; }
.sec-head h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-top: 8px; }
.sec-head p { color: var(--muted); margin-top: 10px; }
.grid { display: grid; gap: 18px; }
.services { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .18s, border-color .2s; box-shadow: 0 6px 18px rgba(180,120,130,.06); }
.svc:hover { transform: translateY(-4px); border-color: var(--gold); }
.svc .ic { font-size: 1.8rem; }
.svc h3 { font-size: 1.45rem; margin: 14px 0 6px; }
.svc p { color: var(--muted); font-size: .92rem; min-height: 42px; }
.svc .price { color: var(--gold); font-weight: 700; font-size: 1.05rem; margin-top: 12px; font-family: 'Inter'; }
/* booking */
.booking { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.booking-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.booking-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.gcal-head { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.gcal-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #4caf7d; box-shadow: 0 0 0 3px rgba(76,175,125,.18); margin-right: 12px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { text-align: center; padding: 11px 6px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: .9rem; cursor: pointer; transition: .15s; background: #fdf3f1; }
.slot:hover { border-color: var(--gold); color: var(--gold); }
.slot.off { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.booking ul.points { list-style: none; display: grid; gap: 14px; margin: 22px 0 28px; }
.booking ul.points li { padding-left: 30px; position: relative; color: var(--muted); }
.booking ul.points li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
/* hours / about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.hours td:last-child { text-align: right; color: var(--ink); font-weight: 500; }
/* contact */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
form.lead { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 560px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
width: 100%; background: #fdf3f1; border: 1px solid var(--line); border-radius: 9px;
color: var(--ink); padding: 12px 14px; font: inherit; font-size: .95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.toast { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 9px; background: #eef9ef; border: 1px solid #cdeccf; color: #3b7a44; font-size: .9rem; }
/* footer */
footer { padding: 54px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer .brand { color: var(--ink); }
@media (max-width: 820px) {
nav ul { display: none; }
.nav-toggle { display: block; }
nav.open ul { display: flex; position: absolute; inset: 68px 0 auto 0; flex-direction: column; background: var(--bg-2); padding: 18px 6vw; gap: 18px; border-bottom: 1px solid var(--line); }
.booking-grid, .split { grid-template-columns: 1fr; }
section { padding: 64px 0; }
}
</style>
</head>
<body>
<div class="demo-bar">Beispielseite · So könnte Ihr Online-Auftritt aussehen <button class="cb-open" type="button" onclick="cbOpen()">📞 Rückruf anfordern</button></div>
<header class="nav">
<div class="wrap nav-inner">
<a href="#top" class="brand">BEST<span>NAILS</span></a>
<nav id="nav">
<ul>
<li><a href="#leistungen">Leistungen</a></li>
<li><a href="#buchen">Termin buchen</a></li>
<li><a href="#zeiten">Öffnungszeiten</a></li>
<li><a href="#kontakt">Kontakt</a></li>
<li><a href="#buchen" class="btn">Termin buchen</a></li>
</ul>
</nav>
<button class="nav-toggle" aria-label="Menü" onclick="document.getElementById('nav').classList.toggle('open')"></button>
</div>
</header>
<main id="top">
<!-- HERO -->
<section class="hero" id="hero">
<div class="wrap hero-inner">
<span class="eyebrow">Nagelstudio · Nürnberg</span>
<h1>Schöne Nägel.<br><em>Zum Wohlfühlen.</em></h1>
<p>Maniküre, Gel- &amp; Shellac-Nägel und individuelles Nageldesign — mit Liebe und ruhiger Hand gemacht. Sichern Sie sich Ihren Termin in 30 Sekunden online.</p>
<div class="hero-cta">
<a href="#buchen" class="btn">Termin online buchen</a>
<a href="#kontakt" class="btn ghost">✉ Nachricht senden</a>
</div>
<div class="hero-meta">
<span><b>4,9</b> · Top bewertet</span>
<span>💅 Liebe zum Detail</span>
<span>📍 Mitten in Nürnberg</span>
</div>
</div>
</section>
<!-- SERVICES -->
<section id="leistungen">
<div class="wrap">
<div class="sec-head">
<span class="eyebrow">Leistungen</span>
<h2>Was wir für Sie tun</h2>
<p>Faire Preise, gepflegte Atmosphäre — und ein Ergebnis, das man gerne herzeigt.</p>
</div>
<div class="grid services">
<article class="svc"><div class="ic">💅</div><h3>Maniküre</h3><p>Pflege, Form und Lack für gepflegte, natürliche Hände.</p><div class="price">ab 25 €</div></article>
<article class="svc"><div class="ic"></div><h3>Gel- &amp; Shellac-Nägel</h3><p>Langanhaltend, glänzend und in Ihrer Wunschfarbe.</p><div class="price">ab 45 €</div></article>
<article class="svc"><div class="ic">🦶</div><h3>Pediküre</h3><p>Wohltuende Fußpflege — entspannt und gründlich.</p><div class="price">ab 35 €</div></article>
<article class="svc"><div class="ic">🎨</div><h3>Nageldesign &amp; Nail Art</h3><p>Individuelle Designs, French, Steinchen, Muster — ganz nach Wunsch.</p><div class="price">ab 5 € / Nagel</div></article>
</div>
</div>
</section>
<!-- BOOKING -->
<section class="booking" id="buchen">
<div class="wrap booking-grid">
<div>
<span class="eyebrow">Termin buchen</span>
<h2 style="font-size:clamp(2.2rem,5vw,3.2rem);margin:8px 0 6px;">Wählen Sie Ihren Termin.<br>Den Rest machen wir.</h2>
<ul class="points">
<li>Sofortige Bestätigung per E-Mail</li>
<li>Automatische Erinnerung am Vortag</li>
<li>Bequem online — kein Hin und Her per DM</li>
</ul>
<!-- Demo: in der Live-Version öffnet dieser Button die echte Online-Terminbuchung. -->
<a href="#" class="btn" onclick="return false;">Verfügbare Zeiten ansehen →</a>
</div>
<div class="booking-card">
<div class="gcal-head"><span class="gcal-dot"></span> Online-Terminbuchung — <span id="bookDate">heute</span></div>
<div class="slots">
<div class="slot off">09:30</div>
<div class="slot">10:30</div>
<div class="slot">11:30</div>
<div class="slot off">13:00</div>
<div class="slot">14:00</div>
<div class="slot">15:30</div>
<div class="slot">16:30</div>
<div class="slot off">17:30</div>
<div class="slot">18:30</div>
</div>
<p class="form-note" style="margin-top:16px;">Demo-Vorschau. In der Live-Version buchen Ihre Kundinnen hier rund um die Uhr selbst einen freien Termin — mit sofortiger Bestätigung.</p>
</div>
</div>
</section>
<!-- HOURS / ABOUT -->
<section id="zeiten">
<div class="wrap split">
<div>
<span class="eyebrow">Über uns</span>
<h2 style="font-size:clamp(2rem,4.5vw,2.8rem);margin:8px 0 14px;">Ihr Wohlfühl-Moment in Nürnberg.</h2>
<p style="color:var(--muted)">Bei Best Nails nehmen wir uns Zeit für Sie. In ruhiger, gepflegter Atmosphäre kümmern wir uns um Ihre Hände und Füße — sorgfältig, hygienisch und mit einem Auge fürs Detail. Kommen Sie vorbei und gönnen Sie sich eine kleine Auszeit.</p>
</div>
<div>
<span class="eyebrow">Öffnungszeiten</span>
<!-- Platzhalter-Zeiten — in der Live-Version durch die echten Zeiten ersetzen. -->
<table class="hours" style="margin-top:14px;">
<tr><td>Dienstag Freitag</td><td>09:30 19:00</td></tr>
<tr><td>Samstag</td><td>09:00 16:00</td></tr>
<tr><td>Sonntag &amp; Montag</td><td>geschlossen</td></tr>
</table>
<p class="form-note" style="margin-top:16px;">📍 Nürnberg · genaue Adresse in der Live-Version</p>
</div>
</div>
</section>
<!-- CONTACT / LEAD FORM -->
<section class="contact" id="kontakt">
<div class="wrap">
<div class="sec-head">
<span class="eyebrow">Kontakt</span>
<h2>Frage stellen oder Rückruf anfordern</h2>
<p>Schreiben Sie uns kurz — wir melden uns am selben Tag.</p>
</div>
<!-- Demo: dieses Formular postet an einen n8n-Webhook -> CRM (Leads) + Telegram. -->
<form class="lead" onsubmit="return submitLead(event, this)">
<input type="hidden" name="client_id" value="PREVIEW-BESTNAILS" />
<input type="hidden" name="source" value="preview-bestnails" />
<div class="field"><label for="a-name">Name</label><input id="a-name" name="name" type="text" placeholder="Ihr Name" required /></div>
<div class="field"><label for="a-contact">E-Mail oder Telefon</label><input id="a-contact" name="contact" type="text" placeholder="name@example.de" required /></div>
<div class="field"><label for="a-svc">Gewünschte Leistung</label>
<select id="a-svc" name="service"><option>Maniküre</option><option>Gel- &amp; Shellac-Nägel</option><option>Pediküre</option><option>Nageldesign &amp; Nail Art</option><option>Auffüllen / Refill</option><option>Sonstiges</option></select>
</div>
<div class="field"><label for="a-msg">Nachricht (optional)</label><textarea id="a-msg" name="message" rows="3" placeholder="Wunschtermin, Frage, …"></textarea></div>
<button class="btn" type="submit">Anfrage senden</button>
<div class="toast">✓ Danke! Demo-Formular — in der Live-Version landet Ihre Anfrage automatisch im System.</div>
<p class="form-note">Mit dem Absenden stimmen Sie der Verarbeitung Ihrer Angaben zur Kontaktaufnahme zu.</p>
</form>
</div>
</section>
</main>
<footer>
<div class="wrap foot-grid">
<div>
<div class="brand">BEST<span style="color:var(--gold)">NAILS</span></div>
<p style="margin-top:8px;">Nagelstudio · Nürnberg</p>
</div>
<div>
<p><b style="color:var(--ink)">Öffnungszeiten</b></p>
<p>DiFr 09:3019 · Sa 0916</p>
</div>
<div>
<p><b style="color:var(--ink)">Kontakt</b></p>
<p>@bestnailsbeautysalon</p>
</div>
</div>
<div class="wrap" style="margin-top:30px;opacity:.6;font-size:.8rem;">© 2026 Best Nails Nürnberg · Beispielseite · Impressum · Datenschutz</div>
</footer>
<script>
// Lead-Formular -> n8n Webhook -> CRM (Leads) + Telegram-Benachrichtigung.
const LEAD_WEBHOOK = 'https://n8n.mivanchenko.de/webhook/lead-intake';
async function submitLead(e, form) {
e.preventDefault();
const btn = form.querySelector('button[type=submit]');
const toast = form.querySelector('.toast');
const data = Object.fromEntries(new FormData(form).entries());
const old = btn.textContent;
btn.disabled = true; btn.textContent = 'Senden…';
try {
const r = await fetch(LEAD_WEBHOOK, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(data),
});
if (!r.ok) throw new Error(r.status);
toast.textContent = '✓ Danke! Ihre Anfrage ist eingegangen — wir melden uns.';
toast.style.display = 'block';
form.reset();
} catch (err) {
toast.textContent = '⚠ Senden fehlgeschlagen — bitte erneut versuchen oder direkt anrufen.';
toast.style.display = 'block';
} finally {
btn.disabled = false; btn.textContent = old;
}
return false;
}
</script>
<script>
// Keep the demo booking header on today's date so the example never looks stale.
(function () {
const M = ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'];
const t = new Date();
const el = document.getElementById('bookDate');
if (el) el.textContent = 'heute, ' + t.getDate() + '. ' + M[t.getMonth()];
})();
</script>
<script>window.CB_CTX = { client_id: "PREVIEW-BESTNAILS", source: "preview-bestnails-callback" };</script>
<!-- ===== Rückruf-Widget (lead capture popup) ===== -->
<style>
.cb-fab { position: fixed; right: 18px; bottom: 18px; z-index: 900; background: var(--gold); color: #fff; border: 0; border-radius: 999px; padding: 13px 20px; font: 600 .95rem system-ui, -apple-system, Segoe UI, Roboto, sans-serif; box-shadow: 0 10px 26px rgba(199,127,147,.32); cursor: pointer; transition: transform .15s, background .2s; }
.cb-fab:hover { transform: translateY(-2px); background: #b56a80; }
.cb-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(60,30,40,.45); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 18px; }
.cb-overlay.open { display: flex; }
.cb-modal { position: relative; width: min(440px, 100%); background: #fff; color: #3b2a2e; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.30); padding: 28px 26px 22px; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; max-height: 92vh; overflow: auto; animation: cbIn .18s ease; }
@keyframes cbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cb-modal h3 { margin: 0 0 4px; font-size: 1.35rem; }
.cb-sub { margin: 0 0 18px; color: #9a8589; font-size: .9rem; }
.cb-x { position: absolute; top: 10px; right: 13px; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: #c9b3b7; cursor: pointer; }
.cb-x:hover { color: #3b2a2e; }
.cb-modal label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 13px; }
.cb-modal label .o { color: #b6a3a7; font-weight: 400; }
.cb-modal input, .cb-modal textarea { width: 100%; margin-top: 5px; font: inherit; font-size: .94rem; color: #3b2a2e; background: #fdf3f1; border: 1px solid #f1e1de; border-radius: 9px; padding: 10px 12px; resize: vertical; }
.cb-modal input:focus, .cb-modal textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.cb-submit { width: 100%; margin-top: 4px; background: var(--gold); color: #fff; border: 0; border-radius: 999px; padding: 13px; font: 600 1rem system-ui; cursor: pointer; transition: background .2s; }
.cb-submit:hover { background: #b56a80; }
.cb-submit:disabled { opacity: .6; cursor: default; }
.cb-toast { display: none; margin-top: 14px; padding: 11px 13px; border-radius: 9px; font-size: .88rem; font-weight: 500; }
.cb-toast.ok { background: #eef9ef; color: #3b7a44; border: 1px solid #cdeccf; }
.cb-toast.err { background: #fdecec; color: #9b2226; border: 1px solid #f3c7c7; }
.cb-open { margin-left: 10px; background: rgba(160,84,104,.10); color: inherit; border: 1px solid rgba(160,84,104,.30); border-radius: 999px; padding: 3px 13px; font: 600 .74rem system-ui; cursor: pointer; letter-spacing: .4px; vertical-align: middle; }
.cb-open:hover { background: rgba(160,84,104,.20); }
@media (max-width: 560px) { .cb-fab { right: 12px; bottom: 12px; padding: 11px 17px; } }
</style>
<button class="cb-fab" type="button" onclick="cbOpen()" aria-label="Rückruf anfordern">📞 Rückruf</button>
<div class="cb-overlay" id="cbOverlay" onclick="cbBg(event)">
<div class="cb-modal" role="dialog" aria-modal="true" aria-labelledby="cbTitle">
<button class="cb-x" type="button" onclick="cbClose()" aria-label="Schließen">&times;</button>
<h3 id="cbTitle">Rückruf anfordern</h3>
<p class="cb-sub">Name &amp; Nummer genügen — wir melden uns bei Ihnen. Alles andere ist optional.</p>
<form onsubmit="return cbSubmit(event, this)">
<input type="hidden" name="client_id" />
<input type="hidden" name="source" />
<label>Name *
<input name="name" required autocomplete="name" placeholder="Vor- und Nachname" />
</label>
<label>Telefon *
<input name="phone" required autocomplete="tel" inputmode="tel" placeholder="+49 …" />
</label>
<label>Gewünschte Leistung <span class="o">(optional)</span>
<input name="service" placeholder="Maniküre, Gelnägel, Pediküre …" />
</label>
<label>Nachricht <span class="o">(optional)</span>
<textarea name="message" rows="2" placeholder="Worum geht es?"></textarea>
</label>
<button class="cb-submit" type="submit">Rückruf anfordern</button>
<div class="cb-toast" id="cbToast"></div>
</form>
</div>
</div>
<script>
const CB_WEBHOOK = 'https://n8n.mivanchenko.de/webhook/lead-intake';
const cbCtx = window.CB_CTX || { client_id: 'PREVIEW', source: 'callback' };
function cbOpen() {
const o = document.getElementById('cbOverlay');
o.querySelector('[name=client_id]').value = cbCtx.client_id;
o.querySelector('[name=source]').value = cbCtx.source;
o.classList.add('open');
document.body.style.overflow = 'hidden';
setTimeout(() => o.querySelector('[name=name]').focus(), 60);
}
function cbClose() {
document.getElementById('cbOverlay').classList.remove('open');
document.body.style.overflow = '';
}
function cbBg(e) { if (e.target.id === 'cbOverlay') cbClose(); }
document.addEventListener('keydown', e => { if (e.key === 'Escape') cbClose(); });
async function cbSubmit(e, form) {
e.preventDefault();
const btn = form.querySelector('.cb-submit');
const toast = document.getElementById('cbToast');
const d = Object.fromEntries(new FormData(form).entries());
let msg = (d.message || '').trim();
const payload = {
client_id: d.client_id, source: d.source,
name: d.name, phone: d.phone,
service_interest: d.service || '', message: msg
};
const old = btn.textContent;
btn.disabled = true; btn.textContent = 'Senden…';
toast.style.display = 'none';
try {
const r = await fetch(CB_WEBHOOK, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload) });
if (!r.ok) throw new Error(r.status);
toast.className = 'cb-toast ok';
toast.textContent = '✓ Danke! Wir rufen Sie zurück.';
toast.style.display = 'block';
form.reset();
setTimeout(cbClose, 2200);
} catch (err) {
toast.className = 'cb-toast err';
toast.textContent = '⚠ Senden fehlgeschlagen. Bitte erneut versuchen.';
toast.style.display = 'block';
} finally {
btn.disabled = false; btn.textContent = old;
}
return false;
}
</script>
<!-- ===== /Rückruf-Widget ===== -->
</body>
</html>
@@ -0,0 +1,433 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Happy Nails Nürnberg — Nagelstudio | Termin online buchen</title>
<meta name="description" content="Maniküre, Gel- & Shellac-Nägel und individuelles Nageldesign in Nürnberg. Jetzt bequem online einen Termin buchen." />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap" rel="stylesheet" />
<style>
:root {
--bg: #fdf6f4;
--bg-2: #f8e9e5;
--card: #ffffff;
--ink: #3b2a2e;
--muted: #9a8589;
--gold: #c77f93;
--gold-2: #e0a7b6;
--line: #f1e1de;
--radius: 16px;
--shadow: 0 18px 50px rgba(180,120,130,.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
background: var(--bg); color: var(--ink);
line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Playfair Display', Georgia, serif; letter-spacing: .2px; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, 92vw); margin-inline: auto; }
section { padding: 92px 0; }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: .72rem; }
/* demo ribbon */
.demo-bar {
background: repeating-linear-gradient(45deg, #f6ddd6, #f6ddd6 12px, #f9e7e2 12px, #f9e7e2 24px);
color: #a05468; font-size: .76rem; letter-spacing: 1.5px; text-transform: uppercase;
text-align: center; padding: 7px 12px; border-bottom: 1px solid var(--line);
}
/* nav */
header.nav { position: sticky; top: 0; z-index: 50; background: rgba(253,246,244,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 700; letter-spacing: .5px; }
.brand span { color: var(--gold); }
nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
nav a { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
nav a:hover { color: var(--ink); }
.btn {
display: inline-block; background: linear-gradient(180deg, var(--gold-2), var(--gold));
color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 999px;
border: 0; cursor: pointer; font-size: .95rem; transition: transform .15s, box-shadow .2s;
box-shadow: 0 8px 22px rgba(199,127,147,.32);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(199,127,147,.45); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.6rem; cursor: pointer; }
/* hero */
.hero { position: relative; background:
linear-gradient(rgba(253,246,244,.40), rgba(253,246,244,.78)),
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='%23fbeae5'/%3E%3Ccircle cx='20' cy='20' r='1.4' fill='%23f0cdc5'/%3E%3C/svg%3E");
border-bottom: 1px solid var(--line); }
.hero-inner { padding: 96px 0 104px; max-width: 720px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 14px 0 6px; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { color: var(--muted); font-size: 1.18rem; max-width: 540px; margin: 18px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-meta b { color: var(--ink); }
/* services */
.sec-head { max-width: 620px; margin-bottom: 46px; }
.sec-head h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-top: 8px; }
.sec-head p { color: var(--muted); margin-top: 10px; }
.grid { display: grid; gap: 18px; }
.services { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .18s, border-color .2s; box-shadow: 0 6px 18px rgba(180,120,130,.06); }
.svc:hover { transform: translateY(-4px); border-color: var(--gold); }
.svc .ic { font-size: 1.8rem; }
.svc h3 { font-size: 1.45rem; margin: 14px 0 6px; }
.svc p { color: var(--muted); font-size: .92rem; min-height: 42px; }
.svc .price { color: var(--gold); font-weight: 700; font-size: 1.05rem; margin-top: 12px; font-family: 'Inter'; }
/* booking */
.booking { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.booking-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.booking-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.gcal-head { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.gcal-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #4caf7d; box-shadow: 0 0 0 3px rgba(76,175,125,.18); margin-right: 12px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { text-align: center; padding: 11px 6px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: .9rem; cursor: pointer; transition: .15s; background: #fdf3f1; }
.slot:hover { border-color: var(--gold); color: var(--gold); }
.slot.off { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.booking ul.points { list-style: none; display: grid; gap: 14px; margin: 22px 0 28px; }
.booking ul.points li { padding-left: 30px; position: relative; color: var(--muted); }
.booking ul.points li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
/* hours / about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.hours td:last-child { text-align: right; color: var(--ink); font-weight: 500; }
/* contact */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
form.lead { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 560px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
width: 100%; background: #fdf3f1; border: 1px solid var(--line); border-radius: 9px;
color: var(--ink); padding: 12px 14px; font: inherit; font-size: .95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.toast { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 9px; background: #eef9ef; border: 1px solid #cdeccf; color: #3b7a44; font-size: .9rem; }
/* footer */
footer { padding: 54px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer .brand { color: var(--ink); }
@media (max-width: 820px) {
nav ul { display: none; }
.nav-toggle { display: block; }
nav.open ul { display: flex; position: absolute; inset: 68px 0 auto 0; flex-direction: column; background: var(--bg-2); padding: 18px 6vw; gap: 18px; border-bottom: 1px solid var(--line); }
.booking-grid, .split { grid-template-columns: 1fr; }
section { padding: 64px 0; }
}
</style>
</head>
<body>
<div class="demo-bar">Beispielseite · So könnte Ihr Online-Auftritt aussehen <button class="cb-open" type="button" onclick="cbOpen()">📞 Rückruf anfordern</button></div>
<header class="nav">
<div class="wrap nav-inner">
<a href="#top" class="brand">HAPPY<span>NAILS</span></a>
<nav id="nav">
<ul>
<li><a href="#leistungen">Leistungen</a></li>
<li><a href="#buchen">Termin buchen</a></li>
<li><a href="#zeiten">Öffnungszeiten</a></li>
<li><a href="#kontakt">Kontakt</a></li>
<li><a href="#buchen" class="btn">Termin buchen</a></li>
</ul>
</nav>
<button class="nav-toggle" aria-label="Menü" onclick="document.getElementById('nav').classList.toggle('open')"></button>
</div>
</header>
<main id="top">
<!-- HERO -->
<section class="hero" id="hero">
<div class="wrap hero-inner">
<span class="eyebrow">Nagelstudio · Nürnberg</span>
<h1>Schöne Nägel.<br><em>Zum Wohlfühlen.</em></h1>
<p>Maniküre, Gel- &amp; Shellac-Nägel und individuelles Nageldesign — mit Liebe und ruhiger Hand gemacht. Sichern Sie sich Ihren Termin in 30 Sekunden online.</p>
<div class="hero-cta">
<a href="#buchen" class="btn">Termin online buchen</a>
<!-- Telefonnummer aus dem öffentlichen Instagram-Profil — bitte vor dem Versand prüfen. -->
<a href="tel:+4917667426558" class="btn ghost">☎ 0176 6742 6558</a>
</div>
<div class="hero-meta">
<span><b>4,9</b> · Top bewertet</span>
<span>💅 Liebe zum Detail</span>
<span>📍 Mitten in Nürnberg</span>
</div>
</div>
</section>
<!-- SERVICES -->
<section id="leistungen">
<div class="wrap">
<div class="sec-head">
<span class="eyebrow">Leistungen</span>
<h2>Was wir für Sie tun</h2>
<p>Faire Preise, gepflegte Atmosphäre — und ein Ergebnis, das man gerne herzeigt.</p>
</div>
<div class="grid services">
<article class="svc"><div class="ic">💅</div><h3>Maniküre</h3><p>Pflege, Form und Lack für gepflegte, natürliche Hände.</p><div class="price">ab 25 €</div></article>
<article class="svc"><div class="ic"></div><h3>Gel- &amp; Shellac-Nägel</h3><p>Langanhaltend, glänzend und in Ihrer Wunschfarbe.</p><div class="price">ab 45 €</div></article>
<article class="svc"><div class="ic">🦶</div><h3>Pediküre</h3><p>Wohltuende Fußpflege — entspannt und gründlich.</p><div class="price">ab 35 €</div></article>
<article class="svc"><div class="ic">🎨</div><h3>Nageldesign &amp; Nail Art</h3><p>Individuelle Designs, French, Steinchen, Muster — ganz nach Wunsch.</p><div class="price">ab 5 € / Nagel</div></article>
</div>
</div>
</section>
<!-- BOOKING -->
<section class="booking" id="buchen">
<div class="wrap booking-grid">
<div>
<span class="eyebrow">Termin buchen</span>
<h2 style="font-size:clamp(2.2rem,5vw,3.2rem);margin:8px 0 6px;">Wählen Sie Ihren Termin.<br>Den Rest machen wir.</h2>
<ul class="points">
<li>Sofortige Bestätigung per E-Mail</li>
<li>Automatische Erinnerung am Vortag</li>
<li>Bequem online — kein Hin und Her per DM</li>
</ul>
<!-- Demo: in der Live-Version öffnet dieser Button die echte Online-Terminbuchung. -->
<a href="#" class="btn" onclick="return false;">Verfügbare Zeiten ansehen →</a>
</div>
<div class="booking-card">
<div class="gcal-head"><span class="gcal-dot"></span> Online-Terminbuchung — <span id="bookDate">heute</span></div>
<div class="slots">
<div class="slot off">09:30</div>
<div class="slot">10:30</div>
<div class="slot">11:30</div>
<div class="slot off">13:00</div>
<div class="slot">14:00</div>
<div class="slot">15:30</div>
<div class="slot">16:30</div>
<div class="slot off">17:30</div>
<div class="slot">18:30</div>
</div>
<p class="form-note" style="margin-top:16px;">Demo-Vorschau. In der Live-Version buchen Ihre Kundinnen hier rund um die Uhr selbst einen freien Termin — mit sofortiger Bestätigung.</p>
</div>
</div>
</section>
<!-- HOURS / ABOUT -->
<section id="zeiten">
<div class="wrap split">
<div>
<span class="eyebrow">Über uns</span>
<h2 style="font-size:clamp(2rem,4.5vw,2.8rem);margin:8px 0 14px;">Ihr Wohlfühl-Moment in Nürnberg.</h2>
<p style="color:var(--muted)">Bei Happy Nails nehmen wir uns Zeit für Sie. In ruhiger, gepflegter Atmosphäre kümmern wir uns um Ihre Hände und Füße — sorgfältig, hygienisch und mit einem Auge fürs Detail. Kommen Sie vorbei und gönnen Sie sich eine kleine Auszeit.</p>
</div>
<div>
<span class="eyebrow">Öffnungszeiten</span>
<!-- Platzhalter-Zeiten — in der Live-Version durch die echten Zeiten ersetzen. -->
<table class="hours" style="margin-top:14px;">
<tr><td>Dienstag Freitag</td><td>09:30 19:00</td></tr>
<tr><td>Samstag</td><td>09:00 16:00</td></tr>
<tr><td>Sonntag &amp; Montag</td><td>geschlossen</td></tr>
</table>
<p class="form-note" style="margin-top:16px;">📍 Nürnberg · genaue Adresse in der Live-Version</p>
</div>
</div>
</section>
<!-- CONTACT / LEAD FORM -->
<section class="contact" id="kontakt">
<div class="wrap">
<div class="sec-head">
<span class="eyebrow">Kontakt</span>
<h2>Frage stellen oder Rückruf anfordern</h2>
<p>Schreiben Sie uns kurz — wir melden uns am selben Tag.</p>
</div>
<!-- Demo: dieses Formular postet an einen n8n-Webhook -> CRM (Leads) + Telegram. -->
<form class="lead" onsubmit="return submitLead(event, this)">
<input type="hidden" name="client_id" value="PREVIEW-HAPPYNAILS" />
<input type="hidden" name="source" value="preview-happynails" />
<div class="field"><label for="a-name">Name</label><input id="a-name" name="name" type="text" placeholder="Ihr Name" required /></div>
<div class="field"><label for="a-contact">E-Mail oder Telefon</label><input id="a-contact" name="contact" type="text" placeholder="name@example.de" required /></div>
<div class="field"><label for="a-svc">Gewünschte Leistung</label>
<select id="a-svc" name="service"><option>Maniküre</option><option>Gel- &amp; Shellac-Nägel</option><option>Pediküre</option><option>Nageldesign &amp; Nail Art</option><option>Auffüllen / Refill</option><option>Sonstiges</option></select>
</div>
<div class="field"><label for="a-msg">Nachricht (optional)</label><textarea id="a-msg" name="message" rows="3" placeholder="Wunschtermin, Frage, …"></textarea></div>
<button class="btn" type="submit">Anfrage senden</button>
<div class="toast">✓ Danke! Demo-Formular — in der Live-Version landet Ihre Anfrage automatisch im System.</div>
<p class="form-note">Mit dem Absenden stimmen Sie der Verarbeitung Ihrer Angaben zur Kontaktaufnahme zu.</p>
</form>
</div>
</section>
</main>
<footer>
<div class="wrap foot-grid">
<div>
<div class="brand">HAPPY<span style="color:var(--gold)">NAILS</span></div>
<p style="margin-top:8px;">Nagelstudio · Nürnberg</p>
</div>
<div>
<p><b style="color:var(--ink)">Öffnungszeiten</b></p>
<p>DiFr 09:3019 · Sa 0916</p>
</div>
<div>
<p><b style="color:var(--ink)">Kontakt</b></p>
<p>0176 6742 6558 · @happynailsnuernberg</p>
</div>
</div>
<div class="wrap" style="margin-top:30px;opacity:.6;font-size:.8rem;">© 2026 Happy Nails Nürnberg · Beispielseite · Impressum · Datenschutz</div>
</footer>
<script>
// Lead-Formular -> n8n Webhook -> CRM (Leads) + Telegram-Benachrichtigung.
const LEAD_WEBHOOK = 'https://n8n.mivanchenko.de/webhook/lead-intake';
async function submitLead(e, form) {
e.preventDefault();
const btn = form.querySelector('button[type=submit]');
const toast = form.querySelector('.toast');
const data = Object.fromEntries(new FormData(form).entries());
const old = btn.textContent;
btn.disabled = true; btn.textContent = 'Senden…';
try {
const r = await fetch(LEAD_WEBHOOK, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(data),
});
if (!r.ok) throw new Error(r.status);
toast.textContent = '✓ Danke! Ihre Anfrage ist eingegangen — wir melden uns.';
toast.style.display = 'block';
form.reset();
} catch (err) {
toast.textContent = '⚠ Senden fehlgeschlagen — bitte erneut versuchen oder direkt anrufen.';
toast.style.display = 'block';
} finally {
btn.disabled = false; btn.textContent = old;
}
return false;
}
</script>
<script>
// Keep the demo booking header on today's date so the example never looks stale.
(function () {
const M = ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'];
const t = new Date();
const el = document.getElementById('bookDate');
if (el) el.textContent = 'heute, ' + t.getDate() + '. ' + M[t.getMonth()];
})();
</script>
<script>window.CB_CTX = { client_id: "PREVIEW-HAPPYNAILS", source: "preview-happynails-callback" };</script>
<!-- ===== Rückruf-Widget (lead capture popup) ===== -->
<style>
.cb-fab { position: fixed; right: 18px; bottom: 18px; z-index: 900; background: var(--gold); color: #fff; border: 0; border-radius: 999px; padding: 13px 20px; font: 600 .95rem system-ui, -apple-system, Segoe UI, Roboto, sans-serif; box-shadow: 0 10px 26px rgba(199,127,147,.32); cursor: pointer; transition: transform .15s, background .2s; }
.cb-fab:hover { transform: translateY(-2px); background: #b56a80; }
.cb-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(60,30,40,.45); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 18px; }
.cb-overlay.open { display: flex; }
.cb-modal { position: relative; width: min(440px, 100%); background: #fff; color: #3b2a2e; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.30); padding: 28px 26px 22px; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; max-height: 92vh; overflow: auto; animation: cbIn .18s ease; }
@keyframes cbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cb-modal h3 { margin: 0 0 4px; font-size: 1.35rem; }
.cb-sub { margin: 0 0 18px; color: #9a8589; font-size: .9rem; }
.cb-x { position: absolute; top: 10px; right: 13px; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: #c9b3b7; cursor: pointer; }
.cb-x:hover { color: #3b2a2e; }
.cb-modal label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 13px; }
.cb-modal label .o { color: #b6a3a7; font-weight: 400; }
.cb-modal input, .cb-modal textarea { width: 100%; margin-top: 5px; font: inherit; font-size: .94rem; color: #3b2a2e; background: #fdf3f1; border: 1px solid #f1e1de; border-radius: 9px; padding: 10px 12px; resize: vertical; }
.cb-modal input:focus, .cb-modal textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.cb-submit { width: 100%; margin-top: 4px; background: var(--gold); color: #fff; border: 0; border-radius: 999px; padding: 13px; font: 600 1rem system-ui; cursor: pointer; transition: background .2s; }
.cb-submit:hover { background: #b56a80; }
.cb-submit:disabled { opacity: .6; cursor: default; }
.cb-toast { display: none; margin-top: 14px; padding: 11px 13px; border-radius: 9px; font-size: .88rem; font-weight: 500; }
.cb-toast.ok { background: #eef9ef; color: #3b7a44; border: 1px solid #cdeccf; }
.cb-toast.err { background: #fdecec; color: #9b2226; border: 1px solid #f3c7c7; }
.cb-open { margin-left: 10px; background: rgba(160,84,104,.10); color: inherit; border: 1px solid rgba(160,84,104,.30); border-radius: 999px; padding: 3px 13px; font: 600 .74rem system-ui; cursor: pointer; letter-spacing: .4px; vertical-align: middle; }
.cb-open:hover { background: rgba(160,84,104,.20); }
@media (max-width: 560px) { .cb-fab { right: 12px; bottom: 12px; padding: 11px 17px; } }
</style>
<button class="cb-fab" type="button" onclick="cbOpen()" aria-label="Rückruf anfordern">📞 Rückruf</button>
<div class="cb-overlay" id="cbOverlay" onclick="cbBg(event)">
<div class="cb-modal" role="dialog" aria-modal="true" aria-labelledby="cbTitle">
<button class="cb-x" type="button" onclick="cbClose()" aria-label="Schließen">&times;</button>
<h3 id="cbTitle">Rückruf anfordern</h3>
<p class="cb-sub">Name &amp; Nummer genügen — wir melden uns bei Ihnen. Alles andere ist optional.</p>
<form onsubmit="return cbSubmit(event, this)">
<input type="hidden" name="client_id" />
<input type="hidden" name="source" />
<label>Name *
<input name="name" required autocomplete="name" placeholder="Vor- und Nachname" />
</label>
<label>Telefon *
<input name="phone" required autocomplete="tel" inputmode="tel" placeholder="+49 …" />
</label>
<label>Gewünschte Leistung <span class="o">(optional)</span>
<input name="service" placeholder="Maniküre, Gelnägel, Pediküre …" />
</label>
<label>Nachricht <span class="o">(optional)</span>
<textarea name="message" rows="2" placeholder="Worum geht es?"></textarea>
</label>
<button class="cb-submit" type="submit">Rückruf anfordern</button>
<div class="cb-toast" id="cbToast"></div>
</form>
</div>
</div>
<script>
const CB_WEBHOOK = 'https://n8n.mivanchenko.de/webhook/lead-intake';
const cbCtx = window.CB_CTX || { client_id: 'PREVIEW', source: 'callback' };
function cbOpen() {
const o = document.getElementById('cbOverlay');
o.querySelector('[name=client_id]').value = cbCtx.client_id;
o.querySelector('[name=source]').value = cbCtx.source;
o.classList.add('open');
document.body.style.overflow = 'hidden';
setTimeout(() => o.querySelector('[name=name]').focus(), 60);
}
function cbClose() {
document.getElementById('cbOverlay').classList.remove('open');
document.body.style.overflow = '';
}
function cbBg(e) { if (e.target.id === 'cbOverlay') cbClose(); }
document.addEventListener('keydown', e => { if (e.key === 'Escape') cbClose(); });
async function cbSubmit(e, form) {
e.preventDefault();
const btn = form.querySelector('.cb-submit');
const toast = document.getElementById('cbToast');
const d = Object.fromEntries(new FormData(form).entries());
let msg = (d.message || '').trim();
const payload = {
client_id: d.client_id, source: d.source,
name: d.name, phone: d.phone,
service_interest: d.service || '', message: msg
};
const old = btn.textContent;
btn.disabled = true; btn.textContent = 'Senden…';
toast.style.display = 'none';
try {
const r = await fetch(CB_WEBHOOK, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload) });
if (!r.ok) throw new Error(r.status);
toast.className = 'cb-toast ok';
toast.textContent = '✓ Danke! Wir rufen Sie zurück.';
toast.style.display = 'block';
form.reset();
setTimeout(cbClose, 2200);
} catch (err) {
toast.className = 'cb-toast err';
toast.textContent = '⚠ Senden fehlgeschlagen. Bitte erneut versuchen.';
toast.style.display = 'block';
} finally {
btn.disabled = false; btn.textContent = old;
}
return false;
}
</script>
<!-- ===== /Rückruf-Widget ===== -->
</body>
</html>
@@ -0,0 +1,433 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>NAILBAR Nürnberg — Nagelstudio | Termin online buchen</title>
<meta name="description" content="Maniküre, Gel- & Shellac-Nägel und individuelles Nageldesign in Nürnberg. Jetzt bequem online einen Termin buchen." />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap" rel="stylesheet" />
<style>
:root {
--bg: #fdf6f4;
--bg-2: #f8e9e5;
--card: #ffffff;
--ink: #3b2a2e;
--muted: #9a8589;
--gold: #a8527a;
--gold-2: #c87fa0;
--line: #f1e1de;
--radius: 16px;
--shadow: 0 18px 50px rgba(180,120,130,.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
background: var(--bg); color: var(--ink);
line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Playfair Display', Georgia, serif; letter-spacing: .2px; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, 92vw); margin-inline: auto; }
section { padding: 92px 0; }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: .72rem; }
/* demo ribbon */
.demo-bar {
background: repeating-linear-gradient(45deg, #f6ddd6, #f6ddd6 12px, #f9e7e2 12px, #f9e7e2 24px);
color: #a05468; font-size: .76rem; letter-spacing: 1.5px; text-transform: uppercase;
text-align: center; padding: 7px 12px; border-bottom: 1px solid var(--line);
}
/* nav */
header.nav { position: sticky; top: 0; z-index: 50; background: rgba(253,246,244,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 700; letter-spacing: .5px; }
.brand span { color: var(--gold); }
nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
nav a { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
nav a:hover { color: var(--ink); }
.btn {
display: inline-block; background: linear-gradient(180deg, var(--gold-2), var(--gold));
color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 999px;
border: 0; cursor: pointer; font-size: .95rem; transition: transform .15s, box-shadow .2s;
box-shadow: 0 8px 22px rgba(199,127,147,.32);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(199,127,147,.45); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.6rem; cursor: pointer; }
/* hero */
.hero { position: relative; background:
linear-gradient(rgba(253,246,244,.40), rgba(253,246,244,.78)),
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='%23fbeae5'/%3E%3Ccircle cx='20' cy='20' r='1.4' fill='%23f0cdc5'/%3E%3C/svg%3E");
border-bottom: 1px solid var(--line); }
.hero-inner { padding: 96px 0 104px; max-width: 720px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 14px 0 6px; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { color: var(--muted); font-size: 1.18rem; max-width: 540px; margin: 18px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-meta b { color: var(--ink); }
/* services */
.sec-head { max-width: 620px; margin-bottom: 46px; }
.sec-head h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-top: 8px; }
.sec-head p { color: var(--muted); margin-top: 10px; }
.grid { display: grid; gap: 18px; }
.services { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .18s, border-color .2s; box-shadow: 0 6px 18px rgba(180,120,130,.06); }
.svc:hover { transform: translateY(-4px); border-color: var(--gold); }
.svc .ic { font-size: 1.8rem; }
.svc h3 { font-size: 1.45rem; margin: 14px 0 6px; }
.svc p { color: var(--muted); font-size: .92rem; min-height: 42px; }
.svc .price { color: var(--gold); font-weight: 700; font-size: 1.05rem; margin-top: 12px; font-family: 'Inter'; }
/* booking */
.booking { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.booking-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.booking-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.gcal-head { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.gcal-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #4caf7d; box-shadow: 0 0 0 3px rgba(76,175,125,.18); margin-right: 12px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { text-align: center; padding: 11px 6px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: .9rem; cursor: pointer; transition: .15s; background: #fdf3f1; }
.slot:hover { border-color: var(--gold); color: var(--gold); }
.slot.off { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.booking ul.points { list-style: none; display: grid; gap: 14px; margin: 22px 0 28px; }
.booking ul.points li { padding-left: 30px; position: relative; color: var(--muted); }
.booking ul.points li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
/* hours / about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.hours td:last-child { text-align: right; color: var(--ink); font-weight: 500; }
/* contact */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
form.lead { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 560px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
width: 100%; background: #fdf3f1; border: 1px solid var(--line); border-radius: 9px;
color: var(--ink); padding: 12px 14px; font: inherit; font-size: .95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.toast { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 9px; background: #eef9ef; border: 1px solid #cdeccf; color: #3b7a44; font-size: .9rem; }
/* footer */
footer { padding: 54px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer .brand { color: var(--ink); }
@media (max-width: 820px) {
nav ul { display: none; }
.nav-toggle { display: block; }
nav.open ul { display: flex; position: absolute; inset: 68px 0 auto 0; flex-direction: column; background: var(--bg-2); padding: 18px 6vw; gap: 18px; border-bottom: 1px solid var(--line); }
.booking-grid, .split { grid-template-columns: 1fr; }
section { padding: 64px 0; }
}
</style>
</head>
<body>
<div class="demo-bar">Beispielseite · So könnte Ihr Online-Auftritt aussehen <button class="cb-open" type="button" onclick="cbOpen()">📞 Rückruf anfordern</button></div>
<header class="nav">
<div class="wrap nav-inner">
<a href="#top" class="brand">NAIL<span>BAR</span></a>
<nav id="nav">
<ul>
<li><a href="#leistungen">Leistungen</a></li>
<li><a href="#buchen">Termin buchen</a></li>
<li><a href="#zeiten">Öffnungszeiten</a></li>
<li><a href="#kontakt">Kontakt</a></li>
<li><a href="#buchen" class="btn">Termin buchen</a></li>
</ul>
</nav>
<button class="nav-toggle" aria-label="Menü" onclick="document.getElementById('nav').classList.toggle('open')"></button>
</div>
</header>
<main id="top">
<!-- HERO -->
<section class="hero" id="hero">
<div class="wrap hero-inner">
<span class="eyebrow">Nagelstudio · Nürnberg</span>
<h1>Schöne Nägel.<br><em>Zum Wohlfühlen.</em></h1>
<p>Maniküre, Gel- &amp; Shellac-Nägel und individuelles Nageldesign — mit Liebe und ruhiger Hand gemacht. Sichern Sie sich Ihren Termin in 30 Sekunden online.</p>
<div class="hero-cta">
<a href="#buchen" class="btn">Termin online buchen</a>
<a href="#kontakt" class="btn ghost">✉ Nachricht senden</a>
</div>
<div class="hero-meta">
<span><b>4,9</b> · Top bewertet</span>
<span>💅 Liebe zum Detail</span>
<span>📍 Mitten in Nürnberg</span>
</div>
</div>
</section>
<!-- SERVICES -->
<section id="leistungen">
<div class="wrap">
<div class="sec-head">
<span class="eyebrow">Leistungen</span>
<h2>Was wir für Sie tun</h2>
<p>Faire Preise, gepflegte Atmosphäre — und ein Ergebnis, das man gerne herzeigt.</p>
</div>
<div class="grid services">
<article class="svc"><div class="ic">💅</div><h3>Maniküre</h3><p>Pflege, Form und Lack für gepflegte, natürliche Hände.</p><div class="price">ab 25 €</div></article>
<article class="svc"><div class="ic"></div><h3>Gel- &amp; Shellac-Nägel</h3><p>Langanhaltend, glänzend und in Ihrer Wunschfarbe.</p><div class="price">ab 45 €</div></article>
<article class="svc"><div class="ic">🦶</div><h3>Pediküre</h3><p>Wohltuende Fußpflege — entspannt und gründlich.</p><div class="price">ab 35 €</div></article>
<article class="svc"><div class="ic">🎨</div><h3>Nageldesign &amp; Nail Art</h3><p>Individuelle Designs, French, Steinchen, Muster — ganz nach Wunsch.</p><div class="price">ab 5 € / Nagel</div></article>
</div>
</div>
</section>
<!-- BOOKING -->
<section class="booking" id="buchen">
<div class="wrap booking-grid">
<div>
<span class="eyebrow">Termin buchen</span>
<h2 style="font-size:clamp(2.2rem,5vw,3.2rem);margin:8px 0 6px;">Wählen Sie Ihren Termin.<br>Den Rest machen wir.</h2>
<ul class="points">
<li>Sofortige Bestätigung per E-Mail</li>
<li>Automatische Erinnerung am Vortag</li>
<li>Bequem online — kein Hin und Her per DM</li>
</ul>
<!-- Demo: in der Live-Version öffnet dieser Button die echte Online-Terminbuchung. -->
<a href="#" class="btn" onclick="return false;">Verfügbare Zeiten ansehen →</a>
</div>
<div class="booking-card">
<div class="gcal-head"><span class="gcal-dot"></span> Online-Terminbuchung — <span id="bookDate">heute</span></div>
<div class="slots">
<div class="slot off">09:30</div>
<div class="slot">10:30</div>
<div class="slot">11:30</div>
<div class="slot off">13:00</div>
<div class="slot">14:00</div>
<div class="slot">15:30</div>
<div class="slot">16:30</div>
<div class="slot off">17:30</div>
<div class="slot">18:30</div>
</div>
<p class="form-note" style="margin-top:16px;">Demo-Vorschau. In der Live-Version buchen Ihre Kundinnen hier rund um die Uhr selbst einen freien Termin — mit sofortiger Bestätigung.</p>
</div>
</div>
</section>
<!-- HOURS / ABOUT -->
<section id="zeiten">
<div class="wrap split">
<div>
<span class="eyebrow">Über uns</span>
<h2 style="font-size:clamp(2rem,4.5vw,2.8rem);margin:8px 0 14px;">Ihr Wohlfühl-Moment in Nürnberg.</h2>
<p style="color:var(--muted)">Bei NAILBAR nehmen wir uns Zeit für Sie. In ruhiger, gepflegter Atmosphäre kümmern wir uns um Ihre Hände und Füße — sorgfältig, hygienisch und mit einem Auge fürs Detail. Kommen Sie vorbei und gönnen Sie sich eine kleine Auszeit.</p>
</div>
<div>
<span class="eyebrow">Öffnungszeiten</span>
<!-- Platzhalter-Zeiten — in der Live-Version durch die echten Zeiten ersetzen. -->
<table class="hours" style="margin-top:14px;">
<tr><td>Dienstag Freitag</td><td>09:30 19:00</td></tr>
<tr><td>Samstag</td><td>09:00 16:00</td></tr>
<tr><td>Sonntag &amp; Montag</td><td>geschlossen</td></tr>
</table>
<p class="form-note" style="margin-top:16px;">📍 Nürnberg · genaue Adresse in der Live-Version</p>
</div>
</div>
</section>
<!-- CONTACT / LEAD FORM -->
<section class="contact" id="kontakt">
<div class="wrap">
<div class="sec-head">
<span class="eyebrow">Kontakt</span>
<h2>Frage stellen oder Rückruf anfordern</h2>
<p>Schreiben Sie uns kurz — wir melden uns am selben Tag.</p>
</div>
<!-- Demo: dieses Formular postet an einen n8n-Webhook -> CRM (Leads) + Telegram. -->
<form class="lead" onsubmit="return submitLead(event, this)">
<input type="hidden" name="client_id" value="PREVIEW-NAILBAR" />
<input type="hidden" name="source" value="preview-nailbar" />
<div class="field"><label for="a-name">Name</label><input id="a-name" name="name" type="text" placeholder="Ihr Name" required /></div>
<div class="field"><label for="a-contact">E-Mail oder Telefon</label><input id="a-contact" name="contact" type="text" placeholder="name@example.de" required /></div>
<div class="field"><label for="a-svc">Gewünschte Leistung</label>
<select id="a-svc" name="service"><option>Maniküre</option><option>Gel- &amp; Shellac-Nägel</option><option>Pediküre</option><option>Nageldesign &amp; Nail Art</option><option>Auffüllen / Refill</option><option>Sonstiges</option></select>
</div>
<div class="field"><label for="a-msg">Nachricht (optional)</label><textarea id="a-msg" name="message" rows="3" placeholder="Wunschtermin, Frage, …"></textarea></div>
<button class="btn" type="submit">Anfrage senden</button>
<div class="toast">✓ Danke! Demo-Formular — in der Live-Version landet Ihre Anfrage automatisch im System.</div>
<p class="form-note">Mit dem Absenden stimmen Sie der Verarbeitung Ihrer Angaben zur Kontaktaufnahme zu.</p>
</form>
</div>
</section>
</main>
<footer>
<div class="wrap foot-grid">
<div>
<div class="brand">NAIL<span style="color:var(--gold)">BAR</span></div>
<p style="margin-top:8px;">Nagelstudio · Nürnberg</p>
</div>
<div>
<p><b style="color:var(--ink)">Öffnungszeiten</b></p>
<p>DiFr 09:3019 · Sa 0916</p>
</div>
<div>
<p><b style="color:var(--ink)">Kontakt</b></p>
<p>@nailbar.nuernberg</p>
</div>
</div>
<div class="wrap" style="margin-top:30px;opacity:.6;font-size:.8rem;">© 2026 NAILBAR Nürnberg · Beispielseite · Impressum · Datenschutz</div>
</footer>
<script>
// Lead-Formular -> n8n Webhook -> CRM (Leads) + Telegram-Benachrichtigung.
const LEAD_WEBHOOK = 'https://n8n.mivanchenko.de/webhook/lead-intake';
async function submitLead(e, form) {
e.preventDefault();
const btn = form.querySelector('button[type=submit]');
const toast = form.querySelector('.toast');
const data = Object.fromEntries(new FormData(form).entries());
const old = btn.textContent;
btn.disabled = true; btn.textContent = 'Senden…';
try {
const r = await fetch(LEAD_WEBHOOK, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(data),
});
if (!r.ok) throw new Error(r.status);
toast.textContent = '✓ Danke! Ihre Anfrage ist eingegangen — wir melden uns.';
toast.style.display = 'block';
form.reset();
} catch (err) {
toast.textContent = '⚠ Senden fehlgeschlagen — bitte erneut versuchen oder direkt anrufen.';
toast.style.display = 'block';
} finally {
btn.disabled = false; btn.textContent = old;
}
return false;
}
</script>
<script>
// Keep the demo booking header on today's date so the example never looks stale.
(function () {
const M = ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'];
const t = new Date();
const el = document.getElementById('bookDate');
if (el) el.textContent = 'heute, ' + t.getDate() + '. ' + M[t.getMonth()];
})();
</script>
<script>window.CB_CTX = { client_id: "PREVIEW-NAILBAR", source: "preview-nailbar-callback" };</script>
<!-- ===== Rückruf-Widget (lead capture popup) ===== -->
<style>
.cb-fab { position: fixed; right: 18px; bottom: 18px; z-index: 900; background: var(--gold); color: #fff; border: 0; border-radius: 999px; padding: 13px 20px; font: 600 .95rem system-ui, -apple-system, Segoe UI, Roboto, sans-serif; box-shadow: 0 10px 26px rgba(199,127,147,.32); cursor: pointer; transition: transform .15s, background .2s; }
.cb-fab:hover { transform: translateY(-2px); background: #b56a80; }
.cb-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(60,30,40,.45); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 18px; }
.cb-overlay.open { display: flex; }
.cb-modal { position: relative; width: min(440px, 100%); background: #fff; color: #3b2a2e; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.30); padding: 28px 26px 22px; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; max-height: 92vh; overflow: auto; animation: cbIn .18s ease; }
@keyframes cbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cb-modal h3 { margin: 0 0 4px; font-size: 1.35rem; }
.cb-sub { margin: 0 0 18px; color: #9a8589; font-size: .9rem; }
.cb-x { position: absolute; top: 10px; right: 13px; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: #c9b3b7; cursor: pointer; }
.cb-x:hover { color: #3b2a2e; }
.cb-modal label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 13px; }
.cb-modal label .o { color: #b6a3a7; font-weight: 400; }
.cb-modal input, .cb-modal textarea { width: 100%; margin-top: 5px; font: inherit; font-size: .94rem; color: #3b2a2e; background: #fdf3f1; border: 1px solid #f1e1de; border-radius: 9px; padding: 10px 12px; resize: vertical; }
.cb-modal input:focus, .cb-modal textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.cb-submit { width: 100%; margin-top: 4px; background: var(--gold); color: #fff; border: 0; border-radius: 999px; padding: 13px; font: 600 1rem system-ui; cursor: pointer; transition: background .2s; }
.cb-submit:hover { background: #b56a80; }
.cb-submit:disabled { opacity: .6; cursor: default; }
.cb-toast { display: none; margin-top: 14px; padding: 11px 13px; border-radius: 9px; font-size: .88rem; font-weight: 500; }
.cb-toast.ok { background: #eef9ef; color: #3b7a44; border: 1px solid #cdeccf; }
.cb-toast.err { background: #fdecec; color: #9b2226; border: 1px solid #f3c7c7; }
.cb-open { margin-left: 10px; background: rgba(160,84,104,.10); color: inherit; border: 1px solid rgba(160,84,104,.30); border-radius: 999px; padding: 3px 13px; font: 600 .74rem system-ui; cursor: pointer; letter-spacing: .4px; vertical-align: middle; }
.cb-open:hover { background: rgba(160,84,104,.20); }
@media (max-width: 560px) { .cb-fab { right: 12px; bottom: 12px; padding: 11px 17px; } }
</style>
<button class="cb-fab" type="button" onclick="cbOpen()" aria-label="Rückruf anfordern">📞 Rückruf</button>
<div class="cb-overlay" id="cbOverlay" onclick="cbBg(event)">
<div class="cb-modal" role="dialog" aria-modal="true" aria-labelledby="cbTitle">
<button class="cb-x" type="button" onclick="cbClose()" aria-label="Schließen">&times;</button>
<h3 id="cbTitle">Rückruf anfordern</h3>
<p class="cb-sub">Name &amp; Nummer genügen — wir melden uns bei Ihnen. Alles andere ist optional.</p>
<form onsubmit="return cbSubmit(event, this)">
<input type="hidden" name="client_id" />
<input type="hidden" name="source" />
<label>Name *
<input name="name" required autocomplete="name" placeholder="Vor- und Nachname" />
</label>
<label>Telefon *
<input name="phone" required autocomplete="tel" inputmode="tel" placeholder="+49 …" />
</label>
<label>Gewünschte Leistung <span class="o">(optional)</span>
<input name="service" placeholder="Maniküre, Gelnägel, Pediküre …" />
</label>
<label>Nachricht <span class="o">(optional)</span>
<textarea name="message" rows="2" placeholder="Worum geht es?"></textarea>
</label>
<button class="cb-submit" type="submit">Rückruf anfordern</button>
<div class="cb-toast" id="cbToast"></div>
</form>
</div>
</div>
<script>
const CB_WEBHOOK = 'https://n8n.mivanchenko.de/webhook/lead-intake';
const cbCtx = window.CB_CTX || { client_id: 'PREVIEW', source: 'callback' };
function cbOpen() {
const o = document.getElementById('cbOverlay');
o.querySelector('[name=client_id]').value = cbCtx.client_id;
o.querySelector('[name=source]').value = cbCtx.source;
o.classList.add('open');
document.body.style.overflow = 'hidden';
setTimeout(() => o.querySelector('[name=name]').focus(), 60);
}
function cbClose() {
document.getElementById('cbOverlay').classList.remove('open');
document.body.style.overflow = '';
}
function cbBg(e) { if (e.target.id === 'cbOverlay') cbClose(); }
document.addEventListener('keydown', e => { if (e.key === 'Escape') cbClose(); });
async function cbSubmit(e, form) {
e.preventDefault();
const btn = form.querySelector('.cb-submit');
const toast = document.getElementById('cbToast');
const d = Object.fromEntries(new FormData(form).entries());
let msg = (d.message || '').trim();
const payload = {
client_id: d.client_id, source: d.source,
name: d.name, phone: d.phone,
service_interest: d.service || '', message: msg
};
const old = btn.textContent;
btn.disabled = true; btn.textContent = 'Senden…';
toast.style.display = 'none';
try {
const r = await fetch(CB_WEBHOOK, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload) });
if (!r.ok) throw new Error(r.status);
toast.className = 'cb-toast ok';
toast.textContent = '✓ Danke! Wir rufen Sie zurück.';
toast.style.display = 'block';
form.reset();
setTimeout(cbClose, 2200);
} catch (err) {
toast.className = 'cb-toast err';
toast.textContent = '⚠ Senden fehlgeschlagen. Bitte erneut versuchen.';
toast.style.display = 'block';
} finally {
btn.disabled = false; btn.textContent = old;
}
return false;
}
</script>
<!-- ===== /Rückruf-Widget ===== -->
</body>
</html>