.spielbericht-toggle {
    border-radius: 6px;
    margin: 10px 0;
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    overflow: hidden;
		/*padding-left: 5px;
		padding-right: 5px;*/
}

.spielbericht-header {
    background: linear-gradient(to right, #ff0000, #990000, #ff1111);
		border: 3px solid #000;
		text-align: center;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
}
.spielbericht-head {
	text-align: center;
  background-color: #333333;     /* sanftes Rot (Fehlermeldung-Stil) */
  color: #FFFFFF;                /* dunkles Rot für Text */
  padding: 0.5em 1em;
  margin: 10px 0;
	border-top: 1px solid #000000;
	border-bottom: 1px solid #000000;
  font-weight: bold;
  font-size: 0.9em;
  font-family: "Segoe UI", sans-serif;
}
.spielbericht-content {
    max-height: 0;
    overflow: visible;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
    background-color: white;
}

.spielbericht-content.open {
    max-height: 0; /* groß genug für den Text */
    padding-top: 10px;
    padding-bottom: 15px;
}
.spielbericht-title {
	border-top: 2px solid #990000;
	padding: 5px 5px 10px 5px;
}
.spielbericht-text {
	padding: 0 5px 0 5px;
}
.slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  overflow: hidden;
}

.slider-inner {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  display: none;
  justify-content: center;
}

.slide.active {
  display: flex;
}

.slide img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  z-index: 10;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}
.slider-counter {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #333;
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 8px;
  border-radius: 6px;
  z-index: 10;
}
.spieler-bearbeiten-btn {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  font-size: 30px;
  opacity: 0.2;
  transition: opacity 0.3s ease;
  cursor: pointer;
  line-height: 1;
}

.spieler-bearbeiten-btn:hover {
  color: darkblue;
  scale: 1.1;
}

.spielfeld-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background-color: #ccc;
  position: relative;
	margin-bottom: 10px;
}
.spielfeld {
  max-height: 110vh; /* Oder passend zu deinem Layout */
  overflow-y: auto;
	overflow-x: auto;
  scroll-behavior: smooth;
}
.spielfeld-container {
	width: 100%;
  max-width: 2000px; /* optional */
  border: 2px solid black;
  background: url('/img/spielfeld/spielfeld.jpg') center center no-repeat;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  box-sizing: border-box;
}
.reihe {
  display: flex;
  justify-content: space-around;
	gap: 5px;
}

.sturm {
	padding-top: 30px;
	padding-bottom: 25px;
}
.mittelfeld {
	padding-top: 25px;
	padding-bottom: 30px;
}
.abwehr {
	padding-top: 30px;
	padding-bottom: 30px;
}
.torwart {
	padding-top: 10px;
	padding-bottom: 10px;
}

.spieler {
	display: flex;
  flex-direction: column;     /* Stellt sicher: Bild oben, Text darunter */
  align-items: center;        /* Zentriert horizontal */
  justify-content: center;
  width: 100px;               /* Breite passend zum Bild */
  margin: 10px;
  position: relative;
}
.torwart {
  display: flex;
  align-items: center;        /* Zentriert horizontal */
  justify-content: center;
	width: 100%;
	margin: 10px;
	position: relative;
}

.spieler img {
  width: 60px;
  height: 60px;
  border-radius: 5px;
	border: 1px solid #000;
}

.torwart img {
  width: 60px;
  height: 60px;
  border-radius: 5px;
	border: 1px solid #000;
}

.spieler .event {
  position: absolute;
  bottom: 100%;                  /* Direkt über dem Spielerbild */
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 4px;            /* Abstand zum Bild */
  font-size: 9px;
  color: #000;
  text-align: center;
  white-space: nowrap;           /* oder: normal, je nach Bedarf */
  background: #FFF;   /* optional Lesbarkeit */
  padding: 2px 5px;              /* optional */
  border-radius: 4px;            /* optional */
}
.torwart .event {
  position: absolute;
  bottom: 100%;                  /* Direkt über dem Spielerbild */
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 4px;            /* Abstand zum Bild */
  font-size: 9px;
  color: #000;
  text-align: center;
  white-space: nowrap;           /* oder: normal, je nach Bedarf */
  background: #FFF;   /* optional Lesbarkeit */
  padding: 2px 5px;              /* optional */
  border-radius: 4px;            /* optional */
}

/* Name unter dem Bild */
.spieler .name {
  display: inline-block;
  margin-top: -5px;
  font-size: 9px;
  color: #000;
  background-color: #FFF;
  padding: 2px 2px 2px 2px;
  border-radius: 4px;
  border: 1px solid #000;

  max-width: 100%;           /* Nie breiter als das Spieler-Element */
  word-wrap: break-word;     /* Bei Bedarf umbrechen */
  text-align: center;
  box-sizing: border-box;
}
.torwart .name {
  display: inline-block;
  margin-top: -5px;
  font-size: 9px;
  color: #000;
  background-color: #FFF;
  padding: 2px 2px 2px 2px;
  border-radius: 4px;
  border: 1px solid #000;

  max-width: 100%;           /* Nie breiter als das Spieler-Element */
  word-wrap: break-word;     /* Bei Bedarf umbrechen */
  text-align: center;
  box-sizing: border-box;
}
.spieler .karten {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.2;
}
.karten img.karte-icon {
	width: 25px;
  height: 20px;
  margin-right: 3px;
  vertical-align: middle;
	border: none;
}
.name select {
  width: 100%;
  max-width: 160px;  /* oder je nach Bedarf */
  font-size: 12px;
  box-sizing: border-box;
	appearance: none;
	font-size: 10px;
}
.wechsel-darstellung {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 10px auto;
  max-width: 800px;
}

.wechsel-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
	padding-bottom: 20px;
}

.wechsel-spieler {
  display: flex;
  flex-direction: column;
  align-items: center;
	width: 33%;
  margin: 5% 0 5% 5%;
	position: relative;
}
.wechsel-spieler .event {
	position: absolute;
	bottom: 100%;                  /* Direkt über dem Spielerbild */
  left: 50%;
  transform: translateX(-50%);
	margin-bottom: 4px;            /* Abstand zum Bild */
  font-size: 9px;
  color: #000;
  text-align: center;
  white-space: nowrap;           /* oder: normal, je nach Bedarf */
  background: #FFF;   /* optional Lesbarkeit */
  padding: 2px 5px;              /* optional */
  border-radius: 4px;            /* optional */
}

.wechsel-spieler img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
	border: 1px solid #000;
}

.wechsel-spieler .name {
  margin-top: -5px; /* << Weniger Abstand nach oben */
  font-size: 10px;
  background: #FFF;
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
	border: 1px solid #000;
  text-align: center;
}

.wechsel-pfeil {
  font-size: 16px;
  color: green;
  width: 60px;
  text-align: center;
}

.wechselbank-nicht-eingesetzt .wechsel-spieler {
  flex: 1;
  max-width: 100px;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

.wechselbank-nicht-eingesetzt .wechsel-spieler img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
	border: 1px solid #000;
}

.wechselbank-nicht-eingesetzt .name {
  margin-top: -5px; /* << Weniger Abstand nach oben */
  font-size: 10px;
  background: #FFF;
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
	border: 1px solid #000;
  text-align: center;
}
.wechsel-spieler .karten {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.2;
}
.karten img.karte-icon {
	width: 25px;
  height: 20px;
  margin-right: 3px;
  vertical-align: middle;
	border: none;
}

.bank-spieler-liste {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.spieler-bank {
  width: 90px;
  text-align: center;
}

.spieler-bank img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5%;
  border: 1px solid #000;
}

.spieler-bank .name {
  margin-top: -10px; /* << Weniger Abstand nach oben */
  font-size: 10px;
  background: #FFF;
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
	border: 1px solid #000;
  text-align: center;
}

.spieler-bank .info {
  font-size: 11px;
  color: #888;
}

.auswechselbank {
	background: #ccc;
	border: 2px solid #990000;
	margin-bottom: 20px;
	border-radius: 6px 6px 0 0;
}
.bank-info {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  background-color: #990000;
  border-radius: 4px 4px 0 0;
}

.bank-info h4 {
  margin: 0;
  color: #fff;
  font-size: 1em;
}

.wechselbank-nicht-eingesetzt {
	display: flex;
	flex-direction: column;
  align-items: center;
}


.wechsel-zeile {
  display: flex;
  align-items: center;
	width: 100%;
  margin-bottom: 10px;
  gap: 20px;
}

.wechsel-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wechsel-block.links,
.wechsel-block.rechts {
  width: 33%;
}

.wechsel-block.links,
.wechsel-block.rechts  img {
	width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
	border: 1px solid #000;
}
.wechsel-block.mitte {
  width: 10%;
  text-align: center;
  font-size: 20px;
}

.wechsel-pfeil {
  font-weight: bold;
  font-size: 24px;
  margin-top: 4px;
}
.wechselzeit-fehler {
  border: 2px solid red !important;
  background-color: #ffeaea; /* optional für mehr Sichtbarkeit */
}
.checkbox-row {
	padding: 0px 5px 10px 10px;
  display: flex;
  align-items: right;
  gap: 0.5em;
}
.editor-contenteditable-error {
  border: 2px solid red !important;
  box-shadow: 0 0 5px red;
}

/* Tablet */
@media (min-width: 600px) {
	.spielfeld {
		max-width: 160vh;
	}
}