/* AV-PLATFORM-004 · C1: Ergänzungen zum Signature-Designsystem für das echte Cockpit.
   Nur Klassen mit Präfix cp-; Grundgestaltung kommt aus signature.css und platform.css. */
.cp-icon { display: inline-flex; flex: none; }
.cp-overview { display: flex; flex-direction: column; }
.cp-icon svg { display: block; }
.cp-center { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.cp-login { width: min(420px, 100%); display: grid; gap: 18px; }
.cp-login h1 { font-size: 40px; }
.cp-count { margin-left: 2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #8a6a2f; color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.cp-metric { text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cp-metric:hover, .cp-metric:focus-visible { border-color: #8a6a2f; }
.cp-metrics-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-strong-sm { font-size: 34px !important; }
.cp-gap { margin-top: 24px; }
.cp-filter { margin: 4px 0 18px; flex-wrap: wrap; }
.cp-links { margin: -8px 0 22px; }
.cp-pre { white-space: pre-wrap; margin: 6px 0 0; }
.cp-h4 { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; margin: 22px 0 10px; }
.cp-warn { border-color: #c0604a !important; background: #fbeee9 !important; color: #6b2a1c; margin-bottom: 14px; }
.cp-tabs { flex-wrap: wrap; }
.cp-tabpanel { margin-top: 8px; }
.cp-actions { margin-top: 20px; }
.cp-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-steps button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #c9b896; background: transparent; font: inherit; font-size: 13.5px; cursor: pointer; color: inherit; }
.cp-steps button[aria-pressed="true"] { background: #2d241e; border-color: #2d241e; color: #fbf7ef; font-weight: 700; }
.cp-steps button:disabled { opacity: 0.6; }
.av-button.cp-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.av-button.cp-danger { background: #9d3f2b; border-color: #9d3f2b; color: #fff; }
.cp-form .av-check { margin: 4px 0; }
.cp-fieldset { border: 1px solid #d8c9ac; border-radius: 14px; padding: 10px 16px 6px; margin: 0; }
.cp-fieldset legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.cp-delete { margin-top: 26px; padding-top: 18px; border-top: 1px solid #e3d7c0; }
.cp-money { display: grid; gap: 4px; margin-top: 18px; }
.cp-money-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #ece2cf; }
.cp-money > .cp-money-row:first-child { grid-template-columns: minmax(0, 1fr) auto; }
.cp-num { grid-template-columns: minmax(0, 1fr) 110px; }
.cp-num .av-input { text-align: right; min-height: 40px; }
.cp-checklist { margin-bottom: 10px; }
.cp-checklist .av-panel-head { margin-bottom: 4px; }
.cp-mail { border: 1px solid #e3d7c0; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: #fffdf8; }
.cp-mail.skip { opacity: 0.6; }
.cp-mail-head { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.cp-mail-head small { display: block; color: #6b5f50; font-size: 13px; }
.cp-mail-preview { display: grid; gap: 10px; margin-top: 12px; }
.cp-mail-preview textarea { min-height: 180px; }
.cp-block { margin-bottom: 8px; }
.cp-tall { min-height: 200px; }
.cp-notice { display: flex; gap: 10px 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid #ece2cf; }
.cp-notice small { display: block; color: #6b5f50; font-size: 13px; }
.cp-notice-line { display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.cp-inline-actions { gap: 12px; }
.cp-cards { display: grid; gap: 18px; }
.cp-card h2 { font-size: 30px; }
.cp-cal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.av-calendar-event.cp-request { background: transparent !important; border: 1px dashed #8a6a2f !important; color: #5c4a2a !important; }
.av-cal-cell.cp-clash { outline: 2px solid #c0604a; outline-offset: -2px; }
.cp-legend-request i { border: 1px dashed #8a6a2f; background: transparent !important; }
.cp-legend-clash i { border: 2px solid #c0604a; background: transparent !important; }
.cp-template { border-top: 1px solid #e3d7c0; padding: 12px 0; }
.cp-template summary { cursor: pointer; min-height: 32px; }
.cp-template .av-fields { margin-top: 12px; }
.cp-table-scroll { overflow-x: auto; }
.cp-table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.cp-table th, .cp-table td { padding: 10px 8px; border-bottom: 1px solid #ece2cf; text-align: right; }
.cp-table th:first-child { text-align: left; }
.cp-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #6b5f50; }
.cp-total th, .cp-total td { font-weight: 700; border-bottom: 0; }

/* Smartphone: kompakter, schnelle Bedienung, Navigation immer erreichbar */
@media (max-width: 760px) {
  .av-dashboard-title h1, .av-surface-head h1 { font-size: 38px; }
  .av-dashboard-title { gap: 14px; }
  .av-metrics { gap: 10px; }
  .av-metric { padding: 14px; min-height: 0; }
  .av-metric strong { font-size: 32px; margin: 8px 0 2px; }
  .av-metric small { font-size: 12px; }
  .cp-metrics-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-strong-sm { font-size: 24px !important; }
  .av-dialog.av-drawer { width: 100%; max-width: 100%; border-radius: 0; border-left: 0; }
  .cp-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cp-tabs button { flex: none; }
  .cp-mail-head { align-items: flex-start; }
  /* Auf dem Handy zuerst, was zu tun ist – Kennzahlen danach */
  .cp-overview .av-next-grid { order: 2; }
  .cp-overview .av-metrics { order: 3; margin-top: 22px; }
  .av-booking-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 14px 16px; }
  .av-booking-row > span:nth-child(1) { grid-column: 1; grid-row: 1; }
  .av-booking-row > span:nth-child(4) { grid-column: 2; grid-row: 1; align-self: start; }
  .av-booking-row > span:nth-child(2), .av-booking-row > span:nth-child(3) { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; font-size: 13.5px; }
  .av-booking-row > span:nth-child(3) { order: -1; }
  .av-booking-row > .cp-icon { display: none; }
}

/* AV-DESIGNS-001 · Design-Bibliothek */
.cp-design-notice { margin-bottom: 20px; }
.cp-design-group { margin-top: 26px; }
.cp-design-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cp-design-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--av-line); border-radius: 18px; overflow: hidden; background: #fffdf8; }
.cp-design-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--paper, #f7f3eb); overflow: hidden; display: grid; place-items: center; }
.cp-design-thumb img, .cp-design-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-design-art { position: absolute; inset: 0; }
.cp-design-names { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 18px 10px 10px; text-align: center; font-family: var(--display); font-size: 24px; color: var(--ink); background: linear-gradient(transparent, var(--paper) 55%); }
.cp-design-names em { font-family: var(--script); color: var(--accent); font-style: normal; }
.cp-design-legacy { background: linear-gradient(135deg, #efe6d6, #f9f5ee); align-content: center; gap: 4px; text-align: center; padding: 16px; }
.cp-design-legacy span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--av-muted); }
.cp-design-legacy b { font-family: AVDisplay, Georgia, serif; font-weight: 400; font-size: 26px; }
.cp-design-ticket { margin: 0 18px 46px; width: calc(100% - 36px); background: var(--surface); border-radius: 10px; border-left: 10px solid var(--accent); padding: 12px 14px; display: grid; gap: 2px; box-shadow: 0 10px 22px -14px rgba(0,0,0,.5); color: var(--ink); }
.cp-design-ticket i { font-style: normal; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.cp-design-ticket b { font-family: var(--display); font-size: 22px; font-weight: 400; }
.cp-design-ticket small { font-size: 12px; color: var(--muted); }
.cp-design-ticket ~ .cp-design-names { display: none; }
.cp-design-body { padding: 14px 16px 16px; display: grid; gap: 8px; align-content: start; }
.cp-design-body h3 { margin: 0; font-size: 20px; }
.cp-design-body .av-row { justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cp-design-body p { margin: 0; }
.cp-design-actions { justify-content: flex-start !important; }
.cp-small-select { padding: 6px 10px; font-size: 13px; }
.cp-design-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1100px) { .cp-design-layout { grid-template-columns: minmax(320px, 420px) 1fr; } .cp-design-preview { position: sticky; top: 16px; } }
.cp-design-form { display: grid; gap: 16px; }
.cp-design-form fieldset { border: 1px solid var(--av-line); border-radius: 14px; padding: 12px 16px 16px; display: grid; gap: 12px; margin: 0; }
.cp-design-form legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.cp-check { display: flex !important; align-items: center; gap: 10px; }
.cp-design-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cp-design-colors label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cp-design-colors input { width: 40px; height: 32px; border: 1px solid var(--av-line); border-radius: 8px; padding: 2px; background: #fff; }
.cp-design-upload { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; }
.cp-design-preview { display: grid; gap: 10px; }
.cp-design-preview > .av-row { justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.cp-design-stage { background: #e9e3d8; border-radius: 18px; padding: 16px; display: grid; justify-items: center; overflow: hidden; }
.cp-design-frame { border: 0; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.5); }
.cp-design-frame.mobile { width: 390px; max-width: 100%; height: 760px; }
.cp-design-frame.desktop { width: 100%; height: 720px; }
.cp-design-warn { margin: 0; }
.cp-design-warn.bad { color: #8a3b2a; background: #f8ece6; border-left: 3px solid #c47a5c; padding: 8px 10px; }
.cp-check input { width: 18px !important; height: 18px; min-height: 0; flex: none; padding: 0; margin: 0; accent-color: #8a6a2f; }
.cp-check { font-size: 14px; }
/* C2 historical finance UI. Shared shell/branding stays in Signature. */
.cp-fin { display:grid; gap:20px; min-width:0; }
.cp-fin h2 { font-size:26px; margin:8px 0 0; }
.cp-fin h3 { font-size:21px; margin:4px 0; }
.cp-fin-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.cp-fin-stat { border:1px solid #d8c9ac; border-radius:14px; background:#fffdf8; padding:16px; display:grid; gap:6px; min-width:0; }
.cp-fin-stat span,.cp-fin-stat small { font-size:13px; color:#625344; }
.cp-fin-stat strong { font-size:25px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.cp-fin-form { border:1px solid #d8c9ac; border-radius:14px; padding:18px; margin:8px 0; }
.cp-fin-form .av-input { min-width:0; }
.cp-fin-lines { display:grid; gap:12px; }
.cp-fin-line { display:grid; grid-template-columns:minmax(0,2fr) minmax(70px,.6fr) minmax(100px,1fr) auto; align-items:end; gap:10px; border-bottom:1px solid #e3d7c0; padding-bottom:14px; }
.cp-fin-note { overflow-wrap:anywhere; }
.cp-fin-entry { padding:16px 0; border-bottom:1px solid #d8c9ac; overflow-wrap:anywhere; }
.cp-fin-entry>div { display:flex; gap:12px; justify-content:space-between; flex-wrap:wrap; }
.cp-fin-entry p { margin:8px 0; }
.cp-fin-meta { display:block; font-size:12px; font-weight:400; }
.cp-fin-period { align-items:end; }
.cp-fin-period .av-field { min-width:130px; flex:1; }
.cp-fin-report { display:grid; gap:16px; }
.cp-fin-history { min-width:0; display:grid; gap:12px; }
.cp-fin-history details { border-bottom:1px solid #d8c9ac; padding-bottom:12px; }
.cp-fin summary { cursor:pointer; min-height:44px; padding:10px 0; }
.cp-fin .cp-table { min-width:640px; }
@media(max-width:760px) {
 .cp-fin-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .cp-fin-line { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 .cp-fin-line .av-field:first-child { grid-column:1/-1; }
 .cp-fin-form { padding:14px; }
}
@media(max-width:360px) { .cp-fin-stats { grid-template-columns:minmax(0,1fr); } }
.cp-fin, .cp-fin-report, .cp-fin-history { grid-template-columns:minmax(0,1fr); }
.cp-fin > *, .cp-fin-report > *, .cp-fin-history > *, .cp-fin-bookings, .cp-fin-deleted { min-width:0; }
.cp-fin .cp-table-scroll { width:100%; max-width:100%; }
.cp-fin-period { flex-wrap:wrap; }

/* StoryNight-Bereich */
.cp-sn-tabs { flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.cp-sn-list { display: grid; gap: 12px; }
.cp-sn-order .av-row { flex-wrap: wrap; gap: 8px; }
.cp-sn-amount { margin-left: auto; }
.cp-sn-case { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.cp-sn-case img, .cp-sn-noimg { width: 96px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; background: rgba(0,0,0,.06); display: grid; place-items: center; font-size: 12px; }
.cp-sn-case .av-row { flex-wrap: wrap; gap: 8px; }
.cp-sn-report { border-left: 2px solid currentColor; padding-left: 12px; margin: 8px 0; opacity: .9; }
.cp-sn-form { display: grid; gap: 14px; max-width: 720px; }
.cp-sn-chips { flex-wrap: wrap; gap: 6px; }
.cp-sn-more summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
.cp-sn-more { display: grid; gap: 12px; }
.cp-sn-table { width: 100%; border-collapse: collapse; }
.cp-sn-table th, .cp-sn-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(0,0,0,.08); }
.cp-danger-text { color: #a33; }
@media (max-width: 600px) { .cp-sn-case { grid-template-columns: 72px 1fr; } .cp-sn-case img, .cp-sn-noimg { width: 72px; } }
.cp-sn-bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin-top: 10px; }
.cp-sn-bar { flex: 1; background: currentColor; opacity: .55; border-radius: 3px 3px 0 0; min-width: 4px; }
.cp-sn-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }

/* Übersicht: Marken auf einen Blick */
.cp-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.cp-brand-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 6px 0 10px; }
.cp-brand-stat strong { display: block; font-size: 22px; line-height: 1.2; }
.cp-brand-stat small { opacity: .7; }
.cp-brand-links { flex-wrap: wrap; gap: 10px 14px; margin-top: 10px; align-items: center; }
.cp-overview-sub { margin: 26px 0 10px; }
@media (max-width: 760px) { .cp-overview .cp-overview-sub { order: 3; margin-bottom: 0; } }
.cp-sn-credit { border-left: 4px solid #b3261e; }
.cp-sn-credit b { color: #b3261e; }

/* Ü-011 · Bereichswahl oben und Farben je Bereich.
   Diese Datei lädt nur das Cockpit; Verkaufsseite und Kundenseiten bleiben unberührt.
   Jede Farbwelt setzt dieselben Variablen. Reihenfolge wichtig: neutral, Feste, StoryNight
   (auf der Übersicht stehen die Markenkarten innerhalb der neutralen Hülle). */
.cp-theme-neutral { --av-ivory: #f3f4f2; --av-surface: #ffffff; --av-ink: #1f2328; --av-espresso: #23272c; --av-gold: #5a616a; --av-muted: #5a616a; --av-line: #dde0e2; --av-champagne: #e6e8ea; --av-serif: AVUI, Arial, sans-serif;
  --cp-head: #ffffff; --cp-head-ink: #3b4148; --cp-on: #23272c; --cp-on-ink: #ffffff; --cp-accent: #23272c; --cp-hover: #eceeef; }
.cp-theme-feste { --av-ivory: #f7f3eb; --av-surface: #fffcf7; --av-ink: #342a24; --av-espresso: #342a24; --av-gold: #785d35; --av-muted: #6d6258; --av-line: #d7ccbd; --av-champagne: #e8dcc8; --av-serif: AVDisplay, Georgia, serif;
  --cp-head: #fffcf7; --cp-head-ink: #4e4339; --cp-on: #342a24; --cp-on-ink: #fffcf7; --cp-accent: #785d35; --cp-hover: #f1e9db; }
.cp-theme-storynight { --av-ivory: #0f0d0b; --av-surface: #17130f; --av-ink: #f3e9d8; --av-espresso: #c7a15c; --av-gold: #c7a15c; --av-muted: #c4b8a2; --av-line: #2e2823; --av-champagne: #2a241e;
  --av-positive: #a5d3b3; --av-positive-bg: #1c2a21; --av-attention: #e8c688; --av-attention-bg: #2c2415; --av-danger: #f2a99d; --av-danger-bg: #35201c; --av-serif: StPlayfair, Georgia, serif;
  --cp-head: #14110e; --cp-head-ink: #d8ccb6; --cp-on: #c7a15c; --cp-on-ink: #0f0d0b; --cp-accent: #c7a15c; --cp-hover: #221c16; color-scheme: dark; }
.cp-theme-neutral, .cp-theme-feste, .cp-theme-storynight { color: var(--av-ink); }
.cp-workspace { min-height: 100dvh; background: var(--av-ivory); }

/* Kopf: Bereiche oben, darunter die Reiter des Bereichs */
.cp-nav { position: sticky; top: 0; z-index: 20; background: var(--cp-head); border-bottom: 1px solid var(--av-line); }
.cp-head { display: flex; align-items: center; gap: 8px 22px; padding: 10px 38px; max-width: 1600px; margin: auto; }
.cp-brand-home { flex-direction: row; align-items: baseline; gap: 8px; color: var(--av-ink); }
.cp-brand-home b { font: 28px/1 AVDisplay, Georgia, serif; }
.cp-brand-home small { color: var(--av-muted); }
.cp-areas { display: flex; gap: 6px; min-width: 0; }
.cp-area { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: none; font: 500 15px/1 var(--av-sans); color: var(--cp-head-ink); cursor: pointer; white-space: nowrap; }
.cp-area:hover { background: var(--cp-hover); }
.cp-area.active { background: var(--cp-on); color: var(--cp-on-ink); font-weight: 600; }
.cp-dot { width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; flex: none; }
.cp-area[data-area="feste"] .cp-dot { background: #785d35; border: 2px solid #e8dcc8; }
.cp-area[data-area="storynight"] .cp-dot { background: #c7a15c; border: 2px solid #0f0d0b; }
.cp-area.active[data-area="feste"] .cp-dot { background: #c2a36b; border: 0; }
.cp-area.active[data-area="storynight"] .cp-dot { background: #0f0d0b; border: 0; }
.cp-head-meta { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--av-muted); white-space: nowrap; }
.cp-logout { color: var(--av-ink); }
.cp-subnav { display: flex; gap: 0 4px; padding: 0 30px; max-width: 1600px; margin: auto; border-top: 1px solid var(--av-line); overflow-x: auto; scrollbar-width: none; }
.cp-subnav::-webkit-scrollbar, .cp-areas::-webkit-scrollbar { display: none; }
.cp-subtab { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 48px; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; background: none; font: 500 15px/1 var(--av-sans); color: var(--av-muted); cursor: pointer; white-space: nowrap; }
.cp-subtab:hover { color: var(--av-ink); }
.cp-subtab.active { color: var(--av-ink); font-weight: 600; border-bottom-color: var(--cp-accent); }
.cp-area:focus-visible, .cp-subtab:focus-visible { outline: 2px solid var(--cp-accent); outline-offset: 2px; }
.cp-area-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--av-line); }
.cp-area-banner b { font: 400 30px/1 var(--av-serif); letter-spacing: -0.02em; }
.cp-area-banner em { font: italic 400 17px/1.3 var(--av-serif); color: var(--av-muted); }
.cp-sn-mark { display: inline-flex; flex: none; }
.cp-sn-mark svg { display: block; }
.cp-sn-word { font: 600 24px/1 StPlayfair, Georgia, serif; letter-spacing: 0; color: #f3e9d8; }
.cp-sn-word span { color: #c7a15c; }
.cp-sn-title { display: flex; align-items: center; gap: 10px; }
/* Markenkarten der Übersicht: jede in den Farben ihrer Marke */
.cp-brand[class*="cp-theme-"] { background: var(--av-ivory); }

/* Hülle (Übersicht, System): neutral, ohne Markenschrift */
.cp-theme-neutral h1, .cp-theme-neutral h2, .cp-theme-neutral h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.cp-theme-neutral .av-dashboard-title h1, .cp-theme-neutral .av-surface-head h1 { font-size: 36px; }
.cp-theme-neutral h2 { font-size: 21px; }
.cp-theme-neutral h3 { font-size: 18px; }
.cp-theme-neutral .av-metric strong { font: 600 32px/1.25 var(--av-sans); }
.cp-theme-neutral .av-empty { background: #f6f7f7; border-color: #c9ced2; }
.cp-theme-neutral .av-button:not(.av-secondary):not(.cp-danger):hover { background: #3b4148; }
.cp-theme-neutral .av-button.av-secondary { border-color: #b9bfc5; }
.cp-theme-neutral .av-button.av-secondary:hover { background: #eceeef; }
.cp-theme-neutral .av-badge:not(.positive):not(.attention):not(.danger), .cp-theme-neutral .av-task-count { background: #eef0f1; border-color: #d5d9dc; color: #3b4148; }

/* Feste: AurumVibes wie bisher (auch als Karte innerhalb der neutralen Übersicht) */
.cp-theme-feste h1, .cp-theme-feste h2, .cp-theme-feste h3 { font-weight: 400; letter-spacing: -0.025em; line-height: 1.06; }
.cp-theme-feste h2 { font-size: 36px; }
.cp-brand.cp-theme-feste .av-button:not(.av-secondary):hover { background: #514033; }

/* StoryNight: Gold auf warmem Schwarz, Creme als Schrift */
.cp-theme-storynight h1, .cp-theme-storynight h2, .cp-theme-storynight h3 { font-weight: 400; letter-spacing: 0; line-height: 1.15; }
.cp-theme-storynight .av-surface-head h1 { font-size: 38px; }
.cp-theme-storynight h2 { font-size: 26px; }
.cp-theme-storynight h3 { font-size: 20px; }
.cp-theme-storynight .av-metric strong { font: 400 34px/1.25 var(--av-serif); }
.cp-theme-storynight .av-button:not(.av-secondary):not(.cp-danger):hover { background: #d8b676; border-color: #d8b676; }
.cp-theme-storynight .av-button.av-secondary { background: transparent; border-color: #5a4e40; color: var(--av-ink); }
.cp-theme-storynight .av-button.av-secondary:hover { background: #221c16; }
.cp-theme-storynight .av-badge { background: #211b16; border-color: #3a322b; color: #d8ccb6; }
.cp-theme-storynight .av-badge.positive { color: var(--av-positive); background: var(--av-positive-bg); border-color: #2f4a3a; }
.cp-theme-storynight .av-badge.attention { color: var(--av-attention); background: var(--av-attention-bg); border-color: #5a4a26; }
.cp-theme-storynight .av-badge.danger { color: var(--av-danger); background: var(--av-danger-bg); border-color: #6a3a32; }
.cp-theme-storynight .av-empty { background: #17130f; border-color: #3a322b; }
.cp-theme-storynight .av-field input, .cp-theme-storynight .av-field textarea, .cp-theme-storynight .av-field select, .cp-theme-storynight .av-input { background: #1b1612; border-color: #5a4e40; color: var(--av-ink); }
.cp-theme-storynight .av-status, .cp-theme-storynight .cp-danger-text { color: #f2a99d; }
.cp-theme-storynight .cp-sn-table th, .cp-theme-storynight .cp-sn-table td { border-bottom-color: var(--av-line); }
.cp-theme-storynight .cp-sn-noimg { background: rgba(255, 255, 255, .06); }
.cp-theme-storynight .cp-sn-credit { border-left-color: #e2685c; }
.cp-theme-storynight .cp-sn-credit b { color: #f2a99d; }
.cp-theme-storynight .cp-metric:hover, .cp-theme-storynight .cp-metric:focus-visible { border-color: #c7a15c; }
.cp-theme-storynight .cp-count { background: #c7a15c; color: #0f0d0b; }
.cp-area.active .cp-count { background: var(--cp-on-ink); color: var(--cp-on); }

@media (max-width: 1100px) { .cp-head { padding: 10px 25px; } .cp-subnav { padding: 0 17px; } .cp-today { display: none; } }
/* Smartphone: Zeile mit Namen und Abmelden rollt weg, Bereiche und Reiter bleiben oben stehen. */
@media (max-width: 760px) {
  .cp-nav { top: -44px; }
  .cp-head { flex-wrap: wrap; gap: 0 12px; padding: 0 12px; }
  .cp-brand-home { min-height: 44px; align-items: center; }
  .cp-brand-home b { font-size: 24px; }
  .cp-brand-home small { display: none; }
  .cp-head-meta { min-height: 44px; }
  .cp-areas { order: 3; flex: 1 0 100%; gap: 4px; padding: 2px 0 8px; overflow-x: auto; scrollbar-width: none; }
  .cp-area { min-height: 40px; padding: 0 10px; font-size: 14px; gap: 6px; }
  .cp-subnav { padding: 0 6px; }
  .cp-subtab { min-height: 44px; padding: 0 10px; font-size: 14px; }
  .cp-area-banner { margin-bottom: 18px; padding-bottom: 12px; }
  .cp-area-banner em { font-size: 15px; }
}
.cp-theme-storynight .cp-sn-bar { color: #c7a15c; opacity: .8; }
/* Breite Tabellen rollen am Handy in ihrer Karte, nicht die ganze Seite. */
@media (max-width: 760px) { .cp-storynight .av-panel { overflow-x: auto; } }

/* Scribius (Design B + C, 02.12.2026): Feder in der Kopfzeile und schlanke Zeile in der Übersicht, Antworten als Notizkarte.
   Die Notizkarte hat in jedem Bereich dieselben Farben (Elfenbein, Tintenschwarz, Gold), damit Scribius überall gleich aussieht. */
.cp-quill { display: inline-flex; line-height: 0; }
.cp-sq-head { position: relative; margin-left: auto; }
.cp-sq-head + .cp-head-meta { margin-left: 0; }
.cp-sq-form { display: flex; align-items: center; gap: 8px; width: 260px; height: 42px; padding: 0 8px 0 5px; border: 1px solid var(--av-line); border-radius: 21px; background: var(--av-surface, #fff); transition: width .2s ease, border-color .2s ease; }
.cp-sq-head.open .cp-sq-form, .cp-sq-form:focus-within { width: 340px; border-color: #b08d57; }
.cp-sq-mark { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #1f1b16; cursor: pointer; }
.cp-sq-input { flex: 1; min-width: 0; height: 36px; border: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--av-ink); outline: none; }
.cp-sq-input::placeholder { color: var(--av-muted); }
.cp-sq-kbd { flex: none; padding: 2px 7px; border: 1px solid var(--av-line); border-radius: 6px; font: 12px/1.4 var(--av-sans, inherit); color: var(--av-muted); }
.cp-sq-pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; width: min(540px, calc(100vw - 24px)); }
.cp-sq-pop:empty { display: none; }
.cp-sq-pop .cp-note { box-shadow: 0 22px 50px rgba(31, 27, 22, .22); padding-right: 52px; }
.cp-sq-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; color: #6b6257; cursor: pointer; }
.cp-sq-close:hover, .cp-sq-close:focus-visible { background: #efe7d6; }
.cp-sq-overview { display: grid; gap: 14px; margin: 4px 0 26px; }
.cp-sq-line { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 9px 0 9px; border: 1px solid var(--av-line); border-radius: 31px; background: var(--av-surface, #fff); box-shadow: 0 6px 20px rgba(31, 35, 40, .06); }
.cp-sq-line:focus-within { border-color: #b08d57; }
.cp-sq-seal { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #1f1b16; }
.cp-sq-line .cp-sq-input { font-size: 17px; height: 44px; }
.cp-sq-go { flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: 22px; background: #1f1b16; color: #faf6ee; font: inherit; font-weight: 600; cursor: pointer; }
.cp-sq-go:disabled { opacity: .55; cursor: default; }
.cp-sq-below { margin-left: 56px; }
.cp-sq-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--av-muted); }
.cp-sq-examples > span { margin-right: 4px; }
.cp-note { position: relative; display: grid; gap: 12px; max-width: 820px; padding: 22px 28px; background: #faf6ee; color: #1f1b16; border: 1px solid #e3dccd; border-radius: 6px 22px 22px 22px; box-shadow: 0 14px 34px rgba(31, 27, 22, .10); }
.cp-note-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: #6b6257; }
.cp-note-head b { font: 500 16px/1.2 AVDisplay, Georgia, serif; color: #1f1b16; }
.cp-note-q { margin: 0; font-size: 13.5px; color: #6b6257; }
.cp-note-q::before { content: "Du: "; font-weight: 600; }
.cp-note-a { margin: 0; font: 18px/1.6 AVDisplay, Georgia, serif; white-space: pre-wrap; }
.cp-note-basis { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px dashed #d8cfbd; font-size: 13px; }
.cp-note-basis > span:first-child { margin-right: 4px; color: #6b6257; }
.cp-note-num { padding: 4px 10px; border-radius: 8px; background: #efe7d6; }
.cp-note-hint { margin: 0; font-size: 13px; color: #6b6257; }
.cp-note-error { margin: 0; color: #9b2c2c; }
.cp-note-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cp-note-meta { margin-left: auto; font-size: 12px; color: #6b6257; }
.cp-note-chip { min-height: 38px; padding: 0 14px; border: 1px solid #d8cfbd; border-radius: 19px; background: transparent; font: inherit; font-size: 13.5px; color: inherit; cursor: pointer; }
.cp-sq-examples .cp-note-chip { border-color: var(--av-line); color: var(--av-ink); background: var(--av-surface, #fff); }
.cp-note-chip:hover, .cp-note-chip:focus-visible { background: #efe7d6; color: #1f1b16; }
.cp-ink { display: block; line-height: 0; }
.cp-ink-line { stroke-dasharray: 190; animation: cp-ink 2.2s ease-in-out infinite; }
@keyframes cp-ink { 0% { stroke-dashoffset: 190; } 70%, 100% { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .cp-ink-line { animation: none; stroke-dasharray: none; } }
@media (max-width: 1100px) { .cp-sq-kbd { display: none; } .cp-sq-form { width: 190px; } .cp-sq-head.open .cp-sq-form, .cp-sq-form:focus-within { width: 250px; } }
/* Schmale Fenster und Smartphone: in der Kopfzeile nur die Feder; ein Tipp klappt das Feld über die ganze Breite auf. */
@media (max-width: 920px) {
  .cp-sq-head { position: static; }
  .cp-sq-form { width: 42px; padding: 0 4px; border-color: transparent; background: transparent; }
  .cp-sq-form .cp-sq-input { width: 0; padding: 0; }
  .cp-sq-head.open .cp-sq-form { position: absolute; left: 12px; right: 12px; top: 6px; z-index: 41; width: auto; background: var(--av-surface, #fff); border-color: #b08d57; }
  .cp-sq-head.open .cp-sq-input { width: auto; }
  .cp-sq-pop { left: 12px; right: 12px; width: auto; top: 56px; }
}
@media (max-width: 760px) {
  .cp-sq-below { margin-left: 0; }
  .cp-sq-line { height: 56px; }
  .cp-sq-line .cp-sq-input { font-size: 16px; }
  .cp-note { padding: 18px 18px; }
  .cp-note-a { font-size: 17px; }
}
/* 320 px: Scribius-Zeile der Übersicht darf schrumpfen (vorher 53 px Überlauf) */
.cp-sq-overview { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 360px) { .cp-sq-line { gap: 8px; } .cp-sq-go { padding: 0 14px; } }

/* Cockpit-Umbau 02.12.2026: gleiche Bereichskarten, gemeinsame Aufgabenliste, System mit Ampel */
.cp-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cp-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cp-brands { grid-template-columns: 1fr; } }
.cp-brands .cp-brand { display: flex; flex-direction: column; }
.cp-brands .cp-brand h2 { font-size: 26px; }
.cp-brands .cp-brand-links { margin-top: auto; padding-top: 10px; }
.cp-brand-stat-link { text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 8px; }
.cp-brand-stat-link:hover strong, .cp-brand-stat-link:focus-visible strong { text-decoration: underline; text-underline-offset: 4px; }
.cp-brand-note { margin: 0; }
.cp-brand-next { border-style: dashed; background: transparent; opacity: .8; }
.cp-overview-foot { margin-top: 18px; }
.cp-tag { flex: none; align-self: center; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid #d5d9dc; background: #eef0f1; color: #3b4148; white-space: nowrap; }
.cp-tag-feste { background: #f7f3eb; border-color: #d8c9ac; color: #785d35; }
.cp-tag-storynight { background: #0f0d0b; border-color: #0f0d0b; color: #c7a15c; }
.cp-task-side { display: flex; align-items: center; gap: 10px; }
.cp-status { margin-bottom: 18px; }
.cp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .cp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cp-tiles { grid-template-columns: 1fr; } }
.cp-tile { display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--av-line); border-left: 4px solid #c9ced2; border-radius: 12px; padding: 12px 14px; }
button.cp-tile { cursor: pointer; }
button.cp-tile:hover, button.cp-tile:focus-visible { border-color: #8a9096; }
.cp-tile[data-tone="ok"] { border-left-color: #3f7d58; }
.cp-tile[data-tone="watch"] { border-left-color: #b8862b; }
.cp-tile[data-tone="bad"] { border-left-color: #b54a36; }
.cp-tile-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cp-tile small { color: var(--av-muted); }
.cp-system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
@media (max-width: 1100px) { .cp-system-grid { grid-template-columns: 1fr; } }
.cp-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 8px 0 14px; font-size: 14.5px; }
.cp-facts dt { color: var(--av-muted); }
.cp-facts dd { margin: 0; }
.cp-conn { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; font-size: 14.5px; }
.cp-conn li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--av-line); padding-bottom: 8px; }
.cp-details { margin-bottom: 14px; }
.cp-details > summary { cursor: pointer; padding: 4px 0; }
.cp-details[open] > summary { margin-bottom: 12px; }
.cp-sn-count { width: 76px; }
.cp-sn-test { border-top: 1px solid var(--av-line); padding: 10px 0; }
.cp-sn-test > summary { cursor: pointer; }
.cp-sn-testlinks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.cp-sn-testlinks li { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cp-sn-testlinks li > span { min-width: 200px; }
