/* Schnelle Teilnehmer-Erfassung und mobiler Selfservice */
.participant-selfservice-shell {
  width: min(100% - 24px, 680px);
  margin: 22px auto 56px;
}

.participant-selfservice-card {
  padding: clamp(20px, 5vw, 38px);
  border-radius: 24px;
  overflow: hidden;
}

.participant-selfservice-heading {
  margin: calc(clamp(20px, 5vw, 38px) * -1) calc(clamp(20px, 5vw, 38px) * -1) 28px;
  padding: 26px clamp(20px, 5vw, 38px);
  color: #fff;
  background: linear-gradient(135deg, #0b5f8a, #1685a8);
}

.participant-selfservice-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .82;
}

.participant-selfservice-heading h1,
.participant-selfservice-heading p {
  margin: 0;
  color: inherit;
}

.participant-selfservice-heading h1 {
  font-size: clamp(1.75rem, 7vw, 2.55rem);
  line-height: 1.08;
}

.participant-selfservice-training {
  padding-top: 9px;
  font-size: 1.06rem;
  font-weight: 700;
}

.participant-selfservice-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 18px 0 0;
}

.participant-selfservice-facts div { display: grid; gap: 2px; }
.participant-selfservice-facts dt { font-size: .74rem; text-transform: uppercase; opacity: .72; }
.participant-selfservice-facts dd { margin: 0; font-weight: 700; }

.participant-selfservice-form { display: grid; gap: 22px; }
.participant-selfservice-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.participant-selfservice-form legend { width: 100%; margin-bottom: 12px; font-size: 1.12rem; font-weight: 800; }
.participant-selfservice-form legend small { font-size: .78rem; font-weight: 500; color: #61717c; }

.participant-selfservice-grid,
.admin-participant-add-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.participant-selfservice-grid label,
.admin-participant-add-grid label { display: grid; gap: 6px; font-weight: 700; }
.participant-selfservice-grid .full { grid-column: 1 / -1; }

.participant-selfservice-photo {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d5e0e6;
  border-radius: 16px;
  background: #f7fafb;
}

.participant-selfservice-photo-preview {
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 7 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #e4ecef;
  color: #667780;
  font-size: .76rem;
  text-align: center;
}

.participant-selfservice-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.participant-selfservice-photo-actions { display: grid; gap: 9px; }
.participant-selfservice-photo-button {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  background: #0b6f9a;
  color: #fff;
  text-align: center;
  font-weight: 800;
  cursor: pointer;
}
.participant-selfservice-photo-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.participant-selfservice-photo .form-hint { grid-column: 1 / -1; margin: 0; }

.participant-selfservice-optional {
  border: 1px solid #d5e0e6;
  border-radius: 14px;
  background: #fff;
}
.participant-selfservice-optional summary { padding: 15px; font-weight: 800; cursor: pointer; }
.participant-selfservice-optional summary span { color: #61717c; font-size: .82rem; font-weight: 500; }
.participant-selfservice-optional[open] summary { border-bottom: 1px solid #e4ecef; }
.participant-selfservice-optional .participant-selfservice-grid { padding: 15px; }

.participant-selfservice-privacy { display: flex !important; gap: 11px; align-items: flex-start; font-weight: 500 !important; line-height: 1.42; }
.participant-selfservice-privacy input { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; }
.booking-form .participant-selfservice-submit { width: 100%; min-height: 54px; border-radius: 13px; font-size: 1.08rem; }
.participant-selfservice-submit-hint { margin: -14px 0 0; color: #61717c; text-align: center; font-size: .86rem; }
.participant-selfservice-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.participant-selfservice-errors,
.admin-participant-add-errors {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #e5b2ad;
  border-radius: 12px;
  background: #fff2f0;
  color: #8d2921;
}
.participant-selfservice-errors p,
.admin-participant-add-errors p { margin: 0; }

.participant-selfservice-success { padding: 6px 0 24px; text-align: center; }
.participant-selfservice-success > span { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: #dff4e8; color: #187542; font-size: 2.4rem; font-weight: 800; }
.participant-selfservice-success h2 { margin: 0 0 8px; }
.participant-selfservice-success p { margin: 0; color: #52636d; }
.participant-selfservice-correction { padding: 20px; border-radius: 16px; background: #eef6fa; text-align: center; }
.participant-selfservice-correction h2 { margin: 0 0 8px; font-size: 1.15rem; }
.participant-selfservice-correction p { margin: 0 0 15px; }
.participant-selfservice-primary,
.participant-selfservice-secondary { display: block; width: 100%; box-sizing: border-box; margin-top: 9px; padding: 13px 16px; border: 0; border-radius: 11px; font: inherit; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.participant-selfservice-primary { background: #0878a4; color: #fff; }
.participant-selfservice-secondary { background: #fff; color: #0b5f8a; box-shadow: inset 0 0 0 1px #a9c8d5; }
.participant-selfservice-copy-message { margin: 10px 0 0 !important; color: #187542; font-weight: 700; }

.certificate-lookup-shell {
  width: min(100% - 24px, 620px);
}

.certificate-lookup-heading {
  background: linear-gradient(135deg, #123357, #0b6f9a);
}

.certificate-lookup-hint {
  margin: -8px 0 0;
  color: #52636d;
  font-size: 0.95rem;
  text-align: center;
}

body.has-admin-modal { overflow: hidden; }
.admin-participant-add-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(9, 28, 39, .58);
  backdrop-filter: blur(3px);
}
.admin-participant-add-modal[hidden] { display: none; }
.admin-participant-action-dialog { max-width: 620px; }
.admin-participant-action-form { display: grid; gap: 16px; }
.admin-participant-action-form label { display: grid; gap: 7px; font-weight: 700; }
.admin-participant-action-warning {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff1ed;
  color: #8d2719;
  line-height: 1.45;
}
.admin-participant-add-dialog {
  position: relative;
  width: min(100%, 700px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}
.admin-participant-add-close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #17313e; font-size: 1.8rem; cursor: pointer; }
.admin-participant-add-heading { padding: 24px 68px 22px 24px; color: #fff; background: linear-gradient(135deg, #0b5f8a, #1685a8); }
.admin-participant-add-heading span { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.admin-participant-add-heading h2 { margin: 4px 0; color: inherit; }
.admin-participant-add-heading p { margin: 0; }
.admin-participant-add-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #dce5e9; }
.admin-participant-add-tabs button { padding: 14px 10px; border: 0; border-bottom: 3px solid transparent; background: #f7fafb; color: #53656f; font: inherit; font-weight: 800; cursor: pointer; }
.admin-participant-add-tabs button.is-active { border-bottom-color: #0878a4; background: #fff; color: #0b5f8a; }
.admin-participant-add-dialog > section { padding: 22px 24px 26px; }
.admin-participant-add-form { margin: 0; }
.admin-participant-add-form > button { margin-top: 16px; }
.admin-participant-add-success { margin-bottom: 18px; padding: 15px; border-radius: 12px; background: #e8f6ee; color: #165f38; }
.admin-participant-add-success p { margin: 5px 0 12px; }
.admin-participant-add-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.admin-participant-add-link-row input { min-width: 0; }
.admin-participant-qr-card { text-align: center; }
.admin-participant-qr-card canvas { display: block; width: min(260px, 80vw); height: auto; margin: 0 auto 14px; border: 10px solid #fff; box-shadow: 0 2px 18px rgba(12, 55, 75, .14); }
.admin-participant-qr-card > input { width: 100%; box-sizing: border-box; }
.admin-participant-qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 12px; }
.admin-participant-qr-actions button,
.admin-participant-qr-actions .admin-action-link { margin: 0; }

@media (max-width: 600px) {
  .participant-selfservice-shell { width: min(100% - 12px, 680px); margin-top: 8px; }
  .participant-selfservice-card { border-radius: 18px; }
  .participant-selfservice-grid,
  .admin-participant-add-grid { grid-template-columns: 1fr; }
  .participant-selfservice-grid .full { grid-column: auto; }
  .participant-selfservice-photo { grid-template-columns: 88px minmax(0, 1fr); }
  .participant-selfservice-photo-preview { width: 88px; }
  .admin-participant-add-modal { padding: 6px; place-items: end center; }
  .admin-participant-add-dialog { max-height: calc(100vh - 12px); border-radius: 18px 18px 0 0; }
  .admin-participant-add-dialog > section { padding: 18px 16px 24px; }
  .admin-participant-add-link-row { grid-template-columns: 1fr; }
}

#aufmacher {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.maxi-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.logo {
  height: 140px;
  width: auto;
  flex-shrink: 0;
  margin-right: 2rem;
}

.maxi-text {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  overflow: hidden;
}

.aufmacher-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(.2,.9,.3,1);
  height: 100%;
}

.aufmacher-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 1rem;
  box-sizing: border-box;
  word-break: break-word;
}

.aufmacher-title {
  color: var(--accent);
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 .25em 0;
  letter-spacing: 1px;
  line-height: 1.05;
}

.aufmacher-sub {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}
