h1, h2, h3, h4 {
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

p, li {
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: break-word;
}

.spieler p {
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  overflow-wrap: normal;
  word-break: keep-all;
  text-align: center;
}

h1 {
  text-transform: none !important;
}

h1, h2, h3 {
  font-weight: bold !important;
  color: #ffe600;
}

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 17px; }
  body { font-size: 15px; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }
}

.scm-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  margin-bottom: 1rem;
}

.scm-logo-wrapper img {
  max-width: 120px;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.scm-logo-text {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffe600;
  text-align: center;
}

.kachel .grid-kacheln {
  padding: 1rem;
  background-color: #0f1f3a;
  border-radius: 1rem;
}

.grid-kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.titelkachel-link {
  text-decoration: none;
  color: inherit;
}

.titelkachel {
  background: #0f1f3a;
  border-radius: 0.75rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.titelkachel:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 14px rgba(0,0,0,0.2);
  border-color: #ffe600;
}

.titelkachel-titel {
  font-weight: 600;
  font-size: 1.5rem;
  color: #ffe600;
}

.titelkachel-untertitel {
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 0.25rem;
}

.titelkachel-link {
  display: block;
  height: 100%;
}

.titelkachel-link:focus-visible .titelkachel {
  outline: 3px solid #ffe600;
  outline-offset: 2px;
  border-color: #ffe600;
}

@media (hover: none) and (pointer: coarse) {
  .titelkachel-link .titelkachel {
    border-color: #ffe600;
  }

  .titelkachel-link:active .titelkachel {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px color-mix(in oklab, #ffe600 35%, transparent);
  }

  .titelkachel-link .titelkachel::after {
    opacity: .85;
  }

  .disabled .titelkachel,
  .titelkachel.disabled,
  .titelkachel.disabled .titelkachel {
    border-color: rgba(255,255,255,.08);
    box-shadow: 0 3px 8px rgba(0,0,0,.15);
  }
}

.rechtskacheln {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  height: 100%;
  gap: 1rem;
}

.rechtskacheln .kachel {
  flex: 1;
}

@media (max-width: 640px) {
  .grid-kacheln {
    grid-template-columns: 1fr;
  }

  .rechtskacheln {
    flex-direction: column;
  }

  .rechtskacheln .kachel {
    flex: initial;
  }
}

.grid-2x1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

@media (max-width: 640px) {
  .grid-2x1 {
    grid-template-columns: 1fr;
  }
}

.kachel {
  background: #142850;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1rem;
}

.kachel + .kachel:not(.grid-kacheln .kachel) {
  margin-top: 1rem;
}

.superkachel {
  background-color: #FFE600;
  color: #0A1B3D;
  border-radius: 0.75rem;
  padding: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.superkachel a {
  color: #004080;
  text-decoration: underline;
  font-weight: 600;
}

.superkachel a:hover,
.superkachel a:focus {
  color: #002255;
  text-decoration: none;
}

.kachel h1, 
.kachel h2,
.kachel h3 
{
  margin-top: 0;
}

.superkachel h1, 
.superkachel h2,
.superkachel h3 
{
  color: #0A183D;
  margin-top: 0;
}

.spielekachel {
  font-family: 'Figtree', sans-serif;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums; 
}

/* Bisherige Spiele grau & blass – ohne zusätzliche Containerklasse */

/* LI nicht filtern, sonst werden Kinder (Emoji) immer mitgefiltert */
.kachel ul.vergangen li,
ul.vergangen li {
  color: #b9c1cc;
}

/* nur den Text-/Content-Wrapper blass/grau machen */
.kachel ul.vergangen li .past-muted,
ul.vergangen li .past-muted {
  filter: grayscale(100%) saturate(0);
  opacity: .48;
}

/* Links in Turnierplan-Hinweisen sollen NICHT die Theme-Linkfarbe (blau) nehmen */
.kachel ul.vergangen li .turnierplan-hinweis a,
ul.vergangen li .turnierplan-hinweis a {
  color: inherit;
  text-decoration-color: currentColor;
}

.kachel ul.vergangen li .turnierplan-hinweis a:visited,
ul.vergangen li .turnierplan-hinweis a:visited {
  color: inherit;
}

/* optional: Hover/Fokus trotzdem sichtbar, aber ohne Farbumschlag */
.kachel ul.vergangen li .turnierplan-hinweis a:hover,
.kachel ul.vergangen li .turnierplan-hinweis a:focus-visible,
ul.vergangen li .turnierplan-hinweis a:hover,
ul.vergangen li .turnierplan-hinweis a:focus-visible {
  text-decoration: underline;
}

.kachel ul.vergangen li::marker,
ul.vergangen li::marker { color: #9aa7b0; }

.kachel ul.vergangen li strong,
ul.vergangen li strong { color: #cfd6de; font-weight: 600; }

.kachel ul.vergangen li .ergebnis,
ul.vergangen li .ergebnis { color: #d7dce4; font-weight: 700; white-space: nowrap; }

.kachel ul.vergangen li[class*="team-"],
ul.vergangen li[class*="team-"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #b9c1cc !important;
}

/* Links in der Turnierliste (Turnierplan bzw. Platz-Link): sichtbar als Link, aber weiterhin gedeckt */
.kachel ul.vergangen li .turnierplan-hinweis a,
ul.vergangen li .turnierplan-hinweis a,
.kachel ul.kommend li .turnierplan-hinweis a,
ul.kommend li .turnierplan-hinweis a {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1px;
}

/* Optional: bei Hover/Fokus etwas deutlicher (ohne Farbänderung) */
.kachel ul.vergangen li .turnierplan-hinweis a:hover,
.kachel ul.vergangen li .turnierplan-hinweis a:focus-visible,
ul.vergangen li .turnierplan-hinweis a:hover,
ul.vergangen li .turnierplan-hinweis a:focus-visible,
.kachel ul.kommend li .turnierplan-hinweis a:hover,
.kachel ul.kommend li .turnierplan-hinweis a:focus-visible,
ul.kommend li .turnierplan-hinweis a:hover,
ul.kommend li .turnierplan-hinweis a:focus-visible {
  text-decoration-thickness: 2px;
}

/* Rank bleibt kursiv, aber nur der Text wird blass */
.rank {
  font-size: 0.85em;
  /* font-style: italic; */
  color: var(--text-muted-color);
}

.rank-emoji {
  font-style: normal;
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
}

/* nur der Rang-Text wird blass, Emoji bleibt voll */
.rank-text {
  opacity: .48;
}

.kommentar {
  font-size: 0.85em;
  font-style: italic;
  color: var(--text-muted-color); /* oder ein sanftes Grau */
}

.kachel h4.subhead {
  font-weight: 700;
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.15rem);
  line-height: 1.25;
  margin: .75rem 0 .25rem;
}

.kachel h4.subhead--past
{
  color: #b9c1cc;
}

.kachel h4.subhead--upcoming
{
  color: #ffe600;
}

.trainingskachel h4
{
  color: #ffe600;
}

.titelfoto {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.training-schedule {
  overflow-x: auto;
  margin: 1em 0;
}

.zeitraum {
  font-weight: 600;
  opacity: .85;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: center;
  background-color: #002b55; /* Dunkelblauer Hintergrund */
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  color: #f0f0f0; /* Standard-Text hell */
}

.schedule-table td:not(:empty) {
  background-color: rgba(100, 140, 255, 0.12); /* leichtes Blau */
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  transition: background-color 0.2s ease;
}

.schedule-table th,
.schedule-table td {
  padding: 0.6em 0.8em;
  border: 1px solid #444;
  text-align: center;
  vertical-align: middle;
}

.schedule-table thead {
  background-color: #002b55;
  color: #ffe600; /* Neongelber Text */
  font-weight: bold;
}

.schedule-table tbody tr:nth-child(even) {
  background-color: #1e1e1e; /* Dunkles Zebra */
}

.schedule-table tbody tr:nth-child(odd) {
  background-color: #2a2a2a; /* Etwas helleres Zebra */
}

.schedule-table td:first-child {
  text-align: left;
}

.schedule-table td a {
  text-decoration: none;
  color: #66ccff; /* Linkfarbe hellblau */
  font-weight: bold;
}

.schedule-table td a:hover {
  text-decoration: underline;
  color: #00aaff; /* Hellere Hover-Farbe */
}

.schedule-table thead .short {
  display: none;
}
.schedule-table thead .long {
  display: inline;
}

.schedule-table .separator {
  display: inline;
}
.schedule-table .start,
.schedule-table .end {
  display: inline;
}

@media (max-width: 1024px) {
  /* Tagesnamen auf kurz umschalten */
  .schedule-table thead .short {
    display: inline;
  }
  .schedule-table thead .long {
    display: none;
  }

  /* Zeitangaben umbrechen */
  .schedule-table .separator {
    display: none;
  }
  .schedule-table .start,
  .schedule-table .end {
    display: block;
  }

  .schedule-table td {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .schedule-table {
    font-size: 0.75rem;
  }

  .schedule-table td:not(:empty),
  .schedule-table th {
    padding-block: 0.2rem;
    padding-inline: 0.05rem;
  }

  .schedule-table th,
  .schedule-table td {
    border-left: 0;
    border-right: 0;
  }
}

.map-card iframe {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.triple-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  padding: 0 0.2rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.gallery-item {
  flex: 0 0 calc((100% - 0.8rem) / 3);
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Zarter, animierter Mauerbach‑Rahmen – nur bei Hover oder sichtbarem Tastatur-Fokus */
.triple-gallery .gallery-item img:hover,
.triple-gallery .gallery-item a:hover img,
.triple-gallery .gallery-item img:focus-visible,
.triple-gallery .gallery-item a:focus-visible img {
  outline: 2px solid #ffe600 !important;
  outline-offset: -2px;
  border-radius: 8px;
  transition: outline-color 0.2s ease, outline-width 0.2s ease, box-shadow 0.2s ease;
}

/* zarter Glow bei Hover */
.triple-gallery .gallery-item img:hover,
.triple-gallery .gallery-item a:hover img {
  box-shadow: 0 4px 10px #ffe600;
}

/* Plain :focus NICHT rahmen – verhindert persistente Rahmen nach Klick */
.triple-gallery .gallery-item a:focus img,
.triple-gallery .gallery-item img:focus {
  outline: none !important;
  box-shadow: none !important;
}

:where
.spielort {
  font-size: 0.85em;
  font-style: italic;
  color: var(--text-muted-color); /* oder ein sanftes Grau */
}

/* PhotoSwipe: Links im Kader-Grid wie Bilder behandeln */
.kader-grid.pswp-gallery .spielerbild-wrapper > a{
  display: block;
}

/* Sicherheit: Thumbnails nicht verzerren */
.kader-grid.pswp-gallery img{
  display: block;
  height: auto;
  max-width: 100%;
}

:root{
  --pswp-radius: 64px;
  --pswp-radius-target: var(--pswp-radius);
}

@media (max-width: 640px){
  :root{ --pswp-radius: 16px; }
}
@media (min-width: 641px) and (max-width: 1024px){
  :root{ --pswp-radius: 32px; }
}
@media (min-width: 1441px){
  :root{ --pswp-radius: 96px; }
}

/* Spielername unten in der Lightbox */
.pswp-player-name{
  position: fixed;              /* wichtig, da Element an root hängt */
  z-index: 30;
  pointer-events: none;

  /* Typo */
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  /* deutlich größer: */
  font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.4rem);
  line-height: 1.15;
  color: #ffe600;

  /* dezente Lesbarkeit auf hellen Hintergründen */
  text-shadow:
    0 0 10px rgba(0,0,0,.55),
    0 2px 10px rgba(0,0,0,.45);

  /* leichte Fläche hinter dem Text; sehr transparent */
  padding: .35rem .6rem;
  border-radius: .55rem;
  background: rgba(0,0,0,.15);
  backdrop-filter: blur(2px);
  z-index: 30;
  opacity: 0;
  transition: opacity .25s ease;
}

@media (max-width: 640px){
  .pswp-player-name{
    font-size: clamp(1.00rem, 0.85rem + 1.00vw, 1.35rem);
  }
}

@media (min-width: 641px) and (max-width: 1024px){
  .pswp-player-name{
    font-size: clamp(1.20rem, 1.00rem + 1.20vw, 1.90rem);
  }
}

.pswp .pswp__img,
.pswp .pswp__img--placeholder{
  border-radius: var(--pswp-radius);
}

.pswp .pswp__item .pswp__zoom-wrap,
.pswp .pswp__item,
.pswp .pswp__content{
  border-radius: var(--pswp-radius);
}

.pswp-player-name.is-visible{
  opacity: 1;
}

/* sanfte Vignette hinter dem Bild (nur im Zoom) */
.pswp .pswp__content::before{
  content:"";
  position: fixed; inset:0;
  pointer-events:none;
  background:
    radial-gradient(120% 120% at 50% 50%,
      rgba(0,0,0,0) 60%,
      rgba(0,0,0,.25) 85%,
      rgba(0,0,0,.38) 100%);
}

/* beim Öffnen leicht „liften“ */
.pswp .pswp__img{
  will-change: filter;
  transition: filter .35s ease;
}
.pswp--open .pswp__img{ filter: drop-shadow(0 14px 34px rgba(0,0,0,.35)); }

.pswp .pswp__zoom-wrap {
  position: relative;
}
.pswp .pswp__zoom-wrap::after{
  content:"";
  position:absolute; inset:0;
  border-radius: var(--pswp-radius-target, var(--pswp-radius));
  -webkit-mask: linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0);
  pointer-events:none;
}
/* echtes Clipping */
.pswp .pswp__img{
  border-radius: var(--pswp-radius-target, var(--pswp-radius));
  clip-path: inset(0 round var(--pswp-radius-target, var(--pswp-radius)));
}

/* Bubble-Stil, dezent */
.pswp-hint{
  position: fixed; left:50%; top: 14%;
  transform: translateX(-50%);
  pointer-events: none; z-index: 40;
}
.pswp-hint__bubble{
  padding:.5rem .8rem; border-radius:.6rem;
  background: rgba(0,0,0,.55); color:#ffe600;
  font: 600 0.9rem/1.2 "Figtree", system-ui, sans-serif;
  opacity:0; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
}

.pswp-hint.is-shown .pswp-hint__bubble{ opacity:1; transform:none; }

/* --- Underline-Wipe für den Spielernamen --- */
/* Grundzustand: Linie unsichtbar (Breite 0) */
.pswp-player-name::after{
  content: "";
  display: block;
  height: 3px;                     /* Linienstärke */
  width: 0;                        /* Startbreite */
  margin: .28rem auto 0;           /* etwas Abstand unter dem Text */
  background: #ffe600;             /* Vereinsgelb */
  border-radius: 2px;              /* sanft abgerundet */
  transition: width .6s ease;      /* Wipe-Animation */
}

/* Wenn .is-anim gesetzt wird → Linie fährt dezent ein */
.pswp-player-name.is-anim::after{
  width: 72%;                      /* Zielbreite; nach Geschmack 60–80% */
}

/* Motion-Respect: keine Animation bei reduziertem Bewegungswunsch */
@media (prefers-reduced-motion: reduce){
  .pswp-player-name::after{
    transition: none;
  }
}

/* Endzustand (wenn Klasse .pswp--rounded gesetzt ist) */
.pswp.pswp--rounded :is(.pswp__img, .pswp__placeholder) {
  border-radius: var(--pswp-radius-target, var(--pswp-radius));
  clip-path: inset(0 round var(--pswp-radius-target, var(--pswp-radius)));
}

/* Während der Öffnungs-/Schließ-Animation: KEINE Rundung → kein „Ellipse“-Flackern */
.pswp:not(.pswp--rounded) :is(.pswp__img, .pswp__placeholder) {
  border-radius: 0 !important;
  clip-path: none !important;
}

/* Optional (schadet nicht): ein bisschen Glättung beim finalen Einblenden */
.pswp.pswp--rounded .pswp__img {
  transition: border-radius .15s ease, clip-path .15s ease;
}

/* === PhotoSwipe: stabile Ecken ohne Oval-Blitz beim Umschalten === */

/* 1) Sicherheitsnetz: identischer Clip auf Placeholder & Bild */
.pswp .pswp__placeholder,
.pswp .pswp__img {
  /* wir clippen, nicht nur border-radius, damit wirklich "geschnitten" wird */
  clip-path: inset(0 round var(--pswp-radius, 32px));
  border-radius: var(--pswp-radius, 32px); /* optisch passend; das Clipping macht clip-path */
  transition: none !important;             /* kein kurzzeitiges Interpolieren */
}

/* 2) Gilt explizit auch während der Animationsphasen */
.pswp--opening .pswp__placeholder,
.pswp--opening .pswp__img,
.pswp--closing .pswp__placeholder,
.pswp--closing .pswp__img {
  clip-path: inset(0 round var(--pswp-radius, 32px));
  border-radius: var(--pswp-radius, 32px);
}

/* 3) Verhindert, dass ein Wrapper das Clipping "verschluckt" */
.pswp .pswp__item,
.pswp .pswp__zoom-wrap,
.pswp .pswp__content {
  overflow: visible; /* wichtig: Clip darf nicht durch Overflow hidden des Wrappers überschrieben werden */
}

/* 4) (Optional) Säubert alte Effekte, die dazwischenfunken könnten */
.pswp .pswp__img {
  /* manche Browser "merken" sich frühere Filter/Transitions – hier bewusst neutral */
  filter: none !important;
}

.team-heim {
  color: #a6f3c4;
}

.team-auswaerts {
  color: #c1d0e0;
}

/* Allgemeine, ruhige Markierung für externe Textlinks */
a.link-extern::after,
.external-link::after {
  content: " \2197\FE0E";
  font-size: 0.9em;
  white-space: nowrap;
  font-family: inherit;
}

/* Shop-Link in Fließtexten / Superkacheln */
.shop-link {
  white-space: nowrap;
}

/* Externe Kachel: Titel dezent markieren */
.titelkachel-link.extern .titelkachel-titel::after {
  content: " \2197\FE0E";
  font-size: 0.82em;
  vertical-align: 0.08em;
  font-family: inherit;
}

/* Externe Kachel leicht differenzieren, aber ohne Fremdkörper */
.titelkachel-link.extern .titelkachel {
  position: relative;
}

/* Optional minimal stärkere Wahrnehmbarkeit beim Hover */
.titelkachel-link.extern:hover .titelkachel,
.titelkachel-link.extern:focus-visible .titelkachel {
  border-color: #ffe600;
}

/* Menü-/Fließtext-Hinweis auf externen Charakter */
.vereinsshop-hinweis {
  color: #ccc;
  font-size: 0.95rem;
}

.kachel,
.titelkachel {
  background: #0f1f3a !important;
}

html, body {
  background-color: #080f1e !important;
}

.plaintext-highlight {
  color: #ffe600;
}