body {
    font-family: Arial, sans-serif;
    padding: 30px;

   background-image: url("img/background.png");
   background-position: center;
   background-repeat: no-repeat;
   background-size: 100% 100%;
   background-attachment: fixed; 
   z-index: -1;
}

.logo {
    display: block;
    margin: 30px auto -30px auto;
    max-width: 600px;
    width: 100%;
    height: auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
}

.created {
    background-color: orange;
}

.generate {
    margin-top: 20px;
    margin-bottom: 20px;
}

button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

button[type="submit"] {
    margin-bottom: 50px;
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #666;
    border-radius: 6px;
    background: #eee;
    color: #000;
    font-size: 14px;
}

button[type="submit"]:hover {
    background: #888;
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #666;
    border-radius: 6px;
    background: #eee;
    color: #000;
    font-size: 14px;
}

.back-btn:hover {
    background: #ddd;
}

.nav-btn {
    display: inline-block; 
    margin: 0 8px; 
    padding: 8px 16px; 
    text-decoration: none; 
    border: 1px solid #333; 
    background: #ddd; 
    color: #000; 
    font-size: 14px; 
    border-radius: 4px; 
}

.nav-btn:hover {
    background: #888;
}

.tables {
    margin-top: 30px;
}

.table {
    border: 2px solid #333;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    border-radius: 6px;
}

.players {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.player {
    padding: 5px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    border-radius: 6px;
}

label {
    display: block;
    margin-top: 4px;
}

.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

.ranking {
    border: 2px solid #333;
    border-radius: 8px;
    padding: 10px;
    background: #fefefe;
    margin-left: 0px;
    margin-top: 115px;
}

.ranking h3 {
    margin-top: 0;
    text-align: center;
}

.ranking-item {
    border-bottom: 1px solid #ccc;
    padding: 6px 4px;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-place {
    font-weight: bold;
    margin-right: 6px;
}

.ranking-name {
    font-weight: bold;
}

.ranking-points {
    font-size: 12px;
    color: #555;
    margin-left: 22px;
}

.main {
    position: absolute;
    max-width: 700px;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.buttons {
    display: flex !important;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;   /* ⬅ statt center: oben ausrichten */
    gap: 16px;
    margin-top: 20px;
}

.buttons button[type="submit"] {
    margin-bottom: 0;
}

/* Jede Reihe horizontal */
.buttons .reihe {
    display: flex !important;
    align-items: flex-start;   /* ⬅ ebenfalls oben */
}

/* Formulare nicht volle Breite, sondern nur so groß wie Inhalt */
.buttons .reihe form {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
}

/* Dateifeld etwas anpassen */
.buttons .reihe input[type="file"] {
    margin-right: 8px;
    font-size: 14px;
}