/* Container: Moderner Card-Look */
#profile-editor-widget {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Feedback-Meldung */
.feedback-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  color: #333;
  padding: 0.9rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 1.08em;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  text-align: center;
}

.feedback-message.success {
  background: #e6f9ed;
  border-color: #3ac17b;
  color: #217a4a;
}

.feedback-message.error {
  background: #ffeded;
  border-color: #e74c3c;
  color: #b20000;
}

.feedback-message.loading {
  background: #f7fafd;
  border-color: #3498db;
  color: #217dbb;
}

.feedback-message .feedback-icon {
  font-size: 1.4em;
  flex-shrink: 0;
  margin-right: 0.7em;
}

.feedback-message .feedback-text {
  flex: 1 1 0%;
  min-width: 0;
  text-align: center;
  word-break: break-word;
}

.feedback-message .close-feedback {
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  font-size: 1.2em;
  cursor: pointer;
  padding: 0 0.5em;
  line-height: 1;
  /* Neu: */
  align-self: auto;
}

/* Responsive: X bleibt rechts und mittig */
@media (max-width: 480px) {
  .feedback-message {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1em;
  }
  .feedback-message .close-feedback {
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    align-self: auto;
    margin-left: 0;
    margin-top: 0;
  }
}

/* Allgemeine Formular-Gruppen */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 0.5rem;
  color: #555;
  font-weight: 500;
}

/* Styling für nicht-editierbare Felder als reiner Text */
.plain-text {
  font-size: 16px;
  color: #333;
  margin-top: 0.25rem;
  /* Keine Hintergrundfarbe, kein Rahmen und kein extra Padding */
}

/* Standard-Styles für Inputfelder */
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 16px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: #0073aa;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
  outline: none;
}

/* Form-Aktionen */
.form-actions {
  margin-top: 2rem;
}

/* Reduziertes Button-Styling: Nur zentrieren und volle Breite, wie beim Login */
#profile-editor-widget button {
  display: block;
  width: 100%;
  margin: 20px auto;
}