:root {
    --ksc-yellow: #fecf06;
    --ksc-yellow-dark: #e0be00;
    --ksc-black: #222222;
    --ksc-grey: #f1f1f1;
    --ksc-border: #dddddd;
    --ksc-text: #111111;
    --ksc-muted: #777777;
}

/* Container ohne äußeren Rand / Schatten */
/* .ksc-card {
    width: 75%;
    max-width: 1080px;
    margin: 0 auto 40px auto;
    background: #ffffff !important;
    background-image: none !important;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
    font-family: "titillium-regular", Arial, sans-serif !important;
    color: var(--ksc-text);
}

@media (max-width: 1024px) { .ksc-card { width: 85%; } }
@media (max-width: 767px) { .ksc-card { width: 90%; } }

*/

/* Container mit äußeren Rand / Schatten */
 .ksc-card {
    width: 75%;
    max-width: 1080px;
    margin: 0 auto 40px auto;
    background: #ffffff !important;
    background-image: none !important;
    border-radius: 5px;
    border: 5px solid #ffffff;
    box-shadow: 4px 4px 12px 0px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: "titillium-regular", sans-serif !important;
    color: var(--ksc-text);
 }

.ksc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 12px;
    border-bottom: 1px solid var(--ksc-border);
    background: var(--ksc-yellow);
}

.ksc-title-block {
    padding-left: 22px;
}

.ksc-header > a.ksc-badge-link {
    margin-right: 22px;
}

.ksc-title-block h1 {
    margin: 0;
    font-size: 64px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: "titillium-bold", "titillium-regular", Arial, sans-serif !important;
}

.ksc-title-block span {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--ksc-muted);
    letter-spacing: 0.12em;
    font-family: "titillium-regular", Arial, sans-serif !important;
}

.ksc-badge-link {
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid #000000;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #ffffff !important;
    background: #000000 !important;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    font-family: "titillium-bold", "titillium-regular", Arial, sans-serif !important;
}

.ksc-main {
    padding: 22px;
    background: #f4f4f4;
}

.ksc-section-sub {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--ksc-muted);
    font-family: "titillium-regular", Arial, sans-serif !important;
}

.ksc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
    gap: 18px;
}

@media (max-width: 900px) {
    .ksc-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ksc-field-group {
    margin-bottom: 10px;
}

.ksc-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--ksc-muted);
    font-family: "titillium-regular", Arial, sans-serif !important;
}

.ksc-label span:first-child {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 10px;
}

.ksc-input,
.ksc-select {
    width: 100%;
    padding: 7px 9px;
    border-radius: 0;
    border: 1px solid #cccccc;
    background: #ffffff;
    color: var(--ksc-text);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-family: "titillium-regular", Arial, sans-serif !important;
}

.ksc-input:focus,
.ksc-select:focus {
    border-color: var(--ksc-yellow-dark);
    box-shadow: 0 0 0 1px rgba(255,218,0,0.4);
    background: #fffdf2;
}

.ksc-input::placeholder {
    color: #aaaaaa;
}

.ksc-help {
    font-size: 11px;
    color: var(--ksc-muted);
    margin-top: 2px;
}

.ksc-button-row {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ksc-btn-primary {
    border: none;
    border-radius: 0;
    padding: 10px 22px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: linear-gradient(135deg, var(--ksc-yellow), var(--ksc-yellow-dark));
    color: var(--ksc-black);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    font-family: "titillium-bold", "titillium-regular", Arial, sans-serif !important;
}

.ksc-flash {
    margin-bottom: 10px;
    border-radius: 0;
    padding: 8px 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "titillium-regular", Arial, sans-serif !important;
}

.ksc-flash-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.ksc-flash-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.ksc-flash-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid currentColor;
}

.ksc-taglist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10px;
}

.ksc-tag {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    color: var(--ksc-muted);
}

.ksc-table-wrapper {
    margin-top: 6px;
    border-radius: 0;
    border: 1px solid var(--ksc-border);
    overflow: hidden;
    background: #ffffff;
}

.ksc-table-header {
    padding: 8px 12px;
    border-bottom: 1px solid var(--ksc-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ksc-muted);
    background: #fdf7cf;
    font-family: "titillium-regular", Arial, sans-serif !important;
}

.ksc-table-header strong {
    color: var(--ksc-black);
}

.ksc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.ksc-table th,
.ksc-table td {
    border-bottom: 1px solid #eeeeee;
    padding: 6px 9px;
    text-align: left;
    font-family: "titillium-regular", Arial, sans-serif !important;
}

.ksc-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ksc-muted);
    background: #fafafa;
}

.ksc-slot-free {
    font-style: italic;
    color: var(--ksc-muted);
}

.ksc-slot-taken {
    color: var(--ksc-text);
    font-weight: 600;
}

.ksc-slot-taken small {
    display: block;
    font-size: 11px;
    color: var(--ksc-muted);
    margin-top: 1px;
}

.ksc-footer {
    padding: 8px 22px 10px;
    border-top: 1px solid var(--ksc-border);
    font-size: 11px;
    color: var(--ksc-muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    background: #ffffff;
    font-family: "titillium-regular", Arial, sans-serif !important;
}

.ksc-footer strong {
    color: var(--ksc-black);
}

.ksc-filter-form {
    margin: 0 0 10px;
}

.ksc-filter-label {
    font-size: 12px;
    margin-right: 8px;
    font-family: "titillium-regular", Arial, sans-serif !important;
}


/* Responsive KSC Headlines */
.ksc-title-block h1,
.ksc-header h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem) !important;
    line-height: 1.1;
}


/* Hinweis-Text "frei bedeutet..." nach unten verlagern */
.ksc-section-sub {
    display: none;
}




/* Mobile-swipe Tabellen */
@media (max-width: 767px) {
  .ksc-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ksc-table-wrapper table {
    min-width: 640px;
  }
}

/* Eingefügt am 10.12.2025  */

/*  Container-Breite (Desktop / Tablet / Handy)  */

/* Basis: Desktop */
.ksc-card {
    width: 75%;
    max-width: 1080px;
    margin: 0 auto 40px auto;
}

/* Tablet bis 1024px */
@media (max-width: 1024px) {
    .ksc-card {
        width: 85% !important;
    }
}

/* Handy bis 767px */
@media (max-width: 767px) {
    .ksc-card {
        width: 90% !important;
    }
}

/* Handy: Headline, Subline & Button zentrieren */

/* Mobile Header-Zentrierung */
@media (max-width: 767px) {

    /* ganzer gelber Header */
    .ksc-header {
        text-align: center;
    }

    /* Block mit H1 + Button */
    .ksc-title-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .ksc-title-block h1 {
        margin: 0 0 0.5rem 0;
    }

    .ksc-title-block .ksc-badge-link {
        margin-top: 0.5rem;
    }

    /* die kleine Zeile "TURNIERE & WEITERE KSC-EVENTS" */
    .ksc-header .ksc-subline,
    .ksc-header .ksc-section-sub,
    .ksc-header > span {
        display: block;
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* Turnierverwaltung“ & Co. zentrieren (Handy) */

@media (max-width: 767px) {
    .ksc-footer-actions,
    .ksc-footer-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        text-align: center;
    }

    .ksc-footer-actions a,
    .ksc-footer-links a {
        margin: 2px 4px;
    }
}

/* „frei bedeutet…“ – gleiche Höhe & Schriftgröße  */

.ksc-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
}

.ksc-footer span {
    white-space: nowrap;
    font-size: 11px;
}

/* auf kleinen Displays umbrechen, aber weiterhin sauber */
@media (max-width: 767px) {
    .ksc-footer {
        justify-content: center;
        text-align: center;
    }
}
/* Button „STARTPLATZ SPEICHERN“ – Design */

.ksc-submit-button {
    background: #fecf06;
    border: 1px solid #c89f00;
    border-radius: 999px;
    padding: 10px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.ksc-submit-button:hover {
    background: #f0bf00;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

/* ================================
   1. Buttons: Startplatz speichern im Pill-Stil
   ================================ */

.ksc-btn-primary {
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid #000000;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #ffffff !important;
    background: #000000 !important;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    font-family: "titillium-bold", "titillium-regular", Arial, sans-serif !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ksc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    background: #111111 !important;
}

/* Damit auch der Submit-Button selbst den Stil übernimmt */
.ksc-btn-primary input[type="submit"],
.ksc-btn-primary button,
.ksc-btn-primary .wp-element-button {
    background: transparent !important;
    border: none !important;
    color: inherit !important;
    padding: 0;
    font: inherit;
}

/* ================================
   2. Header: Handy-Layout zentrieren
   ================================ */

@media (max-width: 767px) {

  /* Gelbe Header-Leiste in Form & Liste */
  .ksc-header {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .ksc-title-block {
      align-items: center;
      text-align: center;
  }

  .ksc-title-block h1 {
      text-align: center;
  }

  .ksc-title-block span {
      text-align: center;
  }

  /* Schwarzer Button unter der Unterzeile, zentriert */
  .ksc-header .ksc-badge-link {
      margin: 16px 0 0 0;
      align-self: center;
  }

  /* Container-Breite Handy 90% (Form + Startzeiten) – Sicherheitshalber noch einmal */
  .ksc-card {
      width: 90%;
  }
}

/* Tablet-Breite 85% (Form + Startzeiten) */
@media (min-width: 768px) and (max-width: 1024px) {
  .ksc-card {
      width: 85%;
  }
}

/* ================================
   3. Unterer Button-Bereich zentrieren (Handy)
   ================================ */

@media (max-width: 767px) {

  /* Zeile mit "Turnierverwaltung", "Internes Buchungssystem" und "Startplatz speichern" */
  .ksc-button-row {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      text-align: center;
  }

  .ksc-button-row .ksc-btn-secondary,
  .ksc-button-row .ksc-btn-primary {
      margin-left: 0;
  }
}

/* ================================
   4. Footer-Text "frei bedeutet..."
   ================================ */

/* Alle drei Texte optisch auf einer Linie, 11px ist oben bereits gesetzt */
.ksc-footer {
    align-items: center;
}

/* Optional: etwas mehr Abstand zwischen den Textblöcken */
.ksc-footer span {
    display: inline-flex;
    align-items: center;
}

/* am 11.12.25 eingefügt */

/* Mobile Header: Button unter Überschrift zentrieren (v4.3.4) */
@media (max-width: 767px) {
  /* Gelber Header-Bereich oben in STARTER-ANMELDUNG & GEBUCHTE STARTZEITEN */
  .ksc-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Block mit HEADLINE + Unterzeile */
  .ksc-title-block {
    width: 100%;
    margin: 0 0 16px 0;
    text-align: center;
  }

  /* Rechte Spalte mit dem schwarzen Button (Starterliste / Anmeldung) */
  .ksc-header-cta {
    margin-left: 0;
    margin-top: 0.75rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .ksc-header .ksc-badge-link {
    margin-right: 0;
  }
}

/* Mobile Header & Button zentrieren (v4.3.4) */
@media (max-width: 767px) {
  /* Gelber Header-Block */
  .ksc-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Headline-Bereich "STARTER-ANMELDUNG" / "GEBUCHTE STARTZEITEN" */
  .ksc-title-block {
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
  }

  /* Container für den schwarzen Button rechts */
  .ksc-header-cta {
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
  }

  /* Sicherheitshalber: Button nicht nach rechts schieben */
  .ksc-header .ksc-badge-link {
    margin-right: 0;
  }
}
