/* =========================
   GRUNDLAYOUT
========================= */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.5;
}

.page-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    text-align: center;
}

.form-wrapper {
    max-width: 500px;
    margin: 20px auto;
}

h1 {
    margin-bottom: 20px;
}

/* =========================
   ACTION ICONS (NEU)
========================= */

.actions {
    opacity: 0;
    transition: opacity 0.2s ease;

    display: flex;
    flex-direction: column;
    align-items: center;
}

tr:hover .actions,
tr:focus-within .actions {
    opacity: 1;
}

.actions a {
    margin: 4px 0;
    text-decoration: none;
    color: #000;
    opacity: 0.6;
    transition: 0.2s ease;
}

.actions a:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* SVG Icons */
.icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

/* =========================
   TOP ACTION AREA
========================= */


.top-actions {
    margin-bottom: 4px;
}

.top-actions a, .top-actions button {
    margin: 4px;
}

/* =========================
   BUTTONS
========================= */

.btn,
.btn-highlight,
.btn-danger {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
    border: none;
}

.btn { background: #111; color: #fff; }
.btn-secondary { background: #e5e5e5; color: #111; }
.btn-highlight { background: #4CAF50; color: #fff; }
.btn-danger { background: #d9534f; color: #fff; }

.btn:hover { opacity: 0.5; }

/* =========================
   FILTER
========================= */

.filter-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.filter-actions select {
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    background: #e5e5e5;
    color: #111;
    cursor: pointer;
    font-size: 14px;
}

.filter-actions select:hover {
    opacity: 0.85;
}

/* =========================
   BUTTON ROW
========================= */

.button-row {
    
    margin: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 25px;
}

.button-row .btn {
    font-size: 12px;
    padding: 10px;
    margin: 10px;
}
/* =========================
   TABELLE
========================= */

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #f2f2f2;
}

td, th {
    padding: 8px;
    text-align: center;
}

/* =========================
   SPIELERBILDER
========================= */

.player-img-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: inline-block;
}

.player-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #ccc;
}

.player-img-wrapper.offense::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 16px;
    border-bottom: 3px solid #222;
    border-bottom-left-radius: 34px 16px;
    border-bottom-right-radius: 34px 16px;
}

.player-img-wrapper.defense::after {
    content: "";
    position: absolute;
    bottom: 4px;
    right: -2px;
    width: 14px;
    height: 2px;
    background: #222;
    transform: rotate(45deg);
}

/* =========================
   8-PUNKTE-LINIEN
========================= */

.container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.column {
    background: #fafafa;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 280px;
}

.player-list {
    margin: 15px auto;     /* zentriert */
    max-height: 480px;
    max-width: 400px;      /* í ½í´¥ Begrenzung */
    width: 100%;           /* bleibt responsive */
    overflow-y: auto;
}

.player-row {
    display: flex;
    justify-content: space-between;
    align-items: left;
    margin-bottom: 6px;
}



.point-line {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-weight: bold;
    margin-bottom: 10px;
}

.player-images {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
}



/* Alternativ-Spieler kleiner */

.alt-players {
    display: flex;
    flex-direction: row;   /* nebeneinander */
    flex-wrap: nowrap;     /* í ½í´¥ verhindert Umbruch */
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
}

.alt-players .player-img-wrapper {
    width: 45px;
    height: 45px;
}

/* Marker kleiner + auÃŸen */

.alt-players .player-img-wrapper.offense::after {
    bottom: -6px;
    width: 24px;
    height: 12px;
    border-bottom: 2px solid #222;
}

.alt-players .player-img-wrapper.defense::after {
    right: -2px;
    bottom: 3px;
    width: 10px;
}

.count {
    margin-top: 10px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
}
/* =========================
   8-PUNKTE-LINIEN (DRAG & DROP / EXPORT)
========================= */





/* =========================
   LINE LABEL
========================= */


/* Links- und Rechts-Icons (Platzhalter) */
.line-icons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.line-icons a {
    display: inline-block;
    width: 24px;
    height: 24px;
    text-decoration: none;
    background: #ccc;
    border-radius: 4px;
    text-align: center;
    line-height: 24px;
    color: #000;
    font-weight: bold;
}


/* =========================
   Spielerliste Ãœbersicht
========================= */

.player-overview {
    margin-top: 20px;
    padding: 10px;
    background: #f7f7f7;
    border-radius: 8px;
}

.player-overview h3 {
    margin-bottom: 10px;
    font-size: 14px;
}

.player-overview-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 13px;
}

.player-overview-row .player-img.small {
    width: 35px;
    height: 35px;
}

.player-name {
    flex: 1;
    text-align: left;
}

.player-points {
    font-weight: bold;
}

/* =========================
   STÃ„RKEN / SCHWÃ„CHEN TEXT
========================= */

.attr {
    font-size: 12px;      /* kleiner */
    text-align: left;     /* linksbÃ¼ndig */
    line-height: 1.4;     /* besser lesbar */
    max-width: 180px;     /* optional: begrenzt Breite */
    word-break: break-word;
}

/* =========================
   TOOLTIP (AUS PHP AUSGELAGERT)
========================= */

.player-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 180px; 
    background-color: rgba(50,50,50,0.9);
    color: #fff;
    text-align: left;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 6px;
    position: absolute;
    z-index: 10;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: normal;
}
.player-img-wrapper:hover .player-tooltip {
    opacity: 1;
    visibility: visible;
}

/* =========================
   LINE LABEL
========================= */

.line-block {
    display: flex;
    flex-direction: column; /* Label oben, Spieler unten */
    align-items: center;    /* Spieler horizontal zentrieren */
    padding: 12px;
    border: 2px solid #bbb;
    border-radius: 8px;
    background: #f5f5f5;
    margin-bottom: 20px;
    width: 350px;
    margin: 20px auto;
}

.line-label {
    width: auto;           /* volle Breite nicht nÃ¶tig, passt sich an */
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #111;
    padding: 6px 12px;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #ffffff, #f2f2f2);
    border: 1px solid #bbb;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}


/* =========================
   Export Linien
========================= */


.pdf-button {
    display: block;
    width: fit-content;

    padding: 5px 8px;
    border: 2px solid #555;
    border-radius: 6px;
    background-color: #f0f0f0;

    color: #222;                 /* NICHT blau */
    text-decoration: none;       /* KEIN Unterstrich */
    font-weight: 500;            /* normaler Textstil */
    font-family: inherit;        /* gleiche Schrift wie Seite */
    font-size: 12px;

    cursor: pointer;
}
.pdf-button:hover {
    background-color: #ddd;
    border-color: #222;
    color: #000;
    text-decoration: none;  /* sicherstellen */
}

.pdf-pool {
    width: auto;                 /* NICHT fix */
    min-width: 120px;
    max-width: 180px;

    background: #f0f0f0;
    border-radius: 6px;
    padding: 8px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;     /* links */
}

.pdf-item {
    display: block;
    margin: 3px 0;
}