/* WEF-Manager – Design C2 «Leitstand» */
@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(../fonts/outfit-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(../fonts/outfit-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Outfit; font-weight: 700; font-display: swap; src: url(../fonts/outfit-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Outfit; font-weight: 800; font-display: swap; src: url(../fonts/outfit-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 300; font-display: swap; src: url(../fonts/dm-sans-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url(../fonts/dm-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url(../fonts/dm-sans-latin-500-normal.woff2) format("woff2"); }

:root {
  --ink: #18160E;
  --paper: #F7F4EE;
  --white: #FFFFFF;
  --line: #E2DCCF;
  --line-strong: #CFC7B6;
  --muted: #5E594D;
  --faint: #A39C8C;
  --gold: #B89458;
  --gold-text: #7A5F2E;
  --gold-dark-bg: #D4AF72;
  --alert: #B4470F;
  --display: Outfit, system-ui, sans-serif;
  --text: "DM Sans", system-ui, sans-serif;
  --wrap: 1360px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 15px; line-height: 1.45; }
a { color: inherit; }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .wrap { padding: 0 16px; } }

/* Kopf */
.band { background: var(--ink); color: #F5F2EC; }
.band .wrap { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 36px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.8px; text-decoration: none; color: #F5F2EC; }
.brand span { color: var(--gold-dark-bg); }
.band a:hover { color: var(--gold-dark-bg); }
.days { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.days a { text-decoration: none; display: flex; flex-direction: column; align-items: center; padding: 10px 11px 8px; border-bottom: 3px solid transparent; color: #8E887A; min-width: 44px; }
.days a.official { color: #C9C2B2; }
.days a.active { color: #FFFFFF; border-bottom-color: var(--gold-dark-bg); }
.days small { font-size: 11px; letter-spacing: 2.5px; font-weight: 500; }
.days b { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.1; }
.days a.official b::after { content: ""; display: block; height: 2px; margin-top: 3px; background: #5E594D; }
.band-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 13px; color: #C9C2B2; }
.band-right form { margin: 0; }
.logo { height: 34px; width: auto; display: block; }
.band-right .logo { margin-left: 10px; padding-left: 18px; border-left: 1px solid #3A372E; box-sizing: content-box; }
.guest .band-right .logo { border: 0; padding: 0; margin: 0; }
.year { font-family: var(--display); font-weight: 700; font-size: 18px; color: #F5F2EC; }
.linkbtn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }

.nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.nav .wrap { display: flex; gap: 0 26px; overflow-x: auto; scrollbar-width: none; }
.nav a { text-decoration: none; padding: 14px 0 12px; font-size: 11px; letter-spacing: 2.5px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a.active { color: var(--ink); border-bottom-color: var(--ink); }

main.wrap { padding-top: 36px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 32px; }

/* Typografie */
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; margin: 0; letter-spacing: -0.3px; }
h1 { font-size: 34px; letter-spacing: -1px; line-height: 1; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
.label { font-size: 10px; letter-spacing: 2.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; }
.muted { color: var(--muted); }
.alert-text { color: var(--alert); font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.title-row { display: flex; align-items: center; gap: 12px; }

/* Kennzahlen */
.kpis { display: flex; flex-wrap: wrap; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.kpis > div { flex: 1 1 150px; padding: 18px 24px 18px 0; display: flex; flex-direction: column; gap: 6px; }
.kpis b { font-family: var(--display); font-weight: 800; font-size: 52px; letter-spacing: -2px; line-height: 0.95; font-variant-numeric: tabular-nums; }
.kpis b.alert { color: var(--alert); }

/* Tabellen */
.table-box { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; min-width: 720px; }
table.list th { font-size: 10px; letter-spacing: 2.5px; font-weight: 500; color: var(--muted); text-align: left; padding: 0 12px 8px 0; border-bottom: 1px solid var(--ink); text-transform: uppercase; white-space: nowrap; }
table.list td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list td.r, table.list th.r { text-align: right; white-space: nowrap; }
.obj { display: block; font-family: var(--display); font-weight: 700; font-size: 16px; text-transform: uppercase; }
.sub { display: block; font-size: 12px; color: var(--muted); }
.big { font-family: var(--display); font-weight: 700; font-size: 26px; font-variant-numeric: tabular-nums; }

/* Buttons & Formulare */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: #2C2918; color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--white); color: var(--ink); }
.btn .arrow { color: var(--gold-dark-bg); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input[type=email], .field input[type=date], .field input[type=datetime-local], .field input[type=password], .field input[type=text], .field input[type=tel], .field input:not([type]), .field textarea, .field input[type=file], .field select {
  min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); background: var(--white); font: inherit; font-size: 16px; color: var(--ink); border-radius: 0; }
.field input:focus { border-color: var(--ink); outline: none; }
.error { color: var(--alert); font-size: 13px; font-weight: 500; }
.flash { border-top: 2px solid var(--ink); padding: 14px 0; font-weight: 500; }

/* Info-Button (Hilfetexte zentral in resources/hilfe/de.php) */
.info { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 700; font-size: 13px; cursor: pointer; padding: 0; flex: 0 0 auto; }
.info-pop { max-width: 320px; margin: 0; border: 0; padding: 14px 16px; background: var(--ink); color: #F5F2EC; font-size: 13px; line-height: 1.45; }
.info-pop::backdrop { background: transparent; }

/* Ticker */
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split > .main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split > .side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ticker { border-top: 2px solid var(--ink); }
.ticker a, .ticker div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.ticker time { font-family: var(--display); font-weight: 700; }
.empty { padding: 24px 0; color: var(--muted); border-bottom: 1px solid var(--line); }

/* Import-Vorschau */
.chips { display: flex; flex-wrap: wrap; gap: 0; border-top: 2px solid var(--ink); }
.chips > div { flex: 1 1 120px; padding: 14px 20px 14px 0; }
.chips b { display: block; font-family: var(--display); font-weight: 800; font-size: 36px; letter-spacing: -1px; }
.diff { font-size: 13px; }
.diff del { color: var(--muted); }
.diff ins { text-decoration: none; font-weight: 500; }
.tag { display: inline-block; font-size: 10px; letter-spacing: 2px; font-weight: 500; padding: 3px 8px; border: 1.5px solid var(--ink); text-transform: uppercase; }
.tag.new { background: var(--ink); color: var(--paper); }
.tag.unclear { border-color: var(--alert); color: var(--alert); }
.tag.same { border-color: var(--line-strong); color: var(--muted); }

/* Login */
.guest { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.guest-card { width: 100%; max-width: 420px; margin: 0 auto; padding: 56px 16px; display: flex; flex-direction: column; gap: 22px; }
.qr { background: var(--white); padding: 16px; width: max-content; }
.secret { font-family: var(--display); font-weight: 600; letter-spacing: 1px; font-size: 15px; word-break: break-all; }

@media (max-width: 720px) {
  main.wrap { padding-top: 20px; gap: 24px; }
  .kpis > div { flex: 1 1 30%; padding: 12px 8px 12px 0; }
  .kpis b { font-size: 30px; letter-spacing: -1px; }
  .kpis .label { letter-spacing: 1.5px; }
  .logo { height: 26px; }
  h1 { font-size: 26px; }
}

/* Bereich 2 – Objekte */
.sr { position: absolute; left: -9999px; }
.search { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-strong); background: var(--white); font: inherit; font-size: 15px; width: 340px; max-width: 100%; color: var(--ink); border-radius: 0; }
.search:focus { border-color: var(--ink); outline: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 0 28px; border-bottom: 1px solid var(--line); }
.tabs a { text-decoration: none; padding: 10px 0; font-size: 14px; border-bottom: 2px solid transparent; }
.tabs a span { color: var(--muted); }
.tabs a.on { font-weight: 600; border-bottom-color: var(--ink); }
.kpis .kpi-link { flex: 1 1 150px; padding: 16px 20px 16px 0; display: flex; flex-direction: column; gap: 4px; text-decoration: none; border-bottom: 3px solid transparent; }
.kpis .kpi-link b { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -1.5px; line-height: 1; }
.kpis .kpi-link.on { border-bottom-color: var(--gold); }
.detail-head { border-bottom: 2px solid var(--ink); padding-bottom: 18px; }
h1.xl { font-size: 52px; letter-spacing: -1.8px; line-height: 0.95; }
.label.gold { color: var(--gold-text); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0; }
.seg button { min-height: 44px; font: inherit; font-size: 11px; letter-spacing: 1px; font-weight: 500; cursor: pointer; background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.seg button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 14px 16px 14px 0; display: flex; flex-direction: column; gap: 4px; }
.facts b { font-family: var(--display); font-weight: 700; font-size: 22px; }
.kv-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv .label { padding-top: 3px; }
.note { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.note b { font-family: var(--display); }
.chip { display: inline-block; text-decoration: none; padding: 8px 12px; border: 1.5px solid var(--line-strong); font-size: 13px; font-weight: 500; }
.chip.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.box { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-strong); padding-top: 12px; font-size: 14px; }
.side .box:first-child { border-top: 2px solid var(--ink); }
.box .name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.two-btn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.form-cols { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.form-cols > .main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; }
.form-cols > .side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; }
.fs { border: 0; border-top: 2px solid var(--ink); margin: 0; padding: 14px 0 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fs legend { font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; padding: 0 12px 0 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.grid2 .span2 { grid-column: span 2; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.form-actions { flex: 1 1 100%; display: flex; gap: 12px; border-top: 2px solid var(--ink); padding-top: 18px; }
.field input:not([type]), .field input[type=search] { min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); background: var(--white); font: inherit; font-size: 16px; }
@media (max-width: 720px) {
  h1.xl { font-size: 38px; }
  .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .grid2 .span2 { grid-column: auto; }
  .search { width: 100%; }
  .kv { grid-template-columns: 110px minmax(0, 1fr); }
}

/* Jahresauswahl & Archiv */
.band .brand[aria-label] { font-size: 34px; letter-spacing: -1px; line-height: 1; }
.wefsel { position: relative; }
.wefsel summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.wefsel summary::-webkit-details-marker { display: none; }
.wefsel summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--gold-dark-bg); border-bottom: 2px solid var(--gold-dark-bg); transform: rotate(45deg) translateY(-3px); }
.wefsel[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.wefsel form { position: absolute; top: 100%; left: 0; z-index: 20; margin: 6px 0 0; min-width: 180px; background: var(--ink); border: 1px solid #3A372E; display: flex; flex-direction: column; padding: 6px 0; }
.wefsel button { background: none; border: 0; color: #C9C2B2; font-family: var(--display); font-weight: 700; font-size: 16px; text-align: left; padding: 9px 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wefsel button small { font-family: var(--body); font-weight: 500; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #8E887A; }
.wefsel button:hover, .wefsel button:focus-visible { color: #FFFFFF; background: #24211A; }
.wefsel button.on { color: var(--gold-dark-bg); }
.archive { margin-top: 18px; padding: 10px 14px; border-left: 3px solid var(--gold); background: #EFE8DA; font-size: 13px; }
.archive b { font-family: var(--display); letter-spacing: 1.5px; font-size: 12px; }

/* Kopfzeile: eine Zeile mit Logo · Jahr · (Tage) · Werkzeuge · Binz-Logo */
.band .wrap.bar { flex-wrap: nowrap; gap: 0 28px; min-height: 68px; }
.bar .days { flex: 1 1 auto; min-width: 0; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.tools .logo { margin-left: 4px; padding-left: 18px; border-left: 1px solid #3A372E; box-sizing: content-box; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; color: #C9C2B2; border-radius: 50%; }
.icon-btn:hover, .icon-btn.on { color: var(--gold-dark-bg); background: #24211A; }
.pop { position: relative; }
.pop > summary { list-style: none; cursor: pointer; }
.pop > summary::-webkit-details-marker { display: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #2E2B23; color: #F5F2EC; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .5px; border: 1.5px solid #4A463B; }
.usermenu[open] .avatar, .avatar:hover { border-color: var(--gold-dark-bg); }
.menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; min-width: 220px; background: var(--ink); border: 1px solid #3A372E; display: flex; flex-direction: column; padding: 6px 0; margin: 0; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.menu.right { left: auto; right: 0; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 16px; color: #C9C2B2; text-decoration: none; background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; }
.menu a:hover, .menu button:hover, .menu a:focus-visible, .menu button:focus-visible { color: #FFFFFF; background: #24211A; }
.menu form { margin: 0; }
.menu .who { padding: 10px 16px 12px; border-bottom: 1px solid #3A372E; margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.menu .who b { color: #F5F2EC; font-family: var(--display); font-size: 15px; }
.menu .who span { color: #8E887A; font-size: 12px; }
.wefsel .menu button { font-family: var(--display); font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
@media (max-width: 1180px) {
  .band .wrap.bar { flex-wrap: wrap; }
  .bar .days { order: 5; flex: 1 0 100%; padding-bottom: 2px; }
}
@media (max-width: 720px) {
  .band .wrap.bar { gap: 0 16px; min-height: 60px; }
  .band .brand[aria-label] { font-size: 30px; }
  .tools { gap: 10px; }
  .tools .logo { height: 24px; padding-left: 12px; margin-left: 0; }
  .days a { padding: 8px 9px 6px; min-width: 38px; }
}

/* Tabellen: Zeileninhalt mittig, Zahlen auf gleicher Linie */
table.list td { vertical-align: middle; }
table.list td.big { line-height: 1; }
.crew { display: flex; gap: 6px; flex-wrap: wrap; }
.crew-fn { font-size: 12px; padding: 3px 7px; border: 1px solid var(--line-strong); white-space: nowrap; font-variant-numeric: tabular-nums; }
.crew-fn b { font-weight: 700; letter-spacing: 1px; font-size: 11px; }
.crew-fn.short { border-color: var(--alert); color: var(--alert); }
.crew-fn.ok { border-color: var(--ink); }
table.list td.r, table.list th.r { padding-right: 28px; }

/* Verwaltung */
.vw-head { display: flex; flex-direction: column; gap: 10px; }
.vw-head .tabs { margin: 0; }
.invite { border: 1.5px solid var(--gold); background: var(--white); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.invite-row { display: flex; gap: 8px; flex-wrap: wrap; }
.invite-row input { flex: 1 1 320px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line-strong); font: inherit; font-size: 13px; background: var(--paper); }
.user-cell { display: flex; align-items: center; gap: 12px; }
.avatar.sm { width: 34px; height: 34px; font-size: 12px; flex: 0 0 auto; }
.pill { display: inline-block; font-size: 11px; letter-spacing: 1px; padding: 3px 8px; border: 1px solid var(--ink); text-transform: uppercase; white-space: nowrap; }
.pill.gold { border-color: var(--gold); color: var(--gold-text); }
.pill.alert { border-color: var(--alert); color: var(--alert); }
tr.off td { color: var(--muted); }

tr.editing td { background: #EFE8DA; }
tr.editing td:first-child { box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; }
.fs.editing { border-top-color: var(--gold); }
.cell-in { min-height: 40px; padding: 0 10px; border: 1.5px solid var(--line-strong); background: var(--white); font: inherit; font-size: 14px; }
.range { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.row-actions .btn { padding: 10px 14px; min-height: 40px; }
[hidden] { display: none !important; }

/* Bereich 4 – Kunden */
.pipe { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.pipe a { padding: 16px 14px 14px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.pipe a:first-child { padding-left: 0; }
.pipe a:last-child { border-right: 0; }
.pipe a.on { box-shadow: inset 0 -3px 0 var(--ink); }
.pipe b { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -1.5px; line-height: 1; font-variant-numeric: tabular-nums; }
.pipe small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pipe .lost b { color: var(--muted); }
.step { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.step i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); display: inline-block; }
.step.open i { background: var(--gold); }
.step.lost { color: var(--muted); }
.step.lost i { background: var(--line-strong); }
.due { color: var(--alert); font-weight: 700; }
.seg7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.seg7 button { font: inherit; font-size: 11px; letter-spacing: 1.2px; padding: 12px 4px; border: 1.5px solid var(--line-strong); background: var(--white); cursor: pointer; text-transform: uppercase; color: var(--ink); }
.seg7 button.done { background: #E9E2D3; border-color: #E9E2D3; }
.seg7 button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg7 button:disabled { cursor: default; }
.lock { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px dashed var(--line-strong); padding: 12px 14px; font-size: 14px; }
.contact { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact:last-child { border-bottom: 0; }
.tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-text); }
.note-form { display: flex; gap: 8px; padding-top: 10px; flex-wrap: wrap; }
.note-form input[name=text] { flex: 1 1 260px; width: auto; }
.note-form input[type=date] { width: 170px; }
.contact-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.danger { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) {
  .pipe { grid-template-columns: repeat(4, 1fr); }
  .pipe a:nth-child(4) { border-right: 0; }
  .pipe a:nth-child(5) { padding-left: 0; }
  .seg7 { grid-template-columns: repeat(4, 1fr); }
  .contact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ticker a.tick { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.tick .due { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.contact-row input { width: 100%; box-sizing: border-box; }
.area { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--line-strong); background: var(--white); font: inherit; font-size: 14px; resize: vertical; }
table.list tfoot td { padding-top: 12px; border-bottom: 0; }
.signed-up { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; border: 1.5px solid var(--gold); background: var(--white); padding: 14px 18px; }

/* Bereich 3 – Eigentümervertrag */
.checklist { border: 1.5px solid var(--alert); background: var(--white); padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.checklist.ok { border-color: var(--ink); }
.checklist .x { color: var(--alert); font-weight: 700; }
.checklist.warn { border-color: var(--gold); }
.checklist .w { color: var(--gold-text); font-weight: 700; }
.stage { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 4px; }
.stage .cell-in { width: 100%; box-sizing: border-box; }
.btn:disabled, .seg button:disabled:not(.on) { opacity: .35; cursor: not-allowed; }

/* Bereich 6 – Finanzen */
.pay { display: flex; gap: 6px; align-items: center; }
.pay .btn { min-height: 36px; padding: 0 12px; }
.seg label { min-height: 44px; font-size: 11px; letter-spacing: 1px; font-weight: 500; border: 1.5px solid var(--line-strong); position: relative; }
.seg label.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Bereich 7 – Personal */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.filters .field { min-width: 150px; }
.pickbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; padding: 10px 0; font-size: 14px; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 16px; font-size: 14px; align-items: baseline; }
.kv > span:nth-child(odd) { color: var(--muted); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
.lock { font-size: 11px; letter-spacing: 1px; color: var(--gold-text); }
.secret { display: inline-flex; gap: 8px; align-items: center; }
.eye { border: 0; background: transparent; cursor: pointer; padding: 2px; color: var(--muted); display: inline-flex; }
.eye:hover { color: var(--ink); }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; box-sizing: border-box; padding-right: 44px; }
.pw-wrap .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.days-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.days-pick label { border: 1.5px solid var(--line-strong); background: var(--white); text-align: center; padding: 8px 2px; cursor: pointer; font-size: 14px; }
.days-pick label small { display: block; font-size: 10px; letter-spacing: 1px; }
.days-pick input { position: absolute; opacity: 0; }
.days-pick label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg-r { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.seg-r label { min-height: 52px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line-strong); background: var(--white); font-size: 11px; letter-spacing: 1px; cursor: pointer; text-align: center; }
.seg-r input { position: absolute; opacity: 0; }
.seg-r label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.vorg { background: var(--white); border-left: 3px solid var(--gold); padding: 10px 12px; font-size: 14px; }
.public-card { width: 100%; max-width: 560px; margin: 0 auto; padding: 28px 16px 56px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
.public-card h3 { font-family: Outfit, sans-serif; font-size: 18px; margin: 14px 0 0; }
.up-row { border: 1.5px dashed var(--line-strong); background: var(--white); padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* Bereich 8 – Planung */
.grid8 { border-collapse: collapse; width: 100%; min-width: 980px; font-size: 12px; background: var(--white); }
.grid8 th, .grid8 td { border: 1px solid #E3DCCB; padding: 3px; text-align: center; vertical-align: middle; }
.grid8 th { font-weight: 500; letter-spacing: 1px; font-size: 10px; background: var(--paper); padding: 6px 3px; }
.grid8 th.l { text-align: left; padding-left: 8px; }
.grid8 th.off { color: var(--gold-text); }
.grid8 th.pre { color: var(--muted); font-style: italic; background: #EFEBE2; }
.grid8 td.name { text-align: left; white-space: nowrap; font-size: 13px; padding: 6px 8px; }
.grid8 td.name a { color: inherit; text-decoration: none; }
.grid8 .c { display: block; padding: 4px 2px; font-weight: 600; letter-spacing: .5px; background: #EFE6D2; margin: 1px 0; }
.grid8 .c small { display: block; font-weight: 400; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; margin: 0 auto; }
.grid8 .na { background: repeating-linear-gradient(45deg, #F3EFE6, #F3EFE6 4px, #fff 4px, #fff 8px); }
.grid8 .bad { outline: 2px solid var(--alert); outline-offset: -2px; }
.grid8 .gap { color: var(--alert); font-weight: 700; }
.grid8 .ok { color: #3C6E3C; }
.cellbtn { width: 100%; min-height: 40px; border: 0; background: transparent; cursor: pointer; padding: 0; font: inherit; color: inherit; }
.cellbtn:disabled { cursor: default; }
.cellbtn .empty-c { color: #C9C0AC; font-size: 14px; }
.seg2 { display: inline-flex; }
.seg2 a { padding: 9px 14px; border: 1.5px solid var(--line-strong); font-size: 11px; letter-spacing: 1px; text-decoration: none; color: var(--ink); }
.seg2 a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dlg { border: 1.5px solid var(--ink); padding: 20px; width: min(420px, 92vw); background: var(--paper); }
.dlg::backdrop { background: rgba(24, 22, 14, .35); }
.mine { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.mcard { background: var(--white); border: 1.5px solid var(--line-strong); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; max-width: 560px; box-sizing: border-box; }
.mcard b { font-size: 16px; }
.mcard.today { border-color: var(--ink); }
.mcard .btn { align-self: flex-start; }
.mday { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid #E3DCCB; font-size: 14px; }
.mday.today { font-weight: 700; }

/* Bereich 9 – Logistik */
.ordlines { display: grid; grid-template-columns: minmax(0, 1fr) 90px 110px; gap: 6px; align-items: center; }
.ordlines .cell-in { width: 100%; box-sizing: border-box; }
.seg3s { display: inline-flex; gap: 4px; }
.seg3s button { font: inherit; font-size: 10px; letter-spacing: 1px; padding: 6px 8px; border: 1.5px solid var(--line-strong); background: var(--white); cursor: pointer; }
.seg3s button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.artrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--white); border: 1px solid #E3DCCB; padding: 6px 10px; font-size: 14px; }
.stepper { display: inline-flex; align-items: center; }
.stepper button { width: 36px; height: 36px; border: 1.5px solid var(--line-strong); background: var(--paper); font-size: 18px; cursor: pointer; }
.stepper input { width: 52px; height: 36px; box-sizing: border-box; text-align: center; border: 1.5px solid var(--line-strong); border-left: 0; border-right: 0; font: inherit; }

/* Bereich 10 – WEF-Woche */
.prow { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #E3DCCB; padding-top: 10px; }
.prow .ic { margin-left: 8px; }
.ic { display: inline-flex; gap: 6px; vertical-align: middle; }
.ic a { border: 1.5px solid var(--line-strong); padding: 4px 8px; font-size: 12px; text-decoration: none; min-width: 20px; text-align: center; background: var(--white); }
.st { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.st button { font: inherit; font-size: 11px; letter-spacing: 1px; min-height: 40px; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); cursor: pointer; }
.st button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.move summary { font-size: 13px; text-decoration: underline; cursor: pointer; }
.row-form { display: flex; gap: 8px; margin-top: 6px; }
.row-form select { flex: 1; min-height: 40px; }
.ok { color: #3C6E3C; font-weight: 600; }
.bad { color: var(--alert); font-weight: 600; }
.nowrap { white-space: nowrap; }
.rapport .ln { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 6px; align-items: center; }
.rapport .ln.d input:last-child { grid-column: 1 / -1; }
.rapport .ln.free { grid-template-columns: minmax(0, 1fr) 72px; }
.rapport input, .mine textarea, .mine select, .mcard input:not([type=checkbox]):not([type=file]) { min-height: 40px; border: 1.5px solid var(--line-strong); padding: 4px 8px; font: inherit; width: 100%; box-sizing: border-box; background: var(--white); border-radius: 0; }
.rapport input.n { text-align: right; }
.rapport .item { display: flex; flex-direction: column; gap: 6px; }
.hh { display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px 40px; gap: 6px; align-items: center; }
.add { font: inherit; font-size: 13px; text-decoration: underline; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; align-self: flex-start; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g2 label { display: flex; flex-direction: column; gap: 4px; }
.ph { display: flex; gap: 6px; flex-wrap: wrap; }
.ph img { width: 72px; height: 54px; object-fit: cover; display: block; }
.sig { user-select: none; -webkit-user-select: none; height: 140px; border: 1.5px dashed var(--line-strong); background: var(--white); position: relative; touch-action: none; }
.sig canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sig span { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--muted); pointer-events: none; }
.sig.on span { display: none; }
.sig .add { position: absolute; top: 6px; right: 8px; font-size: 12px; }
.sig-img { height: 70px; object-fit: contain; align-self: flex-start; }

/* Bereich 12 – Karte */
.map-box { width: 100%; min-height: 420px; height: 70vh; border: 1.5px solid var(--line-strong); background: #EDE8DC; }
.map-box[style*="aspect-ratio"] { height: auto; max-height: 80vh; }
.map-box.editing { cursor: crosshair; outline: 2px solid var(--gold); }
.map-leg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; padding-top: 8px; align-items: center; }
.map-leg label { display: inline-flex; gap: 6px; align-items: center; }
.pin { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; font: 700 10px/1 var(--body, sans-serif); border: 1.5px solid #18160E; box-sizing: border-box; }
.pin.kunde { background: #FFE600; color: #18160E; }
.pin.unterkunft { background: #B89458; color: #fff; }
.pin.zentrale, .pin.lager { background: #18160E; color: #fff; }
.map-edit { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; padding: 12px; border: 1.5px solid var(--gold); background: var(--white); }
