/* ============================================================
   styles.css  –  T-Shirt Konfigurator
   Pfadfinder-Gruppe | Mobile-First, modernes Flat-Design
   ============================================================ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS-Variablen ─────────────────────────────────────────── */
:root {
  --brand-primary:   #2d6a4f;   /* Pfadfinder-Grün */
  --brand-secondary: #40916c;
  --brand-accent:    #b7e4c7;
  --brand-dark:      #1b4332;

  --surface:         #ffffff;
  --surface-alt:     #f4f6f3;
  --surface-border:  #e0e5de;
  --text-primary:    #1a2318;
  --text-secondary:  #4a5e46;
  --text-muted:      #8a9e86;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 32px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  --transition: 0.22s cubic-bezier(.4,0,.2,1);

  --font-main:  'Outfit', sans-serif;
  --font-mono:  'DM Mono', monospace;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family:      var(--font-main);
  background-color: var(--surface-alt);
  color:            var(--text-primary);
  min-height:       100vh;
  padding-top:      24px;
  -webkit-font-smoothing: antialiased;
}

/* ── App-Wrapper ───────────────────────────────────────────── */
#app {
  max-width:  680px;
  margin:     0 auto;
  padding:    32px 16px 80px;
}

/* ── Header ────────────────────────────────────────────────── */
.app-header {
  display:         flex;
  align-items:     center;
  gap:             12px;
  padding:         20px 0 28px;
  border-bottom:   1px solid var(--surface-border);
  margin-bottom:   28px;
}
.app-header .logo {
  width:  40px;
  height: 40px;
  background: var(--brand-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}
.app-header h1 {
  font-size:   1.35rem;
  font-weight: 700;
  color:       var(--text-primary);
  line-height: 1.2;
}
.app-header p {
  font-size:   0.8rem;
  color:       var(--text-muted);
  margin-top:  2px;
}

/* ── Progress Steps ────────────────────────────────────────── */
.progress-bar {
  display:         flex;
  align-items:     center;
  gap:             0;
  margin-bottom:   32px;
  padding:         0 4px;
}
.progress-step {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             6px;
  flex:            1;
  position:        relative;
}
.progress-step::after {
  content:    '';
  position:   absolute;
  top:        14px;
  left:       calc(50% + 16px);
  right:      calc(-50% + 16px);
  height:     2px;
  background: var(--surface-border);
  transition: background var(--transition);
}
.progress-step:last-child::after { display: none; }
.progress-step.active::after,
.progress-step.done::after { background: var(--brand-primary); }

.step-dot {
  width:            28px;
  height:           28px;
  border-radius:    50%;
  background:       var(--surface-border);
  display:          flex;
  align-items:      center;
  justify-content:  center;
  font-size:        0.72rem;
  font-weight:      600;
  color:            var(--text-muted);
  transition:       all var(--transition);
  z-index:          1;
}
.progress-step.active  .step-dot { background: var(--brand-primary); color: white; }
.progress-step.done    .step-dot { background: var(--brand-accent);   color: var(--brand-dark); }
.step-label {
  font-size:   0.68rem;
  font-weight: 500;
  color:       var(--text-muted);
  text-align:  center;
  transition:  color var(--transition);
}
.progress-step.active .step-label { color: var(--brand-primary); font-weight: 600; }
.progress-step.done   .step-label { color: var(--brand-secondary); }

/* ── Screens (Views) ───────────────────────────────────────── */
.screen {
  display:    none;
  opacity:    0;
  transform:  translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
}
.screen.active {
  display:   block;
  opacity:   1;
  transform: translateY(0);
}

/* ── Section Titles ────────────────────────────────────────── */
.section-title {
  font-size:     1.55rem;
  font-weight:   800;
  color:         var(--text-primary);
  margin-bottom: 6px;
  line-height:   1.2;
}
.section-subtitle {
  font-size:     0.92rem;
  color:         var(--text-secondary);
  margin-bottom: 24px;
  line-height:   1.5;
}

/* ── Name Search ───────────────────────────────────────────── */
.search-wrap {
  position:      relative;
  margin-bottom: 16px;
}
.search-wrap svg {
  position:       absolute;
  left:           14px;
  top:            50%;
  transform:      translateY(-50%);
  color:          var(--text-muted);
  pointer-events: none;
}
#nameSearch {
  width:         100%;
  padding:       13px 14px 13px 42px;
  border:        1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  font-family:   var(--font-main);
  font-size:     0.95rem;
  background:    var(--surface);
  color:         var(--text-primary);
  transition:    border-color var(--transition), box-shadow var(--transition);
  outline:       none;
}
#nameSearch:focus {
  border-color: var(--brand-primary);
  box-shadow:   0 0 0 3px rgba(45,106,79,.12);
}
#nameSearch::placeholder { color: var(--text-muted); }

/* ── Name Grid ─────────────────────────────────────────────── */
.names-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   10px;
}
.name-card {
  background:    var(--surface);
  border:        1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding:       16px 14px;
  cursor:        pointer;
  transition:    all var(--transition);
  display:       flex;
  align-items:   center;
  gap:           10px;
  font-weight:   500;
  font-size:     0.92rem;
  color:         var(--text-primary);
  user-select:   none;
}
.name-card:hover,
.name-card:focus {
  border-color: var(--brand-primary);
  background:   rgba(45,106,79,.04);
  transform:    translateY(-2px);
  box-shadow:   var(--shadow-md);
}
.name-card .avatar {
  width:            34px;
  height:           34px;
  border-radius:    50%;
  background:       var(--brand-accent);
  color:            var(--brand-dark);
  font-weight:      700;
  font-size:        0.85rem;
  display:          flex;
  align-items:      center;
  justify-content:  center;
  flex-shrink:      0;
  text-transform:   uppercase;
}
.name-card.hidden { display: none; }
.no-results {
  grid-column:   1 / -1;
  text-align:    center;
  color:         var(--text-muted);
  padding:       32px;
  font-size:     0.9rem;
}

/* ── Color Picker (T-Shirt-Farbe) ──────────────────────────── */
.color-cards {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   12px;
  margin-bottom:         24px;
}
.color-card {
  border-radius: var(--radius-md);
  padding:       0;
  cursor:        pointer;
  border:        3px solid transparent;
  transition:    all var(--transition);
  overflow:      hidden;
  box-shadow:    var(--shadow-sm);
  position:      relative;
}
.color-card:hover  { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.color-card.selected {
  border-color: var(--brand-primary);
  transform:    translateY(-3px);
  box-shadow:   var(--shadow-md), 0 0 0 2px white, 0 0 0 4px var(--brand-primary);
}
.color-swatch {
  height:     90px;
  display:    flex;
  align-items: center;
  justify-content: center;
}
.color-swatch svg { opacity: 0; transition: opacity var(--transition); }
.color-card.selected .color-swatch svg { opacity: 1; }

.color-label {
  padding:    8px 10px;
  text-align: center;
  font-size:  0.8rem;
  font-weight: 600;
  background: var(--surface);
  color:      var(--text-secondary);
}

/* ── Preview Screen ────────────────────────────────────────── */
.preview-toolbar {
  background:    var(--surface);
  border:        1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding:       14px 16px;
  margin-bottom: 16px;
}
.toolbar-group {
  display:        flex;
  flex-direction: column;
  gap:            10px;
}
.toolbar-label {
  font-size:   0.75rem;
  font-weight: 600;
  color:       var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.mini-color-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mini-color-btn {
  height:        48px;
  border-radius: var(--radius-sm);
  border:        2.5px solid transparent;
  cursor:        pointer;
  transition:    all var(--transition);
  outline:       none;
  padding:       0;
  font-size:     0.78rem;
  font-weight:   600;
}
.mini-color-btn:hover  { filter: brightness(1.12); }
.mini-color-btn.active {
  border-color: var(--brand-primary);
  box-shadow:   0 0 0 2px white, 0 0 0 4px var(--brand-primary);
}

/* Print color picker */
.print-color-wrap {
  display:     flex;
  align-items: center;
  gap:         8px;
  flex:        1;
  min-width:   140px;
}
#printColorInput {
  width:         36px;
  height:        36px;
  border:        none;
  border-radius: var(--radius-sm);
  cursor:        pointer;
  padding:       2px;
  background:    var(--surface-alt);
}
.print-color-hex {
  font-family: var(--font-mono);
  font-size:   0.78rem;
  color:       var(--text-secondary);
  min-width:   58px;
}
.print-color-cmyk {
  font-family: var(--font-mono);
  font-size:   0.72rem;
  color:       var(--text-muted);
  white-space: nowrap;
}

/* ── SVG Preview Cards ─────────────────────────────────────── */
.preview-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.preview-card {
  border-radius: var(--radius-md);
  overflow:      hidden;
  box-shadow:    var(--shadow-md);
  transition:    background var(--transition);
}
.preview-card-label {
  padding:     8px 12px;
  font-size:   0.72rem;
  font-weight: 600;
  color:       var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  background:  var(--surface);
  border-bottom: 1px solid var(--surface-border);
}
.preview-svg-wrap {
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         16px;
  transition:      background var(--transition);
  overflow:        hidden;
  box-sizing:      border-box;
  aspect-ratio:    1 / 1;
}
.preview-svg-wrap svg {
  width:      100%;
  height:     100%;
  display:    block;
  object-fit: contain;
}
.preview-svg-wrap img {
  max-width:  100%;
  max-height: 100%;
  object-fit: contain;
}
/* Placeholder wenn noch keine SVG geladen */
.svg-placeholder {
  width:         80px;
  height:        80px;
  border-radius: var(--radius-md);
  background:    rgba(255,255,255,.12);
  display:       flex;
  align-items:   center;
  justify-content: center;
  color:         rgba(255,255,255,.4);
  font-size:     28px;
}
[data-tshirt="white"] .svg-placeholder { color: rgba(0,0,0,.2); background: rgba(0,0,0,.06); }
[data-tshirt="gray"]  .svg-placeholder { color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  padding:         13px 24px;
  border-radius:   var(--radius-md);
  border:          none;
  font-family:     var(--font-main);
  font-size:       0.95rem;
  font-weight:     600;
  cursor:          pointer;
  transition:      all var(--transition);
  text-decoration: none;
  user-select:     none;
}
.btn-primary {
  background: var(--brand-primary);
  color:      white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover  { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface);
  color:      var(--text-secondary);
  border:     1.5px solid var(--surface-border);
}
.btn-secondary:hover { background: var(--surface-alt); }

.btn-success {
  background:  #52b788;
  color:       white;
  font-size:   1.05rem;
  padding:     15px 32px;
  box-shadow:  var(--shadow-md);
  width:       100%;
}
.btn-success:hover { background: #2d6a4f; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-danger {
  background: #e63946;
  color:      white;
}
.btn-danger:hover { background: #c1121f; }

.btn-sm {
  padding:   8px 14px;
  font-size: 0.82rem;
}

/* ── Back-Button ───────────────────────────────────────────── */
.back-btn {
  display:     inline-flex;
  align-items: center;
  gap:         6px;
  font-size:   0.85rem;
  font-weight: 500;
  color:       var(--text-muted);
  cursor:      pointer;
  border:      none;
  background:  none;
  padding:     4px 0;
  margin-bottom: 20px;
  transition:  color var(--transition);
}
.back-btn:hover { color: var(--brand-primary); }

/* ── Toast / Notifications ─────────────────────────────────── */
#toast-container {
  position:  fixed;
  bottom:    24px;
  left:      50%;
  transform: translateX(-50%);
  z-index:   9999;
  display:   flex;
  flex-direction: column;
  gap:       8px;
  pointer-events: none;
}
.toast {
  background:    var(--text-primary);
  color:         white;
  padding:       12px 20px;
  border-radius: var(--radius-md);
  font-size:     0.88rem;
  font-weight:   500;
  box-shadow:    var(--shadow-lg);
  pointer-events: auto;
  animation:     toastIn .3s cubic-bezier(.34,1.56,.64,1) both;
  display:       flex;
  align-items:   center;
  gap:           8px;
  max-width:     320px;
  white-space:   nowrap;
}
.toast.success { background: var(--brand-primary); }
.toast.error   { background: #e63946; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(.9); }
  to   { opacity: 1; transform: translateY(0)    scale(1);  }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0)    scale(1);  }
  to   { opacity: 0; transform: translateY(8px)  scale(.9); }
}
.toast.out { animation: toastOut .25s ease both; }

/* ── Summary Box (vor dem Speichern) ───────────────────────── */
.summary-box {
  background:    var(--surface);
  border:        1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding:       16px 18px;
  margin-bottom: 16px;
  font-size:     0.9rem;
  display:       grid;
  grid-template-columns: auto 1fr;
  gap:           8px 16px;
  align-items:   center;
}
.summary-box dt {
  font-weight: 600;
  color:       var(--text-muted);
  font-size:   0.78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.summary-box dd { color: var(--text-primary); font-weight: 500; }
.cmyk-badge {
  font-family: var(--font-mono);
  font-size:   0.82rem;
  background:  var(--surface-alt);
  padding:     3px 8px;
  border-radius: var(--radius-sm);
  color:       var(--text-secondary);
}
.color-dot-inline {
  display:       inline-block;
  width:         14px;
  height:        14px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right:  6px;
  border:        1px solid var(--surface-border);
}

/* ── Admin: Login ──────────────────────────────────────────── */
.admin-login-wrap {
  max-width: 380px;
  margin:    80px auto;
  padding:   0 16px;
}
.login-card {
  background:    var(--surface);
  border-radius: var(--radius-lg);
  padding:       36px 32px;
  box-shadow:    var(--shadow-lg);
}
.login-card h2 {
  font-size:   1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.login-card p {
  font-size:   0.88rem;
  color:       var(--text-muted);
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display:       block;
  font-size:     0.8rem;
  font-weight:   600;
  color:         var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.form-group input {
  width:         100%;
  padding:       12px 14px;
  border:        1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  font-family:   var(--font-main);
  font-size:     0.95rem;
  background:    var(--surface-alt);
  color:         var(--text-primary);
  outline:       none;
  transition:    border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus {
  border-color: var(--brand-primary);
  box-shadow:   0 0 0 3px rgba(45,106,79,.12);
  background:   var(--surface);
}

/* ── Admin: Dashboard ──────────────────────────────────────── */
.admin-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         20px 0 24px;
  border-bottom:   1px solid var(--surface-border);
  margin-bottom:   24px;
  flex-wrap:       wrap;
  gap:             12px;
}
.admin-header h1 { font-size: 1.35rem; font-weight: 800; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stats-row {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap:                   12px;
  margin-bottom:         24px;
}
.stat-card {
  background:    var(--surface);
  border:        1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding:       16px;
  text-align:    center;
}
.stat-card .stat-number {
  font-size:   1.7rem;
  font-weight: 800;
  color:       var(--brand-primary);
  line-height: 1;
}
.stat-card .stat-label {
  font-size:   0.75rem;
  color:       var(--text-muted);
  margin-top:  4px;
  font-weight: 500;
}

/* Orders Table */
.orders-wrap {
  background:    var(--surface);
  border:        1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow:      hidden;
}
.orders-wrap h3 {
  padding:       14px 18px;
  font-size:     0.88rem;
  font-weight:   700;
  border-bottom: 1px solid var(--surface-border);
  color:         var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.orders-table {
  width:           100%;
  border-collapse: collapse;
  font-size:       0.86rem;
}
.orders-table th {
  padding:         10px 14px;
  text-align:      left;
  font-size:       0.72rem;
  font-weight:     700;
  color:           var(--text-muted);
  text-transform:  uppercase;
  letter-spacing:  .05em;
  background:      var(--surface-alt);
  border-bottom:   1px solid var(--surface-border);
  white-space:     nowrap;
}
.orders-table td {
  padding:       10px 14px;
  border-bottom: 1px solid var(--surface-border);
  color:         var(--text-primary);
  vertical-align: middle;
}
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: var(--surface-alt); }

.tshirt-badge {
  display:       inline-flex;
  align-items:   center;
  gap:           6px;
  padding:       3px 8px;
  border-radius: 20px;
  font-size:     0.78rem;
  font-weight:   600;
  border:        1px solid var(--surface-border);
}
.timestamp-cell {
  font-family: var(--font-mono);
  font-size:   0.75rem;
  color:       var(--text-muted);
}
.empty-table {
  text-align:  center;
  padding:     48px 16px;
  color:       var(--text-muted);
  font-size:   0.9rem;
}

/* ── Loading Spinner ───────────────────────────────────────── */
.spinner {
  width:         24px;
  height:        24px;
  border:        3px solid var(--surface-border);
  border-top:    3px solid var(--brand-primary);
  border-radius: 50%;
  animation:     spin .7s linear infinite;
  margin:        40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Screen-Transition-Overlay ─────────────────────────────── */
.transition-overlay {
  position:   fixed;
  inset:      0;
  background: var(--brand-primary);
  z-index:    8888;
  opacity:    0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.transition-overlay.flash {
  opacity:    .18;
  transition: opacity 0s;
}

/* ── Responsive: Desktop ───────────────────────────────────── */
@media (min-width: 520px) {
  #app { padding: 0 24px 80px; }
  .names-grid { grid-template-columns: 1fr 1fr 1fr; }
  .preview-cards { gap: 20px; }
  .preview-svg-wrap { min-height: 220px; }
  .color-cards { gap: 16px; }
}

@media (max-width: 380px) {
  .names-grid { grid-template-columns: 1fr; }
  .color-cards { grid-template-columns: 1fr; }
  .preview-cards { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   PHOTOSHOP-ARTIGER COLORPICKER
   ════════════════════════════════════════════════════════════ */

.colorpicker-card {
  background:    var(--surface);
  border:        1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding:       16px;
  margin-bottom: 16px;
}
.colorpicker-title {
  font-size:     0.75rem;
  font-weight:   700;
  color:         var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}
.colorpicker-body {
  display:   flex;
  gap:       10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

/* Saturation/Brightness canvas */
.cp-field-wrap {
  position:      relative;
  flex:          1;
  border-radius: var(--radius-sm);
  overflow:      hidden;
  cursor:        crosshair;
  touch-action:  none;
}
.cp-field {
  display:    block;
  width:      100%;
  height:     200px;
  border-radius: var(--radius-sm);
}
.cp-cursor {
  position:       absolute;
  width:          14px;
  height:         14px;
  border-radius:  50%;
  border:         2.5px solid white;
  box-shadow:     0 0 0 1.5px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.3);
  transform:      translate(-50%, -50%);
  pointer-events: none;
  top:            10%;
  left:           90%;
}

/* Hue-Slider canvas */
.cp-hue {
  width:         20px;
  height:        200px;
  border-radius: var(--radius-sm);
  cursor:        ns-resize;
  flex-shrink:   0;
  touch-action:  none;
}

/* Inputs row */
.cp-inputs {
  display:     flex;
  align-items: center;
  gap:         10px;
  flex-wrap:   wrap;
}
.cp-swatch-large {
  width:         40px;
  height:        40px;
  border-radius: var(--radius-sm);
  border:        1.5px solid var(--surface-border);
  flex-shrink:   0;
  background:    #ffffff;
}
.cp-hex-wrap {
  display:       flex;
  align-items:   center;
  border:        1.5px solid var(--surface-border);
  border-radius: var(--radius-sm);
  overflow:      hidden;
  background:    var(--surface-alt);
}
.cp-hash {
  padding:     0 6px;
  font-family: var(--font-mono);
  font-size:   0.85rem;
  color:       var(--text-muted);
  background:  var(--surface-border);
  align-self:  stretch;
  display:     flex;
  align-items: center;
}
.cp-hex-input {
  width:       70px;
  padding:     8px 8px;
  border:      none;
  outline:     none;
  font-family: var(--font-mono);
  font-size:   0.85rem;
  background:  var(--surface-alt);
  color:       var(--text-primary);
  text-transform: uppercase;
}
.cp-rgb-group {
  display:  flex;
  gap:      6px;
}
.cp-rgb-group label {
  display:        flex;
  flex-direction: row;
  align-items:    center;
  gap:            0;
  font-size:      0.85rem;
  font-weight:    600;
  color:          var(--text-muted);
  text-transform: uppercase;
  border:         1.5px solid var(--surface-border);
  border-radius:  var(--radius-sm);
  overflow:       hidden;
  background:     var(--surface-alt);
}
.cp-rgb-group label span,
.cp-rgb-group label:first-letter {
  padding:    0 6px;
  background: var(--surface-border);
  align-self: stretch;
  display:    flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size:   0.85rem;
}
.cp-num {
  width:         42px;
  padding:       8px 4px;
  border:        none;
  border-radius: 0;
  font-family:   var(--font-mono);
  font-size:     0.85rem;
  text-align:    center;
  background:    var(--surface-alt);
  color:         var(--text-primary);
  outline:       none;
  -moz-appearance: textfield;
}
.cp-num::-webkit-inner-spin-button,
.cp-num::-webkit-outer-spin-button { -webkit-appearance: none; }
.cp-num:focus { background: var(--surface); }

/* Druckfarbe Preview in Toolbar */
.print-color-preview-wrap {
  display:     flex;
  align-items: center;
  gap:         8px;
}
.print-color-swatch {
  width:         28px;
  height:        28px;
  border-radius: var(--radius-sm);
  border:        1.5px solid var(--surface-border);
  background:    #ffffff;
}
.print-color-name {
  font-size:   0.85rem;
  font-weight: 500;
  color:       var(--text-secondary);
}

@media (max-width: 400px) {
  .cp-field { height: 160px; }
  .cp-hue   { height: 160px; }
  .cp-rgb-group { display: none; }
}
