.tf-loginlinks {
    display: flex;
    flex-wrap: wrap;      /* falls mal umgebrochen werden muss */
}

.tf-loginlinks .button {
    display: inline-block; /* explizit setzen */
    margin: 0;             /* evtl. WP-Styles überschreiben */
    padding: 6px 12px;
    border-radius: 2px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    font-size:medium;
    line-height: 1.2;      /* sorgt für Luft nach oben/unten */
}
.tf-loginlinks .button:hover {
    background: #005177;
}
.tf-box {
    padding: 1em;
    border: 1px solid #ddd;
    background: #f9f9f9;
    margin: 1em 0;
    border-radius: 8px;
}
.tf-table th, .tf-table td {
    padding: 6px;
    border-bottom: 1px solid #ddd;
    vertical-align: center;
}
.tf-table th {
    background: #f0f0f0;
}
.tf-box form {
    display: inline;
}
/* Styling für die Detailtabelle */
.tf-tausch-details {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 14px;
}

.tf-tausch-details td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    vertical-align: top;
}

.tf-tausch-details tr:nth-child(even) {
    background-color: #f9f9f9; /* leichte Streifenoptik */
}
/* Styling für die Details im Own-Pokemon */
.tf-pokemon-details {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 14px;
}

.tf-pokemon-details td {
    text-align: center;
    border: 1px solid #ccc;
    padding: 6px 10px;
    vertical-align: top;
}

.tf-pokemon-details tr:nth-child(even) {
    background-color: #f9f9f9; /* leichte Streifenoptik */
}


/* Styling für die Pokedex-Tabelle */
.tf-dex-details {
    width: 75%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 14px;
    margin-left: auto;
    margin-right: auto;
}

.tf-dex-details td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    vertical-align: top;
}

.tf-dex-details tr:nth-child(even) {
    background-color: #f9f9f9; /* leichte Streifenoptik */
}

.tf-dex-details td[rowspan="3"] {
    font-style: italic;
    vertical-align: top;
    text-align: center;
}
.tf-dex-details h4 {
    vertical-align: top;
    text-align: center;
    margin-top: 3px;
}

.tf-event-grid {
    display: flex;
    flex-wrap: wrap;            /* erlaubt Umbruch */
    gap: 5px;                  /* Abstand zwischen Elementen */
}

.tf-event-grid > div {
    flex: 1 1 calc(20% - 10px); /* 5 Elemente pro Zeile */
    box-sizing: border-box;
    text-align: center;
    padding: 5px;
    border: 0px;
    border-radius: 4px;
}
/* Formatierungen für Evolutionstabelle */

.tf-evo-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tf-evo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.tf-evo-cell {
  text-align: center;
  padding: 5px;
  border-radius: 8px;
  min-width: 120px;
}

.tf-evo-img {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.tf-evo-dexnr {
  font-style:italic;
}

.tf-evo-name {
  font-size: 0.9em;
}

.tf-evo-arrow {
  font-size: 20px;
  color: #888;
}

.tf-perfect {
  background-color: lightgreen;
}

.tf-grey {
    background-color: #f0f0f0;
    color: #555;
}
.tf-grey input[readonly] {
    background-color: #f0f0f0;
    color: #555;
    cursor: not-allowed;
}

.tf-event-pokemon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.tf-event-pokemon {
    display: inline-block;
    margin: 5px;
    text-align: center;
}
.tf-event-pokemon img {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
}
.op-block {
    border:1px solid #eee;
    padding:12px;
    margin-bottom:14px;
    background:#fff;
}
.op-block-player h3 {
    margin:0 0 8px 0;
}
/* Feldset für Tausch und Pokémon Formulare */
.tf-block fieldset {
    border:1px solid #eee;
    padding:10px;
    margin-bottom:10px;
    background:#fff;
}
.tf-block legend {
    font-weight:bold;
}
.tf-geo-popup {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #aaa;
    padding: 20px;
    z-index: 9999;
    width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.tf-geo-popup-buttons {
    margin-top: 15px;
    text-align: right;
}
.tf-geo-popup-buttons button {
    margin-left: 10px;
}
.tf-geo-input {
    text-transform: uppercase;
}
.tf-geo-name {
    margin-top: 5px;
    font-style: italic;
    color: #555;
}
.select2-container {
    z-index: 10000 !important;
}
.tf-update-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.tf-update-table th, .tf-update-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    vertical-align: top;
}
.tf-update-table th {
    background: #f2f2f2;
    text-align: left;
}
table.own-pokemon-list {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    font-size: 0.9em;
}
table.own-pokemon-list th,
table.own-pokemon-list td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
}
table.own-pokemon-list th {
    background: #f3f3f3;
    font-weight: bold;
}
table.own-pokemon-list tr:nth-child(even) {
    background-color: #fafafa;
}
