/* Kundenbereich – Bellas Palette, nur Montserrat (selbst gehostet) */
@font-face { font-family: 'Montserrat'; font-weight: 300; font-display: swap; src: url(/static/fonts/montserrat-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap; src: url(/static/fonts/montserrat-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url(/static/fonts/montserrat-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url(/static/fonts/montserrat-latin-700-normal.woff2) format('woff2'); }

:root {
  --rust: #994217;
  --rust-dark: #7c3410;
  --cream: #f7f3ec;
  --bronze: #d69e73;
  --sage: #8d9580;
  --slate: #7a8990;
  --ink: #2a2a2a;
  --white: #fff;
  --beige: #ebe2d6;
  --sage-light: #eef0ea;
  --bronze-light: #f6e9de;
  --line: rgba(42, 42, 42, 0.1);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(42, 42, 42, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: 'Montserrat', system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased;
}
a { color: var(--rust); }
a:hover { color: var(--rust-dark); }
h1, h2 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.03em; }
.h-thin { font-weight: 300; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.h-thin strong { font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Kopfzeile – rostfarbene Pille wie auf bellamock.de */
.top { padding: 14px 16px 0; }
.top-inner {
  max-width: 960px; margin: 0 auto; min-height: 60px; padding: 8px 12px 8px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: 999px; background: rgba(153, 66, 23, 0.96); box-shadow: 0 12px 30px -14px rgba(13, 33, 73, 0.35);
}
.top-inner.wide { max-width: 1180px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img { height: 34px; width: auto; }
.brand span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.4); opacity: 0.9; }
.topnav { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.topnav a, .topnav .linkbtn { text-decoration: none; color: var(--white); font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.topnav a:hover, .topnav .linkbtn:hover { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.topnav form { margin: 0; }

main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 28px 16px 48px; }
main.wide { max-width: 1180px; }

.foot { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 22px 16px 30px; font-size: 0.82rem; color: var(--slate); }
.foot a { color: var(--slate); }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border: 0; border-radius: 999px; background: var(--rust); color: var(--white);
  font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--rust-dark); color: var(--white); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, .linkbtn:focus-visible, summary:focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--rust); box-shadow: inset 0 0 0 1.5px var(--rust); }
.btn-ghost:hover { background: var(--bronze-light); color: var(--rust-dark); }
.btn-light { background: var(--white); color: var(--rust); }
.btn-light:hover { background: var(--bronze-light); color: var(--rust-dark); }
.btn-danger { background: #a3321f; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--rust); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.danger { color: #a3321f; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.btnrow form { margin: 0; }

/* Formulare */
.form { display: grid; gap: 16px; margin-bottom: 8px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.hint { font-weight: 400; color: var(--slate); font-size: 0.82rem; }
input, select, textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #d9d2c7; border-radius: 12px; background: var(--white);
}
input:focus, select:focus, textarea:focus { border-color: var(--bronze); outline: none; }
input[type='file'] { padding: 10px; background: var(--cream); }
textarea { resize: vertical; line-height: 1.5; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.check input { width: 20px; height: 20px; accent-color: var(--rust); }
.code { font-size: 1.5rem; letter-spacing: 0.3em; text-align: center; font-weight: 600; }
.row2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }

/* Hinweise */
.alert, .ok, .info { padding: 12px 16px; border-radius: 12px; font-size: 0.92rem; }
.alert { background: #f8e3dc; color: #7c2a16; }
.ok { background: var(--sage-light); color: #4d5543; }
.info { background: var(--bronze-light); color: #6b3d1e; }

.small { font-size: 0.88rem; }
.center { text-align: center; }
.muted { color: var(--slate); }
.meta { color: var(--slate); font-size: 0.82rem; margin: 0; }
.meta.block { display: block; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; word-break: break-all; }
.lead { color: #4a4a4a; }

/* Anmelde-Seiten */
.auth { display: grid; justify-items: center; padding-top: 4vh; }
.auth-card {
  width: 100%; max-width: 440px; background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 28px 28px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.auth-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--sage), var(--bronze), var(--rust)); }
.auth-card .btn { width: 100%; }
.auth-note { display: flex; gap: 8px; align-items: center; max-width: 440px; margin-top: 16px; font-size: 0.8rem; color: var(--slate); }
.steps { padding-left: 1.2em; margin: 0 0 12px; }
.steps li { margin-bottom: 6px; }
.qr { width: 200px; margin: 0 auto 12px; padding: 8px; background: var(--white); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.qr svg { width: 100%; height: auto; stroke: none; }
details summary { cursor: pointer; color: var(--rust); font-weight: 600; }

/* Klientin: Begrüßung */
.hello {
  border-radius: var(--radius-lg); padding: 34px 26px 30px; margin-bottom: 20px; color: var(--white);
  background: linear-gradient(120deg, #b07955 0%, #a98a6c 45%, #7f8a73 100%);
}
.hello h1 { margin-bottom: 0.3em; }
.hello p { margin: 0; max-width: 34em; opacity: 0.95; }

.grid { display: grid; gap: 18px; }
@media (min-width: 820px) {
  .grid { grid-template-columns: 1.35fr 1fr; align-items: start; }
  .card-status { grid-row: span 2; }
}

.card { background: var(--white); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.grid .card { margin: 0; }
.card.narrow { max-width: 620px; }
.card-title { font-size: 1.15rem; font-weight: 400; margin-bottom: 16px; }
.card-title strong { font-weight: 700; }
.card-title svg { color: var(--sage); width: 1.4em; height: 1.4em; vertical-align: -0.32em; margin-right: 8px; }

.rich p:last-child { margin-bottom: 0.6em; }
.rich strong { color: var(--rust); }

.history { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 0.95rem; }
.history-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.history-item:last-child { border-bottom: 0; }
.history-item .meta { margin-bottom: 4px; font-weight: 600; }
.history-item form { margin: 0; }

.card-appt { background: var(--bronze-light); }
.appt-day { font-size: 1.35rem; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.appt-time { font-size: 1.1rem; margin: 0 0 18px; color: var(--rust); font-weight: 600; }

.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--cream); text-decoration: none; color: var(--ink); transition: background 0.15s; }
a.doc:hover { background: var(--bronze-light); color: var(--ink); }
.doc-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--white); color: var(--rust); }
.doc-text { flex: 1; display: grid; min-width: 0; text-decoration: none; color: var(--ink); }
.doc-title { font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }
.doc-dl { color: var(--rust); }
.admin-docs { margin-top: 18px; }
.admin-docs form { margin: 0; }

/* Admin */
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.admin-head h1 { margin: 0; }
.crumb { margin-bottom: 12px; font-size: 0.9rem; }
.crumb a { text-decoration: none; font-weight: 600; }
.admin-grid { display: grid; gap: 0 18px; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.preview { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--sage-light); font-size: 0.95rem; }
.preview form { margin: 0; }
.remind { background: var(--bronze-light); }
.invite { box-shadow: inset 0 0 0 2px var(--bronze), var(--shadow); }
.copy { background: var(--cream); padding: 12px; border-radius: 10px; user-select: all; }
.plain { margin: 0; padding-left: 1.1em; }
.log { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; display: grid; gap: 6px; }

.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); font-weight: 600; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table a { text-decoration: none; color: var(--ink); }
.table a:hover { color: var(--rust); }
.table tr.inactive td { opacity: 0.55; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.pill-privat { background: var(--bronze-light); color: var(--rust-dark); }
.pill-avgs { background: #e7ecee; color: #4c5b62; }
.pill-on { background: var(--sage-light); color: #4d5543; }
.pill-wait { background: #fbf1d9; color: #7a5a12; }
.pill-off { background: #eee; color: #666; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .top-inner { padding-left: 18px; }
  .topnav a, .topnav .linkbtn { padding: 8px 6px; }
  .hello { padding: 28px 20px 24px; }
  .card { padding: 20px 18px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table td { padding: 2px 0; border: 0; }
}

/* ---------- Sessions & Vorlagen ---------- */
.new-session { margin-bottom: 14px; }
.session-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.session-list a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--cream); text-decoration: none; color: var(--ink); }
.session-list a:hover { background: var(--bronze-light); }
.session-no { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--sage); color: var(--white); font-weight: 700; font-size: 0.85rem; }
.new-tpl { margin-top: 16px; }

.editor-head { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 18px; border-top: 6px solid var(--bronze); }
.editor-title { border: 0; padding: 4px 0; font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; }
.editor-title:focus { box-shadow: 0 2px 0 var(--bronze); }
.editor-meta { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 20px; margin-top: 10px; }
.editor-meta label { width: auto; }
.editor-meta input { width: auto; padding: 8px 12px; }

.block { padding: 18px 20px; }
.block-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.block-thema { flex: 1; font-weight: 700; font-size: 1.08rem; border-color: transparent; background: var(--cream); }
.block-min { display: flex; align-items: center; gap: 6px; font-weight: 400; color: var(--slate); }
.block-min input { width: 64px; text-align: center; padding: 10px 6px; }
.block-body { display: grid; gap: 14px; }
@media (min-width: 820px) { .block-body { grid-template-columns: 1fr 1.6fr; } }
.block-body textarea, .edit-table textarea { field-sizing: content; }
.fragen textarea { background: var(--sage-light); border-color: transparent; min-height: 140px; font-size: 0.95rem; }
.notizen textarea { min-height: 180px; }
.fragen { color: #5d6652; }

.tab-wrap { margin-top: 16px; overflow-x: auto; }
.edit-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.edit-table th, .edit-table td { border: 1px solid var(--line); padding: 0; vertical-align: top; position: relative; }
.edit-table th { background: var(--bronze-light); }
.edit-table input, .edit-table textarea { border: 0; border-radius: 0; padding: 9px 10px; font-size: 0.92rem; background: transparent; min-width: 120px; }
.edit-table th input { font-weight: 700; padding-right: 26px; }
.edit-table textarea { resize: none; min-height: 40px; }
.edit-table .narrow { width: 34px; border: 0; background: none; }
.x { border: 0; background: none; color: var(--slate); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 8px; }
.x:hover { color: #a3321f; }
th .x { position: absolute; right: 2px; top: 4px; }

.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { border: 0; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; background: var(--bronze-light); color: var(--rust-dark); }
.chip:hover { background: var(--bronze); color: var(--white); }
.chip-quiet { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 1px var(--line); }
.chip-quiet:hover { background: var(--cream); color: var(--ink); }
.chip-big { padding: 12px 22px; font-size: 0.92rem; }

.savebar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 10px 10px 10px 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 10px 30px -8px rgba(42, 42, 42, 0.25); }
.savebar .warn { color: #a3321f; font-weight: 600; }
.delete-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.delete-line .check { width: auto; }

/* Handy: Menü in zweite Zeile, nichts darf die Seite verbreitern */
main, .card, .editor, .block-body > * { min-width: 0; }
@media (max-width: 600px) {
  .top-inner { flex-wrap: wrap; border-radius: 26px; padding: 10px 12px 8px 18px; }
  .topnav { width: 100%; justify-content: space-between; gap: 0; font-size: 0.82rem; border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 6px; }
  body:not(.is-admin) .topnav { width: auto; border: 0; padding: 0; }
  .block-head { flex-wrap: wrap; }
  .block-thema { flex-basis: 100%; }
  .savebar { padding: 8px 8px 8px 16px; }
  .savebar .meta { font-size: 0.75rem; }
}

/* ---------- AVGS-Akte ---------- */
.avgs { border-top: 6px solid var(--slate); }
.avgs-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.avgs-mass { font-weight: 700; margin: 2px 0; }
.avgs-ue { font-size: 1.05rem; white-space: nowrap; }
.avgs-ue strong { font-size: 1.6rem; color: var(--rust); }
svg.bar { stroke: none; display: block; width: 100%; height: 10px; margin: 12px 0 8px; border-radius: 999px; }
.bar-bg { fill: var(--beige); } .bar-done { fill: var(--sage); } .bar-plan { fill: var(--bronze); opacity: 0.6; }
.checks { display: grid; gap: 6px; margin: 14px 0; }
.checks p { margin: 0; padding: 9px 12px 9px 36px; border-radius: 10px; font-size: 0.88rem; position: relative; line-height: 1.45; }
.checks p::before { position: absolute; left: 11px; top: 9px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; color: var(--white); }
.check-fehler { background: #f8e3dc; color: #7c2a16; } .check-fehler::before { content: '!'; background: #a3321f; }
.check-hinweis { background: var(--bronze-light); color: #6b3d1e; } .check-hinweis::before { content: 'i'; background: var(--bronze); }
.check-ok { background: var(--sage-light); color: #4d5543; } .check-ok::before { content: ''; background: var(--sage); }
.avgs-details { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.avgs-details summary { margin-bottom: 10px; }
.table-wrap.flat { box-shadow: none; border: 1px solid var(--line); margin-bottom: 14px; }
.table.termine { font-size: 0.85rem; }
.table.termine td, .table.termine th { padding: 9px 10px; }
.table.termine tr.st-P td { color: var(--slate); font-style: italic; }
.pill.st { background: var(--sage-light); color: #4d5543; font-style: normal; }
tr.st-P .pill.st { background: #eee; color: #666; }
tr.st-K .pill.st, tr.st-F .pill.st, tr.st-S .pill.st { background: #f8e3dc; color: #7c2a16; }
tr.st-R .pill.st, tr.st-U .pill.st, tr.st-T .pill.st { background: var(--bronze-light); color: #6b3d1e; }
.termin-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.termin-grid input, .termin-grid select { padding: 9px 10px; }
.avgs-box { background: #eef1f2; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; display: grid; gap: 12px; }
.avgs-box-title { margin: 0; }
.termin-neu { background: var(--cream); border-radius: 14px; padding: 14px; }

/* ---------- Druckansicht Terminliste ---------- */
.print-page { background: #e9e6e1; display: block; }
.print-bar { max-width: 1050px; margin: 16px auto; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; }
.print-sheet { background: var(--white); max-width: 1050px; margin: 0 auto 40px; padding: 36px 40px; font-size: 12px; line-height: 1.4; }
.print-head { display: flex; gap: 24px; align-items: center; border-bottom: 2px solid var(--rust); padding-bottom: 14px; margin-bottom: 16px; }
.print-head h1 { font-size: 18px; margin: 0 0 4px; }
.print-head p { margin: 0; }
.print-table { width: 100%; border-collapse: collapse; }
.print-table th, .print-table td { border: 1px solid #bbb; padding: 6px 7px; text-align: left; vertical-align: top; }
.print-table th { background: var(--bronze-light); font-size: 11px; }
.print-table .sig { width: 22%; }
.print-table td.sig { height: 34px; }
.print-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 50px; }
.print-sign p { border-top: 1px solid #555; padding-top: 6px; font-size: 11px; }
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  .print-page { background: none; }
  .print-bar { display: none; }
  .print-sheet { margin: 0; padding: 0; max-width: none; }
  .print-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Session-Zusammenfassung (Ansicht + PDF) ---------- */
.zf-page { background: #e9e6e1; display: block; }
.zf {
  background: var(--white); max-width: 820px; margin: 0 auto 48px; padding: 44px 56px 36px;
  font-size: 15.5px; line-height: 1.65; box-shadow: var(--shadow); border-radius: 6px;
}
.zf-head { display: flex; justify-content: space-between; gap: 12px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze); font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.zf-head span:last-child { letter-spacing: 0.04em; text-transform: none; color: var(--slate); font-weight: 400; }
.zf h1 { color: var(--rust); font-size: clamp(1.6rem, 4.5vw, 2.1rem); font-weight: 700; margin-bottom: 4px; letter-spacing: -0.02em; }
.zf-fuer { color: var(--slate); margin-bottom: 24px; }
.zf h2 { color: var(--rust); font-size: 1.25rem; margin: 30px 0 12px; letter-spacing: -0.01em; break-after: avoid; }
.zf p { margin: 0 0 0.8em; }
.zf strong { font-weight: 700; }
.zf-box, .zf-hinweis, .zf-gruen, .zf-karte { border-radius: 12px; padding: 16px 20px; margin: 0 0 16px; break-inside: avoid; }
.zf-box { background: #f3ede5; }
.zf-box-title { color: var(--rust); font-weight: 700; font-size: 0.9rem; margin-bottom: 6px !important; }
.zf-box p:last-child, .zf-hinweis p:last-child, .zf-gruen p:last-child, .zf-karte p:last-child { margin-bottom: 0; }
.zf-karten { display: grid; gap: 14px; margin-bottom: 16px; }
@media (min-width: 640px) { .zf-karten { grid-template-columns: 1fr 1fr; } }
.zf-karte { background: #f3ede5; margin: 0; }
.zf-karte h4 { color: var(--bronze); font-size: 0.88rem; margin: 0 0 6px; filter: brightness(0.85); }
.zf blockquote { margin: 14px 0 16px; padding: 4px 0 4px 18px; border-left: 3px solid var(--bronze); color: var(--rust); font-style: italic; break-inside: avoid; }
.zf-gruen { background: var(--sage-light); }
.zf-gruen ul, .zf ul { margin: 0; padding-left: 1.2em; }
.zf-gruen li, .zf ul li { margin-bottom: 8px; }
.zf-impulse { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.zf-impulse li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; break-inside: avoid; }
.zf-nr { color: var(--rust); font-weight: 700; font-size: 1.1rem; line-height: 1.5; }
.zf-schritte { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin-bottom: 14px; break-inside: avoid; }
.zf-schritte th, .zf-schritte td { padding: 11px 14px; background: #f3ede5; text-align: left; vertical-align: top; font-size: 0.95rem; }
.zf-schritte tbody th { color: var(--rust); width: 34%; border-radius: 10px 0 0 10px; }
.zf-schritte td:last-child { border-radius: 0 10px 10px 0; }
.zf-schritte thead th { background: none; color: var(--slate); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 0; }
.zf-hinweis { background: #fbf1d9; }
.zf-hinweis .zf-box-title { color: #8a5a12; }
.zf-fuss { margin-top: 36px; padding-top: 10px; border-top: 1px solid var(--line); text-align: center; color: var(--slate); font-size: 0.75rem; }
.zf-page .print-bar { max-width: 820px; }
@media (max-width: 600px) {
  .zf { padding: 28px 20px; font-size: 15px; border-radius: 0; }
  .zf-page .print-bar { margin: 10px auto; }
}
@media print {
  @page { size: A4 portrait; margin: 16mm 18mm 18mm; @bottom-right { content: "Seite " counter(page); font-family: Montserrat, sans-serif; font-size: 8pt; color: #7a8990; } }
  .zf-page { background: none; }
  .zf-page .print-bar { display: none; }
  .zf { box-shadow: none; padding: 0; margin: 0; max-width: none; font-size: 10.5pt; }
  .zf-karten { grid-template-columns: 1fr 1fr; }
  .zf-fuss { margin-top: 24px; }
  .zf * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.zf-edit .zf-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
.anleitung textarea { margin-top: 8px; font-size: 0.78rem; background: var(--cream); }
.anleitung { margin-bottom: 14px; }

/* ---------- Übersicht, Vertrieb, Reiter ---------- */
.topnav a.on { background: rgba(255, 255, 255, 0.2); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--white); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
a.tile:hover { box-shadow: 0 0 0 2px var(--bronze), var(--shadow); color: var(--ink); }
.tile b { display: block; font-size: 2rem; color: var(--slate); line-height: 1.1; }
.tile span { font-size: 0.85rem; color: var(--slate); }
.tile.hot b { color: var(--rust); } .tile.warn b { color: #a3321f; }
.two { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .two { grid-template-columns: 1.3fr 1fr; } }
.two .card { margin: 0; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { border-bottom: 1px solid var(--line); }
.todo li:last-child { border: 0; }
.todo a { display: flex; gap: 12px; align-items: center; padding: 11px 4px; font-size: 0.93rem; text-decoration: none; color: var(--ink); border-radius: 8px; }
.todo a:hover { background: var(--cream); color: var(--ink); }
.todo-text { flex: 1; min-width: 0; }
.tag { font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex: none; }
.t-call { background: var(--bronze-light); color: #7c3410; } .t-term { background: var(--sage-light); color: #4d5543; }
.t-avgs { background: #f8e3dc; color: #7c2a16; } .t-del { background: #eee; color: #555; }
.when { margin-left: auto; font-size: 0.8rem; color: var(--slate); white-space: nowrap; }
.when.over { color: #a3321f; font-weight: 600; }
.funnel { margin-bottom: 10px; }
.funnel .row { display: grid; grid-template-columns: minmax(120px, 170px) 1fr 28px; gap: 10px; align-items: center; padding: 7px 0; font-size: 0.88rem; text-decoration: none; color: var(--ink); }
.funnel .fbar { width: 100%; height: 12px; stroke: none; }
.funnel b { text-align: right; }
.bar-won { fill: var(--rust); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter .pill { text-decoration: none; font-size: 0.82rem; padding: 6px 14px; }
.board { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.bcol { background: #efe9df; border-radius: 16px; padding: 10px; min-width: 0; }
.bcol.won { background: var(--sage-light); }
.bcol h3 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin: 4px 6px 10px; display: flex; justify-content: space-between; gap: 8px; line-height: 1.35; }
.col-empty { text-align: center; color: var(--slate); margin: 8px 0; }
.kcard { background: var(--white); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); font-size: 0.85rem; }
.kname { display: block; font-weight: 700; font-size: 0.95rem; color: var(--ink); text-decoration: none; }
.kname:hover { color: var(--rust); }
.kpills { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 2px; }
.kpills .pill { font-size: 0.68rem; padding: 2px 8px; }
.kcard .m { display: block; color: var(--slate); font-size: 0.76rem; margin-top: 3px; }
.kcard .wv { margin-top: 7px; font-size: 0.76rem; font-weight: 600; color: #6b3d1e; }
.kcard .wv.over { color: #a3321f; }
.wv-text { font-weight: 400; color: var(--slate); }
.kmove { margin-top: 8px; }
.kmove .chip, .chip-won { font-size: 0.72rem; padding: 5px 10px; display: inline-block; text-decoration: none; margin-top: 8px; }
.kmove .chip { margin-top: 0; }
.chip-won { background: var(--rust); color: var(--white); }
.chip-won:hover { background: var(--rust-dark); color: var(--white); }
.neben { margin-top: 14px; background: var(--white); border-radius: 14px; padding: 12px 16px; }
.wv-box { background: var(--bronze-light); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.wv-box .tools { margin-top: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line); margin: 0 0 18px; overflow-x: auto; }
.tabs a { padding: 10px 16px; font-weight: 600; font-size: 0.92rem; color: var(--slate); border-bottom: 3px solid transparent; margin-bottom: -2px; text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--rust); border-color: var(--rust); }
.label { font-size: 0.72rem; color: var(--slate); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 18px 0 6px; }
.label:first-child { margin-top: 0; }
.label .hint { text-transform: none; letter-spacing: 0; font-weight: 400; }
.big-line { font-size: 1.2rem; font-weight: 700; margin: 0; }
.top-gap { margin-top: 18px; }
.head-pills { display: flex; gap: 6px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .topnav { overflow-x: auto; justify-content: flex-start; gap: 2px; }
  .topnav a, .topnav .linkbtn { white-space: nowrap; }
  .board { grid-template-columns: repeat(5, 78vw); }
  .todo a { flex-wrap: wrap; row-gap: 4px; }
  .todo-text { order: 3; flex-basis: 100%; }
}

/* ================= Design aus dem NURA-Prototyp ================= */
:root {
  --line: #E8E1D6; --soft: #F3EEE6; --muted: #6C655E;
  --rust-soft: #F5E6DB; --sage-ink: #535C46; --sage-soft: #ECEEE6;
  --coach-1: #994217; --coach-2: #7A3512;
  --warm-head: linear-gradient(100deg, #6f7863 0%, #8f8566 35%, #a8714a 70%, #994217 100%);
}
body.r-coach { background: #F5F3EE; }
body.r-coachee { background: var(--cream); }
.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 24px 16px 18px; }
.r-coachee .side { background: var(--white); border-right: 1px solid var(--line); }
.r-coach .side { background: linear-gradient(180deg, var(--coach-1) 0%, var(--coach-2) 100%); color: var(--white); }
.side-brand { display: block; padding: 4px 10px 18px; }
.side-brand img { height: 34px; width: auto; }
.side-room { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 0 10px 10px; margin: 0; opacity: 0.7; }
.side-nav { display: grid; gap: 4px; }
.nav-i { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; font-weight: 600; font-size: 14px; text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; width: 100%; text-align: left; }
.nav-i svg { width: 20px; height: 20px; }
.r-coachee .nav-i { color: var(--muted); }
.r-coachee .nav-i:hover { background: var(--soft); color: var(--ink); }
.r-coachee .nav-i.on { background: var(--rust-soft); color: var(--rust); }
.r-coach .nav-i { color: rgba(255, 255, 255, 0.78); }
.r-coach .nav-i:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.r-coach .nav-i.on { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 16px; font-size: 13px; }
.r-coachee .me { background: var(--soft); }
.r-coach .me { background: rgba(255, 255, 255, 0.1); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; background: var(--sage-soft); color: var(--sage-ink); }
.me-text { display: grid; min-width: 0; line-height: 1.3; }
.me-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-text span { opacity: 0.75; font-size: 12px; }
.me form { margin: 0 0 0 auto; }
.me-out { background: none; border: 0; color: inherit; opacity: 0.7; cursor: pointer; padding: 6px; border-radius: 10px; }
.me-out:hover { opacity: 1; background: rgba(0, 0, 0, 0.06); }
.main { min-width: 0; display: flex; flex-direction: column; }
.band { color: var(--white); border-radius: 0 0 0 28px; padding: 14px 40px 18px; }
.r-coachee .band { background: var(--warm-head); }
.r-coach .band { background: linear-gradient(110deg, var(--coach-1) 0%, var(--coach-2) 100%); }
.room-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.18); border-radius: 20px; padding: 4px 11px; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--white); text-decoration: none; }
a.room-pill:hover { background: rgba(255, 255, 255, 0.28); color: var(--white); }
.band-title { font-weight: 300; font-size: clamp(24px, 3vw, 34px); margin: 0; letter-spacing: -0.02em; }
.band-title strong { font-weight: 700; }
.band-sub { margin: 6px 0 0; font-size: 14px; opacity: 0.9; }
.content { flex: 1; width: 100%; max-width: 1080px; padding: 24px 40px 40px; margin: 0; }
.content.wide { max-width: 1200px; }
.toolbar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 14px; }
.tabbar { display: none; }
/* Karten wie im Prototyp: feiner Rand statt Schatten */
.r-coach .card, .r-coachee .card, .r-coach .tile, .r-coach .table-wrap, .r-coach .editor-head { box-shadow: none; border: 1px solid var(--line); border-radius: 20px; }
.r-coachee .card-appt { border: 0; background: var(--rust-soft); }
/* Knöpfe: Begleiterin Salbei, Klientin Rost */
.r-coach .btn { background: var(--sage-ink); }
.r-coach .btn:hover { background: #3f4636; }
.r-coach .btn-ghost { background: transparent; color: var(--sage-ink); box-shadow: inset 0 0 0 1.5px var(--sage-ink); }
.r-coach .btn-ghost:hover { background: var(--sage-soft); color: #3f4636; }
.r-coach .btn-light { background: var(--white); color: var(--sage-ink); box-shadow: inset 0 0 0 1px var(--line); }
.r-coach .btn-danger { background: #a3321f; }
.r-coach .chip-won { background: var(--sage-ink); }
.r-coach .tabs a.on { color: var(--coach-1); border-color: var(--coach-1); }
/* Seiten ohne Anmeldung */
.plain-body { display: flex; flex-direction: column; min-height: 100vh; }
.plain-head { display: flex; justify-content: center; padding: 34px 16px 0; }
.plain-head img { height: 40px; width: auto; }
.plain-body main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 20px 16px 48px; }
.plain-body .auth { padding-top: 2vh; }
/* Handy: Leiste unten statt Seitenleiste */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .band { border-radius: 0 0 28px 28px; padding: 14px 20px 16px; }
  .content { padding: 18px 16px 100px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-around; padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px)); overflow-x: auto; }
  .tabbar form { margin: 0; }
  .tabbar .nav-i { flex-direction: column; gap: 2px; font-size: 10.5px; padding: 6px 6px; min-width: 58px; align-items: center; text-align: center; width: auto; }
  .r-coachee .tabbar { background: var(--white); border-top: 1px solid var(--line); }
  .r-coach .tabbar { background: var(--coach-1); }
  .r-coach .tabbar .nav-i.on { background: rgba(255, 255, 255, 0.18); }
  .foot { padding-bottom: 90px; }
}
/* Seitenleisten-Farbe läuft bei langen Seiten bis unten durch */
@media (min-width: 861px) {
  .r-coachee .app { background: linear-gradient(to right, #fff 249px, var(--line) 249px, var(--line) 250px, transparent 250px); }
  .r-coach .app { background: linear-gradient(to right, var(--coach-2) 250px, transparent 250px); }
}
@media (max-width: 860px) { .savebar { bottom: 84px; } }
/* Hintergrund fast weiß wie im Prototyp (kein Beige) */
body.r-coach, body.r-coachee, body.plain-body { background: #FBFAF8; }
.r-coach .bcol { background: #F3F1EC; }
.r-coach .bcol.won { background: var(--sage-soft); }
.r-coachee .doc, .r-coach .session-list a, .r-coach .doc { background: #F6F4F0; }
.r-coachee a.doc:hover, .r-coach .session-list a:hover { background: var(--rust-soft); }
@media (min-width: 861px) { .r-coachee .app, .r-coach .app { background-color: #FBFAF8; } }
/* Klientin: Soft Linen = „Raum: Hintergrund Coachee“ (Farbtabelle Prototyp); Begleiterin bleibt fast weiß */
body.r-coachee { background: #F7F3EC; }
@media (min-width: 861px) { .r-coachee .app { background-color: #F7F3EC; } }
.r-coachee .doc { background: #F3EEE6; }
/* Bella 12.11.: auch bei Klientinnen fast weißer Hintergrund statt Soft Linen */
body.r-coachee { background: #FBFAF8; }
@media (min-width: 861px) { .r-coachee .app { background-color: #FBFAF8; } }
.r-coachee .doc { background: #F6F4F0; }
.termin-grid .check.bestaetigt { grid-column: 1 / -1; font-weight: 600; }
.ok-mark { color: #4d5543; font-weight: 700; font-size: 0.8rem; }
.no-mark { color: #a3321f; font-weight: 700; font-size: 0.8rem; }
