:root {
  --bg: #f6f4ef; --paper: #fffdf9; --ink: #1d1c1a; --muted: #6d6a63; --line: #e3dfd5; --soft: #efece4;
  --site: #2a2925; --ok: #23694a; --warn: #9a5b10; --bad: #a3312a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.01em; }
h2 { font-size: 22px; }
h2 small { font: 500 14px var(--sans); color: var(--muted); margin-left: 6px; }
main { max-width: 1120px; margin: 0 auto; padding: 36px 20px 80px; }
.lead { color: var(--muted); font-size: 18px; margin: 8px 0 28px; }
.help, .fine { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
code, pre { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
pre { background: var(--soft); padding: 12px 14px; border-radius: 8px; overflow-x: auto; margin: 6px 0 16px; }

.top { display: flex; align-items: center; gap: 28px; padding: 14px 20px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { font: 600 19px var(--serif); text-decoration: none; white-space: nowrap; }
.brand span { background: var(--ink); color: var(--paper); padding: 2px 7px; border-radius: 4px; font: 700 13px var(--sans); letter-spacing: .08em; vertical-align: 2px; margin-right: 4px; }
.top nav { display: flex; gap: 4px; flex: 1; }
.top nav a { text-decoration: none; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.top nav a:hover { background: var(--soft); }
.top nav a[aria-current] { color: var(--ink); background: var(--soft); }
.alpha { background: #2a2925; color: #e9e4d6; font-size: 13px; text-align: center; padding: 6px 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 15px var(--sans); padding: 10px 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #bdb8ab; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #000; }
.btn.big { font-size: 17px; padding: 14px 22px; }
.btn.small { font-size: 13px; padding: 6px 10px; }
.btn.danger { color: var(--bad); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--site) 55%, white); outline-offset: 2px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 24px 0 36px; }
.kpis div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpis b { display: block; font: 600 34px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.kpis span { color: var(--muted); font-size: 14px; }

.group { margin-bottom: 36px; }
.group h2 { margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.card { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--site); border-radius: 12px; padding: 16px 18px; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 6px 22px rgba(40, 35, 20, .09); transform: translateY(-1px); }
.card-top, .card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.site { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--site); }
.card h3 { font-size: 21px; margin: 10px 0 2px; }
.sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.bar { height: 5px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--site); }
.card-foot { font-size: 13px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 40px 0; }

.pill { display: inline-block; font: 600 12px var(--sans); padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill.large { font-size: 14px; padding: 6px 14px; }
.pill.laeuft { background: #dcefe4; color: var(--ok); }
.pill.geplant { background: #e1e9f5; color: #2b4f86; }
.pill.entwurf { background: #f6e8cf; color: var(--warn); }
.pill.erreicht { background: #e6e0f3; color: #54408a; }
.pill.demo { vertical-align: middle; font-family: var(--sans); }

.crumb { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.titlerow { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: #fbf1dc; border: 1px solid #ecd9ae; border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; }
.notice p { margin: 4px 0 0; max-width: 60ch; }
.notice-actions { display: flex; gap: 10px; }
.hint { background: #e9eef6; border: 1px solid #cdd8ea; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-size: 15px; }
.hint ul { margin: 6px 0; padding-left: 20px; }
.errors { background: #fbe6e3; border: 1px solid #efc2bc; color: #6f1f19; border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; }
.errors ul { margin: 6px 0 0; padding-left: 20px; }
.errors p { margin: 8px 0 0; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 16px; }
.panel h2 { margin-bottom: 12px; }
.panel.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.panel p { margin: 0 0 10px; }
details.panel summary { cursor: pointer; }
details.panel summary h2 { display: inline; margin: 0; }
details.panel[open] summary { margin-bottom: 16px; }
.chart { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line); }
.chart i { flex: 1; background: var(--site); opacity: .82; border-radius: 2px 2px 0 0; min-width: 2px; }
.chart i:hover { opacity: 1; }
.chart-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.banner { display: flex; gap: 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.banner:first-of-type { border-top: 0; }
.thumb { width: 220px; flex: none; background: var(--soft); border-radius: 6px; padding: 6px; display: grid; place-items: center; }
.thumb img { max-width: 100%; max-height: 130px; display: block; }
.banner-info { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.banner-info b { color: var(--ink); font-size: 16px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.target { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; overflow-wrap: anywhere; }
.copy { display: flex; gap: 8px; margin-bottom: 10px; }
.copy input { flex: 1; min-width: 0; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; }

.step { margin: 30px 0 0; }
.step h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.step h2 i { font: 700 15px var(--sans); width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sitecard { display: block; text-decoration: none; background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 18px 20px; border-left: 8px solid var(--site); }
.sitecard b { display: block; font: 600 22px var(--serif); }
.sitecard span { color: var(--muted); font-size: 14px; }
.sitecard:hover, .sitecard.on { border-color: var(--site); }
.sitecard.on { background: color-mix(in srgb, var(--site) 8%, var(--paper)); }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
label small { font-weight: 400; color: var(--muted); }
input:not([type=checkbox]):not([type=file]) { display: block; width: 100%; margin-top: 6px; font: 16px var(--sans); padding: 11px 12px; border: 1px solid #cfcabd; border-radius: 9px; background: #fff; color: var(--ink); }
input[type=file] { font: 14px var(--sans); max-width: 100%; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.narrow { max-width: 320px; margin-top: 12px; }
.step details summary { cursor: pointer; color: var(--muted); font-size: 15px; }
.upload { background: var(--paper); border: 1px dashed #bdb8ab; border-radius: 12px; padding: 14px 16px; font-weight: 400; }
.upload span { display: block; margin-bottom: 8px; }
.upload output { display: block; font-size: 14px; margin-top: 6px; }
.upload output.ok { color: var(--ok); }
.upload output.bad { color: var(--bad); font-weight: 600; }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 14px; }

/* page sketch with clickable placements */
.wire { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.wire figure { margin: 0; }
.wire figcaption { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.w-frame { background: var(--paper); border: 1px solid #cfcabd; border-radius: 10px; padding: 10px; display: grid; gap: 8px; }
.w-phone .w-frame { border-radius: 22px; padding: 14px 10px; border-width: 3px; }
.w-url { background: var(--soft); border-radius: 99px; font-size: 11px; color: var(--muted); padding: 3px 12px; }
.w-head { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--site); padding-bottom: 6px; font: 600 14px var(--serif); color: var(--site); }
.w-head u { flex: none; width: 34px; height: 5px; background: var(--line); border-radius: 3px; margin-left: 4px; }
.w-head b { margin-right: auto; }
.w-cols { display: grid; grid-template-columns: 1fr 34%; gap: 10px; }
.w-art h4 { height: 12px; width: 70%; background: #d6d1c4; border-radius: 3px; margin: 2px 0 8px; }
.w-art p { height: 5px; background: var(--line); border-radius: 3px; margin: 0 0 6px; }
.w-art p:nth-child(odd) { width: 92%; }
.w-img { height: 70px; background: var(--soft); border-radius: 5px; margin: 6px 0 8px; }
.w-side { display: grid; gap: 8px; align-content: start; }
.slot { position: relative; display: grid; place-content: center; text-align: center; gap: 1px; margin: 0; padding: 8px 6px; min-height: 62px; cursor: pointer; border: 2px dashed color-mix(in srgb, var(--site) 55%, white); border-radius: 8px; background: color-mix(in srgb, var(--site) 6%, white); font-weight: 400; font-size: 12px; color: var(--muted); transition: background .12s; }
.slot b { font-size: 14px; color: var(--ink); }
.slot em { font-style: normal; font-size: 11px; }
.slot em.free { color: var(--ok); font-weight: 600; }
.slot em.busy { color: var(--warn); }
.slot input { position: absolute; top: 7px; left: 7px; width: 17px; height: 17px; accent-color: var(--site); }
.slot:hover { background: color-mix(in srgb, var(--site) 14%, white); }
.slot:has(:checked) { border-style: solid; border-color: var(--site); background: color-mix(in srgb, var(--site) 20%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--site) 22%, transparent); }
.s-halfpage { min-height: 170px; }
.s-billboard { min-height: 74px; }

/* occupancy calendar */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 15px; }
.tabs a[aria-current] { background: var(--site); border-color: var(--site); color: #fff; }
.cal-scroll { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.cal { min-width: 860px; }
.cal-row { display: grid; grid-template-columns: 170px 1fr; border-top: 1px solid var(--line); }
.cal-head { border-top: 0; font-size: 12px; color: var(--muted); }
.cal-name { padding: 10px 14px; border-right: 1px solid var(--line); }
.cal-name b { display: block; font-size: 15px; }
.cal-name span { font-size: 12px; color: var(--muted); }
.cal-track { position: relative; min-height: 34px; }
.cal-head .cal-track span { position: absolute; top: 9px; padding-left: 6px; white-space: nowrap; }
.grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--soft); }
.now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bad); z-index: 2; }
.cal-bar { position: absolute; height: 28px; border-radius: 6px; padding: 0 8px; font: 600 12px/28px var(--sans); color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--site); z-index: 1; }
.cal-bar.geplant { background: color-mix(in srgb, var(--site) 60%, white); }
.cal-bar.entwurf { background: repeating-linear-gradient(135deg, #f0dfbd 0 8px, #f7ecd4 8px 16px); color: #6b4a12; border: 1px solid #dcc390; }
.cal-bar.beendet, .cal-bar.pausiert, .cal-bar.erreicht { background: #c9c4b7; color: #4b483f; }
.legend { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; --site: #55524a; }
.legend i { position: static; display: inline-block; width: 22px; height: 12px; padding: 0; margin-left: 10px; }
.legend i.now { width: 2px; height: 14px; }

/* customer report */
.report main { max-width: 760px; padding-top: 60px; }
.report .site { margin: 0 0 10px; }

/* preview: a stand-in magazine page carrying the real tags */
.pv { background: #fff; }
.pv-note { background: #2a2925; color: #e9e4d6; font-size: 13px; padding: 8px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pv-note a { margin-left: 12px; }
.pv-head { display: flex; align-items: baseline; gap: 34px; padding: 22px max(20px, calc(50% - 530px)); border-bottom: 3px solid var(--site); }
.pv-head b { font: 700 30px var(--serif); color: var(--site); }
.pv-head nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; overflow: hidden; }
.pv-wrap { max-width: 1100px; margin: 0 auto; padding: 22px 20px 70px; }
.pv-billboard { margin: 0 auto 26px; max-width: 970px; }
.pv-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; }
.pv article { font: 19px/1.65 var(--serif); }
.pv article h1 { font-size: clamp(30px, 4vw, 46px); margin: 6px 0 14px; }
.pv-kicker { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--site); margin: 0; }
.pv-intro { font-size: 22px; color: #44423c; }
.pv-photo { aspect-ratio: 16 / 9; border-radius: 4px; background: linear-gradient(140deg, color-mix(in srgb, var(--site) 70%, white), color-mix(in srgb, var(--site) 25%, white)); margin: 20px 0; }
.pv aside { display: grid; gap: 26px; align-content: start; }
.pv-box { border-top: 3px solid var(--ink); padding-top: 10px; font-size: 14px; }
.pv-box p, .pv-mailbody p { height: 9px; background: var(--soft); border-radius: 3px; margin: 12px 0; }
.pv-mobil { display: none; margin: 20px auto; width: 300px; max-width: 100%; }
.pv-mail { margin-top: 60px; border-top: 1px solid var(--line); padding-top: 26px; }
.pv-mailbody { max-width: 640px; border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-top: 14px; }
.pv-mailbody b { font: 600 18px var(--serif); color: var(--site); }
.pv-mailbody img { display: block; max-width: 100%; height: auto; }

@media (max-width: 767px) {
  .top { flex-wrap: wrap; gap: 10px 14px; }
  .top nav { order: 3; flex-basis: 100%; }
  .top .btn { margin-left: auto; }
  .wire { grid-template-columns: 1fr; }
  .w-phone, .w-mail { max-width: 300px; }
  .pv-cols { grid-template-columns: 1fr; }
  .pv aside [data-jam] { display: none !important; }
  .pv-mobil { display: block; }
  .pv-head nav { display: none; }
  .thumb { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
