body {
    font-family: Arial, sans-serif;
    background-color: #e2d3b0ab;
    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;
    color: #000;
}

.container {
    background: #836b336b;
    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;
}

.hero-card {
    background: #e2d3b0ab;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.details-btn {
    background-color: #836b336b;
    color: white;
    margin-top: 10px;

}

.details-btn:hover {
    background-color: #836b336b;
    transform: scale(1.05);
}

.update-btn:hover {
    background-color: #836b336b;
    transform: scale(1.05);
}
.add-btn:hover {
    background-color: #836b336b;
    transform: scale(1.05);
}

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;
}

/* 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;
}

textarea, select {
    background-color: #ffffff;
    border: 0px solid #000000;

}

button, .details-btn, .add-btn, .update-btn  {
    padding: 12px 20px;
    background-color: #b27b0057;
    color: #000;
    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: #b27b0057;
}

.btn   {
    display: block;
    margin: 5px auto;
    padding: 12px 18px;
    background-color: #b27b0057;
		color: black;
    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: #836b336b;
}

.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 #000;
    text-align: center;
    font-size: 18px;
    word-wrap: break-word;
}

table th {
    background-color: #b27b0057;
    color: #000;
}

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

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

/* Liste der Gildenmitglieder */
.guild-members {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.guild-members li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    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 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: #e2d3b0ab;
    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;

}

.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;
}

.register-btn {
    margin: 0 auto !important;
    display: block !important;
}

nav {
    display: flex;
    justify-content: center;
    gap: 10px; /* Abstand zwischen den Buttons */
    flex-wrap: wrap; /* Falls die Buttons zu lang sind, umbrechen */
}

.star-heading {
    font-size: 24px;
    color: #28a745;
    margin: 20px 0 10px;
    text-align: left;
    border-bottom: 2px solid #28a745;
    padding-bottom: 5px;
}





/* 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 */
    }
}
