/* RecruitFast Creator Pool 1.2
   Basis-Stylesheet fuer Portal, Profilformular und Kundenauswahl. */

:root {
  --rf-green: #084f39;
  --rf-green-dark: #063d2d;
  --rf-blue: #1261ff;
  --rf-ink: #171a1e;
  --rf-muted: #5e6670;
  --rf-paper: #f7f4ee;
  --rf-line: #d9d9d3;
  --rf-white: #fff;
  --rf-error: #7a1f13;
  --rf-error-bg: #ffe8e5;
  --rf-ok: #064632;
  --rf-ok-bg: #e2f4ec;
}

* { box-sizing: border-box; }

.rfcp-shell,
.rfcp-profile,
.rfcp-showcase,
.rfcp-showcase-header {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--rf-ink);
}

/* --------------------------------------------------------------- Grundgeruest */

.rfcp-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 70px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 55px;
  align-items: start;
}

.rfcp-intro { padding: 34px 0; }

.rfcp-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.rfcp-intro h1,
.rfcp-profile h1,
.rfcp-showcase h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .96;
}

.rfcp-intro h1 span { color: var(--rf-green); }

.rfcp-intro p:not(.rfcp-kicker) { font-size: 19px; color: #404750; }

.rfcp-intro-note {
  padding-left: 16px;
  border-left: 4px solid var(--rf-green);
  font-size: 16px !important;
}

/* ------------------------------------------------------------------ Formulare */

.rfcp-auth,
.rfcp-panel {
  padding: 30px;
  border: 1px solid var(--rf-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(20, 25, 23, .08);
}

.rfcp-panel--soft {
  margin-bottom: 18px;
  box-shadow: none;
  background: #eef3ff;
  border-color: #c9d9ff;
}

.rfcp-authbox { display: block; }

.rfcp-field,
.rfcp-auth label,
.rfcp-step > label,
.rfcp-grid > label,
.rfcp-showcase--login label,
.rfcp-feedback label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 700;
  /* Ohne diese Zeile dehnen sich Felder auf die Höhe der Nachbarzelle,
     sobald dort ein Hinweis oder ein Fehlertext steht. */
  align-content: start;
}

.rfcp-auth input:not([type=checkbox]):not([type=file]),
.rfcp-step input:not([type=checkbox]):not([type=file]),
.rfcp-step textarea,
.rfcp-resend input,
.rfcp-showcase--login input,
.rfcp-feedback input,
.rfcp-feedback textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #9aa09a;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.rfcp-step textarea,
.rfcp-feedback textarea { min-height: 120px; resize: vertical; }

.rfcp-step input[type=file] {
  width: 100%;
  padding: 12px;
  border: 2px dashed #9aa09a;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.rfcp-hint,
.rfcp-auth small,
.rfcp-step small {
  color: var(--rf-muted);
  font-weight: 400;
  font-size: 14px;
}

.rfcp-lead {
  margin: 0 0 20px;
  max-width: 70ch;
  font-size: 17px;
  color: #404750;
}

.rfcp-legend {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--rf-muted);
}

.rfcp-muted { color: var(--rf-muted); font-size: 15px; }

.rfcp-check {
  display: flex !important;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 11px;
  margin: 12px 0 !important;
  font-weight: 500 !important;
}

.rfcp-check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--rf-green);
  flex: 0 0 auto;
}

.rfcp-check > span { flex: 1 1 240px; }
.rfcp-check .rfcp-error { flex: 1 1 100%; }

/* --------------------------------------------------------------- Fehlerbilder */

/* Die Auszeichnung muss die graue Standardfarbe von .rfcp-step small schlagen,
   sonst erscheinen Fehlertexte grau und werden überlesen. */
.rfcp-error,
small.rfcp-error,
p.rfcp-error {
  display: block;
  color: var(--rf-error);
  font-weight: 700;
  font-size: 14px;
}

.rfcp-error::before { content: "▲ "; }

/* Ebenfalls hochgezogen, damit der rote Rahmen die Standardumrandung
   aus .rfcp-step input bzw. .rfcp-auth input überschreibt. */
.rfcp-field--error input,
.rfcp-field--error textarea,
.rfcp-step .rfcp-field--error input:not([type=checkbox]):not([type=file]),
.rfcp-step .rfcp-field--error textarea,
.rfcp-auth .rfcp-field--error input:not([type=checkbox]):not([type=file]) {
  border-color: var(--rf-error);
  border-width: 2px;
  background: #fffafa;
}

.rfcp-check--error { padding: 8px; border-radius: 8px; background: var(--rf-error-bg); }

.rfcp-choice-grid--error {
  padding: 10px;
  border: 2px solid var(--rf-error);
  border-radius: 12px;
}

.rfcp-upload--error { border-color: var(--rf-error) !important; }

.rfcp-errorlist ul { margin: 8px 0 0; padding-left: 20px; }
.rfcp-errorlist li { margin-bottom: 6px; }
.rfcp-errorlist a { color: var(--rf-error); }
.rfcp-errorlist a span { font-weight: 400; }

.rfcp-match { font-weight: 600; }
.rfcp-match--ok { color: var(--rf-ok); }
.rfcp-match--bad { color: var(--rf-error); }

/* --------------------------------------------------------------------- Buttons */

.rfcp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid var(--rf-green);
  border-radius: 8px;
  background: var(--rf-green);
  color: #fff !important;
  font: 800 15px Inter, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.rfcp-btn:hover { background: var(--rf-green-dark); border-color: var(--rf-green-dark); }

.rfcp-btn--outline {
  background: transparent;
  color: var(--rf-ink) !important;
  border-color: var(--rf-ink);
}

.rfcp-btn--outline:hover { background: rgba(0, 0, 0, .06); }

.rfcp-switch { margin-bottom: 0; }

/* D5: Tastaturbedienung muss sichtbar sein. */
.rfcp-shell :focus-visible,
.rfcp-profile :focus-visible,
.rfcp-showcase :focus-visible {
  outline: 3px solid var(--rf-blue);
  outline-offset: 2px;
}

.rfcp-choice-grid input:focus-visible + span {
  outline: 3px solid var(--rf-blue);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* -------------------------------------------------------------------- Hinweise */

.rfcp-alert {
  width: 100%;
  margin: 0 0 18px;
  padding: 15px 18px;
  border-radius: 9px;
  background: #e8ecff;
  line-height: 1.55;
}

/* Hinweise laufen immer über die volle Breite und dürfen das
   zweispaltige Raster von Shell und Formular nicht verschieben. */
.rfcp-shell > .rfcp-alert,
.rfcp-shell > .rfcp-errorlist,
.rfcp-auth > .rfcp-alert,
.rfcp-profile > .rfcp-alert,
.rfcp-profile > .rfcp-errorlist {
  grid-column: 1 / -1;
  justify-self: stretch;
}

/* Honigtopf gegen automatische Formularsender, für Menschen unsichtbar. */
.rfcp-hp {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rfcp-hp input { width: 1px !important; min-height: 0 !important; padding: 0 !important; }

.rfcp-logout { margin: 0; }
.rfcp-field--wide { grid-column: 1 / -1; }

.rfcp-fileinfo {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eef3ff;
  font-size: 14px;
}

.rfcp-btn.is-busy {
  opacity: .75;
  cursor: progress;
}

/* Einzelprofil als Druckseite für das Backend. */
.rfcp-sheet { max-width: 900px; }
.rfcp-sheet h2 { margin: 26px 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: var(--rf-green); }
.rfcp-sheet-img { width: 170px; height: 170px; object-fit: cover; border-radius: 12px; margin: 18px 0; }
.rfcp-sheet-stars { margin: 10px 0 0; display: flex; gap: 10px; align-items: center; }
.rfcp-sheet-stars .rfcp-stars { color: #b8860b; font-size: 18px; letter-spacing: 2px; }
.rfcp-sheet-stars .rfcp-stars-off { color: #d9d9d3; }
.rfcp-sheet-chip { padding: 3px 10px; border-radius: 20px; background: #fff2d6; color: #7a5200; font-size: 13px; font-weight: 700; }
.rfcp-sheet-list { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 6px 20px; margin: 0; }
.rfcp-sheet-list dt { color: var(--rf-muted); font-size: 14px; }
.rfcp-sheet-list dd { margin: 0; overflow-wrap: anywhere; }
.rfcp-sheet-notes { padding: 14px; background: #fff8e5; border-left: 4px solid #d4a017; }

.rfcp-alert--ok { background: var(--rf-ok-bg); color: var(--rf-ok); }
.rfcp-alert--error { background: var(--rf-error-bg); color: var(--rf-error); }
.rfcp-alert a { color: inherit; }

.rfcp-checklist { margin: 16px 0; padding-left: 20px; line-height: 1.7; }

.rfcp-resend { margin: 10px 0 18px; display: grid; gap: 10px; }
.rfcp-resend--compact { margin: 0; }

/* ------------------------------------------------------------------- Profilkopf */

.rfcp-profile { width: min(1200px, calc(100% - 32px)); margin: 22px auto 75px; }

.rfcp-profile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  padding: 36px;
  background: var(--rf-blue);
  color: #fff;
  border-radius: 18px;
}

.rfcp-profile-head h1 { font-size: clamp(36px, 4.5vw, 60px); }
.rfcp-profile-head p { max-width: 680px; font-size: 17px; }
.rfcp-profile-head .rfcp-btn--outline { border-color: #fff; color: #fff !important; }
.rfcp-profile-head .rfcp-btn--outline:hover { background: rgba(255, 255, 255, .16); }

.rfcp-progress-wrap { margin: 25px 0 18px; }

.rfcp-progress-label {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--rf-green);
}

.rfcp-progress {
  height: 10px;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.rfcp-progress span {
  display: block;
  width: 12.5%;
  height: 100%;
  background: linear-gradient(90deg, var(--rf-green), var(--rf-blue));
  transition: width .25s;
}

/* A2: Ohne JavaScript sind alle Abschnitte sichtbar und das Formular bleibt nutzbar. */
.rfcp-step {
  display: block;
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--rf-line);
  border-radius: 18px;
  background: var(--rf-paper);
}

.rfcp-js .rfcp-step { display: none; margin-bottom: 0; min-height: 420px; }
.rfcp-js .rfcp-step.is-active { display: block; }

.rfcp-step h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.rfcp-step h3 { margin: 26px 0 10px; font-size: 20px; }

.rfcp-step-count {
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 13px;
  color: var(--rf-green);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rfcp-grid { display: grid; gap: 0 18px; }
.rfcp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rfcp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.rfcp-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.rfcp-choice-grid label { position: relative; margin: 0; }
.rfcp-choice-grid input { position: absolute; top: 6px; left: 6px; opacity: 0; }

.rfcp-choice-grid span {
  display: block;
  height: 100%;
  padding: 14px;
  border: 2px solid var(--rf-line);
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.rfcp-choice-grid input:checked + span {
  border-color: var(--rf-green);
  background: #dff1e9;
  color: var(--rf-green);
}

.rfcp-choice-grid input:checked + span::before { content: "✓ "; font-weight: 900; }

/* ---------------------------------------------------------------- Bild-Upload */

.rfcp-upload {
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid var(--rf-line);
  border-radius: 14px;
  background: #fff;
}

.rfcp-upload h3 { margin-top: 0; }

.rfcp-upload-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.rfcp-upload-preview img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--rf-line);
}

.rfcp-help {
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #eef3ff;
}

.rfcp-help summary { font-weight: 800; cursor: pointer; }
.rfcp-help ul { margin: 12px 0; padding-left: 20px; line-height: 1.7; }

/* ------------------------------------------------------------------ Freigaben */

.rfcp-consents {
  margin-bottom: 22px;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--rf-line);
}

.rfcp-consents h3 { margin: 0 0 6px; font-size: 19px; }
.rfcp-consents--required { border-left: 5px solid var(--rf-green); }
.rfcp-consents--optional { border-left: 5px solid var(--rf-blue); }

.rfcp-static-consent {
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #dff1e9;
  color: var(--rf-ok);
  font-weight: 600;
}

.rfcp-static-consent::before { content: "✓ "; font-weight: 900; }

.rfcp-legal {
  margin: 14px 0 0;
  padding: 14px 16px;
  background: var(--rf-paper);
  border-left: 5px solid var(--rf-blue);
  font-size: 15px;
}

/* ----------------------------------------------------------------- Steuerung */

.rfcp-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.rfcp-prev, .rfcp-next { display: none; }
.rfcp-js .rfcp-prev, .rfcp-js .rfcp-next { display: inline-flex; }

.rfcp-delete-request { margin-top: 40px; text-align: right; }

.rfcp-delete-request button {
  border: 0;
  background: none;
  color: #7b2424;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

/* ------------------------------------------------------------- Kundenauswahl */

.rfcp-showcase-body {
  margin: 0;
  background: var(--rf-paper);
  font-family: Inter, Arial, sans-serif;
  color: var(--rf-ink);
}

.rfcp-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px max(24px, calc((100% - 1380px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--rf-line);
}

.rfcp-showcase-brand { font-size: 22px; font-weight: 900; color: var(--rf-green); }

.rfcp-showcase { width: min(1380px, calc(100% - 40px)); margin: 56px auto; }

.rfcp-showcase--login {
  max-width: 560px;
  padding: 40px;
  background: #fff;
  border-radius: 18px;
}

.rfcp-showcase--login h1 { margin: 22px 0; font-size: clamp(30px, 4vw, 42px); }
.rfcp-showcase--login .rfcp-alert { width: 100%; margin: 0 0 18px; }

.rfcp-showcase-intro { max-width: 800px; font-size: 19px; color: var(--rf-muted); }

.rfcp-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.rfcp-creator-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border: 1px solid var(--rf-line);
  border-radius: 16px;
  background: #fff;
}

.rfcp-creator-card > img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.rfcp-creator-card__body { padding: 25px; }
.rfcp-creator-card h2 { margin: 3px 0 4px; font-size: 29px; }

.rfcp-card-realname {
  margin: 0 0 12px;
  color: var(--rf-muted);
  font-weight: 600;
}

.rfcp-card-tag {
  color: var(--rf-green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.rfcp-creator-card dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  margin: 20px 0;
}

.rfcp-creator-card dt { font-weight: 800; }
.rfcp-creator-card dd { margin: 0; color: var(--rf-muted); }

.rfcp-social-links,
.rfcp-samples {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.rfcp-social-links a,
.rfcp-samples a {
  padding: 7px 10px;
  border-radius: 6px;
  background: #eef1ef;
  color: var(--rf-green);
  font-weight: 700;
  text-decoration: none;
}

.rfcp-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 2px solid var(--rf-line);
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.rfcp-pick input { width: 20px; height: 20px; accent-color: var(--rf-green); }
.rfcp-pick:has(input:checked) { border-color: var(--rf-green); background: #dff1e9; }

.rfcp-feedback {
  margin-top: 40px;
  padding: 30px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--rf-line);
}

.rfcp-feedback h2 { margin-top: 0; font-size: 26px; }

.rfcp-showcase footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--rf-line);
  color: var(--rf-muted);
}

/* ------------------------------------------------------------------- Kleiner */

@media (max-width: 900px) {
  .rfcp-shell, .rfcp-catalog { grid-template-columns: 1fr; }
  .rfcp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rfcp-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rfcp-creator-card { grid-template-columns: 170px 1fr; }
}

@media (max-width: 620px) {
  .rfcp-grid--2, .rfcp-grid--3, .rfcp-choice-grid { grid-template-columns: 1fr; }
  .rfcp-profile-head { align-items: flex-start; flex-direction: column; }
  .rfcp-js .rfcp-step { min-height: 0; }
  .rfcp-creator-card { grid-template-columns: 1fr; }
  .rfcp-creator-card > img { height: 300px; min-height: 0; }
  .rfcp-controls { flex-wrap: wrap; }
  .rfcp-controls .rfcp-btn { flex: 1 1 140px; }
  .rfcp-delete-request { text-align: left; }
}

@media print {
  .rfcp-showcase-header button,
  .rfcp-feedback,
  .rfcp-pick { display: none; }
  .rfcp-showcase { margin: 20px auto; }
  .rfcp-creator-card { break-inside: avoid; }
  .rfcp-showcase-body { background: #fff; }
}
