/* ============ Trimly Prototyp – Design System ============ */
:root {
  --ink: #101418;
  --ink-2: #2a3138;
  --muted: #6b7684;
  --line: #e6e9ee;
  --bg: #f6f7f9;
  --card: #ffffff;
  --accent: #c8912a;
  --accent-2: #e8b04b;
  --accent-ink: #fff;
  --green: #1e9e63;
  --red: #d64545;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16,20,24,.06), 0 8px 24px rgba(16,20,24,.07);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 78px; } /* Platz für den fixierten Header beim Anspringen */
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.5px; display: flex; align-items: baseline; gap: 8px; }
.logo .logo-mark { align-self: center; flex-shrink: 0; margin-right: 2px; }
.logo .dot { color: var(--accent); }
.logo .slogan { font-family: var(--font); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); white-space: nowrap; }
.main-nav { display: flex; gap: 22px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 9px; font-size: 20px; padding: 5px 11px; line-height: 1; }
.mobile-only { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: #fdecec; color: var(--red); }
.btn-danger:hover { background: #fadada; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 70% -10%, #24313f 0%, #101418 60%);
  color: #fff; padding: 84px 0 100px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-size: 52px; line-height: 1.08; letter-spacing: -1px; }
.hero h1 em { color: var(--accent-2); font-style: normal; }
.hero p.lead { margin: 22px 0 30px; font-size: 18px; color: #b9c2cc; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; margin-top: 42px; flex-wrap: wrap; }
.hero-badge { font-size: 13.5px; color: #96a1ad; display: flex; align-items: center; gap: 8px; }
.hero-badge b { color: #fff; }
.hero-card {
  background: #fff; color: var(--ink); border-radius: 20px; padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.hero-card h3 { font-size: 15px; margin-bottom: 14px; }
.mini-slot { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 9px; font-size: 14px; }
.mini-slot .t { font-weight: 700; }
.mini-slot .ok { color: var(--green); font-size: 12.5px; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-family: var(--font-display); font-size: 34px; letter-spacing: -.5px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature-card .icon { font-size: 26px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-card .plan { font-weight: 700; font-size: 15px; }
.price-card .price { font-size: 42px; font-weight: 800; margin: 12px 0 2px; letter-spacing: -1px; }
.price-card .price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-card .desc { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.price-card ul { list-style: none; margin: 0 0 24px; flex: 1; }
.price-card li { font-size: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.price-card li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.badge-featured { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 20px; }
.compare-note { text-align: center; margin-top: 26px; color: var(--muted); font-size: 14px; }
.compare-note b { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9aa5b0; padding: 48px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer a { display: block; font-size: 13.5px; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.salon-footer { padding: 24px 0; }
.salon-footer .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.salon-footer a { display: inline; padding: 0; }
.footer-bottom { border-top: 1px solid #232a31; padding-top: 20px; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Page layout ---------- */
.page { padding: 44px 0 80px; }
.page-head { margin-bottom: 30px; }
.page-head h1 { font-family: var(--font-display); font-size: 34px; letter-spacing: -.5px; }
.page-head p { color: var(--muted); margin-top: 6px; }

/* ---------- Nearby-Slider (Startseite) ---------- */
.nearby-carousel {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 14px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.nearby-carousel .salon-card {
  flex: 0 0 340px; max-width: 85vw; scroll-snap-align: start;
  flex-direction: column;
}
.nearby-carousel .salon-thumb { width: 100%; height: 84px; font-size: 36px; }
.nearby-carousel::-webkit-scrollbar { height: 8px; }
.nearby-carousel::-webkit-scrollbar-thumb { background: #d3d9e0; border-radius: 4px; }
.carousel-hint { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Search / Map ---------- */
.search-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.salon-list { display: flex; flex-direction: column; gap: 16px; }
#map { height: 560px; border-radius: var(--radius); border: 1px solid var(--line); position: sticky; top: 88px; z-index: 1; }
.search-bar { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.search-bar input, .search-bar select {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 160px;
}
.search-bar input { flex: 1; }

.salon-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; gap: 16px; transition: box-shadow .15s ease, transform .15s ease; cursor: pointer;
}
.salon-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.salon-thumb {
  width: 92px; height: 92px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 34px; color: #fff;
}
.salon-card-body { flex: 1; min-width: 0; }
.salon-card-body h3 { font-size: 16.5px; }
.salon-meta { font-size: 13px; color: var(--muted); margin: 3px 0 8px; }
.stars { color: var(--accent); font-size: 13.5px; letter-spacing: 1px; }
.rating-line { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.rating-line b { font-size: 13.5px; }
.rating-line .count { color: var(--muted); }
.tag { display: inline-block; background: #f0f2f5; border-radius: 6px; padding: 2px 8px; font-size: 12px; color: var(--ink-2); margin-right: 6px; margin-top: 8px; }
.tag.open { background: #e7f6ee; color: var(--green); font-weight: 600; }
.tag.closed { background: #fdecec; color: var(--red); font-weight: 600; }
.tag.promo-tag { background: #fdecec; color: var(--red); font-weight: 700; }
.fav-btn {
  background: none; border: none; font-size: 21px; line-height: 1; color: #c9cfd7;
  cursor: pointer; padding: 2px 6px; flex-shrink: 0; transition: transform .12s, color .12s;
}
.fav-btn:hover { transform: scale(1.15); color: var(--red); }
.fav-btn.active { color: var(--red); }
.fav-btn-hero.active { border-color: var(--accent-2) !important; color: var(--accent-2) !important; }

/* ---------- Salon profile ---------- */
.salon-hero { border-radius: 20px; padding: 44px 40px; color: #fff; position: relative; overflow: hidden; margin-bottom: 28px; }
.salon-hero h1 { font-family: var(--font-display); font-size: 38px; }
.salon-hero .sub { color: rgba(255,255,255,.85); margin-top: 6px; font-size: 15px; }
.salon-hero .rating-line { margin-top: 12px; color: #fff; }
.salon-hero .actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

.profile-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 20px; }
.card h2 { font-size: 18px; margin-bottom: 16px; }
.card h3 { font-size: 15px; margin: 18px 0 10px; }

.service-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: none; }
.service-row .name { font-weight: 600; font-size: 14.5px; }
.service-row .dur { font-size: 12.5px; color: var(--muted); }
.service-row .price { font-weight: 700; white-space: nowrap; }

.hours-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.hours-table td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: right; color: var(--muted); }
.hours-table tr.today td { font-weight: 700; color: var(--ink); }

.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: none; }
.review .head { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 4px; }
.review .head b { font-size: 14px; }
.review .date { color: var(--muted); font-size: 12.5px; }
.review p { font-size: 14px; color: var(--ink-2); }

.team-grid { display: flex; gap: 14px; flex-wrap: wrap; }
.team-member { text-align: center; width: 86px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; margin: 0 auto 7px; }
.team-member .n { font-size: 13px; font-weight: 600; }
.team-member .r { font-size: 11.5px; color: var(--muted); }

/* ---------- Booking wizard ---------- */
.wizard { max-width: 720px; margin: 0 auto; }
.steps { display: flex; gap: 8px; margin-bottom: 28px; }
.step-dot { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.step-dot.active { background: var(--accent); }
.step-label { font-size: 13px; color: var(--muted); margin-bottom: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.option-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
  cursor: pointer; transition: border-color .12s ease, background .12s;
  background: #fff;
}
.option-row:hover { border-color: #c9cfd7; }
.option-row.selected { border-color: var(--accent); background: #fdf8ef; }
.option-row .l b { display: block; font-size: 15px; }
.option-row .l span { font-size: 13px; color: var(--muted); }
.option-row .r { font-weight: 700; }

.date-strip { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; }
.date-pill {
  min-width: 76px; text-align: center; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px 6px; cursor: pointer; background: #fff; flex-shrink: 0;
}
.date-pill.selected { border-color: var(--accent); background: #fdf8ef; }
.date-pill .dow { font-size: 11.5px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.date-pill .d { font-size: 17px; font-weight: 700; margin-top: 2px; }
.date-pill.disabled { opacity: .38; cursor: not-allowed; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 9px; }
.slot {
  text-align: center; padding: 10px 4px; border: 1.5px solid var(--line); border-radius: 10px;
  font-weight: 600; font-size: 14px; cursor: pointer; background: #fff;
}
.slot:hover { border-color: #c9cfd7; }
.slot.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.no-slots { color: var(--muted); font-size: 14px; padding: 18px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: 12px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-group .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .12s;
}
.input:focus { outline: none; border-color: var(--accent); }
textarea.input { resize: vertical; min-height: 110px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.checkbox-row input { margin-top: 3px; }

.summary-box { background: #f9f6ef; border: 1px solid #ecdfc4; border-radius: 12px; padding: 18px; margin-bottom: 22px; }
.summary-box .row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.summary-box .row b { font-weight: 700; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; }

.confirm-panel { text-align: center; padding: 30px 20px; }
.confirm-panel .big-icon { font-size: 56px; margin-bottom: 14px; }
.confirm-panel h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 8px; }
.confirm-panel p { color: var(--muted); max-width: 420px; margin: 0 auto 8px; }
.booking-code { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; letter-spacing: 3px; padding: 10px 22px; border-radius: 10px; margin: 16px 0; font-size: 18px; }

/* ---------- Queue ---------- */
.queue-panel { max-width: 560px; margin: 0 auto; text-align: center; }
.queue-count { font-size: 84px; font-weight: 800; letter-spacing: -3px; line-height: 1; margin: 18px 0 4px; }
.queue-sub { color: var(--muted); margin-bottom: 26px; }
.queue-list { text-align: left; margin-top: 26px; }
.queue-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; margin-bottom: 10px; }
.queue-pos { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.queue-item.me { border-color: var(--accent); background: #fdf8ef; }
.queue-item .qname { font-weight: 600; flex: 1; }
.queue-item .qtime { font-size: 12.5px; color: var(--muted); }
.pulse { display: inline-block; width: 9px; height: 9px; background: var(--green); border-radius: 50%; margin-right: 7px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(30,158,99,.5)} 70%{box-shadow:0 0 0 9px rgba(30,158,99,0)} 100%{box-shadow:0 0 0 0 rgba(30,158,99,0)} }

/* ---------- Auth ---------- */
.auth-card { max-width: 440px; margin: 40px auto; }
.auth-card .card { padding: 34px; }
.auth-card h1 { font-family: var(--font-display); font-size: 27px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.demo-hint { background: #eef4fd; border: 1px solid #d3e2f7; color: #2b5ea7; border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 20px; }

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.dash-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; position: sticky; top: 88px; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.dash-nav a:hover { background: #f2f4f7; }
.dash-nav a.active { background: var(--ink); color: #fff; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.dash-head h1 { font-size: 24px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-card .v { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.stat-card .l { font-size: 13px; color: var(--muted); margin-top: 2px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-block; }
.status.confirmed { background: #e7f6ee; color: var(--green); }
.status.cancelled { background: #fdecec; color: var(--red); }
.status.done { background: #eef1f5; color: var(--muted); }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .form-group { margin-bottom: 0; flex: 1; min-width: 130px; }

.list-editor .service-row { align-items: center; }
.icon-btn { background: none; border: none; font-size: 16px; padding: 6px; border-radius: 7px; color: var(--muted); }
.icon-btn:hover { background: #f2f4f7; color: var(--ink); }

.empty-state { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty-state .big { font-size: 40px; margin-bottom: 12px; }

/* ---------- Toast ---------- */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 11px; font-size: 14px;
  box-shadow: var(--shadow); animation: toast-in .25s ease; max-width: 340px;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: none; } }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 19px; margin: 26px 0 10px; }
.prose p, .prose li { font-size: 14.5px; color: var(--ink-2); margin-bottom: 10px; }
.prose ul { padding-left: 22px; }
.notice { background: #fff8e6; border: 1px solid #f0dfae; border-radius: 10px; padding: 12px 16px; font-size: 13px; color: #7a5c12; margin-bottom: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .search-layout, .profile-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; overflow-x: auto; }
  .dash-nav a { white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  #map { height: 380px; position: static; }

  /* Burger-Menü statt fester Navigation */
  .burger { display: block; }
  .header-actions { margin-left: 0; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 0; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 24px; font-size: 15.5px; color: var(--ink); border-bottom: 1px solid var(--bg); }
  .main-nav a.mobile-only { display: block; }
}

@media (max-width: 600px) {
  /* Header-Buttons ins Burger-Menü verlagert */
  .header-actions { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .site-header .container { gap: 12px; height: 58px; }
  .main-nav { top: 58px; }
  .logo { font-size: 21px; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 31px; }
  .hero p.lead { font-size: 16px; }
  .hero-cta .btn { width: 100%; }
  .hero-badges { gap: 14px; }
  .hero-card { padding: 18px; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 26px; }
  .page { padding: 26px 0 56px; }
  .page-head h1 { font-size: 26px; }
  .salon-hero { padding: 26px 20px; }
  .salon-hero h1 { font-size: 27px; }
  .salon-hero .actions .btn { width: 100%; }
  .salon-card { padding: 13px; gap: 12px; }
  .salon-thumb { width: 68px; height: 68px; font-size: 26px; }
  .card { padding: 17px; }
  .stat-grid { gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .v { font-size: 23px; }
  .wizard-nav .btn-lg { padding: 12px 18px; font-size: 15px; }
  .queue-count { font-size: 62px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .auth-card .card { padding: 22px; }
  /* iOS zoomt bei Eingabefeldern unter 16px – daher 16px auf Mobil */
  .input, input, select, textarea { font-size: 16px; }
  /* Tabellen horizontal scrollbar statt abgeschnitten */
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #toast-container { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; }
}

/* ============ Design-Themes (live umschaltbar, unten links 🎨) ============ */

/* --- Farbwelten --- */
body[data-theme="rot"]     { --accent:#c0392b; --accent-2:#e74c3c; --ink:#141416; --ink-2:#2b2b30; }
body[data-theme="ozean"]   { --accent:#0e7490; --accent-2:#26b3d0; --ink:#0d1b2a; --ink-2:#1b3a4b; }
body[data-theme="violett"] { --accent:#7c3aed; --accent-2:#a78bfa; --ink:#161226; --ink-2:#2a2447; }
body[data-theme="mint"]    { --accent:#0f9d6e; --accent-2:#34d39b; --ink:#0f1f1a; --ink-2:#1e3a30; }
body[data-theme="kupfer"]  { --accent:#b3541e; --accent-2:#e07b39; --ink:#1c1410; --ink-2:#38291f; }

/* --- Schriftpaare (Überschrift + Fließtext) --- */
body[data-font="modern"]   { --font-display:'Space Grotesk',sans-serif; }
body[data-font="elegant"]  { --font-display:'Cormorant Garamond',serif; --font:'Jost',sans-serif; }
body[data-font="plakativ"] { --font-display:'Bebas Neue',sans-serif; }
body[data-font="plakativ"] :is(h1,h2,.logo) { letter-spacing: 1.5px !important; font-weight: 400; }
body[data-font="clean"]    { --font-display:'Inter',sans-serif; }
body[data-font="clean"] :is(h1,h2) { letter-spacing: -1px; }

/* --- Formen (Ecken) --- */
body[data-corners="kantig"] { --radius: 3px; }
body[data-corners="kantig"] :is(.btn,.input,.card,.salon-card,.option-row,.date-pill,.slot,.price-card,.hero-card,.salon-hero,.queue-item,.stat-card,.dash-nav,.notice,.summary-box,.demo-hint,.feature-card,.booking-code,.tag,.mini-slot,.salon-thumb,.status,.dash-nav a,.avatar,.queue-pos) { border-radius: 3px !important; }
body[data-corners="rund"] { --radius: 22px; }
body[data-corners="rund"] :is(.btn,.input,.slot,.date-pill,.tag,.booking-code) { border-radius: 999px !important; }
body[data-corners="rund"] :is(.card,.salon-card,.option-row,.price-card,.hero-card,.queue-item,.stat-card,.feature-card,.summary-box,.notice,.demo-hint,.mini-slot) { border-radius: 22px !important; }

/* Hero & dunkle Flächen folgen dem Theme */
.hero { background: radial-gradient(1200px 500px at 70% -10%, var(--ink-2) 0%, var(--ink) 60%); }

/* Umschalter */
#theme-switcher {
  position: fixed; bottom: 24px; left: 24px; z-index: 998;
}
#theme-switcher .ts-toggle {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 20px; box-shadow: var(--shadow);
}
#theme-switcher .ts-menu {
  display: none; position: absolute; bottom: 56px; left: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; min-width: 170px;
}
#theme-switcher.open .ts-menu { display: block; }
#theme-switcher .ts-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 11px; border: none; background: none; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
#theme-switcher .ts-item:hover { background: #f2f4f7; }
#theme-switcher .ts-item.active { background: #f2f4f7; }
#theme-switcher .ts-dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
@media (max-width: 600px) { #theme-switcher { bottom: 14px; left: 14px; } }

/* ============ Design-Feinschliff (Profi-Polish, überschreibt Basis) ============ */
:root {
  --shadow-sm: 0 1px 2px rgba(16,20,24,.05), 0 2px 8px rgba(16,20,24,.05);
  --shadow-md: 0 2px 4px rgba(16,20,24,.05), 0 12px 32px rgba(16,20,24,.09);
  --shadow-lg: 0 4px 8px rgba(16,20,24,.06), 0 24px 64px rgba(16,20,24,.14);
  --shadow: var(--shadow-md);
}
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--accent); color: #fff; }

/* Typografie-Rhythmus */
h1, h2, h3 { text-wrap: balance; }
.hero h1 { font-size: 56px; line-height: 1.05; }
.section-head h2 { font-size: 36px; }
.section-head p { font-size: 16.5px; line-height: 1.65; }
.eyebrow { font-size: 11.5px; letter-spacing: 2.5px; }

/* Buttons: Tiefe, Zustände, Präzision */
.btn { transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-accent {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 4px 14px color-mix(in srgb, var(--accent) 38%, transparent), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 8px 22px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.28); }
.btn-primary { box-shadow: 0 1px 2px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16,20,24,.28); }
.btn-ghost:hover { background: #fafbfc; }
.btn:focus-visible, .input:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* Eingabefelder: klarer Fokus */
.input { transition: border-color .15s ease, box-shadow .15s ease; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.input:hover:not(:focus) { border-color: #c9cfd7; }

/* Karten: feinere Kanten, ruhige Tiefe */
.card, .feature-card, .price-card { border-color: #eceef2; box-shadow: var(--shadow-sm); }
.feature-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #e0e4ea; }
.feature-card .icon {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 10%, #fff); border-radius: 12px; font-size: 22px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 16px; }
.feature-card p { line-height: 1.6; }

/* Hero: mehr Atmosphäre, weniger Fläche */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 80% -10%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 60%),
    radial-gradient(700px 500px at -10% 110%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 55%),
    linear-gradient(170deg, var(--ink-2) 0%, var(--ink) 55%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 500px at 70% 20%, #000 0%, transparent 75%);
}
.hero .container { position: relative; }
.hero-badge {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  padding: 7px 14px; border-radius: 999px;
}
.hero-card { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06); }
.mini-slot { transition: border-color .15s ease, transform .15s ease; }
.mini-slot:hover { border-color: var(--accent); transform: translateX(2px); }

/* Preis-Karten */
.price-card { transition: transform .18s ease, box-shadow .18s ease; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.featured { transform: scale(1.03); box-shadow: var(--shadow-md); }
.price-card.featured:hover { transform: scale(1.03) translateY(-3px); }

/* Tabellen: ruhiger, lesbarer */
.table thead th { background: #fafbfc; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: #fafbfc; }

/* Navigation: sanfte Unterstreichung */
.main-nav a { position: relative; padding-bottom: 3px; }
@media (min-width: 961px) {
  .main-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
    background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left;
    transition: transform .18s ease;
  }
  .main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
}

/* Auswahl-Elemente im Buchungsflow */
.option-row, .date-pill, .slot { transition: border-color .14s ease, background .14s ease, transform .14s ease, box-shadow .14s ease; }
.option-row:hover, .date-pill:hover:not(.disabled), .slot:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.option-row.selected, .date-pill.selected { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.slot.selected { box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 40%, transparent); }

/* Salon-Karten & Dashboard */
.salon-card { border-color: #eceef2; }
.stat-card { box-shadow: var(--shadow-sm); }
.stat-card .v { background: linear-gradient(180deg, var(--ink), var(--ink-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dash-nav a { transition: background .14s ease, color .14s ease; }

/* Toast: moderner */
.toast { backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-lg); border-radius: 12px; }

/* Footer feiner */
.site-footer { border-top: 3px solid var(--accent); }

/* Scrollbars dezent (Chrome/Edge) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfd5dc; border-radius: 5px; border: 2px solid #f6f7f9; }
::-webkit-scrollbar-thumb:hover { background: #b6bec8; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-3px); }
}

/* ---------- Handy-Mockup im Hero (zeigt die Kunden-Buchungsseite) ---------- */
.phone-frame {
  position: relative; max-width: 340px; margin: 0 auto;
  background: #0b0d10; border-radius: 34px; padding: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.09);
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 20px; background: #0b0d10; border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-screen {
  background: #fff; color: var(--ink); border-radius: 22px; padding: 34px 16px 16px;
  min-height: 380px;
}
.phone-header { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.phone-screen .mini-slot { margin-bottom: 7px; padding: 9px 11px; }
@media (max-width: 960px) { .phone-frame { max-width: 300px; } }

/* ---------- Bezahlt-Badge (Termin-Tabellen im Dashboard) ---------- */
.paid-badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 5px; padding: 3px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .2px;
  user-select: none; white-space: nowrap; cursor: default;
}
.paid-badge.is-paid { background: #dcf5e7; color: #14532d; border: 1.5px solid #86dfab; }
.paid-badge.is-open { background: #fff3d6; color: #92600a; border: 1.5px solid #f2c96b; box-shadow: 0 0 0 3px rgba(242, 201, 107, .18); }

/* ---------- Salon-Foto-Galerie (Kundenseite, automatischer Wechsel) ---------- */
/* Galerie sitzt im farbigen Kopfbereich rechts neben Name & Buchen-Button */
.salon-hero.with-gallery {
  display: flex; align-items: center; justify-content: space-between; gap: 34px;
}
.salon-hero.with-gallery .hero-info { flex: 1; min-width: 0; }
.hero-gallery { flex: 0 0 44%; max-width: 460px; }
.hero-gallery .salon-gallery {
  border: 2px solid rgba(255,255,255,.28);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
@media (max-width: 760px) {
  .salon-hero.with-gallery { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero-gallery { flex: none; max-width: none; }
}
.salon-gallery {
  position: relative; border-radius: var(--radius, 14px); overflow: hidden;
  aspect-ratio: 16 / 9; background: #10151c;
}
.salon-gallery img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease;
}
.salon-gallery img.active { opacity: 1; }
.salon-gallery .gal-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 7px; z-index: 2;
}
.salon-gallery .gal-dots span {
  width: 8px; height: 8px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.45); transition: background .3s, transform .3s;
}
.salon-gallery .gal-dots span.on { background: #fff; transform: scale(1.25); }

/* Galerie-Verwaltung im Dashboard */
.gallery-manage { display: flex; gap: 12px; flex-wrap: wrap; }
.gallery-manage .gal-thumb {
  position: relative; width: 130px; height: 90px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-manage .gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-manage .gal-thumb button {
  position: absolute; top: 5px; right: 5px; border: 0; cursor: pointer;
  background: rgba(0,0,0,.6); color: #fff; border-radius: 7px;
  width: 26px; height: 26px; font-size: 13px; line-height: 1;
}
.gallery-manage .gal-add {
  width: 130px; height: 90px; border: 2px dashed var(--line); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); font-size: 12.5px; gap: 4px; text-align: center;
}
.gallery-manage .gal-add:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Preisseite: Monats- & Jahresabo nebeneinander ---------- */
.pricing-two {
  grid-template-columns: 1fr 1fr;
  max-width: 760px;
  margin: 0 auto;
  align-items: stretch;
}
.pricing-two .price-card { display: flex; flex-direction: column; }
.pricing-two .price-card ul { flex: 1; }
/* Vorteils-Kategorien unter den Preiskarten */
.feature-groups {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; align-items: stretch;
}
.feature-group {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius, 14px);
  padding: 22px; box-shadow: var(--shadow);
}
.feature-group .fg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.feature-group .fg-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(200,145,42,.16), rgba(200,145,42,.05));
  border: 1px solid rgba(200,145,42,.3);
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.feature-group h4 { font-size: 15.5px; line-height: 1.3; }
.feature-group ul { list-style: none; padding: 0; margin: 0; }
.feature-group li {
  position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.5;
  margin-bottom: 9px; color: var(--ink-2);
}
.feature-group li::before {
  content: '✔'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800; font-size: 12px;
}
.welcome-banner {
  margin-top: 18px; padding: 16px 22px; border-radius: var(--radius, 14px);
  background: linear-gradient(135deg, rgba(200,145,42,.14), rgba(200,145,42,.05));
  border: 1px solid rgba(200,145,42,.4); font-size: 14.5px; text-align: center;
}
@media (max-width: 860px) {
  .feature-groups { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pricing-two { grid-template-columns: 1fr; }
}

/* ---------- Ersparnis-Sticker am Jahresabo ---------- */
.pricing-two .price-card { position: relative; overflow: visible; }
.save-sticker {
  position: absolute; top: -26px; right: -18px; z-index: 2;
  width: 108px; height: 108px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #e8b04b, #c8912a 58%, #9a6a15);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; transform: rotate(10deg);
  box-shadow: 0 10px 24px rgba(154, 106, 21, .45), inset 0 0 0 5px rgba(255,255,255,.28);
  animation: sticker-pop .5s cubic-bezier(.2, 1.6, .4, 1) both;
}
.save-sticker .big { font-size: 26px; font-weight: 900; line-height: 1; letter-spacing: -.5px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.save-sticker .small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; line-height: 1.2; margin-top: 4px; }
@keyframes sticker-pop {
  from { transform: rotate(10deg) scale(.4); opacity: 0; }
  to   { transform: rotate(10deg) scale(1); opacity: 1; }
}
@media (max-width: 640px) {
  .save-sticker { top: -20px; right: 6px; width: 92px; height: 92px; }
  .save-sticker .big { font-size: 22px; }
}

/* ---------- Abo-Wahl bei der Registrierung ---------- */
.billing-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bc-option {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: border-color .15s, background .15s; font-weight: 400; margin: 0;
}
.bc-option:hover { border-color: var(--accent); }
.bc-option:has(input:checked) { border-color: var(--accent); background: rgba(200,145,42,.07); }
.bc-option input { margin-top: 3px; accent-color: var(--accent); }
.bc-option .bc-price { font-size: 17px; font-weight: 800; }
.bc-option .bc-sub { font-size: 12px; color: var(--muted); }
.bc-badge {
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800;
  padding: 2px 7px; border-radius: 20px; vertical-align: 2px;
}
@media (max-width: 560px) { .billing-choice { grid-template-columns: 1fr; } }

/* ---------- Buchungsseite-teilen-Box (Salon-Profil) ---------- */
.qr-share { display: flex; gap: 24px; align-items: flex-start; }
.qr-share .qr-img { border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; flex-shrink: 0; }
.qr-share .qr-info { flex: 1; min-width: 0; }
.qr-link-pill {
  display: inline-block; background: var(--ink); color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: .3px;
  padding: 8px 16px; border-radius: 30px;
}
@media (max-width: 640px) {
  .qr-share { flex-direction: column; align-items: center; text-align: center; }
  .qr-share .qr-info > div { justify-content: center; }
}
