/* fachkraftportal/fkp_portal.css
   Attractive 9er-Grid + Flipcards (Demo)
*/
:root{
  --fkp-radius: 16px;
  --fkp-shadow: 0 18px 50px rgba(2,6,23,.08);
  --fkp-border: 1px solid rgba(15,23,42,.12);
}

.page-inner.fkp{ max-width: 1000px; }

/* ===== Top / Hero ===== */
.fkp-top{ display:flex; gap:16px; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; margin: 18px 0 10px; }
.fkp-kicker{
  margin:0 0 10px;
  font-weight: 900;
  letter-spacing:.08em;
  text-transform: uppercase;
  font-size: 10px;
  color: rgba(2,6,23,.55);
}
.fkp-title{
  margin:0 0 10px;
  font-size: clamp(26px, 3.9vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.fkp-sub{
  margin:0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(2,6,23,.78);
  max-width: 70ch;
}
.fkp-badges{ display:flex; gap:8px; flex-wrap:wrap; padding-bottom: 6px; }
.fkp-badge{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 10px;
  background: rgba(255,255,255,.85);
  border: var(--fkp-border);
  box-shadow: 0 10px 25px rgba(2,6,23,.06);
}

/* ===== Search / Filters ===== */
.fkp-bar{
  margin: 14px 0 16px;
  padding: 12px;
  border-radius: 18px;
  border: var(--fkp-border);
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 40px rgba(2,6,23,.06);
}

.fkp-search{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .14);
  background: rgba(255,255,255,.92);
}
.fkp-search__icon{ opacity:.6; font-weight: 900; }
.fkp-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  font-weight: 800;
  font-size: 12px;
  color: #0b0f19;
}
.fkp-search input::placeholder{ color: rgba(2,6,23,.55); font-weight: 700; }

.fkp-filters{
  display:flex;
  gap:10px;
  align-items:flex-end;
  flex-wrap:wrap;
  margin-top: 10px;
}

.fkp-field{ display:flex; flex-direction:column; gap:6px; min-width: 150px; }
.fkp-field span{ font-size: 11px; font-weight: 900; color: rgba(2,6,23,.65); }
.fkp-field select{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .14);
  background: rgba(255,255,255,.92);
  font-weight: 900;
  font-size: 13px;
  color: rgba(2,6,23,.88);
  outline:none;
}

.fkp-actions{ margin-left:auto; display:flex; gap:10px; }

.fkp-chips{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }
.fkp-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: var(--fkp-border);
  background: rgba(255,255,255,.76);
  font-weight: 900;
  font-size: 12px;
  cursor:pointer;
}
.fkp-chip span{ opacity:.7; }

/* ===== Grid ===== */
.fkp-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 26px;
}
@media (max-width: 980px){
  .fkp-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fkp-actions{ width:100%; justify-content:flex-start; }
}
@media (max-width: 640px){
  .fkp-grid{ grid-template-columns: 1fr; }
  .fkp-field{ min-width: 140px; }
}

/* ===== Cards / Flip ===== */
.fkp-card{ perspective: 1200px; }

.fkp-card__inner{
  position: relative;
  width: 100%;
  height: 294px;
  border-radius: var(--fkp-radius);
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
}
.fkp-card__inner:focus{ outline: none; box-shadow: 0 0 0 3px rgba(27,79,255,.18), var(--fkp-shadow); }
.fkp-card__inner.is-flipped{ transform: rotateY(180deg); }

.fkp-face{
  position:absolute;
  inset:0;
  border-radius: var(--fkp-radius);
  overflow:hidden;
  backface-visibility: hidden;
  border: var(--fkp-border);
  box-shadow: var(--fkp-shadow);
  background: #fff;
}
.fkp-back{ transform: rotateY(180deg); }

/* Front: full image with overlay */
.fkp-front__media{ position:absolute; inset:0; }
.fkp-front__media img{
  width:100%; height:100%; object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(1.02) contrast(1.02);
}
.fkp-front__grad{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(2,6,23,.06) 0%, rgba(2,6,23,.0) 35%, rgba(2,6,23,.65) 100%);
}

.fkp-pill{
  position:absolute;
  top:12px;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(2,6,23,.9);
  background: rgba(255,255,255,.86);
  border: var(--fkp-border);
  backdrop-filter: blur(10px);
}
.fkp-pill--demo{ left:12px; }
.fkp-pill--match{ right:12px; }

.fkp-front__bottom{
  position:absolute;
  left:0; right:0; bottom:0;
  padding: 10px 10px 9px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
}

.fkp-front__who{ display:flex; gap:10px; align-items:center; min-width:0; }
.fkp-initials{
  width: 34px; height:34px;
  border-radius: 12px;
  display:grid; place-items:center;
  font-weight: 1000;
  letter-spacing: .02em;
  color: rgba(2,6,23,.9);
  background: rgba(255,255,255,.86);
  border: var(--fkp-border);
  flex: 0 0 auto;
}
.fkp-front__name{ font-weight: 1000; font-size: 12px; line-height: 1.1; color: #fff; text-shadow: 0 10px 30px rgba(0,0,0,.35); }
.fkp-front__meta{
  margin-top: 2px;
  font-weight: 900;
  font-size: 10px;
  color: rgba(255,255,255,.88);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.fkp-front__chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 8px; }
.fkp-mini{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(2,6,23,.88);
  background: rgba(255,255,255,.86);
  border: var(--fkp-border);
}

.fkp-front__icons{ display:flex; gap:8px; flex:0 0 auto; }
.fkp-iconbtn{
  width: 34px; height:34px;
  border-radius: 12px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.9);
  border: var(--fkp-border);
  text-decoration:none;
  box-shadow: 0 12px 25px rgba(2,6,23,.08);
}
.fkp-iconbtn:hover{ transform: translateY(-1px); }
.fkp-iconbtn svg{ width: 16px; height:16px; opacity:.85; }

.fkp-front__hint{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%) scale(.98);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: rgba(255, 0, 170, .75);
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  letter-spacing: .2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

/* Back */
.fkp-back{
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(27,79,255,.10), transparent 60%),
    radial-gradient(700px 420px at 80% 80%, rgba(16,185,129,.10), transparent 60%),
    #fff;
}

.fkp-back__wrap{ padding: 12px; height:100%; display:flex; flex-direction:column; }
.fkp-back__top{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.fkp-back__title{ font-weight: 1000; font-size: 12px; letter-spacing: -.02em; }
.fkp-back__sub{ margin-top:4px; color: rgba(2,6,23,.68); font-weight: 800; font-size: 11px; }

.fkp-back__close{
  width: 34px; height:34px;
  border-radius: 12px;
  border: var(--fkp-border);
  background: rgba(255,255,255,.9);
  display:grid; place-items:center;
  cursor:pointer;
  font-weight: 1000;
}


.fkp-back__facts{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; margin-top: 14px; }
.fkp-fact{
  border-radius: 16px;
  border: var(--fkp-border);
  background: rgba(255,255,255,.82);
  padding: 10px 12px;
}
.fkp-fact .k{ display:block; font-size: 11px; font-weight: 1000; color: rgba(2,6,23,.62); }
.fkp-fact .v{ display:block; margin-top: 2px; font-weight: 1000; color: rgba(2,6,23,.9); }

.fkp-back__skills{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 12px; }
.fkp-tag{
  padding: 5px 8px;
  border-radius: 999px;
  border: var(--fkp-border);
  background: rgba(255,255,255,.86);
  font-weight: 900;
  font-size: 12px;
}

.fkp-back__bio{
  margin-top: 10px;
  color: rgba(2,6,23,.76);
  line-height: 1.55;
  font-size: 12px;
  overflow:auto;
  padding-right: 4px;
}


/* Empty state */
.fkp-empty{ padding: 26px 0 40px; }
.fkp-empty h2{ margin:0 0 6px; }
.fkp-empty p{ margin:0 0 12px; color: rgba(2,6,23,.7); }


/* Back brief (steckbrief) */
.fkp-back__brief{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 6px 10px;
  margin-top: 12px;
  padding: 10px 10px;
  border-radius: 16px;
  border: var(--fkp-border);
  background: rgba(255,255,255,.78);
}
.fkp-brief__row{
  display:grid;
  grid-template-columns: 18px auto 1fr;
  gap: 6px;
  align-items:center;
  min-width:0;
}
.fkp-brief__row .i{ font-size: 12px; line-height: 1; opacity: .85; }
.fkp-brief__row .k{ font-size: 10px; font-weight: 1000; color: rgba(2,6,23,.62); }
.fkp-brief__row .v{ font-size: 11px; font-weight: 1000; color: rgba(2,6,23,.9); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; justify-self:end; }


@media (hover:hover){
  .fkp-card:hover .fkp-front__hint{ opacity:1; transform: translate(-50%, -50%) scale(1); }
}
