body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9; /* Heller Hintergrund */
    color: #333; /* Dunklere Textfarbe */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background: rgba(255, 255, 255, 0.8); /* Hellerer Header */
    color: #333; /* Dunklere Textfarbe */
    padding: 2em 0;
    text-align: center;
    width: 100%;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Dezenter Schatten */
}

#links {
    padding: 20px;
    width: 80%;
    max-width: 800px;
    margin: 20px auto;
}

#link-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#link-list li {
    margin: 10px;
}

#link-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.9); /* Hellere Link-Boxen */
    border-radius: 15px;
    text-decoration: none;
    color: #333; /* Dunklere Textfarbe */
    transition: background-color 0.3s, transform 0.3s;
    font-size: 0.9em;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid #eee; /* Leichte Umrandung */
}

#link-list a:hover {
    background-color: rgba(255, 255, 255, 1); /* Noch hellerer Hover-Effekt */
    transform: scale(1.05);
}

#link-list i {
    font-size: 2em;
    margin-bottom: 5px;
    color: #5cb85c; /* Akzentfarbe für Icons */
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95); /* Hellerer Modal-Hintergrund */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 500px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5em;
    color: #555;
}

/* Style für den "Link hinzufügen" Button */
#add-link-button {
    background-color: #5cb85c; /* Akzentfarbe */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

#add-link-button:hover {
    background-color: #449d44; /* Dunklerer Hover-Effekt */
}

/* Style für Input-Felder im Modal */
.modal-content input[type="text"],
.modal-content input[type="url"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Style für den "Speichern" Button im Modal */
#save-link-button {
    background-color: #5cb85c; /* Akzentfarbe */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#save-link-button:hover {
    background-color: #449d44; /* Dunklerer Hover-Effekt */
}

/* Neue Styles für die Editier- und Lösch-Buttons in der Linkliste */
.edit-link-button,
.delete-link-button {
    background-color: #007bff; /* Bootstrap Primärfarbe */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9em;
    margin-top: 5px;
}

.edit-link-button:hover {
    background-color: #0056b3; /* Dunklere Farbe für Hover-Effekt */
}

.delete-link-button {
    background-color: #dc3545; /* Bootstrap Gefährliche Farbe */
}

.delete-link-button:hover {
    background-color: #c82333; /* Dunklere Farbe für Hover-Effekt */
}

/* Styles für das Editieren Modal */
#edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
}

#edit-modal .modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
}

#edit-modal h2 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

#edit-modal label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #333;
}

#edit-modal input[type="text"],
#edit-modal input[type="url"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#edit-modal .close-button {
    top: 15px;
    right: 15px;
    font-size: 1.2em;
}

#edit-modal #save-link-button {
    width: 100%;
    padding: 12px;
    font-size: 1em;
}

/* Responsive Styles */
@media (max-width: 600px) {
    #link-list a {
        width: 80px;
        height: 80px;
    }

    #edit-modal .modal-content {
        padding: 20px;
    }

    #edit-modal h2 {
        font-size: 1.2em;
    }

    #edit-modal #save-link-button {
        padding: 10px;
        font-size: 0.9em;
    }
}