@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

.comment-panel {
  padding: 0;
	margin: 0;
	margin-top: 10px;
  width: 100%;
  background: #f9f9f9;
  
	border-top: 1px solid #990000;
	border-bottom: 1px solid #990000;
	text-align: center;
}
.comment-item {
  border-bottom: 1px solid #ddd;
  padding: 5px 0;
	line-height: 1.0;
  font-family: 'Space Mono', monospace;
  font-weight: 400;
}

/* Überschrift einer normalen Statusmeldung, z. B. Anpfiff, Halbzeit,
   Schlusspfiff, Tor oder Spielerwechsel. */
.comment-item .comment-event-title,
.comment-item .comment-event-title strong,
.comment-item .comment-event-title b {
  font-weight: 700;
}

.comment-item .comment-event-title {
  font-size: 1.05em;
  line-height: 1.2;
}

/* Vorbericht und Fazit haben zusätzlich eine eigenständige Titelzeile. */
.comment-item .comment-feature-heading {
  margin-bottom: 0.65em;
  line-height: 1.25;
}

.comment-item .comment-feature-label,
.comment-item .comment-feature-label strong,
.comment-item .comment-feature-label b {
  font-weight: 700;
}

.comment-item .comment-feature-title {
  font-size: 1.15em;
  font-weight: 700;
}

.comment-item .comment-feature-title strong,
.comment-item .comment-feature-title b {
  font-size: inherit;
  font-weight: 700;
}

.comment-item small {
  color: #666;
  font-size: 11px;
}
.comment-toggle {
  display: inline-block;
  padding: 8px 12px;
  background: #007bff;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}
.comment-toggle:hover {
  background: #0056b3;
}
.comment_style {
	text-align: center;
	margin-bottom: 10px;
}
.comment-box-style {
	padding: 5px;
}
.live_comment {
		margin: 0 auto;
    max-width: 600px;
    border: 2px solid #990000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0; /* <-- wichtig, damit kein Innenabstand */
}
.live_comment h2 {
	  background-color: #990000;
    color: #fff;
    padding: 8px 12px;
    margin: 0; /* <-- ersetzt das negative Margin */
    border-radius: 6px 6px 0 0;
    font-size: 0.8em;
}
/* Datum und Uhrzeit */
.ansetzung-date {
    font-size: 1.1em;
    margin-bottom: 10px;
		text-align: center;
}
/* Matchbereich */
.ansetzung-match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* für kleine Screens */
    gap: 10px;
		margin-bottom: 5px;
}
/* Teambox */
.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.team img {
    max-height: 60px;
    margin: 5px 0;
}

.team-name {
    font-size: 0.5em;
		color: #000;
    font-weight: bold;
    text-align: center;
		word-wrap: break-word;     /* bricht lange Wörter */
    overflow-wrap: break-word; /* für moderne Browser */
    hyphens: auto;             /* optional: Silbentrennung, falls verfügbar */
    max-width: 100%;           /* verhindert Überlauf */
}
/* Score Bereich */
.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.5em;
    flex: 0 0 auto;
}

.match-score .score {
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #aaa;
    min-width: 30px;
    text-align: center;
}

.match-score .colon {
    font-size: 1.5em;
}
.score-input {
  	background: #eee;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #aaa;
    width: 35px;
		height: 35px;
    text-align: center;
		font-size: 1.0em;
}
#match-clock {
  text-align: center;
  font-weight: 200;
  font-size: 1.0em;
  margin: 0;
	border-top: 1px solid #990000;
	border-bottom: 1px solid #990000;
	background: #990000;
	color: #FFF;
}
.comment-controls {
    display: flex;
    flex-direction: column; /* untereinander anordnen */
    align-items: center;    /* zentrieren */
    justify-content: center;
    margin-top: 10px;
		margin-bottom: 10px;
}

.comment-controls select,
.comment-controls button {
    min-width: 200px;  /* optional, für gleiche Breite */
    text-align: center; /* Text mittig */
}
.comment-controls select {
    min-width: 220px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.comment-controls select:focus {
    outline: none;
    border-color: #007BFF;           /* Blaue Umrandung beim Fokus */
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}
.comment-controls select {
    appearance: none;          /* Standardpfeil ausblenden */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'><path fill='gray' d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px;
    padding-right: 30px; /* Platz für den Pfeil */
}

.comment-controls select:hover {
    border-color: #999;
    background-color: #fff;
}

.comment-controls button {
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 14px;
    color: #fff;
    background: #007BFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-controls button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.comment-controls button:hover:enabled {
    background: #0056b3;
}
.comment-controls select:disabled,
.comment-controls button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.delete-comment {
  float: right;
  color: #888;
  cursor: pointer;
  font-size: 14px;
}

.delete-comment:hover {
  color: red;
}
.wechsel-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.wechsel-player {
    text-align: center;
    width: 100px;
}

.wechsel-img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid #ccc;
}

.wechsel-name {
    margin-top: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    word-wrap: break-word;
}

.wechsel-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 28px;
    gap: 10px;
}

.arrow-out {
    color: red;
}

.arrow-in {
    color: green;
}
.score-updated {
    animation: flash 0.8s ease;
    color: darkred; /* z. B. grün für Tor */
    font-weight: bold;
}

@keyframes flash {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
#send-btn {
	transition:
		background-color 0.2s ease,
		opacity 0.2s ease,
		transform 0.1s ease;
}

#send-btn.is-sending {
	opacity: 0.75;
	cursor: wait;
}

#send-btn.is-success {
	background-color: #16883e !important;
	color: #ffffff !important;
}

#send-btn.is-error {
	background-color: #b00020 !important;
	color: #ffffff !important;
}
