body {
    font-family: Arial, sans-serif;
    padding: 30px;

    background-image: url("img/dmbackground.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-attachment: fixed; 
    z-index: -1;

    color: #1b2430;
}

.logo {
    display: block;
    margin: 30px auto -30px auto;
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(226, 105, 230, 0.0));
}

h1, h2 {
    color: #2b3c52;
    text-align: center;
    text-shadow:
        0 0 6px rgba(255, 200, 160, 0.4),
        0 0 10px rgba(180, 140, 255, 0.25);
}

.created {
    background: linear-gradient(135deg, #ffb85c, #ff7b2c);
    color: #1a1a1a;
    box-shadow: 0 0 10px rgba(255, 158, 74, 0.7);
}

.generate {
    margin-top: 20px;
    margin-bottom: 20px;
}

button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 0.03em;
}

button[type="submit"], .nav-btn, .back-btn {
    background: linear-gradient(
        135deg,
        rgba(70, 110, 145, 0.95),
        rgba(45, 75, 105, 0.95)
    );

    color: #eee;
    border: 1px solid rgba(120, 200, 255, 0.8);

    box-shadow:
        0 0 10px rgba(90, 200, 255, 0.5),
        inset 0 0 6px rgba(255, 255, 255, 0.25);
}

button[type="submit"]:hover,
.nav-btn:hover,
.back-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(110, 160, 200, 0.98),
        rgba(70, 110, 150, 0.98)
    );
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #6c7f93;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(25, 32, 45, 0.95), rgba(40, 52, 70, 0.95));
    color: #d7e6ff;
    font-size: 14px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.back-btn:hover {
    background: linear-gradient(135deg, rgba(40, 52, 70, 0.98), rgba(70, 96, 128, 0.98));
    box-shadow: 0 0 12px rgba(120, 220, 255, 0.5);
    transform: translateY(-1px);
}

.nav-btn {
    display: inline-block; 
    margin: 0 8px; 
    padding: 8px 16px; 
    text-decoration: none; 
    border: 1px solid #3f5a72; 
    background: linear-gradient(135deg, rgba(22, 30, 42, 0.95), rgba(38, 57, 79, 0.95)); 
    color: #e1f2ff; 
    font-size: 14px; 
    border-radius: 4px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.75);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(40, 73, 105, 0.98), rgba(80, 126, 167, 0.98));
    box-shadow: 0 0 16px rgba(57, 215, 255, 0.7);
    transform: translateY(-1px);
}

.tables {
    margin-top: 30px;
}

.table {
    border: 2px solid rgba(90, 200, 255, 0.65);
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 10px;

    background: linear-gradient(
        135deg,
        rgba(42, 56, 74, 0.3),
        rgba(31, 41, 56, 0.3)
    );

    box-shadow:
        0 0 18px rgba(90, 200, 255, 0.35),
        inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.players {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.player {
    padding: 5px;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.3),
        rgba(38, 50, 68, 0.5)
    );

    border-radius: 6px;
    border: 1px solid rgba(120, 210, 255, 0.5);

    box-shadow:
        0 0 10px rgba(90, 200, 255, 0.25),
        inset 0 0 8px rgba(255, 255, 255, 0.08);
}

label {
    display: block;
    margin-top: 4px;
    color: #c2d8ff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

/* Ranking-Sidebar im HUD-Stil */
.ranking {
    border: 1px solid rgba(120, 200, 255, 0.6);
    border-radius: 8px;
    padding: 10px;

    background: linear-gradient(
        135deg,
        rgba(48, 63, 85, 0.94),
        rgba(34, 45, 62, 0.94)
    );

    box-shadow:
        0 0 20px rgba(120, 200, 255, 0.35),
        inset 0 0 12px rgba(255, 255, 255, 0.1);
}

.ranking h3 {
    margin-top: 0;
    text-align: center;
    color: #8fe4ff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.ranking-item {
    border-bottom: 1px solid rgba(120, 220, 255, 0.3);
    padding: 6px 4px;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-place {
    color: #3aa7d8;
}

.ranking-name {
    color: #eaf2ff;
}

.ranking-points {
    color: #b4c7dd;
}

.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;
    gap: 16px;
    margin-top: 20px;
}

.buttons button[type="submit"] {
    margin-bottom: 0;
}

/* Reihen-Layout unverändert */
.buttons .reihe {
    display: flex !important;
    align-items: flex-start;
}

/* Formulare bleiben inline */
.buttons .reihe form {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
}

.buttons .reihe input[type="file"] {
    margin-right: 8px;
    font-size: 14px;
    color: #d7e6ff;
}
