/* buchIQ Design System – schlicht, groß, gut lesbar */
:root {
  --primary: #1d4ed8; --primary-dark: #1e40af; --primary-light: #dbeafe; --primary-soft: #eff6ff;
  --ink: #111827; --text: #1f2937; --muted: #6b7280; --faint: #9ca3af;
  --bg: #f5f6f8; --surface: #ffffff; --line: #e5e7eb; --line-strong: #d1d5db;
  --success: #15803d; --success-bg: #dcfce7; --warning: #b45309; --warning-bg: #fef3c7; --danger: #b91c1c; --danger-bg: #fee2e2; --info-bg: #e0f2fe;
  --radius: 10px; --radius-sm: 6px; --shadow: 0 1px 2px rgba(17,24,39,.06), 0 1px 3px rgba(17,24,39,.08); --shadow-lg: 0 10px 30px rgba(17,24,39,.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sidebar: 240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.15rem; } h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .tiny { font-size: .8rem; }
.strong { font-weight: 600; } .center { text-align: center; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.flex { display: flex; gap: .75rem; align-items: center; } .flex-wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; } .col { flex-direction: column; align-items: stretch; }
.grid { display: grid; gap: 1rem; } .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
.hide { display: none !important; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 720px; margin: 0 auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; min-height: 44px; }
.btn:hover { background: #f3f4f6; border-color: var(--faint); }
.btn:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 1px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-danger { color: var(--danger); border-color: #fca5a5; } .btn-danger:hover { background: var(--danger-bg); }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; } .btn-ghost:hover { background: #f3f4f6; }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; min-height: 34px; } .btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; min-height: 52px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }
.btn-icon { padding: .5rem; min-width: 40px; }

/* Forms */
label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--ink); font-size: .95rem; }
.field { margin-bottom: 1.1rem; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=url], input[type=search], input[type=color], select, textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; font-size: 1rem; background: #fff; color: var(--ink); min-height: 46px; transition: border-color .15s, box-shadow .15s; }
input[type=color] { padding: .25rem; height: 46px; width: 70px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
textarea { min-height: 110px; resize: vertical; }
input.error, select.error { border-color: var(--danger); }
.checkbox { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin-top: .15rem; flex-shrink: 0; accent-color: var(--primary); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.input-group { display: flex; } .input-group input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); } .input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 400; }
.switch input { position: absolute; opacity: 0; } .switch .track { width: 44px; height: 26px; border-radius: 13px; background: var(--line-strong); position: relative; transition: background .15s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: var(--shadow); }
.switch input:checked + .track { background: var(--primary); } .switch input:checked + .track::after { transform: translateX(18px); }

/* Cards, tables, badges */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.card-title h2, .card-title h3 { margin: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.table tr:hover td { background: #fafafa; }
.table td.actions { text-align: right; white-space: nowrap; }
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #f3f4f6; color: var(--text); line-height: 1.4; }
.badge-success { background: var(--success-bg); color: var(--success); } .badge-warning { background: var(--warning-bg); color: var(--warning); } .badge-danger { background: var(--danger-bg); color: var(--danger); } .badge-info { background: var(--primary-light); color: var(--primary-dark); } .badge-muted { background: #f3f4f6; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; } .avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.stat .num { font-size: 1.8rem; font-weight: 700; color: var(--ink); line-height: 1.1; } .stat .lbl { color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.alert { padding: .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border: 1px solid transparent; font-size: .95rem; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: #bbf7d0; } .alert-error, .alert-danger { background: var(--danger-bg); color: var(--danger); border-color: #fecaca; } .alert-warning { background: var(--warning-bg); color: var(--warning); border-color: #fde68a; } .alert-info { background: var(--info-bg); color: #075985; border-color: #bae6fd; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .icon { font-size: 2.2rem; margin-bottom: .5rem; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { padding: .7rem 1rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active, .tabs a:hover { color: var(--primary); border-bottom-color: var(--primary); text-decoration: none; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: .9rem; cursor: pointer; }
.pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: 1rem; } .pagination a, .pagination span { padding: .4rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: .9rem; } .pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: .75rem; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: .4rem 1rem; font-size: .95rem; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
.color-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
code, .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: #f3f4f6; padding: .1em .35em; border-radius: 4px; }
pre.code { padding: 1rem; overflow: auto; white-space: pre-wrap; }
details summary { cursor: pointer; font-weight: 600; padding: .5rem 0; }

/* Public site header/footer */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; text-decoration: none !important; }
.logo .mark { width: 32px; height: 32px; border-radius: 8px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; }
.logo span.iq { color: var(--primary); }
.site-nav { display: flex; gap: 1.25rem; align-items: center; }
.site-nav a { color: var(--text); font-weight: 500; } .site-nav a:hover { color: var(--primary); text-decoration: none; }
.site-nav .btn { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: .4rem .6rem; font-size: 1.2rem; }
@media (max-width: 820px) { .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); gap: .75rem; } .site-nav.open { display: flex; } .nav-toggle { display: block; } .site-nav .btn { margin-left: 0; } }
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 2.5rem 0; margin-top: 4rem; color: var(--muted); font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; } .site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); margin-bottom: .75rem; } .site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin-bottom: .4rem; } .site-footer a { color: var(--muted); }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.page { padding: 2.5rem 0; }
.page-head { margin-bottom: 1.5rem; } .page-head h1 { margin-bottom: .25rem; }

/* Marketing */
.hero { padding: 4.5rem 0 3.5rem; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero h1 { font-size: 2.9rem; max-width: 760px; margin-bottom: 1rem; } .hero .lead { font-size: 1.25rem; color: var(--muted); max-width: 640px; margin-bottom: 1.75rem; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; } .hero .note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 2.2rem; } }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock .bar { height: 36px; background: #f3f4f6; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 12px; } .mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d1d5db; display: block; }
.mock .cal { display: grid; grid-template-columns: 50px repeat(3, 1fr); font-size: .72rem; }
.mock .cal .h { background: #fafafa; border-bottom: 1px solid var(--line); padding: 6px; text-align: center; font-weight: 600; color: var(--muted); }
.mock .cal .t { color: var(--faint); border-right: 1px solid var(--line); padding: 4px; text-align: right; height: 34px; border-bottom: 1px solid #f3f4f6; }
.mock .cal .c { border-bottom: 1px solid #f3f4f6; border-right: 1px solid #f3f4f6; position: relative; height: 34px; }
.mock .ev { position: absolute; left: 3px; right: 3px; border-radius: 5px; padding: 3px 6px; color: #fff; font-weight: 600; overflow: hidden; white-space: nowrap; }
.section { padding: 3.5rem 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 2.5rem; } .section-head h2 { font-size: 2rem; } .section-head p { color: var(--muted); font-size: 1.1rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; } .feature .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: .9rem; } .feature h3 { font-size: 1.05rem; } .feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.feature-list { columns: 2; column-gap: 2rem; list-style: none; padding: 0; margin: 0; } .feature-list li { break-inside: avoid; padding: .35rem 0 .35rem 1.6rem; position: relative; } .feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
@media (max-width: 700px) { .feature-list { columns: 1; } }
.price-card { background: #fff; border: 2px solid var(--primary); border-radius: 16px; padding: 2.25rem; max-width: 460px; margin: 0 auto; text-align: center; box-shadow: var(--shadow-lg); }
.price-card .price { font-size: 3.2rem; font-weight: 800; color: var(--ink); line-height: 1; } .price-card .price small { font-size: 1.1rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; } .price-card li { padding: .4rem 0 .4rem 1.7rem; position: relative; } .price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.industry-tile { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.industry-tile:hover { border-color: var(--primary); box-shadow: var(--shadow); text-decoration: none; } .industry-tile .ico { font-size: 1.6rem; width: 44px; text-align: center; } .industry-tile .name { font-weight: 600; } .industry-tile .soon { font-size: .75rem; color: var(--muted); }
.industry-tile.inactive { opacity: .7; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem 1rem; margin-bottom: .6rem; } .faq summary { font-size: 1.02rem; } .faq p { color: var(--muted); margin: .5rem 0 .5rem; }
.steps { counter-reset: s; } .step { position: relative; padding-left: 3.4rem; margin-bottom: 1.5rem; } .step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cta-band { background: var(--primary); color: #fff; padding: 3.5rem 0; text-align: center; } .cta-band h2 { color: #fff; font-size: 2rem; } .cta-band p { opacity: .9; font-size: 1.1rem; } .cta-band .btn { background: #fff; color: var(--primary); border-color: #fff; }
.template-preview { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; } .template-preview .tp-head { height: 70px; } .template-preview .tp-body { padding: .9rem; } .template-preview .tp-body b { display: block; } .template-preview .tp-body span { font-size: .85rem; color: var(--muted); }
.auth-box { max-width: 460px; margin: 3rem auto; }
.legal h2 { margin-top: 2rem; font-size: 1.25rem; } .legal h3 { margin-top: 1.5rem; }

/* App (Dashboard) */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; overflow-y: auto; transition: transform .2s; }
.sidebar .logo { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); font-size: 1.25rem; }
.sidebar nav { padding: .75rem; flex: 1; }
.sidebar nav a { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; margin-bottom: 2px; font-size: .95rem; }
.sidebar nav a .ico { width: 22px; text-align: center; font-size: 1.05rem; opacity: .85; }
.sidebar nav a:hover { background: #f3f4f6; text-decoration: none; } .sidebar nav a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.sidebar nav .group { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: .9rem .8rem .3rem; font-weight: 700; }
.sidebar .user { padding: 1rem 1.25rem; border-top: 1px solid var(--line); font-size: .875rem; }
.sidebar .user b { display: block; color: var(--ink); } .sidebar .user a { color: var(--muted); }
.main { flex: 1; margin-left: var(--sidebar); min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 0 1.5rem; height: 60px; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 40; }
.topbar h1 { font-size: 1.25rem; margin: 0; flex: 1; }
.topbar .menu-btn { display: none; }
.content { padding: 1.5rem; flex: 1; }
.content-narrow { max-width: 900px; }
.trial-banner { background: var(--warning-bg); color: var(--warning); padding: .6rem 1.5rem; font-size: .9rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-bottom: 1px solid #fde68a; }
.impersonate-banner { background: #111827; color: #fff; padding: .5rem 1.5rem; font-size: .875rem; display: flex; justify-content: space-between; align-items: center; } .impersonate-banner a { color: #fbbf24; }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 55; }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); } .sidebar.open { transform: none; } .sidebar-backdrop.open { display: block; }
  .main { margin-left: 0; } .topbar .menu-btn { display: inline-flex; } .content { padding: 1rem; }
  .kv { grid-template-columns: 1fr; gap: 0; } .kv dt { margin-top: .5rem; }
}
.toolbar { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar .search { flex: 1; min-width: 200px; }
.search input { min-height: 44px; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.quick-actions a { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; color: var(--ink); font-weight: 600; } .quick-actions a:hover { border-color: var(--primary); text-decoration: none; } .quick-actions .ico { font-size: 1.5rem; display: block; margin-bottom: .3rem; }
.list { list-style: none; padding: 0; margin: 0; } .list li { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--line); } .list li:last-child { border-bottom: 0; }
.list .time { font-weight: 700; color: var(--ink); min-width: 52px; }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 1.5rem; text-align: center; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; } .photo-grid figure { margin: 0; position: relative; } .photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); } .photo-grid figcaption { font-size: .75rem; color: var(--muted); margin-top: .2rem; }
.photo-grid form { position: absolute; top: 4px; right: 4px; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(17,24,39,.45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem; overflow-y: auto; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 640px; box-shadow: var(--shadow-lg); animation: pop .15s ease-out; }
.modal-lg { max-width: 820px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); } .modal-head h3 { margin: 0; }
.modal-body { padding: 1.25rem; } .modal-foot { padding: 1rem 1.25rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; background: #fafafa; border-radius: 0 0 14px 14px; }
.modal-foot .left, .modal-foot .right { display: flex; gap: .5rem; flex-wrap: wrap; }
.close-x { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); padding: .25rem .5rem; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) { .modal-backdrop { padding: 0; align-items: stretch; } .modal { border-radius: 0; min-height: 100%; } .modal-foot { border-radius: 0; } }
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: var(--radius-sm); z-index: 200; box-shadow: var(--shadow-lg); font-size: .95rem; max-width: 90vw; }
.toast-error { background: var(--danger); } .toast-success { background: var(--success); }

/* Calendar */
.cal-toolbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cal-toolbar .title { font-weight: 700; font-size: 1.15rem; color: var(--ink); min-width: 200px; }
.cal-toolbar .seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; } .cal-toolbar .seg button { border: 0; background: #fff; padding: .5rem .9rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; } .cal-toolbar .seg button.active { background: var(--primary); color: #fff; } .cal-toolbar .seg button + button { border-left: 1px solid var(--line-strong); }
.cal-toolbar select { width: auto; min-height: 40px; padding: .4rem .7rem; }
.cal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-head { display: grid; border-bottom: 1px solid var(--line); background: #fafafa; position: sticky; top: 60px; z-index: 5; }
.cal-head .cell { padding: .5rem .4rem; text-align: center; font-weight: 600; font-size: .85rem; border-left: 1px solid var(--line); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cal-head .cell small { display: block; font-weight: 500; color: var(--muted); }
.cal-head .cell.today { color: var(--primary); } .cal-head .gutter { width: 54px; }
.cal-body { display: grid; position: relative; overflow-x: auto; margin-top: 8px; }
.cal-gutter { width: 54px; position: relative; font-size: .72rem; color: var(--muted); border-right: 1px solid var(--line); }
.cal-gutter div { position: absolute; right: 6px; transform: translateY(-50%); }
.cal-col { position: relative; border-left: 1px solid var(--line); min-width: 0; }
.cal-col .hour { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); } .cal-col .half { position: absolute; left: 0; right: 0; border-top: 1px dashed #f0f1f3; }
.cal-col .offhours { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg, #f7f7f8 0 6px, #fbfbfc 6px 12px); pointer-events: none; }
.cal-col.closed { background: #f7f7f8; }
.cal-col .now { position: absolute; left: 0; right: 0; border-top: 2px solid #ef4444; z-index: 3; pointer-events: none; }
.cal-col .now::before { content: ""; position: absolute; left: -5px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.apt { position: absolute; left: 2px; right: 4px; border-radius: 6px; padding: 4px 6px; font-size: .78rem; line-height: 1.25; color: #fff; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.15); user-select: none; z-index: 2; border-left: 4px solid rgba(0,0,0,.25); }
.apt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .apt span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
.apt.dragging { opacity: .7; z-index: 20; box-shadow: var(--shadow-lg); } .apt.cancelled { opacity: .45; text-decoration: line-through; } .apt.pending { border-style: dashed; } .apt.noshow { opacity: .6; } .apt.completed { filter: saturate(.6); }
.apt.blocker { background: repeating-linear-gradient(45deg, #9ca3af 0 8px, #b3b8c0 8px 16px) !important; color: #fff; }
.apt .resize { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.apt.pause-seg { background: transparent !important; border: 1px dashed rgba(0,0,0,.3); color: var(--muted); box-shadow: none; }
.cal-month { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-month .dow { padding: .5rem; text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); background: #fafafa; }
.cal-month .day { min-height: 110px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: .35rem; font-size: .78rem; cursor: pointer; }
.cal-month .day:hover { background: #fafafa; } .cal-month .day.other { background: #fbfbfc; color: var(--faint); } .cal-month .day.holiday { background: #fff7ed; }
.cal-month .day .d { font-weight: 700; margin-bottom: .2rem; display: flex; justify-content: space-between; } .cal-month .day.today .d span:first-child { background: var(--primary); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.cal-month .ev { border-radius: 4px; padding: 1px 5px; margin-bottom: 2px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .72rem; }
.cal-month .more { color: var(--primary); font-weight: 600; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: .75rem; }
.holiday-bar { background: #fff7ed; color: #9a3412; padding: .5rem .9rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: .75rem; }
.service-pick { display: flex; flex-direction: column; gap: .4rem; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem; }
.service-pick label { display: flex; align-items: center; gap: .6rem; font-weight: 400; margin: 0; padding: .35rem .4rem; border-radius: 4px; cursor: pointer; } .service-pick label:hover { background: #f3f4f6; } .service-pick .cat { font-size: .75rem; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: .4rem .4rem .1rem; }
.service-pick .meta { margin-left: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 30; max-height: 240px; overflow-y: auto; }
.suggest div { padding: .6rem .8rem; cursor: pointer; border-bottom: 1px solid var(--line); } .suggest div:hover { background: var(--primary-soft); } .suggest small { color: var(--muted); display: block; }
.week-grid { display: grid; grid-template-columns: 160px repeat(7, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; font-size: .85rem; }
.week-grid > div { padding: .5rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 52px; }
.week-grid .h { background: #fafafa; font-weight: 600; text-align: center; } .week-grid .n { font-weight: 600; }
.week-grid .shift { background: var(--primary-light); color: var(--primary-dark); border-radius: 4px; padding: 2px 5px; font-size: .75rem; margin-bottom: 2px; cursor: pointer; } .week-grid .shift.absence { background: var(--danger-bg); color: var(--danger); } .week-grid .shift.vacation { background: var(--warning-bg); color: var(--warning); } .week-grid .shift.sick { background: #fce7f3; color: #9d174d; } .week-grid .shift.default { background: #f3f4f6; color: var(--muted); }
.week-grid .add { color: var(--primary); font-size: .8rem; cursor: pointer; }

/* Booking page (public) */
.bp { --bp-primary: #1d4ed8; --bp-bg: #f5f6f8; background: var(--bp-bg); min-height: 100vh; }
.bp-header { background: #fff; border-bottom: 1px solid var(--line); } .bp-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.bp-brand { display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); } .bp-brand img { height: 40px; width: 40px; border-radius: 8px; object-fit: cover; }
.bp-hero { position: relative; min-height: 300px; background: var(--bp-primary); color: #fff; display: flex; align-items: flex-end; } .bp-hero .img { position: absolute; inset: 0; background-size: cover; background-position: center; } .bp-hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.6)); }
.bp-hero .container { position: relative; padding: 2rem 1.25rem; } .bp-hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: .3rem; } .bp-hero p { opacity: .95; font-size: 1.1rem; margin: 0; }
.bp-main { padding: 2rem 0; } .bp-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; } @media (max-width: 860px) { .bp-grid { grid-template-columns: 1fr; } }
.bp .btn-primary { background: var(--bp-primary); border-color: var(--bp-primary); } .bp .btn-primary:hover { filter: brightness(.9); }
.bp-cta { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: .75rem 1.25rem; display: none; } @media (max-width: 860px) { .bp-cta { display: block; } }
.svc-cat { margin-bottom: 1.5rem; } .svc-cat h3 { margin-bottom: .25rem; } .svc-cat .desc { color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.svc { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); } .svc:last-child { border-bottom: 0; } .svc img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; } .svc .n { font-weight: 600; color: var(--ink); } .svc .d { color: var(--muted); font-size: .875rem; } .svc .p { margin-left: auto; text-align: right; white-space: nowrap; font-weight: 600; } .svc .p small { display: block; color: var(--muted); font-weight: 400; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; } .team .m { text-align: center; } .team .m .avatar { margin: 0 auto .5rem; width: 84px; height: 84px; font-size: 1.5rem; } .team .m b { display: block; } .team .m span { font-size: .85rem; color: var(--muted); }
.hours { list-style: none; padding: 0; margin: 0; font-size: .95rem; } .hours li { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid var(--line); } .hours li.today { font-weight: 600; color: var(--ink); }
.bp-footer { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .85rem; } .bp-footer a { color: var(--muted); margin: 0 .5rem; }
/* Booking wizard */
.wizard { max-width: 760px; margin: 0 auto; }
.wz-steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; } .wz-steps div { flex: 1; text-align: center; font-size: .8rem; color: var(--muted); padding-top: .4rem; border-top: 3px solid var(--line); } .wz-steps div.active { color: var(--bp-primary); border-top-color: var(--bp-primary); font-weight: 600; } .wz-steps div.done { border-top-color: var(--success); }
.wz-svc { display: flex; align-items: center; gap: .9rem; padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .5rem; cursor: pointer; background: #fff; } .wz-svc:hover { border-color: var(--bp-primary); } .wz-svc.sel { border-color: var(--bp-primary); background: color-mix(in srgb, var(--bp-primary) 6%, #fff); box-shadow: 0 0 0 1px var(--bp-primary); }
.wz-svc input { width: 22px; height: 22px; accent-color: var(--bp-primary); } .wz-svc .n { font-weight: 600; color: var(--ink); } .wz-svc .d { color: var(--muted); font-size: .85rem; } .wz-svc .p { margin-left: auto; font-weight: 600; white-space: nowrap; }
.wz-staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; } .wz-staff .s { text-align: center; padding: 1rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: #fff; } .wz-staff .s.sel { border-color: var(--bp-primary); box-shadow: 0 0 0 1px var(--bp-primary); } .wz-staff .avatar { margin: 0 auto .5rem; width: 60px; height: 60px; font-size: 1.2rem; }
.wz-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .wz-cal .dn { text-align: center; font-size: .75rem; color: var(--muted); font-weight: 600; padding: .3rem 0; } .wz-cal button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .55rem 0; font: inherit; cursor: pointer; min-height: 44px; } .wz-cal button:disabled { color: var(--faint); background: #fafafa; cursor: not-allowed; border-color: transparent; } .wz-cal button.avail { border-color: var(--line-strong); font-weight: 600; color: var(--ink); } .wz-cal button.sel { background: var(--bp-primary); color: #fff; border-color: var(--bp-primary); } .wz-cal button.empty { visibility: hidden; }
.wz-month { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; font-weight: 700; }
.wz-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; } .wz-slots button { border: 1px solid var(--line-strong); background: #fff; border-radius: 8px; padding: .6rem 0; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; } .wz-slots button.sel, .wz-slots button:hover { background: var(--bp-primary); color: #fff; border-color: var(--bp-primary); }
.wz-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; } .wz-summary .row { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid var(--line); } .wz-summary .row:last-child { border: 0; font-weight: 700; }
.wz-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; }
.success-box { text-align: center; padding: 2rem 1rem; } .success-box .ico { width: 72px; height: 72px; border-radius: 50%; background: var(--success-bg); color: var(--success); font-size: 2rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }

/* Template-Varianten Buchungsseite */
.bp-elegant { --bp-bg: #f3f2ef; } .bp-elegant .bp-header { background: #111827; border: 0; } .bp-elegant .bp-brand { color: #fff; } .bp-elegant .bp-header a { color: #fff; } .bp-elegant .bp-hero { background: #1f2937; } .bp-elegant h1, .bp-elegant h2, .bp-elegant h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0; }
.bp-frisch { --bp-bg: #f0fdfa; } .bp-frisch .card { border-radius: 20px; border: 0; } .bp-frisch .bp-hero { border-radius: 0 0 40px 40px; } .bp-frisch .btn { border-radius: 999px; }
.bp-minimal .bp-hero { background: #fff; color: var(--ink); min-height: 0; border-bottom: 1px solid var(--line); } .bp-minimal .bp-hero .shade, .bp-minimal .bp-hero .img { display: none; } .bp-minimal .bp-hero h1 { color: var(--ink); } .bp-minimal .bp-hero p { color: var(--muted); } .bp-minimal { --bp-bg: #fff; } .bp-minimal .card { box-shadow: none; }
.bp-warm { --bp-bg: #fbf7f1; } .bp-warm .card { background: #fffdf9; border-color: #eadfd0; } .bp-warm .bp-header { background: #fffdf9; border-color: #eadfd0; }
.bp-urban { --bp-bg: #ececec; } .bp-urban .bp-header { background: #111; border: 0; } .bp-urban .bp-brand, .bp-urban .bp-header a { color: #fff; } .bp-urban .card, .bp-urban .btn { border-radius: 0; } .bp-urban h1, .bp-urban h2, .bp-urban h3 { text-transform: uppercase; letter-spacing: .04em; } .bp-urban .bp-hero { background: #111; }

/* Print */
@media print { .sidebar, .topbar, .site-header, .site-footer, .no-print, .trial-banner, .impersonate-banner, .toolbar { display: none !important; } .main { margin: 0; } .content { padding: 0; } body { background: #fff; } .card { box-shadow: none; border: 1px solid #ccc; } }

@media (max-width: 600px) { .hide-mobile { display: none; } }
