body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-size: 18px;
    box-sizing: border-box;
    overflow-x: hidden;
    background-image: url('../images/background.png');  /* Pfad zum Bild */
    background-size: auto;  /* Bild in Originalgröße anzeigen */
    background-repeat: repeat;  /* Bild wird in beide Richtungen wiederholt */
    background-position: top left;  /* Bild startet in der oberen linken Ecke */

}

.container {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    width: calc(100% - 20px);
    max-width: 800px;
    box-sizing: border-box;
    text-align: center;
    margin: 20px;
}

h2, h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 28px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    text-align: left;
    font-weight: bold;
    color: #555;
    font-size: 20px;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="password"],
textarea,
select {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    font-size: 18px;
    background-color: #fff;
}

.player-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.easter-egg {
    position: absolute;
    width: 16px;
    height: 16px;
    cursor: pointer;
    z-index: 9999;
}

.player-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.player-name {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px 2px black;
}
/* Dropdown-Menü Styling */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="gray"><polygon points="0,0 20,0 10,10"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
}

select:focus {
    border-color: #28a745;
    outline: none;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

option {
    font-size: 18px;
    padding: 10px;
}

textarea {
    resize: none;
    maxlength: 25;
    height: 80px;
}

button {
    padding: 12px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 18px;
    box-sizing: border-box;
    margin: 3px auto;
    display: block;
    width: 100%;
    max-width: 300px;
}

button:hover {
    background-color: #218838;
}

.btn {
    display: block;
    margin: 5px auto;
    padding: 12px 18px;
    background-color: #28a745;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 18px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

.btn:hover {
    background-color: #218838;
}

.delete-guild-btn {
    display: block;
    margin: 5px auto;
    padding: 12px 18px;
    background-color: #dc3545;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 18px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

.message {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #ffdddd;
    color: #d8000c;
    border: 1px solid #d8000c;
    border-radius: 8px;
    font-size: 18px;
}

/* Tabelle für Abwesenheitsliste */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    box-sizing: border-box;
    text-align: center;
}

table th, table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 18px;
    word-wrap: break-word;
}

table th {
    background-color: #28a745;
    color: #fff;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Stil für Würfelnachrichten */
.dice-action {
    display: block;
    background-color: #f8f9fa; /* Heller Hintergrund */
    border-left: 4px solid #007bff; /* Blauer Akzent */
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
    font-weight: bold;
    color: #333; /* Dunkle Schriftfarbe */
    text-align: center;
}

hr {
    border: none;
    height: 2px;
    background-color: #28a745;
    width: 100%;
    max-width: 540px;
    margin: 20px auto;
    border-radius: 2px;
}

/* Liste der Gildenmitglieder */
.guild-members {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.guild-members li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.guild-members li:last-child {
    border-bottom: none;
}

.guild-members button {
    width: auto;
    padding: 8px 12px;
    font-size: 16px;
    margin-left: 10px;
    display: inline-block;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.guild-members li span {
    flex: 1;
}

.guild-members li button {
    margin-left: 10px;
}

.guild-members button:hover {
    background-color: #c82333;
}

.hidden {
    display: none;
}

#new_guild_input {
    margin-top: 15px;
}




/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        max-width: 100%;
        margin: 10px;
    }

    h2, h3 {
        font-size: 24px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        display: none;
    }

    tbody tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
    }

    tbody td {
        text-align: right;
        position: relative;
        padding-left: 50%;
        font-size: 16px;
    }

    tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        font-weight: bold;
        text-align: left;
    }

    .guild-members li {
        flex-direction: column;
        align-items: flex-start;
    }

    .guild-members button {
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
    }

    button, .btn, select {
        width: 100%;
        max-width: 300px;
        font-size: 16px;
        padding: 10px;
        margin: 5px auto;
        display: block;
    }

    input[type="text"],
    input[type="email"],
    input[type="date"],
    input[type="password"],
    textarea {
        font-size: 16px;
        padding: 12px;
    }

    select {
        background-position: right 10px center;
    }

    option {
        font-size: 16px;
    }

    body {
        font-size: 16px;
    }

    hr {
        max-width: 100%;
    }
    .privacy-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
    font-size: 18px;
    color: #333;
    line-height: 1.8;
}

.privacy-container h2 {
    font-size: 32px;
    color: #28a745;
    text-align: center;
    margin-bottom: 20px;
}

.privacy-container h3 {
    font-size: 24px;
    color: #28a745;
    margin-top: 25px;
}

.privacy-container ul {
    list-style: none;
    padding-left: 0;
}

.privacy-container ul li::before {
    content: '✔️';
    margin-right: 10px;
}

.privacy-container a {
    color: #28a745;
    text-decoration: none;
}

.privacy-container a:hover {
    text-decoration: underline;
}

.last-update {
    text-align: center;
    font-style: italic;
    margin-top: 30px;
    color: #777;

}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Genau 3 Spalten */
    gap: 20px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;

}

.hero-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.hero-avatar {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.hero-card h4 {
    font-size: 20px;
    color: #333;
    margin: 10px 0;
}

/* Flüsternachrichten (Private Nachrichten) */
.whisper {
    color: purple !important;
    font-style: italic;
    font-weight: bold;
    background-color: rgba(128, 0, 128, 0.2);
    padding: 5px;
    border-radius: 5px;
    display: block;
}

.add-btn, .remove-btn {
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.shoutbox {
    background: #f4f4f4;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

.shoutbox-fixed {
    background: #ffdddd;
    color: red;
    font-weight: bold;
    padding: 15px;
    text-align: center;
    border: 3px solid red;
    margin-bottom: 10px;
    font-size: 1.2em;
}

#shoutbox-messages {
    max-height: 200px;
    overflow-y: auto;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

#shoutbox-form input {
    width: 75%;
    padding: 5px;
}

#shoutbox-form button {
    padding: 5px 10px;
    background: #008CBA;
    color: white;
    border: none;
    cursor: pointer;
}

#shoutbox-form button:hover {
    background: #005f73;
}

.add-btn {
    background-color: #28a745;
    color: white;
}

.add-btn:hover {
    background-color: #218838;
}

.remove-btn {
    background-color: #dc3545;
    color: white;
}

.remove-btn:hover {
    background-color: #c82333;
}


/* Online-Befehl in der Shoutbox */
.online-action {
    color: #4caf50;
    font-weight: bold;
    font-style: italic;
}


button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.system-info {
    color: #ffc107;
    font-style: italic;
}

.system-message {
    color: #000;
    font-weight: bold;
    font-style: normal;
    display: block;
    margin: 5px 0;
}

.shoutbox-message.system {
    color: #000;
    font-weight: bold;
    text-align: center;
}

.shoutbox-message.system .shoutbox-text {
    font-weight: bold;
    color: #000;
}

.info-hinweis {
    background-color: #f0f8ff;
    border-left: 4px solid #007bff;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.shoutbox-text {
    font-weight: bold; /* ← das fehlt aktuell */
}

/* Responsives Design für kleinere Bildschirme */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten bei kleineren Bildschirmen */
    }
}

@media (max-width: 600px) {
    .hero-grid {
        grid-template-columns: 1fr; /* 1 Spalte auf sehr kleinen Bildschirmen */
    }
}
