/* Connect Ausstellerprofil – Formular. Alles unter .cp-wrap gekapselt, damit das Theme nicht kollidiert. */
.cp-wrap {
  --cp-brand: #005691; --cp-brand-2: #e6f0f6; --cp-text: #222; --cp-muted: #666; --cp-line: #d6dde3;
  --cp-bg: #f4f7f9; --cp-card: #fff; --cp-err: #c62828; --cp-ok: #2e7d32; --cp-radius: 8px;
  container-type: inline-size;
  color: var(--cp-text);
  font-size: 16px; line-height: 1.5;
}
.cp-wrap *, .cp-wrap *::before, .cp-wrap *::after { box-sizing: border-box; }
.cp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@container (min-width: 1000px) {
  .cp-layout { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
  .cp-col-preview { position: sticky; top: 24px; align-self: start; }
}

.cp-title { color: var(--cp-brand); margin: 0 0 6px; }
.cp-lead { color: var(--cp-muted); margin: 0 0 20px; }

.cp-form fieldset { border: 0; background: var(--cp-card); border-radius: var(--cp-radius); padding: 18px 18px 6px; margin: 0 0 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08); min-width: 0; }
.cp-form legend { font-weight: 700; color: var(--cp-brand); padding: 0; float: left; width: 100%; margin: 0 0 12px; font-size: 1.05em; }
.cp-form legend + * { clear: both; }
.cp-field { margin: 0 0 14px; }
.cp-field > label:not(.cp-drop):not(.cp-check) { display: block; font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.cp-form input:not([type=checkbox]):not([type=file]), .cp-form textarea {
  width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--cp-line); border-radius: 6px; font: inherit; background: #fff; color: inherit; margin: 0;
}
.cp-form input:focus, .cp-form textarea:focus { outline: 2px solid var(--cp-brand); outline-offset: 0; border-color: var(--cp-brand); }
.cp-invalid input, .cp-invalid textarea { border-color: var(--cp-err) !important; }
.cp-error { color: var(--cp-err); font-size: 13px; margin-top: 4px; display: block; }
.cp-count { color: var(--cp-muted); font-size: 12px; float: right; }
.cp-hint { color: var(--cp-muted); font-size: 13px; margin: -6px 0 12px; }
.cp-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cp-row .cp-grow { flex: 1 1 200px; }
.cp-w-plz { flex: 0 0 110px; }
.cp-hp { position: absolute !important; left: -9999px; }

.cp-chip-input { display: flex; gap: 8px; }
.cp-chip-input input { flex: 1; min-width: 0; }
.cp-chips { list-style: none !important; padding: 0 !important; margin: 10px 0 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chips li { background: var(--cp-brand-2); color: var(--cp-brand); border-radius: 20px; padding: 5px 6px 5px 12px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 4px; margin: 0; }
.cp-chips li button { border: 0; background: transparent; color: var(--cp-brand); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; }
.cp-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cp-suggest button { border: 1px dashed var(--cp-brand); background: #fff; color: var(--cp-brand); border-radius: 20px; padding: 4px 10px; font-size: 13px; cursor: pointer; line-height: 1.4; }
.cp-suggest button[aria-pressed=true] { background: var(--cp-brand); color: #fff; border-style: solid; }

.cp-drop { display: block; border: 2px dashed var(--cp-line); border-radius: var(--cp-radius); padding: 18px; text-align: center; color: var(--cp-muted); cursor: pointer; position: relative; }
.cp-drop.cp-over { border-color: var(--cp-brand); background: var(--cp-brand-2); }
.cp-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cp-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cp-previews .cp-hint { margin: 0; width: 100%; }
.cp-thumb { position: relative; background: #fff; border: 1px solid var(--cp-line); border-radius: 6px; padding: 6px; width: 150px; font-size: 12px; color: var(--cp-muted); line-height: 1.4; }
.cp-thumb img { width: 100%; height: 80px; object-fit: contain; display: block; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0/12px 12px; }
.cp-rm { position: absolute; top: 2px; right: 2px; border: 0; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; padding: 0; line-height: 22px; }
.cp-warn { color: #b26a00; }

.cp-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.cp-check input { margin-top: 4px; flex: none; }

.cp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cp-btn, .cp-btn-sec { font: inherit; font-weight: 600; border-radius: 6px; padding: 11px 18px; cursor: pointer; line-height: 1.3; }
.cp-btn { background: var(--cp-brand); color: #fff; border: 1px solid var(--cp-brand); }
.cp-btn-sec { background: #fff; color: var(--cp-brand); border: 1px solid var(--cp-brand); }
.cp-btn:disabled, .cp-btn-sec:disabled { opacity: .5; cursor: default; }
.cp-msg { min-height: 1.5em; font-weight: 600; margin: 10px 0 0; }
.cp-msg.cp-err { color: var(--cp-err); } .cp-msg.cp-ok { color: var(--cp-ok); }
.cp-notice { background: #fff8e1; border-left: 4px solid #f9a825; padding: 12px 14px; border-radius: 4px; margin-bottom: 16px; }
.cp-notice.cp-ok { background: #e8f5e9; border-color: var(--cp-ok); }

.cp-preview-head { font-size: 13px; font-weight: 700; color: var(--cp-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
#cp-preview { width: 100%; height: 75vh; min-height: 480px; border: 1px solid var(--cp-line); border-radius: var(--cp-radius); background: #fff; display: block; }
.cp-form[hidden] { display: none; }

.cp-optional { font-weight: 400; color: var(--cp-muted); }
.cp-hint-box { margin: 10px 0 0; padding: 10px 12px; background: var(--cp-brand-2); border-radius: 6px; color: var(--cp-text); line-height: 1.45; }
