.JePa-frontend-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.JePa-frontend-wrap * {
  box-sizing: border-box;
}

.JePa-frontend-wrap h1,
.JePa-frontend-wrap h2 {
  margin: 18px 0 8px;
  line-height: 1.2;
}

.JePa-frontend-wrap h3 {
  margin: 0 0 12px;
  line-height: 1.25;
}

.JePa-team-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.JePa-team-logo-link,
.JePa-team-logo {
  display: inline-block;
}

.JePa-team-logo {
  max-width: 200px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

.JePa-frontend-wrap .JePa-section-title {
  margin-top: 25px;
  margin-bottom: 25px;
}

.JePa-note {
  margin: 0 0 14px;
  font-size: 14px;
}

.JePa-note--public {
  margin-top: 10px;
}

.JePa-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.JePa-attendance-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  table-layout: fixed;
}

.JePa-attendance-table,
.JePa-attendance-table * {
  font-weight: 300;
}

.JePa-attendance-table th,
.JePa-attendance-table td {
  border: 1px solid #d0d7de;
  padding: 8px;
  text-align: center;
  vertical-align: middle;
  background: #fff;
}

.JePa-attendance-table thead th {
  text-align: left;
}

.JePa-attendance-table th:first-child,
.JePa-attendance-table td:first-child {
  text-align: left;
  min-width: 170px;
  width: 170px;
}

.JePa-attendance-table th:not(:first-child),
.JePa-attendance-table td:not(:first-child) {
  min-width: 110px;
  width: 110px;
}

.JePa-head-date,
.JePa-head-time,
.JePa-head-note {
  display: block;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  padding-left: 3px;
  padding-right: 3px;
}

.JePa-head-date {
  font-size: 16px;
}

.JePa-head-time {
  font-size: 14px;
  line-height: 1.4;
}

.JePa-head-note {
  font-size: 14px;
}

.JePa-dot,
.JePa-dot-btn {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.JePa-dot-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  min-width: 18px;
  min-height: 18px;
  line-height: 0;
  vertical-align: middle;
  touch-action: manipulation;
}

.JePa-dot-form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.JePa-dot-form--inline {
  display: inline-flex;
  justify-content: flex-start;
  vertical-align: middle;
  margin: 0 8px 0 0;
}

.JePa-dot-btn .JePa-screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.JePa-dot--red {
  background: #d63638;
  box-shadow: 0 0 0 1px #a32224 inset;
}

.JePa-dot--green {
  background: #1e9e43;
  box-shadow: 0 0 0 1px #157735 inset;
}

.JePa-admin-table input[type='time'] {
  max-width: 120px;
}

.JePa-filter-form,
.JePa-inline-form {
  margin: 10px 0 20px;
}

.JePa-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
}

.JePa-action-row .JePa-inline-form {
  margin: 0;
}

.JePa-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}

.JePa-session-bar p {
  margin: 0;
}

.JePa-login-wrap {
  max-width: 100%;
  padding: 0;
}

.JePa-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}

.JePa-login-toggle {
  appearance: none;
  border: 1px solid #0c6a6f;
  border-radius: 8px;
  background: #0f8789;
  color: #fff;
  font-weight: 600;
  padding: 8px 12px;
  line-height: 1.25;
  min-height: 38px;
  cursor: pointer;
}

.JePa-login-toggle:hover {
  background: #0c6a6f;
}

.JePa-login-content {
  margin-top: 10px;
}

.JePa-login-content[hidden] {
  display: none !important;
}

.JePa-login-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.JePa-login-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  background: #fff;
}

.JePa-login-panel h4 {
  margin: 0 0 12px;
}

.JePa-login-form input {
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  padding: 8px 10px;
}

.JePa-login-hint {
  margin-top: 6px;
  color: #0f4f5d;
  font-size: 14px;
  line-height: 1.4;
}

.JePa-position-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.JePa-position-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.JePa-position-info {
  font-size: 12px;
  line-height: 1;
  cursor: help;
}

.JePa-pos-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: 6px;
}

.JePa-pos-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 4px;
  background: #e6f3f3;
  color: #0c6a6f;
  font-size: 12px;
  font-weight: 600;
  cursor: help;
}

.JePa-pos-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  padding: 4px 6px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 20;
}

.JePa-pos-badge:hover::after,
.JePa-pos-badge:focus::after,
.JePa-pos-badge:active::after {
  opacity: 1;
}

.JePa-stars {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0;
}

.JePa-stars .on {
  color: #fbbf24;
}

.JePa-stars .off {
  color: #9ca3af;
}

.JePa-assignment-rating {
  margin-top: 4px;
}

.JePa-assignment-meta {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.JePa-frontend-wrap .JePa-login-form button,
.JePa-frontend-wrap .JePa-session-bar form button,
.JePa-frontend-wrap .JePa-inline-form button:not(.JePa-dot-btn),
.JePa-frontend-wrap .JePa-inline-form a.button {
  appearance: none;
  border: 1px solid #0c6a6f !important;
  border-radius: 8px;
  background: #0f8789 !important;
  color: #fff !important;
  font-weight: 600;
  padding: 8px 12px !important;
  line-height: 1.25;
  min-height: 38px;
  cursor: pointer;
  text-decoration: none;
}

.JePa-frontend-wrap .JePa-login-form button:hover,
.JePa-frontend-wrap .JePa-session-bar form button:hover,
.JePa-frontend-wrap .JePa-inline-form button:not(.JePa-dot-btn):hover,
.JePa-frontend-wrap .JePa-inline-form a.button:hover {
  background: #0c6a6f !important;
}

.JePa-success {
  color: #157735;
}

.JePa-error {
  color: #a32224;
}

.JePa-color-cell {
  font-weight: 600;
}

.JePa-color-cell select {
  width: 100%;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}

.JePa-color-black {
  background: #111 !important;
  color: #fff;
}

.JePa-color-white {
  background: #fff !important;
  color: #111;
}

.JePa-color-blue {
  background: #1d4ed8 !important;
  color: #fff;
}

.JePa-assignment-table {
  min-width: 0;
  table-layout: fixed;
}

.JePa-assignment-table th,
.JePa-assignment-table td {
  white-space: normal;
}

.JePa-assignment-table th:first-child,
.JePa-assignment-table td:first-child {
  min-width: 0;
  width: auto;
}

.JePa-assignment-table th:not(:first-child),
.JePa-assignment-table td:not(:first-child) {
  min-width: 0;
  width: auto;
}

.JePa-guest-table,
.JePa-guest-form-table {
  min-width: 0;
  table-layout: fixed;
}

.JePa-guest-table th,
.JePa-guest-table td {
  text-align: left;
}

.JePa-guest-table th:first-child,
.JePa-guest-table td:first-child,
.JePa-guest-form-table th:first-child,
.JePa-guest-form-table td:first-child {
  width: 35%;
  min-width: 0;
}

.JePa-guest-table th:last-child,
.JePa-guest-table td:last-child,
.JePa-guest-form-table th:last-child,
.JePa-guest-form-table td:last-child {
  width: 65%;
  min-width: 0;
}

.JePa-footer-copy {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.5);
}

.JePa-guest-toggle,
.JePa-guest-submit {
  appearance: none;
  border: 1px solid #0c6a6f;
  border-radius: 8px;
  background: #0f8789;
  color: #fff;
  font-weight: 600;
  padding: 8px 12px;
  line-height: 1.25;
  min-height: 38px;
  cursor: pointer;
}

.JePa-guest-toggle:hover,
.JePa-guest-submit:hover {
  background: #0c6a6f;
}

.JePa-guest-form-wrap {
  margin: 8px 0 14px;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.JePa-guest-form {
  margin: 0;
}

.JePa-guest-form-table label {
  display: inline-block;
  margin: 0;
}

.JePa-guest-form-table input[type='text'],
.JePa-guest-form-table input[type='email'],
.JePa-guest-form-table select {
  width: 100%;
  max-width: 100%;
  min-height: 38px;
  padding: 8px 10px;
}

.JePa-guest-form-table .JePa-position-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.JePa-guest-form-table .JePa-position-item input[type='checkbox'] {
  width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  flex: 0 0 14px;
}

.JePa-guest-green-dot {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  vertical-align: middle;
}

.JePa-guest-detail-text {
  vertical-align: middle;
}

.JePa-infotext-wrap {
  margin: 6px 0 16px;
}

.JePa-infotext-title {
  margin-top: 25px;
  margin-bottom: 25px;
}

.JePa-infotext-content {
  border: 1px solid #d0d7de;
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  line-height: 1.55;
  word-break: break-word;
}

.JePa-infotext-content p {
  margin: 0 0 10px;
}

.JePa-infotext-content p:last-child {
  margin-bottom: 0;
}

.JePa-infotext-editor-form {
  margin-top: 12px;
}

.JePa-infotext-editor-form .wp-editor-wrap,
.JePa-infotext-editor-form .wp-editor-tools,
.JePa-infotext-editor-form .wp-editor-container,
.JePa-infotext-editor-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.JePa-infotext-editor-help {
  margin: 8px 0 0;
  font-size: 13px;
}

/* WordPress-Seitentitel auf Shortcode-Seiten responsive einrücken */
.wp-block-group.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained h2.wp-block-post-title.JePa-page-title {
  padding-left: 110px;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .wp-block-group.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained h2.wp-block-post-title.JePa-page-title {
    padding-left: 50px;
  }
}

@media (max-width: 767px) {
  .wp-block-group.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained h2.wp-block-post-title.JePa-page-title {
    padding-left: 30px;
  }

  .JePa-frontend-wrap h1,
  .JePa-frontend-wrap h2 {
    font-size: 20px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .JePa-frontend-wrap h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .JePa-team-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .JePa-team-logo {
    max-width: 100px;
    max-height: 50px;
  }

  .JePa-session-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .JePa-attendance-table {
    min-width: 820px;
    font-size: 12px;
  }

  .JePa-attendance-table th,
  .JePa-attendance-table td {
    padding: 6px 5px;
  }

  .JePa-attendance-table th:first-child,
  .JePa-attendance-table td:first-child {
    min-width: 96px;
    width: 96px;
  }

  .JePa-attendance-table th:not(:first-child),
  .JePa-attendance-table td:not(:first-child) {
    min-width: 94px;
    width: 94px;
  }

  .JePa-head-date {
    font-size: 14px;
  }

  .JePa-head-time {
    font-size: 14px;
    padding-left: 3px;
    padding-right: 3px;
  }

  .JePa-head-note {
    font-size: 14px;
  }

  .JePa-dot,
  .JePa-dot-btn {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }

  .JePa-login-wrap {
    max-width: 100%;
    padding: 0;
  }

  .JePa-top-actions {
    gap: 8px;
  }

  .JePa-inline-form {
    margin: 8px 0 14px;
  }

  .JePa-color-cell select {
    min-height: 34px;
    font-size: 14px;
  }

  .JePa-assignment-table {
    min-width: 0;
    font-size: 14px;
  }

  .JePa-assignment-table th,
  .JePa-assignment-table td {
    padding: 8px;
  }

  .JePa-assignment-table th:first-child,
  .JePa-assignment-table td:first-child {
    width: 58%;
  }

.JePa-assignment-table th:last-child,
.JePa-assignment-table td:last-child {
  width: 42%;
}

  .JePa-assignment-meta {
    font-size: 12px;
  }

  .JePa-footer-copy {
    font-size: 12px;
  }

  .JePa-guest-table,
  .JePa-guest-form-table {
    min-width: 0;
    font-size: 13px;
  }

  .JePa-guest-table th,
  .JePa-guest-table td,
  .JePa-guest-form-table th,
  .JePa-guest-form-table td {
    padding: 8px 6px;
  }

  .JePa-guest-form-table .JePa-position-item input[type='checkbox'] {
    width: 13px;
    height: 13px;
    min-height: 13px;
    flex-basis: 13px;
  }

  .JePa-guest-table th:first-child,
  .JePa-guest-table td:first-child,
  .JePa-guest-form-table th:first-child,
  .JePa-guest-form-table td:first-child {
    width: 42%;
  }

  .JePa-guest-table th:last-child,
  .JePa-guest-table td:last-child,
  .JePa-guest-form-table th:last-child,
  .JePa-guest-form-table td:last-child {
    width: 58%;
  }

  .JePa-login-panel {
    padding: 12px;
  }

  .JePa-login-form p {
    margin: 0 0 10px;
  }

  .JePa-infotext-content {
    padding: 10px 11px;
    font-size: 14px;
  }

  .JePa-infotext-editor-form .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .JePa-frontend-wrap h1,
  .JePa-frontend-wrap h2 {
    font-size: 18px;
  }

  .JePa-frontend-wrap h3 {
    font-size: 15px;
  }

  .JePa-note {
    font-size: 13px;
  }

  .JePa-login-panel {
    padding: 10px;
  }

  .JePa-login-form input {
    min-height: 38px;
    padding: 8px;
  }
}

@media (min-width: 768px) {
  .JePa-login-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
