/* ── Profilwahl Plugin Styles ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500&display=swap');

.pw-wrap {
  font-family: 'IBM Plex Sans', sans-serif;
  max-width: 760px;
  margin: 0 auto;
  color: #1c1c2b;
}

/* Cards */
.pw-card {
  background: #fff;
  border: 1px solid #ddd9d0;
  border-radius: 12px;
  padding: 1.6rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 2px 16px rgba(28,28,43,.07);
}
.pw-card--warn { background: #fff8e1; border-color: #f0cc5a; }

/* Headings */
.pw-heading {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}
.pw-sub { color: #7a7a8c; font-size: .9rem; line-height: 1.65; margin-bottom: 1.2rem; }
.pw-hint { font-size: .78rem; color: #7a7a8c; margin-top: .3rem; }
.pw-label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: .35rem; }

/* DSGVO box */
.pw-dsgvo {
  background: #e8f3ec;
  border: 1px solid #b4d9c3;
  border-left: 4px solid #3a7d52;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.6rem;
  font-size: .82rem;
  color: #2a5a3d;
  line-height: 1.65;
}
.pw-dsgvo strong { display: block; margin-bottom: .3rem; font-size: .87rem; }

/* Inputs */
.pw-input, .pw-select {
  width: 100%;
  padding: .65rem .95rem;
  border: 1.5px solid #ddd9d0;
  border-radius: 7px;
  font-family: inherit;
  font-size: .93rem;
  background: #f6f4ef;
  color: #1c1c2b;
  transition: border .15s;
  outline: none;
  box-sizing: border-box;
}
.pw-input:focus, .pw-select:focus { border-color: #2e6faf; background: #fff; }
.pw-field { margin-bottom: 1.1rem; }

/* Wish rows */
.pw-wish-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .7rem; }
.pw-wish-badge {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .82rem; flex-shrink: 0;
  color: #fff; background: #2e6faf;
}
.pw-badge-2 { opacity: .78; }
.pw-badge-3 { background: #7a7a8c; }
.pw-wish-row .pw-select { margin: 0; }

/* Buttons */
.pw-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.6rem; border: none; border-radius: 7px;
  font-family: inherit; font-size: .9rem; font-weight: 500;
  cursor: pointer; transition: all .15s; white-space: nowrap;
  text-decoration: none;
}
.pw-btn--primary { background: #2e6faf; color: #fff; }
.pw-btn--primary:hover { background: #235a94; transform: translateY(-1px); }
.pw-btn--green { background: #3a7d52; color: #fff; }
.pw-btn--green:hover { background: #2d6140; }
.pw-btn--outline { background: none; border: 1.5px solid #ddd9d0; color: #1c1c2b; }
.pw-btn--outline:hover { border-color: #1c1c2b; background: #f0ece4; }
.pw-btn--danger { background: #c0392b; color: #fff; }
.pw-btn--sm { padding: .4rem .9rem; font-size: .82rem; }
.pw-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* Notices */
.pw-notice {
  padding: .75rem 1rem; border-radius: 7px; font-size: .84rem;
  margin-bottom: .9rem; line-height: 1.5;
}
.pw-notice--warn    { background: #fff8e1; border: 1px solid #f0cc5a; color: #7a5f00; }
.pw-notice--success { background: #e8f3ec; border: 1px solid #b4d9c3; color: #2a5a3d; }
.pw-notice--error   { background: #fde8e8; border: 1px solid #e8b4b4; color: #7a0000; }

/* Success screen */
.pw-success { text-align: center; padding: 2rem 1rem; }
.pw-success__icon { font-size: 3rem; margin-bottom: .7rem; }

/* Dashboard tabs */
.pw-dashboard { max-width: 860px; margin: 0 auto; padding: 1.5rem; }
.pw-dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem; }
.pw-dash-title { font-family: Georgia, serif; font-size: 1.6rem; font-weight: 700; margin: 0; }
.pw-sj { color: #2e6faf; }

.pw-inner-tabs { display: flex; gap: .4rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.pw-inner-tab {
  background: none; border: 1.5px solid #ddd9d0; color: #7a7a8c;
  border-radius: 7px; cursor: pointer; font-family: inherit;
  font-size: .82rem; padding: .4rem 1rem; transition: all .15s;
}
.pw-inner-tab.active, .pw-inner-tab:hover { border-color: #2e6faf; color: #2e6faf; background: #e8f0f8; }
.pw-tab-content { display: none; }
.pw-tab-content.active { display: block; }

/* Module config */
.pw-mod-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.pw-mod-col-labels { display: grid; grid-template-columns: 26px 1fr 80px 90px 36px; gap: .6rem; padding: .3rem .5rem; font-size: .72rem; color: #7a7a8c; font-weight: 500; text-transform: uppercase; letter-spacing: .3px; }
.pw-mod-row { display: grid; grid-template-columns: 26px 1fr 80px 90px 36px; align-items: center; gap: .6rem; background: #f6f4ef; border: 1.5px solid #ddd9d0; border-radius: 8px; padding: .55rem .9rem; margin-bottom: .55rem; }
.pw-mod-idx { width: 22px; height: 22px; border-radius: 50%; background: #2e6faf; color: #fff; font-size: .72rem; display: flex; align-items: center; justify-content: center; }
.pw-mod-name { border: none; background: none; padding: .2rem 0; font-size: .9rem; font-family: inherit; width: 100%; }
.pw-mod-max  { border: none; background: none; text-align: center; font-size: .9rem; font-family: inherit; width: 100%; }

/* Toggle */
.pw-toggle-wrap { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.pw-toggle { position: relative; width: 34px; height: 18px; flex-shrink: 0; }
.pw-toggle input { opacity: 0; width: 0; height: 0; }
.pw-toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; border-radius: 18px; transition: .2s; }
.pw-toggle-slider:before { content: ''; position: absolute; width: 12px; height: 12px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.pw-toggle input:checked + .pw-toggle-slider { background: #c07820; }
.pw-toggle input:checked + .pw-toggle-slider:before { transform: translateX(16px); }

/* Stats */
.pw-stats-row { display: flex; gap: .9rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.pw-stat-box { flex: 1; min-width: 100px; background: #fff; border: 1px solid #ddd9d0; border-radius: 10px; padding: .9rem; text-align: center; box-shadow: 0 2px 16px rgba(28,28,43,.07); }
.pw-stat-box .pw-num { font-family: Georgia, serif; font-size: 1.9rem; font-weight: 700; }
.pw-stat-box .pw-lbl { font-size: .73rem; color: #7a7a8c; }

/* Tables */
.pw-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid #ddd9d0; margin-bottom: 1.2rem; }
.pw-table { width: 100%; border-collapse: collapse; font-size: .86rem; background: #fff; }
.pw-table th { background: #1c1c2b; color: #fff; text-align: left; padding: .6rem .9rem; font-weight: 500; font-size: .76rem; letter-spacing: .4px; text-transform: uppercase; }
.pw-table td { padding: .6rem .9rem; border-bottom: 1px solid #ddd9d0; vertical-align: middle; }
.pw-table tr:last-child td { border-bottom: none; }
.pw-table tr:hover td { background: #f5f3ee; }
.pw-hj1-col { border-left: 3px solid #7b4fa6 !important; padding-left: .9rem !important; }
.pw-hj2-col { border-left: 3px solid #c07820 !important; padding-left: .9rem !important; }
.pw-empty { text-align: center; color: #7a7a8c; padding: 2rem !important; }

/* Tags */
.pw-tag { display: inline-block; padding: .22rem .6rem; border-radius: 20px; font-size: .74rem; font-weight: 500; }
.pw-tag--w    { background: #e8f0f8; color: #2e6faf; }
.pw-tag--ok   { background: #e8f3ec; color: #3a7d52; }
.pw-tag--miss { background: #fde8e8; color: #c0392b; }
.pw-tag--hj1  { background: #f2ecfa; color: #7b4fa6; }
.pw-tag--hj2  { background: #fdf3e3; color: #c07820; }
.pw-tag--both { background: #ececec; color: #444; }

/* HJ-Verteilung chips */
.pw-hj-chips { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.pw-hj-chip { background: #fff; border: 1px solid #ddd9d0; border-radius: 9px; padding: .55rem .9rem; display: flex; align-items: center; gap: .5rem; box-shadow: 0 2px 16px rgba(28,28,43,.07); font-size: .86rem; font-weight: 500; }

/* Module result cards */
.pw-mod-result { background: #fff; border: 1px solid #ddd9d0; border-radius: 10px; padding: 1.1rem 1.3rem; margin-bottom: .7rem; box-shadow: 0 2px 16px rgba(28,28,43,.07); }
.pw-mod-result h3 { font-family: Georgia, serif; font-size: 1rem; margin-bottom: .25rem; }
.pw-fill-bar  { background: #ddd9d0; border-radius: 20px; height: 7px; margin-top: .5rem; }
.pw-fill-inner{ border-radius: 20px; height: 7px; transition: width .5s; }

/* Progress */
.pw-progress-bar { background: #ddd9d0; border-radius: 20px; height: 8px; margin: .5rem 0; }
.pw-progress-inner { background: #2e6faf; border-radius: 20px; height: 8px; transition: width .15s; }
.pw-progress-label { font-size: .82rem; color: #7a7a8c; margin-bottom: .3rem; }

.pw-sep { border: none; border-top: 1px solid #ddd9d0; margin: 1.8rem 0; }
.pw-badge-count { background: #2e6faf; color: #fff; border-radius: 20px; padding: .1rem .5rem; font-size: .72rem; margin-left: .3rem; }
.pw-loading { color: #7a7a8c; font-size: .9rem; }
.pw-code { display: block; background: #f6f4ef; border: 1px solid #ddd9d0; border-radius: 6px; padding: .4rem .8rem; font-size: .85rem; margin-top: .3rem; }
.pw-pin-form .pw-field { margin-bottom: 1rem; }

/* Badge count in WP admin */
.pw-badge-count { display:inline-block; }

@media(max-width:560px) {
  .pw-mod-row { grid-template-columns: 26px 1fr; }
  .pw-mod-max, .pw-toggle-wrap, .pw-mod-remove { grid-column: 2; }
  .pw-mod-col-labels { display: none; }
}
