/* Jugendgrandprix */
/* minmax(0, 1fr) + min-width: 0: sonst zieht die breite Teilnehmertabelle die ganze Seite in die Breite */
.jgp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.jgp > * { min-width: 0; }
.jgp h2 { margin-top: 0; }
.jgp-categories { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 16px 0; font-size: 14px; color: var(--sk-muted); }
.jgp-card { background: #fff; border: 1px solid var(--sk-border); border-radius: 12px; padding: 28px; }
.jgp-note { color: var(--sk-muted); font-size: 15px; }
.jgp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.jgp-fields label, .jgp-category { display: grid; gap: 7px; font-size: 15px; font-weight: 600; }
.jgp-fields input { width: 100%; min-width: 0; border: 1px solid #aaa; background: #fff; border-radius: 6px; padding: 12px; font: inherit; }
.jgp-category output { padding: 12px; background: var(--sk-page-bg); border-radius: 6px; }
.jgp :focus-visible { outline: 3px solid var(--sk-accent); outline-offset: 3px; }
.jgp-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; margin: 24px 0; }
.jgp-consent input { margin-top: 5px; flex-shrink: 0; width: 18px; height: 18px; }
.jgp-trap { position: absolute; left: -10000px; }
.jgp button { cursor: pointer; font: inherit; }
.jgp-notice, .jgp-error { padding: 16px; border-left: 4px solid #297a47; background: #edf8ef; }
.jgp-error { border-color: #b31928; background: #fff0f0; }
.jgp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.jgp-filters a { padding: 6px 13px; border-radius: 30px; border: 1px solid var(--sk-border); text-decoration: none; font-size: 14px; }
.jgp-filters a[aria-current] { background: var(--sk-accent); border-color: var(--sk-accent); color: #fff; }
.jgp-table { overflow-x: auto; }
.jgp table { width: 100%; border-collapse: collapse; text-align: left; font-size: 16px; }
.jgp-table table { min-width: 820px; }
.jgp-table td:nth-child(2), .jgp-table td:nth-child(4), .jgp-table td:nth-child(5), .jgp-table td:nth-child(6) { white-space: nowrap; }
.jgp th, .jgp td { padding: 14px 10px; border-bottom: 1px solid var(--sk-border); }
.jgp th { background: var(--sk-page-bg); }
.jgp-badge, .jgp-count { background: var(--sk-page-bg); border-radius: 20px; padding: 4px 10px; font-size: 14px; }
.jgp section { scroll-margin-top: 150px; }
@media (max-width: 650px) {
  .jgp-fields { grid-template-columns: 1fr; gap: 16px; }
  /* Seiten- und Kartenrand addieren sich auf dem Handy, deshalb weniger Innenabstand */
  .jgp-card { padding: 20px 14px; }
  .jgp-card h2 { font-size: 26px; line-height: 1.15; }
  .jgp-fide-lookup { padding: 14px; }
  .jgp-form > .button[type="submit"] { display: block; width: 100%; padding: 14px 18px; }
}
@media (max-width: 900px) {
  /* Teilnehmerliste: jede Person als kleine Karte statt breiter Tabelle (Handy und Tablet) */
  .jgp-table { overflow: visible; }
  .jgp-table table { min-width: 0; }
  .jgp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .jgp-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--sk-border); }
  .jgp-table td { display: flex; gap: 12px; padding: 3px 0; border: 0; white-space: normal !important; font-size: 15px; }
  .jgp-table td[data-label]::before { content: attr(data-label); flex: 0 0 105px; color: var(--sk-muted); font-size: 14px; }
  .jgp-table td.jgp-name { font-weight: 700; font-size: 16px; padding-bottom: 6px; }
  .jgp-table tr.jgp-empty td { display: block; color: var(--sk-muted); }
}
/* Scoped defaults keep the plugin usable when switching themes. */
.jgp { --sk-accent: #c91525; --sk-border: #ded7cd; --sk-page-bg: #f7f5f1; --sk-muted: #666; }
.jgp .eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--sk-accent); }
.jgp .button { display: inline-block; padding: 10px 18px; margin: 4px 0; border: 1px solid var(--sk-accent); border-radius: 6px; background: var(--sk-accent); color: #fff; text-decoration: none; }
.jgp .button--secondary { color: var(--sk-accent); background: transparent; }

/* These native WordPress blocks remain editable in the page editor. */
.jgp-intro { margin-bottom: 6px; color: #666; }
.jgp-date { margin-top: 0; margin-bottom: 28px; font-size: 22px; font-weight: 700; }
.jgp-information { margin: 0 0 20px; padding: 30px; background: #f7f5f1; border: 1px solid #ded7cd; border-top: 4px solid #c91525; border-radius: 12px; }
.jgp-information h2 { margin-top: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
.jgp-information h3 { margin: 28px 0 12px; font-size: 22px; }
.jgp-information-table { margin: 0; }
.jgp-information-table table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 16px; }
.jgp-information-table td { border: 0; border-bottom: 1px solid #ded7cd; padding: 12px 0; vertical-align: top; }
.jgp-information-table td:first-child { width: 170px; padding-right: 20px; }
.jgp-information-table tr:last-child td { border-bottom: 0; }
.jgp-schedule td:first-child { color: #96101b; }
@media (max-width: 650px) {
  .jgp-information { padding: 20px; }
  .jgp-information-table td:first-child { width: 110px; padding-right: 12px; }
  .jgp-information-table table { font-size: 14px; }
  .jgp-date { font-size: 20px; }
}
.jgp-fide-help { font-size: 15px; margin-bottom: 20px; }
.jgp-fide-lookup { grid-column: 1 / -1; padding: 16px; border: 1px solid var(--sk-border); border-radius: 8px; background: var(--sk-page-bg); font-size: 15px; }
.jgp-fide-lookup small { display: block; color: var(--sk-muted); }
.jgp-fide-lookup [hidden] { display: none; }
.jgp-fide-lookup button { font-size: 14px; }
.jgp-fide-lookup button:disabled { opacity: .6; cursor: wait; }
#jgp-fide-result { margin: 12px 0; }
#jgp-fide-apply { display: block; margin-top: 12px; }
