/* Sharks Spiele — nutzt die Design-Tokens des Themes (theme.json). */

/* --- Spieltag-Hero --- */
.sharks-hero__kicker {
  font-family: var(--wp--preset--font-family--oswald, sans-serif);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  /* Literalfarben: der Hero ist in BEIDEN Stil-Varianten dunkel,
     Palette-Variablen wuerden in "Eis (hell)" umkippen. */
  color: #ff4d53;
  margin: 0 0 0.5em;
}
.sharks-hero__title {
  margin: 0;
}
.sharks-hero__score {
  font-family: var(--wp--preset--font-family--anton, Impact, sans-serif);
  font-size: clamp(4.5rem, 14vw, 10rem);
  line-height: 0.9;
  color: var(--wp--preset--color--white, #f4f6f7);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.sharks-hero__meta {
  color: #9aa3ad;
  font-size: var(--wp--preset--font-size--large, 1.4rem);
  margin: 0.6em 0 0;
}

/* --- Spieltag-Hero, Layout "scoreboard": Titel links, Panel rechts --- */
.sharks-hero--scoreboard {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
/* Constrained-Layout begrenzt Kinder auf die Lesespalte (780px) --
   der Scoreboard-Hero darf die volle Breitspalte nutzen. */
.is-layout-constrained > .sharks-hero--scoreboard {
  max-width: var(--wp--style--global--wide-size, 1180px);
}
.sharks-hero--scoreboard .sharks-hero__main {
  flex: 1 1 0;
  min-width: min(420px, 100%);
}
.sharks-hero--scoreboard .sharks-hero__title {
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 0.9;
  overflow-wrap: break-word;
}
.sharks-hero__panel {
  background: rgba(23, 25, 29, 0.92);
  border: 1px solid var(--wp--preset--color--line, #33383f);
  width: min(380px, 100%);
  flex: 0 0 auto;
}
.sharks-hero__panel-bar {
  height: 4px;
  background: var(--wp--preset--color--red, #c0161c);
}
.sharks-hero__panel-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sharks-hero__panel-label {
  font-family: var(--wp--preset--font-family--oswald, sans-serif);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff4d53;
  margin: 0;
}
.sharks-hero__panel-datum {
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0;
}
.sharks-hero__panel-ort {
  color: #9aa3ad;
  font-size: 0.92rem;
  margin: 0;
}
/* Panel und Countdown im Hero: immer dunkle Anzeigetafel, egal welcher Stil */
.sharks-hero__panel .sharks-countdown__cell {
  background: #17191D;
  border-color: #33383F;
}
.sharks-hero__panel .sharks-countdown__num {
  color: #F4F6F7;
}
.sharks-hero__panel .sharks-countdown__label {
  color: #FF4D53;
}
.sharks-hero__panel-datum {
  color: #F4F6F7;
}
.sharks-hero__panel-next {
  margin: 6px 0 0;
  padding-top: 10px;
  border-top: 1px solid #33383F;
  font-family: var(--wp--preset--font-family--oswald, sans-serif);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9aa3ad;
}
.sharks-hero--scoreboard .sharks-countdown {
  margin-top: 4px;
  gap: 8px;
  flex-wrap: nowrap;
}
.sharks-hero--scoreboard .sharks-countdown__cell {
  min-width: 0;
  flex: 1 1 0;
  padding: 10px 6px 8px;
}
.sharks-hero--scoreboard .sharks-countdown__num {
  font-size: 2rem;
}

/* --- Sponsorenband --- */
.sharks-sponsorband {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: center;
}
.sharks-sponsorband img {
  height: 34px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

/* --- Naechstes Spiel / Countdown --- */
.sharks-next__match {
  font-family: var(--wp--preset--font-family--oswald, sans-serif);
  text-transform: uppercase;
}
.sharks-next__meta {
  color: var(--wp--preset--color--steel, #9aa3ad);
}
.sharks-countdown {
  display: flex;
  gap: 10px;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.sharks-countdown__cell {
  background: var(--wp--preset--color--char, #17191d);
  border: 1px solid var(--wp--preset--color--line, #33383f);
  min-width: 86px;
  padding: 12px 10px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sharks-countdown__num {
  font-family: var(--wp--preset--font-family--anton, Impact, sans-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  color: var(--wp--preset--color--white, #f4f6f7);
  font-variant-numeric: tabular-nums;
}
.sharks-countdown__label {
  font-family: var(--wp--preset--font-family--oswald, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wp--preset--color--red-text, #ff4d53);
}

/* --- Spielplan-Listen --- */
.sharks-plan__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--wp--preset--spacing--40, 2rem);
}
.sharks-plan__row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 4px 20px;
  align-items: start;
  padding: 13px 4px;
  border-bottom: 1px solid var(--wp--preset--color--line-soft, #262b31);
}
.sharks-plan__datum {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--wp--preset--font-family--oswald, sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}
.sharks-plan__zeit {
  color: var(--wp--preset--color--steel, #9aa3ad);
  font-weight: 500;
}
.sharks-plan__match {
  line-height: 1.35;
}
.sharks-plan__sub {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--wp--preset--color--steel, #9aa3ad);
}
.sharks-plan__row > .sharks-plan__badge,
.sharks-plan__row > .sharks-plan__score {
  justify-self: end;
}
@media (max-width: 560px) {
  .sharks-plan__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .sharks-plan__datum {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 10px;
  }
}
.sharks-plan__badge {
  font-family: var(--wp--preset--font-family--oswald, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--wp--preset--color--line, #33383f);
  padding: 3px 10px;
  color: var(--wp--preset--color--steel, #9aa3ad);
}
.sharks-plan__badge--heim {
  border-color: var(--wp--preset--color--red, #c0161c);
  color: var(--wp--preset--color--white, #f4f6f7);
}
.sharks-plan__score {
  font-family: var(--wp--preset--font-family--anton, Impact, sans-serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--white, #f4f6f7);
}
.sharks-plan__score--sieg {
  color: var(--wp--preset--color--red-text, #ff4d53);
}
.sharks-plan__score--niederlage {
  color: var(--wp--preset--color--steel, #9aa3ad);
}

/* --- Formular "Spielbericht einreichen" --- */
.sharks-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
}
.sharks-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--wp--preset--font-family--oswald, sans-serif);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--steel, #9aa3ad);
}
.sharks-form input[type="text"],
.sharks-form input[type="number"],
.sharks-form select,
.sharks-form textarea {
  background: var(--wp--preset--color--char-2, #20242a);
  border: 1px solid var(--wp--preset--color--line, #33383f);
  color: var(--wp--preset--color--white, #f4f6f7);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 0;
  min-height: 48px;
}
.sharks-form textarea {
  min-height: 160px;
  resize: vertical;
}
.sharks-form input:focus-visible,
.sharks-form select:focus-visible,
.sharks-form textarea:focus-visible {
  outline: 2px solid var(--wp--preset--color--red-text, #ff4d53);
  outline-offset: 2px;
}
.sharks-form input[type="file"] {
  color: var(--wp--preset--color--steel, #9aa3ad);
  font-size: 0.9rem;
}
.sharks-form__tore {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.sharks-form__tore input {
  font-family: var(--wp--preset--font-family--anton, Impact, sans-serif);
  font-size: 1.6rem;
  text-align: center;
}
.sharks-form__senden {
  align-self: flex-start;
  background: var(--wp--preset--color--red, #c0161c);
  color: #ffffff;
  border: 0;
  font-family: var(--wp--preset--font-family--oswald, sans-serif);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 15px 28px;
  clip-path: polygon(0 0, 100% 0, 97% 100%, 0% 100%);
  cursor: pointer;
}
.sharks-form__senden:hover {
  background: var(--wp--preset--color--red-deep, #8c1013);
}
.sharks-form__meldung {
  border: 1px solid var(--wp--preset--color--line, #33383f);
  padding: 14px 18px;
  font-weight: 500;
}
.sharks-form__meldung--ok {
  border-left: 3px solid var(--wp--preset--color--red, #c0161c);
}
.sharks-form__meldung--fehler {
  border-left: 3px solid var(--wp--preset--color--red-text, #ff4d53);
  color: var(--wp--preset--color--red-text, #ff4d53);
}
.sharks-form__loginlink {
  font-family: var(--wp--preset--font-family--oswald, sans-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Warenkorb-Knopf im Header (nur sichtbar, wenn gefuellt) --- */
.sharks-warenkorb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--wp--preset--color--line, #33383f);
  color: var(--wp--preset--color--white, #f4f6f7);
  text-decoration: none;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0% 100%);
  transition: background .15s, border-color .15s;
}
.sharks-warenkorb:hover,
.sharks-warenkorb:focus-visible {
  background: var(--wp--preset--color--red, #c0161c);
  border-color: var(--wp--preset--color--red, #c0161c);
  color: #ffffff;
  text-decoration: none;
}
.sharks-warenkorb__icon {
  flex: 0 0 auto;
}
.sharks-warenkorb__zahl {
  font-family: var(--wp--preset--font-family--oswald, sans-serif);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* --- Personalisiertes Trikot: Felder auf der Produktseite --- */
.sharks-perso {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin: 0 0 18px;
}
.sharks-perso label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--wp--preset--font-family--oswald, sans-serif);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--steel, #9aa3ad);
}
.sharks-perso input {
  background: var(--wp--preset--color--char-2, #20242a);
  border: 1px solid var(--wp--preset--color--line, #33383f);
  color: var(--wp--preset--color--white, #f4f6f7);
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 0;
  min-height: 44px;
  text-transform: uppercase;
}
.sharks-perso input:focus-visible {
  outline: 2px solid var(--wp--preset--color--red-text, #ff4d53);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .sharks-perso {
    grid-template-columns: 1fr;
  }
}

/* Helle Sektionen (ice): Kontraste mitziehen */
.has-ice-background-color .sharks-countdown__cell {
  background: var(--wp--preset--color--white, #f4f6f7);
}
.has-ice-background-color .sharks-countdown__num,
.has-ice-background-color .sharks-plan__score {
  color: var(--wp--preset--color--ink, #14161a);
}

/* --- Verbandsdaten: Live-Spielstand im Hero und Spielbericht ---------------
   Die Widget-Klassen des Verbands tragen alle den Praefix -hd- .
   Der Hero ist in BEIDEN Stil-Varianten dunkel -> Literalfarben, keine
   Palette-Variablen (die kippen in "Eis (hell)" um). */
.sharks-hero--live {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sharks-hd-livebox {
  color: #f4f6f7;
  font-variant-numeric: tabular-nums;
}
/* Ohne Begrenzung setzt das Widget die Vereinslogos in Originalgroesse ein. */
.sharks-hd-livebox img,
.sharks-hd-bericht img {
  max-height: 48px;
  width: auto;
}
.sharks-hd-livebox .-hd-error,
.sharks-hd-bericht .-hd-error {
  color: #ff4d53;
  font-size: 0.95rem;
}
/* Solange die Bibliothek laedt, ist der Container leer -- Platz reservieren,
   damit der Hero beim Nachladen nicht springt. */
.sharks-hd-livebox:empty::before {
  content: "Spielstand wird geladen …";
  display: block;
  padding: 1.5rem 0;
  color: #9aa3ad;
}

/* Spielbericht auf eigener Seite: folgt dem Seitenhintergrund, nicht dem Hero. */
.sharks-hd-bericht {
  overflow-x: auto;
}
.sharks-hd-bericht table {
  width: 100%;
  border-collapse: collapse;
}
.sharks-hinweis {
  padding: 1rem 1.2rem;
  border-left: 3px solid #ff4d53;
  background: rgba(127, 127, 127, 0.08);
}

/* Endstand im Spielplan wird anklickbar, wenn es beim Verband einen
   Spielbericht gibt. Der Link soll die Zahl nicht umgestalten. */
.sharks-plan__bericht {
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.sharks-plan__bericht:hover .sharks-plan__score,
.sharks-plan__bericht:focus-visible .sharks-plan__score {
  text-decoration: underline;
}

/* Hinweis unter den Torfeldern im Berichtsformular */
.sharks-form__torhinweis {
  margin: -0.4rem 0 0.8rem;
  font-size: 0.86rem;
  opacity: 0.8;
}

/* Berichtsformular, Schritt 1: News oder Spielbericht */
.sharks-form__art {
  border: 1px solid rgba(127,127,127,.35);
  border-radius: 4px;
  padding: 0.9rem 1rem 1rem;
  margin: 0 0 1.2rem;
}
.sharks-form__art legend {
  padding: 0 0.4rem;
  font-weight: 600;
}
.sharks-form__artwahl {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  cursor: pointer;
}
.sharks-form__artwahl input { margin-top: 0.25rem; }
.sharks-form__artwahl small {
  display: block;
  opacity: 0.75;
  font-size: 0.85rem;
}

/* Redaktionszeile im Fussbereich — nur fuer angemeldete Personen sichtbar.
   Bewusst unauffaellig: sie gehoert nicht zum oeffentlichen Erscheinungsbild. */
.sharks-redaktion {
  margin: 1.4rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(244, 246, 247, 0.22);
  font-size: 0.82rem;
  color: #9aa3ad;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
}
.sharks-redaktion a { color: #c8d0d8; }
.sharks-redaktion a:hover,
.sharks-redaktion a:focus-visible { color: #ff4d53; }
.sharks-redaktion__wer { opacity: 0.8; }
.sharks-redaktion--gast {
  justify-content: center;
  opacity: 0.55;
}
.sharks-redaktion--gast:hover,
.sharks-redaktion--gast:focus-within { opacity: 1; }
.sharks-form__hinweistext {
  margin: -0.4rem 0 1rem;
  font-size: 0.86rem;
  opacity: 0.8;
}

/* Profil-Editor und Rücknahme */
.sharks-form__zurueck { margin: -0.6rem 0 1.2rem; }
.sharks-form__zurueck button {
  background: none;
  border: 1px solid currentColor;
  padding: 0.4rem 0.9rem;
  font-size: 0.86rem;
  cursor: pointer;
  color: inherit;
}
.sharks-form__zurueck button:hover { border-color: #ff4d53; color: #ff4d53; }
.sharks-form__nurprofil small { font-weight: 400; opacity: 0.75; }
